@expofp/floorplan 3.25.2 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-DZ5RJVoX.js → Button-DI5g1CPS.js} +5 -5
- package/dist/browser/{CookieConsent-CNE-7zNI.js → CookieConsent-Qws_nQ3N.js} +7 -7
- package/dist/browser/{Debug-TDQ_xzea.js → Debug-DTNPNDds.js} +7 -7
- package/dist/browser/{Demo-A0X5mRqG.js → Demo-BDZjOBQc.js} +9 -9
- package/dist/browser/{Free-BjYK0xDM.js → Free-Cage9TkV.js} +9 -9
- package/dist/browser/{GalleryContainer-BsQuHOrj.js → GalleryContainer-EeLKgziN.js} +10 -10
- package/dist/browser/{GpsLoader-DoutzmU_.js → GpsLoader-CJMX_mJN.js} +11 -11
- package/dist/browser/{KioskStore-CRN9B487.js → KioskStore-BSza48xl.js} +24 -24
- package/dist/browser/{MaplibreAdapter-W1ZdQQ00.js → MaplibreAdapter-evVQiVQj.js} +245 -245
- package/dist/browser/{ModalContainer-BfZm0B_L.js → ModalContainer-CTKDfIyR.js} +10 -10
- package/dist/browser/{PermissionNotice-Cm6qrOC_.js → PermissionNotice-O469DuWb.js} +6 -6
- package/dist/browser/{SetKioskMode-BlmUmBkH.js → SetKioskMode-DUk4c-Gs.js} +11 -11
- package/dist/browser/{ShowKiosk-B0cj0p6h.js → ShowKiosk-DumFiuHU.js} +10 -10
- package/dist/browser/{ViewerMenuPanel-FFmV-n9m.js → ViewerMenuPanel-ByFemA_T.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-BOW3NQe7.js → add-debug-secret-listener-TLumKuSo.js} +1 -1
- package/dist/browser/{adopt-global-settings-DNTNdr3z.js → adopt-global-settings-ghJrZaU5.js} +9 -9
- package/dist/browser/{boolean-editor-Bx4HLLyu.js → boolean-editor-WIpm-pFP.js} +9 -9
- package/dist/browser/{bootIntercom-C_8HLvxg.js → bootIntercom-BR_Ehbyl.js} +2 -2
- package/dist/browser/{booth-by-xy-DgXTlV8u.js → booth-by-xy-CyZpg1Fn.js} +287 -287
- package/dist/browser/bundle.json +65 -65
- package/dist/browser/{classnames-DovQg6we.js → classnames-BmlkHMS8.js} +2 -2
- package/dist/browser/{client-CadlVOps.js → client-CIHxJZmk.js} +4 -4
- package/dist/browser/{components-BK-czcTL.js → components-7lxOhyyi.js} +1911 -1902
- package/dist/browser/{debug-overlay-vFTynZrP.js → debug-overlay-B7jCqVlX.js} +10 -10
- package/dist/browser/{debug-ui-BgSppEQg.js → debug-ui-D1ApG52e.js} +6 -6
- package/dist/browser/{dist-CkAU9dsV.js → dist-BrF5yJyj.js} +5 -5
- package/dist/browser/{dist-C1WQpGAq.js → dist-C67OkD_4.js} +6 -6
- package/dist/browser/{dist-gIYlJ33F.js → dist-CnpnDA-V.js} +3 -3
- package/dist/browser/{efp-debug-init-CGEJSmuk.js → efp-debug-init-BqEN61Fo.js} +3 -3
- package/dist/browser/{enum-editor-BZXgS3I-.js → enum-editor-Cy6VeZZd.js} +4 -4
- package/dist/browser/{es5-DoqUhz95.js → es5-DyV1fctu.js} +2 -2
- package/dist/browser/{event-not-found-Dl66nXH1.js → event-not-found-BpFVdXz_.js} +1 -1
- package/dist/browser/{exports-CK5UTqgq.js → exports-C7NzL4lf.js} +1 -1
- package/dist/browser/{favicon-BnTLQysW.js → favicon-BHscWjwp.js} +1 -1
- package/dist/browser/{fetch-retry.umd-D_tGjwEb.js → fetch-retry.umd-BytZeydp.js} +2 -2
- package/dist/browser/{flex-BCrAgMxK.js → flex-BQBLAC6l.js} +5 -5
- package/dist/browser/{floorplan.loader-DXJR9eeS.js → floorplan.loader-DkaQPhwC.js} +10 -10
- package/dist/browser/{floorplan.ready-C0sdmceF.js → floorplan.ready-DwuXZphI.js} +158 -158
- package/dist/browser/{fuse-C7evxCwi.js → fuse-DZTwJ52u.js} +2 -2
- package/dist/browser/{i18n-Cp32ZzDq.js → i18n-Bcv8xw_q.js} +5 -5
- package/dist/browser/index.js +14 -14
- package/dist/browser/{index.module-CeDH7KeK.js → index.module-BFxDVa3K.js} +4 -4
- package/dist/browser/{integrateKiosk-JZG1AZBF.js → integrateKiosk-VTNZSSfD.js} +4 -4
- package/dist/browser/{is-webview-Be9due3O.js → is-webview-CjItzxdV.js} +1 -1
- package/dist/browser/{jsx-runtime-DwNSQYOA.js → jsx-runtime-CT2c-IhD.js} +2 -2
- package/dist/browser/{kiosk-record-BMwfA16j.js → kiosk-record-v7r7q7t0.js} +1 -1
- package/dist/browser/{lib-DeQ47J_S.js → lib-DGh8lZgT.js} +3 -3
- package/dist/browser/{loadImage-DVBOry5-.js → loadImage-a_ahClbD.js} +4 -4
- package/dist/browser/{logDeviceInfo-uPn7yfGH.js → logDeviceInfo-DHfa6NcE.js} +9 -9
- package/dist/browser/{main-WTEdqNkt.js → main-sUuehgQu.js} +1 -1
- package/dist/browser/{mobx-DFFcUY2e.js → mobx-dAtztuiQ.js} +4 -4
- package/dist/browser/{optional-boolean-editor-DfcaW7-l.js → optional-boolean-editor-D43-yLO3.js} +3 -3
- package/dist/browser/{optional-enum-editor-SEARu4hs.js → optional-enum-editor-Cvn8TV-x.js} +4 -4
- package/dist/browser/{optional-string-editor-COLkp8EA.js → optional-string-editor-sY0yVw_j.js} +4 -4
- package/dist/browser/{particles.min-DHvuM5ou.js → particles.min-BD7iDSr6.js} +2 -2
- package/dist/browser/{react-BNCBBLDK.js → react-BJopqGbW.js} +2 -2
- package/dist/browser/{react-dom-ql8ZgjdB.js → react-dom-B77nDdqp.js} +3 -3
- package/dist/browser/{rolldown-runtime-D0mAPq9J.js → rolldown-runtime-BmHtYG9i.js} +1 -1
- package/dist/browser/{select-CwB0Zi7C.js → select-ByU-Ym6-.js} +10 -10
- package/dist/browser/{settings-MzAuoQZ6.js → settings-CEH1i0Pj.js} +2 -2
- package/dist/browser/{settings-item-Ca6s5CDf.js → settings-item-_PTji9Bz.js} +6 -6
- package/dist/browser/{store-B_c3r86U.js → store-Oj0dGPnb.js} +1098 -1037
- package/dist/browser/{string-editor-BjOeNcgJ.js → string-editor-DaF1t7MK.js} +4 -4
- package/dist/browser/{text-field-6Ccfbuuo.js → text-field-XRLZPyNV.js} +5 -5
- package/dist/browser/{theme-XlV0fBPc.js → theme-D0OZcdto.js} +8 -8
- package/dist/browser/{ui-BopruaHZ.js → ui-7ozfXlN3.js} +8 -8
- package/dist/browser/{useRenderTarget-CdH-VI6E.js → useRenderTarget-BG295f3e.js} +4 -4
- package/dist/esm/components/Booth/Booth.js +1 -1
- package/dist/esm/components/Event.js +1 -1
- package/dist/esm/components/Exhibitor.js +1 -1
- package/dist/esm/components/Layout.js +1 -1
- package/dist/esm/components/Speaker.js +1 -1
- package/dist/esm/floorplan.ready.js +1 -1
- package/dist/esm/services/url-sync.js +1 -1
- package/dist/esm/store/HeatmapStore.d.ts +9 -0
- package/dist/esm/store/RootStore.js +1 -1
- package/dist/esm/store/ShortcutRegistry.d.ts +14 -0
- package/dist/esm/store/ShortcutRegistry.js +1 -1
- package/dist/esm/store/providers/SessionsSubButtonProvider.d.ts +18 -0
- package/dist/esm/store/providers/SessionsSubButtonProvider.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsActions.d.ts +15 -2
- package/dist/esm/store/search-buttons/SearchButtonsActions.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsFactory.js +1 -1
- package/dist/esm/store/search-buttons/SearchButtonsStore.d.ts +3 -3
- package/dist/esm/store/search-buttons/SearchButtonsStore.js +1 -1
- package/dist/esm/tools/gtag.d.ts +1 -0
- package/dist/esm/tools/gtag.js +1 -1
- package/dist/esm/tools/telemetry.d.ts +2 -0
- package/dist/esm/tools/telemetry.js +1 -1
- package/dist/esm/tools/track-event.d.ts +26 -2
- package/dist/esm/tools/track-event.js +1 -1
- package/package.json +9 -9
|
@@ -2,21 +2,21 @@ function __vite_inject_css__(css, id, forceLightDom){ if (typeof document==='un
|
|
|
2
2
|
(function() {
|
|
3
3
|
try {
|
|
4
4
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
5
|
-
e.SENTRY_RELEASE = { id: "3.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.26.0" };
|
|
6
6
|
var t = new e.Error().stack;
|
|
7
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
7
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7259d742-99a4-46b2-b4b9-57f3b9fff5d4", e._sentryDebugIdIdentifier = "sentry-dbid-7259d742-99a4-46b2-b4b9-57f3b9fff5d4");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
11
|
-
import { X as n, Y as r, v as i, y as a } from "./i18n-
|
|
12
|
-
import { t as o } from "./react-
|
|
13
|
-
import { t as s } from "./jsx-runtime-
|
|
14
|
-
import {
|
|
15
|
-
import { t as
|
|
16
|
-
import { r as ne } from "./mobx-
|
|
17
|
-
import { a as re, c as ie, i as ae, l as oe, n as se, o as ce, r as le, s as ue, t as de } from "./booth-by-xy-
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-BmHtYG9i.js";
|
|
11
|
+
import { X as n, Y as r, v as i, y as a } from "./i18n-Bcv8xw_q.js";
|
|
12
|
+
import { t as o } from "./react-BJopqGbW.js";
|
|
13
|
+
import { t as s } from "./jsx-runtime-CT2c-IhD.js";
|
|
14
|
+
import { At as c, Bt as l, E as u, Ft as d, Gt as f, I as p, It as m, R as h, Sn as g, V as _, _t as v, c as y, cn as b, d as x, f as S, fn as C, gn as w, l as T, ln as E, mt as D, on as O, p as k, pn as A, t as j, u as M, un as N, vt as ee } from "./store-Oj0dGPnb.js";
|
|
15
|
+
import { t as te } from "./index.module-BFxDVa3K.js";
|
|
16
|
+
import { r as ne } from "./mobx-dAtztuiQ.js";
|
|
17
|
+
import { a as re, c as ie, i as ae, l as oe, n as se, o as ce, r as le, s as ue, t as de } from "./booth-by-xy-CyZpg1Fn.js";
|
|
18
18
|
//#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
19
|
-
var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(
|
|
19
|
+
var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(A(), 1), pe = (/* @__PURE__ */ t(((e, t) => {
|
|
20
20
|
(function(n, r) {
|
|
21
21
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self, n.maplibregl = r());
|
|
22
22
|
})(e, (function() {
|
|
@@ -315,17 +315,17 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
315
315
|
function M(e, t, n) {
|
|
316
316
|
return e * (1 - n) + t * n;
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function N(e) {
|
|
319
319
|
if (e <= 0) return 0;
|
|
320
320
|
if (e >= 1) return 1;
|
|
321
321
|
let t = e * e, n = t * e;
|
|
322
322
|
return 4 * (e < .5 ? n : 3 * (e - t) + n - .75);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function ee(e, t, n, r) {
|
|
325
325
|
let i = new o(e, t, n, r);
|
|
326
326
|
return (e) => i.solve(e);
|
|
327
327
|
}
|
|
328
|
-
let
|
|
328
|
+
let te = ee(.25, .1, .25, 1);
|
|
329
329
|
function ne(e, t, n) {
|
|
330
330
|
return Math.min(n, Math.max(t, e));
|
|
331
331
|
}
|
|
@@ -8315,7 +8315,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
8315
8315
|
if (r < this.begin) return a.possiblyEvaluate(e, t, n);
|
|
8316
8316
|
{
|
|
8317
8317
|
let o = (r - this.begin) / (this.end - this.begin);
|
|
8318
|
-
return this.property.interpolate(a.possiblyEvaluate(e, t, n), i,
|
|
8318
|
+
return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, N(o));
|
|
8319
8319
|
}
|
|
8320
8320
|
}
|
|
8321
8321
|
return i;
|
|
@@ -17388,7 +17388,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
17388
17388
|
(o.textFitWidth || o.textFitHeight) && (u = lf(e)), v = hh(d, 0, t[0]), b = hh(f, 0, t[1]), y = hh(d, t[0], t[2]), x = hh(f, t[1], t[3]), S = t[0] - v, w = t[1] - b, C = n - y, T = r - x;
|
|
17389
17389
|
}
|
|
17390
17390
|
let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
|
|
17391
|
-
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d),
|
|
17391
|
+
let l = _h(e.stretch - v, y, O, E), u = vh(e.fixed - S, C, e.stretch, m), d = _h(i.stretch - b, x, k, D), f = vh(i.fixed - w, T, i.stretch, h), p = _h(a.stretch - v, y, O, E), g = vh(a.fixed - S, C, a.stretch, m), _ = _h(c.stretch - b, x, k, D), A = vh(c.fixed - w, T, c.stretch, h), j = new n(l, d), M = new n(p, d), N = new n(p, _), ee = new n(l, _), te = new n(u / s, f / s), ne = new n(g / s, A / s), re = t * Math.PI / 180;
|
|
17392
17392
|
if (re) {
|
|
17393
17393
|
let e = Math.sin(re), t = Math.cos(re), n = [
|
|
17394
17394
|
t,
|
|
@@ -17396,14 +17396,14 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
17396
17396
|
e,
|
|
17397
17397
|
t
|
|
17398
17398
|
];
|
|
17399
|
-
j._matMult(n), M._matMult(n),
|
|
17399
|
+
j._matMult(n), M._matMult(n), ee._matMult(n), N._matMult(n);
|
|
17400
17400
|
}
|
|
17401
17401
|
let ie = e.stretch + e.fixed, ae = i.stretch + i.fixed;
|
|
17402
17402
|
return {
|
|
17403
17403
|
tl: j,
|
|
17404
17404
|
tr: M,
|
|
17405
|
-
bl:
|
|
17406
|
-
br:
|
|
17405
|
+
bl: ee,
|
|
17406
|
+
br: N,
|
|
17407
17407
|
tex: {
|
|
17408
17408
|
x: o.paddedRect.x + 1 + ie,
|
|
17409
17409
|
y: o.paddedRect.y + 1 + ae,
|
|
@@ -17413,7 +17413,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
17413
17413
|
writingMode: void 0,
|
|
17414
17414
|
glyphOffset: [0, 0],
|
|
17415
17415
|
sectionIndex: 0,
|
|
17416
|
-
pixelOffsetTL:
|
|
17416
|
+
pixelOffsetTL: te,
|
|
17417
17417
|
pixelOffsetBR: ne,
|
|
17418
17418
|
minFontScaleX: C / s / O,
|
|
17419
17419
|
minFontScaleY: T / s / k,
|
|
@@ -17673,9 +17673,9 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
17673
17673
|
];
|
|
17674
17674
|
}(m, n, d, t.tilePixelRatio), w = m.get("text-max-angle") / 180 * Math.PI, T = m.get("text-rotation-alignment") !== "viewport" && m.get("symbol-placement") !== "point", E = m.get("icon-rotation-alignment") === "map" && m.get("symbol-placement") !== "point", D = m.get("symbol-placement"), k = x / 2, A = m.get("icon-text-fit"), j;
|
|
17675
17675
|
i && A !== "none" && (t.allowVerticalPlacement && r.vertical && (j = uf(i, r.vertical, A, m.get("icon-text-fit-padding"), h, _)), g && (i = uf(i, g, A, m.get("icon-text-fit-padding"), h, _)));
|
|
17676
|
-
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1,
|
|
17676
|
+
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, N = (c, f) => {
|
|
17677
17677
|
f.x < 0 || f.x >= O || f.y < 0 || f.y >= O || function(t, n, r, i, a, o, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S, C, w, T) {
|
|
17678
|
-
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0,
|
|
17678
|
+
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, N = 0, ee = 0, te = -1, ne = -1, re = {}, ie = _s("");
|
|
17679
17679
|
if (t.allowVerticalPlacement && i.vertical) {
|
|
17680
17680
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
|
|
17681
17681
|
k = new yh(l, n, u, d, f, i.vertical, p, m, h, e), s && (A = new yh(l, n, u, d, f, s, _, v, h, e));
|
|
@@ -17684,7 +17684,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
17684
17684
|
let r = c.layout.get("icon-rotate").evaluate(x, {}), i = c.layout.get("icon-text-fit") !== "none", o = mh(a, r, C, i), p = s ? mh(s, r, C, i) : void 0;
|
|
17685
17685
|
O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
|
|
17686
17686
|
let m = t.iconSizeData, h = null;
|
|
17687
|
-
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w),
|
|
17687
|
+
m.kind === "source" ? (h = [128 * c.layout.get("icon-size").evaluate(x, {})], h[0] > df && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)) : m.kind === "composite" && (h = [128 * S.compositeIconSizes[0].evaluate(x, {}, w), 128 * S.compositeIconSizes[1].evaluate(x, {}, w)], (h[0] > df || h[1] > df) && ue(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`)), t.addSymbols(t.icon, o, h, b, y, x, e.ax.none, n, E.lineStartIndex, E.lineLength, -1, w), te = t.icon.placedSymbolArray.length - 1, p && (M = 4 * p.length, t.addSymbols(t.icon, p, h, b, y, x, e.ax.vertical, n, E.lineStartIndex, E.lineLength, -1, w), ne = t.icon.placedSymbolArray.length - 1);
|
|
17688
17688
|
}
|
|
17689
17689
|
let ae = Object.keys(i.horizontal);
|
|
17690
17690
|
for (let r of ae) {
|
|
@@ -17695,9 +17695,9 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
17695
17695
|
D = new yh(l, n, u, d, f, a, p, m, h, e);
|
|
17696
17696
|
}
|
|
17697
17697
|
let s = a.positionedLines.length === 1;
|
|
17698
|
-
if (
|
|
17698
|
+
if (N += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ae : [r], re, te, S, w), s) break;
|
|
17699
17699
|
}
|
|
17700
|
-
i.vertical && (
|
|
17700
|
+
i.vertical && (ee += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], re, ne, S, w));
|
|
17701
17701
|
let oe = D ? D.boxStartIndex : t.collisionBoxArray.length, se = D ? D.boxEndIndex : t.collisionBoxArray.length, ce = k ? k.boxStartIndex : t.collisionBoxArray.length, le = k ? k.boxEndIndex : t.collisionBoxArray.length, de = O ? O.boxStartIndex : t.collisionBoxArray.length, P = O ? O.boxEndIndex : t.collisionBoxArray.length, fe = A ? A.boxStartIndex : t.collisionBoxArray.length, pe = A ? A.boxEndIndex : t.collisionBoxArray.length, me = -1, he = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
|
|
17702
17702
|
me = he(D, me), me = he(k, me), me = he(O, me), me = he(A, me);
|
|
17703
17703
|
let ge = +(me > -1);
|
|
@@ -17710,7 +17710,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
17710
17710
|
}
|
|
17711
17711
|
return [r, t.length];
|
|
17712
17712
|
}(t.textAnchorOffsets, _e);
|
|
17713
|
-
t.symbolInstances.emplaceBack(n.x, n.y, re.right >= 0 ? re.right : -1, re.center >= 0 ? re.center : -1, re.left >= 0 ? re.left : -1, re.vertical || -1,
|
|
17713
|
+
t.symbolInstances.emplaceBack(n.x, n.y, re.right >= 0 ? re.right : -1, re.center >= 0 ? re.center : -1, re.left >= 0 ? re.left : -1, re.vertical || -1, te, ne, ie, oe, se, ce, le, de, P, fe, pe, u, N, ee, j, M, ge, 0, p, me, ve, ye);
|
|
17714
17714
|
}(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
|
|
17715
17715
|
S,
|
|
17716
17716
|
S,
|
|
@@ -17720,22 +17720,22 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
17720
17720
|
};
|
|
17721
17721
|
if (D === "line") for (let e of eh(n.geometry, 0, 0, O, O)) {
|
|
17722
17722
|
let n = yl(e, M), a = fh(n, x, w, r.vertical || g, i, 24, y, t.overscaling, O);
|
|
17723
|
-
for (let e of a) g && Mh(t, g.text, k, e) ||
|
|
17723
|
+
for (let e of a) g && Mh(t, g.text, k, e) || N(n, e);
|
|
17724
17724
|
}
|
|
17725
17725
|
else if (D === "line-center") {
|
|
17726
17726
|
for (let e of n.geometry) if (e.length > 1) {
|
|
17727
17727
|
let t = yl(e, M), n = dh(t, w, r.vertical || g, i, 24, y);
|
|
17728
|
-
n &&
|
|
17728
|
+
n && N(t, n);
|
|
17729
17729
|
}
|
|
17730
17730
|
} else if (n.type === "Polygon") for (let e of or(n.geometry, 0)) {
|
|
17731
17731
|
let t = xh(e, 16);
|
|
17732
|
-
|
|
17732
|
+
N(yl(e[0], M, !0), new oh(t.x, t.y, 0));
|
|
17733
17733
|
}
|
|
17734
17734
|
else if (n.type === "LineString") for (let e of n.geometry) {
|
|
17735
17735
|
let t = yl(e, M);
|
|
17736
|
-
|
|
17736
|
+
N(t, new oh(t[0].x, t[0].y, 0));
|
|
17737
17737
|
}
|
|
17738
|
-
else if (n.type === "Point") for (let e of n.geometry) for (let t of e)
|
|
17738
|
+
else if (n.type === "Point") for (let e of n.geometry) for (let t of e) N([t], new oh(t.x, t.y, 0));
|
|
17739
17739
|
}
|
|
17740
17740
|
function Ah(e, t, r, i, a, o, s, c, l, u, d, f, p, m, h) {
|
|
17741
17741
|
let g = function(e, t, r, i, a, o, s, c) {
|
|
@@ -18380,7 +18380,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
18380
18380
|
};
|
|
18381
18381
|
}, e.bn = function(e, t) {
|
|
18382
18382
|
return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
|
|
18383
|
-
}, e.bo = U, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu =
|
|
18383
|
+
}, e.bo = U, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = N, e.bv = Yt, e.bw = function(e, t, n, r, i) {
|
|
18384
18384
|
return M(r, i, ne((e - t) / (n - t), 0, 1));
|
|
18385
18385
|
}, e.bx = function(e, t, n, r) {
|
|
18386
18386
|
return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
|
|
@@ -18585,11 +18585,11 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
18585
18585
|
}, e.ch = class extends uo {}, e.ci = class extends jo {}, e.cj = function(e, t) {
|
|
18586
18586
|
return e[0] === t[0] && e[1] === t[1] && e[2] === t[2] && e[3] === t[3] && e[4] === t[4] && e[5] === t[5] && e[6] === t[6] && e[7] === t[7] && e[8] === t[8] && e[9] === t[9] && e[10] === t[10] && e[11] === t[11] && e[12] === t[12] && e[13] === t[13] && e[14] === t[14] && e[15] === t[15];
|
|
18587
18587
|
}, e.ck = function(e, t) {
|
|
18588
|
-
var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13],
|
|
18589
|
-
return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ -
|
|
18588
|
+
var n = e[0], r = e[1], i = e[2], a = e[3], o = e[4], s = e[5], c = e[6], l = e[7], u = e[8], f = e[9], p = e[10], m = e[11], h = e[12], g = e[13], _ = e[14], v = e[15], y = t[0], b = t[1], x = t[2], S = t[3], C = t[4], w = t[5], T = t[6], E = t[7], D = t[8], O = t[9], k = t[10], A = t[11], j = t[12], M = t[13], N = t[14], ee = t[15];
|
|
18589
|
+
return Math.abs(n - y) <= d * Math.max(1, Math.abs(n), Math.abs(y)) && Math.abs(r - b) <= d * Math.max(1, Math.abs(r), Math.abs(b)) && Math.abs(i - x) <= d * Math.max(1, Math.abs(i), Math.abs(x)) && Math.abs(a - S) <= d * Math.max(1, Math.abs(a), Math.abs(S)) && Math.abs(o - C) <= d * Math.max(1, Math.abs(o), Math.abs(C)) && Math.abs(s - w) <= d * Math.max(1, Math.abs(s), Math.abs(w)) && Math.abs(c - T) <= d * Math.max(1, Math.abs(c), Math.abs(T)) && Math.abs(l - E) <= d * Math.max(1, Math.abs(l), Math.abs(E)) && Math.abs(u - D) <= d * Math.max(1, Math.abs(u), Math.abs(D)) && Math.abs(f - O) <= d * Math.max(1, Math.abs(f), Math.abs(O)) && Math.abs(p - k) <= d * Math.max(1, Math.abs(p), Math.abs(k)) && Math.abs(m - A) <= d * Math.max(1, Math.abs(m), Math.abs(A)) && Math.abs(h - j) <= d * Math.max(1, Math.abs(h), Math.abs(j)) && Math.abs(g - M) <= d * Math.max(1, Math.abs(g), Math.abs(M)) && Math.abs(_ - N) <= d * Math.max(1, Math.abs(_), Math.abs(N)) && Math.abs(v - ee) <= d * Math.max(1, Math.abs(v), Math.abs(ee));
|
|
18590
18590
|
}, e.cl = function(e, t) {
|
|
18591
18591
|
return e[0] = t[0], e[1] = t[1], e[2] = t[2], e[3] = t[3], e[4] = t[4], e[5] = t[5], e[6] = t[6], e[7] = t[7], e[8] = t[8], e[9] = t[9], e[10] = t[10], e[11] = t[11], e[12] = t[12], e[13] = t[13], e[14] = t[14], e[15] = t[15], e;
|
|
18592
|
-
}, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv =
|
|
18592
|
+
}, e.cm = (e) => e.type === "circle", e.cn = (e) => e.type === "heatmap", e.co = (e) => e.type === "line", e.cp = (e) => e.type === "fill", e.cq = (e) => e.type === "fill-extrusion", e.cr = (e) => e.type === "hillshade", e.cs = (e) => e.type === "color-relief", e.ct = (e) => e.type === "background", e.cu = (e) => e.type === "custom", e.cv = ee, e.cw = function(e, t, n) {
|
|
18593
18593
|
if (t <= 0) return e;
|
|
18594
18594
|
let r = 1 / t;
|
|
18595
18595
|
return n === void 0 || Math.abs(n) < 1e-10 ? Math.round(e * r) / r : (n > 0 ? Math.ceil(e * r - 1e-9) : Math.floor(e * r + 1e-10)) / r;
|
|
@@ -18597,7 +18597,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
18597
18597
|
let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
|
|
18598
18598
|
var a, o;
|
|
18599
18599
|
return be(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
|
|
18600
|
-
}, e.cy =
|
|
18600
|
+
}, e.cy = te, e.cz = function(e, t) {
|
|
18601
18601
|
var n;
|
|
18602
18602
|
if (!Se[t]) return !1;
|
|
18603
18603
|
let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
@@ -20258,9 +20258,9 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
20258
20258
|
return Object.keys(this.active).length;
|
|
20259
20259
|
}
|
|
20260
20260
|
}
|
|
20261
|
-
let M = Math.floor(s.hardwareConcurrency / 2),
|
|
20262
|
-
function
|
|
20263
|
-
return
|
|
20261
|
+
let M = Math.floor(s.hardwareConcurrency / 2), N, ee;
|
|
20262
|
+
function te() {
|
|
20263
|
+
return N || (N = new j()), N;
|
|
20264
20264
|
}
|
|
20265
20265
|
j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
|
|
20266
20266
|
class ne {
|
|
@@ -20296,7 +20296,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
20296
20296
|
}
|
|
20297
20297
|
}
|
|
20298
20298
|
function re() {
|
|
20299
|
-
return
|
|
20299
|
+
return ee || (ee = new ne(te(), t.M), ee.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), ee;
|
|
20300
20300
|
}
|
|
20301
20301
|
function ie(e, n) {
|
|
20302
20302
|
let r = t.O();
|
|
@@ -23033,7 +23033,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
23033
23033
|
var w, A;
|
|
23034
23034
|
if (n[e.crossTileID]) return;
|
|
23035
23035
|
if (d) return void (this.placements[e.crossTileID] = new Ct(!1, !1, !1));
|
|
23036
|
-
let j = !1, M = !1,
|
|
23036
|
+
let j = !1, M = !1, N = !0, ee = null, te = {
|
|
23037
23037
|
box: null,
|
|
23038
23038
|
placeable: !1,
|
|
23039
23039
|
offscreen: null,
|
|
@@ -23051,8 +23051,8 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
23051
23051
|
return r;
|
|
23052
23052
|
}, a = (n, r) => {
|
|
23053
23053
|
if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
|
|
23054
|
-
for (let e of i.writingModes) if (e === t.ax.vertical ? (
|
|
23055
|
-
} else
|
|
23054
|
+
for (let e of i.writingModes) if (e === t.ax.vertical ? (te = r(), ne = te) : te = n(), te != null && te.placeable) break;
|
|
23055
|
+
} else te = n();
|
|
23056
23056
|
}, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
|
|
23057
23057
|
if (d === l) {
|
|
23058
23058
|
let r = (t, n) => {
|
|
@@ -23065,7 +23065,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
23065
23065
|
box: null,
|
|
23066
23066
|
offscreen: null
|
|
23067
23067
|
};
|
|
23068
|
-
})), n(
|
|
23068
|
+
})), n(te == null ? void 0 : te.placeable);
|
|
23069
23069
|
} else {
|
|
23070
23070
|
let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
|
|
23071
23071
|
let f = t.x2 - t.x1, h = t.y2 - t.y1, g = e.textBoxScale, v = C && y === "never" ? n : null, b = null, w = _ === "never" ? 1 : 2, T = "never";
|
|
@@ -23075,7 +23075,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
23075
23075
|
let r = i.textAnchorOffsets.get(n);
|
|
23076
23076
|
if (p && r.textAnchor !== p) continue;
|
|
23077
23077
|
let l = this.attemptAnchorPlacement(r, t, f, h, g, x, S, u, D, c, m, T, e, i, a, o, s, v, O);
|
|
23078
|
-
if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0,
|
|
23078
|
+
if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, ee = l.shift, b;
|
|
23079
23079
|
}
|
|
23080
23080
|
p ? p = null : T = _;
|
|
23081
23081
|
}
|
|
@@ -23088,33 +23088,33 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
23088
23088
|
};
|
|
23089
23089
|
a((() => h(le, f.iconBox, t.ax.horizontal)), (() => {
|
|
23090
23090
|
let n = f.verticalTextBox;
|
|
23091
|
-
return i.allowVerticalPlacement && !(
|
|
23091
|
+
return i.allowVerticalPlacement && !(te != null && te.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
|
|
23092
23092
|
box: null,
|
|
23093
23093
|
occluded: !0,
|
|
23094
23094
|
offscreen: null
|
|
23095
23095
|
};
|
|
23096
|
-
})),
|
|
23097
|
-
let g = n(
|
|
23096
|
+
})), te && (j = te.placeable, N = te.offscreen);
|
|
23097
|
+
let g = n(te == null ? void 0 : te.placeable);
|
|
23098
23098
|
if (!j && this.prevPlacement) {
|
|
23099
23099
|
let t = this.prevPlacement.variableOffsets[e.crossTileID];
|
|
23100
23100
|
t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
|
|
23101
23101
|
}
|
|
23102
23102
|
}
|
|
23103
23103
|
}
|
|
23104
|
-
if (re =
|
|
23104
|
+
if (re = te, j = re == null ? void 0 : re.placeable, N = re == null ? void 0 : re.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
|
|
23105
23105
|
let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
|
|
23106
|
-
ie = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ie.circles.length && ie.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ie.circles.length > 0 && !ie.collisionDetected,
|
|
23106
|
+
ie = this.collisionIndex.placeCollisionCircles(_, n, i.lineVertexArray, i.glyphOffsetArray, s, c, l, r, S, m.predicate, e.collisionCircleDiameter, u, o, O), ie.circles.length && ie.collisionDetected && !r && t.w("Collisions detected, but collision boxes are not shown"), j = v || ie.circles.length > 0 && !ie.collisionDetected, N && (N = ie.offscreen);
|
|
23107
23107
|
}
|
|
23108
23108
|
if (f.iconFeatureIndex && (ce = f.iconFeatureIndex), f.iconBox) {
|
|
23109
|
-
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C &&
|
|
23110
|
-
ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable),
|
|
23109
|
+
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && ee ? ee : void 0, k);
|
|
23110
|
+
ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable), N && (N = ae.offscreen);
|
|
23111
23111
|
}
|
|
23112
23112
|
let ue = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, de = g || e.numIconVertices === 0;
|
|
23113
23113
|
ue || de ? de ? ue || M && (M = j) : j = M && j : M = j = M && j;
|
|
23114
23114
|
let P = M && ae.placeable;
|
|
23115
23115
|
if (j && re.placeable && this.collisionIndex.insertCollisionBox(re.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, ne && ne.placeable && se ? se : oe, m.ID), P && this.collisionIndex.insertCollisionBox(ae.box, y, a.get("icon-ignore-placement"), i.bucketInstanceId, ce, m.ID), ie && j && this.collisionIndex.insertCollisionCircles(ie.circles, _, a.get("text-ignore-placement"), i.bucketInstanceId, oe, m.ID), r && this.storeCollisionData(i.bucketInstanceId, b, f, re, ae, ie), e.crossTileID === 0) throw Error("symbolInstance.crossTileID can't be 0");
|
|
23116
23116
|
if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
|
|
23117
|
-
this.placements[e.crossTileID] = new Ct((j || T) && !(re != null && re.occluded), (M || E) && !(ae != null && ae.occluded),
|
|
23117
|
+
this.placements[e.crossTileID] = new Ct((j || T) && !(re != null && re.occluded), (M || E) && !(ae != null && ae.occluded), N || i.justReloaded), n[e.crossTileID] = !0;
|
|
23118
23118
|
};
|
|
23119
23119
|
if (w) {
|
|
23120
23120
|
if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
|
|
@@ -26522,7 +26522,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
26522
26522
|
let t = this.tileManagers[e].getSource().type;
|
|
26523
26523
|
t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
|
|
26524
26524
|
}
|
|
26525
|
-
}, this.map = e, this.dispatcher = new ne(
|
|
26525
|
+
}, this.map = e, this.dispatcher = new ne(te(), e._getMapId()), this.dispatcher.registerMessageHandler("GG", ((e, t) => this.getGlyphs(e, t))), this.dispatcher.registerMessageHandler("GI", ((e, t) => this.getImages(e, t))), this.dispatcher.registerMessageHandler("GDA", ((e, t) => this.getDashes(e, t))), this.imageManager = new _(), this.imageManager.setEventedParent(this);
|
|
26526
26526
|
let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
|
|
26527
26527
|
this.glyphManager = new C(e._requestManager, n.localIdeographFontFamily, a), this.lineAtlas = new k(256, 512), this.crossTileSymbolIndex = new Bt(), this._setInitialValues(), this._resetUpdates(), this.dispatcher.broadcast("SR", t.bO()), Oe().on(Te, this._rtlPluginLoaded), this.on("data", ((e) => {
|
|
26528
26528
|
if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
|
|
@@ -28685,11 +28685,11 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
28685
28685
|
if (!l) continue;
|
|
28686
28686
|
let d = a ? l.text : l.icon;
|
|
28687
28687
|
if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
|
|
28688
|
-
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, ee, te,
|
|
28689
|
-
if (a)
|
|
28688
|
+
let f = d.programConfigurations.get(r.id), h = a || l.sdfIcons, g = a ? l.textSizeData : l.iconSizeData, T = b || v.pitch !== 0, k = e.useProgram(_i(h, a, l), f), A = t.aw(g, v.zoom), j = (m = e.style.map.terrain) == null ? void 0 : m.getTerrainData(c), M, N, ee, te, ne = [0, 0], re = null;
|
|
28689
|
+
if (a) N = i.glyphAtlasTexture, ee = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, re = i.imageAtlasTexture, te = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
|
|
28690
28690
|
else {
|
|
28691
28691
|
let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
|
|
28692
|
-
|
|
28692
|
+
N = i.imageAtlasTexture, ee = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
|
|
28693
28693
|
}
|
|
28694
28694
|
let ie = t.aK(i, 1, e.transform.zoom), ae = et(y, e.transform, ie), oe = tt(b, y, e.transform, ie), se = t.aL(v, i, o, s), ce = v.getProjectionData({
|
|
28695
28695
|
overscaledTileID: c,
|
|
@@ -28709,10 +28709,10 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
28709
28709
|
buffers: d,
|
|
28710
28710
|
uniformValues: pe,
|
|
28711
28711
|
projectionData: ce,
|
|
28712
|
-
atlasTexture:
|
|
28712
|
+
atlasTexture: N,
|
|
28713
28713
|
atlasTextureIcon: re,
|
|
28714
|
-
atlasInterpolation:
|
|
28715
|
-
atlasInterpolationIcon:
|
|
28714
|
+
atlasInterpolation: ee,
|
|
28715
|
+
atlasInterpolationIcon: te,
|
|
28716
28716
|
isSDF: h,
|
|
28717
28717
|
hasHalo: fe
|
|
28718
28718
|
};
|
|
@@ -33715,8 +33715,8 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
33715
33715
|
Ce[e] = t;
|
|
33716
33716
|
})(e, n);
|
|
33717
33717
|
})), e.clearPrewarmedResources = function() {
|
|
33718
|
-
let e =
|
|
33719
|
-
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A),
|
|
33718
|
+
let e = N;
|
|
33719
|
+
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), N = null) : console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"));
|
|
33720
33720
|
}, e.createTileMesh = fn, e.getGlobalDispatcher = re, e.getMaxParallelImageRequests = function() {
|
|
33721
33721
|
return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
|
|
33722
33722
|
}, e.getRTLTextPluginStatus = function() {
|
|
@@ -33732,7 +33732,7 @@ var P = /* @__PURE__ */ e(o(), 1), fe = /* @__PURE__ */ e(S(), 1), pe = (/* @__P
|
|
|
33732
33732
|
}, e.isTimeFrozen = function() {
|
|
33733
33733
|
return c.isFrozen();
|
|
33734
33734
|
}, e.now = l, e.prewarm = function() {
|
|
33735
|
-
|
|
33735
|
+
te().acquire(A);
|
|
33736
33736
|
}, e.restoreNow = function() {
|
|
33737
33737
|
c.restoreNow();
|
|
33738
33738
|
}, e.setMaxParallelImageRequests = function(e) {
|
|
@@ -33933,12 +33933,12 @@ var Me = /*#__PURE__*/ ke(Ae, 9, 1), Ne = /*#__PURE__*/ ke(je, 5, 1), Pe = funct
|
|
|
33933
33933
|
var y = j >> 4;
|
|
33934
33934
|
if (y < 16) T[D++] = y;
|
|
33935
33935
|
else {
|
|
33936
|
-
var M = 0,
|
|
33937
|
-
for (y == 16 ? (
|
|
33936
|
+
var M = 0, N = 0;
|
|
33937
|
+
for (y == 16 ? (N = 3 + Fe(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (N = 3 + Fe(e, d, 7), d += 3) : y == 18 && (N = 11 + Fe(e, d, 127), d += 7); N--;) T[D++] = M;
|
|
33938
33938
|
}
|
|
33939
33939
|
}
|
|
33940
|
-
var
|
|
33941
|
-
h = Pe(
|
|
33940
|
+
var ee = T.subarray(0, S), te = T.subarray(S);
|
|
33941
|
+
h = Pe(ee), g = Pe(te), p = ke(ee, h, 1), m = ke(te, g, 1);
|
|
33942
33942
|
} else ze(1);
|
|
33943
33943
|
if (d > _) {
|
|
33944
33944
|
c && ze(0);
|
|
@@ -33964,10 +33964,10 @@ var Me = /*#__PURE__*/ ke(Ae, 9, 1), Ne = /*#__PURE__*/ ke(je, 5, 1), Pe = funct
|
|
|
33964
33964
|
}
|
|
33965
33965
|
var ce = m[Ie(e, d) & re], le = ce >> 4;
|
|
33966
33966
|
ce || ze(3), d += ce & 15;
|
|
33967
|
-
var
|
|
33967
|
+
var te = Te[le];
|
|
33968
33968
|
if (le > 3) {
|
|
33969
33969
|
var se = ve[le];
|
|
33970
|
-
|
|
33970
|
+
te += Ie(e, d) & (1 << se) - 1, d += se;
|
|
33971
33971
|
}
|
|
33972
33972
|
if (d > _) {
|
|
33973
33973
|
c && ze(0);
|
|
@@ -33975,11 +33975,11 @@ var Me = /*#__PURE__*/ ke(Ae, 9, 1), Ne = /*#__PURE__*/ ke(je, 5, 1), Pe = funct
|
|
|
33975
33975
|
}
|
|
33976
33976
|
s && l(f + 131072);
|
|
33977
33977
|
var ue = f + oe;
|
|
33978
|
-
if (f <
|
|
33979
|
-
var de = a -
|
|
33978
|
+
if (f < te) {
|
|
33979
|
+
var de = a - te, P = Math.min(te, ue);
|
|
33980
33980
|
for (de + f < 0 && ze(3); f < P; ++f) n[f] = r[de + f];
|
|
33981
33981
|
}
|
|
33982
|
-
for (; f < ue; ++f) n[f] = n[f -
|
|
33982
|
+
for (; f < ue; ++f) n[f] = n[f - te];
|
|
33983
33983
|
}
|
|
33984
33984
|
}
|
|
33985
33985
|
t.l = p, t.p = ie, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
|
|
@@ -34694,7 +34694,7 @@ function Ht() {
|
|
|
34694
34694
|
return e;
|
|
34695
34695
|
}
|
|
34696
34696
|
function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOptions: i, onRendererReady: a, onMapDimLayerReady: o, onMapLoadError: s }) {
|
|
34697
|
-
let c = (0, P.useRef)(null),
|
|
34697
|
+
let c = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(a), p = (0, P.useRef)(o), m = (0, P.useRef)(s), h = (0, P.useRef)({
|
|
34698
34698
|
sceneDef: e,
|
|
34699
34699
|
geoConfig: t,
|
|
34700
34700
|
staticTransform: n,
|
|
@@ -34702,18 +34702,18 @@ function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOp
|
|
|
34702
34702
|
mapOptions: i
|
|
34703
34703
|
});
|
|
34704
34704
|
return (0, P.useEffect)(() => {
|
|
34705
|
-
|
|
34705
|
+
f.current = a, p.current = o, m.current = s;
|
|
34706
34706
|
}), (0, P.useEffect)(() => {
|
|
34707
34707
|
var e, t;
|
|
34708
34708
|
if (!c.current) return;
|
|
34709
|
-
let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions: o } =
|
|
34710
|
-
|
|
34711
|
-
let
|
|
34712
|
-
|
|
34709
|
+
let { sceneDef: n, geoConfig: r, staticTransform: i, tileSource: a, mapOptions: o } = h.current, s = !1, g = { ...n };
|
|
34710
|
+
g.rootLayer = { ...n.rootLayer };
|
|
34711
|
+
let _ = n.rootLayer.children;
|
|
34712
|
+
g.rootLayer.children = _.filter((e) => {
|
|
34713
34713
|
var t;
|
|
34714
34714
|
return (e == null || (t = e.name) == null ? void 0 : t.toString().toLowerCase()) !== "areamap";
|
|
34715
|
-
}),
|
|
34716
|
-
let
|
|
34715
|
+
}), g.background = void 0, g.staticTransform = i;
|
|
34716
|
+
let v = Ht(), y = r.bounds ? {
|
|
34717
34717
|
bounds: r.bounds,
|
|
34718
34718
|
fitBoundsOptions: {
|
|
34719
34719
|
padding: r.fitPadding,
|
|
@@ -34722,9 +34722,9 @@ function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOp
|
|
|
34722
34722
|
} : {
|
|
34723
34723
|
center: r.center,
|
|
34724
34724
|
zoom: r.zoom
|
|
34725
|
-
},
|
|
34725
|
+
}, b = Ot(a.style, a.offline ? (e) => Tt(v, e) : void 0), x = new pe.Map({
|
|
34726
34726
|
container: c.current,
|
|
34727
|
-
...
|
|
34727
|
+
...y,
|
|
34728
34728
|
bearing: r.bearing,
|
|
34729
34729
|
pitch: (e = o == null ? void 0 : o.pitch) == null ? 30 : e,
|
|
34730
34730
|
maxPitch: (t = o == null ? void 0 : o.maxPitch) == null ? 70 : t,
|
|
@@ -34734,47 +34734,47 @@ function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOp
|
|
|
34734
34734
|
bearingSnap: 0,
|
|
34735
34735
|
canvasContextAttributes: { antialias: !0 }
|
|
34736
34736
|
});
|
|
34737
|
-
r.zoomAdjustment &&
|
|
34737
|
+
r.zoomAdjustment && x.jumpTo({ zoom: x.getZoom() + r.zoomAdjustment }), u.current = x, x.once("error", (e) => {
|
|
34738
34738
|
var t, n;
|
|
34739
|
-
|
|
34739
|
+
x.isStyleLoaded() || (t = m.current) == null || t.call(m, (n = e == null ? void 0 : e.error) == null ? e : n);
|
|
34740
34740
|
});
|
|
34741
|
-
let
|
|
34741
|
+
let S = (e) => {
|
|
34742
34742
|
let t = e == null ? void 0 : e.id;
|
|
34743
|
-
!t ||
|
|
34743
|
+
!t || x.hasImage(t) || x.addImage(t, {
|
|
34744
34744
|
width: 1,
|
|
34745
34745
|
height: 1,
|
|
34746
34746
|
data: /* @__PURE__ */ new Uint8Array(4)
|
|
34747
34747
|
});
|
|
34748
34748
|
};
|
|
34749
|
-
|
|
34750
|
-
let
|
|
34749
|
+
x.on("styleimagemissing", S);
|
|
34750
|
+
let C = At({ requestFrame: () => x.triggerRepaint() }), w = {
|
|
34751
34751
|
id: Pt,
|
|
34752
34752
|
type: "custom",
|
|
34753
34753
|
renderingMode: "3d",
|
|
34754
34754
|
onAdd(e, t) {
|
|
34755
34755
|
var n;
|
|
34756
34756
|
if (s) return;
|
|
34757
|
-
let r = new
|
|
34758
|
-
canvas:
|
|
34757
|
+
let r = new l({
|
|
34758
|
+
canvas: x.getCanvas(),
|
|
34759
34759
|
gl: t
|
|
34760
34760
|
});
|
|
34761
34761
|
if (s) {
|
|
34762
34762
|
r.dispose();
|
|
34763
34763
|
return;
|
|
34764
34764
|
}
|
|
34765
|
-
r.init(
|
|
34765
|
+
r.init(g), d.current = r, (n = f.current) == null || n.call(f, r, x, g, () => x.triggerRepaint());
|
|
34766
34766
|
},
|
|
34767
34767
|
render(e, t) {
|
|
34768
|
-
if (!
|
|
34768
|
+
if (!d.current || d.current.isDisposed) return;
|
|
34769
34769
|
let n = U(t == null ? e : t);
|
|
34770
|
-
n && (
|
|
34770
|
+
n && (d.current.render(n), C(d.current));
|
|
34771
34771
|
}
|
|
34772
|
-
},
|
|
34772
|
+
}, T = () => {
|
|
34773
34773
|
var e;
|
|
34774
|
-
Vt(
|
|
34774
|
+
Vt(x), x.getSource(Nt) || x.addSource(Nt, {
|
|
34775
34775
|
type: "geojson",
|
|
34776
34776
|
data: Lt
|
|
34777
|
-
}),
|
|
34777
|
+
}), x.getLayer("expofp-map-dim") || x.addLayer({
|
|
34778
34778
|
id: Mt,
|
|
34779
34779
|
type: "fill",
|
|
34780
34780
|
source: Nt,
|
|
@@ -34786,11 +34786,11 @@ function W({ sceneDef: e, geoConfig: t, staticTransform: n, tileSource: r, mapOp
|
|
|
34786
34786
|
delay: 0
|
|
34787
34787
|
}
|
|
34788
34788
|
}
|
|
34789
|
-
}), (e =
|
|
34789
|
+
}), (e = p.current) == null || e.call(p, x), x.addLayer(w);
|
|
34790
34790
|
};
|
|
34791
|
-
return
|
|
34791
|
+
return x.on("style.load", T), x.setStyle(a.style, b ? { transformStyle: b } : void 0), () => {
|
|
34792
34792
|
var e;
|
|
34793
|
-
s = !0,
|
|
34793
|
+
s = !0, x.off("style.load", T), x.off("styleimagemissing", S), (e = d.current) == null || e.dispose(), d.current = null, x.remove(), u.current = null;
|
|
34794
34794
|
};
|
|
34795
34795
|
}, []), /* @__PURE__ */ (0, jt.jsx)("div", {
|
|
34796
34796
|
ref: c,
|
|
@@ -34822,32 +34822,32 @@ function Zt(e, t, n) {
|
|
|
34822
34822
|
}
|
|
34823
34823
|
function Qt(e, t) {
|
|
34824
34824
|
let n = [
|
|
34825
|
-
|
|
34826
|
-
|
|
34827
|
-
|
|
34828
|
-
|
|
34825
|
+
p(e.min.x, e.min.y, t),
|
|
34826
|
+
p(e.max.x, e.min.y, t),
|
|
34827
|
+
p(e.max.x, e.max.y, t),
|
|
34828
|
+
p(e.min.x, e.max.y, t)
|
|
34829
34829
|
], r = n.map(([e]) => e), i = n.map(([, e]) => e);
|
|
34830
34830
|
return [[Math.min(...r), Math.min(...i)], [Math.max(...r), Math.max(...i)]];
|
|
34831
34831
|
}
|
|
34832
34832
|
var $t = 512;
|
|
34833
34833
|
function en(e, t, n, r, i) {
|
|
34834
34834
|
let a = [
|
|
34835
|
-
|
|
34836
|
-
|
|
34837
|
-
|
|
34838
|
-
|
|
34835
|
+
p(e.min.x, e.min.y, t),
|
|
34836
|
+
p(e.max.x, e.min.y, t),
|
|
34837
|
+
p(e.max.x, e.max.y, t),
|
|
34838
|
+
p(e.min.x, e.max.y, t)
|
|
34839
34839
|
].map(([e, t]) => pe.MercatorCoordinate.fromLngLat({
|
|
34840
34840
|
lng: e,
|
|
34841
34841
|
lat: t
|
|
34842
34842
|
}));
|
|
34843
34843
|
if (!a.every(({ x: e, y: t }) => Number.isFinite(e) && Number.isFinite(t))) return null;
|
|
34844
|
-
let o = -n * Math.PI / 180, s = Math.cos(o), c = Math.sin(o), l = a.map(({ x: e, y: t }) => e * s - t * c),
|
|
34845
|
-
if (
|
|
34844
|
+
let o = -n * Math.PI / 180, s = Math.cos(o), c = Math.sin(o), l = a.map(({ x: e, y: t }) => e * s - t * c), u = a.map(({ x: e, y: t }) => e * c + t * s), d = Math.max(...l) - Math.min(...l), f = Math.max(...u) - Math.min(...u);
|
|
34845
|
+
if (d <= 0 || f <= 0) return null;
|
|
34846
34846
|
let m = r.width - i.left - i.right, h = r.height - i.top - i.bottom;
|
|
34847
34847
|
if (m <= 0 || h <= 0) return null;
|
|
34848
|
-
let g = Math.min(m / (
|
|
34848
|
+
let g = Math.min(m / (d * $t), h / (f * $t));
|
|
34849
34849
|
if (!(g > 0)) return null;
|
|
34850
|
-
let _ = $t * g, v = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / _, y = (Math.min(...
|
|
34850
|
+
let _ = $t * g, v = (Math.min(...l) + Math.max(...l)) / 2 - (i.left - i.right) / 2 / _, y = (Math.min(...u) + Math.max(...u)) / 2 - (i.top - i.bottom) / 2 / _, { lng: b, lat: x } = new pe.MercatorCoordinate(v * s + y * c, -v * c + y * s).toLngLat();
|
|
34851
34851
|
return {
|
|
34852
34852
|
center: [b, x],
|
|
34853
34853
|
zoom: Math.log2(g)
|
|
@@ -34862,7 +34862,7 @@ function tn(e, t) {
|
|
|
34862
34862
|
};
|
|
34863
34863
|
}
|
|
34864
34864
|
function nn(e = 0) {
|
|
34865
|
-
let t =
|
|
34865
|
+
let t = T.canvasVisibleRectPx, n = T.screenSize;
|
|
34866
34866
|
return t ? {
|
|
34867
34867
|
top: Math.max(0, t.min.y) + e,
|
|
34868
34868
|
bottom: Math.max(0, n.height - t.max.y) + e,
|
|
@@ -34881,8 +34881,8 @@ function rn(e, t, n) {
|
|
|
34881
34881
|
}
|
|
34882
34882
|
function an() {
|
|
34883
34883
|
var e, t;
|
|
34884
|
-
if (!(!(
|
|
34885
|
-
let n =
|
|
34884
|
+
if (!(!(_ == null || (e = _.properties) == null) && e.config)) return null;
|
|
34885
|
+
let n = _.properties.config, r = (n.p0.lng + n.p2.lng) / 2, i = (n.p0.lat + n.p2.lat) / 2, a = h(n.p0, n.p2), o = Number.isFinite(a) ? a : (t = n.bearing) == null ? 0 : t;
|
|
34886
34886
|
return {
|
|
34887
34887
|
center: [r, i],
|
|
34888
34888
|
bearing: o,
|
|
@@ -34943,9 +34943,9 @@ function on(e, t, n, r = {}) {
|
|
|
34943
34943
|
}
|
|
34944
34944
|
//#endregion
|
|
34945
34945
|
//#region src/components/Maplibre/useCameraReactions.ts
|
|
34946
|
-
var G =
|
|
34946
|
+
var G = T, sn = 15, K = 24;
|
|
34947
34947
|
function q(e) {
|
|
34948
|
-
return M(e,
|
|
34948
|
+
return M(e, S(e, b));
|
|
34949
34949
|
}
|
|
34950
34950
|
function cn(e, t) {
|
|
34951
34951
|
return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
|
|
@@ -34953,9 +34953,9 @@ function cn(e, t) {
|
|
|
34953
34953
|
function J(e, t, n) {
|
|
34954
34954
|
var r;
|
|
34955
34955
|
if (n.length !== 1) return !1;
|
|
34956
|
-
let i = (r = n[0]) == null ? void 0 : r.id, a =
|
|
34956
|
+
let i = (r = n[0]) == null ? void 0 : r.id, a = y.poiMarkerStore.markers.find((e) => e.boothId === i);
|
|
34957
34957
|
if (!a) return !1;
|
|
34958
|
-
let o =
|
|
34958
|
+
let o = p(a.center.x, a.center.y, t.gpsConfig);
|
|
34959
34959
|
return rn(e, o, nn(K)) || e.easeTo({
|
|
34960
34960
|
center: o,
|
|
34961
34961
|
zoom: cn(e, sn),
|
|
@@ -34987,44 +34987,44 @@ function ln(e, t, n) {
|
|
|
34987
34987
|
duration: 500
|
|
34988
34988
|
}), G.zoomBy = null);
|
|
34989
34989
|
}), ne(() => [
|
|
34990
|
-
|
|
34991
|
-
|
|
34992
|
-
|
|
34990
|
+
T.moveToLocation,
|
|
34991
|
+
y.maplibreStore.cameraPort,
|
|
34992
|
+
y.routeStore.currentPosition
|
|
34993
34993
|
], ([n]) => {
|
|
34994
34994
|
if (!n) return;
|
|
34995
|
-
let r = e.current, i =
|
|
34995
|
+
let r = e.current, i = y.routeStore.currentPosition;
|
|
34996
34996
|
if (!i) {
|
|
34997
|
-
|
|
34997
|
+
T.moveToLocation = !1;
|
|
34998
34998
|
return;
|
|
34999
34999
|
}
|
|
35000
35000
|
if (!r) return;
|
|
35001
35001
|
let { lng: a, lat: o } = i, s = typeof a == "number" && Number.isFinite(a) && typeof o == "number" && Number.isFinite(o);
|
|
35002
|
-
|
|
35002
|
+
T.moveToLocation = !1;
|
|
35003
35003
|
let c;
|
|
35004
35004
|
if (s) c = [a, o];
|
|
35005
35005
|
else {
|
|
35006
35006
|
if (!t) return;
|
|
35007
|
-
c =
|
|
35007
|
+
c = p(i.x, i.y, t.gpsConfig);
|
|
35008
35008
|
}
|
|
35009
35009
|
r.flyTo({
|
|
35010
35010
|
center: c,
|
|
35011
35011
|
animate: !0,
|
|
35012
35012
|
duration: 1e3
|
|
35013
35013
|
});
|
|
35014
|
-
}), ne(() =>
|
|
35014
|
+
}), ne(() => T.centerMap, (r) => {
|
|
35015
35015
|
let i = e.current;
|
|
35016
35016
|
if (!(!r || !i || !t)) {
|
|
35017
|
-
if (!(
|
|
35018
|
-
let { rect: e } =
|
|
35019
|
-
layerViewbox:
|
|
35020
|
-
explicitArea:
|
|
35021
|
-
layerRectangle:
|
|
35017
|
+
if (!(T.list.type === "search" && !T.list.text)) {
|
|
35018
|
+
let { rect: e } = k({
|
|
35019
|
+
layerViewbox: y.layerStore.viewboxRectangle,
|
|
35020
|
+
explicitArea: E ? b : null,
|
|
35021
|
+
layerRectangle: y.layerStore.rectangle,
|
|
35022
35022
|
sceneDef: n,
|
|
35023
|
-
svgArea:
|
|
35023
|
+
svgArea: b
|
|
35024
35024
|
});
|
|
35025
35025
|
on(i, e, t);
|
|
35026
35026
|
}
|
|
35027
|
-
|
|
35027
|
+
T.centerMap = !1;
|
|
35028
35028
|
}
|
|
35029
35029
|
});
|
|
35030
35030
|
}
|
|
@@ -35074,19 +35074,19 @@ function xn(e, t, n = !1) {
|
|
|
35074
35074
|
}
|
|
35075
35075
|
function Sn() {
|
|
35076
35076
|
var e, t, n;
|
|
35077
|
-
let r = (e = (t =
|
|
35077
|
+
let r = (e = (t = y.fp) == null ? void 0 : t.maplibre) == null ? window.__efpMaplibre : e;
|
|
35078
35078
|
return r != null && r.style ? {
|
|
35079
35079
|
style: r.style,
|
|
35080
35080
|
offline: r.offline
|
|
35081
35081
|
} : r != null && r.styleUrl ? {
|
|
35082
35082
|
style: r.styleUrl,
|
|
35083
35083
|
offline: r.offline
|
|
35084
|
-
} : pn(
|
|
35084
|
+
} : pn(_ == null || (n = _.properties) == null || (n = n.config) == null ? void 0 : n.style, N.backgroundColor) === "dark" ? hn : mn;
|
|
35085
35085
|
}
|
|
35086
35086
|
//#endregion
|
|
35087
35087
|
//#region src/components/Maplibre/useDimming.ts
|
|
35088
35088
|
function Cn() {
|
|
35089
|
-
return
|
|
35089
|
+
return T.dimmed && !y.poiMarkerStore.dimSuppressed;
|
|
35090
35090
|
}
|
|
35091
35091
|
function wn(e, t) {
|
|
35092
35092
|
let n = (0, P.useRef)(t);
|
|
@@ -35157,7 +35157,7 @@ function Dn(e) {
|
|
|
35157
35157
|
//#region src/components/Maplibre/useLayerVisibilitySync.ts
|
|
35158
35158
|
function On(e, t, n) {
|
|
35159
35159
|
let r = (0, P.useRef)(null), i = (0, P.useRef)(null);
|
|
35160
|
-
ne(() =>
|
|
35160
|
+
ne(() => y.layerStore.layers.map((e) => `${e.name}:${+!!e.visible}`), () => {
|
|
35161
35161
|
var a, o;
|
|
35162
35162
|
let s = e.scene;
|
|
35163
35163
|
if (!s) return;
|
|
@@ -35166,7 +35166,7 @@ function On(e, t, n) {
|
|
|
35166
35166
|
defsByName: En(s.rootLayer)
|
|
35167
35167
|
});
|
|
35168
35168
|
let c = r.current.defsByName, l = [];
|
|
35169
|
-
for (let e of
|
|
35169
|
+
for (let e of y.layerStore.layers) {
|
|
35170
35170
|
let t = c.get(e.name);
|
|
35171
35171
|
if (t != null && t.length) for (let n of t) {
|
|
35172
35172
|
let t = !e.visible;
|
|
@@ -35174,7 +35174,7 @@ function On(e, t, n) {
|
|
|
35174
35174
|
}
|
|
35175
35175
|
}
|
|
35176
35176
|
l.length && e.update(...l);
|
|
35177
|
-
let u =
|
|
35177
|
+
let u = y.layerStore.layers.find((e) => e.visible && !e.frozen && !e.rootParent && !e.pathway);
|
|
35178
35178
|
if (!u || i.current === u.name) return;
|
|
35179
35179
|
i.current = u.name;
|
|
35180
35180
|
let d = (o = u.viewbox) == null ? u.rect : o;
|
|
@@ -35199,22 +35199,22 @@ var kn = null, An = {
|
|
|
35199
35199
|
function Bn(e, t, a) {
|
|
35200
35200
|
(0, P.useEffect)(() => {
|
|
35201
35201
|
var o;
|
|
35202
|
-
if (!
|
|
35202
|
+
if (!v()) return;
|
|
35203
35203
|
let s = t.current;
|
|
35204
35204
|
if (!e || !s || !a) return;
|
|
35205
|
-
let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(),
|
|
35206
|
-
s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio:
|
|
35205
|
+
let { gpsConfig: c } = a, l = /* @__PURE__ */ new Set(), u = window.devicePixelRatio || 1, d = f(36, u, ((o = N.colors) == null || (o = o.booths) == null ? void 0 : o.selected) || "#3b6ef5"), m = (e) => p(e.center.x, e.center.y, c), h = (e, t) => {
|
|
35206
|
+
s.hasImage(e) && s.removeImage(e), s.addImage(e, t, { pixelRatio: u }), l.add(e);
|
|
35207
35207
|
}, g = (e) => {
|
|
35208
|
-
let t =
|
|
35208
|
+
let t = y.poiMarkerStore.markers, n = new Set(t.map((e) => zn(e.boothId)));
|
|
35209
35209
|
n.add(In);
|
|
35210
35210
|
for (let e of [...l]) n.has(e) || (s.hasImage(e) && s.removeImage(e), l.delete(e));
|
|
35211
35211
|
for (let n of t) {
|
|
35212
35212
|
let t = zn(n.boothId);
|
|
35213
35213
|
(e || !l.has(t)) && h(t, n.icon);
|
|
35214
35214
|
}
|
|
35215
|
-
l.has(In) || h(In,
|
|
35216
|
-
},
|
|
35217
|
-
let e =
|
|
35215
|
+
l.has(In) || h(In, d);
|
|
35216
|
+
}, _ = () => {
|
|
35217
|
+
let e = y.poiMarkerStore.selectedMarkerId, t = y.poiMarkerStore.outdoorFilter, n = !t.active, r = y.poiMarkerStore.markers;
|
|
35218
35218
|
return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
|
|
35219
35219
|
cluster: n,
|
|
35220
35220
|
data: {
|
|
@@ -35223,7 +35223,7 @@ function Bn(e, t, a) {
|
|
|
35223
35223
|
type: "Feature",
|
|
35224
35224
|
geometry: {
|
|
35225
35225
|
type: "Point",
|
|
35226
|
-
coordinates:
|
|
35226
|
+
coordinates: m(t)
|
|
35227
35227
|
},
|
|
35228
35228
|
properties: {
|
|
35229
35229
|
boothId: t.boothId,
|
|
@@ -35233,7 +35233,7 @@ function Bn(e, t, a) {
|
|
|
35233
35233
|
}))
|
|
35234
35234
|
}
|
|
35235
35235
|
};
|
|
35236
|
-
},
|
|
35236
|
+
}, b = () => {
|
|
35237
35237
|
var e, t, n;
|
|
35238
35238
|
let r = null;
|
|
35239
35239
|
for (let n of (e = (t = s.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
|
|
@@ -35246,17 +35246,17 @@ function Bn(e, t, a) {
|
|
|
35246
35246
|
}
|
|
35247
35247
|
}
|
|
35248
35248
|
return (n = r) == null ? ["Noto Sans Regular"] : n;
|
|
35249
|
-
},
|
|
35249
|
+
}, x = null, S = () => {
|
|
35250
35250
|
for (let e of Ln) s.getLayer(e) && s.removeLayer(e);
|
|
35251
|
-
s.getSource(jn) && s.removeSource(jn),
|
|
35252
|
-
},
|
|
35253
|
-
if (
|
|
35251
|
+
s.getSource(jn) && s.removeSource(jn), x = null;
|
|
35252
|
+
}, C = (e, t) => {
|
|
35253
|
+
if (x !== null && x !== t && S(), s.getSource(jn) || (s.addSource(jn, {
|
|
35254
35254
|
type: "geojson",
|
|
35255
35255
|
data: e,
|
|
35256
35256
|
cluster: t,
|
|
35257
35257
|
clusterRadius: 50,
|
|
35258
35258
|
clusterMinPoints: 3
|
|
35259
|
-
}),
|
|
35259
|
+
}), x = t), s.getLayer(Mn)) return;
|
|
35260
35260
|
let i = ["!", ["has", "point_count"]], a = [
|
|
35261
35261
|
"==",
|
|
35262
35262
|
[
|
|
@@ -35285,7 +35285,7 @@ function Bn(e, t, a) {
|
|
|
35285
35285
|
filter: ["has", "point_count"],
|
|
35286
35286
|
layout: {
|
|
35287
35287
|
"text-field": ["get", "point_count_abbreviated"],
|
|
35288
|
-
"text-font":
|
|
35288
|
+
"text-font": b(),
|
|
35289
35289
|
"text-size": 14,
|
|
35290
35290
|
"text-allow-overlap": !0,
|
|
35291
35291
|
"text-ignore-placement": !0
|
|
@@ -35329,12 +35329,12 @@ function Bn(e, t, a) {
|
|
|
35329
35329
|
}, E = (e = !1) => {
|
|
35330
35330
|
var t;
|
|
35331
35331
|
g(e);
|
|
35332
|
-
let { cluster: n, data: r } =
|
|
35333
|
-
|
|
35334
|
-
},
|
|
35332
|
+
let { cluster: n, data: r } = _();
|
|
35333
|
+
C(r, n), (t = s.getSource(jn)) == null || t.setData(r), T();
|
|
35334
|
+
}, D = (e) => {
|
|
35335
35335
|
if (!e.length) return;
|
|
35336
35336
|
let t = nn(50);
|
|
35337
|
-
if (e.every((e) => rn(s,
|
|
35337
|
+
if (e.every((e) => rn(s, m(e), t))) return;
|
|
35338
35338
|
let n = Qt(w.fromPoints(e.map((e) => e.center)), c), r = s.cameraForBounds(n, {
|
|
35339
35339
|
padding: t,
|
|
35340
35340
|
bearing: a.bearing
|
|
@@ -35346,13 +35346,13 @@ function Bn(e, t, a) {
|
|
|
35346
35346
|
duration: 500,
|
|
35347
35347
|
essential: !0
|
|
35348
35348
|
});
|
|
35349
|
-
},
|
|
35349
|
+
}, O = (e) => {
|
|
35350
35350
|
var t;
|
|
35351
35351
|
let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
|
|
35352
35352
|
if (typeof n != "number") return;
|
|
35353
|
-
let r =
|
|
35354
|
-
r &&
|
|
35355
|
-
},
|
|
35353
|
+
let r = y.boothStore.boothById.get(n);
|
|
35354
|
+
r && y.clickBooth(r);
|
|
35355
|
+
}, k = (e) => {
|
|
35356
35356
|
var t, n, r;
|
|
35357
35357
|
let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, o = s.getSource(jn);
|
|
35358
35358
|
if (typeof a != "number" || !o || (i == null || (r = i.geometry) == null ? void 0 : r.type) !== "Point") return;
|
|
@@ -35365,23 +35365,23 @@ function Bn(e, t, a) {
|
|
|
35365
35365
|
});
|
|
35366
35366
|
});
|
|
35367
35367
|
};
|
|
35368
|
-
s.on("click", Pn,
|
|
35368
|
+
s.on("click", Pn, O), s.on("click", Fn, O), s.on("click", Mn, k), An.set((e, t) => {
|
|
35369
35369
|
let n = Rn.filter((e) => !!s.getLayer(e));
|
|
35370
35370
|
if (!n.length) return !1;
|
|
35371
|
-
let r = s.project(
|
|
35371
|
+
let r = s.project(p(e, t, c));
|
|
35372
35372
|
return s.queryRenderedFeatures([r.x, r.y], { layers: n }).length > 0;
|
|
35373
35373
|
});
|
|
35374
|
-
let
|
|
35374
|
+
let A = () => {
|
|
35375
35375
|
l.clear(), E(!0);
|
|
35376
35376
|
};
|
|
35377
|
-
s.on("style.load",
|
|
35378
|
-
let
|
|
35379
|
-
E(),
|
|
35380
|
-
}),
|
|
35377
|
+
s.on("style.load", A);
|
|
35378
|
+
let j = i(() => y.poiMarkerStore.markers, () => E(!0)), M = i(() => y.poiMarkerStore.selectedMarkerId, () => E()), ee = i(() => y.poiMarkerStore.outdoorFilter.key, () => {
|
|
35379
|
+
E(), D(y.poiMarkerStore.outdoorFilter.matchingMarkers);
|
|
35380
|
+
}), te = i(() => Cn(), () => T());
|
|
35381
35381
|
return E(!0), () => {
|
|
35382
|
-
|
|
35382
|
+
j(), M(), ee(), te(), An.set(null), s.off("style.load", A), s.off("click", Pn, O), s.off("click", Fn, O), s.off("click", Mn, k);
|
|
35383
35383
|
try {
|
|
35384
|
-
|
|
35384
|
+
S();
|
|
35385
35385
|
for (let e of l) s.hasImage(e) && s.removeImage(e);
|
|
35386
35386
|
} catch {}
|
|
35387
35387
|
};
|
|
@@ -35393,36 +35393,36 @@ function Bn(e, t, a) {
|
|
|
35393
35393
|
}
|
|
35394
35394
|
//#endregion
|
|
35395
35395
|
//#region src/components/Maplibre/useRendererEvents.ts
|
|
35396
|
-
var Vn =
|
|
35396
|
+
var Vn = T;
|
|
35397
35397
|
function Hn(e, t) {
|
|
35398
35398
|
(0, P.useEffect)(() => {
|
|
35399
35399
|
if (!e) return;
|
|
35400
35400
|
let n = ({ data: e }) => {
|
|
35401
|
-
if (
|
|
35401
|
+
if (T.setKioskModeEnabled) return;
|
|
35402
35402
|
let { point: t, defs: n } = d(e), r = de(t.x, t.y), i = Dn(n[0]);
|
|
35403
35403
|
Vn.hoveredBooth = r || i || null;
|
|
35404
35404
|
}, r = () => {
|
|
35405
|
-
|
|
35405
|
+
T.setKioskModeEnabled || (Vn.hoveredBooth = null);
|
|
35406
35406
|
}, i = ({ data: e }) => {
|
|
35407
35407
|
var n, r;
|
|
35408
|
-
if (!(
|
|
35409
|
-
(n = (r = window).__resett) == null || n.call(r),
|
|
35408
|
+
if (!(T != null && T.rootElement)) return;
|
|
35409
|
+
(n = (r = window).__resett) == null || n.call(r), T.overlayPosition === "bottom" && T.overlaySize === "full" && y.showMap();
|
|
35410
35410
|
let { point: i, defs: a } = d(e), { x: o, y: s } = i;
|
|
35411
|
-
if (
|
|
35412
|
-
let e =
|
|
35413
|
-
|
|
35411
|
+
if (T.onGetCoordsClick) {
|
|
35412
|
+
let e = y.layerStore.layers.find((e) => e.visible && (e.mode === D.TurnedOn || e.mode === D.TurnedOff));
|
|
35413
|
+
T.onGetCoordsClick({
|
|
35414
35414
|
x: o,
|
|
35415
35415
|
y: s,
|
|
35416
35416
|
z: (e == null ? void 0 : e.name) || null
|
|
35417
35417
|
});
|
|
35418
35418
|
}
|
|
35419
|
-
if (
|
|
35419
|
+
if (T.setKioskModeEnabled || An.test(o, s)) return;
|
|
35420
35420
|
let c = de(i.x, i.y) || Dn(a[0]);
|
|
35421
|
-
if (
|
|
35421
|
+
if (T.onMarkerClick) {
|
|
35422
35422
|
let e = oe(o, s, t.scale);
|
|
35423
|
-
|
|
35423
|
+
T.onMarkerClick(e);
|
|
35424
35424
|
}
|
|
35425
|
-
|
|
35425
|
+
y.clickBooth(c || null);
|
|
35426
35426
|
}, a = () => {
|
|
35427
35427
|
var e, t;
|
|
35428
35428
|
return (e = (t = window).__resett) == null ? void 0 : e.call(t);
|
|
@@ -35437,7 +35437,7 @@ function Hn(e, t) {
|
|
|
35437
35437
|
function Un(e, t) {
|
|
35438
35438
|
(0, P.useEffect)(() => {
|
|
35439
35439
|
if (!e) return;
|
|
35440
|
-
let n =
|
|
35440
|
+
let n = u(t, y), r = ie(t);
|
|
35441
35441
|
return () => {
|
|
35442
35442
|
n == null || n(), r == null || r();
|
|
35443
35443
|
};
|
|
@@ -35621,10 +35621,10 @@ function ur(e, t, n) {
|
|
|
35621
35621
|
};
|
|
35622
35622
|
}
|
|
35623
35623
|
function dr() {
|
|
35624
|
-
|
|
35625
|
-
|
|
35624
|
+
y.poiMarkerStore.clear(), a(() => {
|
|
35625
|
+
y.layerStore.layers.forEach((e) => {
|
|
35626
35626
|
e.configured = !1, e.children = [], e.loaded = !1;
|
|
35627
|
-
}),
|
|
35627
|
+
}), y.layerStore.layersLoaded = !1;
|
|
35628
35628
|
});
|
|
35629
35629
|
}
|
|
35630
35630
|
function fr(e, t) {
|
|
@@ -35637,44 +35637,44 @@ function pr(e) {
|
|
|
35637
35637
|
let i = Math.abs((t = e[0]) == null ? 0 : t), a = Math.hypot((n = e[0]) == null ? 0 : n, (r = e[1]) == null ? 0 : r);
|
|
35638
35638
|
return i <= 0 || a <= 0 ? 1 : i / a;
|
|
35639
35639
|
}
|
|
35640
|
-
var mr =
|
|
35640
|
+
var mr = te(function({ viewMode: e }) {
|
|
35641
35641
|
var t;
|
|
35642
|
-
let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o =
|
|
35643
|
-
layerViewbox:
|
|
35644
|
-
explicitArea:
|
|
35645
|
-
layerRectangle:
|
|
35642
|
+
let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(null), o = y.rendererService, s = (0, P.useRef)(null), l = (0, P.useRef)(null), u = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), p = (0, P.useRef)(null), h = (0, P.useMemo)(() => an(), []), _ = (0, P.useMemo)(() => k({
|
|
35643
|
+
layerViewbox: y.layerStore.viewboxRectangle,
|
|
35644
|
+
explicitArea: E ? b : null,
|
|
35645
|
+
layerRectangle: y.layerStore.rectangle,
|
|
35646
35646
|
sceneDef: n,
|
|
35647
|
-
svgArea:
|
|
35648
|
-
}), [n]),
|
|
35649
|
-
if (!
|
|
35650
|
-
let e =
|
|
35651
|
-
e &&
|
|
35652
|
-
let n =
|
|
35653
|
-
width:
|
|
35654
|
-
height:
|
|
35647
|
+
svgArea: b
|
|
35648
|
+
}), [n]), v = _.rect, w = (0, P.useMemo)(() => {
|
|
35649
|
+
if (!h) return null;
|
|
35650
|
+
let e = x(_.source) ? 0 : S(v, b), t = nn(0);
|
|
35651
|
+
e && T.screenSize && (t.left += T.screenSize.width * e, t.right += T.screenSize.width * e, t.top += T.screenSize.height * e, t.bottom += T.screenSize.height * e);
|
|
35652
|
+
let n = T.screenSize ? en(v, h.gpsConfig, h.bearing, {
|
|
35653
|
+
width: T.screenSize.width,
|
|
35654
|
+
height: T.screenSize.height
|
|
35655
35655
|
}, t) : null;
|
|
35656
35656
|
return n ? {
|
|
35657
35657
|
center: n.center,
|
|
35658
|
-
bearing:
|
|
35658
|
+
bearing: h.bearing,
|
|
35659
35659
|
zoom: n.zoom
|
|
35660
35660
|
} : {
|
|
35661
|
-
center:
|
|
35662
|
-
bearing:
|
|
35663
|
-
zoom:
|
|
35664
|
-
bounds: Qt(
|
|
35661
|
+
center: h.center,
|
|
35662
|
+
bearing: h.bearing,
|
|
35663
|
+
zoom: h.zoom,
|
|
35664
|
+
bounds: Qt(v, h.gpsConfig),
|
|
35665
35665
|
fitPadding: t,
|
|
35666
35666
|
zoomAdjustment: Ut
|
|
35667
35667
|
};
|
|
35668
35668
|
}, [
|
|
35669
|
-
|
|
35670
|
-
|
|
35671
|
-
|
|
35672
|
-
]),
|
|
35669
|
+
h,
|
|
35670
|
+
_,
|
|
35671
|
+
v
|
|
35672
|
+
]), A = (0, P.useMemo)(() => {
|
|
35673
35673
|
var e;
|
|
35674
|
-
return
|
|
35675
|
-
}, [
|
|
35674
|
+
return h ? Yn(h.gpsConfig, (e = O()) == null ? void 0 : e.getAttribute("units")) : null;
|
|
35675
|
+
}, [h]), j = (0, P.useMemo)(() => ({ ...e === "map2d" ? vn : _n }), [e]), M = (0, P.useRef)(j), te = (0, P.useMemo)(() => Sn(), []), { mapDimAnimatorRef: ne, venueDimAnimatorRef: ie, applyDimmingTarget: ae, handleMapDimLayerReady: oe } = wn(l, o);
|
|
35676
35676
|
(0, P.useEffect)(() => {
|
|
35677
|
-
if (!
|
|
35677
|
+
if (!h) return;
|
|
35678
35678
|
let e = !1;
|
|
35679
35679
|
dr();
|
|
35680
35680
|
let t = ue(o).then(({ layers: t, cleanup: n }) => {
|
|
@@ -35683,80 +35683,80 @@ var mr = N(function({ viewMode: e }) {
|
|
|
35683
35683
|
return;
|
|
35684
35684
|
}
|
|
35685
35685
|
d.current = n;
|
|
35686
|
-
let i =
|
|
35686
|
+
let i = c(t, b, (0, fe.default)(N.backgroundColor === "none" ? "#ebebeb" : N.backgroundColor).string());
|
|
35687
35687
|
r(i);
|
|
35688
35688
|
}).catch((t) => {
|
|
35689
35689
|
e || console.warn("Maplibre scene configuration failed.", t);
|
|
35690
35690
|
}), n = ne.current, i = ie.current;
|
|
35691
35691
|
return () => {
|
|
35692
|
-
var r,
|
|
35692
|
+
var r, c;
|
|
35693
35693
|
e = !0, dr();
|
|
35694
35694
|
let m = s.current;
|
|
35695
|
-
t.finally(() => o.disposeIfCurrent(m)), (r = u.current) == null || r.call(u), u.current = null, (
|
|
35695
|
+
t.finally(() => o.disposeIfCurrent(m)), (r = u.current) == null || r.call(u), u.current = null, (c = d.current) == null || c.call(d), d.current = null, p.current && (y.maplibreStore.clearCameraPortIfCurrent(p.current), p.current = null), s.current = null, l.current = null, f.current = null, a(null), n == null || n.stop(), i == null || i.stop(), T.sceneDefReady = !1;
|
|
35696
35696
|
};
|
|
35697
35697
|
}, [
|
|
35698
|
-
|
|
35698
|
+
h,
|
|
35699
35699
|
ne,
|
|
35700
35700
|
o,
|
|
35701
35701
|
ie
|
|
35702
35702
|
]);
|
|
35703
35703
|
let se = (0, P.useCallback)((e, t, n, r) => {
|
|
35704
|
-
var i,
|
|
35705
|
-
s.current = e,
|
|
35706
|
-
let
|
|
35704
|
+
var i, c, d;
|
|
35705
|
+
s.current = e, l.current = t, f.current = r, a(e), o.attach(e, n, r, A ? pr(A) : 1), xn(t, M.current);
|
|
35706
|
+
let _ = ur(t, (i = h == null ? void 0 : h.bearing) == null ? t.getBearing() : i, () => {
|
|
35707
35707
|
var e;
|
|
35708
|
-
return (e =
|
|
35708
|
+
return (e = M.current.pitch) == null ? 0 : e;
|
|
35709
35709
|
});
|
|
35710
|
-
p.current =
|
|
35711
|
-
let { canvas: t } = e, n =
|
|
35710
|
+
p.current = _, y.maplibreStore.setCameraPort(_), y.fp.getCenterCoordinates = () => {
|
|
35711
|
+
let { canvas: t } = e, n = m(e.viewport.canvasToSvg({
|
|
35712
35712
|
x: t.clientWidth / 2,
|
|
35713
35713
|
y: t.clientHeight / 2
|
|
35714
|
-
})), r =
|
|
35714
|
+
})), r = y.layerStore.visible.find((e) => e.mode === D.TurnedOff || e.mode === D.TurnedOn);
|
|
35715
35715
|
return {
|
|
35716
35716
|
...n,
|
|
35717
35717
|
z: (r == null ? void 0 : r.name) || null
|
|
35718
35718
|
};
|
|
35719
|
-
}, ae({ immediate: !0 }), (
|
|
35720
|
-
let
|
|
35719
|
+
}, ae({ immediate: !0 }), (c = u.current) == null || c.call(u);
|
|
35720
|
+
let v = () => {
|
|
35721
35721
|
var e;
|
|
35722
|
-
let n = t.getBearing() - ((e =
|
|
35723
|
-
fr(o,
|
|
35722
|
+
let n = t.getBearing() - ((e = h == null ? void 0 : h.bearing) == null ? 0 : e);
|
|
35723
|
+
fr(o, g(n));
|
|
35724
35724
|
};
|
|
35725
|
-
t.on("rotate",
|
|
35726
|
-
t.off("rotate",
|
|
35727
|
-
},
|
|
35725
|
+
t.on("rotate", v), t.on("rotateend", v), u.current = () => {
|
|
35726
|
+
t.off("rotate", v), t.off("rotateend", v);
|
|
35727
|
+
}, ee(o);
|
|
35728
35728
|
let b = o.ptScaleRegistry.invoke(o.scale || 1);
|
|
35729
|
-
b.length && o.update(...b), fr(o,
|
|
35729
|
+
b.length && o.update(...b), fr(o, g(t.getBearing() - ((d = h == null ? void 0 : h.bearing) == null ? 0 : d))), y.layerStore.layersLoaded = !0, y.fp.onFpConfigured && y.fp.onFpConfigured(), T.sceneDefReady = !0, r();
|
|
35730
35730
|
}, [
|
|
35731
35731
|
o,
|
|
35732
35732
|
ae,
|
|
35733
|
-
|
|
35734
|
-
|
|
35733
|
+
A,
|
|
35734
|
+
h
|
|
35735
35735
|
]);
|
|
35736
35736
|
(0, P.useEffect)(() => {
|
|
35737
|
-
|
|
35738
|
-
}, [
|
|
35739
|
-
enabled:
|
|
35737
|
+
M.current = j, xn(l.current, j, !0);
|
|
35738
|
+
}, [j]), Hn(i, o), Tn(i, l), Un(i, o), Bn(i, l, h), On(o, l, h), ln(l, h, n), ce({
|
|
35739
|
+
enabled: y.layerStore.layersLoaded && T.buildRoute,
|
|
35740
35740
|
rendererService: o
|
|
35741
35741
|
});
|
|
35742
|
-
let le = (t =
|
|
35742
|
+
let le = (t = C.busRoutes) != null && t;
|
|
35743
35743
|
re({
|
|
35744
|
-
permission:
|
|
35744
|
+
permission: y.layerStore.layersLoaded && le,
|
|
35745
35745
|
rendererService: o,
|
|
35746
|
-
dataJsonUrl: `https://${cr}/v1/routes?expo=${
|
|
35747
|
-
websocketUrl: `wss://${cr}/locations?expo=${
|
|
35746
|
+
dataJsonUrl: `https://${cr}/v1/routes?expo=${N.EXPO}`,
|
|
35747
|
+
websocketUrl: `wss://${cr}/locations?expo=${N.EXPO}`
|
|
35748
35748
|
});
|
|
35749
35749
|
let de = (0, P.useCallback)((e) => {
|
|
35750
|
-
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e),
|
|
35750
|
+
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), y.maplibreStore.deactivateMaplibre();
|
|
35751
35751
|
}, []);
|
|
35752
|
-
if (!
|
|
35752
|
+
if (!h || !w || !A || !n) return null;
|
|
35753
35753
|
let pe = `${w.center.join(",")}:${w.bearing}:${w.zoom}`;
|
|
35754
35754
|
return /* @__PURE__ */ (0, jt.jsx)(W, {
|
|
35755
35755
|
sceneDef: n,
|
|
35756
35756
|
geoConfig: w,
|
|
35757
|
-
staticTransform:
|
|
35758
|
-
tileSource:
|
|
35759
|
-
mapOptions:
|
|
35757
|
+
staticTransform: A,
|
|
35758
|
+
tileSource: te,
|
|
35759
|
+
mapOptions: j,
|
|
35760
35760
|
onRendererReady: se,
|
|
35761
35761
|
onMapDimLayerReady: oe,
|
|
35762
35762
|
onMapLoadError: de
|