@expofp/floorplan 3.45.14 → 3.45.15

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 (90) hide show
  1. package/dist/browser/{Button-BDoxuCon.js → Button-DJxJh5jY.js} +5 -5
  2. package/dist/browser/{CookieConsent-BsvrlPFq.js → CookieConsent-BsKTCWg-.js} +7 -7
  3. package/dist/browser/{Debug-A5aLFdMA.js → Debug-BjgF_Kna.js} +7 -7
  4. package/dist/browser/{DebugTools-DfEuXlLq.js → DebugTools-CwpPMOcc.js} +6 -6
  5. package/dist/browser/{Demo-DcS-rnSI.js → Demo-CaqwJvIf.js} +9 -9
  6. package/dist/browser/{Free-kpUd_wCh.js → Free-DbR2BtL0.js} +10 -10
  7. package/dist/browser/{GalleryContainer-C5K6SaiO.js → GalleryContainer-D1w5d5e5.js} +11 -11
  8. package/dist/browser/{GpsLoader-BONy8X3a.js → GpsLoader-BN3fD-xT.js} +13 -13
  9. package/dist/browser/{KioskStore-CzOQJ_CS.js → KioskStore-D5wg-oqG.js} +9 -9
  10. package/dist/browser/{LayerStore-FGdcU84C.js → LayerStore-D4A4Uz8J.js} +363 -393
  11. package/dist/browser/{MaplibreAdapter-BZgKoAG1.js → MaplibreAdapter-qMMg1G4M.js} +17 -17
  12. package/dist/browser/{ModalContainer-CEGcRpYe.js → ModalContainer-B5rAhuJK.js} +10 -10
  13. package/dist/browser/{PermissionNotice-D2lBFSdm.js → PermissionNotice-6SQ1nWgS.js} +6 -6
  14. package/dist/browser/{RouteStore-BCpzpyok.js → RouteStore-Dl9ofk88.js} +9 -9
  15. package/dist/browser/{SetKioskMode-CzQEw4up.js → SetKioskMode-MXSLkf8N.js} +11 -11
  16. package/dist/browser/{ShowKiosk-BGoyLApv.js → ShowKiosk-Bj95Uldf.js} +10 -10
  17. package/dist/browser/{UIState-vK9gqTCC.js → UIState-BqS8ZHsB.js} +12 -12
  18. package/dist/browser/{ViewerMenuPanel-B-Q9oaJe.js → ViewerMenuPanel-BaWHqzps.js} +10 -10
  19. package/dist/browser/{add-debug-secret-listener-DfkwbnZ0.js → add-debug-secret-listener-YEUxcr1j.js} +1 -1
  20. package/dist/browser/{adopt-global-settings-Cd_6Wzki.js → adopt-global-settings-w9pmM1xk.js} +9 -9
  21. package/dist/browser/{boolean-editor-x8DQZJq8.js → boolean-editor-zW3D6jsO.js} +9 -9
  22. package/dist/browser/{bootIntercom-CzI5E164.js → bootIntercom-BI17ZsUs.js} +2 -2
  23. package/dist/browser/bundle.json +85 -85
  24. package/dist/browser/{camera-events-BLGnk42i.js → camera-events-83HzWM2T.js} +1 -1
  25. package/dist/browser/{classnames-evRqQL4B.js → classnames-Dt2nn3fF.js} +2 -2
  26. package/dist/browser/{client-BLAi75fx.js → client-YOSuhfQr.js} +5 -5
  27. package/dist/browser/{components-Cv3C0VuP.js → components-Dsf555FA.js} +49 -49
  28. package/dist/browser/{create-live-plan-DbRQGjG1.js → create-live-plan-u9HVry9U.js} +13 -13
  29. package/dist/browser/{debug-context-CeZkdeLw.js → debug-context-F3sYh6QH.js} +5 -5
  30. package/dist/browser/{debug-overlay-C9BzVQcf.js → debug-overlay-BEFHLD6d.js} +10 -10
  31. package/dist/browser/{debug-ui-w6L0KdqZ.js → debug-ui-BPXXOjRK.js} +6 -6
  32. package/dist/browser/{dist-uBQJJmzB.js → dist-COC0DmKA.js} +3 -3
  33. package/dist/browser/{dist-CEenTLAM.js → dist-bvz2TJJx.js} +6 -6
  34. package/dist/browser/{dist-DMQgTPfv.js → dist-o_Z50i4D.js} +5 -5
  35. package/dist/browser/{efp-debug-init-B6Sv2puB.js → efp-debug-init-DUUK8suG.js} +3 -3
  36. package/dist/browser/{enum-editor-De4GZLRP.js → enum-editor--pS2vSrm.js} +4 -4
  37. package/dist/browser/{es5-DfzJ544y.js → es5-CmEnCAuk.js} +2 -2
  38. package/dist/browser/{event-head-oMoR32NH.js → event-head-Bi5K5dSK.js} +1 -1
  39. package/dist/browser/{event-not-found-DIZxpDes.js → event-not-found-TwBlrO5t.js} +3 -3
  40. package/dist/browser/{event-scoped-cache-D3GRZ27S.js → event-scoped-cache-CppoYzHF.js} +2 -2
  41. package/dist/browser/{expofpUrl-CmA5avdT.js → expofpUrl-UU4eQkAn.js} +1 -1
  42. package/dist/browser/{exports-DY0F5OdB.js → exports-CXX0Sbya.js} +1 -1
  43. package/dist/browser/{favicon-Q7_E2c2T.js → favicon-Chj3-q3H.js} +1 -1
  44. package/dist/browser/{fetch-retry.umd-Ctf2zu02.js → fetch-retry.umd-Dz9dLChu.js} +2 -2
  45. package/dist/browser/{flex-f_qR_Joc.js → flex-Bw0aFtd2.js} +5 -5
  46. package/dist/browser/{floorplan.loader-N5IHXgzP.js → floorplan.loader-B8UEyzDO.js} +12 -12
  47. package/dist/browser/{floorplan.ready-ByoPuOju.js → floorplan.ready-_93PCRnR.js} +23 -23
  48. package/dist/browser/{framing-rect-DFGg2Cln.js → framing-rect-BUrhUuXf.js} +12 -12
  49. package/dist/browser/{freeBanner-CeFezSxI.js → freeBanner-BfoZkGpM.js} +2 -2
  50. package/dist/browser/{fuse-9V7l8ZWP.js → fuse-DJyh1TuN.js} +2 -2
  51. package/dist/browser/{i18n-C2KwWOND.js → i18n-y-94jGwp.js} +6 -6
  52. package/dist/browser/index.js +17 -17
  53. package/dist/browser/{index.module-BYxmw_ho.js → index.module-CvMpbW-i.js} +4 -4
  54. package/dist/browser/{init-ui-DhSXstRV.js → init-ui-CIds4CAy.js} +9 -9
  55. package/dist/browser/{integrateKiosk-C9u8kBkw.js → integrateKiosk-DdB-p0F1.js} +5 -5
  56. package/dist/browser/{is-debug-Ckzkqy0p.js → is-debug-IVgDoIV0.js} +4 -4
  57. package/dist/browser/{is-own-domain-BwHcfcz7.js → is-own-domain-Bapkhkco.js} +1 -1
  58. package/dist/browser/{is-webview-o4aLiOHi.js → is-webview-SZt_n0MB.js} +1 -1
  59. package/dist/browser/{jsx-runtime-f7n4NM0c.js → jsx-runtime-C_sNMI5W.js} +2 -2
  60. package/dist/browser/{kiosk-mode-dB4Xs3Rz.js → kiosk-mode-Cotv0k2w.js} +3 -3
  61. package/dist/browser/{kiosk-record-D1Q_rmB5.js → kiosk-record-cMgADOTG.js} +1 -1
  62. package/dist/browser/{kioskApi-CLX1Z7th.js → kioskApi--Rx4n321.js} +7 -7
  63. package/dist/browser/{lib-C24R2hdZ.js → lib-BXaOkSOo.js} +3 -3
  64. package/dist/browser/{loadImage-D-vlyJao.js → loadImage-BdRifQQM.js} +1 -1
  65. package/dist/browser/{logDeviceInfo-Bl8O6Tn7.js → logDeviceInfo-Dv6Uw_9O.js} +9 -9
  66. package/dist/browser/{mobx-B4djdTZq.js → mobx-CGp0k-An.js} +4 -4
  67. package/dist/browser/{mobx.module-Dz_0T7V8.js → mobx.module-BREzXEXH.js} +1 -1
  68. package/dist/browser/{optional-boolean-editor-DlqJ-0gx.js → optional-boolean-editor-CQuFfDA2.js} +3 -3
  69. package/dist/browser/{optional-enum-editor-CfVPWRHm.js → optional-enum-editor-CDwOHTD0.js} +4 -4
  70. package/dist/browser/{optional-string-editor-B2EIswV_.js → optional-string-editor-McI6BDHk.js} +4 -4
  71. package/dist/browser/{particles.min-FQr-gq2a.js → particles.min-CKUEAg7I.js} +2 -2
  72. package/dist/browser/{react-dom-BRBgmgdb.js → react-dom-PhzhEh9G.js} +3 -3
  73. package/dist/browser/{react-BRta6NUD.js → react-yAWrnIsO.js} +2 -2
  74. package/dist/browser/{rolldown-runtime-DVhF83kw.js → rolldown-runtime-WQ1PGysg.js} +1 -1
  75. package/dist/browser/{scene-LSgh9Huo.js → scene-DXBJE279.js} +3 -3
  76. package/dist/browser/{scheduler-BLHx7sBu.js → scheduler-Dr889D0o.js} +2 -2
  77. package/dist/browser/{select-fdSXOe_C.js → select-DDjJyjSa.js} +10 -10
  78. package/dist/browser/{settings-CQBmI7jr.js → settings-DnzFKuhq.js} +2 -2
  79. package/dist/browser/{settings-item-sngI4TUA.js → settings-item-DOhZtWZn.js} +6 -6
  80. package/dist/browser/{store-CmJqc9B7.js → store-C_8jynbr.js} +2 -2
  81. package/dist/browser/{string-editor--9fuVOyS.js → string-editor-lJK1y_Zg.js} +4 -4
  82. package/dist/browser/{text-field-CX4A3jnj.js → text-field-CSGP1hqF.js} +5 -5
  83. package/dist/browser/{theme-CpcGNmDn.js → theme-CyaxmL-H.js} +8 -8
  84. package/dist/browser/{ui-DGWMXBTc.js → ui-BFl0hzQX.js} +8 -8
  85. package/dist/browser/{useRenderTarget-Dh3Qg_Nd.js → useRenderTarget-gNwm7SN5.js} +4 -4
  86. package/dist/browser/{viewport-QXJesZ-l.js → viewport-DQnfHiey.js} +3 -3
  87. package/dist/browser/{wayfinding-B60ICwe9.js → wayfinding-BoPqafnU.js} +5 -5
  88. package/dist/esm/utils/loadLayerImages.d.ts +5 -5
  89. package/dist/esm/utils/loadLayerImages.js +1 -1
  90. package/package.json +10 -10
