@expofp/floorplan 3.12.0 → 3.12.1

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.
Files changed (72) hide show
  1. package/dist/browser/{Button-C5CmZ0so.js → Button-CxYYwdV3.js} +5 -5
  2. package/dist/browser/{CookieConsent-kl_B6sH5.js → CookieConsent-Cltod-AQ.js} +7 -7
  3. package/dist/browser/{Debug-DymHiO2Z.js → Debug-DnZLaoNY.js} +7 -7
  4. package/dist/browser/{Demo-5tRIgVJF.js → Demo-CbuT3wW6.js} +9 -9
  5. package/dist/browser/{Free-hYQaAEbK.js → Free-CVEJPdaI.js} +9 -9
  6. package/dist/browser/{Gallery-D10tiZuW.js → Gallery-D2dTKIqn.js} +9 -9
  7. package/dist/browser/{GpsLoader-CNkUVJdS.js → GpsLoader-Bpn0jys4.js} +10 -10
  8. package/dist/browser/{KioskStore-2WAOxGM0.js → KioskStore-Bf3tKr77.js} +3 -3
  9. package/dist/browser/{MaplibreAdapter-B_tNIXx4.js → MaplibreAdapter-D6Fqdelu.js} +9 -9
  10. package/dist/browser/{ModalContainer-CckyeoUG.js → ModalContainer-C7E4QKwY.js} +10 -10
  11. package/dist/browser/{PermissionNotice-qetBrmIY.js → PermissionNotice-CTckXfzd.js} +6 -6
  12. package/dist/browser/{SetKioskMode-BOjaqczc.js → SetKioskMode-BPvChiTX.js} +8 -8
  13. package/dist/browser/{ShowKiosk-CcQHeM8K.js → ShowKiosk-97iuNiDq.js} +11 -11
  14. package/dist/browser/{TouchHand-DKpxmOwz.js → TouchHand-BEPM0Ix6.js} +4 -4
  15. package/dist/browser/{ViewerMenuPanel-HULfvF54.js → ViewerMenuPanel-CTDMmojE.js} +9 -9
  16. package/dist/browser/{add-debug-secret-listener-BTGIVZFY.js → add-debug-secret-listener-rtzwkssg.js} +1 -1
  17. package/dist/browser/{boolean-editor-oT7I3D0U.js → boolean-editor-Buj1Gh2Q.js} +9 -9
  18. package/dist/browser/{bootIntercom-YnsJPGCs.js → bootIntercom-CLXK1aCU.js} +2 -2
  19. package/dist/browser/{booth-by-xy-DTknn14w.js → booth-by-xy-DYsVPBrO.js} +6 -6
  20. package/dist/browser/bundle.json +66 -66
  21. package/dist/browser/{classnames-VfuHc9uB.js → classnames-C7JqIDkz.js} +2 -2
  22. package/dist/browser/{client-Bevofhdz.js → client-DRCaFfyq.js} +4 -4
  23. package/dist/browser/{components-COUCtdev.js → components-CoSFc4pe.js} +38 -38
  24. package/dist/browser/{debug-overlay-BLN24Eyb.js → debug-overlay-l2O5ATYR.js} +10 -10
  25. package/dist/browser/{debug-ui-BT7Ddvoj.js → debug-ui-fkLeLMTN.js} +6 -6
  26. package/dist/browser/{dist-CtKSG8GG.js → dist-B8Jegpa2.js} +3 -3
  27. package/dist/browser/{dist-CWBtHMZR.js → dist-Br0u22MB.js} +5 -5
  28. package/dist/browser/{dist-saTnlhyc.js → dist-DQ04vk8X.js} +6 -6
  29. package/dist/browser/{efp-debug-init-CYoM0s-a.js → efp-debug-init-DolwvXvu.js} +3 -3
  30. package/dist/browser/{enum-editor-vF4eKelT.js → enum-editor-BRlr42ZG.js} +4 -4
  31. package/dist/browser/{es5-COzmRHZr.js → es5-hugWWUki.js} +2 -2
  32. package/dist/browser/{event-not-found-BZkFh-P9.js → event-not-found-DrCgFYgQ.js} +1 -1
  33. package/dist/browser/{exports-BsqJX0o4.js → exports-DY1Pe4xZ.js} +1 -1
  34. package/dist/browser/{favicon-BBgsGFil.js → favicon-v6HqMJRd.js} +1 -1
  35. package/dist/browser/{fetch-retry.umd-BFTNSvNa.js → fetch-retry.umd-CtpzesBT.js} +2 -2
  36. package/dist/browser/{flex-DnOM12q-.js → flex-5lvsJlaO.js} +5 -5
  37. package/dist/browser/{floorplan.loader-DuVsbJsr.js → floorplan.loader-D4AZdgsy.js} +10 -10
  38. package/dist/browser/{floorplan.ready-B2SvQNh9.js → floorplan.ready-BnsAv7j1.js} +14 -14
  39. package/dist/browser/{fuse-Ddn6vCOL.js → fuse-BWnB1Pgo.js} +2 -2
  40. package/dist/browser/{i18n-D9dsV3GV.js → i18n-wZml67KB.js} +5 -5
  41. package/dist/browser/index.js +14 -14
  42. package/dist/browser/{index.module-CFTe1PiT.js → index.module-GNnIO9vr.js} +4 -4
  43. package/dist/browser/{integrateKiosk-vlZ9-8EP.js → integrateKiosk-uxqH2FgD.js} +3 -3
  44. package/dist/browser/{is-webview-SfodrdWn.js → is-webview-BlxQlyaS.js} +1 -1
  45. package/dist/browser/{jsx-runtime-DEIf9CUU.js → jsx-runtime-xVcN9g8F.js} +2 -2
  46. package/dist/browser/{lib-CCkkeprZ.js → lib-CIYjsvFB.js} +4 -4
  47. package/dist/browser/{loadImage-C356B0zk.js → loadImage-DZxHBSrL.js} +4 -4
  48. package/dist/browser/{logDeviceInfo-UnfHYhqR.js → logDeviceInfo-BQn3HG5l.js} +9 -9
  49. package/dist/browser/{main-JnTe8DvY.js → main-DKRaY1QU.js} +1 -1
  50. package/dist/browser/{mobx-DPek3UBx.js → mobx-rpWRRJB9.js} +4 -4
  51. package/dist/browser/{optional-boolean-editor-HEZXOpAy.js → optional-boolean-editor-fWgfIGvs.js} +3 -3
  52. package/dist/browser/{optional-enum-editor-DpN8qtqv.js → optional-enum-editor-CQ8-ut60.js} +4 -4
  53. package/dist/browser/{optional-string-editor-iR5VHFAR.js → optional-string-editor-BP4b7LsR.js} +4 -4
  54. package/dist/browser/{particles.min-BWlVGdrr.js → particles.min-D-VdW4Qr.js} +2 -2
  55. package/dist/browser/{prop-types-DA-Iew4C.js → prop-types-CE7JeEE-.js} +2 -2
  56. package/dist/browser/{react-C02q0n7M.js → react-DxSEhu-j.js} +2 -2
  57. package/dist/browser/{react-dom-BV1hX9nO.js → react-dom-CqQZIZ5q.js} +3 -3
  58. package/dist/browser/{reset-all-settings-BQgeIRam.js → reset-all-settings--GzHxj4F.js} +9 -9
  59. package/dist/browser/{rolldown-runtime-DYSU24gn.js → rolldown-runtime-Ik1ocWLm.js} +1 -1
  60. package/dist/browser/{select-D0S5iMvJ.js → select-DQmL3TsB.js} +10 -10
  61. package/dist/browser/{settings-Dw78gtQ_.js → settings-BndqjdZx.js} +2 -2
  62. package/dist/browser/{settings-item-BSR8Iz1R.js → settings-item-5zzAH3FT.js} +6 -6
  63. package/dist/browser/{store-DxRBdgZM.js → store-CgXKlx2n.js} +15 -15
  64. package/dist/browser/{string-editor-BwtRnquZ.js → string-editor-Bxbp0JHl.js} +4 -4
  65. package/dist/browser/{text-field-D5x33kIn.js → text-field-ySWl7XqC.js} +5 -5
  66. package/dist/browser/{theme-uaffdJE1.js → theme-ByGstXaJ.js} +8 -8
  67. package/dist/browser/{ui-jO3fquPn.js → ui-LJGsaayP.js} +8 -8
  68. package/dist/browser/{useRenderTarget-NdsPPF5u.js → useRenderTarget-DaUlOis9.js} +4 -4
  69. package/dist/esm/components/Map/drawing/config/config-booth-bookmark.js +1 -1
  70. package/dist/esm/components/Map/drawing/config/config-booth-labels-special.js +2 -2
  71. package/dist/esm/components/Map/drawing/config/config-booth-labels.js +1 -1
  72. package/package.json +8 -8
