@expofp/floorplan 3.45.10 → 3.45.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/{Button-Cn1vdWpK.js → Button-CRDP5tCg.js} +5 -5
- package/dist/browser/{CookieConsent-B86DJhbx.js → CookieConsent-BsPfYrwB.js} +7 -7
- package/dist/browser/{Debug-DB1mRd90.js → Debug-BecJzEG-.js} +7 -7
- package/dist/browser/{DebugTools-IbULZveE.js → DebugTools-DS4bgIEf.js} +6 -6
- package/dist/browser/{Demo-CqPR8hsE.js → Demo-D7FBxB3R.js} +9 -9
- package/dist/browser/{Free-B1xsBVOL.js → Free-DnjUGTjD.js} +10 -10
- package/dist/browser/{GalleryContainer-H_2tKz7h.js → GalleryContainer-Bj8NAG3S.js} +11 -11
- package/dist/browser/{GpsLoader-CnvIlzWW.js → GpsLoader-C05PU1j1.js} +13 -13
- package/dist/browser/{KioskStore-Dtdh2J4k.js → KioskStore-BVCEYCzk.js} +10 -10
- package/dist/browser/{LayerStore-SBDWbV0w.js → LayerStore-k2gvCLhr.js} +1867 -1862
- package/dist/browser/{MaplibreAdapter-pvULARk2.js → MaplibreAdapter-DFo29ESa.js} +144 -144
- package/dist/browser/{ModalContainer-D1h6LZB2.js → ModalContainer-BcElOeJ-.js} +10 -10
- package/dist/browser/{PermissionNotice-BfdlHWCQ.js → PermissionNotice-Bu9vqb_4.js} +6 -6
- package/dist/browser/{RouteStore-DbHHcj0h.js → RouteStore-LJeUl8tg.js} +127 -127
- package/dist/browser/{SetKioskMode-DNH_BNX4.js → SetKioskMode-CaQ4UMCy.js} +14 -14
- package/dist/browser/{ShowKiosk-qPmQOL4G.js → ShowKiosk-BcAeJ0Fi.js} +10 -10
- package/dist/browser/{UIState-CMIMqMqX.js → UIState-X5Q9PwMX.js} +89 -89
- package/dist/browser/{ViewerMenuPanel-P3LG6zDW.js → ViewerMenuPanel-BnUwfWS9.js} +11 -11
- package/dist/browser/{add-debug-secret-listener-CoOEwFmI.js → add-debug-secret-listener-DneFnknI.js} +1 -1
- package/dist/browser/{adopt-global-settings-ruN5U0qT.js → adopt-global-settings-DgH2Nn_8.js} +9 -9
- package/dist/browser/{boolean-editor-rVXdWa2W.js → boolean-editor-BHGGEMnO.js} +9 -9
- package/dist/browser/{bootIntercom-uAQFMl_Y.js → bootIntercom-BKRjfcRC.js} +2 -2
- package/dist/browser/bundle.json +85 -85
- package/dist/browser/{camera-events-B81jOQQJ.js → camera-events-Bp5aMamY.js} +1 -1
- package/dist/browser/{classnames-DGlmSG5g.js → classnames-CzqYMEz4.js} +2 -2
- package/dist/browser/{client-BV8CXptc.js → client-BekOsoIf.js} +5 -5
- package/dist/browser/{components-BviMGmcU.js → components-D1oyhcDF.js} +151 -151
- package/dist/browser/{create-live-plan-zgR26apm.js → create-live-plan-aMAiUYTV.js} +73 -73
- package/dist/browser/{debug-context-BzYX4R05.js → debug-context-1NBU7EsG.js} +5 -5
- package/dist/browser/{debug-overlay-DD26ktTR.js → debug-overlay-DjvhIY8H.js} +10 -10
- package/dist/browser/{debug-ui-DAUh0PoT.js → debug-ui-flULqhXs.js} +6 -6
- package/dist/browser/{dist-DUMP9Ngs.js → dist-BTo6i8Hu.js} +6 -6
- package/dist/browser/{dist-CxbqGkvV.js → dist-BxP9tL6r.js} +5 -5
- package/dist/browser/{dist-d3SiKCT6.js → dist-CIlit6Zo.js} +3 -3
- package/dist/browser/{efp-debug-init-ClI_mZe_.js → efp-debug-init-BSFBVV1y.js} +3 -3
- package/dist/browser/{enum-editor-BSkeY63c.js → enum-editor-CQ1DXCzl.js} +4 -4
- package/dist/browser/{es5-BXMfWl58.js → es5-BIr-i8Ja.js} +2 -2
- package/dist/browser/{event-head-COBKP4DX.js → event-head-BZOaCqbu.js} +1 -1
- package/dist/browser/{event-not-found-CiSyp3iV.js → event-not-found-CJL8MZjO.js} +3 -3
- package/dist/browser/{event-scoped-cache-tvMtbdwa.js → event-scoped-cache-C9DjEqlr.js} +2 -2
- package/dist/browser/{expofpUrl-rAb79DIE.js → expofpUrl-CY5ITSBJ.js} +1 -1
- package/dist/browser/{exports-bjuTfLa2.js → exports-BS9yuUDe.js} +1 -1
- package/dist/browser/{favicon-BFIFqOtn.js → favicon-xBZv-cxl.js} +1 -1
- package/dist/browser/{fetch-retry.umd-CWMyBasR.js → fetch-retry.umd-DcxeSTii.js} +2 -2
- package/dist/browser/{flex-Rzrsjfvc.js → flex-5FqYfEu4.js} +5 -5
- package/dist/browser/{floorplan.loader-Bw97TZhZ.js → floorplan.loader-BNTd5WnJ.js} +12 -12
- package/dist/browser/{floorplan.ready-DTWewU99.js → floorplan.ready-B3MuQfII.js} +30 -30
- package/dist/browser/{framing-rect-eOrPRnEg.js → framing-rect-VUrV6oqA.js} +355 -363
- package/dist/browser/{freeBanner-BC-9yp8S.js → freeBanner-CJNLRo6z.js} +2 -2
- package/dist/browser/{fuse-DZJPc4yg.js → fuse-B9cOk_lN.js} +2 -2
- package/dist/browser/{i18n-BJiBcpGl.js → i18n-Bg9oysVh.js} +6 -6
- package/dist/browser/index.js +17 -17
- package/dist/browser/{index.module-BIyLBspP.js → index.module-Cb8dhnVA.js} +4 -4
- package/dist/browser/{init-ui-Cj1apWvD.js → init-ui-idRwV029.js} +13 -13
- package/dist/browser/{integrateKiosk-CznUWFW9.js → integrateKiosk-B74sTu2o.js} +5 -5
- package/dist/browser/{is-debug-CV5nQhPi.js → is-debug-h_MAA0vT.js} +4 -4
- package/dist/browser/{is-own-domain-C4azibE9.js → is-own-domain-C0yte9ZX.js} +1 -1
- package/dist/browser/{is-webview-BzqxZB25.js → is-webview-Vzf66YAj.js} +1 -1
- package/dist/browser/{jsx-runtime-5PBs1pEQ.js → jsx-runtime-CEn3DmvQ.js} +2 -2
- package/dist/browser/{kiosk-mode-B6qtwO0G.js → kiosk-mode-DvHrNFsy.js} +3 -3
- package/dist/browser/{kiosk-record-g2_Wdj6A.js → kiosk-record-DJlPleCt.js} +1 -1
- package/dist/browser/{kioskApi-ChUHRhgw.js → kioskApi-PfBFbTr5.js} +7 -7
- package/dist/browser/{lib-CbLqEjFm.js → lib-D72VRmCp.js} +3 -3
- package/dist/browser/{loadImage-NV7Sut6Q.js → loadImage-C9WhBEVX.js} +1 -1
- package/dist/browser/{logDeviceInfo-Bj7a8S5-.js → logDeviceInfo-CLreGIbg.js} +9 -9
- package/dist/browser/{mobx-tOUQ4H8i.js → mobx-CF4qOwIb.js} +4 -4
- package/dist/browser/{mobx.module-DmU1vhUy.js → mobx.module-Bld24lDp.js} +1 -1
- package/dist/browser/{optional-boolean-editor-C7qYMklB.js → optional-boolean-editor-BFjLyngH.js} +3 -3
- package/dist/browser/{optional-enum-editor-C1YeLduB.js → optional-enum-editor-Cn22Eotn.js} +4 -4
- package/dist/browser/{optional-string-editor-DKHOSrcb.js → optional-string-editor-DtPGGsjm.js} +4 -4
- package/dist/browser/{particles.min-Bi0Olzpy.js → particles.min-CNpS5I-V.js} +2 -2
- package/dist/browser/{react-dom-CokSt-Nr.js → react-dom-Dmeqr6Ih.js} +3 -3
- package/dist/browser/{react-DhABhf7P.js → react-jM_gvhh_.js} +2 -2
- package/dist/browser/{rolldown-runtime-Xs9k3_fC.js → rolldown-runtime-BvcUA6Ul.js} +1 -1
- package/dist/browser/{scene-sTDBQo8U.js → scene-C2Ph7vMa.js} +9 -9
- package/dist/browser/{scheduler-BOSQkAHm.js → scheduler-VjuMtUPg.js} +2 -2
- package/dist/browser/{select-zIJ_mWmQ.js → select-OEbn0UxW.js} +10 -10
- package/dist/browser/{settings-BGYsl7pu.js → settings-BpKs8Nb_.js} +2 -2
- package/dist/browser/{settings-item-ZEeKLhxL.js → settings-item-Ci9bHqX0.js} +6 -6
- package/dist/browser/{store-BCPx9hgL.js → store-DxzMbDAn.js} +2 -2
- package/dist/browser/{string-editor-5wVa_A4f.js → string-editor-DeGRtfp9.js} +4 -4
- package/dist/browser/{text-field-CttplX4-.js → text-field-Bnb1278l.js} +5 -5
- package/dist/browser/{theme-CaYU9Gun.js → theme-aRuFDTe2.js} +8 -8
- package/dist/browser/{ui-BYT86KhK.js → ui-BDhcNOy1.js} +8 -8
- package/dist/browser/{useRenderTarget-BbHxq2ss.js → useRenderTarget-BtqSLLkH.js} +4 -4
- package/dist/browser/{viewport-B2CPk_gF.js → viewport-BcTdYyUU.js} +3 -3
- package/dist/browser/{wayfinding-6SGJbKrj.js → wayfinding-Cyts8CmL.js} +228 -228
- package/dist/esm/components/Map/drawing/config/config-markers.js +1 -1
- package/dist/esm/components/Map/traffic/useManageTraffic.js +1 -1
- package/dist/esm/engine/utils/rotation.d.ts +8 -0
- package/dist/esm/engine/utils/rotation.js +1 -1
- package/package.json +10 -10
|
@@ -2,29 +2,29 @@ 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.45.
|
|
5
|
+
e.SENTRY_RELEASE = { id: "3.45.12" };
|
|
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] = "1a4db182-bd1a-4d9d-a8c0-b23a26f1091e", e._sentryDebugIdIdentifier = "sentry-dbid-1a4db182-bd1a-4d9d-a8c0-b23a26f1091e");
|
|
8
8
|
} catch {}
|
|
9
9
|
})();
|
|
10
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
11
|
-
import { F as n, P as r, h as i, s as a } from "./i18n-
|
|
12
|
-
import { t as o } from "./react-
|
|
13
|
-
import { t as s } from "./jsx-runtime-
|
|
14
|
-
import { t as c } from "./is-debug-
|
|
15
|
-
import { i as l, l as u, u as d } from "./mobx.module-
|
|
16
|
-
import { t as f } from "./index.module-
|
|
17
|
-
import { l as p, u as m } from "./store-
|
|
18
|
-
import { i as h } from "./mobx-
|
|
19
|
-
import { n as g, t as _ } from "./expofpUrl-
|
|
20
|
-
import { Bt as v,
|
|
21
|
-
import { g as ae, h as oe, n as se, p as ce } from "./wayfinding-
|
|
22
|
-
import { t as le } from "./camera-events-
|
|
23
|
-
import { t as ue } from "./viewport-
|
|
24
|
-
import { a as de, c as fe, n as pe, o as me, s as he } from "./scene-
|
|
25
|
-
import { a as ge, c as _e, d as ve, i as ye, l as be, n as xe, o as Se, r as Ce, s as we, t as Te, u as Ee } from "./framing-rect-
|
|
10
|
+
import { r as e, t } from "./rolldown-runtime-BvcUA6Ul.js";
|
|
11
|
+
import { F as n, P as r, h as i, s as a } from "./i18n-Bg9oysVh.js";
|
|
12
|
+
import { t as o } from "./react-jM_gvhh_.js";
|
|
13
|
+
import { t as s } from "./jsx-runtime-CEn3DmvQ.js";
|
|
14
|
+
import { t as c } from "./is-debug-h_MAA0vT.js";
|
|
15
|
+
import { i as l, l as u, u as d } from "./mobx.module-Bld24lDp.js";
|
|
16
|
+
import { t as f } from "./index.module-Cb8dhnVA.js";
|
|
17
|
+
import { l as p, u as m } from "./store-DxzMbDAn.js";
|
|
18
|
+
import { i as h } from "./mobx-CF4qOwIb.js";
|
|
19
|
+
import { n as g, t as _ } from "./expofpUrl-CY5ITSBJ.js";
|
|
20
|
+
import { Bt as v, Ht as y, Qt as b, Vt as x, Wt as S, a as C, c as w, ct as T, gt as E, ht as D, l as O, lt as k, mt as A, o as j, q as M, qt as ee, s as te, u as N, w as ne, y as re, yt as ie } from "./LayerStore-k2gvCLhr.js";
|
|
21
|
+
import { g as ae, h as oe, n as se, p as ce } from "./wayfinding-Cyts8CmL.js";
|
|
22
|
+
import { t as le } from "./camera-events-Bp5aMamY.js";
|
|
23
|
+
import { t as ue } from "./viewport-BcTdYyUU.js";
|
|
24
|
+
import { a as de, c as fe, n as pe, o as me, s as he } from "./scene-C2Ph7vMa.js";
|
|
25
|
+
import { a as ge, c as _e, d as ve, i as ye, l as be, n as xe, o as Se, r as Ce, s as we, t as Te, u as Ee } from "./framing-rect-VUrV6oqA.js";
|
|
26
26
|
//#region ../../node_modules/.pnpm/maplibre-gl@5.24.0/node_modules/maplibre-gl/dist/maplibre-gl.css
|
|
27
|
-
var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(
|
|
27
|
+
var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(ie(), 1), Oe = (/* @__PURE__ */ t(((e, t) => {
|
|
28
28
|
(function(n, r) {
|
|
29
29
|
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());
|
|
30
30
|
})(e, (function() {
|
|
@@ -323,17 +323,17 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
323
323
|
function M(e, t, n) {
|
|
324
324
|
return e * (1 - n) + t * n;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function ee(e) {
|
|
327
327
|
if (e <= 0) return 0;
|
|
328
328
|
if (e >= 1) return 1;
|
|
329
329
|
let t = e * e, n = t * e;
|
|
330
330
|
return 4 * (e < .5 ? n : 3 * (e - t) + n - .75);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function te(e, t, n, r) {
|
|
333
333
|
let i = new o(e, t, n, r);
|
|
334
334
|
return (e) => i.solve(e);
|
|
335
335
|
}
|
|
336
|
-
let
|
|
336
|
+
let N = te(.25, .1, .25, 1);
|
|
337
337
|
function ne(e, t, n) {
|
|
338
338
|
return Math.min(n, Math.max(t, e));
|
|
339
339
|
}
|
|
@@ -8323,7 +8323,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
8323
8323
|
if (r < this.begin) return a.possiblyEvaluate(e, t, n);
|
|
8324
8324
|
{
|
|
8325
8325
|
let o = (r - this.begin) / (this.end - this.begin);
|
|
8326
|
-
return this.property.interpolate(a.possiblyEvaluate(e, t, n), i,
|
|
8326
|
+
return this.property.interpolate(a.possiblyEvaluate(e, t, n), i, ee(o));
|
|
8327
8327
|
}
|
|
8328
8328
|
}
|
|
8329
8329
|
return i;
|
|
@@ -17396,7 +17396,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
17396
17396
|
(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;
|
|
17397
17397
|
}
|
|
17398
17398
|
let E = u.x1, D = u.y1, O = u.x2 - E, k = u.y2 - D, A = (e, i, a, c) => {
|
|
17399
|
-
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),
|
|
17399
|
+
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), ee = new n(p, _), te = new n(l, _), N = new n(u / s, f / s), ne = new n(g / s, A / s), re = t * Math.PI / 180;
|
|
17400
17400
|
if (re) {
|
|
17401
17401
|
let e = Math.sin(re), t = Math.cos(re), n = [
|
|
17402
17402
|
t,
|
|
@@ -17404,14 +17404,14 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
17404
17404
|
e,
|
|
17405
17405
|
t
|
|
17406
17406
|
];
|
|
17407
|
-
j._matMult(n), M._matMult(n),
|
|
17407
|
+
j._matMult(n), M._matMult(n), te._matMult(n), ee._matMult(n);
|
|
17408
17408
|
}
|
|
17409
17409
|
let ie = e.stretch + e.fixed, ae = i.stretch + i.fixed;
|
|
17410
17410
|
return {
|
|
17411
17411
|
tl: j,
|
|
17412
17412
|
tr: M,
|
|
17413
|
-
bl:
|
|
17414
|
-
br:
|
|
17413
|
+
bl: te,
|
|
17414
|
+
br: ee,
|
|
17415
17415
|
tex: {
|
|
17416
17416
|
x: o.paddedRect.x + 1 + ie,
|
|
17417
17417
|
y: o.paddedRect.y + 1 + ae,
|
|
@@ -17421,7 +17421,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
17421
17421
|
writingMode: void 0,
|
|
17422
17422
|
glyphOffset: [0, 0],
|
|
17423
17423
|
sectionIndex: 0,
|
|
17424
|
-
pixelOffsetTL:
|
|
17424
|
+
pixelOffsetTL: N,
|
|
17425
17425
|
pixelOffsetBR: ne,
|
|
17426
17426
|
minFontScaleX: C / s / O,
|
|
17427
17427
|
minFontScaleY: T / s / k,
|
|
@@ -17681,9 +17681,9 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
17681
17681
|
];
|
|
17682
17682
|
}(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;
|
|
17683
17683
|
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, _)));
|
|
17684
|
-
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1,
|
|
17684
|
+
let M = d ? f.line.getGranularityForZoomLevel(d.z) : 1, ee = (c, f) => {
|
|
17685
17685
|
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) {
|
|
17686
|
-
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0,
|
|
17686
|
+
let E = t.addToLineVertexArray(n, r), D, O, k, A, j = 0, M = 0, ee = 0, te = 0, N = -1, ne = -1, re = {}, ie = _s("");
|
|
17687
17687
|
if (t.allowVerticalPlacement && i.vertical) {
|
|
17688
17688
|
let e = c.layout.get("text-rotate").evaluate(x, {}, w) + 90;
|
|
17689
17689
|
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));
|
|
@@ -17692,7 +17692,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
17692
17692
|
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;
|
|
17693
17693
|
O = new yh(l, n, u, d, f, a, _, v, !1, r), j = 4 * o.length;
|
|
17694
17694
|
let m = t.iconSizeData, h = null;
|
|
17695
|
-
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),
|
|
17695
|
+
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), N = 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);
|
|
17696
17696
|
}
|
|
17697
17697
|
let ae = Object.keys(i.horizontal);
|
|
17698
17698
|
for (let r of ae) {
|
|
@@ -17703,9 +17703,9 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
17703
17703
|
D = new yh(l, n, u, d, f, a, p, m, h, e);
|
|
17704
17704
|
}
|
|
17705
17705
|
let s = a.positionedLines.length === 1;
|
|
17706
|
-
if (
|
|
17706
|
+
if (ee += Ah(t, n, a, o, c, h, x, g, E, i.vertical ? e.ax.horizontal : e.ax.horizontalOnly, s ? ae : [r], re, N, S, w), s) break;
|
|
17707
17707
|
}
|
|
17708
|
-
i.vertical && (
|
|
17708
|
+
i.vertical && (te += Ah(t, n, i.vertical, o, c, h, x, g, E, e.ax.vertical, ["vertical"], re, ne, S, w));
|
|
17709
17709
|
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, fe = O ? O.boxEndIndex : t.collisionBoxArray.length, pe = A ? A.boxStartIndex : t.collisionBoxArray.length, me = A ? A.boxEndIndex : t.collisionBoxArray.length, he = -1, ge = (e, t) => e != null && e.circleDiameter ? Math.max(e.circleDiameter, t) : t;
|
|
17710
17710
|
he = ge(D, he), he = ge(k, he), he = ge(O, he), he = ge(A, he);
|
|
17711
17711
|
let _e = +(he > -1);
|
|
@@ -17718,7 +17718,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
17718
17718
|
}
|
|
17719
17719
|
return [r, t.length];
|
|
17720
17720
|
}(t.textAnchorOffsets, ve);
|
|
17721
|
-
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,
|
|
17721
|
+
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, N, ne, ie, oe, se, ce, le, de, fe, pe, me, u, ee, te, j, M, _e, 0, p, he, ye, be);
|
|
17722
17722
|
}(t, f, c, r, i, a, j, t.layers[0], t.collisionBoxArray, n.index, n.sourceLayerIndex, t.index, v, [
|
|
17723
17723
|
S,
|
|
17724
17724
|
S,
|
|
@@ -17728,22 +17728,22 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
17728
17728
|
};
|
|
17729
17729
|
if (D === "line") for (let e of eh(n.geometry, 0, 0, O, O)) {
|
|
17730
17730
|
let n = yl(e, M), a = fh(n, x, w, r.vertical || g, i, 24, y, t.overscaling, O);
|
|
17731
|
-
for (let e of a) g && Mh(t, g.text, k, e) ||
|
|
17731
|
+
for (let e of a) g && Mh(t, g.text, k, e) || ee(n, e);
|
|
17732
17732
|
}
|
|
17733
17733
|
else if (D === "line-center") {
|
|
17734
17734
|
for (let e of n.geometry) if (e.length > 1) {
|
|
17735
17735
|
let t = yl(e, M), n = dh(t, w, r.vertical || g, i, 24, y);
|
|
17736
|
-
n &&
|
|
17736
|
+
n && ee(t, n);
|
|
17737
17737
|
}
|
|
17738
17738
|
} else if (n.type === "Polygon") for (let e of sr(n.geometry, 0)) {
|
|
17739
17739
|
let t = xh(e, 16);
|
|
17740
|
-
|
|
17740
|
+
ee(yl(e[0], M, !0), new oh(t.x, t.y, 0));
|
|
17741
17741
|
}
|
|
17742
17742
|
else if (n.type === "LineString") for (let e of n.geometry) {
|
|
17743
17743
|
let t = yl(e, M);
|
|
17744
|
-
|
|
17744
|
+
ee(t, new oh(t[0].x, t[0].y, 0));
|
|
17745
17745
|
}
|
|
17746
|
-
else if (n.type === "Point") for (let e of n.geometry) for (let t of e)
|
|
17746
|
+
else if (n.type === "Point") for (let e of n.geometry) for (let t of e) ee([t], new oh(t.x, t.y, 0));
|
|
17747
17747
|
}
|
|
17748
17748
|
function Ah(e, t, r, i, a, o, s, c, l, u, d, f, p, m, h) {
|
|
17749
17749
|
let g = function(e, t, r, i, a, o, s, c) {
|
|
@@ -18388,7 +18388,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
18388
18388
|
};
|
|
18389
18389
|
}, e.bn = function(e, t) {
|
|
18390
18390
|
return e.roll == t.roll && e.pitch == t.pitch && e.bearing == t.bearing;
|
|
18391
|
-
}, e.bo = U, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu =
|
|
18391
|
+
}, e.bo = U, e.bp = Cs, e.bq = hl, e.br = gl, e.bs = pl, e.bt = M, e.bu = ee, e.bv = Yt, e.bw = function(e, t, n, r, i) {
|
|
18392
18392
|
return M(r, i, ne((e - t) / (n - t), 0, 1));
|
|
18393
18393
|
}, e.bx = function(e, t, n, r) {
|
|
18394
18394
|
return e[0] = t[0] + n[0] * r, e[1] = t[1] + n[1] * r, e[2] = t[2] + n[2] * r, e;
|
|
@@ -18593,11 +18593,11 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
18593
18593
|
}, e.ch = class extends uo {}, e.ci = class extends jo {}, e.cj = function(e, t) {
|
|
18594
18594
|
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];
|
|
18595
18595
|
}, e.ck = function(e, t) {
|
|
18596
|
-
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],
|
|
18597
|
-
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(_ -
|
|
18596
|
+
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], ee = t[14], te = t[15];
|
|
18597
|
+
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(_ - ee) <= d * Math.max(1, Math.abs(_), Math.abs(ee)) && Math.abs(v - te) <= d * Math.max(1, Math.abs(v), Math.abs(te));
|
|
18598
18598
|
}, e.cl = function(e, t) {
|
|
18599
18599
|
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;
|
|
18600
|
-
}, 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 =
|
|
18600
|
+
}, 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 = te, e.cw = function(e, t, n) {
|
|
18601
18601
|
if (t <= 0) return e;
|
|
18602
18602
|
let r = 1 / t;
|
|
18603
18603
|
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;
|
|
@@ -18605,7 +18605,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
18605
18605
|
let r = D(t.x - n.x, t.y - n.y), i = D(e.x - n.x, e.y - n.y);
|
|
18606
18606
|
var a, o;
|
|
18607
18607
|
return xe(Math.atan2(r[0] * i[1] - r[1] * i[0], (a = r)[0] * (o = i)[0] + a[1] * o[1]));
|
|
18608
|
-
}, e.cy =
|
|
18608
|
+
}, e.cy = N, e.cz = function(e, t) {
|
|
18609
18609
|
var n;
|
|
18610
18610
|
if (!Ce[t]) return !1;
|
|
18611
18611
|
let r = e == null ? void 0 : e.target, i = ((n = r == null ? void 0 : r.ownerDocument) == null ? void 0 : n.defaultView) || window;
|
|
@@ -20266,9 +20266,9 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
20266
20266
|
return Object.keys(this.active).length;
|
|
20267
20267
|
}
|
|
20268
20268
|
}
|
|
20269
|
-
let M = Math.floor(s.hardwareConcurrency / 2),
|
|
20270
|
-
function
|
|
20271
|
-
return
|
|
20269
|
+
let M = Math.floor(s.hardwareConcurrency / 2), ee, te;
|
|
20270
|
+
function N() {
|
|
20271
|
+
return ee || (ee = new j()), ee;
|
|
20272
20272
|
}
|
|
20273
20273
|
j.workerCount = t.L(globalThis) ? Math.max(Math.min(M, 3), 1) : 1;
|
|
20274
20274
|
class ne {
|
|
@@ -20304,7 +20304,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
20304
20304
|
}
|
|
20305
20305
|
}
|
|
20306
20306
|
function re() {
|
|
20307
|
-
return
|
|
20307
|
+
return te || (te = new ne(N(), t.M), te.registerMessageHandler("GR", ((e, n, r) => t.m(n, r)))), te;
|
|
20308
20308
|
}
|
|
20309
20309
|
function ie(e, n) {
|
|
20310
20310
|
let r = t.O();
|
|
@@ -23041,7 +23041,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
23041
23041
|
var w, A;
|
|
23042
23042
|
if (n[e.crossTileID]) return;
|
|
23043
23043
|
if (d) return void (this.placements[e.crossTileID] = new Ct(!1, !1, !1));
|
|
23044
|
-
let j = !1, M = !1,
|
|
23044
|
+
let j = !1, M = !1, ee = !0, te = null, N = {
|
|
23045
23045
|
box: null,
|
|
23046
23046
|
placeable: !1,
|
|
23047
23047
|
offscreen: null,
|
|
@@ -23059,8 +23059,8 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
23059
23059
|
return r;
|
|
23060
23060
|
}, a = (n, r) => {
|
|
23061
23061
|
if (i.allowVerticalPlacement && e.numVerticalGlyphVertices > 0 && f.verticalTextBox) {
|
|
23062
|
-
for (let e of i.writingModes) if (e === t.ax.vertical ? (
|
|
23063
|
-
} else
|
|
23062
|
+
for (let e of i.writingModes) if (e === t.ax.vertical ? (N = r(), ne = N) : N = n(), N != null && N.placeable) break;
|
|
23063
|
+
} else N = n();
|
|
23064
23064
|
}, l = e.textAnchorOffsetStartIndex, d = e.textAnchorOffsetEndIndex;
|
|
23065
23065
|
if (d === l) {
|
|
23066
23066
|
let r = (t, n) => {
|
|
@@ -23073,7 +23073,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
23073
23073
|
box: null,
|
|
23074
23074
|
offscreen: null
|
|
23075
23075
|
};
|
|
23076
|
-
})), n(
|
|
23076
|
+
})), n(N == null ? void 0 : N.placeable);
|
|
23077
23077
|
} else {
|
|
23078
23078
|
let p = t.aM[(A = (w = this.prevPlacement) == null ? void 0 : w.variableOffsets[e.crossTileID]) == null ? void 0 : A.anchor], h = (t, n, a) => {
|
|
23079
23079
|
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";
|
|
@@ -23083,7 +23083,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
23083
23083
|
let r = i.textAnchorOffsets.get(n);
|
|
23084
23084
|
if (p && r.textAnchor !== p) continue;
|
|
23085
23085
|
let l = this.attemptAnchorPlacement(r, t, f, h, g, x, S, u, D, c, m, T, e, i, a, o, s, v, O);
|
|
23086
|
-
if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0,
|
|
23086
|
+
if (l && (b = l.placedGlyphBoxes, b != null && b.placeable)) return j = !0, te = l.shift, b;
|
|
23087
23087
|
}
|
|
23088
23088
|
p ? p = null : T = _;
|
|
23089
23089
|
}
|
|
@@ -23096,33 +23096,33 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
23096
23096
|
};
|
|
23097
23097
|
a((() => h(le, f.iconBox, t.ax.horizontal)), (() => {
|
|
23098
23098
|
let n = f.verticalTextBox;
|
|
23099
|
-
return i.allowVerticalPlacement && !(
|
|
23099
|
+
return i.allowVerticalPlacement && !(N != null && N.placeable) && e.numVerticalGlyphVertices > 0 && n ? h(n, f.verticalIconBox, t.ax.vertical) : {
|
|
23100
23100
|
box: null,
|
|
23101
23101
|
occluded: !0,
|
|
23102
23102
|
offscreen: null
|
|
23103
23103
|
};
|
|
23104
|
-
})),
|
|
23105
|
-
let g = n(
|
|
23104
|
+
})), N && (j = N.placeable, ee = N.offscreen);
|
|
23105
|
+
let g = n(N == null ? void 0 : N.placeable);
|
|
23106
23106
|
if (!j && this.prevPlacement) {
|
|
23107
23107
|
let t = this.prevPlacement.variableOffsets[e.crossTileID];
|
|
23108
23108
|
t && (this.variableOffsets[e.crossTileID] = t, this.markUsedJustification(i, t.anchor, e, g));
|
|
23109
23109
|
}
|
|
23110
23110
|
}
|
|
23111
23111
|
}
|
|
23112
|
-
if (re =
|
|
23112
|
+
if (re = N, j = re == null ? void 0 : re.placeable, ee = re == null ? void 0 : re.offscreen, e.useRuntimeCollisionCircles && e.centerJustifiedTextSymbolIndex >= 0) {
|
|
23113
23113
|
let n = i.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex), s = t.ay(i.textSizeData, p, n), u = a.get("text-padding");
|
|
23114
|
-
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,
|
|
23114
|
+
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, ee && (ee = ie.offscreen);
|
|
23115
23115
|
}
|
|
23116
23116
|
if (f.iconFeatureIndex && (ce = f.iconFeatureIndex), f.iconBox) {
|
|
23117
|
-
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C &&
|
|
23118
|
-
ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable),
|
|
23117
|
+
let e = (e) => this.collisionIndex.placeCollisionBox(e, y, u, D, c, S, x, s, m.predicate, O, C && te ? te : void 0, k);
|
|
23118
|
+
ne && ne.placeable && f.verticalIconBox ? (ae = e(f.verticalIconBox), M = ae.placeable) : (ae = e(f.iconBox), M = ae.placeable), ee && (ee = ae.offscreen);
|
|
23119
23119
|
}
|
|
23120
23120
|
let ue = h || e.numHorizontalGlyphVertices === 0 && e.numVerticalGlyphVertices === 0, de = g || e.numIconVertices === 0;
|
|
23121
23121
|
ue || de ? de ? ue || M && (M = j) : j = M && j : M = j = M && j;
|
|
23122
23122
|
let fe = M && ae.placeable;
|
|
23123
23123
|
if (j && re.placeable && this.collisionIndex.insertCollisionBox(re.box, _, a.get("text-ignore-placement"), i.bucketInstanceId, ne && ne.placeable && se ? se : oe, m.ID), fe && 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");
|
|
23124
23124
|
if (i.bucketInstanceId === 0) throw Error("bucket.bucketInstanceId can't be 0");
|
|
23125
|
-
this.placements[e.crossTileID] = new Ct((j || T) && !(re != null && re.occluded), (M || E) && !(ae != null && ae.occluded),
|
|
23125
|
+
this.placements[e.crossTileID] = new Ct((j || T) && !(re != null && re.occluded), (M || E) && !(ae != null && ae.occluded), ee || i.justReloaded), n[e.crossTileID] = !0;
|
|
23126
23126
|
};
|
|
23127
23127
|
if (w) {
|
|
23128
23128
|
if (e.symbolInstanceStart !== 0) throw Error("bucket.bucketInstanceId should be 0");
|
|
@@ -26530,7 +26530,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
26530
26530
|
let t = this.tileManagers[e].getSource().type;
|
|
26531
26531
|
t !== "vector" && t !== "geojson" || this.tileManagers[e].reload();
|
|
26532
26532
|
}
|
|
26533
|
-
}, this.map = e, this.dispatcher = new ne(
|
|
26533
|
+
}, this.map = e, this.dispatcher = new ne(N(), 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);
|
|
26534
26534
|
let a = ((r = e._container) == null ? void 0 : r.lang) || typeof document < "u" && ((i = document.documentElement) == null ? void 0 : i.lang) || void 0;
|
|
26535
26535
|
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(Ee, this._rtlPluginLoaded), this.on("data", ((e) => {
|
|
26536
26536
|
if (e.dataType !== "source" || e.sourceDataType !== "metadata") return;
|
|
@@ -28693,11 +28693,11 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
28693
28693
|
if (!l) continue;
|
|
28694
28694
|
let d = a ? l.text : l.icon;
|
|
28695
28695
|
if (!(d != null && d.segments.get().length) || !d.hasVisibleVertices) continue;
|
|
28696
|
-
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,
|
|
28697
|
-
if (a)
|
|
28696
|
+
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, N, ne = [0, 0], re = null;
|
|
28697
|
+
if (a) ee = i.glyphAtlasTexture, te = _.LINEAR, M = i.glyphAtlasTexture.size, l.iconsInText && (ne = i.imageAtlasTexture.size, re = i.imageAtlasTexture, N = T || e.options.rotating || e.options.zooming || g.kind === "composite" || g.kind === "camera" ? _.LINEAR : _.NEAREST);
|
|
28698
28698
|
else {
|
|
28699
28699
|
let t = r.layout.get("icon-size").constantOr(0) !== 1 || l.iconsNeedLinear;
|
|
28700
|
-
|
|
28700
|
+
ee = i.imageAtlasTexture, te = h || e.options.rotating || e.options.zooming || t || T ? _.LINEAR : _.NEAREST, M = i.imageAtlasTexture.size;
|
|
28701
28701
|
}
|
|
28702
28702
|
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({
|
|
28703
28703
|
overscaledTileID: c,
|
|
@@ -28717,10 +28717,10 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
28717
28717
|
buffers: d,
|
|
28718
28718
|
uniformValues: me,
|
|
28719
28719
|
projectionData: ce,
|
|
28720
|
-
atlasTexture:
|
|
28720
|
+
atlasTexture: ee,
|
|
28721
28721
|
atlasTextureIcon: re,
|
|
28722
|
-
atlasInterpolation:
|
|
28723
|
-
atlasInterpolationIcon:
|
|
28722
|
+
atlasInterpolation: te,
|
|
28723
|
+
atlasInterpolationIcon: N,
|
|
28724
28724
|
isSDF: h,
|
|
28725
28725
|
hasHalo: pe
|
|
28726
28726
|
};
|
|
@@ -33723,8 +33723,8 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
33723
33723
|
we[e] = t;
|
|
33724
33724
|
})(e, n);
|
|
33725
33725
|
})), e.clearPrewarmedResources = function() {
|
|
33726
|
-
let e =
|
|
33727
|
-
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A),
|
|
33726
|
+
let e = ee;
|
|
33727
|
+
e && (e.isPreloaded() && e.numActive() === 1 ? (e.release(A), ee = 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()"));
|
|
33728
33728
|
}, e.createTileMesh = pn, e.getGlobalDispatcher = re, e.getMaxParallelImageRequests = function() {
|
|
33729
33729
|
return t.c.MAX_PARALLEL_IMAGE_REQUESTS;
|
|
33730
33730
|
}, e.getRTLTextPluginStatus = function() {
|
|
@@ -33740,7 +33740,7 @@ var P = /* @__PURE__ */ e(o(), 1), De = /* @__PURE__ */ e(te(), 1), Oe = (/* @__
|
|
|
33740
33740
|
}, e.isTimeFrozen = function() {
|
|
33741
33741
|
return c.isFrozen();
|
|
33742
33742
|
}, e.now = l, e.prewarm = function() {
|
|
33743
|
-
|
|
33743
|
+
N().acquire(A);
|
|
33744
33744
|
}, e.restoreNow = function() {
|
|
33745
33745
|
c.restoreNow();
|
|
33746
33746
|
}, e.setMaxParallelImageRequests = function(e) {
|
|
@@ -33941,12 +33941,12 @@ var Ge = /*#__PURE__*/ He(Ue, 9, 1), Ke = /*#__PURE__*/ He(We, 5, 1), qe = funct
|
|
|
33941
33941
|
var y = j >> 4;
|
|
33942
33942
|
if (y < 16) T[D++] = y;
|
|
33943
33943
|
else {
|
|
33944
|
-
var M = 0,
|
|
33945
|
-
for (y == 16 ? (
|
|
33944
|
+
var M = 0, ee = 0;
|
|
33945
|
+
for (y == 16 ? (ee = 3 + Je(e, d, 3), d += 2, M = T[D - 1]) : y == 17 ? (ee = 3 + Je(e, d, 7), d += 3) : y == 18 && (ee = 11 + Je(e, d, 127), d += 7); ee--;) T[D++] = M;
|
|
33946
33946
|
}
|
|
33947
33947
|
}
|
|
33948
|
-
var
|
|
33949
|
-
h = qe(
|
|
33948
|
+
var te = T.subarray(0, S), N = T.subarray(S);
|
|
33949
|
+
h = qe(te), g = qe(N), p = He(te, h, 1), m = He(N, g, 1);
|
|
33950
33950
|
} else Qe(1);
|
|
33951
33951
|
if (d > _) {
|
|
33952
33952
|
c && Qe(0);
|
|
@@ -33972,10 +33972,10 @@ var Ge = /*#__PURE__*/ He(Ue, 9, 1), Ke = /*#__PURE__*/ He(We, 5, 1), qe = funct
|
|
|
33972
33972
|
}
|
|
33973
33973
|
var ce = m[R(e, d) & re], le = ce >> 4;
|
|
33974
33974
|
ce || Qe(3), d += ce & 15;
|
|
33975
|
-
var
|
|
33975
|
+
var N = ze[le];
|
|
33976
33976
|
if (le > 3) {
|
|
33977
33977
|
var se = Ne[le];
|
|
33978
|
-
|
|
33978
|
+
N += R(e, d) & (1 << se) - 1, d += se;
|
|
33979
33979
|
}
|
|
33980
33980
|
if (d > _) {
|
|
33981
33981
|
c && Qe(0);
|
|
@@ -33983,11 +33983,11 @@ var Ge = /*#__PURE__*/ He(Ue, 9, 1), Ke = /*#__PURE__*/ He(We, 5, 1), qe = funct
|
|
|
33983
33983
|
}
|
|
33984
33984
|
s && l(f + 131072);
|
|
33985
33985
|
var ue = f + oe;
|
|
33986
|
-
if (f <
|
|
33987
|
-
var de = a -
|
|
33986
|
+
if (f < N) {
|
|
33987
|
+
var de = a - N, fe = Math.min(N, ue);
|
|
33988
33988
|
for (de + f < 0 && Qe(3); f < fe; ++f) n[f] = r[de + f];
|
|
33989
33989
|
}
|
|
33990
|
-
for (; f < ue; ++f) n[f] = n[f -
|
|
33990
|
+
for (; f < ue; ++f) n[f] = n[f - N];
|
|
33991
33991
|
}
|
|
33992
33992
|
}
|
|
33993
33993
|
t.l = p, t.p = ie, t.b = f, t.f = u, p && (u = 1, t.m = h, t.d = m, t.n = g);
|
|
@@ -34798,7 +34798,7 @@ function an({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34798
34798
|
u.off("style.load", b), u.off("styleimagemissing", d), u.remove();
|
|
34799
34799
|
};
|
|
34800
34800
|
};
|
|
34801
|
-
return i ?
|
|
34801
|
+
return i ? k().then(() => {
|
|
34802
34802
|
a || s();
|
|
34803
34803
|
}) : s(), () => {
|
|
34804
34804
|
a = !0, o == null || o(), f(void 0);
|
|
@@ -34812,7 +34812,7 @@ function an({ sceneDef: e, geoConfig: t, tileSource: n, mapOptions: r, debug: i,
|
|
|
34812
34812
|
width: "100%",
|
|
34813
34813
|
height: "100%"
|
|
34814
34814
|
},
|
|
34815
|
-
children: d && /* @__PURE__ */ (0, Wt.jsx)(
|
|
34815
|
+
children: d && /* @__PURE__ */ (0, Wt.jsx)(T, {
|
|
34816
34816
|
...d,
|
|
34817
34817
|
scene: e,
|
|
34818
34818
|
debug: i,
|
|
@@ -34951,7 +34951,7 @@ function vn(e, t, n, r = {}) {
|
|
|
34951
34951
|
//#region src/components/Maplibre/useCameraReactions.ts
|
|
34952
34952
|
var yn = m, bn = 15, xn = 24, Sn = 20;
|
|
34953
34953
|
function Cn(e) {
|
|
34954
|
-
return de(e, he(e,
|
|
34954
|
+
return de(e, he(e, y())).expand(Sn);
|
|
34955
34955
|
}
|
|
34956
34956
|
function wn(e, t) {
|
|
34957
34957
|
return Math.min(Math.max(t, e.getMinZoom()), e.getMaxZoom());
|
|
@@ -34980,13 +34980,13 @@ function En(e, t, n) {
|
|
|
34980
34980
|
yn.moveToBooths = null;
|
|
34981
34981
|
return;
|
|
34982
34982
|
}
|
|
34983
|
-
vn(r, Cn(
|
|
34983
|
+
vn(r, Cn(b.fromUnion(...i.map((e) => e.rect))), t), yn.moveToBooths = null;
|
|
34984
34984
|
}
|
|
34985
34985
|
}), h(() => yn.moveToRect, (n) => {
|
|
34986
34986
|
var r;
|
|
34987
34987
|
let i = e.current;
|
|
34988
34988
|
if (!n || !i || !t) return;
|
|
34989
|
-
let { width: a, height: o } = n.size, s = a > 0 && o > 0 ? xe(n) : n, c = (r = yn.moveToRectPaddingPercent) == null ? he(n,
|
|
34989
|
+
let { width: a, height: o } = n.size, s = a > 0 && o > 0 ? xe(n) : n, c = (r = yn.moveToRectPaddingPercent) == null ? he(n, y()) : r;
|
|
34990
34990
|
vn(i, de(s, c / (1 - 2 * c)), t, { padding: 0 }), yn.moveToRect = null, yn.moveToRectPaddingPercent = null;
|
|
34991
34991
|
}), h(() => yn.zoomBy, (t) => {
|
|
34992
34992
|
let n = e.current;
|
|
@@ -35026,10 +35026,10 @@ function En(e, t, n) {
|
|
|
35026
35026
|
if (!(m.list.type === "search" && !m.list.text)) {
|
|
35027
35027
|
let { rect: e } = fe({
|
|
35028
35028
|
layerViewbox: p.layerStore.viewboxRectangle,
|
|
35029
|
-
explicitArea:
|
|
35029
|
+
explicitArea: S() ? y() : null,
|
|
35030
35030
|
layerRectangle: p.layerStore.rectangle,
|
|
35031
35031
|
sceneDef: n,
|
|
35032
|
-
svgArea:
|
|
35032
|
+
svgArea: y()
|
|
35033
35033
|
});
|
|
35034
35034
|
vn(i, e, t);
|
|
35035
35035
|
}
|
|
@@ -35222,7 +35222,7 @@ function Zn() {
|
|
|
35222
35222
|
} : r != null && r.styleUrl ? {
|
|
35223
35223
|
style: r.styleUrl,
|
|
35224
35224
|
offline: r.offline
|
|
35225
|
-
} : Gn((n = ae()) == null || (n = n.properties) == null || (n = n.config) == null ? void 0 : n.style,
|
|
35225
|
+
} : Gn((n = ae()) == null || (n = n.properties) == null || (n = n.config) == null ? void 0 : n.style, v.backgroundColor) === "dark" ? qn : Kn;
|
|
35226
35226
|
}
|
|
35227
35227
|
//#endregion
|
|
35228
35228
|
//#region src/components/Maplibre/useDimming.ts
|
|
@@ -35282,7 +35282,7 @@ function tr(e, t = /* @__PURE__ */ new Map()) {
|
|
|
35282
35282
|
let n = (r = t.get(e.name)) == null ? [] : r;
|
|
35283
35283
|
n.push(e), t.set(e.name, n);
|
|
35284
35284
|
}
|
|
35285
|
-
for (let r of (n = e.children) == null ? [] : n)
|
|
35285
|
+
for (let r of (n = e.children) == null ? [] : n) D(r) && tr(r, t);
|
|
35286
35286
|
return t;
|
|
35287
35287
|
}
|
|
35288
35288
|
//#endregion
|
|
@@ -35330,7 +35330,7 @@ function fr(e, t, i) {
|
|
|
35330
35330
|
if (!C()) return;
|
|
35331
35331
|
let o = t.current;
|
|
35332
35332
|
if (!e || !o || !i) return;
|
|
35333
|
-
let { gpsConfig: s } = i, c = /* @__PURE__ */ new Set(), l = window.devicePixelRatio || 1, d =
|
|
35333
|
+
let { gpsConfig: s } = i, c = /* @__PURE__ */ new Set(), l = window.devicePixelRatio || 1, d = j(40, l, ((a = v.colors) == null || (a = a.booths) == null ? void 0 : a.selected) || "#3b6ef5"), f = O(te, 40, l).tipOffset, m = O(w, 40, l).tipOffset, h = (e) => ce(e.center.x, e.center.y, s), g = (e, t) => {
|
|
35334
35334
|
o.hasImage(e) && o.removeImage(e), o.addImage(e, t, { pixelRatio: l }), c.add(e);
|
|
35335
35335
|
}, _ = (e) => {
|
|
35336
35336
|
let t = p.poiMarkerStore.markers, n = new Set(t.map((e) => dr(e.boothId)));
|
|
@@ -35341,7 +35341,7 @@ function fr(e, t, i) {
|
|
|
35341
35341
|
(e || !c.has(t)) && g(t, n.icon);
|
|
35342
35342
|
}
|
|
35343
35343
|
c.has(cr) || g(cr, d);
|
|
35344
|
-
},
|
|
35344
|
+
}, y = () => {
|
|
35345
35345
|
let e = p.poiMarkerStore.selectedMarkerId, t = p.poiMarkerStore.outdoorFilter, n = !t.active, r = p.poiMarkerStore.markers;
|
|
35346
35346
|
return e === null ? t.active && (r = t.matchingMarkers) : r = r.filter((t) => t.boothId === e), {
|
|
35347
35347
|
cluster: n,
|
|
@@ -35361,7 +35361,7 @@ function fr(e, t, i) {
|
|
|
35361
35361
|
}))
|
|
35362
35362
|
}
|
|
35363
35363
|
};
|
|
35364
|
-
},
|
|
35364
|
+
}, x = () => {
|
|
35365
35365
|
var e, t, n;
|
|
35366
35366
|
let r = null;
|
|
35367
35367
|
for (let n of (e = (t = o.getStyle()) == null ? void 0 : t.layers) == null ? [] : e) {
|
|
@@ -35374,17 +35374,17 @@ function fr(e, t, i) {
|
|
|
35374
35374
|
}
|
|
35375
35375
|
}
|
|
35376
35376
|
return (n = r) == null ? ["Noto Sans Regular"] : n;
|
|
35377
|
-
},
|
|
35377
|
+
}, S = null, T = () => {
|
|
35378
35378
|
for (let e of lr) o.getLayer(e) && o.removeLayer(e);
|
|
35379
|
-
o.getSource(rr) && o.removeSource(rr),
|
|
35380
|
-
},
|
|
35381
|
-
if (
|
|
35379
|
+
o.getSource(rr) && o.removeSource(rr), S = null;
|
|
35380
|
+
}, E = (e, t) => {
|
|
35381
|
+
if (S !== null && S !== t && T(), o.getSource(rr) || (o.addSource(rr, {
|
|
35382
35382
|
type: "geojson",
|
|
35383
35383
|
data: e,
|
|
35384
35384
|
cluster: t,
|
|
35385
35385
|
clusterRadius: 50,
|
|
35386
35386
|
clusterMinPoints: 3
|
|
35387
|
-
}),
|
|
35387
|
+
}), S = t), o.getLayer(ir)) return;
|
|
35388
35388
|
let i = ["!", ["has", "point_count"]], a = [
|
|
35389
35389
|
"==",
|
|
35390
35390
|
[
|
|
@@ -35413,7 +35413,7 @@ function fr(e, t, i) {
|
|
|
35413
35413
|
filter: ["has", "point_count"],
|
|
35414
35414
|
layout: {
|
|
35415
35415
|
"text-field": ["get", "point_count_abbreviated"],
|
|
35416
|
-
"text-font":
|
|
35416
|
+
"text-font": x(),
|
|
35417
35417
|
"text-size": 14,
|
|
35418
35418
|
"text-allow-overlap": !0,
|
|
35419
35419
|
"text-ignore-placement": !0
|
|
@@ -35452,20 +35452,20 @@ function fr(e, t, i) {
|
|
|
35452
35452
|
"icon-ignore-placement": !0
|
|
35453
35453
|
}
|
|
35454
35454
|
});
|
|
35455
|
-
},
|
|
35455
|
+
}, D = () => {
|
|
35456
35456
|
if (!o.getLayer(ir)) return;
|
|
35457
35457
|
let e = Qn() ? 1 - _e : 1;
|
|
35458
35458
|
o.setPaintProperty(ir, "circle-opacity", e), o.setPaintProperty(ir, "circle-stroke-opacity", e), o.setPaintProperty(ar, "text-opacity", e), o.setPaintProperty(or, "icon-opacity", e), o.setPaintProperty(sr, "icon-opacity", e);
|
|
35459
|
-
},
|
|
35459
|
+
}, k = (e = !1) => {
|
|
35460
35460
|
var t;
|
|
35461
35461
|
_(e);
|
|
35462
|
-
let { cluster: n, data: r } =
|
|
35463
|
-
|
|
35462
|
+
let { cluster: n, data: r } = y();
|
|
35463
|
+
E(r, n), (t = o.getSource(rr)) == null || t.setData(r), D();
|
|
35464
35464
|
}, A = (e) => {
|
|
35465
35465
|
if (!e.length) return;
|
|
35466
35466
|
let t = hn(50);
|
|
35467
35467
|
if (e.every((e) => gn(o, h(e), t))) return;
|
|
35468
|
-
let n = fn(
|
|
35468
|
+
let n = fn(b.fromPoints(e.map((e) => e.center)), s), r = o.cameraForBounds(n, {
|
|
35469
35469
|
padding: t,
|
|
35470
35470
|
bearing: i.bearing
|
|
35471
35471
|
});
|
|
@@ -35476,13 +35476,13 @@ function fr(e, t, i) {
|
|
|
35476
35476
|
duration: 500,
|
|
35477
35477
|
essential: !0
|
|
35478
35478
|
});
|
|
35479
|
-
},
|
|
35479
|
+
}, M = (e) => {
|
|
35480
35480
|
var t;
|
|
35481
35481
|
let n = (t = e.features) == null || (t = t[0]) == null || (t = t.properties) == null ? void 0 : t.boothId;
|
|
35482
35482
|
if (typeof n != "number") return;
|
|
35483
35483
|
let r = p.boothStore.boothById.get(n);
|
|
35484
35484
|
r && p.clickBooth(r);
|
|
35485
|
-
},
|
|
35485
|
+
}, ee = (e) => {
|
|
35486
35486
|
var t, n, r;
|
|
35487
35487
|
let i = (t = e.features) == null ? void 0 : t[0], a = i == null || (n = i.properties) == null ? void 0 : n.cluster_id, s = o.getSource(rr);
|
|
35488
35488
|
if (typeof a != "number" || !s || (i == null || (r = i.geometry) == null ? void 0 : r.type) !== "Point") return;
|
|
@@ -35495,23 +35495,23 @@ function fr(e, t, i) {
|
|
|
35495
35495
|
});
|
|
35496
35496
|
});
|
|
35497
35497
|
};
|
|
35498
|
-
o.on("click", or,
|
|
35498
|
+
o.on("click", or, M), o.on("click", sr, M), o.on("click", ir, ee), ne.set((e, t) => {
|
|
35499
35499
|
let n = ur.filter((e) => !!o.getLayer(e));
|
|
35500
35500
|
if (!n.length) return !1;
|
|
35501
35501
|
let r = o.getCanvas().getBoundingClientRect();
|
|
35502
35502
|
return o.queryRenderedFeatures([e - r.left, t - r.top], { layers: n }).length > 0;
|
|
35503
35503
|
});
|
|
35504
|
-
let
|
|
35505
|
-
c.clear(),
|
|
35504
|
+
let N = () => {
|
|
35505
|
+
c.clear(), k(!0);
|
|
35506
35506
|
};
|
|
35507
|
-
o.on("style.load",
|
|
35508
|
-
let
|
|
35509
|
-
|
|
35510
|
-
}), oe = u(() => Qn(), () =>
|
|
35511
|
-
return
|
|
35512
|
-
|
|
35507
|
+
o.on("style.load", N);
|
|
35508
|
+
let re = u(() => p.poiMarkerStore.markers, () => k(!0)), ie = u(() => p.poiMarkerStore.selectedMarkerId, () => k()), ae = u(() => p.poiMarkerStore.outdoorFilter.key, () => {
|
|
35509
|
+
k(), A(p.poiMarkerStore.outdoorFilter.matchingMarkers);
|
|
35510
|
+
}), oe = u(() => Qn(), () => D());
|
|
35511
|
+
return k(!0), () => {
|
|
35512
|
+
re(), ie(), ae(), oe(), ne.set(null), o.off("style.load", N), o.off("click", or, M), o.off("click", sr, M), o.off("click", ir, ee);
|
|
35513
35513
|
try {
|
|
35514
|
-
|
|
35514
|
+
T();
|
|
35515
35515
|
for (let e of c) o.hasImage(e) && o.removeImage(e);
|
|
35516
35516
|
} catch {}
|
|
35517
35517
|
};
|
|
@@ -35724,15 +35724,15 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
|
|
|
35724
35724
|
var t;
|
|
35725
35725
|
let [n, r] = (0, P.useState)(null), [i, a] = (0, P.useState)(!1), o = (0, P.useRef)(null), s = (0, P.useRef)(null), d = (0, P.useRef)(null), f = (0, P.useRef)(null), h = (0, P.useRef)(null), g = (0, P.useMemo)(() => _n(), []), _ = (0, P.useMemo)(() => fe({
|
|
35726
35726
|
layerViewbox: p.layerStore.viewboxRectangle,
|
|
35727
|
-
explicitArea:
|
|
35727
|
+
explicitArea: S() ? y() : null,
|
|
35728
35728
|
layerRectangle: p.layerStore.rectangle,
|
|
35729
35729
|
sceneDef: n,
|
|
35730
|
-
svgArea:
|
|
35731
|
-
}), [n]),
|
|
35730
|
+
svgArea: y()
|
|
35731
|
+
}), [n]), b = _.rect, C = (0, P.useMemo)(() => {
|
|
35732
35732
|
if (!g) return null;
|
|
35733
|
-
let e = me(_.source) ? 0 : he(
|
|
35733
|
+
let e = me(_.source) ? 0 : he(b, y()), t = hn(0);
|
|
35734
35734
|
e && m.screenSize && (t.left += m.screenSize.width * e, t.right += m.screenSize.width * e, t.top += m.screenSize.height * e, t.bottom += m.screenSize.height * e);
|
|
35735
|
-
let n = m.screenSize ? mn(
|
|
35735
|
+
let n = m.screenSize ? mn(b, g.gpsConfig, g.bearing, {
|
|
35736
35736
|
width: m.screenSize.width,
|
|
35737
35737
|
height: m.screenSize.height
|
|
35738
35738
|
}, t) : null;
|
|
@@ -35744,17 +35744,17 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
|
|
|
35744
35744
|
center: g.center,
|
|
35745
35745
|
bearing: g.bearing,
|
|
35746
35746
|
zoom: g.zoom,
|
|
35747
|
-
bounds: fn(
|
|
35747
|
+
bounds: fn(b, g.gpsConfig),
|
|
35748
35748
|
fitPadding: t,
|
|
35749
35749
|
zoomAdjustment: on
|
|
35750
35750
|
};
|
|
35751
35751
|
}, [
|
|
35752
35752
|
g,
|
|
35753
35753
|
_,
|
|
35754
|
-
|
|
35754
|
+
b
|
|
35755
35755
|
]), w = (0, P.useMemo)(() => {
|
|
35756
35756
|
var e;
|
|
35757
|
-
return g ? yr(g.gpsConfig, (e =
|
|
35757
|
+
return g ? yr(g.gpsConfig, (e = x()) == null ? void 0 : e.getAttribute("units")) : null;
|
|
35758
35758
|
}, [g]), T = m.mapSettings.pitchdegrees, D = m.maxPitch, O = (0, P.useMemo)(() => {
|
|
35759
35759
|
let t = e === "map2d";
|
|
35760
35760
|
return {
|
|
@@ -35766,7 +35766,7 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
|
|
|
35766
35766
|
e,
|
|
35767
35767
|
T,
|
|
35768
35768
|
D
|
|
35769
|
-
]), k = (0, P.useRef)(O), A = (0, P.useMemo)(() => Zn(), []),
|
|
35769
|
+
]), k = (0, P.useRef)(O), A = (0, P.useMemo)(() => Zn(), []), j = (0, P.useMemo)(() => {
|
|
35770
35770
|
if (!n || !w) return null;
|
|
35771
35771
|
let e = n.rootLayer.children, t = E(e) ? e.filter((e) => e.name.toLowerCase() !== "areamap") : e;
|
|
35772
35772
|
return {
|
|
@@ -35778,13 +35778,13 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
|
|
|
35778
35778
|
background: void 0,
|
|
35779
35779
|
staticTransform: w
|
|
35780
35780
|
};
|
|
35781
|
-
}, [n, w]),
|
|
35781
|
+
}, [n, w]), te = (0, P.useRef)(null);
|
|
35782
35782
|
(0, P.useEffect)(() => {
|
|
35783
|
-
|
|
35784
|
-
}, [
|
|
35785
|
-
if (
|
|
35786
|
-
}, [
|
|
35787
|
-
let { mapDimAnimatorRef:
|
|
35783
|
+
te.current = j;
|
|
35784
|
+
}, [j]), (0, P.useEffect)(() => {
|
|
35785
|
+
if (j) return pe(j), () => pe(void 0);
|
|
35786
|
+
}, [j]);
|
|
35787
|
+
let { mapDimAnimatorRef: ne, venueDimAnimatorRef: ie, applyDimmingTarget: ae, handleMapDimLayerReady: oe } = $n(o, te);
|
|
35788
35788
|
(0, P.useEffect)(() => {
|
|
35789
35789
|
if (!g) return;
|
|
35790
35790
|
let e = !1;
|
|
@@ -35794,20 +35794,20 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
|
|
|
35794
35794
|
return;
|
|
35795
35795
|
}
|
|
35796
35796
|
d.current = n;
|
|
35797
|
-
let i = (0, De.default)(
|
|
35798
|
-
r(
|
|
35797
|
+
let i = (0, De.default)(v.backgroundColor === "none" ? "#ebebeb" : v.backgroundColor).string();
|
|
35798
|
+
r(M(t, y(), i));
|
|
35799
35799
|
}).catch((t) => {
|
|
35800
35800
|
e || console.warn("Maplibre scene configuration failed.", t);
|
|
35801
35801
|
});
|
|
35802
|
-
let t =
|
|
35802
|
+
let t = ne.current, n = ie.current;
|
|
35803
35803
|
return () => {
|
|
35804
35804
|
var r;
|
|
35805
35805
|
e = !0, Pr(), (r = d.current) == null || r.call(d), d.current = null, h.current && (p.maplibreStore.clearCameraPortIfCurrent(h.current), h.current = null), o.current = null, s.current = null, f.current = null, a(!1), t == null || t.stop(), n == null || n.stop(), m.sceneDefReady = !1;
|
|
35806
35806
|
};
|
|
35807
35807
|
}, [
|
|
35808
35808
|
g,
|
|
35809
|
-
|
|
35810
|
-
|
|
35809
|
+
ne,
|
|
35810
|
+
ie
|
|
35811
35811
|
]);
|
|
35812
35812
|
let se = (0, P.useCallback)((e, t) => {
|
|
35813
35813
|
var n;
|
|
@@ -35827,28 +35827,28 @@ var Fr = () => m.overlayPosition === "bottom", Ir = f(function({ viewMode: e })
|
|
|
35827
35827
|
var e;
|
|
35828
35828
|
return (e = k.current.pitch) == null ? 0 : e;
|
|
35829
35829
|
});
|
|
35830
|
-
h.current = i, p.maplibreStore.setCameraPort(i), p.fp.getCenterCoordinates = () => ue(s.current), ae({ immediate: !0 }),
|
|
35830
|
+
h.current = i, p.maplibreStore.setCameraPort(i), p.fp.getCenterCoordinates = () => ue(s.current), ae({ immediate: !0 }), N(), p.layerStore.layersLoaded = !0, p.fp.onFpConfigured && p.fp.onFpConfigured(), m.sceneDefReady = !0, t();
|
|
35831
35831
|
}, [ae, g]);
|
|
35832
35832
|
(0, P.useEffect)(() => {
|
|
35833
35833
|
k.current = O, Xn(o.current, O);
|
|
35834
|
-
}, [O]), er(i, o), pr(
|
|
35834
|
+
}, [O]), er(i, o), pr(j, s), fr(i, o, g), nr(j, o, g), En(o, g, j), ye({
|
|
35835
35835
|
enabled: p.layerStore.layersLoaded && m.buildRoute,
|
|
35836
|
-
scene:
|
|
35836
|
+
scene: j == null ? void 0 : j
|
|
35837
35837
|
});
|
|
35838
|
-
let ce = (t =
|
|
35838
|
+
let ce = (t = ee.busRoutes) != null && t;
|
|
35839
35839
|
Ce({
|
|
35840
35840
|
permission: p.layerStore.layersLoaded && ce,
|
|
35841
|
-
scene:
|
|
35842
|
-
dataJsonUrl: `https://${jr}/v1/routes?expo=${
|
|
35843
|
-
websocketUrl: `wss://${jr}/locations?expo=${
|
|
35841
|
+
scene: j == null ? void 0 : j,
|
|
35842
|
+
dataJsonUrl: `https://${jr}/v1/routes?expo=${v.EXPO}`,
|
|
35843
|
+
websocketUrl: `wss://${jr}/locations?expo=${v.EXPO}`
|
|
35844
35844
|
});
|
|
35845
35845
|
let le = (0, P.useCallback)((e) => {
|
|
35846
35846
|
console.warn("Maplibre map failed to load; falling back to floorplan mode.", e), p.maplibreStore.deactivateMaplibre();
|
|
35847
35847
|
}, []);
|
|
35848
|
-
if (!g || !C || !w || !
|
|
35848
|
+
if (!g || !C || !w || !j) return null;
|
|
35849
35849
|
let de = `${C.center.join(",")}:${C.bearing}:${C.zoom}`;
|
|
35850
35850
|
return /* @__PURE__ */ (0, Wt.jsxs)(an, {
|
|
35851
|
-
sceneDef:
|
|
35851
|
+
sceneDef: j,
|
|
35852
35852
|
geoConfig: C,
|
|
35853
35853
|
tileSource: A,
|
|
35854
35854
|
mapOptions: O,
|