@expofp/floorplan 3.35.2 → 3.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/browser/{Button-BPQnJjoN.js → Button-2F0fcPWt.js} +5 -5
  2. package/dist/browser/{CookieConsent-CYpwXrw0.js → CookieConsent-Bs_a5mWS.js} +7 -7
  3. package/dist/browser/{Debug-DJ02jJ5Q.js → Debug-CD7jIIc9.js} +7 -7
  4. package/dist/browser/{DebugTools-BCx6s2Fc.js → DebugTools-0QH5g7VI.js} +6 -6
  5. package/dist/browser/{Demo-EWDcqW4X.js → Demo-CaQvpK66.js} +9 -9
  6. package/dist/browser/{Free-DKMv19Hs.js → Free-DvMwspKE.js} +9 -9
  7. package/dist/browser/{GalleryContainer-CvjywJze.js → GalleryContainer-Dwlzieq8.js} +10 -10
  8. package/dist/browser/{GpsLoader-DnZOaiOj.js → GpsLoader-BPoEXpR_.js} +20 -20
  9. package/dist/browser/{KioskStore-B_QD5WD2.js → KioskStore-BSg4K_mL.js} +5 -5
  10. package/dist/browser/{MaplibreAdapter-DfUBzoCo.js → MaplibreAdapter-CDSNSGMJ.js} +750 -750
  11. package/dist/browser/{ModalContainer-iUxlX_EW.js → ModalContainer-C0C_-D7Q.js} +10 -10
  12. package/dist/browser/{PermissionNotice-4GkEdwAt.js → PermissionNotice-Ditp-Va7.js} +6 -6
  13. package/dist/browser/{SetKioskMode-r4WLFRA0.js → SetKioskMode-Ch3P8jsl.js} +10 -10
  14. package/dist/browser/{ShowKiosk-DmmyfPH3.js → ShowKiosk-D0NS-rMr.js} +10 -10
  15. package/dist/browser/{ViewerMenuPanel-G5WeOVxy.js → ViewerMenuPanel-CH9tB2Sp.js} +9 -9
  16. package/dist/browser/{add-debug-secret-listener-cqT9ixCW.js → add-debug-secret-listener-Cw8yc4RW.js} +1 -1
  17. package/dist/browser/{adopt-global-settings-TiK3bdw8.js → adopt-global-settings-Bc_AVw2I.js} +9 -9
  18. package/dist/browser/{boolean-editor-gv5KgSFC.js → boolean-editor-DySssKe_.js} +9 -9
  19. package/dist/browser/{bootIntercom-DSN5Oxb8.js → bootIntercom-veK3GB2r.js} +2 -2
  20. package/dist/browser/bundle.json +71 -71
  21. package/dist/browser/{camera-events-BzzhQV7p.js → camera-events-BX1-wPbL.js} +1 -1
  22. package/dist/browser/{classnames-DaTJg5Ke.js → classnames-C1ATXib6.js} +2 -2
  23. package/dist/browser/{client-DXynaRJh.js → client-Bdn_b8IB.js} +5 -5
  24. package/dist/browser/{components-BJkZsl-J.js → components-ElNUYOon.js} +114 -114
  25. package/dist/browser/{debug-context-DafSJe6V.js → debug-context-iU8AaPvD.js} +5 -5
  26. package/dist/browser/{debug-overlay-Cnht9M1f.js → debug-overlay-Dqyz5mZZ.js} +10 -10
  27. package/dist/browser/{debug-ui-CfgbL90e.js → debug-ui-DPeQ3uf5.js} +6 -6
  28. package/dist/browser/{dimming-BTSxZdFU.js → dimming-CZLGDSAM.js} +60 -60
  29. package/dist/browser/{dist-C5PCsTLB.js → dist-BE-vw9Dz.js} +3 -3
  30. package/dist/browser/{dist-TUAZaqFf.js → dist-C2H8aaYx.js} +5 -5
  31. package/dist/browser/{dist-CyuhMWuJ.js → dist-CLxwCMUL.js} +6 -6
  32. package/dist/browser/{efp-debug-init-Dmuf0OD9.js → efp-debug-init-BD4LKeS1.js} +3 -3
  33. package/dist/browser/{enum-editor-DhSd_imG.js → enum-editor-DntlOPuq.js} +4 -4
  34. package/dist/browser/{es5-DjAesjxT.js → es5-CjrUZ-uf.js} +2 -2
  35. package/dist/browser/{event-head-CQJFTgLp.js → event-head-CIqZD5NQ.js} +1 -1
  36. package/dist/browser/{event-not-found-BD8VwBEd.js → event-not-found-DRIf3y4d.js} +3 -3
  37. package/dist/browser/{exports-BWxS7e8x.js → exports-m4XDiy76.js} +1 -1
  38. package/dist/browser/{favicon-knUtM628.js → favicon-uIHQnsih.js} +1 -1
  39. package/dist/browser/{fetch-retry.umd-DW0ekhe-.js → fetch-retry.umd-D-ufgiKo.js} +2 -2
  40. package/dist/browser/{flex-Di6JEi7f.js → flex-h9aGr8BA.js} +5 -5
  41. package/dist/browser/{floorplan.loader-yNOwUjHQ.js → floorplan.loader-DnpZi_x0.js} +10 -10
  42. package/dist/browser/{floorplan.ready-C1R3whps.js → floorplan.ready-BhJ0AYxK.js} +20 -20
  43. package/dist/browser/{fuse-CklOJAb0.js → fuse-kGJ6CyvN.js} +2 -2
  44. package/dist/browser/{i18n-DOTxhE5G.js → i18n-8GhKJLji.js} +5 -5
  45. package/dist/browser/index.js +16 -16
  46. package/dist/browser/{index.module-mXl8MtT3.js → index.module-DXWLW2QZ.js} +4 -4
  47. package/dist/browser/{integrateKiosk-b2AMRK5l.js → integrateKiosk-Cwhicybg.js} +4 -4
  48. package/dist/browser/{is-own-domain-BZ3_6LnT.js → is-own-domain-BgHODyPb.js} +1 -1
  49. package/dist/browser/{is-webview-BwUFYV3U.js → is-webview-8mSd5e7Z.js} +1 -1
  50. package/dist/browser/{jsx-runtime-BUFDOCAr.js → jsx-runtime-Db0wke-m.js} +2 -2
  51. package/dist/browser/{kiosk-record-Dx28-RL0.js → kiosk-record-BmUy79vX.js} +1 -1
  52. package/dist/browser/{lib-BSoYmy6y.js → lib-DYJdAHez.js} +3 -3
  53. package/dist/browser/{loadImage-CT_B_63i.js → loadImage-DiOgFRgU.js} +4 -4
  54. package/dist/browser/{logDeviceInfo-D5aYLPIp.js → logDeviceInfo-Z3261diM.js} +9 -9
  55. package/dist/browser/{mobx-DmvJdfvB.js → mobx-BcDFojrl.js} +4 -4
  56. package/dist/browser/{optional-boolean-editor-DQP8ScA6.js → optional-boolean-editor-CW1Is1sb.js} +3 -3
  57. package/dist/browser/{optional-enum-editor-CK8QdwSw.js → optional-enum-editor-BkTQr_mP.js} +4 -4
  58. package/dist/browser/{optional-string-editor-DXnEx_OV.js → optional-string-editor-CQkcvxq9.js} +4 -4
  59. package/dist/browser/{particles.min-DTfxDQ63.js → particles.min-Ds4mtQz5.js} +2 -2
  60. package/dist/browser/{react-BYD9sU4s.js → react-Bws4GHzE.js} +2 -2
  61. package/dist/browser/{react-dom-DcdoI_pK.js → react-dom-DKAc03u1.js} +3 -3
  62. package/dist/browser/{rolldown-runtime-D02yMjJw.js → rolldown-runtime-Bmk6v0JP.js} +1 -1
  63. package/dist/browser/{scheduler-CHcj0Ili.js → scheduler-BXv92Cfb.js} +2 -2
  64. package/dist/browser/{select-CVLafnyq.js → select-BCscymDn.js} +10 -10
  65. package/dist/browser/{settings-DTliQPIF.js → settings-CrabU4sN.js} +2 -2
  66. package/dist/browser/{settings-item-CSulAbWO.js → settings-item-BZ_U0h8B.js} +6 -6
  67. package/dist/browser/{store-hAR4IdGb.js → store-DJXUxGeN.js} +2454 -2473
  68. package/dist/browser/{string-editor-Bjapa7B7.js → string-editor-CnG22Oly.js} +4 -4
  69. package/dist/browser/{text-field-dygdoVbb.js → text-field-NVbcJEkm.js} +5 -5
  70. package/dist/browser/{theme-mpY9s4gk.js → theme-eBX8BNJC.js} +8 -8
  71. package/dist/browser/{ui-B7DDzAAp.js → ui-BPpyJIAd.js} +8 -8
  72. package/dist/browser/{useRenderTarget-M5MRh8Ft.js → useRenderTarget-yW52M18A.js} +4 -4
  73. package/dist/browser/{viewport-DOv49fSW.js → viewport-nGSeFdsb.js} +2 -2
  74. package/dist/esm/components/Map/drawing/config/config-booths.d.ts +2 -2
  75. package/dist/esm/components/Map/drawing/config/config-booths.js +1 -1
  76. package/dist/esm/components/Map/drawing/config/config-load-layer.d.ts +2 -2
  77. package/dist/esm/components/Map/drawing/config/config-load-layer.js +1 -1
  78. package/dist/esm/components/Map/drawing/config/layer-images.d.ts +1 -17
  79. package/dist/esm/components/Map/drawing/config/loadBoothsImages.js +1 -1
  80. package/package.json +10 -10
