@orbat-mapper/tactical-draw-adapter-maplibre 0.2.0-alpha.6 → 0.2.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -3
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -448,16 +448,19 @@ var MapLibreAdapter = class extends BaseMapAdapter {
448
448
  };
449
449
  const onDown = (e) => {
450
450
  const px = [e.point.x, e.point.y];
451
- const info = { altKey: e.originalEvent.altKey };
451
+ const info = {
452
+ altKey: e.originalEvent.altKey,
453
+ shiftKey: e.originalEvent.shiftKey
454
+ };
452
455
  hub.fireDown(px, info);
453
456
  };
454
457
  const onMove = (e) => {
455
458
  const px = [e.point.x, e.point.y];
456
- hub.fireMove(px);
459
+ hub.fireMove(px, { shiftKey: e.originalEvent.shiftKey });
457
460
  };
458
461
  const onUp = (e) => {
459
462
  const px = [e.point.x, e.point.y];
460
- hub.fireUp(px);
463
+ hub.fireUp(px, { shiftKey: e.originalEvent.shiftKey });
461
464
  };
462
465
  const onTouchStart = (e) => {
463
466
  if (e.points.length !== 1) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbat-mapper/tactical-draw-adapter-maplibre",
3
- "version": "0.2.0-alpha.6",
3
+ "version": "0.2.0-alpha.7",
4
4
  "description": "MapLibre GL JS engine adapter for @orbat-mapper/tactical-draw. Draw and edit tactical control measures (MIL-STD-2525 / APP-6) on a MapLibre map.",
5
5
  "license": "MIT",
6
6
  "author": "Orbat Mapper",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "dependencies": {
40
40
  "@orbat-mapper/control-measures": "^0.2.0-alpha.15",
41
- "@orbat-mapper/tactical-draw": "^0.2.0-alpha.20"
41
+ "@orbat-mapper/tactical-draw": "^0.2.0-alpha.22"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "maplibre-gl": ">=4.0.0 <6.0.0"