@orbat-mapper/tactical-draw 0.36.0 → 0.36.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.
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +4 -0
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -80,6 +80,8 @@ declare abstract class BaseMapAdapter<TLayerHandle, TEventToken, TViewToken> imp
|
|
|
80
80
|
protected destroyEngineResources(): void;
|
|
81
81
|
protected applyIconResources(resources: readonly IconResource[]): void;
|
|
82
82
|
protected getIconResource(id: string): IconResource | undefined;
|
|
83
|
+
/** The groups layer `layerId` draws: the ones last passed to `applyFeatureGroups`. */
|
|
84
|
+
protected getFeatureGroups(layerId: LayerId): readonly FeatureGroup[];
|
|
83
85
|
protected getFeatureGroupOrder(layerId: LayerId, featureId: string | number | undefined): number | undefined;
|
|
84
86
|
protected removeIconResource(id: string): void;
|
|
85
87
|
private pruneIconResources;
|
package/dist/index.mjs
CHANGED
|
@@ -853,6 +853,10 @@ var BaseMapAdapter = class {
|
|
|
853
853
|
getIconResource(id) {
|
|
854
854
|
return this.iconResources.get(id);
|
|
855
855
|
}
|
|
856
|
+
/** The groups layer `layerId` draws: the ones last passed to `applyFeatureGroups`. */
|
|
857
|
+
getFeatureGroups(layerId) {
|
|
858
|
+
return this.featureGroupState.get(layerId)?.groups ?? [];
|
|
859
|
+
}
|
|
856
860
|
getFeatureGroupOrder(layerId, featureId) {
|
|
857
861
|
if (featureId === void 0) return void 0;
|
|
858
862
|
return this.featureGroupState.get(layerId)?.orderByFeatureId.get(featureId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orbat-mapper/tactical-draw",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.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.
|
|
42
|
+
"@orbat-mapper/control-measures": "^0.47.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"vitest": ">=4.0.0"
|