@orbat-mapper/tactical-draw 0.2.1 → 0.3.1

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.
@@ -180,6 +180,15 @@ interface IconResource {
180
180
  height: number;
181
181
  };
182
182
  }
183
+ /** A self-contained image fixed to four geographic corners, ordered TL/TR/BR/BL. */
184
+ interface ImageOverlayResource {
185
+ id: string;
186
+ url: string;
187
+ width: number;
188
+ height: number;
189
+ coordinates: readonly [Position, Position, Position, Position];
190
+ opacity: number;
191
+ }
183
192
  /**
184
193
  * One stable, atomic unit in a logical layer's bottom-to-top paint stack.
185
194
  *
@@ -190,6 +199,8 @@ interface FeatureGroup {
190
199
  id: string;
191
200
  features: readonly Feature[];
192
201
  iconResources: readonly IconResource[];
202
+ /** Ground-anchored rasters painted atomically with this Graphic. */
203
+ imageOverlays?: readonly ImageOverlayResource[];
193
204
  /**
194
205
  * Monotonic stamp identifying this group's rendered content, when the
195
206
  * producer supplies one. Two groups with the same `id` and the same
@@ -369,4 +380,4 @@ interface MapAdapter {
369
380
  getLayerFeatures(layerId: LayerId): readonly Feature[];
370
381
  }
371
382
  //#endregion
372
- export { PointerEventInfo as S, fillPatternImageDimension as _, MapAdapter as a, EditPointerDriver as b, MapEventHandler as c, PickOptions as d, PixelCoordinate as f, HatchPattern as g, HATCH_PATTERNS as h, LayerId as i, PickEvent as l, TextStyleOptions as m, HandleStyle as n, MapCursor as o, StyleOptions as p, IconResource as r, MapEvent as s, FeatureGroup as t, PickHandler as u, fillPatternImageId as v, PointerCallback as x, makeFillPatternImage as y };
383
+ export { PointerEventInfo as C, PointerCallback as S, HatchPattern as _, LayerId as a, makeFillPatternImage as b, MapEvent as c, PickHandler as d, PickOptions as f, HATCH_PATTERNS as g, TextStyleOptions as h, ImageOverlayResource as i, MapEventHandler as l, StyleOptions as m, HandleStyle as n, MapAdapter as o, PixelCoordinate as p, IconResource as r, MapCursor as s, FeatureGroup as t, PickEvent as u, fillPatternImageDimension as v, EditPointerDriver as x, fillPatternImageId as y };
@@ -1,4 +1,4 @@
1
- import { a as MapAdapter, f as PixelCoordinate, i as LayerId } from "./map-adapter-84irgVJR.mjs";
1
+ import { a as LayerId, o as MapAdapter, p as PixelCoordinate } from "./map-adapter-DfIb57kQ.mjs";
2
2
  import { Feature } from "geojson";
3
3
 
4
4
  //#region src/testing/feature-group-conformance.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orbat-mapper/tactical-draw",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "Engine-agnostic draw/edit core for tactical control measures (MIL-STD-2525 / APP-6). The MapAdapter ABI and bring-your-own-engine entry point for the tactical-draw package family.",
5
5
  "license": "MIT",
6
6
  "author": "Orbat Mapper",
@@ -39,7 +39,7 @@
39
39
  "access": "public"
40
40
  },
41
41
  "dependencies": {
42
- "@orbat-mapper/control-measures": "^0.3.0"
42
+ "@orbat-mapper/control-measures": "^0.4.0"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "vitest": ">=4.0.0"