@orbat-mapper/tactical-draw 0.29.0 → 0.31.0
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.
- package/dist/index.d.mts +247 -12
- package/dist/index.mjs +947 -50
- package/dist/{map-adapter-DDQarsRQ.d.mts → map-adapter-g2v5Ok3Y.d.mts} +15 -3
- package/dist/testing.d.mts +1 -1
- package/package.json +2 -2
|
@@ -510,8 +510,11 @@ interface StyleOptions {
|
|
|
510
510
|
* Text (label) style for a layer. When `labelProperty` is set, adapters also
|
|
511
511
|
* read per-feature label properties: `rotation` (radians, rendered as
|
|
512
512
|
* `π − rotation`), the size anchor's `textSizeMeters` (ground) or
|
|
513
|
-
* `textSizePixels` (screen) (ADR-0028),
|
|
514
|
-
* begins at the label point, `"end"` = text ends there; absent = centered)
|
|
513
|
+
* `textSizePixels` (screen) (ADR-0028), `textAnchor` (`"start"` = text
|
|
514
|
+
* begins at the label point, `"end"` = text ends there; absent = centered),
|
|
515
|
+
* and the screen-space offset `textAnchorGap`/`textBaselineShift` (ems of the
|
|
516
|
+
* rendered size, applied after rotation in the text's own frame; read it as
|
|
517
|
+
* `[right, down]` with `labelTextOffsetEms`, ADR-0068).
|
|
515
518
|
* A ground-anchored label renders at `textSizeMeters / resolution`, pinned at
|
|
516
519
|
* `textSizeMaxPixels` and faded out then hidden below `textSizeMinPixels`
|
|
517
520
|
* (`resolveTextAppearance`, ADR-0060); a screen-anchored one at a constant
|
|
@@ -630,7 +633,16 @@ interface FeatureGroup {
|
|
|
630
633
|
id: string;
|
|
631
634
|
features: readonly Feature[];
|
|
632
635
|
iconResources: readonly IconResource[];
|
|
633
|
-
/**
|
|
636
|
+
/**
|
|
637
|
+
* Ground-anchored rasters painted atomically with this Graphic.
|
|
638
|
+
*
|
|
639
|
+
* Each overlay also needs a feature in `features` whose `properties.imageOverlayId`
|
|
640
|
+
* is the overlay's `id`, with a polygon whose ring starts TL, TR, BR, BL. OpenLayers
|
|
641
|
+
* paints an overlay only through the feature that names it, positioned from that
|
|
642
|
+
* feature's geometry rather than `coordinates`, and silently drops an overlay no
|
|
643
|
+
* feature names. MapLibre and Leaflet don't read the property, so such a bug shows
|
|
644
|
+
* only on OpenLayers.
|
|
645
|
+
*/
|
|
634
646
|
imageOverlays?: readonly ImageOverlayResource[];
|
|
635
647
|
/**
|
|
636
648
|
* Monotonic stamp identifying this group's rendered content, when the
|
package/dist/testing.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as LayerId, o as MapAdapter, p as PixelCoordinate } from "./map-adapter-
|
|
1
|
+
import { a as LayerId, o as MapAdapter, p as PixelCoordinate } from "./map-adapter-g2v5Ok3Y.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.
|
|
3
|
+
"version": "0.31.0",
|
|
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.
|
|
42
|
+
"@orbat-mapper/control-measures": "^0.45.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"vitest": ">=4.0.0"
|