@@ -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.35.2" };
4
+ e.SENTRY_RELEASE = { id: "3.36.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "8f241b7f-d106-4e96-a6a2-b96a0f9abf69", e._sentryDebugIdIdentifier = "sentry-dbid-8f241b7f-d106-4e96-a6a2-b96a0f9abf69");
7
7
  } catch {}
8
8
  })();
9
- import { t as e } from "./jsx-runtime-BUFDOCAr.js";
10
- import { t } from "./settings-item-CSulAbWO.js";
11
- import { t as n } from "./text-field-dygdoVbb.js";
9
+ import { t as e } from "./jsx-runtime-Db0wke-m.js";
10
+ import { t } from "./settings-item-BZ_U0h8B.js";
11
+ import { t as n } from "./text-field-NVbcJEkm.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.35.2" };
4
+ e.SENTRY_RELEASE = { id: "3.36.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "e13f8c4e-8995-47cd-802d-392fd9bdf13a", e._sentryDebugIdIdentifier = "sentry-dbid-e13f8c4e-8995-47cd-802d-392fd9bdf13a");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-D02yMjJw.js";
10
- import { t } from "./react-BYD9sU4s.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-Di6JEi7f.js";
12
- import { t as l } from "./classnames-DaTJg5Ke.js";
9
+ import { r as e } from "./rolldown-runtime-Bmk6v0JP.js";
10
+ import { t } from "./react-Bws4GHzE.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-h9aGr8BA.js";
12
+ import { t as l } from "./classnames-C1ATXib6.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.35.2" };
4
+ e.SENTRY_RELEASE = { id: "3.36.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "5b26ff7f-61de-4d09-8508-a74b71b94f98", e._sentryDebugIdIdentifier = "sentry-dbid-5b26ff7f-61de-4d09-8508-a74b71b94f98");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-D02yMjJw.js";
10
- import { t } from "./react-BYD9sU4s.js";
11
- import { t as n } from "./jsx-runtime-BUFDOCAr.js";
12
- import { t as r } from "./react-dom-DcdoI_pK.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-Di6JEi7f.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-CyuhMWuJ.js";
15
- import { t as y } from "./classnames-DaTJg5Ke.js";
9
+ import { r as e } from "./rolldown-runtime-Bmk6v0JP.js";
10
+ import { t } from "./react-Bws4GHzE.js";
11
+ import { t as n } from "./jsx-runtime-Db0wke-m.js";
12
+ import { t as r } from "./react-dom-DKAc03u1.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-h9aGr8BA.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-CLxwCMUL.js";
15
+ import { t as y } from "./classnames-C1ATXib6.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.35.2" };
4
+ e.SENTRY_RELEASE = { id: "3.36.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "80a4f49f-d869-4a38-b1c0-c3cfd645ceec", e._sentryDebugIdIdentifier = "sentry-dbid-80a4f49f-d869-4a38-b1c0-c3cfd645ceec");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-D02yMjJw.js";
10
- import { a as t, i as n, s as r } from "./efp-debug-init-Dmuf0OD9.js";
11
- import { a as i, i as a } from "./adopt-global-settings-TiK3bdw8.js";
12
- import { t as o } from "./jsx-runtime-BUFDOCAr.js";
13
- import "./settings-DTliQPIF.js";
14
- import { t as s } from "./add-debug-secret-listener-cqT9ixCW.js";
9
+ import { r as e } from "./rolldown-runtime-Bmk6v0JP.js";
10
+ import { a as t, i as n, s as r } from "./efp-debug-init-BD4LKeS1.js";
11
+ import { a as i, i as a } from "./adopt-global-settings-Bc_AVw2I.js";
12
+ import { t as o } from "./jsx-runtime-Db0wke-m.js";
13
+ import "./settings-CrabU4sN.js";
14
+ import { t as s } from "./add-debug-secret-listener-Cw8yc4RW.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-CfgbL90e.js"), { createRoot: i } = await import("./client-DXynaRJh.js").then((t) => /* @__PURE__ */ e(t.t(), 1)), a = document.createElement("div");
29
+ let { DebugUi: n } = await import("./debug-ui-DPeQ3uf5.js"), { createRoot: i } = await import("./client-Bdn_b8IB.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.35.2" };
4
+ e.SENTRY_RELEASE = { id: "3.36.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "44feeb02-c84e-4fb1-b2f8-984c7d50f58d", e._sentryDebugIdIdentifier = "sentry-dbid-44feeb02-c84e-4fb1-b2f8-984c7d50f58d");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-D02yMjJw.js";
10
- import { t } from "./react-BYD9sU4s.js";
11
- import { l as n } from "./store-hAR4IdGb.js";
9
+ import { r as e } from "./rolldown-runtime-Bmk6v0JP.js";
10
+ import { t } from "./react-Bws4GHzE.js";
11
+ import { l as n } from "./store-DJXUxGeN.js";
12
12
  //#region ../ui/src/shared/activeElement.ts
13
13
  var r = (e) => !!e && "activeElement" in e;
14
14
  function i(e) {
@@ -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.35.2" };
4
+ e.SENTRY_RELEASE = { id: "3.36.0" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "c4f57458-fee1-48bc-a518-81372913a556", e._sentryDebugIdIdentifier = "sentry-dbid-c4f57458-fee1-48bc-a518-81372913a556");
7
7
  } catch {}
8
8
  })();
