James Lyne
bf383afb8d
Support disabling player marker images
...
- showplayerfaces: false in Dynmap, player-tracker.nameplate.show-head: false in Pl3xmap
- Remove showSkin option in favour of 'none' image size
2021-09-29 19:58:39 +01:00
James Lyne
58199aaed0
Use large player image on Pl3xmap when both health/armor are enabled
2021-09-29 14:56:13 +01:00
James Lyne
66355dfe38
Decouple player image pixel size from PlayerMarker.
...
- Use single template image and set size after cloning
- Use util method to retrieve pixel size when needed
- Use LiveAtlasPlayerImageSize in getMinecraftHead
2021-09-29 14:33:52 +01:00
James Lyne
770c9242a8
Player marker improvements
...
- Use <meter> for health/armor
- Condense small/body image properties into single image size option
- Remove image-size dependant margins
- Add circle alongside label for indicating player position
2021-09-29 01:30:35 +01:00
James Lyne
bfc0a381a8
Respect pl3xmap show-armor setting
2021-09-28 18:54:51 +01:00
James Lyne
c71e8289dd
Only fetch Pl3xmap players when player markers are enabled
2021-09-28 18:38:34 +01:00
James Lyne
98d7ede3d9
Remove extra / from Pl3xmap players URL ( Closes #125 )
2021-09-28 13:32:42 +01:00
James Lyne
bfd2b4083f
Fix type errors
2021-09-12 20:37:51 +01:00
James Lyne
83bc0ec86d
Freeze/seal marker related objects in Pl3xmap provider
2021-09-10 15:31:05 +01:00
James Lyne
8bf0fe04a7
Split DynmapMapProvider build methods into their own file
2021-09-10 15:30:29 +01:00
James Lyne
63a00d0681
Move loginEnabled logic to store getter
2021-09-08 15:23:21 +01:00
James Lyne
0e57a50e0c
Cleanup redundant useStore calls
2021-09-08 15:21:27 +01:00
James Lyne
12632004d1
Move loginRequired state into store, reset login related state in RESET
2021-09-07 23:10:57 +01:00
James Lyne
46c9468214
Remove some debug logging
2021-09-01 18:42:26 +01:00
James Lyne
76f151a64c
First attempt at login/register
2021-08-30 22:28:20 +01:00
James Lyne
b426ed3cae
Refactor fetch logic
...
- Add credentials: include
- Allow passing arbitrary options to fetch, and rename existing simple get to getJSON
2021-08-30 22:28:19 +01:00
James Lyne
e41a841bdb
Don't make sendChatMessage abstract
2021-08-30 22:28:19 +01:00
James Lyne
280e036276
Basic support for Pl3xmap tile update interval
2021-08-13 23:51:03 +01:00
James Lyne
6aa9aaf2bd
Only set config hash if present in update response
...
Prevents infinite reloading if the update response doesn't contain a hash for some reason
2021-08-03 02:26:43 +01:00
James Lyne
eba8a5b7e1
Fix incorrect player head URL ( Fixes #2 )
2021-08-02 17:12:29 +01:00
James Lyne
f4aca39975
Fix incorrect Dynmap player head URL generation
2021-07-29 19:05:33 +01:00
James Lyne
38946d7015
Initial pl3xmap support
2021-07-29 18:06:19 +01:00
James Lyne
8151dfaab5
Make followZoom optional
2021-07-28 23:52:51 +01:00
James Lyne
b3f186a197
Move grayHiddenPlayers to playerMarkers component
2021-07-28 23:52:03 +01:00
James Lyne
7bff12b729
Move maxPlayers to separate field in store, add mutation
2021-07-28 23:50:59 +01:00
James Lyne
4feb46c641
Move player count/max into playersHeading
2021-07-28 22:27:43 +01:00
James Lyne
d04226e3ec
Refactor popup handling
...
- Merge label and popupContent properties for vector layers, as only one is ever used
- Move common vector methods to separate file and remove duplicates
- Rename isHTML properties to be clearer
2021-07-28 17:49:38 +01:00
James Lyne
2a216dd4e8
Path performance improvements
...
- Avoid intermediate objects when creating leaflet objects to reduce allocations
- Make individual path objects non-reactive
- Avoid projecting path points twice during updates
2021-07-28 04:04:47 +01:00
James Lyne
9517de0760
Path point handling changes
...
- Store path points as {x,y,z} objects instead of separate arrays
- Project point objects right before layer creation
- A bit slower overall but matches the format of Pl3xmap path points.
2021-07-28 04:04:46 +01:00
James Lyne
c69aeb8f5f
Make map definitions non-reactive to improve projection performance
2021-07-27 04:31:43 +01:00
James Lyne
0aa61517dc
Set the correct world object in map definitions
2021-07-26 01:05:08 +01:00
James Lyne
5cf353cd8a
Update license headers
2021-07-26 01:05:08 +01:00
James Lyne
9e2caa6f63
More type renaming
2021-07-26 01:05:08 +01:00
James Lyne
355c0c71cf
Restructure LiveAtlasServerDefinition
2021-07-26 01:05:07 +01:00
James Lyne
e61d0def04
Replace serverConfig getter with MapProvider url methods
2021-07-26 01:05:07 +01:00
James Lyne
e4e7dfcd5f
Move fetchJSON to abstract MapProvider
2021-07-26 01:05:07 +01:00
James Lyne
ad9af04e9e
Rename world/map title to displayName
2021-07-26 01:05:05 +01:00
James Lyne
c202def955
Move login from configuration to components
2021-07-26 01:04:18 +01:00
James Lyne
bc38af3254
Use generic names for more types
2021-07-26 01:04:18 +01:00
James Lyne
cba4b33e1a
Refactor DynmapMapProvider.ts
2021-07-26 01:04:18 +01:00
James Lyne
e809f28455
(Re)move some config store properties
2021-07-26 01:04:18 +01:00
James Lyne
1d27e05f7c
Rename DynmapPlayer to LiveAtlasPlayer, rename some fields, add uuid field
2021-07-26 01:04:18 +01:00
James Lyne
44b3a7e276
Remove updateInterval from store
2021-07-26 01:04:18 +01:00
James Lyne
33b5b305e2
Add MapProvider, move dynmap api handling to DynmapMapProvider
2021-07-26 01:04:17 +01:00