@@ -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.14" };
4
+ e.SENTRY_RELEASE = { id: "3.45.15" };
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-DVhF83kw.js";
10
- import { t } from "./react-BRta6NUD.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-f_qR_Joc.js";
12
- import { t as l } from "./classnames-evRqQL4B.js";
9
+ import { r as e } from "./rolldown-runtime-WQ1PGysg.js";
10
+ import { t } from "./react-yAWrnIsO.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-Bw0aFtd2.js";
12
+ import { t as l } from "./classnames-Dt2nn3fF.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.14" };
4
+ e.SENTRY_RELEASE = { id: "3.45.15" };
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-DVhF83kw.js";
10
- import { t } from "./react-BRta6NUD.js";
11
- import { t as n } from "./jsx-runtime-f7n4NM0c.js";
12
- import { t as r } from "./react-dom-BRBgmgdb.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-f_qR_Joc.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-CEenTLAM.js";
15
- import { t as y } from "./classnames-evRqQL4B.js";
9
+ import { r as e } from "./rolldown-runtime-WQ1PGysg.js";
10
+ import { t } from "./react-yAWrnIsO.js";
11
+ import { t as n } from "./jsx-runtime-C_sNMI5W.js";
12
+ import { t as r } from "./react-dom-PhzhEh9G.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-Bw0aFtd2.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-bvz2TJJx.js";
15
+ import { t as y } from "./classnames-Dt2nn3fF.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.14" };
4
+ e.SENTRY_RELEASE = { id: "3.45.15" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "81863b16-dfcf-4b3e-9293-bdc5f05a30a1", e._sentryDebugIdIdentifier = "sentry-dbid-81863b16-dfcf-4b3e-9293-bdc5f05a30a1");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-DVhF83kw.js";
10
- import { a as t, i as n, s as r } from "./efp-debug-init-B6Sv2puB.js";
11
- import { a as i, i as a } from "./adopt-global-settings-Cd_6Wzki.js";
12
- import { t as o } from "./jsx-runtime-f7n4NM0c.js";
13
- import "./settings-CQBmI7jr.js";
14
- import { t as s } from "./add-debug-secret-listener-DfkwbnZ0.js";
9
+ import { r as e } from "./rolldown-runtime-WQ1PGysg.js";
10
+ import { a as t, i as n, s as r } from "./efp-debug-init-DUUK8suG.js";
11
+ import { a as i, i as a } from "./adopt-global-settings-w9pmM1xk.js";
12
+ import { t as o } from "./jsx-runtime-C_sNMI5W.js";
13
+ import "./settings-DnzFKuhq.js";
14
+ import { t as s } from "./add-debug-secret-listener-YEUxcr1j.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() {
@@ -29,7 +29,7 @@ function d() {
29
29
  }
