Commit Graph

42 Commits

Author SHA1 Message Date
James Lyne
31c1148c38 Decode HTML entities for markup: false dynmap marker labels (Fixes: #172) 2021-09-30 16:43:35 +01:00
James Lyne
ca1d90a739 Remove unused world/map properties 2021-09-30 13:16:39 +01:00
James Lyne
dc479ca6e8 Support disabling player images in player list
- showplayerfacesinmenu in Dynmap
- Player image is removed entirely rather than mirroring Dynmap behaviour of showing a Steve head, to be consistent with player markers and chat.
- Images are also disabled in FollowTarget
2021-09-29 21:16:31 +01:00
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
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
0ae8b11ce6 Ensure trailing / in Pl3xmap base URL 2021-09-28 13:33:05 +01:00
James Lyne
8bf0fe04a7 Split DynmapMapProvider build methods into their own file 2021-09-10 15:30:29 +01:00
James Lyne
ab5ede1ccc Only reset splash screen state on server changes, reset loading attempts correctly. 2021-09-01 18:14:19 +01:00
James Lyne
5350c2483f Reset splash screen on show instead of hide 2021-09-01 02:15:51 +01:00
James Lyne
0fba7747c8 Reset splash error state on hide 2021-08-30 22:02:57 +01:00
James Lyne
38946d7015 Initial pl3xmap support 2021-07-29 18:06:19 +01:00
James Lyne
a7fa366635 Create marker labels lazily when showLabels is false 2021-07-29 17:46:11 +01:00
James Lyne
02c705de36 Fix build errors 2021-07-29 03:39:28 +01:00
James Lyne
90ec2080ee Add tooltip support 2021-07-29 03:06:05 +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
5cf353cd8a Update license headers 2021-07-26 01:05:08 +01:00
James Lyne
355c0c71cf Restructure LiveAtlasServerDefinition 2021-07-26 01:05:07 +01:00
James Lyne
bc38af3254 Use generic names for more types 2021-07-26 01:04:18 +01:00
James Lyne
c99215e259 Use generic names for extended leaflet classes 2021-07-26 01:04:17 +01:00
James Lyne
ef26d78c19 Refactor map handling
- Map definitions now have their own class
- A map's projection is now a private property of the instance. Coordinates are converted via map instance methods.
- Moved map icon handling to instance getter
- Removed currentProjection and related mutations from store
- Changed currentProjection watchers to currentMap
2021-07-26 01:04:13 +01:00
James Lyne
b9807b3a7b Fix config validation 2021-07-22 23:18:26 +01:00
James Lyne
649f571a20 Configuration improvements
- Default playersAboveMarkers to true to match previous behaviour
- Move all window.liveAtlasConfig handling to main.ts and a single mutation
- Rename server configuration mutations to differentiate server and global configurations
2021-07-20 21:18:41 +01:00
James Lyne
693de26b8c Fix outlined 2d box area update handing (Fixes #29) 2021-06-12 23:37:02 +01:00
James Lyne
2e1426e945 More generic keyboard event handling 2021-05-28 22:36:14 +01:00
James Lyne
63efb8c3c3 Reduce screenreader spam when showing splash screen errors 2021-05-28 15:55:44 +01:00
James Lyne
034a7a2fdb Split up Util.ts 2021-05-27 01:41:58 +01:00
James Lyne
e3233e3dfa Pan on marker click 2021-05-25 23:31:03 +01:00
James Lyne
a966812f1a Close existing popups during updates 2021-01-26 14:42:37 +00:00
James Lyne
869f733fb7 Handle popups for markers. Fixes #5 2021-01-26 14:32:48 +00:00
James Lyne
7b1afa1c20 Handle showLabels config setting 2020-12-18 23:01:32 +00:00
James Lyne
d6693b4c0d Respect min/max zoom settings for marker sets 2020-12-18 20:25:34 +00:00
James Lyne
cad535365b Handle marker icon/label updates 2020-12-18 18:01:37 +00:00
James Lyne
10cfd5b56f Cleanup 2020-12-16 19:18:10 +00:00
James Lyne
31b05613fb Add license 2020-12-16 16:54:41 +00:00
James Lyne
43a15e575f Fix marker updates when projection changes 2020-12-16 11:59:09 +00:00
James Lyne
4124b6b8e8 On redraw an area when it's style or points change 2020-12-14 15:53:58 +00:00
James Lyne
1128a9b0ba Don't set a zindex on markers 2020-12-14 15:48:58 +00:00
James Lyne
6249eb904b Move marker set markers into single component. Start marker update handling. 2020-12-14 00:27:49 +00:00
James Lyne
e77a777a66 Implement update handling for areas/lines/circles 2020-12-11 15:28:51 +00:00