@expofp/floorplan 3.45.3 → 3.45.5
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-EHylnqPi.js → Button-c0Y1Vj6Z.js} +5 -5
- package/dist/browser/{CookieConsent-ehfLl8S5.js → CookieConsent-CxKQhDgE.js} +7 -7
- package/dist/browser/{Debug-DhroQesJ.js → Debug-C10npb-W.js} +7 -7
- package/dist/browser/{DebugTools-BSTEEfIR.js → DebugTools-BYH_5luw.js} +6 -6
- package/dist/browser/{Demo-BsStOoFd.js → Demo-uiGmObIR.js} +9 -9
- package/dist/browser/{Free-DHqyXetM.js → Free-YoFJ8DoQ.js} +10 -10
- package/dist/browser/{GalleryContainer-BPsowO55.js → GalleryContainer-D0W5i6hN.js} +11 -11
- package/dist/browser/{GpsLoader-ot7w9Q4j.js → GpsLoader-jFNN9YWJ.js} +13 -13
- package/dist/browser/{KioskStore-BqWBGn2E.js → KioskStore-CH1a_6m4.js} +9 -9
- package/dist/browser/{LayerStore-BTsnfwRm.js → LayerStore-pXZBW8KP.js} +18 -18
- package/dist/browser/{MaplibreAdapter-CQgSMYVS.js → MaplibreAdapter-DDXfQqpQ.js} +26 -26
- package/dist/browser/{ModalContainer-1bkU80Bl.js → ModalContainer-DfkAhBpg.js} +10 -10
- package/dist/browser/{PermissionNotice-DfkNyvJW.js → PermissionNotice-Dfo2CE5b.js} +6 -6
- package/dist/browser/{RouteStore-FUWqY6LM.js → RouteStore-CM6Vq9s1.js} +9 -9
- package/dist/browser/{SetKioskMode-B3QhLFwa.js → SetKioskMode-Dl93Q0wv.js} +11 -11
- package/dist/browser/{ShowKiosk-hv65VLAh.js → ShowKiosk-no_dFDp5.js} +10 -10
- package/dist/browser/{UIState-DOCzhN3I.js → UIState-C4Ne83XZ.js} +229 -230
- package/dist/browser/{ViewerMenuPanel-Cz7-CMu8.js → ViewerMenuPanel-CXr6A_ya.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-D0AV_b5d.js → add-debug-secret-listener-DQW_4QYR.js} +1 -1
- package/dist/browser/{adopt-global-settings-CUoS-x6I.js → adopt-global-settings-BKdkyodw.js} +9 -9
- package/dist/browser/{boolean-editor-D1uEd3mQ.js → boolean-editor-BftDwfPM.js} +9 -9
- package/dist/browser/{bootIntercom-dycNZ6lL.js → bootIntercom-CROavddr.js} +2 -2
- package/dist/browser/bundle.json +85 -85
- package/dist/browser/{camera-events-CLlfq25c.js → camera-events-DMsQNnT6.js} +1 -1
- package/dist/browser/{classnames-hcTspTPm.js → classnames-BEzWCDOg.js} +2 -2
- package/dist/browser/{client-DOEKted7.js → client-DS3yXAuR.js} +5 -5
- package/dist/browser/{components-JD6ef9Pi.js → components-mMyyFnog.js} +48 -48
- package/dist/browser/{create-live-plan-CzAuQqne.js → create-live-plan-BW-Me7UX.js} +14 -14
- package/dist/browser/{debug-context-DD7wpvyJ.js → debug-context-Cj6Zb4cZ.js} +5 -5
- package/dist/browser/{debug-overlay-_os9dW4T.js → debug-overlay-BTl2ZFvr.js} +10 -10
- package/dist/browser/{debug-ui-BIB7rpEt.js → debug-ui-C260KTxB.js} +6 -6
- package/dist/browser/{dist-C74jG495.js → dist-BNC8yDCp.js} +5 -5
- package/dist/browser/{dist-DW5jijdZ.js → dist-C_QXFSca.js} +6 -6
- package/dist/browser/{dist-DdyU2Ulr.js → dist-Dtc5p_fA.js} +3 -3
- package/dist/browser/{efp-debug-init-DkV-cPHN.js → efp-debug-init-BPvSrPaU.js} +3 -3
- package/dist/browser/{enum-editor-fhv2pncT.js → enum-editor-DCnC5upf.js} +4 -4
- package/dist/browser/{es5-Drnv-qKT.js → es5-Cqws9iGQ.js} +2 -2
- package/dist/browser/{event-head-R8PnYkU7.js → event-head-BU0A69Q3.js} +1 -1
- package/dist/browser/{event-not-found-DR92EJ1T.js → event-not-found-b03tcZjL.js} +3 -3
- package/dist/browser/{event-scoped-cache-DPUJKAp8.js → event-scoped-cache-DI1_uyqp.js} +2 -2
- package/dist/browser/{expofpUrl-DqMj4Eoq.js → expofpUrl-BpegKBOH.js} +1 -1
- package/dist/browser/{exports-MJBtqDCk.js → exports-BtJyDpUj.js} +1 -1
- package/dist/browser/{favicon-BSXIrSgl.js → favicon-OreqNesA.js} +1 -1
- package/dist/browser/{fetch-retry.umd-DuInaIxQ.js → fetch-retry.umd-JegjWdBo.js} +2 -2
- package/dist/browser/{flex-BoqZsRqL.js → flex-Cwa2rTgg.js} +5 -5
- package/dist/browser/{floorplan.loader-CSdoVj4Z.js → floorplan.loader-CUxvnQRn.js} +12 -12
- package/dist/browser/{floorplan.ready-BIl5Ycyx.js → floorplan.ready-CooEF7Eb.js} +23 -23
- package/dist/browser/{framing-rect-D04XSLvo.js → framing-rect-_1AyUoJ1.js} +262 -245
- package/dist/browser/{freeBanner-C3gl8WNc.js → freeBanner-CMTJeoCn.js} +2 -2
- package/dist/browser/{fuse-Czd3qmlB.js → fuse-CH0oYzgY.js} +2 -2
- package/dist/browser/{i18n-DddU8tRu.js → i18n-BF_UPvar.js} +6 -6
- package/dist/browser/index.js +17 -17
- package/dist/browser/{index.module-DllLgVWk.js → index.module-DCIHG2vV.js} +4 -4
- package/dist/browser/{init-ui-B1f5t5dR.js → init-ui-CUbtDDQG.js} +9 -9
- package/dist/browser/{integrateKiosk-CfBnJLw4.js → integrateKiosk-rd__bS08.js} +5 -5
- package/dist/browser/{is-debug-BvF1hqkK.js → is-debug-CfxoI_aR.js} +4 -4
- package/dist/browser/{is-own-domain-C-0kpF0n.js → is-own-domain-BKurpvVa.js} +1 -1
- package/dist/browser/{is-webview-CCFYHAEe.js → is-webview-gvnowUxv.js} +1 -1
- package/dist/browser/{jsx-runtime-DIZ73ut_.js → jsx-runtime-bcCRPAgn.js} +2 -2
- package/dist/browser/{kiosk-mode-B9SnxhZd.js → kiosk-mode-D3GGs1LZ.js} +3 -3
- package/dist/browser/{kiosk-record-S3iATP9j.js → kiosk-record-B0R_DRiL.js} +1 -1
- package/dist/browser/{kioskApi-DyPo53iy.js → kioskApi-CwcrGPV6.js} +7 -7
- package/dist/browser/{lib-CL77UF1N.js → lib-DJxEHO9s.js} +3 -3
- package/dist/browser/{loadImage-Cubo5G-r.js → loadImage-Zz0AMWId.js} +1 -1
- package/dist/browser/{logDeviceInfo-DbqjOEH-.js → logDeviceInfo-DSX8aPeS.js} +9 -9
- package/dist/browser/{mobx-Cjhc7rlt.js → mobx-BGKjzU2r.js} +4 -4
- package/dist/browser/{mobx.module-Bbp1P_9l.js → mobx.module-Bt30ANK9.js} +1 -1
- package/dist/browser/{optional-boolean-editor-CycMN5id.js → optional-boolean-editor-3neENMtF.js} +3 -3
- package/dist/browser/{optional-enum-editor-BeSGcDpR.js → optional-enum-editor-B-120FyS.js} +4 -4
- package/dist/browser/{optional-string-editor-C8tRmESx.js → optional-string-editor-Be3sySiT.js} +4 -4
- package/dist/browser/{particles.min-aaRVdOEb.js → particles.min-DvKYWsB4.js} +2 -2
- package/dist/browser/{react-OOP19Iaj.js → react-BWCnfqit.js} +2 -2
- package/dist/browser/{react-dom-C4EJcQ69.js → react-dom-vftChjch.js} +3 -3
- package/dist/browser/{rolldown-runtime-dmqukwhF.js → rolldown-runtime-DpVbZPC8.js} +1 -1
- package/dist/browser/{scene-CewpJ4ms.js → scene-CnRTU8KH.js} +38 -34
- package/dist/browser/{scheduler-jxPLXOpC.js → scheduler-CDyii4fH.js} +2 -2
- package/dist/browser/{select-BNEAarae.js → select-Bj4oVPB7.js} +10 -10
- package/dist/browser/{settings-CizS4tu4.js → settings-DFvkXLq_.js} +2 -2
- package/dist/browser/{settings-item-Cekv94AT.js → settings-item-BE6DUEO_.js} +6 -6
- package/dist/browser/{store-CXRL_3vj.js → store-BaKHzzZt.js} +2 -2
- package/dist/browser/{string-editor-BBcIC1s7.js → string-editor-DAsQiBLy.js} +4 -4
- package/dist/browser/{text-field-BfFHGUSW.js → text-field-C2NqjlIt.js} +5 -5
- package/dist/browser/{theme-Bd2EkiP3.js → theme-BkTUHcSG.js} +8 -8
- package/dist/browser/{ui-BsIjg0bV.js → ui-CiB3HJJP.js} +8 -8
- package/dist/browser/{useRenderTarget-CIsYO452.js → useRenderTarget-f59THmyw.js} +4 -4
- package/dist/browser/{viewport-DPG9f_z6.js → viewport-DynKkr6Y.js} +3 -3
- package/dist/browser/{wayfinding-V0ghT860.js → wayfinding-q1ymTx8A.js} +414 -395
- package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.d.ts +20 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.js +1 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +20 -11
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
- package/dist/esm/wayfinding/bindMobxReactions.js +1 -1
- package/package.json +10 -10
|
@@ -1,61 +1,61 @@
|
|
|
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.5" };
|
|
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] = "173c34ad-acb0-4b03-a6c8-aac622d6bb41", e._sentryDebugIdIdentifier = "sentry-dbid-173c34ad-acb0-4b03-a6c8-aac622d6bb41");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { g as t } from "./i18n-
|
|
11
|
-
import { t as n } from "./react-
|
|
12
|
-
import { i as r, l as i } from "./mobx.module-
|
|
13
|
-
import { t as a } from "./loadImage-
|
|
14
|
-
import { r as o } from "./debug-context-
|
|
15
|
-
import { a as s, l as c, t as l, u } from "./store-
|
|
16
|
-
import { $t as d, At as f, D as p, Ft as m, G as h, Gt as g, It as _, J as v, Lt as y, Mt as b, Nt as x, Pt as S, Qt as C, Rt as w, St as T, Tt as E, Vt as D, W as O, X as k, Xt as A, Y as ee, Z as te, _t as ne, an as re, at as ie, b as ae, bt as oe, d as se, en as ce, et as le, f as ue, ft as j, i as de, in as M, it as fe, jt as N, kt as P, nn as pe, q as me, qt as F, rt as he, t as ge, vt as _e, wt as ve, x as ye, xt as be } from "./LayerStore-
|
|
17
|
-
import { _ as xe, l as Se } from "./wayfinding-
|
|
18
|
-
import { i as Ce, n as we } from "./viewport-
|
|
19
|
-
import {
|
|
9
|
+
import { r as e } from "./rolldown-runtime-DpVbZPC8.js";
|
|
10
|
+
import { g as t } from "./i18n-BF_UPvar.js";
|
|
11
|
+
import { t as n } from "./react-BWCnfqit.js";
|
|
12
|
+
import { i as r, l as i } from "./mobx.module-Bt30ANK9.js";
|
|
13
|
+
import { t as a } from "./loadImage-Zz0AMWId.js";
|
|
14
|
+
import { r as o } from "./debug-context-Cj6Zb4cZ.js";
|
|
15
|
+
import { a as s, l as c, t as l, u } from "./store-BaKHzzZt.js";
|
|
16
|
+
import { $t as d, At as f, D as p, Ft as m, G as h, Gt as g, It as _, J as v, Lt as y, Mt as b, Nt as x, Pt as S, Qt as C, Rt as w, St as T, Tt as E, Vt as D, W as O, X as k, Xt as A, Y as ee, Z as te, _t as ne, an as re, at as ie, b as ae, bt as oe, d as se, en as ce, et as le, f as ue, ft as j, i as de, in as M, it as fe, jt as N, kt as P, nn as pe, q as me, qt as F, rt as he, t as ge, vt as _e, wt as ve, x as ye, xt as be } from "./LayerStore-pXZBW8KP.js";
|
|
17
|
+
import { _ as xe, l as Se } from "./wayfinding-q1ymTx8A.js";
|
|
18
|
+
import { i as Ce, n as we } from "./viewport-DynKkr6Y.js";
|
|
19
|
+
import { i as Te, r as Ee } from "./scene-CnRTU8KH.js";
|
|
20
20
|
//#region src/components/Map/traffic/trafficLayers.ts
|
|
21
|
-
var
|
|
22
|
-
function
|
|
21
|
+
var De = "traffic_route", Oe = "traffic_route_stop", I = "traffic_vehicles", ke = "build_route_lines", Ae = "build_route_dots", je = 5;
|
|
22
|
+
function Me() {
|
|
23
23
|
let e = [];
|
|
24
|
-
for (let t = 0; t <
|
|
25
|
-
name:
|
|
24
|
+
for (let t = 0; t < je; t++) e.push({
|
|
25
|
+
name: Ne(t),
|
|
26
26
|
children: []
|
|
27
27
|
}), e.push({
|
|
28
|
-
name:
|
|
28
|
+
name: Pe(t),
|
|
29
29
|
children: []
|
|
30
30
|
});
|
|
31
31
|
return e.push({
|
|
32
32
|
name: I,
|
|
33
33
|
children: []
|
|
34
34
|
}), e.push({
|
|
35
|
-
name:
|
|
35
|
+
name: ke,
|
|
36
36
|
children: []
|
|
37
37
|
}), e.push({
|
|
38
|
-
name:
|
|
38
|
+
name: Ae,
|
|
39
39
|
children: []
|
|
40
40
|
}), e;
|
|
41
41
|
}
|
|
42
|
-
function Me(e) {
|
|
43
|
-
return `${Ee}_${e + 1}`;
|
|
44
|
-
}
|
|
45
42
|
function Ne(e) {
|
|
46
43
|
return `${De}_${e + 1}`;
|
|
47
44
|
}
|
|
48
|
-
function Pe() {
|
|
49
|
-
return
|
|
45
|
+
function Pe(e) {
|
|
46
|
+
return `${Oe}_${e + 1}`;
|
|
50
47
|
}
|
|
51
48
|
function Fe() {
|
|
52
49
|
return RegExp(`^${De}_\\d+$`);
|
|
53
50
|
}
|
|
51
|
+
function Ie() {
|
|
52
|
+
return RegExp(`^${Oe}_\\d+$`);
|
|
53
|
+
}
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/components/Map/drawing/config/booth-badge-anchor.ts
|
|
56
|
-
var
|
|
56
|
+
var Le = /* @__PURE__ */ e(ne(), 1), Re = .5, ze = .3, Be = 10, Ve = 8, He = 4, Ue = 50, L = class e {
|
|
57
57
|
constructor(e, t, n, r) {
|
|
58
|
-
this.booth = e, this.triangles = t, this.border = n, this.source = r, this.fits = [], this.prefetchRotation = 0, this.polygon = void 0, this.bbox = void 0, this.vertices = null, this.polygon =
|
|
58
|
+
this.booth = e, this.triangles = t, this.border = n, this.source = r, this.fits = [], this.prefetchRotation = 0, this.polygon = void 0, this.bbox = void 0, this.vertices = null, this.polygon = Ge(t), this.bbox = We(t);
|
|
59
59
|
}
|
|
60
60
|
fit(e, t) {
|
|
61
61
|
let n = this.fits[e];
|
|
@@ -68,15 +68,15 @@ var Ie = /* @__PURE__ */ e(ne(), 1), Le = .5, Re = .3, ze = 10, Be = 8, Ve = 4,
|
|
|
68
68
|
e.idle.delete(this);
|
|
69
69
|
}
|
|
70
70
|
static scheduleIdle() {
|
|
71
|
-
e.idleScheduled || !e.idle.size || (e.idleScheduled = !0, typeof requestIdleCallback == "function" ? requestIdleCallback(e.runIdle) : typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => setTimeout(e.runSlice, 0)) : setTimeout(e.runSlice,
|
|
71
|
+
e.idleScheduled || !e.idle.size || (e.idleScheduled = !0, typeof requestIdleCallback == "function" ? requestIdleCallback(e.runIdle) : typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => setTimeout(e.runSlice, 0)) : setTimeout(e.runSlice, Ue));
|
|
72
72
|
}
|
|
73
73
|
static runSlice() {
|
|
74
|
-
let t = performance.now() +
|
|
74
|
+
let t = performance.now() + He;
|
|
75
75
|
e.runIdle({ timeRemaining: () => t - performance.now() });
|
|
76
76
|
}
|
|
77
77
|
static runIdle(t) {
|
|
78
78
|
e.idleScheduled = !1;
|
|
79
|
-
let n = performance.now() +
|
|
79
|
+
let n = performance.now() + Ve;
|
|
80
80
|
try {
|
|
81
81
|
for (let r of e.idle) {
|
|
82
82
|
if (t.timeRemaining() <= 0 || performance.now() >= n) break;
|
|
@@ -105,7 +105,7 @@ var Ie = /* @__PURE__ */ e(ne(), 1), Le = .5, Re = .3, ze = 10, Be = 8, Ve = 4,
|
|
|
105
105
|
}
|
|
106
106
|
rectMaxScale(e) {
|
|
107
107
|
let t = this.booth.rect.size.width, n = this.booth.rect.size.height, r = e ? n : t, i = e ? t : n;
|
|
108
|
-
return Math.min(r > 0 ? r *
|
|
108
|
+
return Math.min(r > 0 ? r * Re / this.source.x : Infinity, i > 0 ? i * ze / this.source.y : Infinity);
|
|
109
109
|
}
|
|
110
110
|
findAnchor(e, t) {
|
|
111
111
|
var n;
|
|
@@ -148,7 +148,7 @@ var Ie = /* @__PURE__ */ e(ne(), 1), Le = .5, Re = .3, ze = 10, Be = 8, Ve = 4,
|
|
|
148
148
|
};
|
|
149
149
|
if (!i.containsPoint(o)) return n;
|
|
150
150
|
let s = 0, c = n;
|
|
151
|
-
for (let n = 0; n <
|
|
151
|
+
for (let n = 0; n < Be; n++) {
|
|
152
152
|
let n = (s + c) / 2, l = a.x * n, u = a.y * n;
|
|
153
153
|
i.containsPoint(M({
|
|
154
154
|
x: e + l,
|
|
@@ -174,7 +174,7 @@ var Ie = /* @__PURE__ */ e(ne(), 1), Le = .5, Re = .3, ze = 10, Be = 8, Ve = 4,
|
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
L.idle = /* @__PURE__ */ new Set(), L.idleScheduled = !1;
|
|
177
|
-
function
|
|
177
|
+
function We(e) {
|
|
178
178
|
if (!e.length) return null;
|
|
179
179
|
let t = Infinity, n = Infinity, r = -Infinity, i = -Infinity;
|
|
180
180
|
for (let a of e) for (let [e, o] of a) e < t && (t = e), o < n && (n = o), e > r && (r = e), o > i && (i = o);
|
|
@@ -186,7 +186,7 @@ function Ue(e) {
|
|
|
186
186
|
y: i
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Ge(e) {
|
|
190
190
|
let t = [], n = [];
|
|
191
191
|
for (let r of e) {
|
|
192
192
|
let e = t.length;
|
|
@@ -209,35 +209,41 @@ function We(e) {
|
|
|
209
209
|
}
|
|
210
210
|
//#endregion
|
|
211
211
|
//#region src/components/Map/drawing/config/config-booth-badge-eligibility.ts
|
|
212
|
-
function
|
|
212
|
+
function Ke(e) {
|
|
213
213
|
return e.hideExhibitorBoothNumber || e.hideBoothBadges || !e.hasExhibitors ? !1 : e.noLabels || !e.hideLogoInBooth && e.hasLogoInBooth;
|
|
214
214
|
}
|
|
215
215
|
//#endregion
|
|
216
|
+
//#region src/components/Map/drawing/config/config-booth-badge-scale.ts
|
|
217
|
+
function qe({ pixelSize: e, fontSize: t, plateFontSize: n, maxScale: r }) {
|
|
218
|
+
let i = e * t / n;
|
|
219
|
+
return Math.min(i, r);
|
|
220
|
+
}
|
|
221
|
+
//#endregion
|
|
216
222
|
//#region src/components/Map/drawing/config/config-booth-badge.ts
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
return e.length <=
|
|
223
|
+
var Je = 15, Ye = Ee ? 16 : 18, Xe = 30, Ze = 6, R = .8, Qe = Xe * R, $e = document.createElement("canvas").getContext("2d");
|
|
224
|
+
function et(e) {
|
|
225
|
+
return e.length <= Je ? e : e.slice(0, Je - 1) + "…";
|
|
220
226
|
}
|
|
221
|
-
function
|
|
227
|
+
function tt(e) {
|
|
222
228
|
var t, n;
|
|
223
229
|
if (!((t = e.paths) != null && t.length)) return [];
|
|
224
230
|
let r = ((n = e.layer) == null ? void 0 : n.name) || "", i = [];
|
|
225
231
|
for (let t of e.paths) for (let e of D(t.index, r)) i.push(e);
|
|
226
232
|
return i;
|
|
227
233
|
}
|
|
228
|
-
function
|
|
234
|
+
function z(e) {
|
|
229
235
|
return e && e !== "none" ? e : void 0;
|
|
230
236
|
}
|
|
231
|
-
function
|
|
237
|
+
function nt(e) {
|
|
232
238
|
var t;
|
|
233
|
-
let n =
|
|
234
|
-
return ((t = e.paths) == null ? void 0 : t.length) > 1 &&
|
|
239
|
+
let n = z(e.borderColor) || z(w.boothBorderColor) || w.colors.booths.default;
|
|
240
|
+
return ((t = e.paths) == null ? void 0 : t.length) > 1 && z(e.paths[e.paths.length - 1].color) || n;
|
|
235
241
|
}
|
|
236
|
-
function
|
|
242
|
+
function rt(e) {
|
|
237
243
|
var t;
|
|
238
|
-
let n =
|
|
239
|
-
|
|
240
|
-
let s =
|
|
244
|
+
let n = et(e.title || e.name), r = nt(e), a = Te((0, Le.default)(r).hex()), o = se();
|
|
245
|
+
$e.font = f(Xe, o);
|
|
246
|
+
let s = $e.measureText(n).width, c = Math.ceil(s + Ze * 2), p = (e.borderWidth || l.borderWidth) / 2, m = c * R, h = 38 * R, g = new L(e, tt(e), p, {
|
|
241
247
|
x: m,
|
|
242
248
|
y: h
|
|
243
249
|
}), _ = (t = e.rotate) == null ? 0 : t, y = 0, b = 0, x = 0, S = 0, C = () => {
|
|
@@ -278,7 +284,7 @@ function tt(e) {
|
|
|
278
284
|
maxScale: S,
|
|
279
285
|
bg: E,
|
|
280
286
|
text: D
|
|
281
|
-
}, k = new
|
|
287
|
+
}, k = new it(O);
|
|
282
288
|
E.onScale = ({ pixelSize: e }) => k.layOutBg(e), D.onScale = ({ pixelSize: e }) => k.layOutText(e);
|
|
283
289
|
let A = [];
|
|
284
290
|
return A.push(i(() => e.skipDim, (e) => {
|
|
@@ -292,7 +298,7 @@ function tt(e) {
|
|
|
292
298
|
var n;
|
|
293
299
|
fe(t == null ? 0 : t) && (g.prefetch((n = e.rotate) == null ? 0 : n), E.onRoll = ({ roll: e, pixelSize: t }) => {
|
|
294
300
|
let n = he(e, _);
|
|
295
|
-
if (n !== 0) return _ += n * Math.PI / 2, y = ((y + n) % 4 + 4) % 4, C(), O.anchor.x = b, O.anchor.y = x, O.rotation = _, O.maxScale = S, [...k.layOutBg(t), ...k.layOutText(t)];
|
|
301
|
+
if (n !== 0) return _ += n * Math.PI / 2, y = ((y + n) % 4 + 4) % 4, C(), O.anchor.x = b, O.anchor.y = x, O.rotation = _, O.maxScale = S, k.invalidate(), [...k.layOutBg(t), ...k.layOutText(t)];
|
|
296
302
|
});
|
|
297
303
|
}, { fireImmediately: !0 }), () => g.cancelPrefetch()), {
|
|
298
304
|
bg: E,
|
|
@@ -302,26 +308,37 @@ function tt(e) {
|
|
|
302
308
|
}
|
|
303
309
|
};
|
|
304
310
|
}
|
|
305
|
-
var
|
|
311
|
+
var it = class {
|
|
306
312
|
constructor(e) {
|
|
307
|
-
this.placement = e;
|
|
313
|
+
this.placement = e, this.bgScale = NaN, this.textScale = NaN;
|
|
314
|
+
}
|
|
315
|
+
invalidate() {
|
|
316
|
+
this.bgScale = NaN, this.textScale = NaN;
|
|
308
317
|
}
|
|
309
318
|
layOutBg(e) {
|
|
310
|
-
let { bg: t } = this.placement;
|
|
311
|
-
return t.shape = this.
|
|
319
|
+
let { bg: t } = this.placement, n = this.scaleFor(e);
|
|
320
|
+
return n === this.bgScale ? [] : (this.bgScale = n, t.shape = this.rectAt(n), t.hidden = this.isHidden(), t.hidden ? [] : [t]);
|
|
312
321
|
}
|
|
313
322
|
layOutText(e) {
|
|
314
|
-
let { text: t,
|
|
315
|
-
return t.lines[0].fontSize =
|
|
323
|
+
let { text: t } = this.placement, n = this.scaleFor(e);
|
|
324
|
+
return n === this.textScale ? [] : (this.textScale = n, t.lines[0].fontSize = Qe * n, t.bounds = this.rectAt(n), t.hidden = this.isHidden(), t.hidden ? [] : [t]);
|
|
325
|
+
}
|
|
326
|
+
scaleFor(e) {
|
|
327
|
+
return qe({
|
|
328
|
+
pixelSize: e,
|
|
329
|
+
fontSize: Ye,
|
|
330
|
+
plateFontSize: Qe,
|
|
331
|
+
maxScale: this.placement.maxScale
|
|
332
|
+
});
|
|
316
333
|
}
|
|
317
|
-
|
|
318
|
-
let { anchor: t, booth: n, source: r, rotation: i
|
|
334
|
+
rectAt(e) {
|
|
335
|
+
let { anchor: t, booth: n, source: r, rotation: i } = this.placement, a = r.x * e, o = r.y * e;
|
|
319
336
|
return new d(M({
|
|
320
|
-
x: t.x +
|
|
321
|
-
y: t.y +
|
|
337
|
+
x: t.x + a / 2,
|
|
338
|
+
y: t.y + o / 2
|
|
322
339
|
}, i, t), {
|
|
323
|
-
x:
|
|
324
|
-
y:
|
|
340
|
+
x: a,
|
|
341
|
+
y: o
|
|
325
342
|
}, i, n.elevation);
|
|
326
343
|
}
|
|
327
344
|
isHidden() {
|
|
@@ -329,9 +346,9 @@ var nt = class {
|
|
|
329
346
|
return !!(e.layer && !e.layer.visible);
|
|
330
347
|
}
|
|
331
348
|
};
|
|
332
|
-
function
|
|
349
|
+
function at(e, t) {
|
|
333
350
|
let n = [], r = [], i = [];
|
|
334
|
-
for (let e of t) if (e instanceof le &&
|
|
351
|
+
for (let e of t) if (e instanceof le && Ke({
|
|
335
352
|
hideExhibitorBoothNumber: g.hideExhibitorBoothNumber,
|
|
336
353
|
hideBoothBadges: g.hideBoothBadges,
|
|
337
354
|
hideLogoInBooth: u.hideLogoInBooth,
|
|
@@ -339,7 +356,7 @@ function rt(e, t) {
|
|
|
339
356
|
hasExhibitors: e.exhibitors.length > 0,
|
|
340
357
|
hasLogoInBooth: e.exhibitors.some((e) => e.logoInBooth && e.logo)
|
|
341
358
|
})) {
|
|
342
|
-
let { bg: t, text: a, dispose: o } =
|
|
359
|
+
let { bg: t, text: a, dispose: o } = rt(e);
|
|
343
360
|
n.push(t), r.push(a), i.push(o);
|
|
344
361
|
}
|
|
345
362
|
let a = () => {
|
|
@@ -364,17 +381,17 @@ function rt(e, t) {
|
|
|
364
381
|
}
|
|
365
382
|
//#endregion
|
|
366
383
|
//#region src/components/Map/drawing/config/config-markers.ts
|
|
367
|
-
var
|
|
368
|
-
function
|
|
384
|
+
var ot = "_selected", st = "markers";
|
|
385
|
+
function ct(e, t, n) {
|
|
369
386
|
let { center: r, rotation: i, elevation: a } = e.bounds, { width: o, height: s } = t;
|
|
370
387
|
return e.bounds = P(r.x, r.y, o, s, n, i, a), [e];
|
|
371
388
|
}
|
|
372
|
-
function
|
|
373
|
-
|
|
389
|
+
function lt(e) {
|
|
390
|
+
B = e;
|
|
374
391
|
}
|
|
375
|
-
function
|
|
376
|
-
let { scene: t } = e, n = [], r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [], l = t.rootLayer.children.find((e) => e.name ===
|
|
377
|
-
l.onScale = ({ pixelSize: e }) =>
|
|
392
|
+
function ut(e) {
|
|
393
|
+
let { scene: t } = e, n = [], r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = [], l = t.rootLayer.children.find((e) => e.name === st);
|
|
394
|
+
l.onScale = ({ pixelSize: e }) => lt(e), ae(dt), j(l);
|
|
378
395
|
async function d(e) {
|
|
379
396
|
let t = [];
|
|
380
397
|
e.forEach((e) => {
|
|
@@ -396,7 +413,7 @@ function ct(e) {
|
|
|
396
413
|
}), await Promise.all(t);
|
|
397
414
|
}
|
|
398
415
|
let f = (e, t) => {
|
|
399
|
-
e.onScale = ({ pixelSize: n }) =>
|
|
416
|
+
e.onScale = ({ pixelSize: n }) => ct(e, t, n);
|
|
400
417
|
}, p = (e) => {
|
|
401
418
|
e.screenSpace || (e.onRoll = ({ roll: t }) => {
|
|
402
419
|
if (t !== e.bounds.rotation) return e.bounds.rotate(t - e.bounds.rotation, e.bounds), [e];
|
|
@@ -445,7 +462,7 @@ function ct(e) {
|
|
|
445
462
|
hidden: !(p && e.active),
|
|
446
463
|
origin: y
|
|
447
464
|
}),
|
|
448
|
-
id: `${e.id}${
|
|
465
|
+
id: `${e.id}${ot}`,
|
|
449
466
|
scale: l,
|
|
450
467
|
screenSpace: t
|
|
451
468
|
};
|
|
@@ -459,7 +476,7 @@ function ct(e) {
|
|
|
459
476
|
let e = c.routeStore.markersData.markers;
|
|
460
477
|
e.length && e.forEach((e) => {
|
|
461
478
|
var t, n;
|
|
462
|
-
let r = o.find((t) => t.id === e.id), i = o.find((t) => t.id === `${e.id}${
|
|
479
|
+
let r = o.find((t) => t.id === e.id), i = o.find((t) => t.id === `${e.id}${ot}`);
|
|
463
480
|
if (!r || !i) return;
|
|
464
481
|
let a = (t = (n = s.findLayer(e.z)) == null ? void 0 : n.visible) == null || t;
|
|
465
482
|
e.active ? (r.hidden = !0, i.hidden = !(a && e.active)) : (r.hidden = !a, i.hidden = !0);
|
|
@@ -476,25 +493,25 @@ function ct(e) {
|
|
|
476
493
|
h(), j(l);
|
|
477
494
|
});
|
|
478
495
|
}, { fireImmediately: !0 })), function() {
|
|
479
|
-
n.forEach((e) => e()), n.length = 0, l.onScale = void 0, ae(),
|
|
496
|
+
n.forEach((e) => e()), n.length = 0, l.onScale = void 0, ae(), B = 1, j(l);
|
|
480
497
|
};
|
|
481
498
|
}
|
|
482
|
-
function
|
|
483
|
-
return
|
|
499
|
+
function dt(e, t) {
|
|
500
|
+
return ft(e, t, B);
|
|
484
501
|
}
|
|
485
|
-
function
|
|
502
|
+
function ft(e, t, n) {
|
|
486
503
|
for (let r of c.routeStore.markersData.markers) {
|
|
487
504
|
let i = c.routeStore.markersData.icons.find((e) => e.name === r.icon);
|
|
488
505
|
if (!i) continue;
|
|
489
506
|
let a = i.width * (i.scale || 1) * n, o = i.height * (i.scale || 1) * n;
|
|
490
|
-
if (
|
|
507
|
+
if (pt(e, t, r.x, r.y, a, o)) {
|
|
491
508
|
let e = c.layerStore.findLayer(r.z);
|
|
492
509
|
if (!e || e && e.visible) return r;
|
|
493
510
|
}
|
|
494
511
|
}
|
|
495
512
|
return null;
|
|
496
513
|
}
|
|
497
|
-
function
|
|
514
|
+
function pt(e, t, n, r, i, a) {
|
|
498
515
|
return A.fromCenter({
|
|
499
516
|
x: n,
|
|
500
517
|
y: r
|
|
@@ -506,11 +523,11 @@ function dt(e, t, n, r, i, a) {
|
|
|
506
523
|
y: t
|
|
507
524
|
});
|
|
508
525
|
}
|
|
509
|
-
var
|
|
510
|
-
function
|
|
526
|
+
var B = 1, mt = .5, ht = "cubic";
|
|
527
|
+
function gt(e, t) {
|
|
511
528
|
return !e || e.rootLayer.dim === t ? !1 : (e.rootLayer.dim = t, !0);
|
|
512
529
|
}
|
|
513
|
-
function
|
|
530
|
+
function _t(e, t = 300, n = ht) {
|
|
514
531
|
let r = null, i = 0, a = 0, o = 0, s = 0, c = Math.max(t, 0);
|
|
515
532
|
function l() {
|
|
516
533
|
r === null || typeof cancelAnimationFrame != "function" || (cancelAnimationFrame(r), r = null);
|
|
@@ -519,7 +536,7 @@ function ht(e, t = 300, n = pt) {
|
|
|
519
536
|
l(), i = t, e(i);
|
|
520
537
|
}
|
|
521
538
|
function d(t) {
|
|
522
|
-
let l = t - s, u = Math.min(Math.max(l / c, 0), 1), f =
|
|
539
|
+
let l = t - s, u = Math.min(Math.max(l / c, 0), 1), f = vt(u, n);
|
|
523
540
|
if (i = a + (o - a) * f, e(i), u < 1) {
|
|
524
541
|
r = requestAnimationFrame(d);
|
|
525
542
|
return;
|
|
@@ -545,15 +562,15 @@ function ht(e, t = 300, n = pt) {
|
|
|
545
562
|
}
|
|
546
563
|
};
|
|
547
564
|
}
|
|
548
|
-
function
|
|
549
|
-
return t === "linear" ? e :
|
|
565
|
+
function vt(e, t) {
|
|
566
|
+
return t === "linear" ? e : yt(e);
|
|
550
567
|
}
|
|
551
|
-
function
|
|
568
|
+
function yt(e) {
|
|
552
569
|
return e < .5 ? 4 * e * e * e : 1 - (-2 * e + 2) ** 3 / 2;
|
|
553
570
|
}
|
|
554
571
|
//#endregion
|
|
555
572
|
//#region src/components/Map/drawing/config/config-pins.ts
|
|
556
|
-
function
|
|
573
|
+
function bt(e, t, n) {
|
|
557
574
|
let a = [], o = [], s = [], c = [];
|
|
558
575
|
function d() {
|
|
559
576
|
let e = u.selectedPoiTypeFilters;
|
|
@@ -568,15 +585,15 @@ function vt(e, t, n) {
|
|
|
568
585
|
o.forEach((e) => e.stop()), o = [];
|
|
569
586
|
}
|
|
570
587
|
function m() {
|
|
571
|
-
e.children = s.map((e) =>
|
|
588
|
+
e.children = s.map((e) => Tt(e, f));
|
|
572
589
|
}
|
|
573
590
|
function h() {
|
|
574
|
-
c = Array.from({ length: Math.floor(s.length / 2) }, () =>
|
|
591
|
+
c = Array.from({ length: Math.floor(s.length / 2) }, () => Dt(f)), t.children = c.map((e) => e.image), n.children = c.map((e) => e.count);
|
|
575
592
|
}
|
|
576
593
|
function g(e, t) {
|
|
577
|
-
let n = /* @__PURE__ */ new Set(), r = (e) => e == null ? void 0 : e.forEach((e) => n.add(e)), i =
|
|
594
|
+
let n = /* @__PURE__ */ new Set(), r = (e) => e == null ? void 0 : e.forEach((e) => n.add(e)), i = kt(c, e, Ft * t.pixelSize);
|
|
578
595
|
i.forEach((t, n) => {
|
|
579
|
-
|
|
596
|
+
jt(t, e[n]) && r([t.image, t.count]), r(t.fader.place(!0));
|
|
580
597
|
});
|
|
581
598
|
let a = new Set(i);
|
|
582
599
|
for (let e of c) a.has(e) || r(e.fader.place(!1));
|
|
@@ -585,9 +602,9 @@ function vt(e, t, n) {
|
|
|
585
602
|
return e.clustering = {
|
|
586
603
|
onCluster: (e, t) => g(e, t),
|
|
587
604
|
marker: {
|
|
588
|
-
width:
|
|
589
|
-
height:
|
|
590
|
-
origin:
|
|
605
|
+
width: U,
|
|
606
|
+
height: W,
|
|
607
|
+
origin: H
|
|
591
608
|
}
|
|
592
609
|
}, a.push(i(() => d(), (r) => {
|
|
593
610
|
s = r, p(), m(), h(), j(e, t, n);
|
|
@@ -598,7 +615,7 @@ function vt(e, t, n) {
|
|
|
598
615
|
a.forEach((e) => e()), a.length = 0, p(), c = [], e.clustering = void 0, e.children = [], t.children = [], n.children = [], j(e, t, n);
|
|
599
616
|
};
|
|
600
617
|
}
|
|
601
|
-
function
|
|
618
|
+
function xt(e, t, n, r, i) {
|
|
602
619
|
let a, o = i, s = !1, c = !1, l = (r) => {
|
|
603
620
|
let i = 1 - Math.min(Math.max(r, 0), 1), a = !1;
|
|
604
621
|
if (n() !== i && (t(i), a = !0), !o && r >= 1 && e.some((e) => !e.hidden)) {
|
|
@@ -607,7 +624,7 @@ function yt(e, t, n, r, i) {
|
|
|
607
624
|
}
|
|
608
625
|
a && (s ? c = !0 : j(...e));
|
|
609
626
|
}, u = () => {
|
|
610
|
-
if (!a && (a =
|
|
627
|
+
if (!a && (a = _t(l, 300), r(a), !i)) {
|
|
611
628
|
let e = s;
|
|
612
629
|
s = !0, a.setTarget(!0, { immediate: !0 }), s = e;
|
|
613
630
|
}
|
|
@@ -624,30 +641,30 @@ function yt(e, t, n, r, i) {
|
|
|
624
641
|
return s = !0, c = !1, u().setTarget(!t), s = !1, n || c ? e : void 0;
|
|
625
642
|
} };
|
|
626
643
|
}
|
|
627
|
-
function
|
|
644
|
+
function St(e, t, n, r) {
|
|
628
645
|
let { bounds: i } = e, a = t * r, o = t * n * r;
|
|
629
646
|
if (!(i.size.x === a && i.size.y === o)) return i.set(i.center.x, i.center.y, a, o, i.rotation, i.elevation), [e];
|
|
630
647
|
}
|
|
631
|
-
function
|
|
632
|
-
return
|
|
648
|
+
function Ct() {
|
|
649
|
+
return G || (G = E(V, window.devicePixelRatio)), G;
|
|
633
650
|
}
|
|
634
|
-
function
|
|
635
|
-
return
|
|
651
|
+
function wt() {
|
|
652
|
+
return Rt || (Rt = T(U, window.devicePixelRatio)), Rt;
|
|
636
653
|
}
|
|
637
|
-
function
|
|
654
|
+
function Tt(e, t) {
|
|
638
655
|
let n = new d(e.rect.center, {
|
|
639
|
-
x:
|
|
640
|
-
y:
|
|
656
|
+
x: V,
|
|
657
|
+
y: V * x
|
|
641
658
|
}, 0, e.elevation * 2), r = {
|
|
642
|
-
...O(
|
|
659
|
+
...O(Ct(), n, {
|
|
643
660
|
hidden: !1,
|
|
644
|
-
origin:
|
|
661
|
+
origin: H
|
|
645
662
|
}),
|
|
646
663
|
screenSpace: !0,
|
|
647
664
|
opacity: 1
|
|
648
665
|
};
|
|
649
|
-
r.onScale = ({ pixelSize: e }) =>
|
|
650
|
-
let i =
|
|
666
|
+
r.onScale = ({ pixelSize: e }) => St(r, V, x, e);
|
|
667
|
+
let i = xt([r], (e) => {
|
|
651
668
|
r.opacity = e;
|
|
652
669
|
}, () => {
|
|
653
670
|
var e;
|
|
@@ -655,42 +672,42 @@ function Ct(e, t) {
|
|
|
655
672
|
}, t, !0);
|
|
656
673
|
return r.placement = { onPlace: (e) => i.place(e) }, r;
|
|
657
674
|
}
|
|
658
|
-
function
|
|
659
|
-
return `${
|
|
675
|
+
function Et(e) {
|
|
676
|
+
return `${It}${Math.round(Math.min(Math.max(e, 0), 1) * 255).toString(16).padStart(2, "0")}`;
|
|
660
677
|
}
|
|
661
|
-
function
|
|
678
|
+
function Dt(e) {
|
|
662
679
|
let t = new d({
|
|
663
680
|
x: 0,
|
|
664
681
|
y: 0
|
|
665
682
|
}, {
|
|
666
|
-
x:
|
|
667
|
-
y:
|
|
683
|
+
x: U,
|
|
684
|
+
y: W
|
|
668
685
|
}, 0, 0), n = {
|
|
669
|
-
...O(
|
|
686
|
+
...O(wt(), t, {
|
|
670
687
|
hidden: !0,
|
|
671
|
-
origin:
|
|
688
|
+
origin: H
|
|
672
689
|
}),
|
|
673
690
|
screenSpace: !0,
|
|
674
691
|
opacity: 0
|
|
675
692
|
};
|
|
676
|
-
n.onScale = ({ pixelSize: e }) =>
|
|
677
|
-
let r =
|
|
693
|
+
n.onScale = ({ pixelSize: e }) => St(n, U, x, e);
|
|
694
|
+
let r = Ot(n);
|
|
678
695
|
return {
|
|
679
696
|
image: n,
|
|
680
697
|
count: r,
|
|
681
|
-
fader:
|
|
682
|
-
n.opacity = e, r.lines[0].color =
|
|
698
|
+
fader: xt([n, r], (e) => {
|
|
699
|
+
n.opacity = e, r.lines[0].color = Et(e);
|
|
683
700
|
}, () => {
|
|
684
701
|
var e;
|
|
685
702
|
return (e = n.opacity) == null ? 1 : e;
|
|
686
703
|
}, e, !1)
|
|
687
704
|
};
|
|
688
705
|
}
|
|
689
|
-
function
|
|
706
|
+
function Ot(e) {
|
|
690
707
|
let t = {
|
|
691
708
|
lines: [{
|
|
692
709
|
text: m(2),
|
|
693
|
-
color:
|
|
710
|
+
color: Et(0),
|
|
694
711
|
fontUrl: k,
|
|
695
712
|
fontSize: 0
|
|
696
713
|
}],
|
|
@@ -711,11 +728,11 @@ function Et(e) {
|
|
|
711
728
|
hidden: !0
|
|
712
729
|
};
|
|
713
730
|
return t.onScale = ({ pixelSize: n }) => {
|
|
714
|
-
let r = S(
|
|
731
|
+
let r = S(Lt.r) * n, i = U * n, a = 2 * ((W - Lt.cy) * n + b * r), { bounds: o } = t, [s] = t.lines;
|
|
715
732
|
if (!(s.fontSize === r && o.size.x === i && o.size.y === a)) return s.fontSize = r, o.set(e.bounds.center.x, e.bounds.center.y, i, a, o.rotation, e.bounds.elevation), [t];
|
|
716
733
|
}, t;
|
|
717
734
|
}
|
|
718
|
-
function
|
|
735
|
+
function kt(e, t, n) {
|
|
719
736
|
let r = Math.min(t.length, e.length), i = [], a = /* @__PURE__ */ new Set(), o = [];
|
|
720
737
|
e.forEach(({ image: e }, i) => {
|
|
721
738
|
if (!e.hidden) for (let a = 0; a < r; a++) {
|
|
@@ -731,25 +748,25 @@ function Dt(e, t, n) {
|
|
|
731
748
|
let s = e.map((e, t) => ({
|
|
732
749
|
unit: e,
|
|
733
750
|
index: t
|
|
734
|
-
})).filter(({ unit: e }) => !a.has(e)).sort((e, t) =>
|
|
751
|
+
})).filter(({ unit: e }) => !a.has(e)).sort((e, t) => At(e.unit) - At(t.unit) || e.index - t.index), c = 0;
|
|
735
752
|
for (let e = 0; e < r; e++) i[e] || (i[e] = s[c++].unit);
|
|
736
753
|
return i;
|
|
737
754
|
}
|
|
738
|
-
function
|
|
755
|
+
function At({ image: e }) {
|
|
739
756
|
var t;
|
|
740
757
|
return e.hidden ? 0 : (t = e.opacity) == null ? 1 : t;
|
|
741
758
|
}
|
|
742
|
-
function
|
|
759
|
+
function jt({ image: e, count: t }, n) {
|
|
743
760
|
let { x: r, y: i, elevation: a, unitCount: o } = n, s = m(o), [c] = t.lines, l = e.bounds;
|
|
744
761
|
if (l.center.x === r && l.center.y === i && l.elevation === a && c.text === s) return !1;
|
|
745
762
|
l.set(r, i, l.size.x, l.size.y, l.rotation, a);
|
|
746
763
|
let { bounds: u } = t;
|
|
747
764
|
return u.set(r, i, u.size.x, u.size.y, u.rotation, a), c.text = s, !0;
|
|
748
765
|
}
|
|
749
|
-
var
|
|
766
|
+
var Mt = "poiFilterPins", Nt = "poiFilterPinClusters", Pt = "poiFilterPinCounts", V = 32, H = [.5, 1], U = 44, Ft = U, It = "#000000", Lt = _(U), W = U * x, G, Rt;
|
|
750
767
|
//#endregion
|
|
751
768
|
//#region src/components/Map/drawing/config/config-all.ts
|
|
752
|
-
function
|
|
769
|
+
function zt() {
|
|
753
770
|
let { defaultLayer: e } = c.layerStore, { layers: t } = c.layerStore;
|
|
754
771
|
if (e) {
|
|
755
772
|
let n = [...t], r = t.indexOf(e);
|
|
@@ -758,17 +775,17 @@ function Rt() {
|
|
|
758
775
|
let n = t.filter((e) => !e.rootParent).map((e) => de(e));
|
|
759
776
|
return Promise.all(n).then((e) => {
|
|
760
777
|
var t;
|
|
761
|
-
let n = h(
|
|
778
|
+
let n = h(st, []);
|
|
762
779
|
n.overlay = u.is3DView;
|
|
763
|
-
let r = u.is3DView ?
|
|
780
|
+
let r = u.is3DView ? Bt() : void 0, i = Se({ overlay: u.is3DView }), a = [], o = [];
|
|
764
781
|
for (let t of e.flat()) p(t.name) ? (t.dim = 0, o.push(t)) : a.push(t);
|
|
765
|
-
let { layer: s, cleanup: c } =
|
|
782
|
+
let { layer: s, cleanup: c } = at("root", l.booths);
|
|
766
783
|
return {
|
|
767
784
|
layers: [
|
|
768
785
|
...a,
|
|
769
786
|
...s ? [s] : [],
|
|
770
787
|
...o,
|
|
771
|
-
...
|
|
788
|
+
...Me(),
|
|
772
789
|
n,
|
|
773
790
|
...(t = r == null ? void 0 : r.layers) == null ? [] : t,
|
|
774
791
|
i
|
|
@@ -779,33 +796,33 @@ function Rt() {
|
|
|
779
796
|
};
|
|
780
797
|
});
|
|
781
798
|
}
|
|
782
|
-
function
|
|
799
|
+
function Bt() {
|
|
783
800
|
let e = [
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
801
|
+
Mt,
|
|
802
|
+
Nt,
|
|
803
|
+
Pt
|
|
787
804
|
].map((e) => {
|
|
788
805
|
let t = h(e, []);
|
|
789
806
|
return t.overlay = !0, t.dim = 0, t;
|
|
790
807
|
}), [t, n, r] = e;
|
|
791
808
|
return {
|
|
792
809
|
layers: e,
|
|
793
|
-
cleanup:
|
|
810
|
+
cleanup: bt(t, n, r)
|
|
794
811
|
};
|
|
795
812
|
}
|
|
796
813
|
//#endregion
|
|
797
814
|
//#region src/components/Map/MapCursorCoords.tsx
|
|
798
|
-
var
|
|
799
|
-
function
|
|
800
|
-
let { canvas: t } = e, n = ie(), r = o(), i = (0,
|
|
815
|
+
var K = /* @__PURE__ */ e(n(), 1), Vt = 2;
|
|
816
|
+
function Ht(e) {
|
|
817
|
+
let { canvas: t } = e, n = ie(), r = o(), i = (0, K.useCallback)(() => r("cursor", void 0), [r]), a = (0, K.useEffectEvent)((e) => {
|
|
801
818
|
if (!e.isPrimary) return;
|
|
802
819
|
let t = n.canvasToPlan({
|
|
803
820
|
x: e.offsetX,
|
|
804
821
|
y: e.offsetY
|
|
805
822
|
});
|
|
806
|
-
r("cursor", t ?
|
|
823
|
+
r("cursor", t ? Wt(t, Ut()) : void 0);
|
|
807
824
|
});
|
|
808
|
-
return (0,
|
|
825
|
+
return (0, K.useEffect)(() => {
|
|
809
826
|
let e = t.current;
|
|
810
827
|
if (!e) return;
|
|
811
828
|
let n = (e) => a(e), r = () => i();
|
|
@@ -814,25 +831,25 @@ function Vt(e) {
|
|
|
814
831
|
};
|
|
815
832
|
}, [t, i]), null;
|
|
816
833
|
}
|
|
817
|
-
function
|
|
834
|
+
function Ut() {
|
|
818
835
|
let e = c.layerStore.layers.find((e) => e.visible && (e.mode === ge.TurnedOn || e.mode === ge.TurnedOff));
|
|
819
836
|
return (e == null ? void 0 : e.name) || null;
|
|
820
837
|
}
|
|
821
|
-
function
|
|
822
|
-
let n = `[${e.x.toFixed(
|
|
838
|
+
function Wt(e, t) {
|
|
839
|
+
let n = `[${e.x.toFixed(Vt)}, ${e.y.toFixed(Vt)}]`;
|
|
823
840
|
return t ? `${n} · layer ${t}` : n;
|
|
824
841
|
}
|
|
825
842
|
//#endregion
|
|
826
843
|
//#region src/components/Map/MapViewport.tsx
|
|
827
|
-
function
|
|
828
|
-
let e = ie(), t = (0,
|
|
829
|
-
return (0,
|
|
844
|
+
function Gt() {
|
|
845
|
+
let e = ie(), t = (0, K.useRef)({ api: e }), [n] = (0, K.useState)(() => we(t));
|
|
846
|
+
return (0, K.useLayoutEffect)(() => {
|
|
830
847
|
t.current = { api: e };
|
|
831
|
-
}), (0,
|
|
848
|
+
}), (0, K.useEffect)(() => (Ce(n), () => Ce(void 0)), [n]), null;
|
|
832
849
|
}
|
|
833
850
|
//#endregion
|
|
834
851
|
//#region src/components/Map/traffic/UpdateQueue.ts
|
|
835
|
-
var
|
|
852
|
+
var Kt = class {
|
|
836
853
|
constructor() {
|
|
837
854
|
this.queue = [], this.isProcessing = !1, this.rafId = null, this.CHUNK_SIZE = 100, this.TIME_BUDGET = 4;
|
|
838
855
|
}
|
|
@@ -874,7 +891,7 @@ var Gt = class {
|
|
|
874
891
|
destroy() {
|
|
875
892
|
this.rafId !== null && (cancelAnimationFrame(this.rafId), this.rafId = null), this.queue = [], this.isProcessing = !1;
|
|
876
893
|
}
|
|
877
|
-
},
|
|
894
|
+
}, qt = 49, Jt = `hsl(257, 76%, ${qt}%)`, Yt = `hsl(339.903, 82%, ${qt}%)`, Xt = `hsl(257, 76%, ${Math.round(qt * 1.82)}%)`, q = 4, J = _e(q), Zt = q, Qt = "U", $t = "R", en = "S", tn = "P", nn = class {
|
|
878
895
|
constructor() {
|
|
879
896
|
this._state = [[]], this.index = 0, this.pointHashSet = /* @__PURE__ */ new Set(), this.locked = !1, this.storageKey = "expofp_build_route_state", this._selected = 0;
|
|
880
897
|
}
|
|
@@ -913,10 +930,10 @@ var Gt = class {
|
|
|
913
930
|
instruct() {
|
|
914
931
|
this.log(`How to Build a Route:
|
|
915
932
|
Add Point: Click on the map.
|
|
916
|
-
Apply Smoothing: Press ${
|
|
917
|
-
Apply Simplification: Press ${
|
|
918
|
-
Undo: Press ${
|
|
919
|
-
Enable/Disable Preview: Press ${
|
|
933
|
+
Apply Smoothing: Press ${$t}.
|
|
934
|
+
Apply Simplification: Press ${en}.
|
|
935
|
+
Undo: Press ${Qt}.
|
|
936
|
+
Enable/Disable Preview: Press ${tn}.
|
|
920
937
|
`, 16);
|
|
921
938
|
}
|
|
922
939
|
applyChaikinSmoothing(e, t, n) {
|
|
@@ -1016,22 +1033,22 @@ Enable/Disable Preview: Press ${en}.
|
|
|
1016
1033
|
this._selected = Math.max(0, Math.min(e, this.points.length - 1));
|
|
1017
1034
|
}
|
|
1018
1035
|
};
|
|
1019
|
-
function
|
|
1020
|
-
let n = (0,
|
|
1036
|
+
function rn({ enabled: e, scene: t }) {
|
|
1037
|
+
let n = (0, K.useRef)(!1), r = (0, K.useRef)(1), i = (0, K.useMemo)(() => be(q, Jt), []), a = (0, K.useMemo)(() => be(q, Yt), []), o = (0, K.useMemo)(() => new nn(), []), s = (0, K.useRef)(new Kt()), c = (0, K.useMemo)(() => {
|
|
1021
1038
|
if (!t) return {};
|
|
1022
1039
|
let e = t.rootLayer.children;
|
|
1023
1040
|
return {
|
|
1024
|
-
linesLayer: e.find((e) => e.name ===
|
|
1025
|
-
pointsLayer: e.find((e) => e.name ===
|
|
1041
|
+
linesLayer: e.find((e) => e.name === ke),
|
|
1042
|
+
pointsLayer: e.find((e) => e.name === Ae)
|
|
1026
1043
|
};
|
|
1027
|
-
}, [t]), l = (0,
|
|
1044
|
+
}, [t]), l = (0, K.useCallback)(() => {
|
|
1028
1045
|
if (!c || !i || !a) return;
|
|
1029
1046
|
let { linesLayer: e, pointsLayer: t } = c;
|
|
1030
1047
|
if (!e || !t) return;
|
|
1031
1048
|
let l = o.points, u = n.current;
|
|
1032
1049
|
u ? t.children.length = 0 : t.children = l.map(({ x: e, y: t }, n) => ({
|
|
1033
1050
|
source: n == o.selected ? a : i,
|
|
1034
|
-
bounds: P(e, t,
|
|
1051
|
+
bounds: P(e, t, J, J, r.current)
|
|
1035
1052
|
}));
|
|
1036
1053
|
let d = [];
|
|
1037
1054
|
for (let e = 1; e < l.length; e++) {
|
|
@@ -1041,8 +1058,8 @@ function nn({ enabled: e, scene: t }) {
|
|
|
1041
1058
|
p0: t,
|
|
1042
1059
|
p1: n
|
|
1043
1060
|
},
|
|
1044
|
-
color: u ?
|
|
1045
|
-
width:
|
|
1061
|
+
color: u ? Jt : Xt,
|
|
1062
|
+
width: Zt
|
|
1046
1063
|
});
|
|
1047
1064
|
}
|
|
1048
1065
|
d.length ? e.children = d : e.children.length = 0, s.current.add(() => j(t, e)), o.instruct(), o.log(JSON.stringify(o.points));
|
|
@@ -1051,34 +1068,34 @@ function nn({ enabled: e, scene: t }) {
|
|
|
1051
1068
|
c,
|
|
1052
1069
|
i,
|
|
1053
1070
|
a
|
|
1054
|
-
]), u = (0,
|
|
1071
|
+
]), u = (0, K.useCallback)((e) => {
|
|
1055
1072
|
let t = e.key.toUpperCase();
|
|
1056
1073
|
o.execute(() => {
|
|
1057
1074
|
switch (t) {
|
|
1058
|
-
case
|
|
1075
|
+
case Qt:
|
|
1059
1076
|
e.preventDefault(), o.undo(), n.current = !1, l();
|
|
1060
1077
|
break;
|
|
1061
|
-
case
|
|
1078
|
+
case $t:
|
|
1062
1079
|
e.preventDefault(), o.applySmoothing(), n.current = !1, l();
|
|
1063
1080
|
break;
|
|
1064
|
-
case
|
|
1081
|
+
case en:
|
|
1065
1082
|
e.preventDefault(), o.applySimplification(), n.current = !1, l();
|
|
1066
1083
|
break;
|
|
1067
|
-
case
|
|
1084
|
+
case tn:
|
|
1068
1085
|
e.preventDefault(), n.current = !n.current, l();
|
|
1069
1086
|
break;
|
|
1070
1087
|
}
|
|
1071
1088
|
});
|
|
1072
|
-
}, [o, l]), d = (0,
|
|
1089
|
+
}, [o, l]), d = (0, K.useCallback)((e) => {
|
|
1073
1090
|
r.current = e;
|
|
1074
1091
|
let { pointsLayer: t } = c;
|
|
1075
1092
|
if (!t) return [];
|
|
1076
1093
|
let n = [];
|
|
1077
1094
|
return o.execute(() => {
|
|
1078
1095
|
let e = t.children;
|
|
1079
|
-
for (let t of e) t.bounds = P(t.bounds.center.x, t.bounds.center.y,
|
|
1096
|
+
for (let t of e) t.bounds = P(t.bounds.center.x, t.bounds.center.y, J, J, r.current), n.push(t);
|
|
1080
1097
|
}), n;
|
|
1081
|
-
}, [c, o]), f = (0,
|
|
1098
|
+
}, [c, o]), f = (0, K.useCallback)((e) => {
|
|
1082
1099
|
o.execute(() => {
|
|
1083
1100
|
o.add({
|
|
1084
1101
|
x: e.x,
|
|
@@ -1086,7 +1103,7 @@ function nn({ enabled: e, scene: t }) {
|
|
|
1086
1103
|
}), o.select(o.points.length - 1), l();
|
|
1087
1104
|
});
|
|
1088
1105
|
}, [o, l]);
|
|
1089
|
-
(0,
|
|
1106
|
+
(0, K.useEffect)(() => {
|
|
1090
1107
|
var t, n;
|
|
1091
1108
|
if (!e || !(c != null && c.pointsLayer)) return;
|
|
1092
1109
|
let { pointsLayer: i } = c;
|
|
@@ -1109,10 +1126,10 @@ function nn({ enabled: e, scene: t }) {
|
|
|
1109
1126
|
}
|
|
1110
1127
|
//#endregion
|
|
1111
1128
|
//#region src/components/Map/traffic/useManageTraffic.ts
|
|
1112
|
-
var
|
|
1113
|
-
function
|
|
1114
|
-
let o = (0,
|
|
1115
|
-
(0,
|
|
1129
|
+
var an = 2, on = an * 3.5, Y = an * 12, X = Y * .7, sn = 8, cn = 2, ln = .6, un = 8, dn = "transport_locations", fn = 150, pn = "#a4aab6", mn = 1e3, hn = 2e4, gn = 500;
|
|
1130
|
+
function _n({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
1131
|
+
let o = (0, K.useRef)(1), s = (0, K.useRef)(/* @__PURE__ */ new Map()), c = (0, K.useRef)(/* @__PURE__ */ new Map()), l = (0, K.useRef)(null), u = (0, K.useRef)(null), d = (0, K.useRef)(0), f = (0, K.useRef)(1), p = (0, K.useRef)(new Kt()), m = (0, K.useRef)(/* @__PURE__ */ new Map()), h = (0, K.useRef)(mn), g = (0, K.useRef)(/* @__PURE__ */ new Map()), _ = (0, K.useRef)(void 0);
|
|
1132
|
+
(0, K.useEffect)(() => {
|
|
1116
1133
|
if (!e || !n) return;
|
|
1117
1134
|
let v = !1, y, b = n.rootLayer.children, x = c.current, S = s.current, C = p.current;
|
|
1118
1135
|
async function w() {
|
|
@@ -1130,31 +1147,31 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
|
1130
1147
|
console.warn("useManageTraffic failed to get JSON", e);
|
|
1131
1148
|
}
|
|
1132
1149
|
if (v || !i || i.disabled || i.error) return;
|
|
1133
|
-
o.current =
|
|
1150
|
+
o.current = bn((e = (n = F()) == null ? void 0 : n.state().pixelSize) == null ? 1 : e);
|
|
1134
1151
|
let c = new Map(i.routes.map(({ id: e, color: t }) => [e, t])), l = /* @__PURE__ */ new Map();
|
|
1135
1152
|
c.forEach((e) => {
|
|
1136
|
-
l.set(e,
|
|
1137
|
-
radius:
|
|
1153
|
+
l.set(e, Sn({
|
|
1154
|
+
radius: on,
|
|
1138
1155
|
color: e,
|
|
1139
1156
|
scale: window.devicePixelRatio
|
|
1140
1157
|
}));
|
|
1141
1158
|
});
|
|
1142
|
-
let p =
|
|
1159
|
+
let p = Fe(), h = b.filter((e) => p.test(e.name)), _ = Ie(), y = b.filter((e) => _.test(e.name));
|
|
1143
1160
|
i.routes.slice(0, h.length).forEach(({ id: e, color: t, path: n, stops: r, hiddenPoints: i }, a) => {
|
|
1144
1161
|
m.current.set(e, n);
|
|
1145
1162
|
let s = h[a];
|
|
1146
1163
|
if (s) {
|
|
1147
1164
|
var c;
|
|
1148
|
-
let e = new Map((c = i == null ? void 0 : i.map((e) => [
|
|
1165
|
+
let e = new Map((c = i == null ? void 0 : i.map((e) => [jn(e), e])) == null ? [] : c);
|
|
1149
1166
|
for (let r = 1; r < n.length; r++) {
|
|
1150
1167
|
let i = n[r - 1], a = n[r];
|
|
1151
|
-
e.has(
|
|
1168
|
+
e.has(jn(i)) || e.has(jn(a)) || s.children.push({
|
|
1152
1169
|
points: {
|
|
1153
1170
|
p0: i,
|
|
1154
1171
|
p1: a
|
|
1155
1172
|
},
|
|
1156
1173
|
color: t,
|
|
1157
|
-
width:
|
|
1174
|
+
width: an
|
|
1158
1175
|
});
|
|
1159
1176
|
}
|
|
1160
1177
|
s.children.length && C.add(() => j(s));
|
|
@@ -1163,7 +1180,7 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
|
1163
1180
|
u && d && r != null && r.length && (r.forEach((e) => {
|
|
1164
1181
|
u.children.push({
|
|
1165
1182
|
source: d,
|
|
1166
|
-
bounds: P(e.x, e.y, ...
|
|
1183
|
+
bounds: P(e.x, e.y, ...Z(d), o.current)
|
|
1167
1184
|
});
|
|
1168
1185
|
}), u.children.length && C.add(() => j(u)));
|
|
1169
1186
|
});
|
|
@@ -1174,41 +1191,41 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
|
1174
1191
|
}
|
|
1175
1192
|
let O = /* @__PURE__ */ new Map();
|
|
1176
1193
|
w.onScale = ({ pixelSize: e }) => {
|
|
1177
|
-
o.current =
|
|
1194
|
+
o.current = bn(e);
|
|
1178
1195
|
let t = [];
|
|
1179
1196
|
for (let e of y) {
|
|
1180
1197
|
let n = e.children;
|
|
1181
1198
|
for (let e of n) {
|
|
1182
1199
|
let n = e.source;
|
|
1183
|
-
e.bounds = P(e.bounds.center.x, e.bounds.center.y, ...
|
|
1200
|
+
e.bounds = P(e.bounds.center.x, e.bounds.center.y, ...Z(n), o.current, e.bounds.rotation), t.push(e);
|
|
1184
1201
|
}
|
|
1185
1202
|
}
|
|
1186
1203
|
for (let e of s.current.values()) {
|
|
1187
1204
|
let n = e.source;
|
|
1188
|
-
e.bounds = P(e.bounds.center.x, e.bounds.center.y, ...
|
|
1205
|
+
e.bounds = P(e.bounds.center.x, e.bounds.center.y, ...Z(n), o.current, e.bounds.rotation), t.push(e);
|
|
1189
1206
|
}
|
|
1190
1207
|
return t;
|
|
1191
1208
|
}, C.add(() => j(w)), c.forEach((e, t) => {
|
|
1192
|
-
O.set(t,
|
|
1209
|
+
O.set(t, Cn({
|
|
1193
1210
|
id: t,
|
|
1194
|
-
width:
|
|
1195
|
-
height:
|
|
1211
|
+
width: Y,
|
|
1212
|
+
height: Y,
|
|
1196
1213
|
color: e,
|
|
1197
1214
|
scale: window.devicePixelRatio
|
|
1198
1215
|
}));
|
|
1199
1216
|
});
|
|
1200
|
-
let k =
|
|
1217
|
+
let k = Cn({
|
|
1201
1218
|
id: "orphan",
|
|
1202
|
-
width:
|
|
1203
|
-
height:
|
|
1204
|
-
color:
|
|
1219
|
+
width: Y,
|
|
1220
|
+
height: Y,
|
|
1221
|
+
color: pn,
|
|
1205
1222
|
scale: window.devicePixelRatio
|
|
1206
1223
|
}), A = null;
|
|
1207
1224
|
try {
|
|
1208
1225
|
let e = await a(`${t}icons/bus-white.svg`);
|
|
1209
1226
|
if (v) return;
|
|
1210
|
-
A = ve(e,
|
|
1211
|
-
let { width: n, height: r } = N(e,
|
|
1227
|
+
A = ve(e, X, X, window.devicePixelRatio);
|
|
1228
|
+
let { width: n, height: r } = N(e, X, X);
|
|
1212
1229
|
$.set(A, [n, r]);
|
|
1213
1230
|
} catch (e) {
|
|
1214
1231
|
console.error(e);
|
|
@@ -1217,17 +1234,17 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
|
1217
1234
|
try {
|
|
1218
1235
|
var t;
|
|
1219
1236
|
let n = JSON.parse(e.data);
|
|
1220
|
-
if (n.type !==
|
|
1237
|
+
if (n.type !== dn) return;
|
|
1221
1238
|
let r = e.timeStamp || performance.now();
|
|
1222
1239
|
f.current = Math.round(r - d.current), d.current = r;
|
|
1223
|
-
let i = Math.max((t = f.current) == null ?
|
|
1240
|
+
let i = Math.max((t = f.current) == null ? gn : t, gn), a = w.children, s = !1;
|
|
1224
1241
|
n.data.forEach(({ id: e, x: t, y: n, route_id: r, hidden: c }) => {
|
|
1225
1242
|
var l;
|
|
1226
1243
|
if (x.has(e)) {
|
|
1227
1244
|
var u;
|
|
1228
1245
|
(u = x.get(e)) == null || u(), x.delete(e);
|
|
1229
1246
|
}
|
|
1230
|
-
let d = S.get(e), f = (l = S.get(
|
|
1247
|
+
let d = S.get(e), f = (l = S.get(Tn(e))) == null ? null : l;
|
|
1231
1248
|
if (c && d && f) {
|
|
1232
1249
|
d.hidden = !0, f.hidden = !0, C.add(() => j(d, f));
|
|
1233
1250
|
return;
|
|
@@ -1236,37 +1253,37 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
|
1236
1253
|
var p;
|
|
1237
1254
|
let i = (p = O.get(r)) == null ? k : p, c = {
|
|
1238
1255
|
source: i,
|
|
1239
|
-
bounds: P(t, n, ...
|
|
1256
|
+
bounds: P(t, n, ...Z(i), o.current, 0)
|
|
1240
1257
|
};
|
|
1241
1258
|
if (S.set(e, c), A) {
|
|
1242
|
-
let r =
|
|
1259
|
+
let r = Tn(e), i = {
|
|
1243
1260
|
source: A,
|
|
1244
|
-
bounds: P(t, n, ...
|
|
1261
|
+
bounds: P(t, n, ...Z(A), o.current, 0)
|
|
1245
1262
|
};
|
|
1246
1263
|
A.setAttribute("id", r), S.set(r, i), a.push(c, i);
|
|
1247
1264
|
} else a.push(c);
|
|
1248
1265
|
s = !0;
|
|
1249
1266
|
return;
|
|
1250
1267
|
}
|
|
1251
|
-
let h = d.bounds.center, _ =
|
|
1268
|
+
let h = d.bounds.center, _ = kn(h, {
|
|
1252
1269
|
x: t,
|
|
1253
1270
|
y: n
|
|
1254
1271
|
}, m.current.get(r));
|
|
1255
|
-
if (_.reduce((e, t, n) => n === 0 ? e : e +
|
|
1272
|
+
if (_.reduce((e, t, n) => n === 0 ? e : e + wn(_[n - 1], t), 0) >= fn || document.hidden) En({
|
|
1256
1273
|
updateQueue: C,
|
|
1257
1274
|
vehicle: d,
|
|
1258
1275
|
vehicleFinery: f,
|
|
1259
1276
|
x: t,
|
|
1260
1277
|
y: n,
|
|
1261
1278
|
scale: o.current,
|
|
1262
|
-
angle:
|
|
1279
|
+
angle: xn(d.bounds.center, {
|
|
1263
1280
|
x: t,
|
|
1264
1281
|
y: n
|
|
1265
1282
|
})
|
|
1266
1283
|
});
|
|
1267
1284
|
else {
|
|
1268
|
-
let t =
|
|
1269
|
-
|
|
1285
|
+
let t = An(_, i, (e) => {
|
|
1286
|
+
En({
|
|
1270
1287
|
updateQueue: C,
|
|
1271
1288
|
vehicle: d,
|
|
1272
1289
|
vehicleFinery: f,
|
|
@@ -1282,7 +1299,7 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
|
1282
1299
|
} catch (e) {
|
|
1283
1300
|
console.error("handleSocketMessage", e);
|
|
1284
1301
|
}
|
|
1285
|
-
}, d.current = performance.now(), T(), window.addEventListener("online", E), D(i.config ? (Number(i.config.vehicle_inactive_interval) || 20) * 1e3 :
|
|
1302
|
+
}, d.current = performance.now(), T(), window.addEventListener("online", E), D(i.config ? (Number(i.config.vehicle_inactive_interval) || 20) * 1e3 : hn);
|
|
1286
1303
|
} catch (e) {
|
|
1287
1304
|
console.warn(e);
|
|
1288
1305
|
}
|
|
@@ -1291,7 +1308,7 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
|
1291
1308
|
function T() {
|
|
1292
1309
|
var e, t;
|
|
1293
1310
|
v || ((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 = () => {
|
|
1294
|
-
h.current =
|
|
1311
|
+
h.current = mn;
|
|
1295
1312
|
}, l.current.onclose = () => {
|
|
1296
1313
|
v || !navigator.onLine || (y = window.setTimeout(T, h.current), h.current = Math.min(h.current * 2, 3e4));
|
|
1297
1314
|
});
|
|
@@ -1306,7 +1323,7 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
|
1306
1323
|
if (t - i < e) return;
|
|
1307
1324
|
let o = S.get(a);
|
|
1308
1325
|
o && (o.hidden = !0, r.push(o), n.push(a));
|
|
1309
|
-
let s =
|
|
1326
|
+
let s = Tn(a), c = S.get(s);
|
|
1310
1327
|
c && (c.hidden = !0, r.push(c), n.push(s));
|
|
1311
1328
|
}), r.length && C.add(() => j(...r)), n.forEach((e) => g.current.delete(e));
|
|
1312
1329
|
}, e));
|
|
@@ -1325,67 +1342,67 @@ function gn({ permission: e, scene: n, dataJsonUrl: r, websocketUrl: i }) {
|
|
|
1325
1342
|
i
|
|
1326
1343
|
]);
|
|
1327
1344
|
}
|
|
1328
|
-
function
|
|
1345
|
+
function Z(e) {
|
|
1329
1346
|
let t = $.get(e);
|
|
1330
1347
|
if (!t) throw Error("useManageTraffic: an icon was drawn without a recorded CSS size");
|
|
1331
1348
|
return t;
|
|
1332
1349
|
}
|
|
1333
|
-
function
|
|
1350
|
+
function vn(e) {
|
|
1334
1351
|
return e * 2;
|
|
1335
1352
|
}
|
|
1336
|
-
function
|
|
1337
|
-
let n = t *
|
|
1338
|
-
return [t +
|
|
1353
|
+
function yn(e, t) {
|
|
1354
|
+
let n = t * ln, r = un * 2;
|
|
1355
|
+
return [t + cn + n / 2 + r, e + n + cn + r];
|
|
1339
1356
|
}
|
|
1340
|
-
function
|
|
1341
|
-
return Math.min(e || 1,
|
|
1357
|
+
function bn(e) {
|
|
1358
|
+
return Math.min(e || 1, sn);
|
|
1342
1359
|
}
|
|
1343
|
-
function
|
|
1360
|
+
function xn(e, t) {
|
|
1344
1361
|
return xe(e, t);
|
|
1345
1362
|
}
|
|
1346
|
-
function
|
|
1363
|
+
function Sn({ radius: e, scale: t, color: n }) {
|
|
1347
1364
|
let r = Math.ceil(e * 2 * t), i = oe(r, r, t);
|
|
1348
|
-
$.set(i, [
|
|
1365
|
+
$.set(i, [vn(e), vn(e)]);
|
|
1349
1366
|
let a = i.getContext("2d");
|
|
1350
1367
|
a.imageSmoothingEnabled = !1;
|
|
1351
1368
|
let o = r / 2, s = e * .78, c = e * .33;
|
|
1352
1369
|
return a.translate(o, o), a.scale(t, t), a.beginPath(), a.arc(0, 0, e, 0, 2 * Math.PI), a.fillStyle = "#FFFFFF", a.fill(), a.beginPath(), a.arc(0, 0, s, 0, 2 * Math.PI), a.fillStyle = n, a.fill(), a.beginPath(), a.arc(0, 0, c, 0, 2 * Math.PI), a.fillStyle = "#FFFFFF", a.fill(), i;
|
|
1353
1370
|
}
|
|
1354
|
-
function
|
|
1355
|
-
let a =
|
|
1356
|
-
$.set(h,
|
|
1371
|
+
function Cn({ id: e, width: t, height: n, color: r, scale: i }) {
|
|
1372
|
+
let a = cn * i, o = t / 2 * i, s = n * i, c = ln, l = .01, u = s * c, d = s, f = un * i, p = d + a + u / 2 + f * 2, m = o * 2 + u + a + f * 2, h = oe(p, m, i);
|
|
1373
|
+
$.set(h, yn(t, n)), h.setAttribute("id", e);
|
|
1357
1374
|
let g = h.getContext("2d"), _ = p / 2, v = m / 2;
|
|
1358
1375
|
g.save(), g.translate(_, v), g.rotate(-Math.PI / 2), g.translate(-_, -v);
|
|
1359
1376
|
let y = _, b = v - d / 2 + o, x = b + u;
|
|
1360
1377
|
return g.shadowColor = "rgba(16, 24, 40, 0.2)", g.shadowBlur = f / 2, g.beginPath(), g.arc(y, b, o, Math.PI, 0, !1), g.bezierCurveTo(y + o, b + s * .3, y + l * o, x, y, x), g.bezierCurveTo(y - l * o, x, y - o, b + s * .3, y - o, b), g.closePath(), g.fillStyle = r, g.fill(), g.strokeStyle = "#FFFFFF", g.lineWidth = a, g.stroke(), g.restore(), h;
|
|
1361
1378
|
}
|
|
1362
|
-
function
|
|
1379
|
+
function wn(e, t) {
|
|
1363
1380
|
return pe(e, t);
|
|
1364
1381
|
}
|
|
1365
|
-
function
|
|
1382
|
+
function Tn(e) {
|
|
1366
1383
|
return `${e}_finery`;
|
|
1367
1384
|
}
|
|
1368
|
-
function
|
|
1385
|
+
function En({ updateQueue: e, vehicle: t, vehicleFinery: n, x: r, y: i, scale: a, angle: o }) {
|
|
1369
1386
|
let s = t.source;
|
|
1370
|
-
if (t.bounds = P(r, i, ...
|
|
1387
|
+
if (t.bounds = P(r, i, ...Z(s), a, o), t.hidden = !1, n) {
|
|
1371
1388
|
var c, l;
|
|
1372
1389
|
let o = (c = (l = F()) == null ? void 0 : l.state().roll) == null ? 0 : c, s = n.source;
|
|
1373
|
-
n.bounds = P(r, i, ...
|
|
1390
|
+
n.bounds = P(r, i, ...Z(s), a, re(o)), n.hidden = !1, e.add(() => j(n, t));
|
|
1374
1391
|
} else e.add(() => j(t));
|
|
1375
1392
|
}
|
|
1376
|
-
function
|
|
1393
|
+
function Q(e, t, n) {
|
|
1377
1394
|
return {
|
|
1378
1395
|
x: e.x + (t.x - e.x) * n,
|
|
1379
1396
|
y: e.y + (t.y - e.y) * n
|
|
1380
1397
|
};
|
|
1381
1398
|
}
|
|
1382
|
-
function
|
|
1399
|
+
function Dn(e, t) {
|
|
1383
1400
|
let n = Infinity, r = {
|
|
1384
1401
|
index: 0,
|
|
1385
1402
|
t: 0
|
|
1386
1403
|
};
|
|
1387
1404
|
for (let i = 0; i < t.length - 1; i++) {
|
|
1388
|
-
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 =
|
|
1405
|
+
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 = wn(e, Q(a, o, d));
|
|
1389
1406
|
f < n && (n = f, r = {
|
|
1390
1407
|
index: i,
|
|
1391
1408
|
t: d
|
|
@@ -1393,22 +1410,22 @@ function Tn(e, t) {
|
|
|
1393
1410
|
}
|
|
1394
1411
|
return r;
|
|
1395
1412
|
}
|
|
1396
|
-
function
|
|
1397
|
-
let r =
|
|
1413
|
+
function On(e, t, n) {
|
|
1414
|
+
let r = wn(e, t), i = Math.max(2, Math.ceil(r / n) + 1), a = [];
|
|
1398
1415
|
for (let n = 0; n < i; n++) {
|
|
1399
|
-
let r =
|
|
1416
|
+
let r = Q(e, t, n / (i - 1));
|
|
1400
1417
|
a.push(r);
|
|
1401
1418
|
}
|
|
1402
1419
|
return a;
|
|
1403
1420
|
}
|
|
1404
|
-
function
|
|
1405
|
-
if (!n || !n.length) return
|
|
1406
|
-
let r =
|
|
1407
|
-
r.index + 1 < n.length ? o(
|
|
1421
|
+
function kn(e, t, n) {
|
|
1422
|
+
if (!n || !n.length) return On(e, t, 10);
|
|
1423
|
+
let r = Dn(e, n), i = Dn(t, n), a = [], o = (e) => a.push(e);
|
|
1424
|
+
r.index + 1 < n.length ? o(Q(n[r.index], n[r.index + 1], r.t)) : o(n[r.index]);
|
|
1408
1425
|
for (let e = r.index + 1; e <= i.index && e < n.length; e++) o(n[e]);
|
|
1409
|
-
return i.index + 1 < n.length ? o(
|
|
1426
|
+
return i.index + 1 < n.length ? o(Q(n[i.index], n[i.index + 1], i.t)) : o(n[i.index]), a;
|
|
1410
1427
|
}
|
|
1411
|
-
function
|
|
1428
|
+
function An(e, t, n, r) {
|
|
1412
1429
|
if (e.length < 2) return () => {};
|
|
1413
1430
|
let i = null, a, o = [], s = 0;
|
|
1414
1431
|
for (let t = 0; t < e.length - 1; t++) {
|
|
@@ -1431,20 +1448,20 @@ function On(e, t, n, r) {
|
|
|
1431
1448
|
a && cancelAnimationFrame(a);
|
|
1432
1449
|
};
|
|
1433
1450
|
}
|
|
1434
|
-
function
|
|
1451
|
+
function jn(e) {
|
|
1435
1452
|
return `${e.x},${e.y}`;
|
|
1436
1453
|
}
|
|
1437
1454
|
var $ = /* @__PURE__ */ new WeakMap();
|
|
1438
1455
|
//#endregion
|
|
1439
1456
|
//#region src/components/Map/with-kiosk.ts
|
|
1440
|
-
function
|
|
1457
|
+
function Mn(e) {
|
|
1441
1458
|
var t;
|
|
1442
1459
|
let n = u.kioskData;
|
|
1443
1460
|
return !n || !(!y() || n.z === ((t = c.routeStore.currentRouteLayer) == null ? void 0 : t.name)) ? e : A.fromUnion(e, new A(n.x, n.y, 1, 1));
|
|
1444
1461
|
}
|
|
1445
1462
|
//#endregion
|
|
1446
1463
|
//#region src/components/Map/framing-rect.ts
|
|
1447
|
-
function
|
|
1464
|
+
function Nn() {
|
|
1448
1465
|
let e = u.canvasVisibleRectPx;
|
|
1449
1466
|
return u.shouldShiftMapRect ? u.rtl ? A.fromMinMax(e.min, {
|
|
1450
1467
|
x: e.max.x - u.overlayWidthPx,
|
|
@@ -1455,4 +1472,4 @@ function An() {
|
|
|
1455
1472
|
}, e.max) : e;
|
|
1456
1473
|
}
|
|
1457
1474
|
//#endregion
|
|
1458
|
-
export {
|
|
1475
|
+
export { Gt as a, mt as c, ut as d, rn as i, gt as l, Mn as n, Ht as o, _n as r, zt as s, Nn as t, _t as u };
|