30
30
  });
31
31
  let o = async (t) => {
32
- let { DebugUi: n } = await import("./debug-ui-w6L0KdqZ.js"), { createRoot: i } = await import("./client-BLAi75fx.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), a = document.createElement("div");
32
+ let { DebugUi: n } = await import("./debug-ui-BPXXOjRK.js"), { createRoot: i } = await import("./client-YOSuhfQr.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), a = document.createElement("div");
33
33
  document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, l.jsx)(n, {
34
34
  useDebugButtonState: r.useState,
35
35
  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.14" };
4
+ e.SENTRY_RELEASE = { id: "3.45.15" };
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-DVhF83kw.js";
10
- import { t } from "./react-BRta6NUD.js";
11
- import { u as n } from "./store-CmJqc9B7.js";
9
+ import { r as e } from "./rolldown-runtime-WQ1PGysg.js";
10
+ import { t } from "./react-yAWrnIsO.js";
11
+ import { u as n } from "./store-C_8jynbr.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.14" };
4
+ e.SENTRY_RELEASE = { id: "3.45.15" };
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-CmJqc9B7.js";
10
- import { t } from "./LayerStore-FGdcU84C.js";
9
+ import { l as e } from "./store-C_8jynbr.js";
10
+ import { t } from "./LayerStore-D4A4Uz8J.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.14" };
4
+ e.SENTRY_RELEASE = { id: "3.45.15" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "859e3db6-e7a2-4092-a448-61d436d2d8d2", e._sentryDebugIdIdentifier = "sentry-dbid-859e3db6-e7a2-4092-a448-61d436d2d8d2");
7
7
  } catch {}
8
8
  })();
