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
5896d4504c
Fix PlayerMarker name disappearing when hidden
2021-09-29 15:31:09 +01:00
James Lyne
016b784634
Fix PlayerMarker health/armor not displaying immediately
2021-09-29 15:02:17 +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
07d851fc86
Use 20 for health/armor meter max
2021-09-29 14:32:12 +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
bfd2b4083f
Fix type errors
2021-09-12 20:37:51 +01:00
James Lyne
0e57a50e0c
Cleanup redundant useStore calls
2021-09-08 15:21:27 +01:00
James Lyne
eb7d31669f
Fix build
2021-09-01 17:47:29 +01:00
James Lyne
77b9850ea9
Marker refactoring
...
- Don't extend DivIcon as we don't use anything that class provides
- Update PlayerMarker icon using internal watch
- Remove unused panTo() PlayerMarker method
- Apply needed parts of _setIconStyles directly in GenericIcon's createIcon
2021-09-01 17:38:42 +01:00
James Lyne
0b05ad05e4
Focus login button when closing modal
2021-08-31 17:45:37 +01:00
James Lyne
3cb9f8f315
Fix super call in GenericIcon
2021-08-31 16:41:11 +01:00
James Lyne
fdf5e521d8
Prefer using super over prototype calls
2021-08-31 16:38:19 +01:00
James Lyne
0ae42a9409
Fix typings for LiveAtlasTileLayer _tiles property
2021-08-31 16:35:30 +01:00
James Lyne
00483025cd
Correctly cleanup CoordinatesControl event handlers
2021-08-31 16:00:11 +01:00
James Lyne
f1d38e7485
Fix layer control error when switching servers
2021-08-31 15:55:39 +01:00
James Lyne
9fd53d754e
Reduce CoordinatesControl layout shifts
2021-08-31 15:03:32 +01:00
James Lyne
76f151a64c
First attempt at login/register
2021-08-30 22:28:20 +01:00
James Lyne
ec115615d1
Fix build with Typescript 4.4
2021-08-27 02:40:25 +01:00
James Lyne
ca8142cca8
Use declare for leaflet defined fields
2021-08-26 21:40:54 +01:00
James Lyne
89c56e176b
Some style refactoring
...
- Use CSS variables for UI element size/spacing
- Make buttons smaller on smaller screens
- Reduce location size on smaller screens
- Add common leaflet-control-button class for all button-y controls
2021-08-26 00:54:40 +01:00
James Lyne
2d485ac4e5
Fix marker labels disappearing when toggling a showLabels: true layer twice
2021-08-16 04:21:48 +01:00
James Lyne
552b289bb9
Avoid recreating tiles from scratch when refreshing Pl3xmap
2021-08-16 03:33:28 +01:00
James Lyne
f316c0dd50
Use fetch for tile loads, move loading logic to LiveAtlasTileLayer
2021-08-16 03:08:35 +01:00
James Lyne
2ff16c81ed
Merge remote-tracking branch 'origin/master'
2021-07-29 18:20:05 +01:00
James Lyne
e07ac55c33
Merge branch 'pl3xmap'
...
# Conflicts:
# src/api.ts
# src/components/Map.vue
# src/components/map/layer/MapLayer.vue
# src/components/map/layer/MarkerSetLayer.vue
# src/components/map/vector/Areas.vue
# src/components/map/vector/Circles.vue
# src/components/map/vector/Lines.vue
# src/components/map/vector/Markers.vue
# src/components/sidebar/WorldListItem.vue
# src/dynmap.d.ts
# src/index.d.ts
# src/leaflet/icon/GenericIcon.ts
# src/leaflet/layer/LiveAtlasLayerGroup.ts
# src/leaflet/tileLayer/DynmapTileLayer.ts
# src/leaflet/vector/LiveAtlasPolygon.ts
# src/leaflet/vector/LiveAtlasPolyline.ts
# src/model/LiveAtlasMapDefinition.ts
# src/model/LiveAtlasProjection.ts
# src/store/actions.ts
# src/store/getters.ts
# src/store/state.ts
# src/util.ts
# src/util/areas.ts
# src/util/circles.ts
# src/util/lines.ts
# src/util/markers.ts
2021-07-29 18:15:35 +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
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
5cf353cd8a
Update license headers
2021-07-26 01:05:08 +01:00
James Lyne
5fb0a3e2f4
Move night/update handling into DynmapTileLayer
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
e7945b3f9a
Add fields to DynmapTileLayer
2021-07-26 01:05:07 +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
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
9021c5291d
Use generic names for extended leaflet classes
2021-07-23 22:28:06 +01:00
James Lyne
c7ec76767e
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-23 20:42:18 +01:00
James Lyne
9bea4519c6
Rename some types
2021-07-19 16:40:30 +01:00
James Lyne
66477288d5
Revert deprecation fix as it breaks the loading control
2021-05-29 02:35:39 +01:00
James Lyne
5b1df5ccf8
Customisable copy to clipboard messages
2021-05-29 00:38:29 +01:00
James Lyne
1f44f7e752
More keyboard handlers
2021-05-29 00:22:31 +01:00
James Lyne
0ca26beb8e
Keyboard event handling and focus styles for layers
2021-05-28 23:25:55 +01:00
James Lyne
ace8555a09
Customisable Layers button title
2021-05-28 21:28:21 +01:00
James Lyne
af3ef17ec4
Make layers toggle on click like other UI elements
2021-05-28 19:14:06 +01:00
James Lyne
57133c5681
Use aria attributes for active etc states
2021-05-28 00:14:51 +01:00
James Lyne
8fb37cccec
Prefix icon ids to avoid conflicts
2021-05-27 15:14:47 +01:00
James Lyne
c73e2682eb
Fix some inspections
2021-05-27 14:52:26 +01:00