@@ -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.12.0" };
4
+ e.SENTRY_RELEASE = { id: "3.12.1" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "080d36cb-3f24-4815-93c7-d042fe49b8b8", e._sentryDebugIdIdentifier = "sentry-dbid-080d36cb-3f24-4815-93c7-d042fe49b8b8");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DYSU24gn.js";
10
- import { s as t } from "./efp-debug-init-CYoM0s-a.js";
11
- import { t as n } from "./react-C02q0n7M.js";
12
- import { t as r } from "./jsx-runtime-DEIf9CUU.js";
9
+ import { r as e } from "./rolldown-runtime-Ik1ocWLm.js";
10
+ import { s as t } from "./efp-debug-init-DolwvXvu.js";
11
+ import { t as n } from "./react-DxSEhu-j.js";
12
+ import { t as r } from "./jsx-runtime-xVcN9g8F.js";
13
13
  //#region ../debug/src/lib/settings/setting-registry.ts
14
14
  var i = /* @__PURE__ */ e(t(), 1), a = /* @__PURE__ */ e(n(), 1), o = /* @__PURE__ */ new Map(), s = r(), c = (0, i.default)("efp:debug"), l = "efp-local-storage";
15
15
  function u(e) {
@@ -72,7 +72,7 @@ function d(e) {
72
72
  //#region ../debug/src/lib/settings/register-boolean-setting.ts
73
73
  function f(e) {
74
74
  var t;
75
- let n = a.lazy(() => import("./boolean-editor-oT7I3D0U.js").then((e) => ({ default: e.BooleanEditor })));
75
+ let n = a.lazy(() => import("./boolean-editor-Buj1Gh2Q.js").then((e) => ({ default: e.BooleanEditor })));
76
76
  return u({
77
77
  key: e.key,
78
78
  default: (t = e.default) == null ? !1 : t,
@@ -83,7 +83,7 @@ function f(e) {
83
83
  //#endregion
84
84
  //#region ../debug/src/lib/settings/register-enum-setting.ts
85
85
  function p(e) {
86
- let t = a.lazy(() => import("./enum-editor-vF4eKelT.js").then((e) => ({ default: e.EnumEditor }))), n = (e) => typeof e == "string" ? e : JSON.stringify(e);
86
+ let t = a.lazy(() => import("./enum-editor-BRlr42ZG.js").then((e) => ({ default: e.EnumEditor }))), n = (e) => typeof e == "string" ? e : JSON.stringify(e);
87
87
  return u({
88
88
  key: e.key,
89
89
  default: e.default,
@@ -101,7 +101,7 @@ function p(e) {
101
101
  //#region ../debug/src/lib/settings/register-string-setting.ts
102
102
  function m(e) {
103
103
  var t;
104
- let n = a.lazy(() => import("./string-editor-BwtRnquZ.js").then((e) => ({ default: e.StringEditor })));
104
+ let n = a.lazy(() => import("./string-editor-Bxbp0JHl.js").then((e) => ({ default: e.StringEditor })));
105
105
  return u({
106
106
  key: e.key,
107
107
  default: (t = e.default) == null ? "" : t,
@@ -121,7 +121,7 @@ function g(e) {
121
121
  function _() {
122
122
  for (let [e, t] of h) o.has(e) || x(e, t);
123
123
  }
124
- var v = a.lazy(() => import("./optional-boolean-editor-HEZXOpAy.js").then((e) => ({ default: e.OptionalBooleanEditor }))), y = a.lazy(() => import("./optional-string-editor-iR5VHFAR.js").then((e) => ({ default: e.OptionalStringEditor }))), b = a.lazy(() => import("./optional-enum-editor-DpN8qtqv.js").then((e) => ({ default: e.OptionalEnumEditor })));
124
+ var v = a.lazy(() => import("./optional-boolean-editor-fWgfIGvs.js").then((e) => ({ default: e.OptionalBooleanEditor }))), y = a.lazy(() => import("./optional-string-editor-BP4b7LsR.js").then((e) => ({ default: e.OptionalStringEditor }))), b = a.lazy(() => import("./optional-enum-editor-CQ8-ut60.js").then((e) => ({ default: e.OptionalEnumEditor })));
125
125
  function x(e, t) {
126
126
  switch (t.type) {
127
127
  case "boolean":
@@ -2,7 +2,7 @@
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.12.0" };
5
+ e.SENTRY_RELEASE = { id: "3.12.1" };
6
6
  var t = new e.Error().stack;
7
7
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "4a11513d-0070-4205-b636-a85d593cfa99", e._sentryDebugIdIdentifier = "sentry-dbid-4a11513d-0070-4205-b636-a85d593cfa99");
8
8
  } catch {}
@@ -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.12.0" };
4
+ e.SENTRY_RELEASE = { id: "3.12.1" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "f54615df-2b28-4fdb-993a-0df464eb6bef", e._sentryDebugIdIdentifier = "sentry-dbid-f54615df-2b28-4fdb-993a-0df464eb6bef");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DYSU24gn.js";
10
- import { t } from "./react-C02q0n7M.js";
11
- import { t as n } from "./jsx-runtime-DEIf9CUU.js";
12
- import { t as r } from "./react-dom-BV1hX9nO.js";
13
- import { t as i } from "./classnames-VfuHc9uB.js";
14
- import { a, c as o, i as s, n as c, o as l } from "./dist-saTnlhyc.js";
15
- import { O as u, T as d, g as f, l as p, s as m, u as h, y as g } from "./flex-DnOM12q-.js";
16
- import { _, a as v, b as y, c as b, d as x, f as S, g as C, h as w, i as T, l as E, m as D, n as O, o as k, p as A, s as ee, t as te, u as ne, v as re, y as j } from "./theme-uaffdJE1.js";
17
- import { t as M } from "./dist-CtKSG8GG.js";
9
+ import { r as e } from "./rolldown-runtime-Ik1ocWLm.js";
10
+ import { t } from "./react-DxSEhu-j.js";
11
+ import { t as n } from "./jsx-runtime-xVcN9g8F.js";
12
+ import { t as r } from "./react-dom-CqQZIZ5q.js";
13
+ import { t as i } from "./classnames-C7JqIDkz.js";
14
+ import { a, c as o, i as s, n as c, o as l } from "./dist-DQ04vk8X.js";
15
+ import { O as u, T as d, g as f, l as p, s as m, u as h, y as g } from "./flex-5lvsJlaO.js";
16
+ import { _, a as v, b as y, c as b, d as x, f as S, g as C, h as w, i as T, l as E, m as D, n as O, o as k, p as A, s as ee, t as te, u as ne, v as re, y as j } from "./theme-ByGstXaJ.js";
17
+ import { t as M } from "./dist-B8Jegpa2.js";
18
18
  //#region ../../node_modules/.pnpm/@radix-ui+number@1.1.1/node_modules/@radix-ui/number/dist/index.mjs
19
19
  var N = /* @__PURE__ */ e(t(), 1);
20
20
  function ie(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.12.0" };
4
+ e.SENTRY_RELEASE = { id: "3.12.1" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "31134858-dcba-4b1b-8a78-4a828ed8eb05", e._sentryDebugIdIdentifier = "sentry-dbid-31134858-dcba-4b1b-8a78-4a828ed8eb05");
7
7
  } catch {}
8
8
  })();
9
- import "./reset-all-settings-BQgeIRam.js";
9
+ import "./reset-all-settings--GzHxj4F.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.12.0" };
4
+ e.SENTRY_RELEASE = { id: "3.12.1" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "a745d776-6f56-4ed6-99bd-561b5e7ce475", e._sentryDebugIdIdentifier = "sentry-dbid-a745d776-6f56-4ed6-99bd-561b5e7ce475");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DYSU24gn.js";
10
- import { t } from "./react-C02q0n7M.js";
11
- import { t as n } from "./jsx-runtime-DEIf9CUU.js";
12
- import { t as r } from "./classnames-VfuHc9uB.js";
13
- import { c as i, l as a, t as o, u as s, y as c } from "./flex-DnOM12q-.js";
9
+ import { r as e } from "./rolldown-runtime-Ik1ocWLm.js";
10
+ import { t } from "./react-DxSEhu-j.js";
11
+ import { t as n } from "./jsx-runtime-xVcN9g8F.js";
12
+ import { t as r } from "./classnames-C7JqIDkz.js";
13
+ import { c as i, l as a, t as o, u as s, y as c } from "./flex-5lvsJlaO.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._925f851475345a9e5e368d312bb98178/node_modules/@radix-ui/themes/dist/esm/components/separator.props.js
15
15
  var l = /* @__PURE__ */ e(t()), u = /* @__PURE__ */ e(r()), d = {
16
16
  orientation: {
@@ -2,20 +2,20 @@ 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.12.0" };
5
+ e.SENTRY_RELEASE = { id: "3.12.1" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "fe4c0218-5520-4d32-a510-f11ed572d4d6", e._sentryDebugIdIdentifier = "sentry-dbid-fe4c0218-5520-4d32-a510-f11ed572d4d6");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8fe51bbd-de57-4661-bbda-6a72fbad0ed6", e._sentryDebugIdIdentifier = "sentry-dbid-8fe51bbd-de57-4661-bbda-6a72fbad0ed6");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-DYSU24gn.js";
11
- import { A as n, B as r, F as i, G as a, H as o, I as s, J as c, K as l, L as u, Pt as d, Q as f, U as p, V as m, W as h, _ as g, a as _, at as v, c as y, d as b, f as x, h as S, it as C, k as w, l as T, lt as E, m as D, n as O, ot as k, p as A, s as j, t as ee, v as M, y as te, z as ne } from "./i18n-D9dsV3GV.js";
12
- import { s as re } from "./efp-debug-init-CYoM0s-a.js";
13
- import { t as ie } from "./react-C02q0n7M.js";
14
- import { t as ae } from "./jsx-runtime-DEIf9CUU.js";
15
- import { n as oe, r as N, t as se } from "./loadImage-C356B0zk.js";
16
- import { t as ce } from "./is-webview-SfodrdWn.js";
17
- import { t as le } from "./classnames-VfuHc9uB.js";
18
- import { t as ue } from "./Button-C5CmZ0so.js";
10
+ import { r as e, t } from "./rolldown-runtime-Ik1ocWLm.js";
11
+ import { A as n, B as r, F as i, G as a, H as o, I as s, J as c, K as l, L as u, Pt as d, Q as f, U as p, V as m, W as h, _ as g, a as _, at as v, c as y, d as b, f as x, h as S, it as C, k as w, l as T, lt as E, m as D, n as O, ot as k, p as A, s as j, t as ee, v as M, y as te, z as ne } from "./i18n-wZml67KB.js";
12
+ import { s as re } from "./efp-debug-init-DolwvXvu.js";
13
+ import { t as ie } from "./react-DxSEhu-j.js";
14
+ import { t as ae } from "./jsx-runtime-xVcN9g8F.js";
15
+ import { n as oe, r as N, t as se } from "./loadImage-DZxHBSrL.js";
16
+ import { t as ce } from "./is-webview-BlxQlyaS.js";
17
+ import { t as le } from "./classnames-C7JqIDkz.js";
18
+ import { t as ue } from "./Button-CxYYwdV3.js";
19
19
  //#region src/data/fp-payloads.ts
20
20
  function de() {
21
21
  let e = d().fpSvgJsRef;
@@ -31272,7 +31272,7 @@ var lM = class extends Qj {
31272
31272
  y: this.rect.size.x
31273
31273
  }, this.rect.rotation + t), this.handleBookmarkScale()), this.shape;
31274
31274
  });
31275
- });
31275
+ }, { fireImmediately: !0 });
31276
31276
  }
31277
31277
  update(e) {
31278
31278
  gW.layersLoaded && (this.shape.hidden = !e, this.shape.dim = this.booth.skipDim ? !1 : void 0, this.handleBookmarkScale(), this.shape.hidden ? (this.rendererService.ptScaleRegistry.unregisterByName(this.bookmarkId), this.rendererService.rollRegistry.unregisterByName(`bookmark-roll-${this.bookmarkId}`)) : this.rendererService.onPtScale(this.bookmarkId, this.handleBookmarkScale.bind(this)), this.rendererService.update(this.shape));
@@ -31450,7 +31450,7 @@ var EM = "Details", DM = class extends Qj {
31450
31450
  let t = _j(e, this.shapeLabel.bounds.rotation), { size: i } = this.canvasRect;
31451
31451
  return t !== void 0 && (this.shapeLabel = hj(this.shapeLabel, t), !this.shapeLabel.hidden && !this.exh.length && i.x !== i.y && (this.canvasRect = gj(this.canvasRect, t), this.calculateFontSizeFactors(), n(this.rendererService.scale), r(this.rendererService.scale))), [this.shapeLabel, this.shapeDot];
31452
31452
  });
31453
- }), this.rendererService.onPtScale(`booth-label-${t.id}`, n), this.rendererService.onPtScale(`booth-dot-${t.id}`, r);
31453
+ }, { fireImmediately: !0 }), this.rendererService.onPtScale(`booth-label-${t.id}`, n), this.rendererService.onPtScale(`booth-dot-${t.id}`, r);
31454
31454
  }