9
- import { r as e, t } from "./rolldown-runtime-DVhF83kw.js";
10
- import { o as n } from "./is-debug-Ckzkqy0p.js";
11
- import { i as r, l as i } from "./mobx.module-Dz_0T7V8.js";
12
- import { At as a, Ct as o, Et as s, Gt as c, Kt as l, Ot as u, Qt as d, Tt as f, an as p, bt as m, cn as h, in as g, kt as _, ln as v, mt as y, rn as b, rt as x, sn as S, tn as C, un as w, xt as T, yt as E } from "./LayerStore-FGdcU84C.js";
9
+ import { r as e, t } from "./rolldown-runtime-WQ1PGysg.js";
10
+ import { o as n } from "./is-debug-IVgDoIV0.js";
11
+ import { i as r, l as i } from "./mobx.module-BREzXEXH.js";
12
+ import { At as a, Ct as o, Et as s, Gt as c, Kt as l, Ot as u, Qt as d, Tt as f, an as p, bt as m, cn as h, in as g, kt as _, ln as v, mt as y, rn as b, rt as x, sn as S, tn as C, un as w, xt as T, yt as E } from "./LayerStore-D4A4Uz8J.js";
13
13
  //#region ../geometry/src/lib/geo.ts
14
14
  var D = 6371e3;
