@expofp/floorplan 3.45.2 → 3.45.4
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-Crfda6Lz.js → Button-CftScIdx.js} +5 -5
- package/dist/browser/{CookieConsent-2RwTH-WJ.js → CookieConsent-ByS7cPh9.js} +7 -7
- package/dist/browser/{Debug-Kc7acuW6.js → Debug-CDb2j0OF.js} +7 -7
- package/dist/browser/{DebugTools-Bcy_rIA6.js → DebugTools-jdOEpl8C.js} +6 -6
- package/dist/browser/{Demo-DtKyfXaG.js → Demo-CTLfudbP.js} +9 -9
- package/dist/browser/{Free-DIldGHdP.js → Free-C5QMNYRI.js} +10 -10
- package/dist/browser/{GalleryContainer-BkkCj4Od.js → GalleryContainer-BUhs_oBk.js} +11 -11
- package/dist/browser/{GpsLoader-Ddbsa0Xv.js → GpsLoader-BSWIXvfs.js} +13 -13
- package/dist/browser/{KioskStore-l3coFOMN.js → KioskStore-BC-gl1wE.js} +9 -9
- package/dist/browser/{LayerStore-Clz_ooRC.js → LayerStore-CONC-3Gj.js} +25 -25
- package/dist/browser/{MaplibreAdapter-CcyHg1C8.js → MaplibreAdapter-BXKE5rxG.js} +28 -28
- package/dist/browser/{ModalContainer-BQgezeI0.js → ModalContainer-BpM9aPfz.js} +10 -10
- package/dist/browser/{PermissionNotice-CfNcWjwj.js → PermissionNotice-BM5kQYe7.js} +6 -6
- package/dist/browser/{RouteStore-DmI3xo6Y.js → RouteStore-C7okfu9_.js} +9 -9
- package/dist/browser/{SetKioskMode-CEKnGx3s.js → SetKioskMode-DabqQvMH.js} +11 -11
- package/dist/browser/{ShowKiosk-DX5_HdN1.js → ShowKiosk-DvOBEV0v.js} +10 -10
- package/dist/browser/{UIState-BtsQF4Qd.js → UIState-Ce9F8YFe.js} +229 -230
- package/dist/browser/{ViewerMenuPanel-DE1PS7On.js → ViewerMenuPanel-FsMuHE9m.js} +10 -10
- package/dist/browser/{add-debug-secret-listener-DrTVYjLv.js → add-debug-secret-listener-DEPSZS-A.js} +1 -1
- package/dist/browser/{adopt-global-settings-D3Ezjf-T.js → adopt-global-settings-ptJCSHgd.js} +9 -9
- package/dist/browser/{boolean-editor-BWZ5tP5I.js → boolean-editor-C_RdXFiI.js} +9 -9
- package/dist/browser/{bootIntercom-BYA7uJn4.js → bootIntercom-CnpSeS09.js} +2 -2
- package/dist/browser/bundle.json +85 -85
- package/dist/browser/{camera-events-JR26Hdcu.js → camera-events-BYUTGOGy.js} +1 -1
- package/dist/browser/{classnames-CCXT3oJS.js → classnames-I5odALD0.js} +2 -2
- package/dist/browser/{client-Dn9Zr5pe.js → client-TnBerOtS.js} +5 -5
- package/dist/browser/{components-xHw_gBa5.js → components-CEGOfvRn.js} +48 -48
- package/dist/browser/{create-live-plan-DDxPT-Pe.js → create-live-plan-msjLUPAb.js} +14 -14
- package/dist/browser/{debug-context-CcikkQPi.js → debug-context-8s7JYsHP.js} +5 -5
- package/dist/browser/{debug-overlay-BlVOrhsh.js → debug-overlay-BEEAevvE.js} +10 -10
- package/dist/browser/{debug-ui-ByJjooBA.js → debug-ui-BWDU1_DK.js} +6 -6
- package/dist/browser/{dist-zf4NxUGc.js → dist-B7taugxI.js} +5 -5
- package/dist/browser/{dist-Cf6IReKz.js → dist-BL9v1eQu.js} +3 -3
- package/dist/browser/{dist-D5tNj-0Y.js → dist-Dg8H-fF9.js} +6 -6
- package/dist/browser/{efp-debug-init-al55q10u.js → efp-debug-init-3uYSkVQl.js} +3 -3
- package/dist/browser/{enum-editor-BBB3sWCH.js → enum-editor-DiE-Q-gC.js} +4 -4
- package/dist/browser/{es5-CVG4aGRa.js → es5-D2KUWXXM.js} +2 -2
- package/dist/browser/{event-head-DyDtmXOE.js → event-head-DXLhGPVQ.js} +1 -1
- package/dist/browser/{event-not-found-DQhH655U.js → event-not-found-ClTL2wLx.js} +3 -3
- package/dist/browser/{event-scoped-cache-BRqlbRWj.js → event-scoped-cache-CcA_qeS6.js} +2 -2
- package/dist/browser/{expofpUrl-Cnkbj5KP.js → expofpUrl-BTeumhPB.js} +1 -1
- package/dist/browser/{exports-CriZf319.js → exports-BezdpCeZ.js} +1 -1
- package/dist/browser/{favicon-BN2jB3cD.js → favicon-eEoLTD6j.js} +1 -1
- package/dist/browser/{fetch-retry.umd-TufkXQUc.js → fetch-retry.umd-o-6hecKO.js} +2 -2
- package/dist/browser/{flex-Co7qWs_0.js → flex-DC-YFhOp.js} +5 -5
- package/dist/browser/{floorplan.loader-uU5jSX4L.js → floorplan.loader-BMR6104c.js} +12 -12
- package/dist/browser/{floorplan.ready-DpsnIaye.js → floorplan.ready-DxP00yOP.js} +23 -23
- package/dist/browser/{framing-rect-BR93grUW.js → framing-rect-B28m3lJd.js} +262 -245
- package/dist/browser/{freeBanner-oBXl72SS.js → freeBanner-CxeeG1v1.js} +2 -2
- package/dist/browser/{fuse-Dm-WhNtD.js → fuse-CM3BvYBC.js} +2 -2
- package/dist/browser/{i18n-Brp2h-sf.js → i18n-CyzfIlqQ.js} +6 -6
- package/dist/browser/index.js +17 -17
- package/dist/browser/{index.module-kQtZEvIK.js → index.module-D9cgjYhA.js} +4 -4
- package/dist/browser/{init-ui-CtgiMn-b.js → init-ui-7k8cHFZw.js} +9 -9
- package/dist/browser/{integrateKiosk-Ci0Kelz8.js → integrateKiosk-DUFIUi05.js} +5 -5
- package/dist/browser/{is-debug-Dl85G8le.js → is-debug-BAIQHfxq.js} +4 -4
- package/dist/browser/{is-own-domain-rn4zdSxw.js → is-own-domain-C_JX2ZHR.js} +1 -1
- package/dist/browser/{is-webview-BcPE_KnA.js → is-webview-BU0Pek8w.js} +1 -1
- package/dist/browser/{jsx-runtime-DjUvqNZ4.js → jsx-runtime-CtimPtPq.js} +2 -2
- package/dist/browser/{kiosk-mode-CgDJr0Cy.js → kiosk-mode-CV-M1Zz8.js} +3 -3
- package/dist/browser/{kiosk-record-DSAURYxo.js → kiosk-record-Du4IFKBR.js} +1 -1
- package/dist/browser/{kioskApi-BpS2oCDp.js → kioskApi-BVRzmuDX.js} +7 -7
- package/dist/browser/{lib-D722Pg4z.js → lib-n3_ONTp3.js} +3 -3
- package/dist/browser/{loadImage-7lVuG7mT.js → loadImage-DqAC23xl.js} +1 -1
- package/dist/browser/{logDeviceInfo-dGpUXc_1.js → logDeviceInfo-B47wOFn-.js} +9 -9
- package/dist/browser/{mobx-C7iTPB-l.js → mobx-BxS2198S.js} +4 -4
- package/dist/browser/{mobx.module-BnXrY7HW.js → mobx.module-DBXspHzN.js} +1 -1
- package/dist/browser/{optional-boolean-editor-BwkRtcEs.js → optional-boolean-editor-DusM7rb0.js} +3 -3
- package/dist/browser/{optional-enum-editor-DiYEddI4.js → optional-enum-editor-BKyAfZ8e.js} +4 -4
- package/dist/browser/{optional-string-editor-BRCJlGU6.js → optional-string-editor-sA0aHiGB.js} +4 -4
- package/dist/browser/{particles.min-Cyv2g1i1.js → particles.min-B7kv19nN.js} +2 -2
- package/dist/browser/{react-GM02QWsb.js → react-Cohf8rUU.js} +2 -2
- package/dist/browser/{react-dom-B8t0es6H.js → react-dom-tyj4-_-C.js} +3 -3
- package/dist/browser/{rolldown-runtime-BE0XSRfw.js → rolldown-runtime-Bcr_gA0_.js} +1 -1
- package/dist/browser/{scene-DWydbLeX.js → scene-BBPTWEUE.js} +38 -34
- package/dist/browser/{scheduler-DPogrQnC.js → scheduler-CrY9mG_c.js} +2 -2
- package/dist/browser/{select-hn9vWuOi.js → select-D19r5W1a.js} +10 -10
- package/dist/browser/{settings-CFSsnNiW.js → settings-D4-jxTxB.js} +2 -2
- package/dist/browser/{settings-item-B78SzeBC.js → settings-item-CIt7SQG4.js} +6 -6
- package/dist/browser/{store-_wn5u-g_.js → store-CjCKsoXy.js} +2 -2
- package/dist/browser/{string-editor-DG_fQEtF.js → string-editor-D8F1eTpQ.js} +4 -4
- package/dist/browser/{text-field-MkszrHMN.js → text-field-BYYweuSY.js} +5 -5
- package/dist/browser/{theme-GhRMjRAR.js → theme-q6cCoTLz.js} +8 -8
- package/dist/browser/{ui-R9Wb5JLi.js → ui-CYUl2cf1.js} +8 -8
- package/dist/browser/{useRenderTarget-CmmLzvq6.js → useRenderTarget-Bqdt8QZX.js} +4 -4
- package/dist/browser/{viewport-P1Fw2W4S.js → viewport-D4MnXYrN.js} +3 -3
- package/dist/browser/{wayfinding-CtfrReXU.js → wayfinding-CulSEPiv.js} +5 -5
- package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.d.ts +20 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge-scale.js +1 -0
- package/dist/esm/components/Map/drawing/config/config-booth-badge.d.ts +20 -11
- package/dist/esm/components/Map/drawing/config/config-booth-badge.js +1 -1
- package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
- package/dist/esm/components/Map/pointer.js +1 -1
- package/dist/esm/components/Maplibre/usePoiMarkers.js +1 -1
- package/dist/esm/components/Maplibre/utils/poi-marker-hit-test.d.ts +6 -6
- package/package.json +10 -10
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
6
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8dad8a98-7d3f-4519-8baa-e6287e9912e3", e._sentryDebugIdIdentifier = "sentry-dbid-8dad8a98-7d3f-4519-8baa-e6287e9912e3");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import {
|
|
9
|
+
import { t as e } from "./is-webview-BU0Pek8w.js";
|
|
10
|
+
import { T as t, Xt as n, Yt as r, gt as i, ht as a, pt as o } from "./LayerStore-CONC-3Gj.js";
|
|
10
11
|
//#region src/utils/scene-bounds.ts
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
var
|
|
14
|
-
let c =
|
|
12
|
+
var s = "areamap";
|
|
13
|
+
function c(e) {
|
|
14
|
+
var t;
|
|
15
|
+
let c = e == null || (t = e.rootLayer) == null ? void 0 : t.children;
|
|
15
16
|
if (!(c != null && c.length)) return null;
|
|
16
17
|
let l = Infinity, u = Infinity, d = -Infinity, f = -Infinity, p = (e, t) => {
|
|
17
18
|
!Number.isFinite(e) || !Number.isFinite(t) || (e < l && (l = e), t < u && (u = t), e > d && (d = e), t > f && (f = t));
|
|
18
19
|
}, m = (e) => {
|
|
19
20
|
p(e.min.x, e.min.y), p(e.max.x, e.max.y);
|
|
20
21
|
}, h = (e) => {
|
|
21
|
-
if (
|
|
22
|
+
if (o(e)) {
|
|
22
23
|
e.children.forEach(h);
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
|
-
if (
|
|
26
|
-
m(
|
|
26
|
+
if (i(e)) {
|
|
27
|
+
m(r(e.shape) ? e.shape : e.shape.bounds);
|
|
27
28
|
return;
|
|
28
29
|
}
|
|
29
|
-
if (
|
|
30
|
+
if (a(e)) {
|
|
30
31
|
p(e.points.p0.x, e.points.p0.y), p(e.points.p1.x, e.points.p1.y);
|
|
31
32
|
return;
|
|
32
33
|
}
|
|
@@ -34,9 +35,9 @@ function o(o) {
|
|
|
34
35
|
};
|
|
35
36
|
for (let e of c) {
|
|
36
37
|
let t = e.name;
|
|
37
|
-
typeof t == "string" && t.toLowerCase() ===
|
|
38
|
+
typeof t == "string" && t.toLowerCase() === s || h(e);
|
|
38
39
|
}
|
|
39
|
-
return l > d || u > f ? null :
|
|
40
|
+
return l > d || u > f ? null : n.fromMinMax({
|
|
40
41
|
x: l,
|
|
41
42
|
y: u
|
|
42
43
|
}, {
|
|
@@ -44,23 +45,23 @@ function o(o) {
|
|
|
44
45
|
y: f
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function l(e, t) {
|
|
48
49
|
return !e || !t || t.area <= 0 || e.area / t.area > .1 ? .15 : .25;
|
|
49
50
|
}
|
|
50
|
-
function
|
|
51
|
+
function u(e, t) {
|
|
51
52
|
return t ? e.expand({
|
|
52
53
|
x: e.size.width * t,
|
|
53
54
|
y: e.size.height * t
|
|
54
55
|
}) : e;
|
|
55
56
|
}
|
|
56
|
-
function
|
|
57
|
-
let n =
|
|
58
|
-
return n ?
|
|
57
|
+
function d(e, t) {
|
|
58
|
+
let n = c(e);
|
|
59
|
+
return n ? u(n, l(n, t)) : null;
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function f(e) {
|
|
61
62
|
return e === "layer-viewbox" || e === "explicit-viewbox" || e === "scene-derived";
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function p(e) {
|
|
64
65
|
if (e.layerViewbox) return {
|
|
65
66
|
rect: e.layerViewbox,
|
|
66
67
|
source: "layer-viewbox"
|
|
@@ -73,7 +74,7 @@ function d(e) {
|
|
|
73
74
|
rect: e.layerRectangle,
|
|
74
75
|
source: "layer-rectangle"
|
|
75
76
|
};
|
|
76
|
-
let t =
|
|
77
|
+
let t = d(e.sceneDef, e.svgArea);
|
|
77
78
|
return t ? {
|
|
78
79
|
rect: t,
|
|
79
80
|
source: "scene-derived"
|
|
@@ -84,25 +85,28 @@ function d(e) {
|
|
|
84
85
|
}
|
|
85
86
|
//#endregion
|
|
86
87
|
//#region src/utils/getContrastTextColor.ts
|
|
87
|
-
var
|
|
88
|
-
function
|
|
88
|
+
var m = 150, h = "#1a1a1a", g = "#ffffff", _ = /^[0-9A-Fa-f]{6}$/, v = /^[0-9A-Fa-f]{3}$/;
|
|
89
|
+
function y(e) {
|
|
89
90
|
let t = e.replace("#", "");
|
|
90
|
-
return
|
|
91
|
+
return _.test(t) ? t : v.test(t) ? t[0] + t[0] + t[1] + t[1] + t[2] + t[2] : null;
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
let t =
|
|
94
|
-
if (!t) return
|
|
93
|
+
function b(e) {
|
|
94
|
+
let t = y(e);
|
|
95
|
+
if (!t) return h;
|
|
95
96
|
let n = parseInt(t.substring(0, 2), 16), r = parseInt(t.substring(2, 4), 16), i = parseInt(t.substring(4, 6), 16);
|
|
96
|
-
return .299 * n + .587 * r + .114 * i >
|
|
97
|
+
return .299 * n + .587 * r + .114 * i > m ? h : g;
|
|
97
98
|
}
|
|
98
99
|
//#endregion
|
|
100
|
+
//#region src/utils/is-phone.ts
|
|
101
|
+
var x = (t || e) && Math.min(window.screen.width, window.screen.height) < 600;
|
|
102
|
+
//#endregion
|
|
99
103
|
//#region src/components/Map/scene.ts
|
|
100
|
-
function
|
|
101
|
-
|
|
104
|
+
function S(e) {
|
|
105
|
+
w = e;
|
|
102
106
|
}
|
|
103
|
-
function
|
|
104
|
-
return
|
|
107
|
+
function C() {
|
|
108
|
+
return w;
|
|
105
109
|
}
|
|
106
|
-
var
|
|
110
|
+
var w;
|
|
107
111
|
//#endregion
|
|
108
|
-
export { u as a, c as i,
|
|
112
|
+
export { u as a, p as c, b as i, S as n, f as o, x as r, l as s, C as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "743837e7-93f1-4f1c-aefc-675d73ee4f63", e._sentryDebugIdIdentifier = "sentry-dbid-743837e7-93f1-4f1c-aefc-675d73ee4f63");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { t as e } from "./rolldown-runtime-
|
|
9
|
+
import { t as e } from "./rolldown-runtime-Bcr_gA0_.js";
|
|
10
10
|
//#region ../../node_modules/.pnpm/scheduler@0.27.0/node_modules/scheduler/cjs/scheduler.production.js
|
|
11
11
|
var t = /* @__PURE__ */ e(((e) => {
|
|
12
12
|
function t(e, t) {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e90304f6-bccd-4aaf-a0cc-062a075f78bf", e._sentryDebugIdIdentifier = "sentry-dbid-e90304f6-bccd-4aaf-a0cc-062a075f78bf");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { t as r } from "./react-dom-
|
|
13
|
-
import { O as i, T as a, g as o, l as s, s as c, u as l, y as u } from "./flex-
|
|
14
|
-
import { i as d, n as f, o as p, r as m, s as h } from "./dist-
|
|
15
|
-
import { _ as g, a as _, b as v, c as y, d as b, f as x, g as S, h as C, i as w, l as T, m as E, n as D, o as O, p as k, r as A, s as j, t as ee, u as te, v as ne } from "./theme-
|
|
16
|
-
import { t as M } from "./dist-
|
|
17
|
-
import { t as N } from "./classnames-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-Bcr_gA0_.js";
|
|
10
|
+
import { t } from "./react-Cohf8rUU.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-CtimPtPq.js";
|
|
12
|
+
import { t as r } from "./react-dom-tyj4-_-C.js";
|
|
13
|
+
import { O as i, T as a, g as o, l as s, s as c, u as l, y as u } from "./flex-DC-YFhOp.js";
|
|
14
|
+
import { i as d, n as f, o as p, r as m, s as h } from "./dist-Dg8H-fF9.js";
|
|
15
|
+
import { _ as g, a as _, b as v, c as y, d as b, f as x, g as S, h as C, i as w, l as T, m as E, n as D, o as O, p as k, r as A, s as j, t as ee, u as te, v as ne } from "./theme-q6cCoTLz.js";
|
|
16
|
+
import { t as M } from "./dist-BL9v1eQu.js";
|
|
17
|
+
import { t as N } from "./classnames-I5odALD0.js";
|
|
18
18
|
//#region ../../node_modules/.pnpm/@radix-ui+number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs
|
|
19
19
|
var P = /* @__PURE__ */ e(t(), 1);
|
|
20
20
|
function re(e, [t, n]) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8b6ee49c-19c3-4811-99e0-0515eca1da1f", e._sentryDebugIdIdentifier = "sentry-dbid-8b6ee49c-19c3-4811-99e0-0515eca1da1f");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import "./adopt-global-settings-
|
|
9
|
+
import "./adopt-global-settings-ptJCSHgd.js";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "12edc63f-e6e7-4dfc-9a76-31666c53718c", e._sentryDebugIdIdentifier = "sentry-dbid-12edc63f-e6e7-4dfc-9a76-31666c53718c");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { c as r, l as i, t as a, u as o, y as s } from "./flex-
|
|
13
|
-
import { t as c } from "./classnames-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-Bcr_gA0_.js";
|
|
10
|
+
import { t } from "./react-Cohf8rUU.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-CtimPtPq.js";
|
|
12
|
+
import { c as r, l as i, t as a, u as o, y as s } from "./flex-DC-YFhOp.js";
|
|
13
|
+
import { t as c } from "./classnames-I5odALD0.js";
|
|
14
14
|
//#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.17__@types+react@19.2._5ea800d4e947acedb1fa1275f1697b17/node_modules/@radix-ui/themes/dist/esm/components/separator.props.js
|
|
15
15
|
var l = /* @__PURE__ */ e(t()), u = /* @__PURE__ */ e(c()), d = {
|
|
16
16
|
orientation: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "6d823a43-fa42-42af-9c05-a4ee303c909d", e._sentryDebugIdIdentifier = "sentry-dbid-6d823a43-fa42-42af-9c05-a4ee303c909d");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { o as e } from "./mobx.module-
|
|
9
|
+
import { o as e } from "./mobx.module-DBXspHzN.js";
|
|
10
10
|
//#region src/utils/swappable-proxy.ts
|
|
11
11
|
function t(e, t) {
|
|
12
12
|
let n = () => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "bae75e1e-5013-4517-a846-519e3920f180", e._sentryDebugIdIdentifier = "sentry-dbid-bae75e1e-5013-4517-a846-519e3920f180");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { t as e } from "./jsx-runtime-
|
|
10
|
-
import { t } from "./settings-item-
|
|
11
|
-
import { t as n } from "./text-field-
|
|
9
|
+
import { t as e } from "./jsx-runtime-CtimPtPq.js";
|
|
10
|
+
import { t } from "./settings-item-CIt7SQG4.js";
|
|
11
|
+
import { t as n } from "./text-field-BYYweuSY.js";
|
|
12
12
|
//#region ../debug/src/lib/ui/string-editor.tsx
|
|
13
13
|
var r = e(), i = (e) => {
|
|
14
14
|
var i;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7cff17ce-12f6-438a-9ef4-00cf6a0b1475", e._sentryDebugIdIdentifier = "sentry-dbid-7cff17ce-12f6-438a-9ef4-00cf6a0b1475");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { D as n, i as r, l as i, n as a, s as o, u as s, y as c } from "./flex-
|
|
12
|
-
import { t as l } from "./classnames-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-Bcr_gA0_.js";
|
|
10
|
+
import { t } from "./react-Cohf8rUU.js";
|
|
11
|
+
import { D as n, i as r, l as i, n as a, s as o, u as s, y as c } from "./flex-DC-YFhOp.js";
|
|
12
|
+
import { t as l } from "./classnames-I5odALD0.js";
|
|
13
13
|
//#region ../../node_modules/.pnpm/@radix-ui+themes@3.3.0_@types+react-dom@19.2.3_@types+react@19.2.17__@types+react@19.2._5ea800d4e947acedb1fa1275f1697b17/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js
|
|
14
14
|
var u = /* @__PURE__ */ e(t()), d = /* @__PURE__ */ e(l()), f = {
|
|
15
15
|
size: {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "507523b1-aa12-4507-b680-c254edab8300", e._sentryDebugIdIdentifier = "sentry-dbid-507523b1-aa12-4507-b680-c254edab8300");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { t as n } from "./jsx-runtime-
|
|
12
|
-
import { t as r } from "./react-dom-
|
|
13
|
-
import { C as i, E as a, O as o, T as s, _ as c, o as l, v as u, w as d } from "./flex-
|
|
14
|
-
import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-
|
|
15
|
-
import { t as y } from "./classnames-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-Bcr_gA0_.js";
|
|
10
|
+
import { t } from "./react-Cohf8rUU.js";
|
|
11
|
+
import { t as n } from "./jsx-runtime-CtimPtPq.js";
|
|
12
|
+
import { t as r } from "./react-dom-tyj4-_-C.js";
|
|
13
|
+
import { C as i, E as a, O as o, T as s, _ as c, o as l, v as u, w as d } from "./flex-DC-YFhOp.js";
|
|
14
|
+
import { c as f, i as p, n as m, o as h, r as g, s as _, t as v } from "./dist-Dg8H-fF9.js";
|
|
15
|
+
import { t as y } from "./classnames-I5odALD0.js";
|
|
16
16
|
//#region ../../node_modules/.pnpm/@radix-ui+react-visually-hidden@1.2.3_@types+react-dom@19.2.3_@types+react@19.2.17__@ty_cffccd7838985066e8e1d993b5cb6017/node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
17
17
|
var b = /* @__PURE__ */ e(r(), 1), x = /* @__PURE__ */ e(t(), 1), S = n(), C = Object.freeze({
|
|
18
18
|
position: "absolute",
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c331f3d0-af7b-4caa-8d8a-4bf8b2b6fc89", e._sentryDebugIdIdentifier = "sentry-dbid-c331f3d0-af7b-4caa-8d8a-4bf8b2b6fc89");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { a as t, i as n, s as r } from "./efp-debug-init-
|
|
11
|
-
import { a as i, i as a } from "./adopt-global-settings-
|
|
12
|
-
import { t as o } from "./jsx-runtime-
|
|
13
|
-
import "./settings-
|
|
14
|
-
import { t as s } from "./add-debug-secret-listener-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-Bcr_gA0_.js";
|
|
10
|
+
import { a as t, i as n, s as r } from "./efp-debug-init-3uYSkVQl.js";
|
|
11
|
+
import { a as i, i as a } from "./adopt-global-settings-ptJCSHgd.js";
|
|
12
|
+
import { t as o } from "./jsx-runtime-CtimPtPq.js";
|
|
13
|
+
import "./settings-D4-jxTxB.js";
|
|
14
|
+
import { t as s } from "./add-debug-secret-listener-DEPSZS-A.js";
|
|
15
15
|
//#region ../debug/src/lib/ui/render-debug-ui.tsx
|
|
16
16
|
var c = /* @__PURE__ */ e(r(), 1), l = o(), u = !1;
|
|
17
17
|
function d() {
|
|
@@ -26,7 +26,7 @@ function d() {
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
let o = async (t) => {
|
|
29
|
-
let { DebugUi: n } = await import("./debug-ui-
|
|
29
|
+
let { DebugUi: n } = await import("./debug-ui-BWDU1_DK.js"), { createRoot: i } = await import("./client-TnBerOtS.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), a = document.createElement("div");
|
|
30
30
|
document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, l.jsx)(n, {
|
|
31
31
|
useDebugButtonState: r.useState,
|
|
32
32
|
open: t
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "1e89fc3a-fa3d-42bb-94d8-f0f786d433ec", e._sentryDebugIdIdentifier = "sentry-dbid-1e89fc3a-fa3d-42bb-94d8-f0f786d433ec");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e } from "./rolldown-runtime-
|
|
10
|
-
import { t } from "./react-
|
|
11
|
-
import { u as n } from "./store-
|
|
9
|
+
import { r as e } from "./rolldown-runtime-Bcr_gA0_.js";
|
|
10
|
+
import { t } from "./react-Cohf8rUU.js";
|
|
11
|
+
import { u as n } from "./store-CjCKsoXy.js";
|
|
12
12
|
//#region ../ui/src/shared/activeElement.ts
|
|
13
13
|
var r = (e) => !!e && "activeElement" in e;
|
|
14
14
|
function i(e) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "cd544147-31ec-4446-b8a2-8021e027057b", e._sentryDebugIdIdentifier = "sentry-dbid-cd544147-31ec-4446-b8a2-8021e027057b");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { l as e } from "./store-
|
|
10
|
-
import { t } from "./LayerStore-
|
|
9
|
+
import { l as e } from "./store-CjCKsoXy.js";
|
|
10
|
+
import { t } from "./LayerStore-CONC-3Gj.js";
|
|
11
11
|
//#region src/components/Map/viewport.ts
|
|
12
12
|
function n(e) {
|
|
13
13
|
return {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
(function() {
|
|
2
2
|
try {
|
|
3
3
|
var e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
4
|
-
e.SENTRY_RELEASE = { id: "3.45.
|
|
4
|
+
e.SENTRY_RELEASE = { id: "3.45.4" };
|
|
5
5
|
var t = new e.Error().stack;
|
|
6
6
|
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "87608407-0c87-4a9d-80e4-b8d7cec1d3f0", e._sentryDebugIdIdentifier = "sentry-dbid-87608407-0c87-4a9d-80e4-b8d7cec1d3f0");
|
|
7
7
|
} catch {}
|
|
8
8
|
})();
|
|
9
|
-
import { r as e, t } from "./rolldown-runtime-
|
|
10
|
-
import { o as n } from "./is-debug-
|
|
11
|
-
import { i as r, l as i } from "./mobx.module-
|
|
12
|
-
import { $t as a, Ct as o, Dt as s, Et as c, Ot as l, Ut as u, Wt as d, Xt as f, _t as p, an as m, cn as h, ft as g, nn as _, nt as v, on as y, rn as b, sn as x, tn as S, vt as C, wt as w, xt as T, yt as E } from "./LayerStore-
|
|
9
|
+
import { r as e, t } from "./rolldown-runtime-Bcr_gA0_.js";
|
|
10
|
+
import { o as n } from "./is-debug-BAIQHfxq.js";
|
|
11
|
+
import { i as r, l as i } from "./mobx.module-DBXspHzN.js";
|
|
12
|
+
import { $t as a, Ct as o, Dt as s, Et as c, Ot as l, Ut as u, Wt as d, Xt as f, _t as p, an as m, cn as h, ft as g, nn as _, nt as v, on as y, rn as b, sn as x, tn as S, vt as C, wt as w, xt as T, yt as E } from "./LayerStore-CONC-3Gj.js";
|
|
13
13
|
//#region ../geometry/src/lib/geo.ts
|
|
14
14
|
var D = 6371e3;
|
|
15
15
|
function O(e, t) {
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/** What {@link getBadgeScale} reads. */
|
|
2
|
+
export interface BadgeScaleInput {
|
|
3
|
+
/** Plan units per CSS pixel. */
|
|
4
|
+
pixelSize: number;
|
|
5
|
+
/** The font size, in css pixels, the badge is drawn at when the booth has room for it. */
|
|
6
|
+
fontSize: number;
|
|
7
|
+
/** The booth number's font size at scale 1, in the units of the plate's size at scale 1. */
|
|
8
|
+
plateFontSize: number;
|
|
9
|
+
/** The largest scale that still fits inside the booth's footprint. */
|
|
10
|
+
maxScale: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The badge plate's scale: `fontSize` css pixels on screen, or smaller when the booth has no room —
|
|
14
|
+
* then the badge fills what fits and shrinks with the booth.
|
|
15
|
+
* @param input - The pixel size, the target font size, the font size at scale 1 and the booth's
|
|
16
|
+
* limit.
|
|
17
|
+
* @returns The plate's scale; the font is `plateFontSize` times it, in plan units.
|
|
18
|
+
*/
|
|
19
|
+
export declare function getBadgeScale({ pixelSize, fontSize, plateFontSize, maxScale, }: BadgeScaleInput): number;
|
|
20
|
+
//# sourceMappingURL=config-booth-badge-scale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function getBadgeScale({pixelSize:e,fontSize:t,plateFontSize:n,maxScale:a}){const c=e*t/n;return Math.min(c,a)}
|
|
@@ -10,40 +10,49 @@ export declare function createBoothBadge(booth: RegularBooth): {
|
|
|
10
10
|
*
|
|
11
11
|
* One instance per badge, holding the geometry the layout reads — where the badge is anchored inside
|
|
12
12
|
* the booth's footprint, its size at scale 1, and the scale beyond which it would spill out of the
|
|
13
|
-
* polygon. The defs' `onScale` closures delegate to the
|
|
13
|
+
* polygon. The defs' `onScale` closures delegate to the methods here.
|
|
14
14
|
*/
|
|
15
15
|
export declare class BoothBadgeDrawer {
|
|
16
16
|
private readonly placement;
|
|
17
17
|
/**
|
|
18
18
|
* @param placement - Everything the layout reads: the booth, where the badge is anchored, its size
|
|
19
|
-
* at scale 1, the booth's rotation, the scale it may not exceed, the
|
|
20
|
-
* authored against, and the two defs it writes.
|
|
19
|
+
* at scale 1, the booth's rotation, the scale it may not exceed, and the two defs it writes.
|
|
21
20
|
*/
|
|
22
21
|
constructor(placement: BadgePlacement);
|
|
22
|
+
private bgScale;
|
|
23
|
+
private textScale;
|
|
24
|
+
/** Forgets the last layout, for when the placement itself changed — the next one is written. */
|
|
25
|
+
invalidate(): void;
|
|
23
26
|
/**
|
|
24
27
|
* Lays the background rect out for a new pixel size.
|
|
25
28
|
* @param pixelSize - Plan units per CSS pixel.
|
|
26
|
-
* @returns The background unless its floor is switched off
|
|
27
|
-
* way, so showing it draws the right size straight away.
|
|
29
|
+
* @returns The background unless its floor is switched off or its scale did not change — the
|
|
30
|
+
* rect is kept current either way, so showing it draws the right size straight away.
|
|
28
31
|
*/
|
|
29
32
|
layOutBg(pixelSize: number): ShapeDef[];
|
|
30
33
|
/**
|
|
31
|
-
* Lays the booth number out for a new pixel size.
|
|
32
|
-
* itself stops growing, so the text never outgrows the rect around it.
|
|
34
|
+
* Lays the booth number out for a new pixel size.
|
|
33
35
|
* @param pixelSize - Plan units per CSS pixel.
|
|
34
|
-
* @returns The text unless its floor is switched off, as for the
|
|
36
|
+
* @returns The text unless its floor is switched off or its scale did not change, as for the
|
|
37
|
+
* background.
|
|
35
38
|
*/
|
|
36
39
|
layOutText(pixelSize: number): TextDef[];
|
|
37
40
|
/**
|
|
38
|
-
* The
|
|
41
|
+
* The plate's scale: {@link BADGE_FONT_SIZE} on screen, or smaller when the booth has no room.
|
|
42
|
+
* @param pixelSize - Plan units per CSS pixel.
|
|
43
|
+
* @returns The plate's scale.
|
|
44
|
+
*/
|
|
45
|
+
private scaleFor;
|
|
46
|
+
/**
|
|
47
|
+
* The badge's rect at a scale.
|
|
39
48
|
*
|
|
40
49
|
* The anchor is in world space and names the badge's top-left corner, so the center is
|
|
41
50
|
* `anchor + R(rotation) · (w/2, h/2)`; the renderer then rotates the badge about that center, which
|
|
42
51
|
* lands it where the anchor says.
|
|
43
|
-
* @param
|
|
52
|
+
* @param scale - The plate's scale.
|
|
44
53
|
* @returns The rect.
|
|
45
54
|
*/
|
|
46
|
-
private
|
|
55
|
+
private rectAt;
|
|
47
56
|
/**
|
|
48
57
|
* Whether the badge's floor is switched off, which hides it wherever it sits.
|
|
49
58
|
* @returns Whether to hide it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{pointRotate as
|
|
1
|
+
import{pointRotate as W,Rect as v}from"@expofp/geometry";import{update as w}from"@expofp/renderer";import k from"color";import{reaction as D}from"mobx";import{SEPARATOR as _}from"../../../../constants";import L from"../../../../data";import{getTrianglesFromFpPaths as Y}from"../../../../data/svg";import{createShapeDef as Z,createTextDef as Q,createTextDefLines as V}from"../../../../engine/defs";import{loadCustomFontsUrls as j}from"../../../../engine/fonts";import{getQuarterTurns as q,getRollValue as J}from"../../../../engine/update-def";import{boothStore as K,uiState as M}from"../../../../store";import{RegularBooth as tt}from"../../../../store/BoothStore";import H from"../../../../tools/settings";import{getContrastTextColor as et}from"../../../../utils/getContrastTextColor";import ot from"../../../../utils/is-phone";import{BoothBadgeAnchors as nt}from"./booth-badge-anchor";import{getFont as rt}from"./canvases";import{isBoothBadgeEligible as it}from"./config-booth-badge-eligibility";import{getBadgeScale as st}from"./config-booth-badge-scale";import{getBadgeFontWeight as at,getFontUrlByWeight as ct}from"./config-booth-labels";const U=15,lt=ot?16:18,C=30,ht=6,dt=4,I=.8,$=C*I,z=document.createElement("canvas").getContext("2d");function mt(t){return t.length<=U?t:t.slice(0,U-1)+"\u2026"}function ut(t){if(!t.paths?.length)return[];const o=t.layer?.name||"",e=[];for(const r of t.paths)for(const s of Y(r.index,o))e.push(s);return e}function F(t){return t&&t!=="none"?t:void 0}function gt(t){const o=F(t.borderColor)||F(H.boothBorderColor)||H.colors.booths.default;return t.paths?.length>1&&F(t.paths[t.paths.length-1].color)||o}export function createBoothBadge(t){const o=mt(t.title||t.name),e=gt(t),r=et(k(e).hex()),s=at(),h=rt(C,s);z.font=h;const i=z.measureText(o).width,c=Math.ceil(i+ht*2),m=C+dt*2,E=(t.borderWidth||K.borderWidth)/2,N=c*I,R=m*I,A=new nt(t,ut(t),E,{x:N,y:R});let d=t.rotate??0,b=0,u=0,g=0,T=0;const O=()=>{const n=A.fit(b,d);u=n.x,g=n.y,T=n.maxScale};O();const G=(n,S)=>{const y=n/2,B=S/2,X=W({x:u+y,y:g+B},d,{x:u,y:g});return new v(X,{x:n,y:S},d,t.elevation)},P=ct(s,j()),a=Z(G(1,1),e);a.hidden=!0,a.dim=t.skipDim?0:void 0;const l=Q(V([[o],[]],r,0,[P,P]),G(1,1),[0,0],{horizontal:"center",vertical:"center"});l.hidden=!0,l.dim=t.skipDim?0:void 0;const f={booth:t,anchor:{x:u,y:g},source:{x:N,y:R},rotation:d,maxScale:T,bg:a,text:l},p=new BoothBadgeDrawer(f);a.onScale=({pixelSize:n})=>p.layOutBg(n),l.onScale=({pixelSize:n})=>p.layOutText(n);const x=[];return x.push(D(()=>t.skipDim,n=>{a.dim=n?0:void 0,l.dim=n?0:void 0,w(a,l)})),x.push(D(()=>t.layer?.visible??!0,n=>{a.hidden=!n,l.hidden=!n,w(a,l)})),x.push(D(()=>M.mapSettings,({roll:n})=>{J(n??0)&&(A.prefetch(t.rotate??0),a.onRoll=({roll:S,pixelSize:y})=>{const B=q(S,d);if(B!==0)return d+=B*Math.PI/2,b=((b+B)%4+4)%4,O(),f.anchor.x=u,f.anchor.y=g,f.rotation=d,f.maxScale=T,p.invalidate(),[...p.layOutBg(y),...p.layOutText(y)]})},{fireImmediately:!0}),()=>A.cancelPrefetch()),{bg:a,text:l,dispose:()=>{x.forEach(n=>n()),x.length=0}}}export class BoothBadgeDrawer{constructor(o){this.placement=o,this.bgScale=NaN,this.textScale=NaN}invalidate(){this.bgScale=NaN,this.textScale=NaN}layOutBg(o){const{bg:e}=this.placement,r=this.scaleFor(o);return r===this.bgScale?[]:(this.bgScale=r,e.shape=this.rectAt(r),e.hidden=this.isHidden(),e.hidden?[]:[e])}layOutText(o){const{text:e}=this.placement,r=this.scaleFor(o);return r===this.textScale?[]:(this.textScale=r,e.lines[0].fontSize=$*r,e.bounds=this.rectAt(r),e.hidden=this.isHidden(),e.hidden?[]:[e])}scaleFor(o){return st({pixelSize:o,fontSize:lt,plateFontSize:$,maxScale:this.placement.maxScale})}rectAt(o){const{anchor:e,booth:r,source:s,rotation:h}=this.placement,i=s.x*o,c=s.y*o,m=W({x:e.x+i/2,y:e.y+c/2},h,e);return new v(m,{x:i,y:c},h,r.elevation)}isHidden(){const{booth:o}=this.placement;return!!(o.layer&&!o.layer.visible)}}export function configBoothsBadges(t,o){const e=[],r=[],s=[];for(const i of o)if(i instanceof tt&&it({hideExhibitorBoothNumber:L.hideExhibitorBoothNumber,hideBoothBadges:L.hideBoothBadges,hideLogoInBooth:M.hideLogoInBooth,noLabels:i.noLabels,hasExhibitors:i.exhibitors.length>0,hasLogoInBooth:i.exhibitors.some(c=>c.logoInBooth&&c.logo)})){const{bg:c,text:m,dispose:E}=createBoothBadge(i);e.push(c),r.push(m),s.push(E)}const h=()=>{s.forEach(i=>i()),s.length=0};return e.length?{layer:{name:`${t}${_}badges`,children:[{name:`${t}${_}badgeBgs`,children:e},{name:`${t}${_}badgeTexts`,children:r}]},cleanup:h}:{layer:null,cleanup:h}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Rect as _}from"@expofp/geometry";import{update as U}from"@expofp/renderer";import{FONT_WEIGHT_PRIMARY_BOOTH as V,FONT_WEIGHT_PRIMARY_EXHIBITOR as Z,FONT_WEIGHT_SECONDARY_BOOTH as X,FONT_WEIGHT_SECONDARY_EXHIBITOR as G}from"../../../../constants";import c from"../../../../data";import{createShapeDot as Y,createTextDef as Q,createTextDefLines as $,SHAPE_DOT_CSS_PX as b}from"../../../../engine/defs";import{DEFAULT_FONT_LIGHT_URL as q,DEFAULT_FONT_URL as B,loadCustomFontsUrls as j}from"../../../../engine/fonts";import{getQuarterTurns as k,getRollValue as J,rotateRectByQuarters as K,rotateTextDefByQuarters as tt,updateLinesScale as et}from"../../../../engine/update-def";import{boothStore as it,layersStore as st,uiState as p}from"../../../../store";import{RegularBooth as nt,SpecialBooth as ot}from"../../../../store/BoothStore";import D from"../../../../tools/settings";import{t as F}from"../../../../utils/i18n";import rt from"../../../../utils/is-mobile";import at from"../../../../utils/is-webview";import{planReaction as M}from"../../../../utils/plan-reactions.js";import{isArabicText as ht}from"../../../../utils/rtl";import{BoothDrawerBaseWithoutPainter as lt}from"./BoothDrawerBase";import{getFont as W}from"./canvases";import{getLabelBorderInset as ct}from"./label-inset.js";function I(){return D.EXPO==="tqs2021"?"#000":D.boothLabelColor}const x=rt||at,v=o=>o.replace(" ","").substring(0,4).replace(/[0-9]/g,"3").replace(/[A-Z]/gi,"A"),C=document.createElement("canvas").getContext("2d");export default function mt(o){if(!(!(o instanceof nt)||o.noLabels))return new BoothLabelDrawer(o)}export function getMinZoomFactorForDot(o){return Array.isArray(o)&&o.length>0?Math.max(...o.map(t=>t)):typeof o=="number"?o:-0}export const isDirectionsMode=()=>!!(p.selectedRoute?.from&&p.selectedRoute?.to);export function getFontUrlByWeight(o,t=[],e="normal"){return[...t,{weight:500,url:B,style:"normal"},{weight:300,url:q,style:"normal"}].find(s=>+s.weight===o&&s.style===e)?.url||B}function L(o,t){return Number(getComputedStyle(document.body).getPropertyValue(o))||t}export function getBoothLabelWeights(){return{main:L(V,500),details:L(X,300)}}export function getExhibitorLabelWeights(){return{main:L(Z,500),details:L(G,300)}}export function getBadgeFontWeight(){return
|
|
1
|
+
import{Rect as _}from"@expofp/geometry";import{update as U}from"@expofp/renderer";import{FONT_WEIGHT_PRIMARY_BOOTH as V,FONT_WEIGHT_PRIMARY_EXHIBITOR as Z,FONT_WEIGHT_SECONDARY_BOOTH as X,FONT_WEIGHT_SECONDARY_EXHIBITOR as G}from"../../../../constants";import c from"../../../../data";import{createShapeDot as Y,createTextDef as Q,createTextDefLines as $,SHAPE_DOT_CSS_PX as b}from"../../../../engine/defs";import{DEFAULT_FONT_LIGHT_URL as q,DEFAULT_FONT_URL as B,loadCustomFontsUrls as j}from"../../../../engine/fonts";import{getQuarterTurns as k,getRollValue as J,rotateRectByQuarters as K,rotateTextDefByQuarters as tt,updateLinesScale as et}from"../../../../engine/update-def";import{boothStore as it,layersStore as st,uiState as p}from"../../../../store";import{RegularBooth as nt,SpecialBooth as ot}from"../../../../store/BoothStore";import D from"../../../../tools/settings";import{t as F}from"../../../../utils/i18n";import rt from"../../../../utils/is-mobile";import at from"../../../../utils/is-webview";import{planReaction as M}from"../../../../utils/plan-reactions.js";import{isArabicText as ht}from"../../../../utils/rtl";import{BoothDrawerBaseWithoutPainter as lt}from"./BoothDrawerBase";import{getFont as W}from"./canvases";import{getLabelBorderInset as ct}from"./label-inset.js";function I(){return D.EXPO==="tqs2021"?"#000":D.boothLabelColor}const x=rt||at,v=o=>o.replace(" ","").substring(0,4).replace(/[0-9]/g,"3").replace(/[A-Z]/gi,"A"),C=document.createElement("canvas").getContext("2d");export default function mt(o){if(!(!(o instanceof nt)||o.noLabels))return new BoothLabelDrawer(o)}export function getMinZoomFactorForDot(o){return Array.isArray(o)&&o.length>0?Math.max(...o.map(t=>t)):typeof o=="number"?o:-0}export const isDirectionsMode=()=>!!(p.selectedRoute?.from&&p.selectedRoute?.to);export function getFontUrlByWeight(o,t=[],e="normal"){return[...t,{weight:500,url:B,style:"normal"},{weight:300,url:q,style:"normal"}].find(s=>+s.weight===o&&s.style===e)?.url||B}function L(o,t){return Number(getComputedStyle(document.body).getPropertyValue(o))||t}export function getBoothLabelWeights(){return{main:L(V,500),details:L(X,300)}}export function getExhibitorLabelWeights(){return{main:L(Z,500),details:L(G,300)}}export function getBadgeFontWeight(){return getBoothLabelWeights().main}const y="Details";export class BoothLabelDrawer extends lt{constructor(t){super(t),this.minZoomDotVisible=0,this.maxZoomDotVisible=0,this.exh=[],this.shapeLabel=void 0,this.shapeDot=void 0,this.fontSizes=[[],[]],this.lines=[[],[]],this.fontUrls=["",""],this.canvasRect=new _(t.rect.center,t.rect.size,t.rotate,t.elevation),this.paddingScaled=[4,4],this.padding=ct(t.borderWidth||it.borderWidth,t.rect.size),this.topLeftAlignment={horizontal:p.rtl?"right":"left",vertical:"top"},this.centerAlignment={horizontal:"center",vertical:"center"},this.prefixes=x?[{fontSize:7,name:"XS",short:!0},{fontSize:10,name:"S",short:!0},{fontSize:16,name:y,short:!1}]:[{fontSize:7,name:"XS",short:!0},{fontSize:10,name:"S",short:!0},{fontSize:12,name:"M",short:!0},{fontSize:14,name:"L",short:!0},{fontSize:18,name:y,short:!1}],!(t instanceof ot)&&(this.exh=c.hideExhibitors?[]:c.onlyFeaturedExhibitors?t.exhibitors.filter(e=>e.featured):t.exhibitors,x&&this.optimizationLevel()>=3&&(this.prefixes=this.prefixes.filter(e=>e.name!=="S")),this.createLines(),this.calculateFontSizeFactors(),this.shapeLabel=Q($(this.lines,this.booth.labelColor||I(),0,this.fontUrls),new _(this.booth.rect.center,this.booth.rect.size,this.booth.rotate,this.booth.elevation),[...this.paddingScaled],{horizontal:"left",vertical:"top"}),this.shapeLabel.onScale=({pixelSize:e})=>this.layOutLabel(e),this.getShapeDot(),M(()=>st.layersLoaded&&this.booth.skipDim===!0,e=>{this.shapeLabel.dim=e?0:void 0,this.shapeDot.dim=e?0:void 0,U(this.shapeLabel,this.shapeDot)}),M(()=>p.mapSettings,({roll:e})=>{J(e??0)&&(this.shapeLabel.onRoll=({roll:i,pixelSize:a})=>{const s=k(i,this.shapeLabel.bounds.rotation);if(s===0)return;const{size:r}=this.canvasRect;return this.shapeLabel=tt(this.shapeLabel,s),!this.shapeLabel.hidden&&!this.exh.length&&r.x!==r.y&&(this.canvasRect=K(this.canvasRect,s),this.calculateFontSizeFactors(),this.layOutLabel(a),this.layOutDot(a)),[this.shapeLabel,this.shapeDot]})},{fireImmediately:!0}))}getShape(){return[this.shapeLabel,this.shapeDot]}layOutLabel(t){const e=this.lines[1]??[],i=this.fontSizes[1]??[];if(D.EXPO!=="wineparis2026"){const s=this.exh.length?this.topLeftAlignment:e.length?t<i[i.length-1].scaleFactor?this.topLeftAlignment:this.centerAlignment:this.topLeftAlignment;this.shapeLabel.alignment=s}return et(this.shapeLabel.lines,t,this.fontSizes)?(this.shapeLabel.padding[0]=this.paddingScaled[0]*t+this.padding,this.shapeLabel.padding[1]=this.paddingScaled[1]*t+this.padding,[this.shapeLabel]):[]}layOutDot(t){const e=t>=this.minZoomDotVisible&&t<=this.maxZoomDotVisible;if(!e&&this.shapeDot.hidden)return[];const i=this.shapeDot.bounds;return i.scale({x:b*t/i.size.x,y:b*t/i.size.y},i.center,i),this.shapeDot.hidden=!e,[this.shapeDot]}getShapeDot(){this.shapeDot=Y(this.canvasRect,this.booth.labelColor||I()),this.shapeDot.hidden=!0,this.shapeDot.onScale=({pixelSize:t})=>this.layOutDot(t),this.maxZoomDotVisible=Math.min(this.canvasRect.size.x/b,this.canvasRect.size.y/b)}createLines(){const t=this.booth,e=[],i=[],a=x&&this.optimizationLevel()>=3?1:3;if(this.exh.length){const s=t.exhibitors.filter(n=>n.order===0),r=t.exhibitors.filter(n=>n.order);if(s.length>0)e.push(...s.map(n=>n.name));else if(c.onlyFeaturedExhibitors)e.push(...t.exhibitors.filter(n=>n.featured).map(n=>n.name));else if(r.length>0){e.push(...r.map(m=>m.name));const n=t.exhibitors.filter(m=>m.order===void 0);n.length>0&&e.push(F("and {{moreCount}} more",{moreCount:n.length}))}else t.exhibitors.length>a?e.push(`${t.exhibitors.length} ${c.exhibitorTermPlural}`):e.push(...t.exhibitors.map(n=>n.name));i.push(t.title||t.name)}else{const s=!!t.exhibitors.length;e.push(t.title||t.name),t.onHold?i.push(F("On Hold")):t.reserved?i.push(F("Reserved")):s||i.push(...t.exhibitors.map(r=>r.name).sort((r,n)=>r>n?1:-1)),t.size&&i.push(t.size.indexOf("/")>-1?t.size.substring(0,t.size.indexOf("/")).trim():t.size),t.price&&t.price!=="0"&&!p.previewMode&&i.push(t.price)}p.rtl&&e.forEach((s,r)=>{(s.endsWith(".")||s.endsWith("!")||s.endsWith("?"))&&(e[r]=e[r]+"\u200F"),ht(s)&&(e[r]=e[r]+" ")}),this.lines=[e,i]}calculateFontSizeFactors(){const t=this.lines[0];let e;const i=this.canvasRect,a=[],s=[],r=this.prefixes.slice(0,this.exh.length?this.prefixes.length:this.prefixes.length-1),{main:n,details:m}=this.exh.length?getExhibitorLabelWeights():getBoothLabelWeights();for(const{fontSize:l,short:u}of r){const f=l,S=.9*l,d=W(f,n),O=W(S,m),R=c.hideExhibitorBoothNumber||u;let w,A,z,g;if(this.exh.length)e=u?[]:this.lines[1],z=Math.max(...t.map(h=>this.measureText(h,d).width),...e.map(h=>this.measureText(h,O).width)),w=Math.max(...t.map(h=>this.exh.length?this.measureText(v(h),d).width:this.measureText(v(h),d).width+3+3),...e.map(h=>this.measureText(v(h),O).width)),g=f*t.length+S*e.length+(t.length+e.length)+3,A=R?g/t.length:null;else{const h=t[0].replace(/[0-9]/g,"3").replace(/[A-Z]/g,"A"),P=4;z=this.measureText(h,d).width+3+3,g=f+P}const H=i.size.x/(w||z),N=i.size.y/(A||g),E=Math.min(H,N);a.push({scaleFactor:E,value:f,lines:[]}),R||s.push({scaleFactor:E,value:S,lines:[]})}if(!this.exh.length){const l=a[a.length-1],u=this.prefixes.find(f=>f.name===y);u&&(a.push({scaleFactor:l.scaleFactor/1.8,value:u.fontSize,lines:[]}),s.push({scaleFactor:l.scaleFactor/1.8,value:u.fontSize*(x?1:.9),lines:[]}))}const T=j();this.fontUrls=[getFontUrlByWeight(n,T),getFontUrlByWeight(m,T)],this.minZoomDotVisible=getMinZoomFactorForDot(a.map(l=>l.scaleFactor)),this.fontSizes=[a,s]}calcArea(t,e){return Math.floor(Math.max(0,t)*Math.max(0,e)/1e3)}optimizationLevel(){return Math.min(c.viewOptimizationLevel?c.viewOptimizationLevel:Math.floor(this.calcArea(this.canvasRect.size.x,this.canvasRect.size.y)/5e3),3)}measureText(t,e){return C.font=e,C.measureText(t)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n,{uiState as e}from"../../store";import{LayerMode as
|
|
1
|
+
import n,{uiState as e}from"../../store";import{LayerMode as f}from"../../store/LayerStore";import{poiMarkerHitTest as p}from"../Maplibre/utils/poi-marker-hit-test";import d from"./booth-by-xy";export function setPlanClickListener(o){u=o}export function setMarkerResolver(o){c=o}export function rememberBoothShapes(o,r){for(const t of r)a.set(t,o)}export function boothOfShape(o){return a.get(o)??null}export function hoverBooth(o){e.setKioskModeEnabled||(o.stopPropagation(),e.hoveredBooth=l(o.point,o.def))}export function clearHoveredBooth(){e.setKioskModeEnabled||(e.hoveredBooth=null)}export function selectBooth(o){o.stopPropagation(),s(o.point,o.nativeEvent)&&n.clickBooth(l(o.point,o.def))}export function clearSelection(o){s(o.point,o.nativeEvent)&&n.clickBooth(l(o.point))}function l(o,r){const t=r?boothOfShape(r):null;return t||d(o.x,o.y)}function s(o,r){if(!e.rootElement)return!1;if(resetExternalOverlay(),u?.(o),e.overlayPosition==="bottom"&&e.overlaySize==="full"&&n.showMap(),e.onGetCoordsClick){const t=n.layerStore.layers.find(i=>i.visible&&(i.mode===f.TurnedOn||i.mode===f.TurnedOff));e.onGetCoordsClick({x:o.x,y:o.y,z:t?.name||null})}if(e.setKioskModeEnabled||p.test(r.clientX,r.clientY))return!1;if(e.onMarkerClick){const t=c?.(o.x,o.y)??null;e.onMarkerClick(t)}return!0}export function resetExternalOverlay(){if(typeof window>"u")return;const o=window.__resett;o?.()}const a=new WeakMap;let c,u;
|