@expofp/floorplan 3.45.10 → 3.45.12
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/browser/{Button-Cn1vdWpK.js → Button-CRDP5tCg.js} +5 -5
- package/dist/browser/{CookieConsent-B86DJhbx.js → CookieConsent-BsPfYrwB.js} +7 -7
- package/dist/browser/{Debug-DB1mRd90.js → Debug-BecJzEG-.js} +7 -7
- package/dist/browser/{DebugTools-IbULZveE.js → DebugTools-DS4bgIEf.js} +6 -6
- package/dist/browser/{Demo-CqPR8hsE.js → Demo-D7FBxB3R.js} +9 -9
- package/dist/browser/{Free-B1xsBVOL.js → Free-DnjUGTjD.js} +10 -10
- package/dist/browser/{GalleryContainer-H_2tKz7h.js → GalleryContainer-Bj8NAG3S.js} +11 -11
- package/dist/browser/{GpsLoader-CnvIlzWW.js → GpsLoader-C05PU1j1.js} +13 -13
- package/dist/browser/{KioskStore-Dtdh2J4k.js → KioskStore-BVCEYCzk.js} +10 -10
- package/dist/browser/{LayerStore-SBDWbV0w.js → LayerStore-k2gvCLhr.js} +1867 -1862
- package/dist/browser/{MaplibreAdapter-pvULARk2.js → MaplibreAdapter-DFo29ESa.js} +144 -144
- package/dist/browser/{ModalContainer-D1h6LZB2.js → ModalContainer-BcElOeJ-.js} +10 -10
- package/dist/browser/{PermissionNotice-BfdlHWCQ.js → PermissionNotice-Bu9vqb_4.js} +6 -6
- package/dist/browser/{RouteStore-DbHHcj0h.js → RouteStore-LJeUl8tg.js} +127 -127
- package/dist/browser/{SetKioskMode-DNH_BNX4.js → SetKioskMode-CaQ4UMCy.js} +14 -14
- package/dist/browser/{ShowKiosk-qPmQOL4G.js → ShowKiosk-BcAeJ0Fi.js} +10 -10
- package/dist/browser/{UIState-CMIMqMqX.js → UIState-X5Q9PwMX.js} +89 -89
- package/dist/browser/{ViewerMenuPanel-P3LG6zDW.js → ViewerMenuPanel-BnUwfWS9.js} +11 -11
- package/dist/browser/{add-debug-secret-listener-CoOEwFmI.js → add-debug-secret-listener-DneFnknI.js} +1 -1
- package/dist/browser/{adopt-global-settings-ruN5U0qT.js → adopt-global-settings-DgH2Nn_8.js} +9 -9
- package/dist/browser/{boolean-editor-rVXdWa2W.js → boolean-editor-BHGGEMnO.js} +9 -9
- package/dist/browser/{bootIntercom-uAQFMl_Y.js → bootIntercom-BKRjfcRC.js} +2 -2
- package/dist/browser/bundle.json +85 -85
- package/dist/browser/{camera-events-B81jOQQJ.js → camera-events-Bp5aMamY.js} +1 -1
- package/dist/browser/{classnames-DGlmSG5g.js → classnames-CzqYMEz4.js} +2 -2
- package/dist/browser/{client-BV8CXptc.js → client-BekOsoIf.js} +5 -5
- package/dist/browser/{components-BviMGmcU.js → components-D1oyhcDF.js} +151 -151
- package/dist/browser/{create-live-plan-zgR26apm.js → create-live-plan-aMAiUYTV.js} +73 -73
- package/dist/browser/{debug-context-BzYX4R05.js → debug-context-1NBU7EsG.js} +5 -5
- package/dist/browser/{debug-overlay-DD26ktTR.js → debug-overlay-DjvhIY8H.js} +10 -10
- package/dist/browser/{debug-ui-DAUh0PoT.js → debug-ui-flULqhXs.js} +6 -6
- package/dist/browser/{dist-DUMP9Ngs.js → dist-BTo6i8Hu.js} +6 -6
- package/dist/browser/{dist-CxbqGkvV.js → dist-BxP9tL6r.js} +5 -5
- package/dist/browser/{dist-d3SiKCT6.js → dist-CIlit6Zo.js} +3 -3
- package/dist/browser/{efp-debug-init-ClI_mZe_.js → efp-debug-init-BSFBVV1y.js} +3 -3
- package/dist/browser/{enum-editor-BSkeY63c.js → enum-editor-CQ1DXCzl.js} +4 -4
- package/dist/browser/{es5-BXMfWl58.js → es5-BIr-i8Ja.js} +2 -2
- package/dist/browser/{event-head-COBKP4DX.js → event-head-BZOaCqbu.js} +1 -1
- package/dist/browser/{event-not-found-CiSyp3iV.js → event-not-found-CJL8MZjO.js} +3 -3
- package/dist/browser/{event-scoped-cache-tvMtbdwa.js → event-scoped-cache-C9DjEqlr.js} +2 -2
- package/dist/browser/{expofpUrl-rAb79DIE.js → expofpUrl-CY5ITSBJ.js} +1 -1
- package/dist/browser/{exports-bjuTfLa2.js → exports-BS9yuUDe.js} +1 -1
- package/dist/browser/{favicon-BFIFqOtn.js → favicon-xBZv-cxl.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CWMyBasR.js → fetch-retry.umd-DcxeSTii.js} +2 -2
- package/dist/browser/{flex-Rzrsjfvc.js → flex-5FqYfEu4.js} +5 -5
- package/dist/browser/{floorplan.loader-Bw97TZhZ.js → floorplan.loader-BNTd5WnJ.js} +12 -12
- package/dist/browser/{floorplan.ready-DTWewU99.js → floorplan.ready-B3MuQfII.js} +30 -30
- package/dist/browser/{framing-rect-eOrPRnEg.js → framing-rect-VUrV6oqA.js} +355 -363
- package/dist/browser/{freeBanner-BC-9yp8S.js → freeBanner-CJNLRo6z.js} +2 -2
- package/dist/browser/{fuse-DZJPc4yg.js → fuse-B9cOk_lN.js} +2 -2
- package/dist/browser/{i18n-BJiBcpGl.js → i18n-Bg9oysVh.js} +6 -6
- package/dist/browser/index.js +17 -17
- package/dist/browser/{index.module-BIyLBspP.js → index.module-Cb8dhnVA.js} +4 -4
- package/dist/browser/{init-ui-Cj1apWvD.js → init-ui-idRwV029.js} +13 -13
- package/dist/browser/{integrateKiosk-CznUWFW9.js → integrateKiosk-B74sTu2o.js} +5 -5
- package/dist/browser/{is-debug-CV5nQhPi.js → is-debug-h_MAA0vT.js} +4 -4
- package/dist/browser/{is-own-domain-C4azibE9.js → is-own-domain-C0yte9ZX.js} +1 -1
- package/dist/browser/{is-webview-BzqxZB25.js → is-webview-Vzf66YAj.js} +1 -1
- package/dist/browser/{jsx-runtime-5PBs1pEQ.js → jsx-runtime-CEn3DmvQ.js} +2 -2
- package/dist/browser/{kiosk-mode-B6qtwO0G.js → kiosk-mode-DvHrNFsy.js} +3 -3
- package/dist/browser/{kiosk-record-g2_Wdj6A.js → kiosk-record-DJlPleCt.js} +1 -1
- package/dist/browser/{kioskApi-ChUHRhgw.js → kioskApi-PfBFbTr5.js} +7 -7
- package/dist/browser/{lib-CbLqEjFm.js → lib-D72VRmCp.js} +3 -3
- package/dist/browser/{loadImage-NV7Sut6Q.js → loadImage-C9WhBEVX.js} +1 -1
- package/dist/browser/{logDeviceInfo-Bj7a8S5-.js → logDeviceInfo-CLreGIbg.js} +9 -9
- package/dist/browser/{mobx-tOUQ4H8i.js → mobx-CF4qOwIb.js} +4 -4
- package/dist/browser/{mobx.module-DmU1vhUy.js → mobx.module-Bld24lDp.js} +1 -1
- package/dist/browser/{optional-boolean-editor-C7qYMklB.js → optional-boolean-editor-BFjLyngH.js} +3 -3
- package/dist/browser/{optional-enum-editor-C1YeLduB.js → optional-enum-editor-Cn22Eotn.js} +4 -4
- package/dist/browser/{optional-string-editor-DKHOSrcb.js → optional-string-editor-DtPGGsjm.js} +4 -4
- package/dist/browser/{particles.min-Bi0Olzpy.js → particles.min-CNpS5I-V.js} +2 -2
- package/dist/browser/{react-dom-CokSt-Nr.js → react-dom-Dmeqr6Ih.js} +3 -3
- package/dist/browser/{react-DhABhf7P.js → react-jM_gvhh_.js} +2 -2
- package/dist/browser/{rolldown-runtime-Xs9k3_fC.js → rolldown-runtime-BvcUA6Ul.js} +1 -1
- package/dist/browser/{scene-sTDBQo8U.js → scene-C2Ph7vMa.js} +9 -9
- package/dist/browser/{scheduler-BOSQkAHm.js → scheduler-VjuMtUPg.js} +2 -2
- package/dist/browser/{select-zIJ_mWmQ.js → select-OEbn0UxW.js} +10 -10
- package/dist/browser/{settings-BGYsl7pu.js → settings-BpKs8Nb_.js} +2 -2
- package/dist/browser/{settings-item-ZEeKLhxL.js → settings-item-Ci9bHqX0.js} +6 -6
- package/dist/browser/{store-BCPx9hgL.js → store-DxzMbDAn.js} +2 -2
- package/dist/browser/{string-editor-5wVa_A4f.js → string-editor-DeGRtfp9.js} +4 -4
- package/dist/browser/{text-field-CttplX4-.js → text-field-Bnb1278l.js} +5 -5
- package/dist/browser/{theme-CaYU9Gun.js → theme-aRuFDTe2.js} +8 -8
- package/dist/browser/{ui-BYT86KhK.js → ui-BDhcNOy1.js} +8 -8
- package/dist/browser/{useRenderTarget-BbHxq2ss.js → useRenderTarget-BtqSLLkH.js} +4 -4
- package/dist/browser/{viewport-B2CPk_gF.js → viewport-BcTdYyUU.js} +3 -3
- package/dist/browser/{wayfinding-6SGJbKrj.js → wayfinding-Cyts8CmL.js} +228 -228
- package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/engine/utils/rotation.d.ts +8 -0
- package/dist/esm/engine/utils/rotation.js +1 -1
- package/package.json +10 -10
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.12" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "859e3db6-e7a2-4092-a448-61d436d2d8d2", e._sentryDebugIdIdentifier = "sentry-dbid-859e3db6-e7a2-4092-a448-61d436d2d8d2");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
10
|
-
import { o as n } from "./is-debug-
|
|
11
|
-
import { i as r, l as i } from "./mobx.module-
|
|
12
|
-
import {
|
|
9
|
+
import { r as e, t } from "./rolldown-runtime-BvcUA6Ul.js";
|
|
10
|
+
import { o as n } from "./is-debug-h_MAA0vT.js";
|
|
11
|
+
import { i as r, l as i } from "./mobx.module-Bld24lDp.js";
|
|
12
|
+
import { At as a, Ct as o, Et as s, Gt as c, Kt as l, Ot as u, Qt as d, Tt as f, an as p, bt as m, cn as h, in as g, kt as _, ln as v, mt as y, rn as b, rt as x, sn as S, tn as C, un as w, xt as T, yt as E } from "./LayerStore-k2gvCLhr.js";
|
|
13
13
|
//#region ../geometry/src/lib/geo.ts
|
|
14
14
|
var D = 6371e3;
|
|
15
15
|
function O(e, t) {
|
|
16
|
-
let n =
|
|
16
|
+
let n = S(e.lat), r = S(t.lat), i = S(t.lat - e.lat), a = S(t.lng - e.lng), o = Math.sin(i / 2) * Math.sin(i / 2) + Math.cos(n) * Math.cos(r) * Math.sin(a / 2) * Math.sin(a / 2);
|
|
17
17
|
return D * (2 * Math.atan2(Math.sqrt(o), Math.sqrt(1 - o)));
|
|
18
18
|
}
|
|
19
19
|
function k(e, t) {
|
|
20
|
-
let n =
|
|
21
|
-
return (
|
|
20
|
+
let n = S(e.lat), r = S(t.lat), i = S(t.lng - e.lng), a = Math.sin(i) * Math.cos(r), o = Math.cos(n) * Math.sin(r) - Math.sin(n) * Math.cos(r) * Math.cos(i);
|
|
21
|
+
return (w(Math.atan2(a, o)) + 360) % 360;
|
|
22
22
|
}
|
|
23
23
|
function A(e, t, n) {
|
|
24
|
-
let r = t / D, i =
|
|
24
|
+
let r = t / D, i = S(n), a = S(e.lat), o = S(e.lng), s = Math.asin(Math.sin(a) * Math.cos(r) + Math.cos(a) * Math.sin(r) * Math.cos(i)), c = o + Math.atan2(Math.sin(i) * Math.sin(r) * Math.cos(a), Math.cos(r) - Math.sin(a) * Math.sin(s));
|
|
25
25
|
return {
|
|
26
|
-
lat:
|
|
27
|
-
lng:
|
|
26
|
+
lat: w(s),
|
|
27
|
+
lng: w(v(c))
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
function j(e, t, n) {
|
|
31
|
-
let r = n.local.x - t.local.x, i = n.local.y - t.local.y, a = Math.sqrt(r * r + i * i), o = e.x - t.local.x, s = e.y - t.local.y, c = Math.sqrt(o * o + s * s), l =
|
|
31
|
+
let r = n.local.x - t.local.x, i = n.local.y - t.local.y, a = Math.sqrt(r * r + i * i), o = e.x - t.local.x, s = e.y - t.local.y, c = Math.sqrt(o * o + s * s), l = w(Math.atan2(i, r)), u = w(Math.atan2(s, o)) - l, d = (a === 0 ? 0 : c / a) * O(t.geo, n.geo), f = k(t.geo, n.geo);
|
|
32
32
|
return A(t.geo, d, f + u);
|
|
33
33
|
}
|
|
34
34
|
function ee(e, t, n) {
|
|
35
|
-
let r = O(t.geo, n.geo), i = k(t.geo, n.geo), a = O(t.geo, e), o = k(t.geo, e) - i, s = r === 0 ? 0 : a / r, c = n.local.x - t.local.x, l = n.local.y - t.local.y, u = Math.sqrt(c * c + l * l), d = Math.atan2(l, c), f =
|
|
35
|
+
let r = O(t.geo, n.geo), i = k(t.geo, n.geo), a = O(t.geo, e), o = k(t.geo, e) - i, s = r === 0 ? 0 : a / r, c = n.local.x - t.local.x, l = n.local.y - t.local.y, u = Math.sqrt(c * c + l * l), d = Math.atan2(l, c), f = h(u * s, d + S(o));
|
|
36
36
|
return {
|
|
37
37
|
x: t.local.x + f.x,
|
|
38
38
|
y: t.local.y + f.y
|
|
@@ -40,20 +40,20 @@ function ee(e, t, n) {
|
|
|
40
40
|
}
|
|
41
41
|
//#endregion
|
|
42
42
|
//#region ../geometry/src/lib/line.ts
|
|
43
|
-
function
|
|
44
|
-
return
|
|
43
|
+
function M(e) {
|
|
44
|
+
return g(e.p0, e.p1);
|
|
45
45
|
}
|
|
46
|
-
function
|
|
47
|
-
return
|
|
46
|
+
function te(e, t) {
|
|
47
|
+
return p(e.p0, e.p1, .5, t);
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function N(e, t) {
|
|
50
50
|
return Math.atan2(t.y - e.y, t.x - e.x);
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function P(e, t, n) {
|
|
53
53
|
var r;
|
|
54
54
|
let i = e.p0.x, a = e.p0.y, o = e.p1.x, s = e.p1.y, c = t.x, l = t.y, u = o - i, d = s - a, f = u * u + d * d, p;
|
|
55
55
|
f === 0 ? p = 0 : (p = ((c - i) * u + (l - a) * d) / f, p = p < 0 ? 0 : p > 1 ? 1 : p);
|
|
56
|
-
let m = (n == null ? new
|
|
56
|
+
let m = (n == null ? new b() : n).set(i + u * p, a + d * p, (r = e.elevation) == null ? 0 : r), h = g({
|
|
57
57
|
x: c,
|
|
58
58
|
y: l
|
|
59
59
|
}, m);
|
|
@@ -65,21 +65,21 @@ function N(e, t, n) {
|
|
|
65
65
|
}
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region src/data/fpGeo.ts
|
|
68
|
-
function
|
|
69
|
-
return
|
|
68
|
+
function F() {
|
|
69
|
+
return c().__fpGeo;
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region src/utils/planBearing.ts
|
|
73
|
-
function
|
|
73
|
+
function ne(e) {
|
|
74
74
|
return (180 - 180 / Math.PI * Math.log(Math.tan(Math.PI / 4 + e * Math.PI / 360))) / 360;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
77
|
-
let n = (Math.atan2(
|
|
76
|
+
function re(e, t) {
|
|
77
|
+
let n = (Math.atan2(ne(t.lat) - ne(e.lat), (t.lng - e.lng) / 360) - Math.atan2(t.y - e.y, t.x - e.x)) * 180 / Math.PI % 360;
|
|
78
78
|
return Number.isFinite(n) ? (n + 360) % 360 : NaN;
|
|
79
79
|
}
|
|
80
80
|
//#endregion
|
|
81
81
|
//#region src/utils/gps.ts
|
|
82
|
-
function
|
|
82
|
+
function I(e) {
|
|
83
83
|
return [{
|
|
84
84
|
local: {
|
|
85
85
|
x: e.p0.x,
|
|
@@ -100,47 +100,47 @@ function F(e) {
|
|
|
100
100
|
}
|
|
101
101
|
}];
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function L(e) {
|
|
104
104
|
return typeof e == "number" && Number.isFinite(e);
|
|
105
105
|
}
|
|
106
|
-
function
|
|
107
|
-
if (!(
|
|
106
|
+
function ie({ lat: e, lng: t, angle: r }, i) {
|
|
107
|
+
if (!(L(e) && L(t))) return null;
|
|
108
108
|
let { p0: a, p2: o } = i, s = O(a, o);
|
|
109
|
-
if (!
|
|
109
|
+
if (!L(s) || s <= 0) return n.warn("Invalid GPS config: zero or negative distance", {
|
|
110
110
|
fullGpsDistance: s,
|
|
111
111
|
p0: a,
|
|
112
112
|
p2: o
|
|
113
113
|
}), null;
|
|
114
|
-
let [c, l] =
|
|
114
|
+
let [c, l] = I(i), u = ee({
|
|
115
115
|
lat: e,
|
|
116
116
|
lng: t
|
|
117
117
|
}, c, l);
|
|
118
|
-
return
|
|
118
|
+
return M({
|
|
119
119
|
p0: u,
|
|
120
|
-
p1:
|
|
120
|
+
p1: te({
|
|
121
121
|
p0: a,
|
|
122
122
|
p1: o
|
|
123
123
|
})
|
|
124
|
-
}) > 5 *
|
|
124
|
+
}) > 5 * g(a, o) ? (n.warn("Current position too far"), null) : {
|
|
125
125
|
...u,
|
|
126
126
|
angle: r
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
let [r, i] =
|
|
129
|
+
function ae(e, t, n) {
|
|
130
|
+
let [r, i] = I(n), { lat: a, lng: o } = j({
|
|
131
131
|
x: e,
|
|
132
132
|
y: t
|
|
133
133
|
}, r, i);
|
|
134
134
|
return [o, a];
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function oe(e) {
|
|
137
137
|
var t, n;
|
|
138
|
-
let r = (t =
|
|
138
|
+
let r = (t = F()) == null || (t = t.properties) == null ? void 0 : t.config, i = r ? re(r.p0, r.p2) : NaN, a = Number.isFinite(i) ? i : (n = r == null ? void 0 : r.bearing) == null ? 0 : n;
|
|
139
139
|
return (e == null ? void 0 : e.angle) === null ? 0 : (((e.angle - a) % 360 + 360) % 360 - 90 + 360) % 360;
|
|
140
140
|
}
|
|
141
141
|
//#endregion
|
|
142
142
|
//#region ../wayfinding/src/core/graph/buildGraph.ts
|
|
143
|
-
function
|
|
143
|
+
function se(e, t, n) {
|
|
144
144
|
var r, i;
|
|
145
145
|
return t.build(e.getLines(), {
|
|
146
146
|
oriented: (r = n.oriented) == null || r,
|
|
@@ -153,7 +153,7 @@ function ce(e, t, n) {
|
|
|
153
153
|
}
|
|
154
154
|
//#endregion
|
|
155
155
|
//#region ../../node_modules/.pnpm/ngraph.events@1.4.0/node_modules/ngraph.events/dist/ngraph.events.cjs
|
|
156
|
-
var
|
|
156
|
+
var ce = /* @__PURE__ */ t(((e, t) => {
|
|
157
157
|
function n(e) {
|
|
158
158
|
i(e);
|
|
159
159
|
let t = r(e);
|
|
@@ -202,12 +202,12 @@ var le = /* @__PURE__ */ t(((e, t) => {
|
|
|
202
202
|
for (let n = 0; n < t.length; ++n) if (e.hasOwnProperty(t[n])) throw Error("Subject cannot be eventified, since it already has property '" + t[n] + "'");
|
|
203
203
|
}
|
|
204
204
|
t.exports = n;
|
|
205
|
-
})),
|
|
205
|
+
})), le = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
206
206
|
t.exports = r;
|
|
207
|
-
var n =
|
|
207
|
+
var n = ce();
|
|
208
208
|
function r(e) {
|
|
209
209
|
if (e = e || {}, "uniqueLinkId" in e && (console.warn("ngraph.graph: Starting from version 0.14 `uniqueLinkId` is deprecated.\nUse `multigraph` option instead\n", "\n", "Note: there is also change in default behavior: From now on each graph\nis considered to be not a multigraph by default (each edge is unique)."), e.multigraph = e.uniqueLinkId), e.multigraph === void 0 && (e.multigraph = !1), typeof Map != "function") throw Error("ngraph.graph requires `Map` to be defined. Please polyfill it before using ngraph");
|
|
210
|
-
var t = /* @__PURE__ */ new Map(), r = [], l = {}, u = 0, d = e.multigraph ? E : T, f = [], p =
|
|
210
|
+
var t = /* @__PURE__ */ new Map(), r = [], l = {}, u = 0, d = e.multigraph ? E : T, f = [], p = F, m = F, h = F, g = F, _ = {
|
|
211
211
|
addNode: x,
|
|
212
212
|
addLink: w,
|
|
213
213
|
removeLink: A,
|
|
@@ -218,9 +218,9 @@ var le = /* @__PURE__ */ t(((e, t) => {
|
|
|
218
218
|
getLinksCount: O,
|
|
219
219
|
getNodesCount: D,
|
|
220
220
|
getLinks: k,
|
|
221
|
-
forEachNode:
|
|
222
|
-
forEachLinkedNode:
|
|
223
|
-
forEachLink:
|
|
221
|
+
forEachNode: I,
|
|
222
|
+
forEachLinkedNode: te,
|
|
223
|
+
forEachLink: M,
|
|
224
224
|
beginUpdate: h,
|
|
225
225
|
endUpdate: g,
|
|
226
226
|
clear: ee,
|
|
@@ -233,7 +233,7 @@ var le = /* @__PURE__ */ t(((e, t) => {
|
|
|
233
233
|
var e = _.on;
|
|
234
234
|
_.on = t;
|
|
235
235
|
function t() {
|
|
236
|
-
return _.beginUpdate = h =
|
|
236
|
+
return _.beginUpdate = h = ne, _.endUpdate = g = re, p = y, m = b, _.on = e, e.apply(_, arguments);
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
function y(e, t) {
|
|
@@ -313,38 +313,38 @@ var le = /* @__PURE__ */ t(((e, t) => {
|
|
|
313
313
|
return null;
|
|
314
314
|
}
|
|
315
315
|
function ee() {
|
|
316
|
-
h(),
|
|
316
|
+
h(), I(function(e) {
|
|
317
317
|
C(e.id);
|
|
318
318
|
}), g();
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function M(e) {
|
|
321
321
|
var t, n;
|
|
322
322
|
if (typeof e == "function") for (t = 0, n = r.length; t < n; ++t) e(r[t]);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function te(e, t, n) {
|
|
325
325
|
var r = S(e);
|
|
326
|
-
if (r && r.links && typeof t == "function") return n ?
|
|
326
|
+
if (r && r.links && typeof t == "function") return n ? P(r.links, e, t) : N(r.links, e, t);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function N(e, n, r) {
|
|
329
329
|
for (var i, a = 0; a < e.length; ++a) {
|
|
330
330
|
var o = e[a], s = o.fromId === n ? o.toId : o.fromId;
|
|
331
331
|
if (i = r(t.get(s), o), i) return !0;
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
|
-
function
|
|
334
|
+
function P(e, n, r) {
|
|
335
335
|
for (var i, a = 0; a < e.length; ++a) {
|
|
336
336
|
var o = e[a];
|
|
337
337
|
if (o.fromId === n && (i = r(t.get(o.toId), o), i)) return !0;
|
|
338
338
|
}
|
|
339
339
|
}
|
|
340
|
-
function
|
|
341
|
-
function
|
|
340
|
+
function F() {}
|
|
341
|
+
function ne() {
|
|
342
342
|
u += 1;
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function re() {
|
|
345
345
|
--u, u === 0 && f.length > 0 && (_.fire("changed", f), f.length = 0);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function I(e) {
|
|
348
348
|
if (typeof e != "function") throw Error("Function is expected to iterate over graph nodes. You passed " + e);
|
|
349
349
|
for (var n = t.values(), r = n.next(); !r.done;) {
|
|
350
350
|
if (e(r.value)) return !0;
|
|
@@ -371,28 +371,28 @@ var le = /* @__PURE__ */ t(((e, t) => {
|
|
|
371
371
|
function c(e, t) {
|
|
372
372
|
return e.toString() + "👉 " + t.toString();
|
|
373
373
|
}
|
|
374
|
-
})))(), 1),
|
|
374
|
+
})))(), 1), R = (e) => {
|
|
375
375
|
var t;
|
|
376
376
|
return `${(t = e.layer) == null ? "" : t}_${e.x}_${e.y}`;
|
|
377
|
-
},
|
|
377
|
+
}, ue = 1, z = (e, t) => {
|
|
378
378
|
var n, r;
|
|
379
|
-
return ((n = e.layer) == null ? "" : n) === ((r = t.layer) == null ? "" : r) &&
|
|
380
|
-
},
|
|
381
|
-
function
|
|
382
|
-
return e.find((e) =>
|
|
379
|
+
return ((n = e.layer) == null ? "" : n) === ((r = t.layer) == null ? "" : r) && g(e, t) <= ue;
|
|
380
|
+
}, de = (e, t, n) => z(e.p0, t) && z(e.p1, n) || z(e.p0, n) && z(e.p1, t);
|
|
381
|
+
function fe(e, t, n) {
|
|
382
|
+
return e.find((e) => de(e, t, n));
|
|
383
383
|
}
|
|
384
|
-
var
|
|
385
|
-
function
|
|
384
|
+
var pe = S(5);
|
|
385
|
+
function me(e, t) {
|
|
386
386
|
if (e.virtual !== t.virtual) return !1;
|
|
387
|
-
let n =
|
|
388
|
-
return i > Math.PI && (i = 2 * Math.PI - i), i <=
|
|
387
|
+
let n = N(e.p0, e.p1), r = N(t.p0, t.p1), i = Math.abs(r - n);
|
|
388
|
+
return i > Math.PI && (i = 2 * Math.PI - i), i <= pe;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
390
|
+
function he(e, t) {
|
|
391
391
|
let n = [];
|
|
392
392
|
for (let r = 1; r < e.length; r++) {
|
|
393
|
-
let i = e[r - 1], a = e[r], o =
|
|
393
|
+
let i = e[r - 1], a = e[r], o = fe(t, i, a);
|
|
394
394
|
if (!o) {
|
|
395
|
-
console.warn(`WF: buildRouteSegments — no line found between ${
|
|
395
|
+
console.warn(`WF: buildRouteSegments — no line found between ${R(i)} and ${R(a)}`);
|
|
396
396
|
continue;
|
|
397
397
|
}
|
|
398
398
|
let s = {
|
|
@@ -400,7 +400,7 @@ function ge(e, t) {
|
|
|
400
400
|
p1: a,
|
|
401
401
|
virtual: o.virtual
|
|
402
402
|
}, c = n[n.length - 1];
|
|
403
|
-
c &&
|
|
403
|
+
c && me(c, s) ? n[n.length - 1] = {
|
|
404
404
|
...c,
|
|
405
405
|
p1: s.p1
|
|
406
406
|
} : n.push(s);
|
|
@@ -409,79 +409,79 @@ function ge(e, t) {
|
|
|
409
409
|
}
|
|
410
410
|
//#endregion
|
|
411
411
|
//#region ../wayfinding/src/core/graph/constants.ts
|
|
412
|
-
var
|
|
412
|
+
var ge = 1e4, _e = 1.01;
|
|
413
413
|
//#endregion
|
|
414
414
|
//#region ../wayfinding/src/core/graph/linkCost.ts
|
|
415
|
-
function
|
|
416
|
-
return
|
|
415
|
+
function ve(e) {
|
|
416
|
+
return g(e.p0, e.p1) / (e.weight || 4);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function ye(e) {
|
|
419
419
|
var t, n;
|
|
420
420
|
return ((t = e.p0.layer) == null ? "" : t) !== ((n = e.p1.layer) == null ? "" : n);
|
|
421
421
|
}
|
|
422
|
-
function
|
|
423
|
-
return e.virtual ? e.virtualLength == null ?
|
|
422
|
+
function be(e) {
|
|
423
|
+
return e.virtual ? e.virtualLength == null ? ye(e) ? ge : 0 : e.virtualLength : ve(e);
|
|
424
424
|
}
|
|
425
425
|
//#endregion
|
|
426
426
|
//#region ../wayfinding/src/core/graph/buildNGraph.ts
|
|
427
|
-
function
|
|
428
|
-
let { oriented: n, onlyAccessible: r } = t, i = (0,
|
|
427
|
+
function xe(e, t) {
|
|
428
|
+
let { oriented: n, onlyAccessible: r } = t, i = (0, le.default)();
|
|
429
429
|
for (let t of e) {
|
|
430
430
|
if (r && t.unaccessible) continue;
|
|
431
|
-
let e =
|
|
431
|
+
let e = R(t.p0), a = R(t.p1), o = be(t);
|
|
432
432
|
i.addLink(e, a, { distance: o }), n && !t.unidirection && i.addLink(a, e, { distance: o });
|
|
433
433
|
}
|
|
434
434
|
return i;
|
|
435
435
|
}
|
|
436
436
|
//#endregion
|
|
437
437
|
//#region ../wayfinding/src/core/graph/utils/a-star/defaultSettings.js
|
|
438
|
-
var
|
|
439
|
-
typeof Object.freeze == "function" && Object.freeze(
|
|
440
|
-
var
|
|
441
|
-
heuristic:
|
|
442
|
-
distance:
|
|
443
|
-
blocked:
|
|
444
|
-
compareFScore:
|
|
445
|
-
NO_PATH:
|
|
446
|
-
setHeapIndex:
|
|
447
|
-
setH1:
|
|
448
|
-
setH2:
|
|
449
|
-
compareF1Score:
|
|
450
|
-
compareF2Score:
|
|
438
|
+
var Se = [];
|
|
439
|
+
typeof Object.freeze == "function" && Object.freeze(Se);
|
|
440
|
+
var B = {
|
|
441
|
+
heuristic: Ce,
|
|
442
|
+
distance: we,
|
|
443
|
+
blocked: Te,
|
|
444
|
+
compareFScore: Ee,
|
|
445
|
+
NO_PATH: Se,
|
|
446
|
+
setHeapIndex: De,
|
|
447
|
+
setH1: Ae,
|
|
448
|
+
setH2: je,
|
|
449
|
+
compareF1Score: Oe,
|
|
450
|
+
compareF2Score: ke
|
|
451
451
|
};
|
|
452
|
-
function
|
|
452
|
+
function Ce() {
|
|
453
453
|
return 0;
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function we() {
|
|
456
456
|
return 1;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function Te() {
|
|
459
459
|
return !1;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
461
|
+
function Ee(e, t) {
|
|
462
462
|
return e.fScore - t.fScore;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function De(e, t) {
|
|
465
465
|
e.heapIndex = t;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Oe(e, t) {
|
|
468
468
|
return e.f1 - t.f1;
|
|
469
469
|
}
|
|
470
|
-
function
|
|
470
|
+
function ke(e, t) {
|
|
471
471
|
return e.f2 - t.f2;
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function Ae(e, t) {
|
|
474
474
|
e.h1 = t;
|
|
475
475
|
}
|
|
476
|
-
function
|
|
476
|
+
function je(e, t) {
|
|
477
477
|
e.h2 = t;
|
|
478
478
|
}
|
|
479
479
|
//#endregion
|
|
480
480
|
//#region ../wayfinding/src/core/graph/utils/a-star/makeSearchStatePool.js
|
|
481
|
-
function
|
|
481
|
+
function Me(e) {
|
|
482
482
|
this.node = e, this.parent = null, this.closed = !1, this.open = 0, this.distanceToSource = Infinity, this.fScore = Infinity, this.heapIndex = -1;
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function Ne() {
|
|
485
485
|
let e = 0, t = [];
|
|
486
486
|
return {
|
|
487
487
|
createNewState: r,
|
|
@@ -492,21 +492,21 @@ function Pe() {
|
|
|
492
492
|
}
|
|
493
493
|
function r(n) {
|
|
494
494
|
let r = t[e];
|
|
495
|
-
return r ? (r.node = n, r.parent = null, r.closed = !1, r.open = 0, r.distanceToSource = Infinity, r.fScore = Infinity, r.heapIndex = -1) : (r = new
|
|
495
|
+
return r ? (r.node = n, r.parent = null, r.closed = !1, r.open = 0, r.distanceToSource = Infinity, r.fScore = Infinity, r.heapIndex = -1) : (r = new Me(n), t[e] = r), e++, r;
|
|
496
496
|
}
|
|
497
497
|
}
|
|
498
498
|
//#endregion
|
|
499
499
|
//#region ../wayfinding/src/core/graph/utils/a-star/NodeHeap.js
|
|
500
|
-
function
|
|
501
|
-
if (!(this instanceof
|
|
502
|
-
if (Array.isArray(e) || (t = e, e = []), t = t || {}, this.data = e || [], this.length = this.data.length, this.compare = t.compare ||
|
|
500
|
+
function V(e, t) {
|
|
501
|
+
if (!(this instanceof V)) return new V(e, t);
|
|
502
|
+
if (Array.isArray(e) || (t = e, e = []), t = t || {}, this.data = e || [], this.length = this.data.length, this.compare = t.compare || Fe, this.setNodeId = t.setNodeId || Pe, this.length > 0) for (let e = this.length >> 1; e >= 0; e--) this._down(e);
|
|
503
503
|
if (t.setNodeId) for (let e = 0; e < this.length; ++e) this.setNodeId(this.data[e], e);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
function
|
|
505
|
+
function Pe() {}
|
|
506
|
+
function Fe(e, t) {
|
|
507
507
|
return e - t;
|
|
508
508
|
}
|
|
509
|
-
|
|
509
|
+
V.prototype = {
|
|
510
510
|
push: function(e) {
|
|
511
511
|
this.data.push(e), this.setNodeId(e, this.length), this.length++, this._up(this.length - 1);
|
|
512
512
|
},
|
|
@@ -542,16 +542,16 @@ B.prototype = {
|
|
|
542
542
|
};
|
|
543
543
|
//#endregion
|
|
544
544
|
//#region ../wayfinding/src/core/graph/utils/a-star/a-star.js
|
|
545
|
-
var
|
|
546
|
-
function
|
|
545
|
+
var Ie = B.NO_PATH;
|
|
546
|
+
function Le(e, t) {
|
|
547
547
|
t = t || {};
|
|
548
548
|
let n = t.oriented, r = t.blocked;
|
|
549
|
-
r || (r =
|
|
549
|
+
r || (r = B.blocked);
|
|
550
550
|
let i = t.heuristic;
|
|
551
|
-
i || (i =
|
|
551
|
+
i || (i = B.heuristic);
|
|
552
552
|
let a = t.distance;
|
|
553
|
-
a || (a =
|
|
554
|
-
let o =
|
|
553
|
+
a || (a = B.distance);
|
|
554
|
+
let o = Ne();
|
|
555
555
|
return { find: s };
|
|
556
556
|
function s(t, s) {
|
|
557
557
|
let c = e.getNode(t);
|
|
@@ -559,17 +559,17 @@ function Re(e, t) {
|
|
|
559
559
|
let l = e.getNode(s);
|
|
560
560
|
if (!l) throw Error("toId is not defined in this graph: " + s);
|
|
561
561
|
o.reset();
|
|
562
|
-
let u = /* @__PURE__ */ new Map(), d = new
|
|
563
|
-
compare:
|
|
564
|
-
setNodeId:
|
|
562
|
+
let u = /* @__PURE__ */ new Map(), d = new V({
|
|
563
|
+
compare: B.compareFScore,
|
|
564
|
+
setNodeId: B.setHeapIndex
|
|
565
565
|
}), f = o.createNewState(c);
|
|
566
566
|
u.set(t, f), f.fScore = i(c, l), f.distanceToSource = 0, d.push(f), f.open = 1;
|
|
567
567
|
let p;
|
|
568
568
|
for (; d.length > 0;) {
|
|
569
|
-
if (p = d.pop(),
|
|
569
|
+
if (p = d.pop(), Re(p, l)) return ze(p);
|
|
570
570
|
p.closed = !0, e.forEachLinkedNode(p.node.id, m, n);
|
|
571
571
|
}
|
|
572
|
-
return
|
|
572
|
+
return Ie;
|
|
573
573
|
function m(e, t) {
|
|
574
574
|
let n = u.get(e.id);
|
|
575
575
|
if (n || (n = o.createNewState(e), u.set(e.id, n)), n.closed || (n.open === 0 && (d.push(n), n.open = 1), r(e, p.node, t))) return;
|
|
@@ -578,17 +578,17 @@ function Re(e, t) {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Re(e, t) {
|
|
582
582
|
return e.node === t;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function ze(e) {
|
|
585
585
|
let t = [e.node], n = e.parent;
|
|
586
586
|
for (; n;) t.push(n.node), n = n.parent;
|
|
587
587
|
return t;
|
|
588
588
|
}
|
|
589
589
|
//#endregion
|
|
590
590
|
//#region ../wayfinding/src/core/graph/pathfinder/parseNodeId.ts
|
|
591
|
-
function
|
|
591
|
+
function H(e) {
|
|
592
592
|
let t = e.lastIndexOf("_"), n = e.lastIndexOf("_", t - 1);
|
|
593
593
|
if (n === -1) throw Error(`WF: invalid node ID format "${e}", expected "{layer}_{x}_{y}"`);
|
|
594
594
|
return [
|
|
@@ -599,35 +599,35 @@ function V(e) {
|
|
|
599
599
|
}
|
|
600
600
|
//#endregion
|
|
601
601
|
//#region ../wayfinding/src/core/graph/pathfinder/aStarPathFinder.ts
|
|
602
|
-
function
|
|
602
|
+
function Be() {
|
|
603
603
|
return function(e, t, n) {
|
|
604
604
|
let r = 1;
|
|
605
605
|
if (t.parent) {
|
|
606
|
-
let [, n, i] =
|
|
607
|
-
|
|
606
|
+
let [, n, i] = H(t.parent.node.id), [, a, o] = H(t.node.id), [, s, c] = H(e.id);
|
|
607
|
+
N({
|
|
608
608
|
x: n,
|
|
609
609
|
y: i
|
|
610
610
|
}, {
|
|
611
611
|
x: a,
|
|
612
612
|
y: o
|
|
613
|
-
}) !==
|
|
613
|
+
}) !== N({
|
|
614
614
|
x: a,
|
|
615
615
|
y: o
|
|
616
616
|
}, {
|
|
617
617
|
x: s,
|
|
618
618
|
y: c
|
|
619
|
-
}) && (r =
|
|
619
|
+
}) && (r = _e);
|
|
620
620
|
}
|
|
621
621
|
return r * n.data.distance;
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Ve() {
|
|
625
625
|
let e = null, t = null;
|
|
626
626
|
return {
|
|
627
627
|
build(n, r) {
|
|
628
|
-
t =
|
|
628
|
+
t = xe(n, r), e = Le(t, {
|
|
629
629
|
oriented: r.oriented,
|
|
630
|
-
distance:
|
|
630
|
+
distance: Be()
|
|
631
631
|
});
|
|
632
632
|
},
|
|
633
633
|
hasNode(e) {
|
|
@@ -637,7 +637,7 @@ function He() {
|
|
|
637
637
|
if (!e) return [];
|
|
638
638
|
let r = e.find(t, n);
|
|
639
639
|
return r.length ? r.map((e) => {
|
|
640
|
-
let [t, n, r] =
|
|
640
|
+
let [t, n, r] = H(e.id);
|
|
641
641
|
return {
|
|
642
642
|
id: e.id,
|
|
643
643
|
layer: t,
|
|
@@ -650,10 +650,10 @@ function He() {
|
|
|
650
650
|
}
|
|
651
651
|
//#endregion
|
|
652
652
|
//#region ../wayfinding/src/core/graph/graphCache.ts
|
|
653
|
-
function
|
|
653
|
+
function He() {
|
|
654
654
|
let e = null, t = !1;
|
|
655
655
|
return { getOrBuild(n, r) {
|
|
656
|
-
return e && t === r ? e : (e =
|
|
656
|
+
return e && t === r ? e : (e = se(n, Ve(), {
|
|
657
657
|
oriented: !0,
|
|
658
658
|
onlyAccessible: r
|
|
659
659
|
}), t = r, e);
|
|
@@ -661,71 +661,71 @@ function Ue() {
|
|
|
661
661
|
}
|
|
662
662
|
//#endregion
|
|
663
663
|
//#region ../wayfinding/src/core/routing/getRouteLength.ts
|
|
664
|
-
function
|
|
665
|
-
return e.reduce((e, t) => e +
|
|
664
|
+
function U(e) {
|
|
665
|
+
return e.reduce((e, t) => e + g(t.p0, t.p1), 0);
|
|
666
666
|
}
|
|
667
667
|
//#endregion
|
|
668
668
|
//#region ../wayfinding/src/core/graph/findShortestPath.ts
|
|
669
|
-
function
|
|
669
|
+
function Ue(e, t, n) {
|
|
670
670
|
return {
|
|
671
671
|
layer: e,
|
|
672
672
|
x: t,
|
|
673
673
|
y: n
|
|
674
674
|
};
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function We(e, t) {
|
|
677
677
|
let n = 0;
|
|
678
678
|
for (let r = 1; r < e.length; r++) {
|
|
679
|
-
let i =
|
|
680
|
-
i && (n +=
|
|
679
|
+
let i = fe(t, e[r - 1], e[r]);
|
|
680
|
+
i && (n += be(i));
|
|
681
681
|
}
|
|
682
682
|
return n;
|
|
683
683
|
}
|
|
684
|
-
function
|
|
684
|
+
function Ge(e, t, n) {
|
|
685
685
|
let r = e.dataSource.getLines(), i = null, a = Infinity;
|
|
686
686
|
for (let o of t) for (let t of n) {
|
|
687
|
-
let n =
|
|
687
|
+
let n = R(o), s = R(t);
|
|
688
688
|
if (!e.finder.hasNode(n) || !e.finder.hasNode(s)) {
|
|
689
689
|
console.debug(`WF. findShortestPath: node not in graph, skipping pair ${n} → ${s}`);
|
|
690
690
|
continue;
|
|
691
691
|
}
|
|
692
692
|
let c = e.finder.find(n, s);
|
|
693
693
|
if (!c.length) continue;
|
|
694
|
-
let l = c.map((e) =>
|
|
694
|
+
let l = c.map((e) => Ue(e.layer, e.x, e.y)), u = he(l, r);
|
|
695
695
|
if (!u.length) continue;
|
|
696
|
-
let d =
|
|
696
|
+
let d = We(l, r);
|
|
697
697
|
d < a && (a = d, i = {
|
|
698
698
|
lines: u,
|
|
699
|
-
distance:
|
|
699
|
+
distance: U(u)
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
702
|
return i;
|
|
703
703
|
}
|
|
704
704
|
//#endregion
|
|
705
705
|
//#region ../wayfinding/src/core/routing/routeResult.ts
|
|
706
|
-
var
|
|
706
|
+
var W = () => ({
|
|
707
707
|
lines: [],
|
|
708
708
|
totalDistance: 0
|
|
709
709
|
});
|
|
710
710
|
//#endregion
|
|
711
711
|
//#region ../wayfinding/src/core/routing/buildRoute.ts
|
|
712
|
-
function
|
|
713
|
-
if (!t.length || !n.length) return
|
|
714
|
-
let r =
|
|
712
|
+
function Ke(e, t, n) {
|
|
713
|
+
if (!t.length || !n.length) return W();
|
|
714
|
+
let r = Ge(e, t, n);
|
|
715
715
|
return r ? {
|
|
716
716
|
lines: r.lines,
|
|
717
717
|
totalDistance: r.distance
|
|
718
|
-
} :
|
|
718
|
+
} : W();
|
|
719
719
|
}
|
|
720
720
|
//#endregion
|
|
721
721
|
//#region ../wayfinding/src/core/routing/buildMultiPointRoute.ts
|
|
722
722
|
function qe(e, t) {
|
|
723
|
-
if (t.length < 2) return
|
|
723
|
+
if (t.length < 2) return W();
|
|
724
724
|
let n = t.filter((e, n) => n === 0 || n === t.length - 1 || e.length > 0);
|
|
725
|
-
if (n.length < 2) return
|
|
726
|
-
if (n.length === 2) return
|
|
725
|
+
if (n.length < 2) return W();
|
|
726
|
+
if (n.length === 2) return Ke(e, n[0], n[1]);
|
|
727
727
|
let r = [];
|
|
728
|
-
for (let t = 0; t < n.length - 1; t++) r.push(
|
|
728
|
+
for (let t = 0; t < n.length - 1; t++) r.push(Ke(e, n[t], n[t + 1]));
|
|
729
729
|
return {
|
|
730
730
|
lines: r.flatMap((e) => e.lines),
|
|
731
731
|
totalDistance: r.reduce((e, t) => e + t.totalDistance, 0)
|
|
@@ -783,7 +783,7 @@ function $e(e, t) {
|
|
|
783
783
|
//#endregion
|
|
784
784
|
//#region ../wayfinding/src/core/geometry/projectPointOnSegment.ts
|
|
785
785
|
function et(e, t, n) {
|
|
786
|
-
let { projected: r, distance: i, t: a } =
|
|
786
|
+
let { projected: r, distance: i, t: a } = P({
|
|
787
787
|
p0: t,
|
|
788
788
|
p1: n
|
|
789
789
|
}, e);
|
|
@@ -892,14 +892,14 @@ function ut(e, t, n) {
|
|
|
892
892
|
return t && (r = ct(r, t)), n && (r = lt(r, n)), r;
|
|
893
893
|
}
|
|
894
894
|
function dt(e) {
|
|
895
|
-
let t =
|
|
895
|
+
let t = He();
|
|
896
896
|
return {
|
|
897
897
|
buildRoute(n, r, i) {
|
|
898
898
|
var a;
|
|
899
|
-
let o = t.getOrBuild(e, (a = i == null ? void 0 : i.accessible) != null && a), s = ot(o, n), c = ot(o, r), l =
|
|
899
|
+
let o = t.getOrBuild(e, (a = i == null ? void 0 : i.accessible) != null && a), s = ot(o, n), c = ot(o, r), l = Ke(o, s.candidates, c.candidates), u = !!s.offGraphEntry || !!c.offGraphEntry, d = ut(l.lines, s.offGraphEntry, c.offGraphEntry);
|
|
900
900
|
return {
|
|
901
901
|
lines: d,
|
|
902
|
-
distance: u ?
|
|
902
|
+
distance: u ? U(d) : l.totalDistance
|
|
903
903
|
};
|
|
904
904
|
},
|
|
905
905
|
buildWaypointsRoute(n, r) {
|
|
@@ -911,7 +911,7 @@ function dt(e) {
|
|
|
911
911
|
let a = t.getOrBuild(e, (i = r == null ? void 0 : r.accessible) != null && i), o = (r != null && r.fastest ? Ze(n) : n).map((e) => ot(a, e)), s = qe(a, o.map((e) => e.candidates)), c = o[0].offGraphEntry, l = o[o.length - 1].offGraphEntry, u = !!c || !!l, d = ut(s.lines, c, l);
|
|
912
912
|
return {
|
|
913
913
|
lines: d,
|
|
914
|
-
distance: u ?
|
|
914
|
+
distance: u ? U(d) : s.totalDistance
|
|
915
915
|
};
|
|
916
916
|
}
|
|
917
917
|
};
|
|
@@ -920,7 +920,7 @@ function dt(e) {
|
|
|
920
920
|
//#region ../wayfinding/src/core/rendering/computeTrailPoints.ts
|
|
921
921
|
var ft = .4, pt = 8;
|
|
922
922
|
function mt(e, t, n = pt, r = ft) {
|
|
923
|
-
let i =
|
|
923
|
+
let i = g(t, e);
|
|
924
924
|
if (i === 0 || n <= 0) return [];
|
|
925
925
|
let a = Math.max(Math.ceil(i / n) + 1, 2), o = {
|
|
926
926
|
x: (e.x + t.x) / 2,
|
|
@@ -988,7 +988,7 @@ function xt(e) {
|
|
|
988
988
|
//#region ../wayfinding/src/core/position/gpsThreshold.ts
|
|
989
989
|
var St = 7.5, Ct = 15, wt = 20;
|
|
990
990
|
function Tt(e, t) {
|
|
991
|
-
let { p0: n, p2: r } = t, i = O(n, r), a =
|
|
991
|
+
let { p0: n, p2: r } = t, i = O(n, r), a = g(n, r);
|
|
992
992
|
return !i || !a ? 0 : a / i * e;
|
|
993
993
|
}
|
|
994
994
|
var Et = (e) => {
|
|
@@ -1011,7 +1011,7 @@ function kt(e) {
|
|
|
1011
1011
|
//#region ../wayfinding/src/core/position/distanceToRoute.ts
|
|
1012
1012
|
function At(e, t, n, r, i, a) {
|
|
1013
1013
|
let o = i - n, s = a - r, c = e - n, l = t - r, u = o * o + s * s;
|
|
1014
|
-
if (u === 0) return
|
|
1014
|
+
if (u === 0) return g({
|
|
1015
1015
|
x: e,
|
|
1016
1016
|
y: t
|
|
1017
1017
|
}, {
|
|
@@ -1021,7 +1021,7 @@ function At(e, t, n, r, i, a) {
|
|
|
1021
1021
|
let d = (c * o + l * s) / u;
|
|
1022
1022
|
d < 0 ? d = 0 : d > 1 && (d = 1);
|
|
1023
1023
|
let f = n + d * o, p = r + d * s;
|
|
1024
|
-
return
|
|
1024
|
+
return g({
|
|
1025
1025
|
x: e,
|
|
1026
1026
|
y: t
|
|
1027
1027
|
}, {
|
|
@@ -1054,7 +1054,7 @@ function Nt(e, t, { snapThreshold: n }) {
|
|
|
1054
1054
|
if (!r) return { snapped: !1 };
|
|
1055
1055
|
let i = e.layer || null, a = Infinity, o = null, s = 0, c = i == null;
|
|
1056
1056
|
for (let n = 0; n < r; n++) {
|
|
1057
|
-
let r = t[n], { p0: l, p1: u } = r, d =
|
|
1057
|
+
let r = t[n], { p0: l, p1: u } = r, d = g(l, u);
|
|
1058
1058
|
if (d === 0) continue;
|
|
1059
1059
|
if (i != null && String(l.layer) !== i) {
|
|
1060
1060
|
s += d;
|
|
@@ -1159,33 +1159,33 @@ function Lt(e, t, n, r = !1) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
function f(n, a, o, l = o.rotation) {
|
|
1161
1161
|
var d, f, p;
|
|
1162
|
-
let
|
|
1163
|
-
e.touchLayer(
|
|
1164
|
-
let
|
|
1162
|
+
let m = c(o), h = Ft(o.canvas, o.width, o.height), g = (d = o.screenSpace) == null ? r : d;
|
|
1163
|
+
e.touchLayer(m);
|
|
1164
|
+
let _ = {
|
|
1165
1165
|
source: o.canvas,
|
|
1166
|
-
bounds: new
|
|
1166
|
+
bounds: new C({
|
|
1167
1167
|
x: o.x,
|
|
1168
1168
|
y: o.y
|
|
1169
1169
|
}, Rt, l),
|
|
1170
1170
|
hidden: (f = o.hidden) != null && f,
|
|
1171
1171
|
dim: +!!o.dimmed,
|
|
1172
1172
|
origin: o.origin,
|
|
1173
|
-
screenSpace:
|
|
1173
|
+
screenSpace: g
|
|
1174
1174
|
};
|
|
1175
|
-
o.cardinalSnap && !
|
|
1176
|
-
let
|
|
1177
|
-
imageDef:
|
|
1178
|
-
layer:
|
|
1175
|
+
o.cardinalSnap && !g && t.attachCardinalSnap(_), _.onScale = ({ pixelSize: e }) => It(_, h, e), m.children.push(_);
|
|
1176
|
+
let v = {
|
|
1177
|
+
imageDef: _,
|
|
1178
|
+
layer: m,
|
|
1179
1179
|
callback: (p = o.onClick) == null ? null : p
|
|
1180
1180
|
};
|
|
1181
|
-
return i.set(n,
|
|
1181
|
+
return i.set(n, v), s.set(_, v), u(a, n), v;
|
|
1182
1182
|
}
|
|
1183
1183
|
function p(t, n, r, a) {
|
|
1184
1184
|
var o;
|
|
1185
1185
|
let c = r.layer.children, l = c.indexOf(r.imageDef), u = (o = a.rotation) == null ? r.imageDef.bounds.rotation : o;
|
|
1186
1186
|
r.imageDef.hidden = !0, e.touchDef(r.imageDef), l >= 0 && c.splice(l, 1), e.touchLayer(r.layer), i.delete(t), s.delete(r.imageDef), d(t), f(t, n, a, u);
|
|
1187
1187
|
}
|
|
1188
|
-
function
|
|
1188
|
+
function m(t, r, i, a) {
|
|
1189
1189
|
var o, s, l;
|
|
1190
1190
|
if (i.layer !== c(a)) throw Error(`renderer: icon "${t}" cannot move between layers (was onTop=${i.layer === n.currentPosition}, got onTop=${!!a.onTop})`);
|
|
1191
1191
|
if (i.imageDef.source !== a.canvas) {
|
|
@@ -1195,7 +1195,7 @@ function Lt(e, t, n, r = !1) {
|
|
|
1195
1195
|
let u = i.imageDef.bounds, d = (o = a.rotation) == null ? u.rotation : o;
|
|
1196
1196
|
u.set(a.x, a.y, u.size.x, u.size.y, d, u.elevation), i.imageDef.hidden = (s = a.hidden) != null && s, i.imageDef.dim = +!!a.dimmed, i.callback = (l = a.onClick) == null ? null : l, e.touchDef(i.imageDef);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function h(t) {
|
|
1199
1199
|
t.imageDef.hidden = !0, t.callback = null, e.touchDef(t.imageDef);
|
|
1200
1200
|
}
|
|
1201
1201
|
return {
|
|
@@ -1203,11 +1203,11 @@ function Lt(e, t, n, r = !1) {
|
|
|
1203
1203
|
let r = l(e, n);
|
|
1204
1204
|
if (t === null) {
|
|
1205
1205
|
let e = i.get(r);
|
|
1206
|
-
e &&
|
|
1206
|
+
e && h(e);
|
|
1207
1207
|
return;
|
|
1208
1208
|
}
|
|
1209
1209
|
let a = i.get(r);
|
|
1210
|
-
a ?
|
|
1210
|
+
a ? m(r, e, a, t) : f(r, e, t);
|
|
1211
1211
|
},
|
|
1212
1212
|
clearIcons(e) {
|
|
1213
1213
|
let t = typeof e == "string" ? [e] : e;
|
|
@@ -1215,12 +1215,12 @@ function Lt(e, t, n, r = !1) {
|
|
|
1215
1215
|
let t = a.get(e);
|
|
1216
1216
|
if (t) for (let e of t) {
|
|
1217
1217
|
let t = i.get(e);
|
|
1218
|
-
t &&
|
|
1218
|
+
t && h(t);
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
1221
|
},
|
|
1222
1222
|
hideAll() {
|
|
1223
|
-
for (let e of i.values())
|
|
1223
|
+
for (let e of i.values()) h(e);
|
|
1224
1224
|
},
|
|
1225
1225
|
destroy() {
|
|
1226
1226
|
for (let t of i.values()) {
|
|
@@ -1458,7 +1458,7 @@ function Kt(e, t) {
|
|
|
1458
1458
|
if (a.length > d) {
|
|
1459
1459
|
let n = a.slice(d).map((e) => ({
|
|
1460
1460
|
source: c,
|
|
1461
|
-
bounds: new
|
|
1461
|
+
bounds: new C({
|
|
1462
1462
|
x: e.x,
|
|
1463
1463
|
y: e.y
|
|
1464
1464
|
}, l)
|
|
@@ -1603,7 +1603,7 @@ var rn = "current-position", an = "position";
|
|
|
1603
1603
|
function on({ renderer: e, iconProvider: t }) {
|
|
1604
1604
|
return {
|
|
1605
1605
|
place(n, r) {
|
|
1606
|
-
let i = Number.isFinite(n.heading), a = i ? "current_arrow" : "current", o = i ?
|
|
1606
|
+
let i = Number.isFinite(n.heading), a = i ? "current_arrow" : "current", o = i ? S(n.heading) : void 0, s = t.getIcon(a);
|
|
1607
1607
|
e.setIcon(an, {
|
|
1608
1608
|
canvas: s.canvas,
|
|
1609
1609
|
width: s.width,
|
|
@@ -1686,7 +1686,7 @@ function dn(e, t, n, r, i) {
|
|
|
1686
1686
|
snapped: !0,
|
|
1687
1687
|
snappedPoint: e.p0,
|
|
1688
1688
|
snappedLine: e,
|
|
1689
|
-
distance:
|
|
1689
|
+
distance: U(t)
|
|
1690
1690
|
};
|
|
1691
1691
|
}
|
|
1692
1692
|
if (un(e, r, a)) {
|
|
@@ -1751,7 +1751,7 @@ function hn({ routeLines: e, currentRouteLayer: t, snap: n }) {
|
|
|
1751
1751
|
if (!(n != null && n.snapped)) return {
|
|
1752
1752
|
passed: [],
|
|
1753
1753
|
remaining: i(r),
|
|
1754
|
-
distance:
|
|
1754
|
+
distance: U(r)
|
|
1755
1755
|
};
|
|
1756
1756
|
let { passed: a, remaining: o } = Pt(r, n.snappedPoint), s = o !== r && o.length > 0 && o[0].p0.layer === n.snappedPoint.layer ? [{
|
|
1757
1757
|
...o[0],
|
|
@@ -1948,12 +1948,12 @@ function Sn({ engine: e, renderer: t, iconProvider: n, floorContext: r, snapThre
|
|
|
1948
1948
|
waypoints: i,
|
|
1949
1949
|
accessible: a
|
|
1950
1950
|
});
|
|
1951
|
-
if (!o.length) return
|
|
1951
|
+
if (!o.length) return N(), !1;
|
|
1952
1952
|
b = !1, g = n, _ = r, h = o, O();
|
|
1953
1953
|
let { lines: s } = j(), l = A();
|
|
1954
|
-
return k(), D(l), l && E(l, !0), c(l ? y :
|
|
1954
|
+
return k(), D(l), l && E(l, !0), c(l ? y : U(s)), t.flush(), !0;
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1956
|
+
function M(e) {
|
|
1957
1957
|
let n = v !== null;
|
|
1958
1958
|
if (v = e, !e) {
|
|
1959
1959
|
x = !1, p.hideIcon(), D(null), n && k(), E(), c(y), t.flush();
|
|
@@ -1963,24 +1963,24 @@ function Sn({ engine: e, renderer: t, iconProvider: n, floorContext: r, snapThre
|
|
|
1963
1963
|
let r = A();
|
|
1964
1964
|
k(), D(r), r && E(r, !0), c(y), t.flush();
|
|
1965
1965
|
}
|
|
1966
|
-
function
|
|
1966
|
+
function te() {
|
|
1967
1967
|
O();
|
|
1968
1968
|
let e = A();
|
|
1969
1969
|
k(), D(e), e && E(e, !0), h.length && j(), c(y), t.flush();
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1971
|
+
function N() {
|
|
1972
1972
|
b = !1, h = [], g = null, _ = null, y = 0, u.hide(), f.clear(), p.clearTrail(), m.clear(), s([], new d()), c(0), t.flush();
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1975
|
-
|
|
1974
|
+
function P() {
|
|
1975
|
+
N(), v = null, t.destroy();
|
|
1976
1976
|
}
|
|
1977
1977
|
return {
|
|
1978
1978
|
setRoute: ee,
|
|
1979
|
-
onPositionChanged:
|
|
1980
|
-
onFloorChanged:
|
|
1979
|
+
onPositionChanged: M,
|
|
1980
|
+
onFloorChanged: te,
|
|
1981
1981
|
shouldReroute: w,
|
|
1982
|
-
clearRoute:
|
|
1983
|
-
destroy:
|
|
1982
|
+
clearRoute: N,
|
|
1983
|
+
destroy: P
|
|
1984
1984
|
};
|
|
1985
1985
|
}
|
|
1986
1986
|
//#endregion
|
|
@@ -2042,7 +2042,7 @@ function En(e, t, n) {
|
|
|
2042
2042
|
//#region src/wayfinding/adapters/boothToEndpoint.ts
|
|
2043
2043
|
function Dn(e) {
|
|
2044
2044
|
var t, n;
|
|
2045
|
-
let r = e.rect, i =
|
|
2045
|
+
let r = e.rect, i = C.fromMinMax(r.min, r.max, e.rotate).corners();
|
|
2046
2046
|
return {
|
|
2047
2047
|
x: r.center.x,
|
|
2048
2048
|
y: r.center.y,
|
|
@@ -2055,9 +2055,9 @@ function Dn(e) {
|
|
|
2055
2055
|
var On = "#00A2FF", kn = "#FF9F06", J = 34, An = 4, jn = 56;
|
|
2056
2056
|
function Y(e, t, n, r, i, a) {
|
|
2057
2057
|
let o = e.get(t);
|
|
2058
|
-
return o ? (o.id = t,
|
|
2058
|
+
return o ? (o.id = t, s(o, n, r, i)) : a();
|
|
2059
2059
|
}
|
|
2060
|
-
function X(e, t =
|
|
2060
|
+
function X(e, t = a(e)) {
|
|
2061
2061
|
return {
|
|
2062
2062
|
canvas: e,
|
|
2063
2063
|
width: t.width,
|
|
@@ -2066,16 +2066,16 @@ function X(e, t = g(e)) {
|
|
|
2066
2066
|
}
|
|
2067
2067
|
function Mn(e) {
|
|
2068
2068
|
var t, n;
|
|
2069
|
-
let { iconMap: r, pixelRatio: i } = e,
|
|
2070
|
-
|
|
2071
|
-
let
|
|
2072
|
-
|
|
2073
|
-
let d = Y(r, "transition", J, J, i, () =>
|
|
2074
|
-
return
|
|
2075
|
-
width:
|
|
2076
|
-
height:
|
|
2069
|
+
let { iconMap: r, pixelRatio: i } = e, a = (t = e.sourceColor) == null ? On : t, s = (n = e.destinationColor) == null ? kn : n, c = /* @__PURE__ */ new Map();
|
|
2070
|
+
c.set("destination", X(Y(r, "destination", J, J, i, () => u(i, s)))), c.set("source", X(Y(r, "departure", J, J, i, () => f(i, a)))), c.set("source_inactive", X(Y(r, "departure_inactive", J, J, i, () => f(i, a))));
|
|
2071
|
+
let l = f(i, a);
|
|
2072
|
+
l.id = "current-location", c.set("current", X(l));
|
|
2073
|
+
let d = Y(r, "transition", J, J, i, () => f(i, a));
|
|
2074
|
+
return c.set("transition", X(d)), c.set("transition_up", X(Y(r, "transition_up", jn, J, i, () => d))), c.set("transition_down", X(Y(r, "transition_down", jn, J, i, () => d))), c.set("transition_entry", X(Y(r, "departure", J, J, i, () => f(i, a)))), c.set("current_arrow", X(Y(r, "direction", J, J, i, () => T(i, a)))), c.set("trail", X(o(An, "#b5b7bc"), {
|
|
2075
|
+
width: m(An),
|
|
2076
|
+
height: m(An)
|
|
2077
2077
|
})), { getIcon(e) {
|
|
2078
|
-
let t =
|
|
2078
|
+
let t = c.get(e);
|
|
2079
2079
|
if (!t) throw Error(`Unknown icon: ${e}`);
|
|
2080
2080
|
return t;
|
|
2081
2081
|
} };
|
|
@@ -2108,17 +2108,17 @@ function Fn() {
|
|
|
2108
2108
|
return {
|
|
2109
2109
|
getLines: () => {
|
|
2110
2110
|
var e, t;
|
|
2111
|
-
return (e = (t =
|
|
2111
|
+
return (e = (t = l()) == null ? void 0 : t.lines) == null ? [] : e;
|
|
2112
2112
|
},
|
|
2113
2113
|
getLineEnds: () => {
|
|
2114
2114
|
var e, t;
|
|
2115
|
-
return (e = (t =
|
|
2115
|
+
return (e = (t = l()) == null ? void 0 : t.lineEnds) == null ? [] : e;
|
|
2116
2116
|
}
|
|
2117
2117
|
};
|
|
2118
2118
|
}
|
|
2119
2119
|
//#endregion
|
|
2120
2120
|
//#region src/utils/math.ts
|
|
2121
|
-
var In = /* @__PURE__ */ e(
|
|
2121
|
+
var In = /* @__PURE__ */ e(E(), 1);
|
|
2122
2122
|
function Z(e, t) {
|
|
2123
2123
|
return e * (1 - t / 100);
|
|
2124
2124
|
}
|
|
@@ -2130,9 +2130,9 @@ function Vn(e, t) {
|
|
|
2130
2130
|
if (r) {
|
|
2131
2131
|
r.id = "kiosk";
|
|
2132
2132
|
let e = t ? t / 100 : 1;
|
|
2133
|
-
return
|
|
2133
|
+
return s(r, Z(Ln * e, zn), Z(Rn * e, zn), n);
|
|
2134
2134
|
}
|
|
2135
|
-
return
|
|
2135
|
+
return T(n, (0, In.default)(Bn).hex());
|
|
2136
2136
|
}
|
|
2137
2137
|
//#endregion
|
|
2138
2138
|
//#region src/wayfinding/adapters/positionInput.ts
|
|
@@ -2243,7 +2243,7 @@ function qn({ wayfinding: e, kioskIconMap: t }) {
|
|
|
2243
2243
|
return n.set(r, a), a;
|
|
2244
2244
|
};
|
|
2245
2245
|
return (t, n, i) => {
|
|
2246
|
-
var
|
|
2246
|
+
var o;
|
|
2247
2247
|
if (!t) {
|
|
2248
2248
|
e.setIcon(Gn, null), e.flush();
|
|
2249
2249
|
return;
|
|
@@ -2252,13 +2252,13 @@ function qn({ wayfinding: e, kioskIconMap: t }) {
|
|
|
2252
2252
|
e.setIcon(Gn, null), e.flush();
|
|
2253
2253
|
return;
|
|
2254
2254
|
}
|
|
2255
|
-
let
|
|
2255
|
+
let s = r(t.iconSizePercent);
|
|
2256
2256
|
e.setIcon(Gn, {
|
|
2257
|
-
canvas:
|
|
2258
|
-
...
|
|
2257
|
+
canvas: s,
|
|
2258
|
+
...a(s),
|
|
2259
2259
|
x: t.x,
|
|
2260
2260
|
y: t.y,
|
|
2261
|
-
rotation:
|
|
2261
|
+
rotation: S((o = t.heading) == null ? 0 : o),
|
|
2262
2262
|
screenSpace: !1
|
|
2263
2263
|
}), e.flush();
|
|
2264
2264
|
};
|
|
@@ -2268,7 +2268,7 @@ function qn({ wayfinding: e, kioskIconMap: t }) {
|
|
|
2268
2268
|
var Q = "yah", Jn = "#ff4343", Yn = 64, Xn = 90, Zn = 32;
|
|
2269
2269
|
function Qn(e, t) {
|
|
2270
2270
|
let n = e.get(Q);
|
|
2271
|
-
return n ? (n.id = Q,
|
|
2271
|
+
return n ? (n.id = Q, s(n, Z(Yn, Zn), Z(Xn, Zn), t)) : _(t, Jn);
|
|
2272
2272
|
}
|
|
2273
2273
|
function $n({ wayfinding: e, iconMap: t, pixelRatio: n, floorContext: r }) {
|
|
2274
2274
|
let i = Qn(t, n);
|
|
@@ -2280,7 +2280,7 @@ function $n({ wayfinding: e, iconMap: t, pixelRatio: n, floorContext: r }) {
|
|
|
2280
2280
|
let n = r.isLayerVisible(t.layer);
|
|
2281
2281
|
e.setIcon(Q, {
|
|
2282
2282
|
canvas: i,
|
|
2283
|
-
...
|
|
2283
|
+
...a(i),
|
|
2284
2284
|
x: t.x,
|
|
2285
2285
|
y: t.y,
|
|
2286
2286
|
hidden: !n,
|
|
@@ -2304,11 +2304,11 @@ function nr(e, t, n) {
|
|
|
2304
2304
|
}
|
|
2305
2305
|
function rr(e) {
|
|
2306
2306
|
let { scene: t, store: n, canvas: r } = e, i = nn(t.rootLayer), { wayfinding: a, dispose: o } = ir(n, i, {
|
|
2307
|
-
attachCardinalSnap:
|
|
2308
|
-
update:
|
|
2307
|
+
attachCardinalSnap: x,
|
|
2308
|
+
update: y
|
|
2309
2309
|
}), s = i.icons;
|
|
2310
|
-
return s.onClick = (e) => or(a, e), s.onPointerMove = (e) => sr(a, r, e), s.onPointerOut = () => sr(a, r),
|
|
2311
|
-
s.onClick = void 0, s.onPointerMove = void 0, s.onPointerOut = void 0, r.current && (r.current.style.cursor = ""),
|
|
2310
|
+
return s.onClick = (e) => or(a, e), s.onPointerMove = (e) => sr(a, r, e), s.onPointerOut = () => sr(a, r), y(s), () => {
|
|
2311
|
+
s.onClick = void 0, s.onPointerMove = void 0, s.onPointerOut = void 0, r.current && (r.current.style.cursor = ""), y(s), o();
|
|
2312
2312
|
};
|
|
2313
2313
|
}
|
|
2314
2314
|
function ir(e, t, n) {
|
|
@@ -2322,7 +2322,7 @@ function ir(e, t, n) {
|
|
|
2322
2322
|
iconProvider: a,
|
|
2323
2323
|
floorContext: o,
|
|
2324
2324
|
layers: t,
|
|
2325
|
-
gpsConfig: (r =
|
|
2325
|
+
gpsConfig: (r = F()) == null || (r = r.properties) == null ? void 0 : r.config,
|
|
2326
2326
|
screenSpaceIcons: e.uiState.is3DView,
|
|
2327
2327
|
onTransitionClick: (t) => {
|
|
2328
2328
|
t.role === "exit" && e.layerStore.updateVisibility(t.targetLayer, !0);
|
|
@@ -2371,4 +2371,4 @@ function sr(e, t, n) {
|
|
|
2371
2371
|
r.style.cursor = i ? "pointer" : "";
|
|
2372
2372
|
}
|
|
2373
2373
|
//#endregion
|
|
2374
|
-
export {
|
|
2374
|
+
export { N as _, wn as a, rn as c, oe as d, ie as f, F as g, re as h, Dn as i, tn as l, L as m, rr as n, Tn as o, ae as p, er as r, En as s, nr as t, Xe as u, O as v };
|