31455
31455
  getShape() {
31456
31456
  return [this.shapeLabel, this.shapeDot];
@@ -31671,7 +31671,7 @@ var zM = class extends DM {
31671
31671
  }
31672
31672
  return [this.shapeLabel, this.shapeDot];
31673
31673
  });
31674
- });
31674
+ }, { fireImmediately: !0 });
31675
31675
  }
31676
31676
  getShape() {
31677
31677
  return [this.shapeLabel, this.shapeDot];
@@ -33935,7 +33935,7 @@ var nI = (QF = class {
33935
33935
  }
33936
33936
  async buildEngine() {
33937
33937
  try {
33938
- let { default: e } = await import("./fuse-Ddn6vCOL.js").then((e) => e.n);
33938
+ let { default: e } = await import("./fuse-BWnB1Pgo.js").then((e) => e.n);
33939
33939
  te(() => {
33940
33940
  this.engine = new e([], {
33941
33941
  keys: this.keys,
@@ -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.12.0" };
4
+ e.SENTRY_RELEASE = { id: "3.12.1" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ebe8f804-597b-4b08-adc4-ca6b63645c83", e._sentryDebugIdIdentifier = "sentry-dbid-ebe8f804-597b-4b08-adc4-ca6b63645c83");
7
7
  } catch {}
8
8
  })();
9
- import { t as e } from "./jsx-runtime-DEIf9CUU.js";
10
- import { t } from "./settings-item-BSR8Iz1R.js";
11
- import { t as n } from "./text-field-D5x33kIn.js";
9
+ import { t as e } from "./jsx-runtime-xVcN9g8F.js";
10
+ import { t } from "./settings-item-5zzAH3FT.js";
11
+ import { t as n } from "./text-field-ySWl7XqC.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.12.0" };
4
+ e.SENTRY_RELEASE = { id: "3.12.1" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "651e1a3a-8897-47f8-8a5e-24137d6b0f0d", e._sentryDebugIdIdentifier = "sentry-dbid-651e1a3a-8897-47f8-8a5e-24137d6b0f0d");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DYSU24gn.js";
10
- import { t } from "./react-C02q0n7M.js";
11
- import { t as n } from "./classnames-VfuHc9uB.js";
12
- import { D as r, i, l as a, n as o, s, u as c, y as l } from "./flex-DnOM12q-.js";
9
+ import { r as e } from "./rolldown-runtime-Ik1ocWLm.js";
10
+ import { t } from "./react-DxSEhu-j.js";
11
+ import { t as n } from "./classnames-C7JqIDkz.js";
12
+ import { D as r, i, l as a, n as o, s, u as c, y as l } from "./flex-5lvsJlaO.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._925f851475345a9e5e368d312bb98178/node_modules/@radix-ui/themes/dist/esm/components/text-field.props.js
14
14
  var u = /* @__PURE__ */ e(t()), d = /* @__PURE__ */ e(n()), 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.12.0" };
4
+ e.SENTRY_RELEASE = { id: "3.12.1" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "864c18b1-0ffa-4523-9fe0-93bdf8a9090c", e._sentryDebugIdIdentifier = "sentry-dbid-864c18b1-0ffa-4523-9fe0-93bdf8a9090c");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DYSU24gn.js";
10
- import { t } from "./react-C02q0n7M.js";
11
- import { t as n } from "./jsx-runtime-DEIf9CUU.js";
12
- import { t as r } from "./react-dom-BV1hX9nO.js";
13
- import { t as i } from "./classnames-VfuHc9uB.js";
14
- import { a, c as o, i as s, n as c, o as l, r as u, t as d } from "./dist-saTnlhyc.js";
15
- import { C as f, E as p, O as m, T as h, _ as g, o as _, v, w as y } from "./flex-DnOM12q-.js";
9
+ import { r as e } from "./rolldown-runtime-Ik1ocWLm.js";
10
+ import { t } from "./react-DxSEhu-j.js";
11
+ import { t as n } from "./jsx-runtime-xVcN9g8F.js";
12
+ import { t as r } from "./react-dom-CqQZIZ5q.js";
13
+ import { t as i } from "./classnames-C7JqIDkz.js";
14
+ import { a, c as o, i as s, n as c, o as l, r as u, t as d } from "./dist-DQ04vk8X.js";
15
+ import { C as f, E as p, O as m, T as h, _ as g, o as _, v, w as y } from "./flex-5lvsJlaO.js";
16
16
  //#region ../../node_modules/.pnpm/@radix-ui+react-id@1.1.1_@types+react@19.2.17_react@19.2.7/node_modules/@radix-ui/react-id/dist/index.mjs
17
17
  var b = n(), x = /* @__PURE__ */ e(t(), 1), S = x.useId || (() => void 0), C = 0;
18
18
  function w(e) {
@@ -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.12.0" };
4
+ e.SENTRY_RELEASE = { id: "3.12.1" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "05a753ca-f6da-4c1e-acf5-eacf4d461db5", e._sentryDebugIdIdentifier = "sentry-dbid-05a753ca-f6da-4c1e-acf5-eacf4d461db5");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DYSU24gn.js";
10
- import { a as t, i as n, s as r } from "./efp-debug-init-CYoM0s-a.js";
11
- import { a as i, o as a } from "./reset-all-settings-BQgeIRam.js";
12
- import { t as o } from "./jsx-runtime-DEIf9CUU.js";
13
- import "./settings-Dw78gtQ_.js";
14
- import { t as s } from "./add-debug-secret-listener-BTGIVZFY.js";
9
+ import { r as e } from "./rolldown-runtime-Ik1ocWLm.js";
10
+ import { a as t, i as n, s as r } from "./efp-debug-init-DolwvXvu.js";
11
+ import { a as i, o as a } from "./reset-all-settings--GzHxj4F.js";
12
+ import { t as o } from "./jsx-runtime-xVcN9g8F.js";
13
+ import "./settings-BndqjdZx.js";
14
+ import { t as s } from "./add-debug-secret-listener-rtzwkssg.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-BT7Ddvoj.js"), { createRoot: i } = await import("./client-Bevofhdz.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div");
29
+ let { DebugUi: n } = await import("./debug-ui-fkLeLMTN.js"), { createRoot: i } = await import("./client-DRCaFfyq.js").then((t) => /* @__PURE__ */ e(t.default, 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.12.0" };
4
+ e.SENTRY_RELEASE = { id: "3.12.1" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "33455732-e070-4a3b-bdf3-a25a1f54c994", e._sentryDebugIdIdentifier = "sentry-dbid-33455732-e070-4a3b-bdf3-a25a1f54c994");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DYSU24gn.js";
10
- import { t } from "./react-C02q0n7M.js";
11
- import { c as n } from "./store-DxRBdgZM.js";
9
+ import { r as e } from "./rolldown-runtime-Ik1ocWLm.js";
10
+ import { t } from "./react-DxSEhu-j.js";
11
+ import { c as n } from "./store-CgXKlx2n.js";
12
12
  //#region src/utils/getRenderTargetFromRoot.ts
13
13
  var r = /* @__PURE__ */ e(t(), 1);
14
14
  function i(e) {
@@ -1 +1 @@
1
- import{Rect as o}from"@expofp/geometry";import{reaction as s}from"mobx";import{createBookmarkCanvas as c,createImageDef as k,getClampedBoundsCanvas as m,getRollValue as l,getRotation as p}from"../../../../renderer";import{layersStore as a,uiState as h}from"../../../../store";import{BoothDrawerBaseWithoutPainter as u}from"./BoothDrawerBase";export default function f(r,e){if(!h.kiosk)return new b(r,e)}class b extends u{rendererService;shape;bookmarkId;canvas;rect;padding;constructor(e,t){super(t),this.rendererService=e,this.padding=this.booth.borderWidth/2,this.rect=new o(this.booth.rect.center,this.booth.rect.size,this.booth.rotate),this.canvas=c(11,devicePixelRatio),this.bookmarkId=`bookmark-${this.booth.id}`,this.shape=k(this.canvas,this.rect,{hidden:!t.bookmarked}),s(()=>[t.bookmarked,a.layersLoaded,this.booth.skipDim],()=>this.update(t.bookmarked),{fireImmediately:t.bookmarked}),s(()=>h.mapSettings,({roll:n})=>{l(n)&&this.rendererService.onRoll(`bookmark-roll-${this.bookmarkId}`,d=>{const i=p(d,this.rect.rotation);return i!==void 0&&(this.rect=new o(this.rect.center,{x:this.rect.size.y,y:this.rect.size.x},this.rect.rotation+i),this.handleBookmarkScale()),this.shape})})}getShape=()=>this.shape;update(e){a.layersLoaded&&(this.shape.hidden=!e,this.shape.dim=this.booth.skipDim?!1:void 0,this.handleBookmarkScale(),this.shape.hidden?(this.rendererService.ptScaleRegistry.unregisterByName(this.bookmarkId),this.rendererService.rollRegistry.unregisterByName(`bookmark-roll-${this.bookmarkId}`)):this.rendererService.onPtScale(this.bookmarkId,this.handleBookmarkScale.bind(this)),this.rendererService.update(this.shape))}handleBookmarkScale(e){if(!this.shape.hidden)return this.shape.bounds=m(this.rect,this.canvas,this.padding,e||this.rendererService.scale),this.shape}}
1
+ import{Rect as o}from"@expofp/geometry";import{reaction as a}from"mobx";import{createBookmarkCanvas as c,createImageDef as k,getClampedBoundsCanvas as m,getRollValue as l,getRotation as p}from"../../../../renderer";import{layersStore as s,uiState as h}from"../../../../store";import{BoothDrawerBaseWithoutPainter as u}from"./BoothDrawerBase";export default function f(r,e){if(!h.kiosk)return new b(r,e)}class b extends u{rendererService;shape;bookmarkId;canvas;rect;padding;constructor(e,t){super(t),this.rendererService=e,this.padding=this.booth.borderWidth/2,this.rect=new o(this.booth.rect.center,this.booth.rect.size,this.booth.rotate),this.canvas=c(11,devicePixelRatio),this.bookmarkId=`bookmark-${this.booth.id}`,this.shape=k(this.canvas,this.rect,{hidden:!t.bookmarked}),a(()=>[t.bookmarked,s.layersLoaded,this.booth.skipDim],()=>this.update(t.bookmarked),{fireImmediately:t.bookmarked}),a(()=>h.mapSettings,({roll:n})=>{l(n)&&this.rendererService.onRoll(`bookmark-roll-${this.bookmarkId}`,d=>{const i=p(d,this.rect.rotation);return i!==void 0&&(this.rect=new o(this.rect.center,{x:this.rect.size.y,y:this.rect.size.x},this.rect.rotation+i),this.handleBookmarkScale()),this.shape})},{fireImmediately:!0})}getShape=()=>this.shape;update(e){s.layersLoaded&&(this.shape.hidden=!e,this.shape.dim=this.booth.skipDim?!1:void 0,this.handleBookmarkScale(),this.shape.hidden?(this.rendererService.ptScaleRegistry.unregisterByName(this.bookmarkId),this.rendererService.rollRegistry.unregisterByName(`bookmark-roll-${this.bookmarkId}`)):this.rendererService.onPtScale(this.bookmarkId,this.handleBookmarkScale.bind(this)),this.rendererService.update(this.shape))}handleBookmarkScale(e){if(!this.shape.hidden)return this.shape.bounds=m(this.rect,this.canvas,this.padding,e||this.rendererService.scale),this.shape}}
@@ -1,2 +1,2 @@
1
- import{Box as x,Rect as f}from"@expofp/geometry";import{reaction as u}from"mobx";import{FONT_WEIGHT_PRIMARY_BOOTH as L,FONT_WEIGHT_PRIMARY_SPECIAL as D}from"../../../../constants";import{boxToRenderer as R,createTextDef as F,getRollValue as v,getRotation as T,shouldFlip as y,updateRectRotation as z,updateTextDefRotation as P}from"../../../../renderer";import{boothStore as w,heatmapStore as k,layersStore as B,uiState as d}from"../../../../store";import{SpecialBooth as I}from"../../../../store/BoothStore";import M from"../../../../tools/settings";import{getFont as C}from"./canvases";import{BoothLabelDrawer as W,getFontUrlByWeight as V,getMinZoomFactorForDot as _,isDirectionsMode as $}from"./config-booth-labels";import H from"./TextFitter";const p=new Map;function N(i){let t=p.get(i);if(!t){const s=[18,16,14,12,10,7].map(h=>h*i),o=14*i;t=new H(C,s,o),p.set(i,t),setTimeout(()=>p.delete(i),5e3)}return t}export default function O(i,t){if(!(!(t instanceof I)||t.noLabels))return new A(i,t)}class A extends W{steps;labelIsVertical;text;constructor(t,s){super(t,s);const o=s.borderWidth/2||w.borderWidth/2,h=this.booth.rect,S=Number(getComputedStyle(document.body).getPropertyValue(D))||Number(getComputedStyle(document.body).getPropertyValue(L))||500,g=V(S,this.rendererService.fontUrls),c=h.expand({x:-(h.size.width*.05+o),y:-(h.size.height*.05+o)});this.setText(),this.canvasRect=new f(c.center,c.size,s.rotate),this.setFactors(this.text),this.labelIsVertical=Math.abs(Math.abs(s.rotate)-Math.PI/2)<.01,this.fontSizes=[this.steps,[]],this.minZoomDotVisible=_(this.steps.map(e=>e.scaleFactor)),this.shapeLabel=F([{text:this.text,color:s.labelColor||M.boothLabelColor,fontUrl:g,fontSize:0}],new f(c.center,c.size,s.rotate),[o,o],{horizontal:"center",text:"center",vertical:"center"}),this.getShapeDot(),u(()=>[this.booth.skipDim,d.selectedRoute,B.layersLoaded],()=>{const e=$();this.shapeLabel.dim=e||this.booth.skipDim?!1:void 0,this.shapeDot.dim=e||this.booth.skipDim?!1:void 0,this.rendererService.update(this.shapeLabel,this.shapeDot)});const m=e=>{let a=this.steps.find(r=>r.scaleFactor<1/e);return a?(this.shapeLabel.lines[0].fontSize=a.value/devicePixelRatio*e,this.shapeLabel.lines[0].text=a.lines.join(`
2
- `),this.shapeLabel.padding=[this.paddingScaled[0]*e+this.padding,this.paddingScaled[1]*e+this.padding],this.shapeLabel):(this.shapeLabel.lines[0].fontSize=0,this.shapeLabel)},b=e=>{let a=this.steps.find(l=>l.scaleFactor<1/e);const r=this.shapeDot.source.width*e,n=this.shapeDot.source.height*e;return this.shapeDot.bounds=R(x.fromCenter(this.canvasRect.center,{x:r,y:n})),this.shapeDot.hidden=!!a,this.shapeDot};this.rendererService.onPtScale(`booth-special-label-${s.id}`,m),this.rendererService.onPtScale(`booth-special-dot-${s.id}`,b),u(()=>d.mapSettings,({roll:e})=>{v(e)&&this.rendererService.onRoll(`booth-special-roll-${s.id}`,a=>{const r=this.shapeLabel.bounds.rotation;if(this.labelIsVertical)y(a,r)&&(this.shapeLabel.bounds.rotation=-r);else{const n=T(a,r);if(n!==void 0){const{size:l}=this.canvasRect;this.shapeLabel=P(this.shapeLabel,n),l.x!==l.y&&!this.shapeLabel.hidden&&(this.canvasRect=z(this.canvasRect,n),this.setFactors(this.text),m(this.rendererService.scale),b(this.rendererService.scale))}}return[this.shapeLabel,this.shapeDot]})})}getShape(){return[this.shapeLabel,this.shapeDot]}setFactors(t){this.steps=N(devicePixelRatio).getStepsForRect(t,this.canvasRect.size.x,this.canvasRect.size.y)}setText(){const t=this.booth.title||this.booth.name,o=`Clicks: ${k.getTotalClicksByBooth(this.booth)}`;this.text=d.heatmap?`${t} - ${o}`:t}}
1
+ import{Box as x,Rect as f}from"@expofp/geometry";import{reaction as u}from"mobx";import{FONT_WEIGHT_PRIMARY_BOOTH as L,FONT_WEIGHT_PRIMARY_SPECIAL as D}from"../../../../constants";import{boxToRenderer as R,createTextDef as F,getRollValue as v,getRotation as y,shouldFlip as T,updateRectRotation as z,updateTextDefRotation as P}from"../../../../renderer";import{boothStore as w,heatmapStore as I,layersStore as k,uiState as d}from"../../../../store";import{SpecialBooth as B}from"../../../../store/BoothStore";import M from"../../../../tools/settings";import{getFont as C}from"./canvases";import{BoothLabelDrawer as W,getFontUrlByWeight as V,getMinZoomFactorForDot as _,isDirectionsMode as $}from"./config-booth-labels";import H from"./TextFitter";const p=new Map;function N(i){let t=p.get(i);if(!t){const s=[18,16,14,12,10,7].map(h=>h*i),o=14*i;t=new H(C,s,o),p.set(i,t),setTimeout(()=>p.delete(i),5e3)}return t}export default function O(i,t){if(!(!(t instanceof B)||t.noLabels))return new A(i,t)}class A extends W{steps;labelIsVertical;text;constructor(t,s){super(t,s);const o=s.borderWidth/2||w.borderWidth/2,h=this.booth.rect,S=Number(getComputedStyle(document.body).getPropertyValue(D))||Number(getComputedStyle(document.body).getPropertyValue(L))||500,g=V(S,this.rendererService.fontUrls),c=h.expand({x:-(h.size.width*.05+o),y:-(h.size.height*.05+o)});this.setText(),this.canvasRect=new f(c.center,c.size,s.rotate),this.setFactors(this.text),this.labelIsVertical=Math.abs(Math.abs(s.rotate)-Math.PI/2)<.01,this.fontSizes=[this.steps,[]],this.minZoomDotVisible=_(this.steps.map(e=>e.scaleFactor)),this.shapeLabel=F([{text:this.text,color:s.labelColor||M.boothLabelColor,fontUrl:g,fontSize:0}],new f(c.center,c.size,s.rotate),[o,o],{horizontal:"center",text:"center",vertical:"center"}),this.getShapeDot(),u(()=>[this.booth.skipDim,d.selectedRoute,k.layersLoaded],()=>{const e=$();this.shapeLabel.dim=e||this.booth.skipDim?!1:void 0,this.shapeDot.dim=e||this.booth.skipDim?!1:void 0,this.rendererService.update(this.shapeLabel,this.shapeDot)});const m=e=>{let a=this.steps.find(r=>r.scaleFactor<1/e);return a?(this.shapeLabel.lines[0].fontSize=a.value/devicePixelRatio*e,this.shapeLabel.lines[0].text=a.lines.join(`
2
+ `),this.shapeLabel.padding=[this.paddingScaled[0]*e+this.padding,this.paddingScaled[1]*e+this.padding],this.shapeLabel):(this.shapeLabel.lines[0].fontSize=0,this.shapeLabel)},b=e=>{let a=this.steps.find(l=>l.scaleFactor<1/e);const r=this.shapeDot.source.width*e,n=this.shapeDot.source.height*e;return this.shapeDot.bounds=R(x.fromCenter(this.canvasRect.center,{x:r,y:n})),this.shapeDot.hidden=!!a,this.shapeDot};this.rendererService.onPtScale(`booth-special-label-${s.id}`,m),this.rendererService.onPtScale(`booth-special-dot-${s.id}`,b),u(()=>d.mapSettings,({roll:e})=>{v(e)&&this.rendererService.onRoll(`booth-special-roll-${s.id}`,a=>{const r=this.shapeLabel.bounds.rotation;if(this.labelIsVertical)T(a,r)&&(this.shapeLabel.bounds.rotation=-r);else{const n=y(a,r);if(n!==void 0){const{size:l}=this.canvasRect;this.shapeLabel=P(this.shapeLabel,n),l.x!==l.y&&!this.shapeLabel.hidden&&(this.canvasRect=z(this.canvasRect,n),this.setFactors(this.text),m(this.rendererService.scale),b(this.rendererService.scale))}}return[this.shapeLabel,this.shapeDot]})},{fireImmediately:!0})}getShape(){return[this.shapeLabel,this.shapeDot]}setFactors(t){this.steps=N(devicePixelRatio).getStepsForRect(t,this.canvasRect.size.x,this.canvasRect.size.y)}setText(){const t=this.booth.title||this.booth.name,o=`Clicks: ${I.getTotalClicksByBooth(this.booth)}`;this.text=d.heatmap?`${t} - ${o}`:t}}
@@ -1 +1 @@
1
- import{Rect as E}from"@expofp/geometry";import{reaction as W}from"mobx";import{FONT_WEIGHT_PRIMARY_BOOTH as N,FONT_WEIGHT_PRIMARY_EXHIBITOR as U,FONT_WEIGHT_SECONDARY_BOOTH as V,FONT_WEIGHT_SECONDARY_EXHIBITOR as Z}from"../../../../constants";import m from"../../../../data";import{createShapeDot as X,createTextDef as G,createTextDefLines as Y,DEFAULT_FONT_LIGHT_URL as $,DEFAULT_FONT_URL as B,getRollValue as k,getRotation as q,updateLinesScale as j,updateRectRotation as J,updateTextDefRotation as K}from"../../../../renderer";import{layersStore as M,uiState as f}from"../../../../store";import{RegularBooth as Q,SpecialBooth as ee}from"../../../../store/BoothStore";import x from"../../../../tools/settings";import{t as v}from"../../../../utils/i18n";import te from"../../../../utils/is-mobile";import ie from"../../../../utils/is-webview";import{isArabicText as se}from"../../../../utils/rtl";import{BoothDrawerBaseWithoutPainter as ne}from"./BoothDrawerBase";import{getFont as _}from"./canvases";let z=x.boothLabelColor;x.EXPO==="tqs2021"&&(z="#000");const b=te||ie,D=r=>r.replace(" ","").substring(0,4).replace(/[0-9]/g,"3").replace(/[A-Z]/gi,"A"),H=document.createElement("canvas").getContext("2d");export default function oe(r,e){if(!(!(e instanceof Q)||e.noLabels))return new BoothLabelDrawer(r,e)}export function getMinZoomFactorForDot(r){return Array.isArray(r)&&r.length>0?Math.max(...r.map(e=>e)):typeof r=="number"?r:-0}export const isDirectionsMode=()=>!!(f.selectedRoute?.from&&f.selectedRoute?.to);export function getFontUrlByWeight(r,e=[],t="normal"){return[...e,{weight:500,url:B,style:"normal"},{weight:300,url:$,style:"normal"}].find(i=>+i.weight===r&&i.style===t)?.url||B}function S(r,e){return Number(getComputedStyle(document.body).getPropertyValue(r))||e}export function getBoothLabelWeights(){return{main:S(N,500),details:S(V,300)}}export function getExhibitorLabelWeights(){return{main:S(U,500),details:S(Z,300)}}export function getBadgeFontWeight(){return getExhibitorLabelWeights().details}const R="Details";export class BoothLabelDrawer extends ne{rendererService;canvasRect;paddingScaled;padding;minZoomDotVisible;maxZoomDotVisible;exh;shapeLabel;shapeDot;fontSizes;lines;topLeftAlignment;centerAlignment;prefixes;fontUrls;constructor(e,t){if(super(t),this.rendererService=e,this.canvasRect=new E(t.rect.center,t.rect.size,t.rotate),this.paddingScaled=[4,4],this.padding=(t.borderWidth||x.boothBorderWidth)/2,this.topLeftAlignment={horizontal:f.rtl?"right":"left",vertical:"top"},this.centerAlignment={horizontal:"center",vertical:"center"},this.prefixes=b?[{fontSize:7,name:"XS",short:!0},{fontSize:10,name:"S",short:!0},{fontSize:16,name:R,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:R,short:!1}],t instanceof ee)return;this.exh=m.hideExhibitors?[]:m.onlyFeaturedExhibitors?t.exhibitors.filter(i=>i.featured):t.exhibitors,b&&this.optimizationLevel()>=3&&(this.prefixes=this.prefixes.filter(i=>i.name!=="S")),this.createLines(),this.calculateFontSizeFactors(),this.shapeLabel=G(Y(this.lines,this.booth.labelColor||z,0,this.fontUrls),new E(this.booth.rect.center,this.booth.rect.size,this.booth.rotate),[...this.paddingScaled],{horizontal:"left",vertical:"top"}),this.getShapeDot();const o=i=>{const n=this.lines[1]??[],s=this.fontSizes[1]??[];if(x.EXPO!=="wineparis2026"){const p=this.exh.length?this.topLeftAlignment:n.length?i<s[s.length-1].scaleFactor?this.topLeftAlignment:this.centerAlignment:this.topLeftAlignment;this.shapeLabel.alignment=p}if(!j(this.shapeLabel.lines,i,this.fontSizes,this.booth.name))return;const l=this.paddingScaled[0]*i+this.padding,d=this.paddingScaled[1]*i+this.padding;return this.shapeLabel.padding[0]=l,this.shapeLabel.padding[1]=d,this.shapeLabel},h=i=>{const n=i>=this.minZoomDotVisible&&i<=this.maxZoomDotVisible,s=this.shapeDot.source.width*i,a=this.shapeDot.source.height*i;if(!(!n&&this.shapeDot.hidden))return this.shapeDot.bounds.size={x:s,y:a},this.shapeDot.hidden=!n,this.shapeDot};W(()=>[this.booth.skipDim,f.selectedRoute,M.layersLoaded],()=>{if(!M.layersLoaded)return;const i=isDirectionsMode();this.shapeLabel.dim=i||this.booth.skipDim?!1:void 0,this.shapeDot.dim=i||this.booth.skipDim?!1:void 0,this.rendererService.update(this.shapeLabel,this.shapeDot)}),W(()=>f.mapSettings,({roll:i})=>{k(i)&&this.rendererService.onRoll(`booth-roll-${t.id}`,n=>{const s=q(n,this.shapeLabel.bounds.rotation),{size:a}=this.canvasRect;return s!==void 0&&(this.shapeLabel=K(this.shapeLabel,s),!this.shapeLabel.hidden&&!this.exh.length&&a.x!==a.y&&(this.canvasRect=J(this.canvasRect,s),this.calculateFontSizeFactors(),o(this.rendererService.scale),h(this.rendererService.scale))),[this.shapeLabel,this.shapeDot]})}),this.rendererService.onPtScale(`booth-label-${t.id}`,o),this.rendererService.onPtScale(`booth-dot-${t.id}`,h)}getShape(){return[this.shapeLabel,this.shapeDot]}getShapeDot(){this.shapeDot=X(this.canvasRect,this.booth.labelColor||z),this.shapeDot.hidden=!0,this.maxZoomDotVisible=Math.min(this.canvasRect.size.x/this.shapeDot.source.width,this.canvasRect.size.y/this.shapeDot.source.height)}createLines(){const e=this.booth,t=[],o=[],h=b&&this.optimizationLevel()>=3?1:3;if(this.exh.length){const i=e.exhibitors.filter(s=>s.order===0),n=e.exhibitors.filter(s=>s.order);if(i.length>0)t.push(...i.map(s=>s.name));else if(m.onlyFeaturedExhibitors)t.push(...e.exhibitors.filter(s=>s.featured).map(s=>s.name));else if(n.length>0){t.push(...n.map(a=>a.name));const s=e.exhibitors.filter(a=>a.order===void 0);s.length>0&&t.push(v("and {{moreCount}} more",{moreCount:s.length}))}else e.exhibitors.length>h?t.push(`${e.exhibitors.length} ${m.exhibitorTermPlural}`):t.push(...e.exhibitors.map(s=>s.name));o.push(e.title||e.name)}else{const i=!!e.exhibitors.length;t.push(e.title||e.name),e.onHold?o.push(v("On Hold")):e.reserved?o.push(v("Reserved")):i||o.push(...e.exhibitors.map(n=>n.name).sort((n,s)=>n>s?1:-1)),e.size&&o.push(e.size.indexOf("/")>-1?e.size.substring(0,e.size.indexOf("/")).trim():e.size),e.price&&e.price!=="0"&&!f.previewMode&&o.push(e.price)}f.rtl&&t.forEach((i,n)=>{(i.endsWith(".")||i.endsWith("!")||i.endsWith("?"))&&(t[n]=t[n]+"\u200F"),se(i)&&(t[n]=t[n]+" ")}),this.lines=[t,o]}calculateFontSizeFactors(){let[e,t]=this.lines;const o=this.canvasRect,h=[],i=[],n=this.prefixes.slice(0,this.exh.length?this.prefixes.length:this.prefixes.length-1),{main:s,details:a}=this.exh.length?getExhibitorLabelWeights():getBoothLabelWeights();for(const{fontSize:l,short:d}of n){const p=l*devicePixelRatio,F=.9*l*devicePixelRatio,u=_(p,s),T=_(F,a),y=m.hideExhibitorBoothNumber||d;let w,A,L,g;if(this.exh.length)d?t=[]:t=this.lines[1],L=Math.max(...e.map(c=>this.measureText(c,u).width),...t.map(c=>this.measureText(c,T).width)),w=Math.max(...e.map(c=>this.exh.length?this.measureText(D(c),u).width:this.measureText(D(c),u).width+3+3),...t.map(c=>this.measureText(D(c),T).width)),g=p*e.length+F*t.length+devicePixelRatio*(e.length+t.length)+3,A=y?g/e.length:null;else{const c=e[0].replace(/[0-9]/g,"3").replace(/[A-Z]/g,"A"),C=4;L=this.measureText(c,u).width+3+3,g=p+C}const I=o.size.x/(w||L),P=o.size.y/(A||g),O=Math.min(I,P);h.push({scaleFactor:O,value:l}),!y&&i.push({scaleFactor:O,value:.9*l})}if(!this.exh.length){const l=h[h.length-1],d=this.prefixes.find(p=>p.name===R);h.push({scaleFactor:l.scaleFactor/1.8,value:d.fontSize}),i.push({scaleFactor:l.scaleFactor/1.8,value:d.fontSize*(b?1:.9)})}this.fontUrls=[getFontUrlByWeight(s,this.rendererService.fontUrls),getFontUrlByWeight(a,this.rendererService.fontUrls)],this.minZoomDotVisible=getMinZoomFactorForDot(h.map(l=>l.scaleFactor)),this.fontSizes=[h,i]}calcArea(e,t){return Math.floor(Math.max(0,e)*Math.max(0,t)/1e3)}optimizationLevel(){return Math.min(m.viewOptimizationLevel?m.viewOptimizationLevel:Math.floor(this.calcArea(this.canvasRect.size.x,this.canvasRect.size.y)/5e3),3)}measureText(e,t){return H.font=t,H.measureText(e)}}
1
+ import{Rect as E}from"@expofp/geometry";import{reaction as W}from"mobx";import{FONT_WEIGHT_PRIMARY_BOOTH as N,FONT_WEIGHT_PRIMARY_EXHIBITOR as U,FONT_WEIGHT_SECONDARY_BOOTH as V,FONT_WEIGHT_SECONDARY_EXHIBITOR as Z}from"../../../../constants";import p from"../../../../data";import{createShapeDot as X,createTextDef as G,createTextDefLines as Y,DEFAULT_FONT_LIGHT_URL as $,DEFAULT_FONT_URL as B,getRollValue as k,getRotation as q,updateLinesScale as j,updateRectRotation as J,updateTextDefRotation as K}from"../../../../renderer";import{layersStore as M,uiState as f}from"../../../../store";import{RegularBooth as Q,SpecialBooth as ee}from"../../../../store/BoothStore";import x from"../../../../tools/settings";import{t as v}from"../../../../utils/i18n";import te from"../../../../utils/is-mobile";import ie from"../../../../utils/is-webview";import{isArabicText as se}from"../../../../utils/rtl";import{BoothDrawerBaseWithoutPainter as ne}from"./BoothDrawerBase";import{getFont as _}from"./canvases";let z=x.boothLabelColor;x.EXPO==="tqs2021"&&(z="#000");const b=te||ie,D=r=>r.replace(" ","").substring(0,4).replace(/[0-9]/g,"3").replace(/[A-Z]/gi,"A"),I=document.createElement("canvas").getContext("2d");export default function oe(r,e){if(!(!(e instanceof Q)||e.noLabels))return new BoothLabelDrawer(r,e)}export function getMinZoomFactorForDot(r){return Array.isArray(r)&&r.length>0?Math.max(...r.map(e=>e)):typeof r=="number"?r:-0}export const isDirectionsMode=()=>!!(f.selectedRoute?.from&&f.selectedRoute?.to);export function getFontUrlByWeight(r,e=[],t="normal"){return[...e,{weight:500,url:B,style:"normal"},{weight:300,url:$,style:"normal"}].find(i=>+i.weight===r&&i.style===t)?.url||B}function S(r,e){return Number(getComputedStyle(document.body).getPropertyValue(r))||e}export function getBoothLabelWeights(){return{main:S(N,500),details:S(V,300)}}export function getExhibitorLabelWeights(){return{main:S(U,500),details:S(Z,300)}}export function getBadgeFontWeight(){return getExhibitorLabelWeights().details}const R="Details";export class BoothLabelDrawer extends ne{rendererService;canvasRect;paddingScaled;padding;minZoomDotVisible;maxZoomDotVisible;exh;shapeLabel;shapeDot;fontSizes;lines;topLeftAlignment;centerAlignment;prefixes;fontUrls;constructor(e,t){if(super(t),this.rendererService=e,this.canvasRect=new E(t.rect.center,t.rect.size,t.rotate),this.paddingScaled=[4,4],this.padding=(t.borderWidth||x.boothBorderWidth)/2,this.topLeftAlignment={horizontal:f.rtl?"right":"left",vertical:"top"},this.centerAlignment={horizontal:"center",vertical:"center"},this.prefixes=b?[{fontSize:7,name:"XS",short:!0},{fontSize:10,name:"S",short:!0},{fontSize:16,name:R,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:R,short:!1}],t instanceof ee)return;this.exh=p.hideExhibitors?[]:p.onlyFeaturedExhibitors?t.exhibitors.filter(i=>i.featured):t.exhibitors,b&&this.optimizationLevel()>=3&&(this.prefixes=this.prefixes.filter(i=>i.name!=="S")),this.createLines(),this.calculateFontSizeFactors(),this.shapeLabel=G(Y(this.lines,this.booth.labelColor||z,0,this.fontUrls),new E(this.booth.rect.center,this.booth.rect.size,this.booth.rotate),[...this.paddingScaled],{horizontal:"left",vertical:"top"}),this.getShapeDot();const o=i=>{const n=this.lines[1]??[],s=this.fontSizes[1]??[];if(x.EXPO!=="wineparis2026"){const m=this.exh.length?this.topLeftAlignment:n.length?i<s[s.length-1].scaleFactor?this.topLeftAlignment:this.centerAlignment:this.topLeftAlignment;this.shapeLabel.alignment=m}if(!j(this.shapeLabel.lines,i,this.fontSizes,this.booth.name))return;const l=this.paddingScaled[0]*i+this.padding,d=this.paddingScaled[1]*i+this.padding;return this.shapeLabel.padding[0]=l,this.shapeLabel.padding[1]=d,this.shapeLabel},h=i=>{const n=i>=this.minZoomDotVisible&&i<=this.maxZoomDotVisible,s=this.shapeDot.source.width*i,a=this.shapeDot.source.height*i;if(!(!n&&this.shapeDot.hidden))return this.shapeDot.bounds.size={x:s,y:a},this.shapeDot.hidden=!n,this.shapeDot};W(()=>[this.booth.skipDim,f.selectedRoute,M.layersLoaded],()=>{if(!M.layersLoaded)return;const i=isDirectionsMode();this.shapeLabel.dim=i||this.booth.skipDim?!1:void 0,this.shapeDot.dim=i||this.booth.skipDim?!1:void 0,this.rendererService.update(this.shapeLabel,this.shapeDot)}),W(()=>f.mapSettings,({roll:i})=>{k(i)&&this.rendererService.onRoll(`booth-roll-${t.id}`,n=>{const s=q(n,this.shapeLabel.bounds.rotation),{size:a}=this.canvasRect;return s!==void 0&&(this.shapeLabel=K(this.shapeLabel,s),!this.shapeLabel.hidden&&!this.exh.length&&a.x!==a.y&&(this.canvasRect=J(this.canvasRect,s),this.calculateFontSizeFactors(),o(this.rendererService.scale),h(this.rendererService.scale))),[this.shapeLabel,this.shapeDot]})},{fireImmediately:!0}),this.rendererService.onPtScale(`booth-label-${t.id}`,o),this.rendererService.onPtScale(`booth-dot-${t.id}`,h)}getShape(){return[this.shapeLabel,this.shapeDot]}getShapeDot(){this.shapeDot=X(this.canvasRect,this.booth.labelColor||z),this.shapeDot.hidden=!0,this.maxZoomDotVisible=Math.min(this.canvasRect.size.x/this.shapeDot.source.width,this.canvasRect.size.y/this.shapeDot.source.height)}createLines(){const e=this.booth,t=[],o=[],h=b&&this.optimizationLevel()>=3?1:3;if(this.exh.length){const i=e.exhibitors.filter(s=>s.order===0),n=e.exhibitors.filter(s=>s.order);if(i.length>0)t.push(...i.map(s=>s.name));else if(p.onlyFeaturedExhibitors)t.push(...e.exhibitors.filter(s=>s.featured).map(s=>s.name));else if(n.length>0){t.push(...n.map(a=>a.name));const s=e.exhibitors.filter(a=>a.order===void 0);s.length>0&&t.push(v("and {{moreCount}} more",{moreCount:s.length}))}else e.exhibitors.length>h?t.push(`${e.exhibitors.length} ${p.exhibitorTermPlural}`):t.push(...e.exhibitors.map(s=>s.name));o.push(e.title||e.name)}else{const i=!!e.exhibitors.length;t.push(e.title||e.name),e.onHold?o.push(v("On Hold")):e.reserved?o.push(v("Reserved")):i||o.push(...e.exhibitors.map(n=>n.name).sort((n,s)=>n>s?1:-1)),e.size&&o.push(e.size.indexOf("/")>-1?e.size.substring(0,e.size.indexOf("/")).trim():e.size),e.price&&e.price!=="0"&&!f.previewMode&&o.push(e.price)}f.rtl&&t.forEach((i,n)=>{(i.endsWith(".")||i.endsWith("!")||i.endsWith("?"))&&(t[n]=t[n]+"\u200F"),se(i)&&(t[n]=t[n]+" ")}),this.lines=[t,o]}calculateFontSizeFactors(){let[e,t]=this.lines;const o=this.canvasRect,h=[],i=[],n=this.prefixes.slice(0,this.exh.length?this.prefixes.length:this.prefixes.length-1),{main:s,details:a}=this.exh.length?getExhibitorLabelWeights():getBoothLabelWeights();for(const{fontSize:l,short:d}of n){const m=l*devicePixelRatio,F=.9*l*devicePixelRatio,u=_(m,s),T=_(F,a),y=p.hideExhibitorBoothNumber||d;let w,A,L,g;if(this.exh.length)d?t=[]:t=this.lines[1],L=Math.max(...e.map(c=>this.measureText(c,u).width),...t.map(c=>this.measureText(c,T).width)),w=Math.max(...e.map(c=>this.exh.length?this.measureText(D(c),u).width:this.measureText(D(c),u).width+3+3),...t.map(c=>this.measureText(D(c),T).width)),g=m*e.length+F*t.length+devicePixelRatio*(e.length+t.length)+3,A=y?g/e.length:null;else{const c=e[0].replace(/[0-9]/g,"3").replace(/[A-Z]/g,"A"),C=4;L=this.measureText(c,u).width+3+3,g=m+C}const H=o.size.x/(w||L),P=o.size.y/(A||g),O=Math.min(H,P);h.push({scaleFactor:O,value:l}),!y&&i.push({scaleFactor:O,value:.9*l})}if(!this.exh.length){const l=h[h.length-1],d=this.prefixes.find(m=>m.name===R);h.push({scaleFactor:l.scaleFactor/1.8,value:d.fontSize}),i.push({scaleFactor:l.scaleFactor/1.8,value:d.fontSize*(b?1:.9)})}this.fontUrls=[getFontUrlByWeight(s,this.rendererService.fontUrls),getFontUrlByWeight(a,this.rendererService.fontUrls)],this.minZoomDotVisible=getMinZoomFactorForDot(h.map(l=>l.scaleFactor)),this.fontSizes=[h,i]}calcArea(e,t){return Math.floor(Math.max(0,e)*Math.max(0,t)/1e3)}optimizationLevel(){return Math.min(p.viewOptimizationLevel?p.viewOptimizationLevel:Math.floor(this.calcArea(this.canvasRect.size.x,this.canvasRect.size.y)/5e3),3)}measureText(e,t){return I.font=t,I.measureText(e)}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/floorplan",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/expofp/efp-app.git",
@@ -72,13 +72,13 @@
72
72
  "tslib": "^2.3.0",
73
73
  "uuid": "^9.0.1",
74
74
  "zod": "4.3.5",
75
- "@expofp/config": "3.12.0",
76
- "@expofp/geometry": "3.12.0",
77
- "@expofp/resolve": "3.12.0",
78
- "@expofp/schema": "3.12.0",
79
- "@expofp/debug": "3.12.0",
80
- "@expofp/utils": "3.12.0",
81
- "@expofp/wayfinding": "3.12.0"
75
+ "@expofp/config": "3.12.1",
76
+ "@expofp/resolve": "3.12.1",
77
+ "@expofp/schema": "3.12.1",
78
+ "@expofp/wayfinding": "3.12.1",
79
+ "@expofp/utils": "3.12.1",
80
+ "@expofp/debug": "3.12.1",
81
+ "@expofp/geometry": "3.12.1"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@babel/plugin-proposal-decorators": "^8.0.2",