@expofp/floorplan 3.7.14 → 3.7.15
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-4OtQtOG8.js → Button-Bw2rU4DR.js} +36 -176
- package/dist/browser/{CookieConsent-Dm81FEY7.js → CookieConsent-Cg6F_bop.js} +8 -8
- package/dist/browser/{Debug-CSmIMhir.js → Debug-D2FxPAx6.js} +8 -8
- package/dist/browser/{Demo-Dbx4V8Am.js → Demo-CbKUORDI.js} +12 -12
- package/dist/browser/{Free-DSEXaC59.js → Free-CCt5diJn.js} +12 -12
- package/dist/browser/{Gallery-Dr3GctSL.js → Gallery-DikV7y2O.js} +10 -10
- package/dist/browser/{GpsLoader-Dk4JZZx5.js → GpsLoader-DK17fABw.js} +10 -10
- package/dist/browser/{KioskStore-W-Hz1t-w.js → KioskStore-D2IzX4PD.js} +17 -17
- package/dist/browser/{MaplibreAdapter-AoRQBAcj.js → MaplibreAdapter-Cdj_O3dc.js} +88 -88
- package/dist/browser/{Modal-DWUur9BF.js → Modal-BZ1LsZ64.js} +10 -10
- package/dist/browser/{PermissionNotice-JyxyrSUM.js → PermissionNotice-Qy5OZjJx.js} +7 -7
- package/dist/browser/{SetKioskMode-BPOGUgkg.js → SetKioskMode-D-rkGumI.js} +9 -9
- package/dist/browser/ShowKiosk-C4ifT0ai.js +28 -0
- package/dist/browser/{TouchHand-DZSuCWr6.js → TouchHand-2RuQPusV.js} +4 -4
- package/dist/browser/{ViewerMenuPanel-BdY41W_c.js → ViewerMenuPanel-DB-Xo9_R.js} +10 -9
- package/dist/browser/{add-debug-secret-listener-CGOLQUgG.js → add-debug-secret-listener-B6vQoW5d.js} +1 -1
- package/dist/browser/{boolean-editor-DI_vvFTP.js → boolean-editor-BztUNp5J.js} +9 -9
- package/dist/browser/{bootIntercom-quAPFZAE.js → bootIntercom-CyhvNq9r.js} +3 -3
- package/dist/browser/{browser-DlhYrwXK.js → browser-Dl6QqUVd.js} +2 -2
- package/dist/browser/bundle.json +63 -60
- package/dist/browser/{classnames-BVuXstWD.js → classnames-C1vHtapl.js} +2 -2
- package/dist/browser/{client-DUDp3FO6.js → client-DpUyEvQj.js} +4 -4
- package/dist/browser/components-DtWIsIkq.js +6429 -0
- package/dist/browser/{createWayfinding-9R1Ad54u.js → createWayfinding-BVv2hHV9.js} +287 -287
- package/dist/browser/{debug-overlay-BBkpUI_U.js → debug-overlay-DmoQp6EX.js} +10 -10
- package/dist/browser/{debug-ui-DPXgzWj0.js → debug-ui-Bz5JDxPC.js} +6 -6
- package/dist/browser/{dist-BqrsnXFB.js → dist-Cbw0umP3.js} +3 -3
- package/dist/browser/{dist-DI7wNQDr.js → dist-Z8RrpBkv.js} +6 -6
- package/dist/browser/{dist-DaevYQLF.js → dist-cXeLYynN.js} +5 -5
- package/dist/browser/{efp-debug-init-D8AFmzIs.js → efp-debug-init-CPBlk_82.js} +2 -2
- package/dist/browser/{enum-editor-BHdQQ9YQ.js → enum-editor-BNgThR3i.js} +11 -11
- package/dist/browser/{es5-aZZVJGwp.js → es5-CMwwFDWC.js} +2 -2
- package/dist/browser/{event-not-found-kDjGLV71.js → event-not-found-wOgWWQj_.js} +1 -1
- package/dist/browser/{exports-BNiZgURk.js → exports-B7YBEfSt.js} +1 -1
- package/dist/browser/{favicon-BSJGUX6s.js → favicon-C5TytmGw.js} +1 -1
- package/dist/browser/{fetch-retry.umd-Dro6WyY0.js → fetch-retry.umd-diPTbDpQ.js} +2 -2
- package/dist/browser/{flex-DuO5mbMx.js → flex-tQ_pRPMh.js} +5 -5
- package/dist/browser/{floorplan.loader-DPjrz3qN.js → floorplan.loader-C37lEsAw.js} +11 -11
- package/dist/browser/{floorplan.ready-C7fMAZwR.js → floorplan.ready-BqAKsSHu.js} +276 -276
- package/dist/browser/{fuse-BIsJdqTh.js → fuse-C5oNpAqA.js} +2 -2
- package/dist/browser/{i18n-CmO0-klU.js → i18n-C4cY1vPb.js} +4 -4
- package/dist/browser/index.js +12 -12
- package/dist/browser/index.module-D43jVtM-.js +153 -0
- package/dist/browser/{is-webview-XdlsikhT.js → is-webview-DGy3FIDn.js} +1 -1
- package/dist/browser/{jsx-runtime-Bie-olX0.js → jsx-runtime-BtHP4gKJ.js} +2 -2
- package/dist/browser/{lib-BYZ5PF0i.js → lib-B7gHIqUz.js} +4 -4
- package/dist/browser/{loadImage-BwaNRNg0.js → loadImage-Bbdo2oJg.js} +4 -4
- package/dist/browser/{logDeviceInfo-BC1TDW1S.js → logDeviceInfo-8PaHmUQI.js} +9 -9
- package/dist/browser/{main-NShWO1p7.js → main-Zc4W3FhR.js} +1 -1
- package/dist/browser/{mobx-Bt0-8mq_.js → mobx-DkKmIOWe.js} +4 -4
- package/dist/browser/{particles.min-BlWWxwbi.js → particles.min-BAHCca3J.js} +2 -2
- package/dist/browser/{prop-types-CFnvasfK.js → prop-types-XYJZaoNk.js} +2 -2
- package/dist/browser/{react-BoKK15JS.js → react-CNjituVz.js} +2 -2
- package/dist/browser/{react-dom-C_amxX3E.js → react-dom-Dg0lPUat.js} +3 -3
- package/dist/browser/{reset-all-settings-Dvo1ZxIV.js → reset-all-settings-DC1I9Z62.js} +7 -7
- package/dist/browser/{rolldown-runtime-C99yYids.js → rolldown-runtime-DB-F2T_p.js} +1 -1
- package/dist/browser/{settings-Dv03O6N0.js → settings-BbUH3X-c.js} +2 -2
- package/dist/browser/{settings-item-Ck5y4AAY.js → settings-item-Bx-ykFAz.js} +6 -6
- package/dist/browser/{store-BFcLRTV3.js → store-BBGqjwE5.js} +4436 -4486
- package/dist/browser/{string-editor-k7g-yojj.js → string-editor-KHIwnccQ.js} +7 -7
- package/dist/browser/{theme-aANVI2Xd.js → theme-CpvxRxec.js} +8 -8
- package/dist/browser/{ui-C37p2j8b.js → ui-DjzupJ1a.js} +8 -8
- package/dist/browser/{useRenderTarget-kmCBLSgD.js → useRenderTarget-EL-n_0Va.js} +5 -5
- package/dist/esm/components/AutocompleteContainer.d.ts +1 -1
- package/dist/esm/components/EntityListRow.d.ts +1 -1
- package/dist/esm/components/EntityListRow.js +1 -1
- package/dist/esm/components/Event.js +1 -1
- package/dist/esm/components/EventBadgeContainer.d.ts +8 -0
- package/dist/esm/components/EventBadgeContainer.js +1 -0
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/LanguageRowContainer.d.ts +6 -0
- package/dist/esm/components/LanguageRowContainer.js +1 -0
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/List.js +1 -1
- package/dist/esm/components/LogoOverlay.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-bg.js +1 -1
- package/dist/esm/components/RebookingNotesContainer.d.ts +4 -0
- package/dist/esm/components/RebookingNotesContainer.js +1 -0
- package/dist/esm/components/RebookingRadioGroupContainer.d.ts +6 -0
- package/dist/esm/components/RebookingRadioGroupContainer.js +1 -0
- package/dist/esm/components/RouteQR.js +1 -1
- package/dist/esm/components/Schedule.js +1 -1
- package/dist/esm/components/ShareContainer.d.ts +7 -0
- package/dist/esm/components/ShareContainer.js +1 -0
- package/dist/esm/components/index.d.ts +58 -57
- package/dist/esm/components/index.js +1 -1
- package/dist/esm/data/svg.d.ts +1 -1
- package/dist/esm/data/svg.js +1 -1
- package/dist/esm/store/ExhibitorStore.d.ts +8 -2
- package/dist/esm/store/ExhibitorStore.js +1 -1
- package/dist/esm/store/init/init-exhibitors.js +1 -1
- package/dist/esm/tools/rebooking-config.d.ts +10 -0
- package/dist/esm/tools/rebooking-config.js +1 -0
- package/dist/esm/ui/EventBadge/EventBadge.d.ts +13 -0
- package/dist/esm/ui/EventBadge/EventBadge.js +1 -0
- package/dist/esm/ui/EventBadge/index.d.ts +3 -0
- package/dist/esm/ui/EventBadge/index.js +1 -0
- package/dist/esm/ui/RebookingNotes/RebookingNotes.d.ts +11 -0
- package/dist/esm/ui/RebookingNotes/RebookingNotes.js +1 -0
- package/dist/esm/ui/RebookingNotes/index.d.ts +3 -0
- package/dist/esm/ui/RebookingNotes/index.js +1 -0
- package/dist/esm/ui/RebookingRadioGroup/RebookingRadioGroup.d.ts +17 -0
- package/dist/esm/ui/RebookingRadioGroup/RebookingRadioGroup.js +1 -0
- package/dist/esm/ui/RebookingRadioGroup/index.d.ts +3 -0
- package/dist/esm/ui/RebookingRadioGroup/index.js +1 -0
- package/dist/esm/ui/Share/Share.d.ts +22 -0
- package/dist/esm/ui/Share/Share.js +1 -0
- package/dist/esm/ui/Share/index.d.ts +3 -0
- package/dist/esm/ui/Share/index.js +1 -0
- package/dist/esm/utils/eventTime.d.ts +4 -3
- package/dist/esm/utils/eventTime.js +1 -1
- package/dist/esm/{components/QrCode.d.ts → utils/lazy-qr-code.d.ts} +1 -1
- package/package.json +3 -3
- package/dist/browser/ShowKiosk-CWLlKXZx.js +0 -28
- package/dist/browser/components-BzdtZ8we.js +0 -6361
- package/dist/esm/components/EventBadge.d.ts +0 -10
- package/dist/esm/components/EventBadge.js +0 -1
- package/dist/esm/components/LanguageRow.d.ts +0 -7
- package/dist/esm/components/LanguageRow.js +0 -1
- package/dist/esm/components/RebookingNotes.d.ts +0 -12
- package/dist/esm/components/RebookingNotes.js +0 -1
- package/dist/esm/components/RebookingRadioGroup.d.ts +0 -24
- package/dist/esm/components/RebookingRadioGroup.js +0 -1
- package/dist/esm/components/Share.d.ts +0 -9
- package/dist/esm/components/Share.js +0 -1
- /package/dist/esm/{components/QrCode.js → utils/lazy-qr-code.js} +0 -0
|
@@ -1,57 +1,57 @@
|
|
|
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.7.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.7.15" };
|
|
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] = "a4375f5f-ca7f-4527-936b-4c2243384c89", e._sentryDebugIdIdentifier = "sentry-dbid-a4375f5f-ca7f-4527-936b-4c2243384c89");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./loadImage-
|
|
12
|
-
import { _ as r, ct as i, f as a, j as o } from "./i18n-
|
|
13
|
-
import { $ as s,
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DB-F2T_p.js";
|
|
10
|
+
import { t } from "./react-CNjituVz.js";
|
|
11
|
+
import { t as n } from "./loadImage-Bbdo2oJg.js";
|
|
12
|
+
import { _ as r, ct as i, f as a, j as o } from "./i18n-C4cY1vPb.js";
|
|
13
|
+
import { $ as s, At as c, B as l, Bt as u, Dt as d, Et as f, F as p, Ft as m, G as h, Gt as g, H as _, Ht as v, I as y, It as b, J as x, Jt as S, K as C, Kt as w, L as T, M as E, N as D, Nt as O, Pt as k, Q as A, Qt as ee, R as j, Rt as M, St as N, V as te, Vt as ne, W as re, Wt as ie, X as ae, Y as oe, Z as se, Zt as ce, ct as P, dn as le, et as ue, i as F, in as de, j as fe, ln as pe, o as I, p as me, pn as he, s as L, sn as ge, t as R, tt as _e, un as z, wt as ve, z as ye, zt as be } from "./store-BBGqjwE5.js";
|
|
14
14
|
//#region src/wayfinding/layers.ts
|
|
15
|
-
var
|
|
16
|
-
function
|
|
15
|
+
var xe = "wf-points", Se = "wf-trail-points", Ce = "wf-lines", we = "wf-lines-animated", Te = "wf-current-position", Ee = "traffic_route", De = "traffic_route_stop", Oe = "traffic_vehicles", ke = "build_route_lines", Ae = "build_route_dots", je = 5;
|
|
16
|
+
function Me() {
|
|
17
17
|
let e = [];
|
|
18
|
-
for (let t = 0; t <
|
|
19
|
-
name:
|
|
18
|
+
for (let t = 0; t < je; t++) e.push({
|
|
19
|
+
name: Ne(t),
|
|
20
20
|
children: []
|
|
21
21
|
}), e.push({
|
|
22
|
-
name:
|
|
22
|
+
name: Pe(t),
|
|
23
23
|
children: [],
|
|
24
24
|
interactive: !0
|
|
25
25
|
});
|
|
26
26
|
return e.push({
|
|
27
|
-
name:
|
|
27
|
+
name: Oe,
|
|
28
28
|
children: [],
|
|
29
29
|
interactive: !0
|
|
30
30
|
}), e.push({
|
|
31
|
-
name:
|
|
31
|
+
name: ke,
|
|
32
32
|
children: []
|
|
33
33
|
}), e.push({
|
|
34
|
-
name:
|
|
34
|
+
name: Ae,
|
|
35
35
|
children: [],
|
|
36
36
|
interactive: !0
|
|
37
37
|
}), e;
|
|
38
38
|
}
|
|
39
|
+
function Ne(e) {
|
|
40
|
+
return `${Ee}_${e + 1}`;
|
|
41
|
+
}
|
|
39
42
|
function Pe(e) {
|
|
40
43
|
return `${De}_${e + 1}`;
|
|
41
44
|
}
|
|
42
|
-
function Fe(
|
|
43
|
-
return
|
|
45
|
+
function Fe() {
|
|
46
|
+
return RegExp(`^${Ee}_\\d+$`);
|
|
44
47
|
}
|
|
45
48
|
function Ie() {
|
|
46
49
|
return RegExp(`^${De}_\\d+$`);
|
|
47
50
|
}
|
|
48
|
-
function Le() {
|
|
49
|
-
return RegExp(`^${Oe}_\\d+$`);
|
|
50
|
-
}
|
|
51
51
|
//#endregion
|
|
52
52
|
//#region src/utils/geometry.ts
|
|
53
|
-
var
|
|
54
|
-
function
|
|
53
|
+
var Le = /* @__PURE__ */ e(le(), 1);
|
|
54
|
+
function Re(e, t, n) {
|
|
55
55
|
let [r, i] = n[0], [a, o] = n[1], [s, c] = n[2], l = (o - c) * (r - s) + (s - a) * (i - c);
|
|
56
56
|
if (l === 0) return !1;
|
|
57
57
|
let u = ((o - c) * (e - s) + (s - a) * (t - c)) / l, d = ((c - i) * (e - s) + (r - s) * (t - c)) / l, f = 1 - u - d;
|
|
@@ -59,19 +59,19 @@ function ze(e, t, n) {
|
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/components/Map/drawing/config/config-booth-badge.ts
|
|
62
|
-
var
|
|
63
|
-
function
|
|
64
|
-
return e.length <=
|
|
62
|
+
var ze = .5, Be = .3, Ve = 15, He = 24, Ue = 30, We = 12, Ge = .8, Ke = document.createElement("canvas").getContext("2d");
|
|
63
|
+
function qe(e) {
|
|
64
|
+
return e.length <= Ve ? e : e.slice(0, Ve - 1) + "…";
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Je(e) {
|
|
67
67
|
var t, n;
|
|
68
68
|
if (!((t = e.paths) != null && t.length)) return [];
|
|
69
69
|
let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
|
|
70
|
-
for (let t of e.paths) for (let e of
|
|
70
|
+
for (let t of e.paths) for (let e of ge(t.index, r)) i.push(e);
|
|
71
71
|
return i;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
let t =
|
|
73
|
+
function Ye(e) {
|
|
74
|
+
let t = Je(e);
|
|
75
75
|
if (!t.length) return null;
|
|
76
76
|
let n = Infinity, r = Infinity, i = -Infinity, a = -Infinity;
|
|
77
77
|
for (let e of t) for (let t of e) t[0] < n && (n = t[0]), t[1] < r && (r = t[1]), t[0] > i && (i = t[0]), t[1] > a && (a = t[1]);
|
|
@@ -82,25 +82,25 @@ function Xe(e) {
|
|
|
82
82
|
h: a - r
|
|
83
83
|
} : null;
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
for (let r of n) if (
|
|
85
|
+
function B(e, t, n) {
|
|
86
|
+
for (let r of n) if (Re(e, t, r)) return !0;
|
|
87
87
|
return !1;
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
if (!e.length || !
|
|
89
|
+
function Xe(e, t, n, r, i, a) {
|
|
90
|
+
if (!e.length || !B(t, n, e)) return a;
|
|
91
91
|
let o = 0, s = a;
|
|
92
92
|
for (let a = 0; a < 10; a++) {
|
|
93
93
|
let a = (o + s) / 2, c = r * a, l = i * a;
|
|
94
|
-
|
|
94
|
+
B(t + c, n, e) && B(t, n + l, e) && B(t + c, n + l, e) ? o = a : s = a;
|
|
95
95
|
}
|
|
96
96
|
return o;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ze(e) {
|
|
99
99
|
var t;
|
|
100
|
-
return (t =
|
|
100
|
+
return (t = Ye(e)) == null ? e.rect : t;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
103
|
-
let i =
|
|
102
|
+
function Qe(e, t, n, r) {
|
|
103
|
+
let i = Ze(e);
|
|
104
104
|
if (t.length) {
|
|
105
105
|
let e = /* @__PURE__ */ new Set(), r = null, a = Infinity;
|
|
106
106
|
for (let o of t) for (let s of o) {
|
|
@@ -108,7 +108,7 @@ function $e(e, t, n, r) {
|
|
|
108
108
|
if (e.has(o)) continue;
|
|
109
109
|
e.add(o);
|
|
110
110
|
let c = s[0] + n, l = s[1] + n;
|
|
111
|
-
if (
|
|
111
|
+
if (B(c, l, t)) {
|
|
112
112
|
let e = c - i.x1 + (l - i.y1);
|
|
113
113
|
e < a && (a = e, r = {
|
|
114
114
|
x: c,
|
|
@@ -129,57 +129,57 @@ function $e(e, t, n, r) {
|
|
|
129
129
|
y: e.rect.cy + l * c + u * s
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function V(e) {
|
|
133
133
|
return e && e !== "none" ? e : void 0;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function $e(e) {
|
|
136
136
|
var t;
|
|
137
|
-
let n =
|
|
138
|
-
return ((t = e.paths) == null ? void 0 : t.length) > 1 &&
|
|
139
|
-
}
|
|
140
|
-
function
|
|
141
|
-
let n =
|
|
142
|
-
|
|
143
|
-
let c =
|
|
144
|
-
let n = e / 2, r = t / 2, i =
|
|
145
|
-
return new
|
|
137
|
+
let n = V(e.borderColor) || V(he.boothBorderColor) || he.colors.booths.default;
|
|
138
|
+
return ((t = e.paths) == null ? void 0 : t.length) > 1 && V(e.paths[e.paths.length - 1].color) || n;
|
|
139
|
+
}
|
|
140
|
+
function et(e, t) {
|
|
141
|
+
let n = qe(t.title || t.name), i = $e(t), a = me((0, Le.default)(i).hex()), o = window.devicePixelRatio || 1, s = f();
|
|
142
|
+
Ke.font = ee(Ue, s);
|
|
143
|
+
let c = Ke.measureText(n).width, l = Math.ceil(c + We * 2), p = (t.borderWidth || R.borderWidth) / 2, m = l * Ge, h = 54 * Ge, g = t.rotate ? -t.rotate : 0, _ = t.rect.w, v = t.rect.h, y = Math.min(_ > 0 ? _ * ze / m : Infinity, v > 0 ? v * Be / h : Infinity), b = Je(t), { x, y: S } = Qe(t, b, p, g), C = Xe(b, x, S, m, h, y), T = Math.cos(g), E = Math.sin(g), D = (e, t) => {
|
|
144
|
+
let n = e / 2, r = t / 2, i = x + n * T - r * E, a = S + n * E + r * T;
|
|
145
|
+
return new w({
|
|
146
146
|
x: i - n,
|
|
147
147
|
y: a - r
|
|
148
148
|
}, {
|
|
149
149
|
x: i + n,
|
|
150
150
|
y: a + r
|
|
151
|
-
},
|
|
152
|
-
},
|
|
153
|
-
let t = Math.min(e,
|
|
154
|
-
return
|
|
155
|
-
},
|
|
156
|
-
|
|
157
|
-
let
|
|
151
|
+
}, g);
|
|
152
|
+
}, O = (e) => {
|
|
153
|
+
let t = Math.min(e, C);
|
|
154
|
+
return D(m * t, h * t);
|
|
155
|
+
}, k = d(s, e.fontUrls), A = M(D(1, 1), i);
|
|
156
|
+
A.hidden = !0, A.dim = t.skipDim ? !1 : void 0;
|
|
157
|
+
let j = be(u([[n], []], a, 0, [k, k]), D(1, 1), [0, 0], {
|
|
158
158
|
horizontal: "center",
|
|
159
159
|
vertical: "center"
|
|
160
160
|
});
|
|
161
|
-
|
|
162
|
-
let
|
|
161
|
+
j.hidden = !0, j.dim = t.skipDim ? !1 : void 0;
|
|
162
|
+
let N = () => !!(t.layer && !t.layer.visible);
|
|
163
163
|
return r(() => t.skipDim, (t) => {
|
|
164
|
-
|
|
164
|
+
A.dim = t ? !1 : void 0, j.dim = t ? !1 : void 0, e.update(A, j);
|
|
165
165
|
}), r(() => {
|
|
166
166
|
var e, n;
|
|
167
167
|
return (e = (n = t.layer) == null ? void 0 : n.visible) == null ? !0 : e;
|
|
168
168
|
}, (t) => {
|
|
169
|
-
|
|
170
|
-
}), e.onPtScale(`badge-bg-${t.id}`, (e) => (
|
|
171
|
-
let t = Math.min(e,
|
|
172
|
-
return
|
|
169
|
+
A.hidden = !t, j.hidden = !t, e.update(A, j);
|
|
170
|
+
}), e.onPtScale(`badge-bg-${t.id}`, (e) => (A.shape = O(e), A.hidden = N(), A)), e.onPtScale(`badge-text-${t.id}`, (e) => {
|
|
171
|
+
let t = Math.min(e, C);
|
|
172
|
+
return j.lines[0].fontSize = He / o * t, j.bounds = O(e), j.hidden = N(), j;
|
|
173
173
|
}), {
|
|
174
|
-
bg:
|
|
175
|
-
text:
|
|
174
|
+
bg: A,
|
|
175
|
+
text: j
|
|
176
176
|
};
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
if (
|
|
178
|
+
function tt(e, t, n) {
|
|
179
|
+
if (pe.hideExhibitorBoothNumber) return null;
|
|
180
180
|
let r = [], i = [];
|
|
181
|
-
for (let t of n) if (t instanceof
|
|
182
|
-
let { bg: n, text: a } =
|
|
181
|
+
for (let t of n) if (t instanceof de && t.noLabels && !L.hideLogoInBooth && t.exhibitors.some((e) => e.logoInBooth && e.logo)) {
|
|
182
|
+
let { bg: n, text: a } = et(e, t);
|
|
183
183
|
r.push(n), i.push(a);
|
|
184
184
|
}
|
|
185
185
|
return r.length ? {
|
|
@@ -195,9 +195,9 @@ function nt(e, t, n) {
|
|
|
195
195
|
}
|
|
196
196
|
//#endregion
|
|
197
197
|
//#region src/components/Map/drawing/config/config-markers.ts
|
|
198
|
-
var
|
|
199
|
-
function
|
|
200
|
-
let t = [], n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = e.scene.rootLayer.children.find((e) => e.name ===
|
|
198
|
+
var nt = "_selected", rt = "markers";
|
|
199
|
+
function it(e) {
|
|
200
|
+
let t = [], n = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = e.scene.rootLayer.children.find((e) => e.name === rt);
|
|
201
201
|
async function s(e) {
|
|
202
202
|
let t = [];
|
|
203
203
|
e.forEach((e) => {
|
|
@@ -218,34 +218,34 @@ function at(e) {
|
|
|
218
218
|
t.push(l), c.src = i, c.crossOrigin = "anonymous";
|
|
219
219
|
}), await Promise.all(t);
|
|
220
220
|
}
|
|
221
|
-
let
|
|
221
|
+
let l = (e) => `marker-ptScaleHandlers-${e.id}`, u = (e) => `marker-rollHandlers-${e.id}`, d = (t, n) => {
|
|
222
222
|
e.onPtScale(n, (e) => {
|
|
223
223
|
let { center: n, rotation: r } = t.bounds, { width: i, height: a } = t.source;
|
|
224
|
-
return t.bounds =
|
|
224
|
+
return t.bounds = g(n.x, n.y, i, a, e, r), t;
|
|
225
225
|
});
|
|
226
226
|
}, f = (t, n) => {
|
|
227
227
|
e.onRoll(n, (e) => (t.bounds.rotation = e, t));
|
|
228
228
|
};
|
|
229
229
|
function p() {
|
|
230
|
-
let t =
|
|
230
|
+
let t = I.routeStore.markersData.markers;
|
|
231
231
|
if (!t.length) return;
|
|
232
232
|
a = [];
|
|
233
|
-
let r = e.scale, s =
|
|
233
|
+
let r = e.scale, s = c(e.angle);
|
|
234
234
|
t.forEach((e) => {
|
|
235
235
|
var t, o;
|
|
236
236
|
let c = n.get(e.icon);
|
|
237
237
|
if (!c) return;
|
|
238
238
|
let l = c.scale || window.devicePixelRatio, u = e.icon;
|
|
239
239
|
if (!i.has(u)) {
|
|
240
|
-
let e =
|
|
240
|
+
let e = ce(c.img, c.width, c.height, l);
|
|
241
241
|
i.set(u, e);
|
|
242
242
|
}
|
|
243
243
|
let d = i.get(u), f = n.get(e.selectedIcon), p = e.selectedIcon;
|
|
244
244
|
if (!i.has(p)) {
|
|
245
|
-
let e =
|
|
245
|
+
let e = ce(f.img, f.width, f.height, l);
|
|
246
246
|
i.set(p, e);
|
|
247
247
|
}
|
|
248
|
-
let m = i.get(p), h = (t = (o =
|
|
248
|
+
let m = i.get(p), h = (t = (o = F.findLayer(e.z)) == null ? void 0 : o.visible) == null ? !0 : t, _ = g(e.x, e.y, d.width, d.height, r, s), v = g(e.x, e.y, m.width, m.height, r, s), y;
|
|
249
249
|
switch (e.position) {
|
|
250
250
|
case "lefttop":
|
|
251
251
|
y = [0, 0];
|
|
@@ -259,91 +259,91 @@ function at(e) {
|
|
|
259
259
|
default: y = [.5, .5];
|
|
260
260
|
}
|
|
261
261
|
let b = {
|
|
262
|
-
...
|
|
262
|
+
...k(d, _, {
|
|
263
263
|
hidden: !h,
|
|
264
264
|
origin: y
|
|
265
265
|
}),
|
|
266
266
|
id: e.id,
|
|
267
267
|
scale: l
|
|
268
268
|
}, x = {
|
|
269
|
-
...
|
|
269
|
+
...k(m, v, {
|
|
270
270
|
hidden: !(h && e.active),
|
|
271
271
|
origin: y
|
|
272
272
|
}),
|
|
273
|
-
id: `${e.id}${
|
|
273
|
+
id: `${e.id}${nt}`,
|
|
274
274
|
scale: l
|
|
275
275
|
};
|
|
276
276
|
a.push(b, x);
|
|
277
277
|
}), o.children = a, a.forEach((e) => {
|
|
278
|
-
d(e,
|
|
278
|
+
d(e, l(e)), f(e, u(e));
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
function m() {
|
|
282
282
|
a.forEach((t) => {
|
|
283
|
-
e.ptScaleRegistry.unregisterByName(
|
|
283
|
+
e.ptScaleRegistry.unregisterByName(l(t)), e.rollRegistry.unregisterByName(u(t));
|
|
284
284
|
}), o.children = [], a = [];
|
|
285
285
|
}
|
|
286
286
|
function h() {
|
|
287
|
-
let e =
|
|
287
|
+
let e = I.routeStore.markersData.markers;
|
|
288
288
|
e.length && e.forEach((e) => {
|
|
289
289
|
var t, n;
|
|
290
|
-
let r = a.find((t) => t.id === e.id), i = a.find((t) => t.id === `${e.id}${
|
|
290
|
+
let r = a.find((t) => t.id === e.id), i = a.find((t) => t.id === `${e.id}${nt}`);
|
|
291
291
|
if (!r) return;
|
|
292
|
-
let o = (t = (n =
|
|
292
|
+
let o = (t = (n = F.findLayer(e.z)) == null ? void 0 : n.visible) == null ? !0 : t;
|
|
293
293
|
e.active ? (r.hidden = !0, i.hidden = !(o && e.active)) : (r.hidden = !o, i.hidden = !0);
|
|
294
294
|
});
|
|
295
295
|
}
|
|
296
|
-
return t.push(r(() => [
|
|
297
|
-
if (!
|
|
296
|
+
return t.push(r(() => [I.routeStore.selectedMarkers, I.layerStore.visible], () => {
|
|
297
|
+
if (!I.routeStore.markersData.markers.length) {
|
|
298
298
|
m(), e.update(o);
|
|
299
299
|
return;
|
|
300
300
|
}
|
|
301
301
|
h(), e.update(...a);
|
|
302
|
-
})), t.push(r(() =>
|
|
303
|
-
s(
|
|
302
|
+
})), t.push(r(() => I.routeStore.markersData.markers, () => {
|
|
303
|
+
s(I.routeStore.markersData.icons).then(() => {
|
|
304
304
|
p(), e.update(o);
|
|
305
305
|
});
|
|
306
306
|
}, { fireImmediately: !0 })), function() {
|
|
307
307
|
t.forEach((e) => e()), t.length = 0;
|
|
308
308
|
};
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
for (let r of
|
|
312
|
-
let i =
|
|
310
|
+
function at(e, t, n) {
|
|
311
|
+
for (let r of I.routeStore.markersData.markers) {
|
|
312
|
+
let i = I.routeStore.markersData.icons.find((e) => e.name === r.icon);
|
|
313
313
|
if (!i) continue;
|
|
314
314
|
let a = i.width * n * devicePixelRatio, o = i.height * n * devicePixelRatio;
|
|
315
|
-
if (
|
|
316
|
-
let e =
|
|
315
|
+
if (ot(e, t, r.x, r.y, a, o)) {
|
|
316
|
+
let e = I.layerStore.findLayer(r.z);
|
|
317
317
|
if (!e || e && e.visible) return r;
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
return null;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function ot(e, t, n, r, i, a) {
|
|
323
323
|
let o = e >= n - i && e <= n + i, s = t >= r - a && t <= r + a;
|
|
324
324
|
return o && s;
|
|
325
325
|
}
|
|
326
326
|
//#endregion
|
|
327
327
|
//#region src/components/Map/drawing/config/config-all.ts
|
|
328
|
-
function
|
|
329
|
-
let { layers: t, defaultLayer: n } =
|
|
328
|
+
function st(e) {
|
|
329
|
+
let { layers: t, defaultLayer: n } = I.layerStore;
|
|
330
330
|
if (n) {
|
|
331
331
|
let e = [].concat(t), r = t.find((e) => e === n), i = t.indexOf(r);
|
|
332
332
|
e.splice(i, 1), t = [r].concat(e);
|
|
333
333
|
}
|
|
334
|
-
let r = t.filter((e) => !e.rootParent).map((t) =>
|
|
334
|
+
let r = t.filter((e) => !e.rootParent).map((t) => ve(t, e));
|
|
335
335
|
return Promise.all(r).then((t) => {
|
|
336
|
-
let n =
|
|
336
|
+
let n = m(xe, [], {
|
|
337
337
|
dim: !1,
|
|
338
338
|
interactive: !0
|
|
339
|
-
}), r =
|
|
339
|
+
}), r = m(Ce, [], { dim: !1 }), i = m(rt, []), a = m(Se, [], { dim: !1 }), o = m(we, [], { dim: !1 }), s = m(Te, [], { dim: !1 }), c = [], l = [];
|
|
340
340
|
for (let e of t.flat()) S(e.name) ? (e.dim = !1, l.push(e)) : c.push(e);
|
|
341
|
-
let u =
|
|
341
|
+
let u = tt(e, "root", I.boothStore.booths);
|
|
342
342
|
return [
|
|
343
343
|
...c,
|
|
344
344
|
...u ? [u] : [],
|
|
345
345
|
...l,
|
|
346
|
-
...
|
|
346
|
+
...Me(),
|
|
347
347
|
i,
|
|
348
348
|
a,
|
|
349
349
|
r,
|
|
@@ -355,7 +355,7 @@ function ct(e) {
|
|
|
355
355
|
}
|
|
356
356
|
//#endregion
|
|
357
357
|
//#region src/components/Map/traffic/UpdateQueue.ts
|
|
358
|
-
var
|
|
358
|
+
var H = /* @__PURE__ */ e(t(), 1), ct = class {
|
|
359
359
|
constructor() {
|
|
360
360
|
this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
|
|
361
361
|
}
|
|
@@ -397,7 +397,7 @@ var V = /* @__PURE__ */ e(t(), 1), lt = class {
|
|
|
397
397
|
destroy() {
|
|
398
398
|
this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
|
|
399
399
|
}
|
|
400
|
-
},
|
|
400
|
+
}, U = 49, lt = `hsl(257, 76%, ${U}%)`, ut = `hsl(339.903, 82%, ${U}%)`, dt = `hsl(257, 76%, ${Math.round(U * 1.82)}%)`, W = 4, ft = W, pt = "U", mt = "R", ht = "S", gt = "P", _t = class {
|
|
401
401
|
constructor() {
|
|
402
402
|
this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
|
|
403
403
|
}
|
|
@@ -436,10 +436,10 @@ var V = /* @__PURE__ */ e(t(), 1), lt = class {
|
|
|
436
436
|
instruct() {
|
|
437
437
|
this.log(`How to Build a Route:
|
|
438
438
|
Add Point: Click on the map.
|
|
439
|
-
Apply Smoothing: Press ${
|
|
440
|
-
Apply Simplification: Press ${
|
|
441
|
-
Undo: Press ${
|
|
442
|
-
Enable/Disable Preview: Press ${
|
|
439
|
+
Apply Smoothing: Press ${mt}.
|
|
440
|
+
Apply Simplification: Press ${ht}.
|
|
441
|
+
Undo: Press ${pt}.
|
|
442
|
+
Enable/Disable Preview: Press ${gt}.
|
|
443
443
|
`, 16);
|
|
444
444
|
}
|
|
445
445
|
applyChaikinSmoothing(e, t, n) {
|
|
@@ -533,15 +533,15 @@ Enable/Disable Preview: Press ${_t}.
|
|
|
533
533
|
this._selected = Math.max(0, Math.min(e, this.points.length - 1));
|
|
534
534
|
}
|
|
535
535
|
};
|
|
536
|
-
function
|
|
537
|
-
let n = (0,
|
|
536
|
+
function vt({ enabled: e, rendererService: t }) {
|
|
537
|
+
let n = (0, H.useRef)(!1), r = (0, H.useRef)(), i = (0, H.useMemo)(() => ie(W, lt), []), a = (0, H.useMemo)(() => ie(W, ut), []), o = (0, H.useMemo)(() => new _t(), []), s = (0, H.useRef)(new ct()), c = (0, H.useMemo)(() => {
|
|
538
538
|
if (!t.scene) return {};
|
|
539
539
|
let e = t.scene.rootLayer.children;
|
|
540
540
|
return {
|
|
541
|
-
linesLayer: e.find((e) => e.name ===
|
|
542
|
-
pointsLayer: e.find((e) => e.name ===
|
|
541
|
+
linesLayer: e.find((e) => e.name === ke),
|
|
542
|
+
pointsLayer: e.find((e) => e.name === Ae)
|
|
543
543
|
};
|
|
544
|
-
}, [t.scene]), l = (0,
|
|
544
|
+
}, [t.scene]), l = (0, H.useCallback)(() => {
|
|
545
545
|
if (!(t != null && t.renderer) || !c || !i || !a) return;
|
|
546
546
|
let { linesLayer: e, pointsLayer: l } = c;
|
|
547
547
|
if (!e || !l) return;
|
|
@@ -550,7 +550,7 @@ function yt({ enabled: e, rendererService: t }) {
|
|
|
550
550
|
let s = n == o.selected ? a : i;
|
|
551
551
|
return {
|
|
552
552
|
source: s,
|
|
553
|
-
bounds:
|
|
553
|
+
bounds: g(e, t, s.width, s.height, r.current)
|
|
554
554
|
};
|
|
555
555
|
});
|
|
556
556
|
let f = [];
|
|
@@ -558,8 +558,8 @@ function yt({ enabled: e, rendererService: t }) {
|
|
|
558
558
|
let t = u[e - 1], n = u[e];
|
|
559
559
|
f.push({
|
|
560
560
|
points: [t, n],
|
|
561
|
-
color: d ?
|
|
562
|
-
width:
|
|
561
|
+
color: d ? lt : dt,
|
|
562
|
+
width: ft
|
|
563
563
|
});
|
|
564
564
|
}
|
|
565
565
|
f.length ? e.children = f : e.children.length = 0, s.current.add(() => t.update(l, e)), o.instruct(), o.log(JSON.stringify(o.points));
|
|
@@ -569,32 +569,32 @@ function yt({ enabled: e, rendererService: t }) {
|
|
|
569
569
|
c,
|
|
570
570
|
i,
|
|
571
571
|
a
|
|
572
|
-
]), u = (0,
|
|
572
|
+
]), u = (0, H.useCallback)((e) => {
|
|
573
573
|
let t = e.key.toUpperCase();
|
|
574
574
|
o.execute(() => {
|
|
575
575
|
switch (t) {
|
|
576
|
-
case
|
|
576
|
+
case pt:
|
|
577
577
|
e.preventDefault(), o.undo(), n.current = !1, l();
|
|
578
578
|
break;
|
|
579
|
-
case
|
|
579
|
+
case mt:
|
|
580
580
|
e.preventDefault(), o.applySmoothing(), n.current = !1, l();
|
|
581
581
|
break;
|
|
582
|
-
case
|
|
582
|
+
case ht:
|
|
583
583
|
e.preventDefault(), o.applySimplification(), n.current = !1, l();
|
|
584
584
|
break;
|
|
585
|
-
case
|
|
585
|
+
case gt:
|
|
586
586
|
e.preventDefault(), n.current = !n.current, l();
|
|
587
587
|
break;
|
|
588
588
|
}
|
|
589
589
|
});
|
|
590
|
-
}, [o, l]), d = (0,
|
|
591
|
-
if (!
|
|
590
|
+
}, [o, l]), d = (0, H.useCallback)(({ ptScale: e, sceneId: n }) => {
|
|
591
|
+
if (!ne(n) || !(t != null && t.renderer) || !c) return;
|
|
592
592
|
let { pointsLayer: i } = c;
|
|
593
593
|
i && (r.current = e, o.execute(() => {
|
|
594
594
|
let e = i.children, n = [];
|
|
595
595
|
for (let t = 0; t < e.length; t++) {
|
|
596
596
|
let i = e[t];
|
|
597
|
-
i.bounds =
|
|
597
|
+
i.bounds = g(i.bounds.center.x, i.bounds.center.y, i.source.width, i.source.height, r.current), n.push(i);
|
|
598
598
|
}
|
|
599
599
|
s.current.add(() => t.update(...n));
|
|
600
600
|
}));
|
|
@@ -602,7 +602,7 @@ function yt({ enabled: e, rendererService: t }) {
|
|
|
602
602
|
t,
|
|
603
603
|
c,
|
|
604
604
|
o
|
|
605
|
-
]), f = (0,
|
|
605
|
+
]), f = (0, H.useCallback)(({ data: e }) => {
|
|
606
606
|
o.execute(() => {
|
|
607
607
|
let { point: t } = v(e);
|
|
608
608
|
o.add({
|
|
@@ -611,7 +611,7 @@ function yt({ enabled: e, rendererService: t }) {
|
|
|
611
611
|
}), o.select(o.points.length - 1), l();
|
|
612
612
|
});
|
|
613
613
|
}, [o, l]);
|
|
614
|
-
(0,
|
|
614
|
+
(0, H.useEffect)(() => {
|
|
615
615
|
let n = t.renderer;
|
|
616
616
|
if (!(!e || !n)) return r.current = t.scale, o.execute(() => {
|
|
617
617
|
o.restore(), l();
|
|
@@ -630,10 +630,10 @@ function yt({ enabled: e, rendererService: t }) {
|
|
|
630
630
|
}
|
|
631
631
|
//#endregion
|
|
632
632
|
//#region src/components/Map/traffic/useManageTraffic.ts
|
|
633
|
-
var
|
|
634
|
-
function
|
|
635
|
-
let a = (0,
|
|
636
|
-
(0,
|
|
633
|
+
var G = 2, yt = G * 3.5, K = G * 12, bt = K * .7, xt = 8, St = "transport_locations", Ct = 150, q = "#a4aab6", wt = 1e3, Tt = 2e4, Et = 500;
|
|
634
|
+
function Dt({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i }) {
|
|
635
|
+
let a = (0, H.useRef)(window.devicePixelRatio), s = (0, H.useRef)(/* @__PURE__ */ new Map()), c = (0, H.useRef)(/* @__PURE__ */ new Map()), l = (0, H.useRef)(), u = (0, H.useRef)(), d = (0, H.useRef)(performance.now()), f = (0, H.useRef)(1), p = (0, H.useRef)(new ct()), m = (0, H.useRef)(/* @__PURE__ */ new Map()), h = (0, H.useRef)(), _ = (0, H.useRef)(wt), v = (0, H.useRef)(/* @__PURE__ */ new Map()), y = (0, H.useRef)();
|
|
636
|
+
(0, H.useEffect)(() => {
|
|
637
637
|
let b;
|
|
638
638
|
async function x() {
|
|
639
639
|
if (!(!e || !t.scene)) try {
|
|
@@ -649,16 +649,16 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
649
649
|
console.warn("useManageTraffic failed to get JSON", e);
|
|
650
650
|
}
|
|
651
651
|
if (!e || e != null && e.disabled || e != null && e.error) return;
|
|
652
|
-
a.current =
|
|
653
|
-
let i = new Map(e.routes.map(({ id: e, color: t }) => [e, t])), l = t.scene.rootLayer.children,
|
|
652
|
+
a.current = Ot(t.scale);
|
|
653
|
+
let i = new Map(e.routes.map(({ id: e, color: t }) => [e, t])), l = t.scene.rootLayer.children, _ = /* @__PURE__ */ new Map();
|
|
654
654
|
i.forEach((e) => {
|
|
655
|
-
|
|
656
|
-
radius:
|
|
655
|
+
_.set(e, jt({
|
|
656
|
+
radius: yt,
|
|
657
657
|
color: e,
|
|
658
658
|
scale: window.devicePixelRatio
|
|
659
659
|
}));
|
|
660
660
|
});
|
|
661
|
-
let y =
|
|
661
|
+
let y = Fe(), x = l.filter((e) => y.test(e.name)), C = Ie(), T = l.filter((e) => C.test(e.name));
|
|
662
662
|
e.routes.slice(0, x.length).forEach(({ id: e, color: n, path: r, stops: i, hiddenPoints: o }, s) => {
|
|
663
663
|
m.current.set(e, r);
|
|
664
664
|
let c = x[s];
|
|
@@ -670,40 +670,40 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
670
670
|
e.has(zt(i)) || e.has(zt(a)) || c.children.push({
|
|
671
671
|
points: [i, a],
|
|
672
672
|
color: n,
|
|
673
|
-
width:
|
|
673
|
+
width: G
|
|
674
674
|
});
|
|
675
675
|
}
|
|
676
676
|
c.children.length && p.current.add(() => t.update(c));
|
|
677
677
|
}
|
|
678
678
|
let u = T[s];
|
|
679
679
|
if (u && i != null && i.length) {
|
|
680
|
-
let e =
|
|
680
|
+
let e = _.get(n);
|
|
681
681
|
i.forEach((t) => {
|
|
682
682
|
u.children.push({
|
|
683
683
|
source: e,
|
|
684
|
-
bounds:
|
|
684
|
+
bounds: g(t.x, t.y, e.width, e.height, a.current)
|
|
685
685
|
});
|
|
686
686
|
}), u.children.length && p.current.add(() => t.update(u));
|
|
687
687
|
}
|
|
688
688
|
});
|
|
689
|
-
let E = l.find((e) => e.name ===
|
|
689
|
+
let E = l.find((e) => e.name === Oe), D = /* @__PURE__ */ new Map();
|
|
690
690
|
h.current = (e) => {
|
|
691
691
|
try {
|
|
692
|
-
let { ptScale: n, sceneId: r } =
|
|
693
|
-
if (!
|
|
694
|
-
a.current =
|
|
692
|
+
let { ptScale: n, sceneId: r } = kt(e);
|
|
693
|
+
if (!ne(r)) return;
|
|
694
|
+
a.current = Ot(n);
|
|
695
695
|
let i = [];
|
|
696
696
|
for (let e = 0; e < T.length; e++) {
|
|
697
697
|
let t = T[e].children;
|
|
698
698
|
for (let e = 0; e < t.length; e++) {
|
|
699
699
|
let n = t[e];
|
|
700
|
-
n.bounds =
|
|
700
|
+
n.bounds = g(n.bounds.center.x, n.bounds.center.y, n.source.width, n.source.height, a.current, n.bounds.rotation), i.push(n);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
let o = [...s.current.values()];
|
|
704
704
|
for (let e = 0; e < o.length; e++) {
|
|
705
705
|
let t = o[e];
|
|
706
|
-
t.bounds =
|
|
706
|
+
t.bounds = g(t.bounds.center.x, t.bounds.center.y, t.source.width, t.source.height, a.current, t.bounds.rotation);
|
|
707
707
|
}
|
|
708
708
|
p.current.add(() => t.update(...i, ...o));
|
|
709
709
|
} catch (e) {
|
|
@@ -713,23 +713,23 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
713
713
|
var e;
|
|
714
714
|
(e = h.current) == null || e.call(h, t.scale);
|
|
715
715
|
}), i.forEach((e, t) => {
|
|
716
|
-
D.set(t,
|
|
716
|
+
D.set(t, Mt({
|
|
717
717
|
id: t,
|
|
718
|
-
width:
|
|
719
|
-
height:
|
|
718
|
+
width: K,
|
|
719
|
+
height: K,
|
|
720
720
|
color: e,
|
|
721
721
|
scale: window.devicePixelRatio
|
|
722
722
|
}));
|
|
723
|
-
}), D.set(
|
|
723
|
+
}), D.set(q, Mt({
|
|
724
724
|
id: "orphan",
|
|
725
|
-
width:
|
|
726
|
-
height:
|
|
727
|
-
color:
|
|
725
|
+
width: K,
|
|
726
|
+
height: K,
|
|
727
|
+
color: q,
|
|
728
728
|
scale: window.devicePixelRatio
|
|
729
729
|
}));
|
|
730
730
|
let O = null;
|
|
731
731
|
try {
|
|
732
|
-
O =
|
|
732
|
+
O = ce(await n(`${o}icons/bus-white.svg`), bt, bt, window.devicePixelRatio);
|
|
733
733
|
} catch (e) {
|
|
734
734
|
console.error(e);
|
|
735
735
|
}
|
|
@@ -737,10 +737,10 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
737
737
|
try {
|
|
738
738
|
var n;
|
|
739
739
|
let r = JSON.parse(e.data);
|
|
740
|
-
if (r.type !==
|
|
740
|
+
if (r.type !== St) return;
|
|
741
741
|
let i = e.timeStamp || performance.now();
|
|
742
742
|
f.current = Math.round(i - d.current), d.current = i;
|
|
743
|
-
let o = Math.max((n = f.current) == null ?
|
|
743
|
+
let o = Math.max((n = f.current) == null ? Et : n, Et), l = c.current, u = s.current, h = E.children, _ = p.current, y = !1;
|
|
744
744
|
r.data.forEach(({ id: e, x: n, y: r, route_id: i, hidden: s }) => {
|
|
745
745
|
if (l.has(e)) {
|
|
746
746
|
var c;
|
|
@@ -750,20 +750,20 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
750
750
|
let n = u.get(e);
|
|
751
751
|
n.hidden = !0;
|
|
752
752
|
let r = u.get(J(e));
|
|
753
|
-
r.hidden = !0,
|
|
753
|
+
r.hidden = !0, _.add(() => t.update(n, r));
|
|
754
754
|
return;
|
|
755
755
|
}
|
|
756
756
|
if (v.current.set(e, performance.now()), !u.has(e)) {
|
|
757
|
-
let t = D.get(i) || D.get(
|
|
757
|
+
let t = D.get(i) || D.get(q), o = {
|
|
758
758
|
id: e,
|
|
759
759
|
source: t,
|
|
760
|
-
bounds:
|
|
760
|
+
bounds: g(n, r, t.width, t.height, a.current, 0)
|
|
761
761
|
};
|
|
762
762
|
if (u.set(e, o), O) {
|
|
763
763
|
let t = J(e), i = {
|
|
764
764
|
id: t,
|
|
765
765
|
source: O,
|
|
766
|
-
bounds:
|
|
766
|
+
bounds: g(n, r, O.width, O.height, a.current, 0)
|
|
767
767
|
};
|
|
768
768
|
O.setAttribute("id", t), u.set(t, i), h.push(o, i);
|
|
769
769
|
} else h.push(o);
|
|
@@ -774,15 +774,15 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
774
774
|
x: n,
|
|
775
775
|
y: r
|
|
776
776
|
}, m.current.get(i));
|
|
777
|
-
if (b.reduce((e, t, n) => n === 0 ? e : e +
|
|
777
|
+
if (b.reduce((e, t, n) => n === 0 ? e : e + Nt(b[n - 1], t), 0) >= Ct || document.hidden) Pt({
|
|
778
778
|
rendererService: t,
|
|
779
|
-
updateQueue:
|
|
779
|
+
updateQueue: _,
|
|
780
780
|
vehicle: d,
|
|
781
781
|
vehicleFinery: f,
|
|
782
782
|
x: n,
|
|
783
783
|
y: r,
|
|
784
784
|
scale: a.current,
|
|
785
|
-
angle:
|
|
785
|
+
angle: At(d.bounds.center, {
|
|
786
786
|
x: n,
|
|
787
787
|
y: r
|
|
788
788
|
})
|
|
@@ -791,7 +791,7 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
791
791
|
let n = Rt(b, o, (e) => {
|
|
792
792
|
Pt({
|
|
793
793
|
rendererService: t,
|
|
794
|
-
updateQueue:
|
|
794
|
+
updateQueue: _,
|
|
795
795
|
vehicle: d,
|
|
796
796
|
vehicleFinery: f,
|
|
797
797
|
x: e.x,
|
|
@@ -802,11 +802,11 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
802
802
|
});
|
|
803
803
|
l.set(e, n);
|
|
804
804
|
}
|
|
805
|
-
}), y &&
|
|
805
|
+
}), y && _.add(() => t.update(E));
|
|
806
806
|
} catch (e) {
|
|
807
807
|
console.error("handleSocketMessage", e);
|
|
808
808
|
}
|
|
809
|
-
}, S(), w(e.config ? (Number(e.config.vehicle_inactive_interval) || 20) * 1e3 :
|
|
809
|
+
}, S(), w(e.config ? (Number(e.config.vehicle_inactive_interval) || 20) * 1e3 : Tt);
|
|
810
810
|
} catch (e) {
|
|
811
811
|
console.warn(e);
|
|
812
812
|
}
|
|
@@ -815,9 +815,9 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
815
815
|
function S() {
|
|
816
816
|
var e, t;
|
|
817
817
|
((e = l.current) == null ? void 0 : e.readyState) === WebSocket.OPEN || ((t = l.current) == null ? void 0 : t.readyState) === WebSocket.CONNECTING || (l.current = new WebSocket(i), l.current.onmessage = u.current, l.current.onopen = () => {
|
|
818
|
-
|
|
818
|
+
_.current = wt;
|
|
819
819
|
}, l.current.onclose = () => {
|
|
820
|
-
navigator.onLine && (setTimeout(S,
|
|
820
|
+
navigator.onLine && (setTimeout(S, _.current), _.current = Math.min(_.current * 2, 3e4));
|
|
821
821
|
});
|
|
822
822
|
}
|
|
823
823
|
function C() {
|
|
@@ -846,22 +846,22 @@ function Ot({ permission: e, rendererService: t, dataJsonUrl: r, websocketUrl: i
|
|
|
846
846
|
i
|
|
847
847
|
]);
|
|
848
848
|
}
|
|
849
|
-
function
|
|
850
|
-
return Math.min(e || window.devicePixelRatio,
|
|
849
|
+
function Ot(e) {
|
|
850
|
+
return Math.min(e || window.devicePixelRatio, xt);
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function kt(e) {
|
|
853
853
|
return typeof e == "number" ? { ptScale: e } : e;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function At(e, t) {
|
|
856
856
|
return Math.atan2(t.y - e.y, t.x - e.x);
|
|
857
857
|
}
|
|
858
|
-
function
|
|
858
|
+
function jt({ radius: e, scale: t, color: n }) {
|
|
859
859
|
let r = document.createElement("canvas"), i = r.getContext("2d");
|
|
860
860
|
i.imageSmoothingEnabled = !1;
|
|
861
861
|
let a = Math.ceil(e * 2 * t), o = a / 2, s = e * .78, c = e * .33;
|
|
862
862
|
return r.width = a, r.height = a, i.translate(o, o), i.scale(t, t), i.beginPath(), i.arc(0, 0, e, 0, 2 * Math.PI), i.fillStyle = "#FFFFFF", i.fill(), i.beginPath(), i.arc(0, 0, s, 0, 2 * Math.PI), i.fillStyle = n, i.fill(), i.beginPath(), i.arc(0, 0, c, 0, 2 * Math.PI), i.fillStyle = "#FFFFFF", i.fill(), r;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function Mt({ id: e, width: t, height: n, color: r, scale: i }) {
|
|
865
865
|
let a = 2 * i, o = t / 2 * i, s = n * i, c = .01, l = s * .6, u = s, d = 8 * i, f = u + a + l / 2 + d * 2, p = o * 2 + l + a + d * 2, m = document.createElement("canvas");
|
|
866
866
|
m.setAttribute("id", e), m.width = f, m.height = p;
|
|
867
867
|
let h = m.getContext("2d"), g = f / 2, _ = p / 2;
|
|
@@ -869,14 +869,14 @@ function Nt({ id: e, width: t, height: n, color: r, scale: i }) {
|
|
|
869
869
|
let v = g, y = _ - u / 2 + o, b = y + l;
|
|
870
870
|
return h.shadowColor = "rgba(16, 24, 40, 0.2)", h.shadowBlur = d / 2, h.beginPath(), h.arc(v, y, o, Math.PI, 0, !1), h.bezierCurveTo(v + o, y + s * .3, v + c * o, b, v, b), h.bezierCurveTo(v - c * o, b, v - o, y + s * .3, v - o, y), h.closePath(), h.fillStyle = r, h.fill(), h.strokeStyle = "#FFFFFF", h.lineWidth = a, h.stroke(), h.restore(), m;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function Nt(e, t) {
|
|
873
873
|
return Math.hypot(e.x - t.x, e.y - t.y);
|
|
874
874
|
}
|
|
875
875
|
function J(e) {
|
|
876
876
|
return `${e}_finery`;
|
|
877
877
|
}
|
|
878
878
|
function Pt({ rendererService: e, updateQueue: t, vehicle: n, vehicleFinery: r, x: i, y: a, scale: o, angle: s }) {
|
|
879
|
-
n.bounds =
|
|
879
|
+
n.bounds = g(i, a, n.source.width, n.source.height, o, s), n.hidden = !1, r ? (r.bounds = g(i, a, r.source.width, r.source.height, o, c(e.angle)), r.hidden = !1, t.add(() => e.update(r, n))) : t.add(() => e.update(n));
|
|
880
880
|
}
|
|
881
881
|
function Y(e, t, n) {
|
|
882
882
|
return {
|
|
@@ -890,7 +890,7 @@ function Ft(e, t) {
|
|
|
890
890
|
t: 0
|
|
891
891
|
};
|
|
892
892
|
for (let i = 0; i < t.length - 1; i++) {
|
|
893
|
-
let a = t[i], o = t[i + 1], s = o.x - a.x, c = o.y - a.y, l = s * s + c * c, u = l ? ((e.x - a.x) * s + (e.y - a.y) * c) / l : 0, d = Math.max(0, Math.min(1, u)), f =
|
|
893
|
+
let a = t[i], o = t[i + 1], s = o.x - a.x, c = o.y - a.y, l = s * s + c * c, u = l ? ((e.x - a.x) * s + (e.y - a.y) * c) / l : 0, d = Math.max(0, Math.min(1, u)), f = Nt(e, Y(a, o, d));
|
|
894
894
|
f < n && (n = f, r = {
|
|
895
895
|
index: i,
|
|
896
896
|
t: d
|
|
@@ -899,7 +899,7 @@ function Ft(e, t) {
|
|
|
899
899
|
return r;
|
|
900
900
|
}
|
|
901
901
|
function It(e, t, n) {
|
|
902
|
-
let r =
|
|
902
|
+
let r = Nt(e, t), i = Math.max(2, Math.ceil(r / n) + 1), a = [];
|
|
903
903
|
for (let n = 0; n < i; n++) {
|
|
904
904
|
let r = Y(e, t, n / (i - 1));
|
|
905
905
|
a.push({
|
|
@@ -1002,14 +1002,14 @@ function Xt() {
|
|
|
1002
1002
|
let e = R.booths.filter((e) => e.visible && e.rect && e.rect.w > 0 && e.rect.h > 0);
|
|
1003
1003
|
if (Kt = /* @__PURE__ */ new Map(), qt = [], Yt = [], Z = null, X = /* @__PURE__ */ new Map(), !e.length) return;
|
|
1004
1004
|
Jt = e.filter((e) => e.paths);
|
|
1005
|
-
let t =
|
|
1005
|
+
let t = z.fromMultiple(e.map((e) => e.rect));
|
|
1006
1006
|
for (let t of e) {
|
|
1007
1007
|
let e = t.rect;
|
|
1008
1008
|
Math.abs(t.rotate) === 90 * Math.PI / 180 && (e = e.getRotated90()), qt.push(e), Kt.set(e, t);
|
|
1009
1009
|
}
|
|
1010
1010
|
let n = Math.ceil(t.w / 2), r = Math.ceil(t.h / 2);
|
|
1011
1011
|
for (let e = 0; e < 2; e++) for (let i = 0; i < 2; i++) {
|
|
1012
|
-
let a = t.x1 + e * n, o = t.y1 + i * r, s =
|
|
1012
|
+
let a = t.x1 + e * n, o = t.y1 + i * r, s = z.fromXywh(a, o, n, r);
|
|
1013
1013
|
Yt.push(s);
|
|
1014
1014
|
let c = qt.filter((e) => s.intersects(e));
|
|
1015
1015
|
X.set(s, c);
|
|
@@ -1018,8 +1018,8 @@ function Xt() {
|
|
|
1018
1018
|
}
|
|
1019
1019
|
r(() => [
|
|
1020
1020
|
R.booths,
|
|
1021
|
-
|
|
1022
|
-
|
|
1021
|
+
F.loaded,
|
|
1022
|
+
F.visible
|
|
1023
1023
|
], () => Xt());
|
|
1024
1024
|
function Zt(e, t) {
|
|
1025
1025
|
let n;
|
|
@@ -1034,7 +1034,7 @@ function Zt(e, t) {
|
|
|
1034
1034
|
return t.visible ? t : null;
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
for (let n of Jt) for (let r of n.paths) for (let i of
|
|
1037
|
+
for (let n of Jt) for (let r of n.paths) for (let i of ge(r.index, F.mode === N.Default ? "" : n.layer.name)) if (Re(e, t, i)) return n.visible ? n : null;
|
|
1038
1038
|
return null;
|
|
1039
1039
|
}
|
|
1040
1040
|
function Qt(e, t) {
|
|
@@ -1042,9 +1042,9 @@ function Qt(e, t) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
//#endregion
|
|
1044
1044
|
//#region src/wayfinding/bindMobxReactions.ts
|
|
1045
|
-
var $t = (e) => "rect" in e ?
|
|
1045
|
+
var $t = (e) => "rect" in e ? _e(e) : e;
|
|
1046
1046
|
function en({ runtime: e, kioskHandler: t, yahHandler: n, stores: { routeStore: i, uiState: o, layerStore: s }, rerouteThresholdSvg: c }) {
|
|
1047
|
-
let l = [], u =
|
|
1047
|
+
let l = [], u = D(c);
|
|
1048
1048
|
function d() {
|
|
1049
1049
|
var t;
|
|
1050
1050
|
let n = o.selectedRoute, r = n != null && n.from ? $t(n.from) : null, a = n != null && n.to ? $t(n.to) : null;
|
|
@@ -1055,7 +1055,7 @@ function en({ runtime: e, kioskHandler: t, yahHandler: n, stores: { routeStore:
|
|
|
1055
1055
|
e.setRoute({
|
|
1056
1056
|
from: r,
|
|
1057
1057
|
to: a,
|
|
1058
|
-
waypoints: n == null || (t = n.waypoints) == null ? void 0 : t.map(
|
|
1058
|
+
waypoints: n == null || (t = n.waypoints) == null ? void 0 : t.map(_e),
|
|
1059
1059
|
accessible: i.onlyAccessible
|
|
1060
1060
|
}) === !1 && console.error(/* @__PURE__ */ Error(`Route not found: (${r.x},${r.y}) → (${a.x},${a.y})`));
|
|
1061
1061
|
}
|
|
@@ -1065,7 +1065,7 @@ function en({ runtime: e, kioskHandler: t, yahHandler: n, stores: { routeStore:
|
|
|
1065
1065
|
e.onPositionChanged(null), n(null);
|
|
1066
1066
|
return;
|
|
1067
1067
|
}
|
|
1068
|
-
let l =
|
|
1068
|
+
let l = h(t);
|
|
1069
1069
|
c ? (e.onPositionChanged(null), n({
|
|
1070
1070
|
x: l.x,
|
|
1071
1071
|
y: l.y,
|
|
@@ -1076,20 +1076,20 @@ function en({ runtime: e, kioskHandler: t, yahHandler: n, stores: { routeStore:
|
|
|
1076
1076
|
var e;
|
|
1077
1077
|
let t = i.currentPosition, n = o.selectedRoute;
|
|
1078
1078
|
if (!t || !(n != null && n.to)) return;
|
|
1079
|
-
let r = !n.from, a = ((e = n.from) == null ? void 0 : e.id) === "current-position" && u.shouldReroute(
|
|
1080
|
-
!r && !a || i.rebuildRouteFromPosition(
|
|
1079
|
+
let r = !n.from, a = ((e = n.from) == null ? void 0 : e.id) === "current-position" && u.shouldReroute(h(t), i.routeLines);
|
|
1080
|
+
!r && !a || i.rebuildRouteFromPosition(x(t, C, oe));
|
|
1081
1081
|
}
|
|
1082
1082
|
function m() {
|
|
1083
1083
|
var e, n;
|
|
1084
1084
|
let r = (e = s.floors.find((e) => e.active)) == null ? void 0 : e.name;
|
|
1085
1085
|
t((n = o.kioskData) == null ? null : n, r, s.mode);
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function g() {
|
|
1088
1088
|
var e;
|
|
1089
1089
|
let t = o.selectedRoute, n = i.currentPosition;
|
|
1090
1090
|
if (!(t != null && t.to) || !n || ((e = t.from) == null ? void 0 : e.id) !== "current-position" || i.routeLines.length > 0) return;
|
|
1091
1091
|
let r = n.z == null ? "" : String(n.z);
|
|
1092
|
-
t.from.x === n.x && t.from.y === n.y && t.from.layer === r || i.rebuildRouteFromPosition(
|
|
1092
|
+
t.from.x === n.x && t.from.y === n.y && t.from.layer === r || i.rebuildRouteFromPosition(x(n, C, oe));
|
|
1093
1093
|
}
|
|
1094
1094
|
l.push(r(() => s.layersLoaded, () => {
|
|
1095
1095
|
d(), f();
|
|
@@ -1105,7 +1105,7 @@ function en({ runtime: e, kioskHandler: t, yahHandler: n, stores: { routeStore:
|
|
|
1105
1105
|
z: e.z
|
|
1106
1106
|
} : null;
|
|
1107
1107
|
}, () => {
|
|
1108
|
-
p(),
|
|
1108
|
+
p(), g();
|
|
1109
1109
|
}, { equals: a.structural }), r(() => [o.kioskData, s.floors.find((e) => e.active)], () => m()));
|
|
1110
1110
|
let _ = null, v = r(() => [i.currentRouteLayer, o.getRouteNextFloor], () => {
|
|
1111
1111
|
s.layersLoaded && (_ !== null && clearTimeout(_), _ = setTimeout(() => {
|
|
@@ -1121,20 +1121,20 @@ function en({ runtime: e, kioskHandler: t, yahHandler: n, stores: { routeStore:
|
|
|
1121
1121
|
}
|
|
1122
1122
|
//#endregion
|
|
1123
1123
|
//#region src/wayfinding/handlers/kioskHandler.ts
|
|
1124
|
-
var
|
|
1125
|
-
function
|
|
1124
|
+
var Q = "kiosk", tn = 0;
|
|
1125
|
+
function nn({ renderer: e, kioskIconMap: t, layer: n }) {
|
|
1126
1126
|
return (r, i, a) => {
|
|
1127
1127
|
var o;
|
|
1128
1128
|
if (!r) {
|
|
1129
|
-
e.setIcon(
|
|
1129
|
+
e.setIcon(Q, null), e.flush();
|
|
1130
1130
|
return;
|
|
1131
1131
|
}
|
|
1132
|
-
if (a !==
|
|
1133
|
-
e.setIcon(
|
|
1132
|
+
if (a !== tn && r.z && i && r.z !== i) {
|
|
1133
|
+
e.setIcon(Q, null), e.flush();
|
|
1134
1134
|
return;
|
|
1135
1135
|
}
|
|
1136
|
-
e.setIcon(
|
|
1137
|
-
canvas:
|
|
1136
|
+
e.setIcon(Q, {
|
|
1137
|
+
canvas: se(t, r.iconSizePercent),
|
|
1138
1138
|
layer: n,
|
|
1139
1139
|
x: r.x,
|
|
1140
1140
|
y: r.y,
|
|
@@ -1144,15 +1144,15 @@ function rn({ renderer: e, kioskIconMap: t, layer: n }) {
|
|
|
1144
1144
|
}
|
|
1145
1145
|
//#endregion
|
|
1146
1146
|
//#region src/wayfinding/handlers/yahHandler.ts
|
|
1147
|
-
var
|
|
1148
|
-
function
|
|
1147
|
+
var rn = "yah";
|
|
1148
|
+
function an({ renderer: e, iconProvider: t, floorContext: n, layer: r }) {
|
|
1149
1149
|
return (i) => {
|
|
1150
1150
|
if (!i) {
|
|
1151
|
-
e.setIcon(
|
|
1151
|
+
e.setIcon(rn, null), e.flush();
|
|
1152
1152
|
return;
|
|
1153
1153
|
}
|
|
1154
1154
|
let a = n.isLayerVisible(i.layer);
|
|
1155
|
-
e.setIcon(
|
|
1155
|
+
e.setIcon(rn, {
|
|
1156
1156
|
canvas: t.getIcon("yah").canvas,
|
|
1157
1157
|
layer: r,
|
|
1158
1158
|
x: i.x,
|
|
@@ -1165,7 +1165,7 @@ function on({ renderer: e, iconProvider: t, floorContext: n, layer: r }) {
|
|
|
1165
1165
|
}
|
|
1166
1166
|
//#endregion
|
|
1167
1167
|
//#region src/wayfinding/runtime/getRouteLines.ts
|
|
1168
|
-
function
|
|
1168
|
+
function on({ engine: e, from: t, to: n, waypoints: r, accessible: i }) {
|
|
1169
1169
|
return r != null && r.length ? e.buildWaypointsRoute([
|
|
1170
1170
|
t,
|
|
1171
1171
|
...r,
|
|
@@ -1174,10 +1174,10 @@ function sn({ engine: e, from: t, to: n, waypoints: r, accessible: i }) {
|
|
|
1174
1174
|
}
|
|
1175
1175
|
//#endregion
|
|
1176
1176
|
//#region src/wayfinding/runtime/endpointView.ts
|
|
1177
|
-
function
|
|
1177
|
+
function sn(e, t) {
|
|
1178
1178
|
return !t || !e.bounds && e.id !== "current-position";
|
|
1179
1179
|
}
|
|
1180
|
-
function
|
|
1180
|
+
function cn({ renderer: e, iconProvider: t, floorContext: n, layer: r }) {
|
|
1181
1181
|
return {
|
|
1182
1182
|
place(i, a, o, s) {
|
|
1183
1183
|
if (!o.length) return;
|
|
@@ -1187,7 +1187,7 @@ function ln({ renderer: e, iconProvider: t, floorContext: n, layer: r }) {
|
|
|
1187
1187
|
layer: r,
|
|
1188
1188
|
x: u.x,
|
|
1189
1189
|
y: u.y,
|
|
1190
|
-
hidden:
|
|
1190
|
+
hidden: sn(i, c),
|
|
1191
1191
|
dimmed: !c,
|
|
1192
1192
|
cardinalSnap: !0
|
|
1193
1193
|
}), e.setIcon("destination", {
|
|
@@ -1207,9 +1207,9 @@ function ln({ renderer: e, iconProvider: t, floorContext: n, layer: r }) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
//#endregion
|
|
1209
1209
|
//#region src/wayfinding/runtime/positionTrailView.ts
|
|
1210
|
-
var
|
|
1211
|
-
function
|
|
1212
|
-
let o =
|
|
1210
|
+
var $ = "trail";
|
|
1211
|
+
function ln({ renderer: e, iconProvider: t, floorContext: n, trails: r, iconLayer: i, snapThreshold: a }) {
|
|
1212
|
+
let o = ae({
|
|
1213
1213
|
renderer: e,
|
|
1214
1214
|
iconProvider: t,
|
|
1215
1215
|
layer: i
|
|
@@ -1223,7 +1223,7 @@ function un({ renderer: e, iconProvider: t, floorContext: n, trails: r, iconLaye
|
|
|
1223
1223
|
o.hide();
|
|
1224
1224
|
},
|
|
1225
1225
|
applyToRoute(e, t, r) {
|
|
1226
|
-
let i =
|
|
1226
|
+
let i = E(e, [...r], {
|
|
1227
1227
|
snapThreshold: a,
|
|
1228
1228
|
from: t.from,
|
|
1229
1229
|
to: t.to
|
|
@@ -1235,16 +1235,16 @@ function un({ renderer: e, iconProvider: t, floorContext: n, trails: r, iconLaye
|
|
|
1235
1235
|
}, s) : o.place(e, s), i;
|
|
1236
1236
|
},
|
|
1237
1237
|
setTrail(e, t) {
|
|
1238
|
-
e && t ? r.place(
|
|
1238
|
+
e && t ? r.place($, e, t) : r.clear($);
|
|
1239
1239
|
},
|
|
1240
1240
|
clearTrail() {
|
|
1241
|
-
r.clear(
|
|
1241
|
+
r.clear($);
|
|
1242
1242
|
}
|
|
1243
1243
|
};
|
|
1244
1244
|
}
|
|
1245
1245
|
//#endregion
|
|
1246
1246
|
//#region src/wayfinding/runtime/routeLinesView.ts
|
|
1247
|
-
function
|
|
1247
|
+
function un({ renderer: e, linesLayer: t, animatedLinesLayer: n }) {
|
|
1248
1248
|
return {
|
|
1249
1249
|
draw({ passed: r, remaining: i }, a = !1) {
|
|
1250
1250
|
e.setRouteLines(r, i, {
|
|
@@ -1264,27 +1264,27 @@ function dn({ renderer: e, linesLayer: t, animatedLinesLayer: n }) {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
//#endregion
|
|
1266
1266
|
//#region src/wayfinding/runtime/routeRenderData.ts
|
|
1267
|
-
function
|
|
1268
|
-
let a =
|
|
1267
|
+
function dn({ routeLines: e, currentRouteLayer: t, from: n, to: r, snap: i }) {
|
|
1268
|
+
let a = j(e.filter((e) => !e.virtual), n, r), o = t === null ? a : a.filter((e) => e.p0.layer === t);
|
|
1269
1269
|
if (!(i != null && i.snapped)) return {
|
|
1270
1270
|
passed: [],
|
|
1271
1271
|
remaining: o,
|
|
1272
|
-
distance:
|
|
1272
|
+
distance: re(a)
|
|
1273
1273
|
};
|
|
1274
|
-
let { passed: s, remaining:
|
|
1274
|
+
let { passed: s, remaining: c } = fe(o, i.snappedPoint);
|
|
1275
1275
|
return {
|
|
1276
1276
|
passed: s,
|
|
1277
|
-
remaining:
|
|
1278
|
-
...
|
|
1277
|
+
remaining: c !== o && c.length > 0 ? [{
|
|
1278
|
+
...c[0],
|
|
1279
1279
|
p0: i.snappedPoint
|
|
1280
|
-
}, ...
|
|
1280
|
+
}, ...c.slice(1)] : c,
|
|
1281
1281
|
distance: i.distance
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
1284
|
//#endregion
|
|
1285
1285
|
//#region src/wayfinding/runtime/routeUpdate.ts
|
|
1286
|
-
function
|
|
1287
|
-
let n = e.filter((e) => !e.virtual), r =
|
|
1286
|
+
function fn(e, t) {
|
|
1287
|
+
let n = e.filter((e) => !e.virtual), r = ye(t.flatMap((e) => [e.p0, e.p1]));
|
|
1288
1288
|
return !r || r.x1 === r.x2 && r.y1 === r.y2 ? {
|
|
1289
1289
|
lines: n,
|
|
1290
1290
|
bounds: null
|
|
@@ -1295,7 +1295,7 @@ function pn(e, t) {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
//#endregion
|
|
1297
1297
|
//#region src/wayfinding/runtime/trailView.ts
|
|
1298
|
-
function
|
|
1298
|
+
function pn({ renderer: e, iconProvider: t, floorContext: n, layer: r }) {
|
|
1299
1299
|
let i = /* @__PURE__ */ new Set();
|
|
1300
1300
|
function a(e, t) {
|
|
1301
1301
|
if (n.showAllFloors()) return !0;
|
|
@@ -1327,11 +1327,11 @@ function mn({ renderer: e, iconProvider: t, floorContext: n, layer: r }) {
|
|
|
1327
1327
|
}
|
|
1328
1328
|
//#endregion
|
|
1329
1329
|
//#region src/wayfinding/runtime/transitionView.ts
|
|
1330
|
-
var
|
|
1330
|
+
var mn = "transition";
|
|
1331
1331
|
function hn({ renderer: e, iconProvider: t, floorContext: n, onTransitionClick: r, layer: i }) {
|
|
1332
1332
|
return {
|
|
1333
1333
|
place(a) {
|
|
1334
|
-
e.clearIcons(
|
|
1334
|
+
e.clearIcons(mn);
|
|
1335
1335
|
let o;
|
|
1336
1336
|
if (n.showAllFloors()) o = null;
|
|
1337
1337
|
else {
|
|
@@ -1339,12 +1339,12 @@ function hn({ renderer: e, iconProvider: t, floorContext: n, onTransitionClick:
|
|
|
1339
1339
|
if (!e) return;
|
|
1340
1340
|
o = e;
|
|
1341
1341
|
}
|
|
1342
|
-
let s =
|
|
1342
|
+
let s = te({
|
|
1343
1343
|
routeLines: a,
|
|
1344
1344
|
currentLayerName: o,
|
|
1345
1345
|
floorOrder: n.getFloorOrder()
|
|
1346
1346
|
});
|
|
1347
|
-
for (let [n, a] of s.entries()) e.setIcon(
|
|
1347
|
+
for (let [n, a] of s.entries()) e.setIcon(mn, {
|
|
1348
1348
|
canvas: t.getIcon(gn(a.role, a.direction)).canvas,
|
|
1349
1349
|
layer: i,
|
|
1350
1350
|
x: a.x,
|
|
@@ -1354,7 +1354,7 @@ function hn({ renderer: e, iconProvider: t, floorContext: n, onTransitionClick:
|
|
|
1354
1354
|
}, n);
|
|
1355
1355
|
},
|
|
1356
1356
|
clear() {
|
|
1357
|
-
e.clearIcons(
|
|
1357
|
+
e.clearIcons(mn);
|
|
1358
1358
|
}
|
|
1359
1359
|
};
|
|
1360
1360
|
}
|
|
@@ -1365,7 +1365,7 @@ function gn(e, t) {
|
|
|
1365
1365
|
//#region src/wayfinding/runtime/createWayfindingRuntime.ts
|
|
1366
1366
|
var _n = (e) => e.flatMap((e) => [e.p0, e.p1]);
|
|
1367
1367
|
function vn({ engine: e, renderer: t, iconProvider: n, floorContext: r, layers: i, snapThreshold: a, onTransitionClick: o, onRouteUpdate: s, onRouteDistance: c }) {
|
|
1368
|
-
let l =
|
|
1368
|
+
let l = cn({
|
|
1369
1369
|
renderer: t,
|
|
1370
1370
|
iconProvider: n,
|
|
1371
1371
|
floorContext: r,
|
|
@@ -1376,11 +1376,11 @@ function vn({ engine: e, renderer: t, iconProvider: n, floorContext: r, layers:
|
|
|
1376
1376
|
floorContext: r,
|
|
1377
1377
|
onTransitionClick: o,
|
|
1378
1378
|
layer: i.points
|
|
1379
|
-
}), d =
|
|
1379
|
+
}), d = ln({
|
|
1380
1380
|
renderer: t,
|
|
1381
1381
|
iconProvider: n,
|
|
1382
1382
|
floorContext: r,
|
|
1383
|
-
trails:
|
|
1383
|
+
trails: pn({
|
|
1384
1384
|
renderer: t,
|
|
1385
1385
|
iconProvider: n,
|
|
1386
1386
|
floorContext: r,
|
|
@@ -1388,7 +1388,7 @@ function vn({ engine: e, renderer: t, iconProvider: n, floorContext: r, layers:
|
|
|
1388
1388
|
}),
|
|
1389
1389
|
iconLayer: i.currentPosition,
|
|
1390
1390
|
snapThreshold: a
|
|
1391
|
-
}), f =
|
|
1391
|
+
}), f = un({
|
|
1392
1392
|
renderer: t,
|
|
1393
1393
|
linesLayer: i.lines,
|
|
1394
1394
|
animatedLinesLayer: i.linesAnimated
|
|
@@ -1412,7 +1412,7 @@ function vn({ engine: e, renderer: t, iconProvider: n, floorContext: r, layers:
|
|
|
1412
1412
|
}
|
|
1413
1413
|
function C(e = null, t = !1) {
|
|
1414
1414
|
if (!m || !h) return;
|
|
1415
|
-
let n =
|
|
1415
|
+
let n = dn({
|
|
1416
1416
|
routeLines: p,
|
|
1417
1417
|
currentRouteLayer: b(),
|
|
1418
1418
|
from: m,
|
|
@@ -1447,66 +1447,66 @@ function vn({ engine: e, renderer: t, iconProvider: n, floorContext: r, layers:
|
|
|
1447
1447
|
}
|
|
1448
1448
|
l.place(m, h, e.routePoints, y), u.place(p), C(), w(null);
|
|
1449
1449
|
}
|
|
1450
|
-
function
|
|
1450
|
+
function D() {
|
|
1451
1451
|
if (!m || !h) return;
|
|
1452
1452
|
let e = S();
|
|
1453
1453
|
e && l.place(m, h, e.routePoints, y);
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1455
|
+
function O() {
|
|
1456
1456
|
if (y = !1, !g || !m || !h) return null;
|
|
1457
1457
|
let e = p.filter((e) => !e.virtual);
|
|
1458
1458
|
if (!e.length) return null;
|
|
1459
|
-
let t = S(), n = t ? d.applyToRoute(g, t, e) :
|
|
1459
|
+
let t = S(), n = t ? d.applyToRoute(g, t, e) : E(g, e, {
|
|
1460
1460
|
snapThreshold: a,
|
|
1461
1461
|
from: m,
|
|
1462
1462
|
to: h
|
|
1463
1463
|
});
|
|
1464
1464
|
return n.snapped && (v = !0), y = n.snapped, n;
|
|
1465
1465
|
}
|
|
1466
|
-
function
|
|
1467
|
-
let e =
|
|
1466
|
+
function k() {
|
|
1467
|
+
let e = fn(p, x());
|
|
1468
1468
|
return s(e.lines, e.bounds), e;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1471
|
-
let o =
|
|
1470
|
+
function A({ from: n, to: r, waypoints: i, accessible: a }) {
|
|
1471
|
+
let o = on({
|
|
1472
1472
|
engine: e,
|
|
1473
1473
|
from: n,
|
|
1474
1474
|
to: r,
|
|
1475
1475
|
waypoints: i,
|
|
1476
1476
|
accessible: a
|
|
1477
1477
|
});
|
|
1478
|
-
if (!o.length) return
|
|
1478
|
+
if (!o.length) return M(), !1;
|
|
1479
1479
|
v = !1, m = n, h = r, p = o, T();
|
|
1480
|
-
let { lines: s } =
|
|
1481
|
-
return
|
|
1480
|
+
let { lines: s } = k(), l = O();
|
|
1481
|
+
return D(), w(l), l && C(l, !0), c(l ? _ : re(s)), t.flush(), !0;
|
|
1482
1482
|
}
|
|
1483
1483
|
function ee(e) {
|
|
1484
1484
|
let n = g !== null;
|
|
1485
1485
|
if (g = e, !e) {
|
|
1486
|
-
y = !1, d.hideIcon(), w(null), n &&
|
|
1486
|
+
y = !1, d.hideIcon(), w(null), n && D(), C(), c(_), t.flush();
|
|
1487
1487
|
return;
|
|
1488
1488
|
}
|
|
1489
1489
|
d.placeIcon(e);
|
|
1490
|
-
let r =
|
|
1491
|
-
|
|
1490
|
+
let r = O();
|
|
1491
|
+
D(), w(r), r && C(r, !0), c(_), t.flush();
|
|
1492
1492
|
}
|
|
1493
|
-
function
|
|
1493
|
+
function j() {
|
|
1494
1494
|
T();
|
|
1495
|
-
let e =
|
|
1496
|
-
|
|
1495
|
+
let e = O();
|
|
1496
|
+
D(), w(e), e && C(e, !0), p.length && k(), c(_), t.flush();
|
|
1497
1497
|
}
|
|
1498
|
-
function
|
|
1498
|
+
function M() {
|
|
1499
1499
|
v = !1, p = [], m = null, h = null, _ = 0, l.hide(), u.clear(), d.clearTrail(), f.clear(), s([], null), c(0), t.flush();
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1502
|
-
|
|
1501
|
+
function N() {
|
|
1502
|
+
M(), g = null, t.destroy();
|
|
1503
1503
|
}
|
|
1504
1504
|
return {
|
|
1505
|
-
setRoute:
|
|
1505
|
+
setRoute: A,
|
|
1506
1506
|
onPositionChanged: ee,
|
|
1507
|
-
onFloorChanged:
|
|
1508
|
-
clearRoute:
|
|
1509
|
-
destroy:
|
|
1507
|
+
onFloorChanged: j,
|
|
1508
|
+
clearRoute: M,
|
|
1509
|
+
destroy: N
|
|
1510
1510
|
};
|
|
1511
1511
|
}
|
|
1512
1512
|
//#endregion
|
|
@@ -1558,18 +1558,18 @@ function bn(e, t) {
|
|
|
1558
1558
|
}
|
|
1559
1559
|
function c(r, i, a) {
|
|
1560
1560
|
var s, c, l;
|
|
1561
|
-
let u = e.touchLayer(a.layer), d =
|
|
1561
|
+
let u = e.touchLayer(a.layer), d = k(a.canvas, g(a.x, a.y, a.canvas.width, a.canvas.height, t.scale, a.rotation), {
|
|
1562
1562
|
hidden: (s = a.hidden) == null ? !1 : s,
|
|
1563
1563
|
dim: (c = a.dimmed) == null ? !1 : c,
|
|
1564
1564
|
origin: a.origin
|
|
1565
1565
|
});
|
|
1566
1566
|
u.children.push(d), t.onPtScale(r, (e) => {
|
|
1567
1567
|
let t = n.get(r);
|
|
1568
|
-
if (!(!t || t.imageDef.hidden)) return t.imageDef.bounds =
|
|
1568
|
+
if (!(!t || t.imageDef.hidden)) return t.imageDef.bounds = g(t.imageDef.bounds.center.x, t.imageDef.bounds.center.y, t.imageDef.source.width, t.imageDef.source.height, e, t.imageDef.bounds.rotation), t.imageDef;
|
|
1569
1569
|
}), a.cardinalSnap && t.onRoll(r, (e) => {
|
|
1570
1570
|
let t = n.get(r);
|
|
1571
1571
|
if (!t) return;
|
|
1572
|
-
let i =
|
|
1572
|
+
let i = O(e, t.imageDef.bounds.rotation);
|
|
1573
1573
|
if (i !== void 0) return t.imageDef.bounds.rotation += i, t.imageDef;
|
|
1574
1574
|
});
|
|
1575
1575
|
let f = {
|
|
@@ -1590,7 +1590,7 @@ function bn(e, t) {
|
|
|
1590
1590
|
l(n, r, i, a);
|
|
1591
1591
|
return;
|
|
1592
1592
|
}
|
|
1593
|
-
i.imageDef.bounds =
|
|
1593
|
+
i.imageDef.bounds = g(a.x, a.y, a.canvas.width, a.canvas.height, t.scale, a.rotation), i.imageDef.hidden = (o = a.hidden) == null ? !1 : o, i.imageDef.dim = (s = a.dimmed) == null ? !1 : s, i.callback = (c = a.onClick) == null ? null : c, e.touchLayer(a.layer);
|
|
1594
1594
|
}
|
|
1595
1595
|
return {
|
|
1596
1596
|
setIcon(t, r, i) {
|
|
@@ -1653,8 +1653,8 @@ function Sn(e, t) {
|
|
|
1653
1653
|
n.children = n.children.filter((e) => !r.has(e)), t.dotDefs = [];
|
|
1654
1654
|
}
|
|
1655
1655
|
function a(n) {
|
|
1656
|
-
let r = e.touchLayer(n.layerName), a = t.scale, o = xn * a, s =
|
|
1657
|
-
i(n), r.children.push(...
|
|
1656
|
+
let r = e.touchLayer(n.layerName), a = t.scale, o = xn * a, s = l(n.from, n.to, o), c = n.canvas, u = s.map((e) => k(c, g(e.x, e.y, c.width, c.height, a)));
|
|
1657
|
+
i(n), r.children.push(...u), n.dotDefs = u;
|
|
1658
1658
|
}
|
|
1659
1659
|
function o(e) {
|
|
1660
1660
|
let a = n.get(e);
|
|
@@ -1819,55 +1819,55 @@ function En(e, t = {}) {
|
|
|
1819
1819
|
//#region src/wayfinding/createWayfinding.ts
|
|
1820
1820
|
function Dn(e) {
|
|
1821
1821
|
var t, n, r;
|
|
1822
|
-
let i =
|
|
1823
|
-
iconMap:
|
|
1822
|
+
let i = _(A), a = ue({
|
|
1823
|
+
iconMap: I.fp.icons,
|
|
1824
1824
|
pixelRatio: devicePixelRatio
|
|
1825
|
-
}), o = En(e), c =
|
|
1826
|
-
points:
|
|
1827
|
-
trail:
|
|
1828
|
-
lines:
|
|
1829
|
-
linesAnimated:
|
|
1830
|
-
currentPosition:
|
|
1825
|
+
}), o = En(e), c = s(F, I.routeStore), l = {
|
|
1826
|
+
points: xe,
|
|
1827
|
+
trail: Se,
|
|
1828
|
+
lines: Ce,
|
|
1829
|
+
linesAnimated: we,
|
|
1830
|
+
currentPosition: Te
|
|
1831
1831
|
}, u = vn({
|
|
1832
1832
|
engine: i,
|
|
1833
1833
|
renderer: o,
|
|
1834
1834
|
iconProvider: a,
|
|
1835
1835
|
floorContext: c,
|
|
1836
1836
|
layers: l,
|
|
1837
|
-
snapThreshold:
|
|
1838
|
-
thresholdInMeters:
|
|
1839
|
-
gpsConfig:
|
|
1837
|
+
snapThreshold: p({
|
|
1838
|
+
thresholdInMeters: y(P == null || (t = P.properties) == null || (t = t.config) == null ? void 0 : t.snapThreshold) || 7.5,
|
|
1839
|
+
gpsConfig: P == null || (n = P.properties) == null ? void 0 : n.config
|
|
1840
1840
|
}),
|
|
1841
1841
|
onTransitionClick: (e) => {
|
|
1842
|
-
e.role === "exit" &&
|
|
1842
|
+
e.role === "exit" && F.updateVisibility(e.targetLayer, !0);
|
|
1843
1843
|
},
|
|
1844
1844
|
onRouteUpdate: (e, t) => {
|
|
1845
|
-
|
|
1845
|
+
I.routeStore.updateRoute(e), t && (L.moveToRect = z.fromX1y1x2y2(t.x1, t.y1, t.x2, t.y2));
|
|
1846
1846
|
},
|
|
1847
|
-
onRouteDistance: (e) =>
|
|
1848
|
-
}), d =
|
|
1847
|
+
onRouteDistance: (e) => I.routeStore.updateRouteDistance(e)
|
|
1848
|
+
}), d = nn({
|
|
1849
1849
|
renderer: o,
|
|
1850
|
-
kioskIconMap:
|
|
1850
|
+
kioskIconMap: I.fp.icons,
|
|
1851
1851
|
layer: l.points
|
|
1852
|
-
}), f =
|
|
1852
|
+
}), f = an({
|
|
1853
1853
|
renderer: o,
|
|
1854
1854
|
iconProvider: a,
|
|
1855
1855
|
floorContext: c,
|
|
1856
1856
|
layer: l.points
|
|
1857
|
-
}),
|
|
1857
|
+
}), m = T(P == null || (r = P.properties) == null ? void 0 : r.config), h = en({
|
|
1858
1858
|
runtime: u,
|
|
1859
1859
|
kioskHandler: d,
|
|
1860
1860
|
yahHandler: f,
|
|
1861
1861
|
stores: {
|
|
1862
|
-
routeStore:
|
|
1863
|
-
uiState:
|
|
1864
|
-
layerStore:
|
|
1862
|
+
routeStore: I.routeStore,
|
|
1863
|
+
uiState: L,
|
|
1864
|
+
layerStore: F
|
|
1865
1865
|
},
|
|
1866
|
-
rerouteThresholdSvg:
|
|
1866
|
+
rerouteThresholdSvg: m
|
|
1867
1867
|
});
|
|
1868
1868
|
return o.flush(), () => {
|
|
1869
1869
|
h(), u.destroy();
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
1872
|
//#endregion
|
|
1873
|
-
export { Ut as a,
|
|
1873
|
+
export { Ut as a, st as c, Ht as i, it as l, Qt as n, Dt as o, Bt as r, vt as s, Dn as t, at as u };
|