9
- import { c as e, ht as t } from "./store-hAR4IdGb.js";
9
+ import { c as e, ht as t } from "./store-DJXUxGeN.js";
10
10
  //#region src/components/Map/viewport.ts
11
11
  function n(e) {
12
12
  return {
@@ -1,5 +1,5 @@
1
- import { LayerDef } from '@expofp/renderer';
2
- import { Booth } from '../../../../store/BoothStore';
1
+ import type { LayerDef } from '@expofp/renderer';
2
+ import type { Booth } from '../../../../store/BoothStore';
3
3
  export declare const BOOTHS_CHUNK_SIZE = 350;
4
4
  export default function configBooths(layerID: string, booths: Booth[]): LayerDef;
5
5
  //# sourceMappingURL=config-booths.d.ts.map
@@ -1 +1 @@
1
- import{Rect as v}from"@expofp/geometry";import{SEPARATOR as u}from"../../../../constants";import{createImageDef as H}from"../../../../engine/defs";import N,{boothStore as P,uiState as W}from"../../../../store";import w from"../../../../tools/settings";import{loadImagesInBatchesById as A}from"../../../../utils/loadImagesInBatches";import{clearHoveredBooth as C,hoverBooth as E,rememberBoothShapes as T,selectBooth as U}from"../../pointer";import _ from"./config-booth-bg";import z from"./config-booth-bookmark";import K from"./config-booth-border";import M from"./config-booth-labels";import Z from"./config-booth-labels-special";import{registerLayerImages as j}from"./layer-images";import{createBoothImg as q,getImageLayerName as F,mapBoothsLogos as G}from"./loadBoothsImages";export const BOOTHS_CHUNK_SIZE=350;export default function J(L,S){return(i=>{const s=L,m=[],c=[],h=[],l=[],p=[],f=F(s),d={name:f,children:[]};for(const o of i){const t=_(o)?.getShape();t&&(m.push(...t),T(o,t));const r=M(o)?.getShape();r&&c.push(...r);const n=Z(o)?.getShape();if(n&&h.push(...n),!w.borderless){const e=K(o)?.getShape();e&&l.push(e)}const a=z(o)?.getShape();a&&p.push(a)}const I=c.filter(o=>o.lines),k=h.filter(o=>o.lines),y=c.filter(o=>o.source),$=h.filter(o=>o.source);if(!W.hideLogoInBooth){const o=G(i);j(f,async()=>{const t=await A(o,BOOTHS_CHUNK_SIZE),r=[];for(const[n,a]of t){const e=N.boothStore.boothById.get(n);if(!e)continue;const{bounds:x,htmlImage:D}=q(e,a),b=H(D,x),O=e.borderWidth||P.borderWidth,B=e.rect.expand(-O),R=new v(B.center,B.size,e.rotate);e.shapes.push(b),r.push({shape:b,parentRect:R})}return{layer:d,children:r}})}let g=[];if(i.length){const o=s+u;g=[{name:`${o}boothBackground`,children:m,onPointerMove:E,onPointerOut:C,onClick:U},{name:`${o}labels`,children:I},{name:`${o}specialLabels`,children:k},{name:`${o}dots`,children:y},{name:`${o}specialDots`,children:$},d,{name:`${o}boothsBookmark`,children:p},{name:`${s}${u}boothBorder`,children:l}]}return{name:s,children:g}})(S)}
1
+ import{Rect as N}from"@expofp/geometry";import{SEPARATOR as I}from"../../../../constants";import{createImageDef as P}from"../../../../engine/defs";import{flipImageDef as W,isInnerInsideOuter as w,rotateImageDef as A}from"../../../../engine/utils/rotation";import{boothStore as L,uiState as C}from"../../../../store";import E from"../../../../tools/settings";import{loadImagesInBatchesById as T}from"../../../../utils/loadImagesInBatches";import{clearHoveredBooth as U,hoverBooth as _,rememberBoothShapes as z,selectBooth as K}from"../../pointer";import M from"./config-booth-bg";import Z from"./config-booth-bookmark";import j from"./config-booth-border";import q from"./config-booth-labels";import F from"./config-booth-labels-special";import{registerLayerImages as G}from"./layer-images";import{createBoothImg as J,getImageLayerName as Q,mapBoothsLogos as V}from"./loadBoothsImages";export const BOOTHS_CHUNK_SIZE=350;export default function X(S,k){return(c=>{const s=S,f=[],h=[],m=[],p=[],d=[],g=Q(s),b={name:g,children:[]};for(const o of c){const r=M(o)?.getShape();r&&(f.push(...r),z(o,r));const n=q(o)?.getShape();n&&h.push(...n);const i=F(o)?.getShape();if(i&&m.push(...i),!E.borderless){const e=j(o)?.getShape();e&&p.push(e)}const a=Z(o)?.getShape();a&&d.push(a)}const y=h.filter(o=>o.lines),$=m.filter(o=>o.lines),D=h.filter(o=>o.source),x=m.filter(o=>o.source);if(!C.hideLogoInBooth){const o=V(c);G(g,async()=>{const r=await T(o,BOOTHS_CHUNK_SIZE),n=[];for(const[i,a]of r){const e=L.boothById.get(i);if(!e)continue;const{bounds:O,htmlImage:R}=J(e,a),t=P(R,O),v=e.borderWidth||L.borderWidth,u=e.rect.expand(-v),H=new N(u.center,u.size,e.rotate);t.onRoll=w(t.bounds,H)?({roll:l})=>A(t,l)?[t]:void 0:({roll:l})=>W(t,l)?[t]:void 0,e.shapes.push(t),n.push(t)}return{layer:b,children:n}})}let B=[];if(c.length){const o=s+I;B=[{name:`${o}boothBackground`,children:f,onPointerMove:_,onPointerOut:U,onClick:K},{name:`${o}labels`,children:y},{name:`${o}specialLabels`,children:$},{name:`${o}dots`,children:D},{name:`${o}specialDots`,children:x},b,{name:`${o}boothsBookmark`,children:d},{name:`${s}${I}boothBorder`,children:p}]}return{name:s,children:B}})(k)}
@@ -1,4 +1,4 @@
1
- import { LayerDef } from '@expofp/renderer';
2
- import { Layer } from '../../../../store/LayerStore';
1
+ import { type LayerDef } from '@expofp/renderer';
2
+ import { type Layer } from '../../../../store/LayerStore';
3
3
  export default function loadLayer(layer: Layer): Promise<LayerDef>;
4
4
  //# sourceMappingURL=config-load-layer.d.ts.map
@@ -1 +1 @@
1
- import{getConfig as T}from"@expofp/config";import{degToRad as v,Rect as D}from"@expofp/geometry";import{resolve as F}from"@expofp/resolve";import{BOOTHS_PAINTER_MARKER as G,SEPARATOR as m}from"../../../../constants";import{getFpPaths as H}from"../../../../data/fp-payloads";import{createImageDef as k,createLayerDef as g}from"../../../../engine/defs";import s,{boothStore as K}from"../../../../store";import Y from"../../../../store/init/init-booths";import{getChildLayers as j}from"../../../../store/init/init-layers";import{LayersMode as J}from"../../../../store/LayerStore";import{chunkArray as U}from"../../../../utils";import{loadIcons as Z}from"../../../../utils/imageloader";import q,{BG_LAYER_NAME as R,FG_LAYER_NAME as $}from"./config-bg";import z,{BOOTHS_CHUNK_SIZE as Q}from"./config-booths";import{configOutdoorPoiLayer as V}from"./config-outdoor-poi";import{registerLayerImages as W}from"./layer-images";import{createModelDefFromElement as X}from"./layer-models";import{getImageLayerName as ee,getLayerGraphics as oe,getModelLayerName as re}from"./loadBoothsImages";function te(e){return e.childLayers.length?e.childLayers:j(e,e.basePriority,15).layers}function S(e,c){return new Promise(async f=>{let r=[];const a=Y(s,e);if(V(e,a)){e.loaded=!0,e.configured=!0,e.children=[],f(g(e.name,[],{hidden:!0}));return}const i=await q(e),n=[],h=U(a,Q),d=K.booths.filter(o=>o.rect&&(!o.layer||o.layer===e||o.layer.childLayers.includes(e))&&o.exhibitors.find(t=>!!t.logoInBooth&&!!t.logo?.url)&&!s.uiState.hideLogoInBooth),B=new Map(d.map(o=>[o.id,o.noLabels]));d.forEach(o=>o.noLabels=!0),a.length&&h.forEach((o,t)=>{n.push(z(`${e.name}${m}${G}${m}${t}`,o))}),d.forEach(o=>{o.noLabels=B.get(o.id)}),e.loaded=!0;const u=i.children.find(o=>o.name===R),p=i.children.find(o=>o.name===$),y=ee(e.name),{icons:l,models:I}=oe(e),L={name:y,children:[]},b={name:re(e.name),children:I.map(X)};l.length&&W(y,async()=>{const o=await Z(l),t=[];for(const A of o.filter(Boolean)){const{bounds:{x:E,y:P,height:M,angle:N,width:_},htmlImage:C}=A,O=D.fromMinMax({x:E,y:P},{x:E+_,y:P+M},v(N)),x=k(C,O);t.push({shape:x})}return{layer:L,children:t}}),u&&r.push({...u,name:`${i.name}${m}${R}`}),n.length&&r.push(...n),p&&r.push({...p,name:`${i.name}${m}${$}`}),l.length&&r.push(L),b.children.length&&r.push(b);const w=e.childLayers.sort((o,t)=>o.basePriority-t.basePriority).map(async o=>S(o,!0));Promise.all(w).then(o=>{const t=o.flat();t.length&&r.push(...t),e.children=r,e.configured=!0,f(g(e.name,r,{hidden:!c}))})})}export default async function ne(e){return e.configured?g(e.name,e.children,{hidden:!e.visible}):new Promise(async(c,f)=>{if(s.layerStore.mode!==J.Default&&!H(e.name)&&!e.rootParent)try{const n=T().fpSvgLayerJsRefs[e.name];n&&await F(n)}catch(n){console.warn(`Layer data not loaded: ${e.name}`,n)}const r=te(e);r.length&&(e.childLayers=r);const{layers:a}=s.layerStore;s.layerStore.layers=[...a,...r.filter(n=>!a.some(h=>h.name===n.name))];const i=await S(e,e.visible);c(i)})}
1
+ import{getConfig as x}from"@expofp/config";import{degToRad as C,Rect as T}from"@expofp/geometry";import{resolve as v}from"@expofp/resolve";import{BOOTHS_PAINTER_MARKER as D,SEPARATOR as s}from"../../../../constants";import{getFpPaths as F}from"../../../../data/fp-payloads";import{createImageDef as G,createLayerDef as h}from"../../../../engine/defs";import m,{boothStore as H,uiState as k}from"../../../../store";import K from"../../../../store/init/init-booths";import{getChildLayers as Y}from"../../../../store/init/init-layers";import{LayersMode as J}from"../../../../store/LayerStore";import{chunkArray as U}from"../../../../utils";import{loadIcons as Z}from"../../../../utils/imageloader";import j,{BG_LAYER_NAME as $,FG_LAYER_NAME as E}from"./config-bg";import q,{BOOTHS_CHUNK_SIZE as z}from"./config-booths";import{configOutdoorPoiLayer as Q}from"./config-outdoor-poi";import{registerLayerImages as V}from"./layer-images";import{createModelDefFromElement as W}from"./layer-models";import{getImageLayerName as X,getLayerGraphics as ee,getModelLayerName as oe}from"./loadBoothsImages";function re(e){return e.childLayers.length?e.childLayers:Y(e,e.basePriority,15).layers}async function R(e,i){const r=[],n=K(m,e);if(Q(e,n))return e.loaded=!0,e.configured=!0,e.children=[],h(e.name,[],{hidden:!0});const a=await j(e),c=[],S=U(n,z),d=H.booths.filter(o=>o.rect&&(!o.layer||o.layer===e||o.layer.childLayers.includes(e))&&o.exhibitors.find(t=>!!t.logoInBooth&&!!t.logo?.url)&&!k.hideLogoInBooth),B=new Map(d.map(o=>[o,o.noLabels]));d.forEach(o=>o.noLabels=!0),n.length&&S.forEach((o,t)=>{c.push(q(`${e.name}${s}${D}${s}${t}`,o))});for(const[o,t]of B)o.noLabels=t;e.loaded=!0;const l=a.children.find(o=>o.name===$),g=a.children.find(o=>o.name===E),u=X(e.name),{icons:f,models:I}=ee(e),p={name:u,children:[]},y={name:oe(e.name),children:I.map(W)};f.length&&V(u,async()=>{const o=await Z(f),t=[];for(const M of o.filter(Boolean)){const{bounds:{x:L,y:b,height:P,angle:N,width:_},htmlImage:w}=M,O=T.fromMinMax({x:L,y:b},{x:L+_,y:b+P},C(N));t.push(G(w,O))}return{layer:p,children:t}}),l&&r.push({...l,name:`${a.name}${s}${$}`}),c.length&&r.push(...c),g&&r.push({...g,name:`${a.name}${s}${E}`}),f.length&&r.push(p),y.children.length&&r.push(y);const A=await Promise.all(e.childLayers.sort((o,t)=>o.basePriority-t.basePriority).map(o=>R(o,!0)));return r.push(...A),e.children=r,e.configured=!0,h(e.name,r,{hidden:!i})}export default async function te(e){if(e.configured)return h(e.name,e.children,{hidden:!e.visible});if(m.layerStore.mode!==J.Default&&!F(e.name)&&!e.rootParent)try{const n=x().fpSvgLayerJsRefs[e.name];n&&await v(n)}catch(n){console.warn(`Layer data not loaded: ${e.name}`,n)}const i=re(e);i.length&&(e.childLayers=i);const{layers:r}=m.layerStore;return m.layerStore.layers=[...r,...i.filter(n=>!r.some(a=>a.name===n.name))],R(e,e.visible)}
@@ -1,24 +1,8 @@
1
1
  import { type ImageDef, type LayerDef } from '@expofp/renderer';
2
- export interface ParentRectLike {
3
- readonly center: {
4
- readonly x: number;
5
- readonly y: number;
6
- };
7
- readonly size: {
8
- readonly x: number;
9
- readonly y: number;
10
- };
11
- readonly rotation: number;
12
- }
13
- /** A loaded layer image, with the bounds of whatever it was placed inside. */
14
- export interface ImageDefWithParentBounds {
15
- parentRect?: ParentRectLike;
16
- shape: ImageDef;
17
- }
18
2
  /** Loads one configured layer's designer images and hands back where they belong. */
19
3
  export type LayerImagesHandler = () => Promise<{
20
4
  layer: LayerDef;
21
- children: ImageDefWithParentBounds[];
5
+ children: ImageDef[];
22
6
  }>;
23
7
  /**
24
8
  * Registers a layer's image loader under its layer name.
@@ -1 +1 @@
1
- import{degToRad as p,radToDeg as d,Rect as u}from"@expofp/geometry";import{update as h}from"@expofp/renderer";import{select as y}from"d3";import{SEPARATOR as g}from"../../../../constants";import{getFpSvgJs as L}from"../../../../data/fp-payloads";import{getLayerSvg as R}from"../../../../data/svg";import{flipImageDef as A,isInnerInsideOuter as x,rotateImageDef as T}from"../../../../engine/utils/rotation";import{getLogoUrl as w}from"../../../../utils/getLogoUrl";import{invokeLayerImages as I}from"./layer-images";import{MODEL_3D_ATTRIBUTE as B}from"./layer-models";export async function loadLayersImages(){const t=I();await Promise.all(t.map(async r=>{const s=await r;if(!s)return;const{layer:e,children:n}=s;if(n.length){const c=[];for(const a of n){const{shape:o,parentRect:i}=a,m=x(o.bounds,i);e.name.includes("Pathway_")||(o.onRoll=m?({roll:l})=>T(o,l)?[o]:void 0:({roll:l})=>A(o,l)?[o]:void 0),c.push(o)}e.children.push(...c),h(e)}}))}export const getImageLayerName=t=>`${t}${g}images`,getModelLayerName=t=>`${t}${g}models`;export function mapBoothsLogos(t){const r=new Map;for(const s of t){if(!s.rect)continue;const e=s.exhibitors.find(n=>n.logoInBooth&&n.logo)?.logo;e&&r.set(s.id,{preferred:w(e),fallback:e.url})}return r}export function getLayerGraphics(t){const r=y(R(t)).select(`[data-layer="${t.name}"]`),s=((L().__fpVersion??0)>5?r.selectAll(":scope > image, :scope > g:not([data-layer]) image").nodes():r.selectAll(":scope > g[data-is-editable='false'] image").nodes()).filter(Boolean),e=[],n=[];for(const c of s)(c.hasAttribute(B)?n:e).push(c);return{icons:e,models:n}}export function createBoothImg(t,r){const s=t.rect,e=s.size.width,n=s.size.height,c=n?e/n:1,a=r.height?r.width/r.height:1;let o,i,m;const l=.9;c>a?(i=n*l,o=i*a):(o=e*l,i=o/a);const f=t.rotate||0;return a>=2&&!f&&n>=e*2?(i=e*l,o=i*a,m=-90):m=d(f),o>e&&(o=e,i=o/a),i>n&&(i=n,o=i*a),{name:t.slug,bounds:new u(s.center,{x:o,y:i},p(m),t.elevation),htmlImage:r,booth:t}}
1
+ import{degToRad as p,radToDeg as d,Rect as h}from"@expofp/geometry";import{update as u}from"@expofp/renderer";import{select as y}from"d3";import{SEPARATOR as f}from"../../../../constants";import{getFpSvgJs as L}from"../../../../data/fp-payloads";import{getLayerSvg as A}from"../../../../data/svg";import{getLogoUrl as x}from"../../../../utils/getLogoUrl";import{invokeLayerImages as T}from"./layer-images";import{MODEL_3D_ATTRIBUTE as R}from"./layer-models";export async function loadLayersImages(){const e=T();await Promise.all(e.map(async r=>{const n=await r;if(!n?.children.length)return;const{layer:o,children:t}=n;o.children.push(...t),u(o)}))}export const getImageLayerName=e=>`${e}${f}images`,getModelLayerName=e=>`${e}${f}models`;export function mapBoothsLogos(e){const r=new Map;for(const n of e){if(!n.rect)continue;const o=n.exhibitors.find(t=>t.logoInBooth&&t.logo)?.logo;o&&r.set(n.id,{preferred:x(o),fallback:o.url})}return r}export function getLayerGraphics(e){const r=y(A(e)).select(`[data-layer="${e.name}"]`),n=((L().__fpVersion??0)>5?r.selectAll(":scope > image, :scope > g:not([data-layer]) image").nodes():r.selectAll(":scope > g[data-is-editable='false'] image").nodes()).filter(Boolean),o=[],t=[];for(const c of n)(c.hasAttribute(R)?t:o).push(c);return{icons:o,models:t}}export function createBoothImg(e,r){const n=e.rect,o=n.size.width,t=n.size.height,c=t?o/t:1,a=r.height?r.width/r.height:1;let i,s,l;const g=.9;c>a?(s=t*g,i=s*a):(i=o*g,s=i/a);const m=e.rotate||0;return a>=2&&!m&&t>=o*2?(s=o*g,i=s*a,l=-90):l=d(m),i>o&&(i=o,s=i/a),s>t&&(s=t,i=s*a),{name:e.slug,bounds:new h(n.center,{x:i,y:s},p(l),e.elevation),htmlImage:r,booth:e}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/floorplan",
3
- "version": "3.35.2",
3
+ "version": "3.36.0",
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.35.2",
73
- "@expofp/debug": "3.35.2",
74
- "@expofp/geometry": "3.35.2",
75
- "@expofp/renderer": "3.35.2",
76
- "@expofp/resolve": "3.35.2",
77
- "@expofp/schema": "3.35.2",
78
- "@expofp/ui": "3.35.2",
79
- "@expofp/utils": "3.35.2",
80
- "@expofp/wayfinding": "3.35.2"
72
+ "@expofp/config": "3.36.0",
73
+ "@expofp/debug": "3.36.0",
74
+ "@expofp/geometry": "3.36.0",
75
+ "@expofp/renderer": "3.36.0",
76
+ "@expofp/resolve": "3.36.0",
77
+ "@expofp/schema": "3.36.0",
78
+ "@expofp/ui": "3.36.0",
79
+ "@expofp/utils": "3.36.0",
80
+ "@expofp/wayfinding": "3.36.0"
81
81
  },
82
82
  "devDependencies": {
83
83
  "@babel/plugin-proposal-decorators": "^8.0.2",