@expofp/wayfinding 3.32.0 → 3.34.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/README.md +8 -5
- package/dist/createWayfinding.d.ts +4 -3
- package/dist/createWayfinding.js +2 -3
- package/dist/index.d.ts +6 -2
- package/dist/index.js +4 -1
- package/dist/renderer/createWayfindingRenderer.d.ts +2 -1
- package/dist/renderer/createWayfindingRenderer.js +7 -4
- package/dist/renderer/iconManager.d.ts +10 -3
- package/dist/renderer/iconManager.js +51 -15
- package/dist/renderer/index.d.ts +2 -0
- package/dist/renderer/index.js +1 -0
- package/dist/renderer/layerManager.d.ts +11 -13
- package/dist/renderer/layerManager.js +7 -23
- package/dist/renderer/layers.d.ts +39 -0
- package/dist/renderer/layers.js +62 -0
- package/dist/renderer/routeLineManager.d.ts +5 -5
- package/dist/renderer/routeLineManager.js +49 -33
- package/dist/renderer/trailManager.d.ts +5 -6
- package/dist/renderer/trailManager.js +26 -44
- package/dist/renderer/types.d.ts +25 -40
- package/dist/runtime/createWayfindingRuntime.d.ts +1 -1
- package/dist/runtime/createWayfindingRuntime.js +4 -15
- package/dist/runtime/endpointView.d.ts +1 -2
- package/dist/runtime/endpointView.js +1 -3
- package/dist/runtime/index.d.ts +1 -1
- package/dist/runtime/positionTrailView.d.ts +1 -2
- package/dist/runtime/positionTrailView.js +2 -2
- package/dist/runtime/positionView.d.ts +1 -2
- package/dist/runtime/positionView.js +3 -2
- package/dist/runtime/routeLinesView.d.ts +1 -3
- package/dist/runtime/routeLinesView.js +3 -11
- package/dist/runtime/trailView.d.ts +1 -2
- package/dist/runtime/trailView.js +2 -5
- package/dist/runtime/transitionView.d.ts +1 -2
- package/dist/runtime/transitionView.js +1 -2
- package/dist/runtime/types.d.ts +0 -8
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function createTrailView({ renderer, iconProvider, floorContext,
|
|
1
|
+
export function createTrailView({ renderer, iconProvider, floorContext, }) {
|
|
2
2
|
const activeSlots = new Set();
|
|
3
3
|
/**
|
|
4
4
|
* Trails share one global layer (not per-floor). In scoped-floor mode the
|
|
@@ -25,10 +25,7 @@ export function createTrailView({ renderer, iconProvider, floorContext, layer, }
|
|
|
25
25
|
clearSlot(slot);
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
renderer.setTrail(slot, from, to, {
|
|
29
|
-
canvas: iconProvider.getIcon('trail').canvas,
|
|
30
|
-
layer,
|
|
31
|
-
});
|
|
28
|
+
renderer.setTrail(slot, from, to, { canvas: iconProvider.getIcon('trail').canvas });
|
|
32
29
|
activeSlots.add(slot);
|
|
33
30
|
},
|
|
34
31
|
clear(slot) {
|
|
@@ -6,12 +6,11 @@ interface TransitionView {
|
|
|
6
6
|
place(routeLines: RouteLine[]): void;
|
|
7
7
|
clear(): void;
|
|
8
8
|
}
|
|
9
|
-
export declare function createTransitionView({ renderer, iconProvider, floorContext, onTransitionClick,
|
|
9
|
+
export declare function createTransitionView({ renderer, iconProvider, floorContext, onTransitionClick, }: {
|
|
10
10
|
renderer: Pick<WayfindingRenderer, 'setIcon' | 'clearIcons'>;
|
|
11
11
|
iconProvider: Pick<IconProvider, 'getIcon'>;
|
|
12
12
|
floorContext: Pick<FloorContext, 'showAllFloors' | 'getActiveFloor' | 'getFloorOrder'>;
|
|
13
13
|
onTransitionClick: (point: TransitionPointDef) => void;
|
|
14
|
-
layer: string;
|
|
15
14
|
}): TransitionView;
|
|
16
15
|
export {};
|
|
17
16
|
//# sourceMappingURL=transitionView.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { computeTransitionPoints } from '../core/index.js';
|
|
2
2
|
const TRANSITION_ICON_NAME = 'transition';
|
|
3
|
-
export function createTransitionView({ renderer, iconProvider, floorContext, onTransitionClick,
|
|
3
|
+
export function createTransitionView({ renderer, iconProvider, floorContext, onTransitionClick, }) {
|
|
4
4
|
return {
|
|
5
5
|
place(routeLines) {
|
|
6
6
|
renderer.clearIcons(TRANSITION_ICON_NAME);
|
|
@@ -26,7 +26,6 @@ export function createTransitionView({ renderer, iconProvider, floorContext, onT
|
|
|
26
26
|
for (const [index, point] of transitionPoints.entries()) {
|
|
27
27
|
renderer.setIcon(TRANSITION_ICON_NAME, {
|
|
28
28
|
canvas: iconProvider.getIcon(iconNameFor(point.role, point.direction)).canvas,
|
|
29
|
-
layer,
|
|
30
29
|
x: point.x,
|
|
31
30
|
y: point.y,
|
|
32
31
|
cardinalSnap: true,
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -18,13 +18,6 @@ export interface PositionInput {
|
|
|
18
18
|
/** Heading in degrees. Absent → no rotation (dot variant). */
|
|
19
19
|
readonly heading?: number;
|
|
20
20
|
}
|
|
21
|
-
export interface LayerNames {
|
|
22
|
-
readonly points: string;
|
|
23
|
-
readonly trail: string;
|
|
24
|
-
readonly lines: string;
|
|
25
|
-
readonly linesAnimated: string;
|
|
26
|
-
readonly currentPosition: string;
|
|
27
|
-
}
|
|
28
21
|
export interface SetRouteInput {
|
|
29
22
|
readonly from: RouteEndpoint;
|
|
30
23
|
readonly to: RouteEndpoint;
|
|
@@ -54,7 +47,6 @@ export interface WayfindingRuntimeConfig {
|
|
|
54
47
|
readonly renderer: WayfindingRenderer;
|
|
55
48
|
readonly iconProvider: IconProvider;
|
|
56
49
|
readonly floorContext: FloorContext;
|
|
57
|
-
readonly layers: LayerNames;
|
|
58
50
|
readonly snapThreshold: number;
|
|
59
51
|
/** Plan-scale-aware off-route reroute distance (SVG units). */
|
|
60
52
|
readonly rerouteThreshold: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/wayfinding",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.34.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "ExpoFP SDK internal: framework-neutral wayfinding (routing, snapping, scene rendering)",
|
|
6
6
|
"homepage": "https://developer.expofp.com/",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"ngraph.graph": "^19.1.0",
|
|
36
36
|
"tslib": "^2.3.0",
|
|
37
|
-
"@expofp/geometry": "3.
|
|
37
|
+
"@expofp/geometry": "3.34.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@expofp/renderer": "3.
|
|
40
|
+
"@expofp/renderer": "3.34.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@expofp/renderer": "3.
|
|
43
|
+
"@expofp/renderer": "3.34.0"
|
|
44
44
|
}
|
|
45
45
|
}
|