@trackunit/react-map-adapter-shared 0.0.9-alpha-0424feab298.0 → 0.0.10
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/package.json +3 -3
- package/src/LayerPort.d.ts +16 -1
- package/src/primitiveMapTypes.d.ts +3 -0
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trackunit/react-map-adapter-shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"repository": "https://github.com/Trackunit/manager",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=24.x"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@trackunit/geo-json-utils": "1.14.
|
|
11
|
-
"@trackunit/ui-design-tokens": "1.13.29
|
|
10
|
+
"@trackunit/geo-json-utils": "1.14.31",
|
|
11
|
+
"@trackunit/ui-design-tokens": "1.13.29",
|
|
12
12
|
"es-toolkit": "^1.39.10",
|
|
13
13
|
"zod": "^3.25.76"
|
|
14
14
|
},
|
package/src/LayerPort.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GeoJsonBbox } from "@trackunit/geo-json-utils";
|
|
2
2
|
import type { Entity } from "./interactionTypes";
|
|
3
|
-
import type { AdaptiveMarkerResolution, ClusterConfig, ClusterRenderConfig, ClusterRenderState, DomRenderState, GeoJsonFeatureCollection, RenderConfig, RouteStyle, ShapeInteractiveMode, ShapeStyle } from "./layerApiTypes";
|
|
3
|
+
import type { AdaptiveMarkerResolution, ClusterConfig, ClusterRenderConfig, ClusterRenderState, DomRenderState, GeoJsonFeatureCollection, GeoJsonGeometry, RenderConfig, RouteStyle, ShapeInteractiveMode, ShapeStyle } from "./layerApiTypes";
|
|
4
4
|
type ReactNode = import("react").ReactNode;
|
|
5
5
|
/**
|
|
6
6
|
* Full interactive marker with clustering and adapter-managed entity events.
|
|
@@ -47,6 +47,21 @@ export type ShapeSourceConfig = Readonly<{
|
|
|
47
47
|
style: ShapeStyle;
|
|
48
48
|
/** Per-feature resolved styles, keyed by `String(feature.id)`. */
|
|
49
49
|
featureStyles?: ReadonlyMap<string, ShapeStyle>;
|
|
50
|
+
/**
|
|
51
|
+
* Per-feature clipped fill geometry, keyed by `String(feature.id)` (ADR-0021
|
|
52
|
+
* fill tiling). When a feature has an entry, the adapter paints its **fill**
|
|
53
|
+
* from this geometry instead of the full feature geometry; the **stroke**
|
|
54
|
+
* always uses the full, unclipped geometry so outlines stay visible through
|
|
55
|
+
* covering neighbours. Absent entry = paint fill from the full geometry.
|
|
56
|
+
*/
|
|
57
|
+
featureFillGeometries?: ReadonlyMap<string, GeoJsonGeometry>;
|
|
58
|
+
/**
|
|
59
|
+
* Per-feature z-index override for fill rendering (ADR-0021 Path B). Higher
|
|
60
|
+
* value = visually on top. Only features in an overlap group receive an entry;
|
|
61
|
+
* the adapter uses its own default for absent entries. The hook raises only the
|
|
62
|
+
* hover-promoted feature's value so peers are never re-clipped on hover.
|
|
63
|
+
*/
|
|
64
|
+
featureZIndexOverrides?: ReadonlyMap<string, number>;
|
|
50
65
|
interactive: ShapeInteractiveMode;
|
|
51
66
|
}>;
|
|
52
67
|
/**
|
|
@@ -93,6 +93,9 @@ export type MapEvent = {
|
|
|
93
93
|
readonly type: "click";
|
|
94
94
|
readonly position: GeoJsonPosition;
|
|
95
95
|
readonly originalEvent: MouseEvent;
|
|
96
|
+
} | {
|
|
97
|
+
readonly type: "pointermove";
|
|
98
|
+
readonly position: GeoJsonPosition;
|
|
96
99
|
};
|
|
97
100
|
/**
|
|
98
101
|
* Extract a specific event type from MapEvent union
|