15
15
  function O(e, t) {
@@ -16,17 +16,17 @@ export interface LayerImage {
16
16
  */
17
17
  source: Blob;
18
18
  /**
19
- * Placement on the plan: the image fitted into the element's box, rotated as the element is,
20
- * at the element's `data-elev` (0 when missing).
19
+ * Placement on the plan: the element's box, rotated as the element is, at the element's
20
+ * `data-elev` (0 when missing).
21
21
  */
22
22
  bounds: Rect;
23
23
  }
24
24
  /**
25
25
  * Loads a layer's drawing images as bytes.
26
26
  *
27
- * The image is fitted into its element's box like SVG `xMidYMid meet`. The designer writes the
28
- * file's pixel size into the href query as `w` and `h`. An href without a valid size is measured
29
- * by decoding the image, and if that fails too, the image fills the box.
27
+ * The image fills its element's box, like SVG `preserveAspectRatio="none"`. That is what the
28
+ * Designer sets on every image, so the placement comes from the element alone and a raster image
29
+ * is never decoded here.
30
30
  *
31
31
  * Most of these hrefs are inline `data:image/webp;base64` URLs, not file references. The
32
32
  * converter embeds designer graphics directly in the drawing payload. In a real plan, the first
@@ -1 +1 @@
1
- import{Box as s,degToRad as m,Rect as d}from"@expofp/geometry";import{blobImageSize as f}from"./blob-image-size.js";import{loadBlob as g}from"./loadBlob";import{isSvgBlob as w,svgToPngBlob as b}from"./rasterize-svg";export async function loadLayerImages(e){const t=new Map,n=r=>{let o=t.get(r);return o||(o=p(r),t.set(r,o)),o};return(await Promise.all(e.map(async r=>{const o=r.getAttribute("xlink:href")??r.getAttribute("href"),a=o?await n(o):null;if(!a)return null;const l=S(s.fromSvg(r),a.size),c=r.transform?.animVal[0]?.angle??0,h=parseFloat(r.dataset.elev??"")||0;return{bounds:d.fromMinMax(l.min,l.max,m(c),h),source:a.source,booth:null}}))).filter(r=>r!==null)}async function p(e){const t=await g(e);if(!t)return null;const n=w(t)?await b(t):t;return n?{source:n,size:y(e)??await f(n)}:null}function y(e){let t;try{({searchParams:t}=new URL(e))}catch{return null}const n=Number(t.get("w")),i=Number(t.get("h"));return u(n)&&u(i)?{width:n,height:i}:null}function u(e){return Number.isFinite(e)&&e>0}function S(e,t){if(!t?.width||!t.height||!e.size.width||!e.size.height)return e;const n=Math.min(e.size.width/t.width,e.size.height/t.height);return s.fromCenter(e.center,{x:t.width*n,y:t.height*n})}
1
+ import{Box as u,degToRad as c,Rect as d}from"@expofp/geometry";import{loadBlob as f}from"./loadBlob";import{isSvgBlob as b,svgToPngBlob as m}from"./rasterize-svg";export async function loadLayerImages(r){const t=new Map,a=o=>{let n=t.get(o);return n||(n=g(o),t.set(o,n)),n};return(await Promise.all(r.map(async o=>{const n=o.getAttribute("xlink:href")??o.getAttribute("href"),l=n?await a(n):null;if(!l)return null;const e=u.fromSvg(o),s=o.transform?.animVal[0]?.angle??0,i=parseFloat(o.dataset.elev??"")||0;return{bounds:d.fromMinMax(e.min,e.max,c(s),i),source:l,booth:null}}))).filter(o=>o!==null)}async function g(r){const t=await f(r);return t?b(t)?m(t):t:null}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/floorplan",
3
- "version": "3.45.14",
3
+ "version": "3.45.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/expofp/efp-app.git",
@@ -69,15 +69,15 @@
69
69
  "tslib": "^2.3.0",
70
70
  "uuid": "^9.0.1",
71
71
  "zod": "4.4.3",
72
- "@expofp/config": "3.45.14",
73
- "@expofp/debug": "3.45.14",
74
- "@expofp/geometry": "3.45.14",
75
- "@expofp/renderer": "3.45.14",
76
- "@expofp/resolve": "3.45.14",
77
- "@expofp/ui": "3.45.14",
78
- "@expofp/utils": "3.45.14",
79
- "@expofp/wayfinding": "3.45.14",
80
- "@expofp/schema": "3.45.14"
72
+ "@expofp/config": "3.45.15",
73
+ "@expofp/debug": "3.45.15",
74
+ "@expofp/geometry": "3.45.15",
75
+ "@expofp/renderer": "3.45.15",
76
+ "@expofp/resolve": "3.45.15",
77
+ "@expofp/schema": "3.45.15",
78
+ "@expofp/ui": "3.45.15",
79
+ "@expofp/utils": "3.45.15",
80
+ "@expofp/wayfinding": "3.45.15"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@babel/plugin-proposal-decorators": "^8.0.2",