@expofp/floorplan 3.7.16 → 3.7.17

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 (69) hide show
  1. package/dist/browser/{Button-CjtFTyzR.js → Button-CalAncSt.js} +5 -5
  2. package/dist/browser/{CookieConsent-CxzQ4NKQ.js → CookieConsent-ZygvYtDb.js} +7 -7
  3. package/dist/browser/{Debug-sUGx7yjo.js → Debug-D0iAX94G.js} +7 -7
  4. package/dist/browser/{Demo-DJkxdhsK.js → Demo-DtZnCrNU.js} +9 -9
  5. package/dist/browser/{Free-CMj5_sOK.js → Free-CY2ZgfTi.js} +9 -9
  6. package/dist/browser/{Gallery-CO2oAxhp.js → Gallery-BJyU80Q8.js} +9 -9
  7. package/dist/browser/{GpsLoader-GENe0D-6.js → GpsLoader-C4Az3Ogj.js} +9 -9
  8. package/dist/browser/{KioskStore-D0To4HWV.js → KioskStore-D3xv5iMJ.js} +3 -3
  9. package/dist/browser/{MaplibreAdapter-DHXfG9I7.js → MaplibreAdapter-BI5hr4DA.js} +9 -9
  10. package/dist/browser/{ModalContainer-DJXx-Dpp.js → ModalContainer-CGy7G3W-.js} +10 -10
  11. package/dist/browser/{PermissionNotice-Cr9iy6ED.js → PermissionNotice-BQl-Eh0U.js} +6 -6
  12. package/dist/browser/{SetKioskMode-jQmIPKPu.js → SetKioskMode-puXODfKF.js} +8 -8
  13. package/dist/browser/{ShowKiosk-DyaUJmSm.js → ShowKiosk-78DDAGCM.js} +10 -10
  14. package/dist/browser/{TouchHand-CSDv-0f5.js → TouchHand-DjRl3mqw.js} +4 -4
  15. package/dist/browser/{ViewerMenuPanel-DHdJQRhs.js → ViewerMenuPanel-DwpOTh1A.js} +9 -9
  16. package/dist/browser/{add-debug-secret-listener-DjsOy3Gq.js → add-debug-secret-listener-0zbOfR23.js} +1 -1
  17. package/dist/browser/{boolean-editor-D8afncMt.js → boolean-editor-Ct-PRF2J.js} +9 -9
  18. package/dist/browser/{bootIntercom-CSWtIMFV.js → bootIntercom-CNJJMQLU.js} +2 -2
  19. package/dist/browser/{browser-jkQElf_j.js → browser-Dvk9Y0QP.js} +2 -2
  20. package/dist/browser/bundle.json +61 -61
  21. package/dist/browser/{classnames-DerROiP3.js → classnames-N7RelmSW.js} +2 -2
  22. package/dist/browser/{client-Vh95j-4Q.js → client-B3oB_gzf.js} +4 -4
  23. package/dist/browser/{components-B84vWumL.js → components-DCWqd4OH.js} +38 -38
  24. package/dist/browser/{createWayfinding-CvBZJycA.js → createWayfinding-DCYv9I1K.js} +6 -6
  25. package/dist/browser/{debug-overlay-2VT9jNwO.js → debug-overlay-C1zmn9JP.js} +10 -10
  26. package/dist/browser/{debug-ui-B1rCZ_20.js → debug-ui-Dk4TQW1Q.js} +6 -6
  27. package/dist/browser/{dist-DlO0STw3.js → dist-BjWXGdvS.js} +6 -6
  28. package/dist/browser/{dist-CzB3q54J.js → dist-CZ9F3ShM.js} +5 -5
  29. package/dist/browser/{dist-B1GjLRER.js → dist-Dhhxwn3m.js} +3 -3
  30. package/dist/browser/{efp-debug-init-DHecVGAB.js → efp-debug-init-BY441NPw.js} +2 -2
  31. package/dist/browser/{enum-editor-CYok5EWK.js → enum-editor-wsFvRjdm.js} +11 -11
  32. package/dist/browser/{es5-B6ZCP3Nf.js → es5--a3vRB-s.js} +2 -2
  33. package/dist/browser/{event-not-found-CnZ50wHB.js → event-not-found-C08dNiXm.js} +1 -1
  34. package/dist/browser/{exports-Bkiz-xsy.js → exports-DnnAyWkZ.js} +1 -1
  35. package/dist/browser/{favicon-CnAVgZ0M.js → favicon-BUBgyUNE.js} +1 -1
  36. package/dist/browser/{fetch-retry.umd-DBGHQyaB.js → fetch-retry.umd-DqWbcFb6.js} +2 -2
  37. package/dist/browser/{flex-D4pQUlUP.js → flex-BJvbUFUw.js} +5 -5
  38. package/dist/browser/{floorplan.loader-cJkA6gUT.js → floorplan.loader-DtRqhN7h.js} +11 -11
  39. package/dist/browser/{floorplan.ready-2H0Etexv.js → floorplan.ready-DU_ul7oy.js} +12 -12
  40. package/dist/browser/{fuse-DchetBTf.js → fuse-C1gHDLf6.js} +2 -2
  41. package/dist/browser/{i18n-BxzWqmMz.js → i18n-GqZrkrT3.js} +4 -4
  42. package/dist/browser/index.js +12 -12
  43. package/dist/browser/{index.module-c39ZrI4i.js → index.module-ClFPQstA.js} +4 -4
  44. package/dist/browser/{is-webview-Cf05uzxP.js → is-webview-Ubd69hDX.js} +1 -1
  45. package/dist/browser/{jsx-runtime-CpBZ_Xu9.js → jsx-runtime-CcqjcKRn.js} +2 -2
  46. package/dist/browser/{lib-BLeI_T8z.js → lib-D-VhTz7u.js} +4 -4
  47. package/dist/browser/{loadImage-D0OiaH3g.js → loadImage-BSgOJpEi.js} +4 -4
  48. package/dist/browser/{logDeviceInfo-pCQ1SwDY.js → logDeviceInfo-CqPbQalh.js} +9 -9
  49. package/dist/browser/{main-BQOT4eqL.js → main-D02oALU5.js} +1 -1
  50. package/dist/browser/{mobx-CR2pTm02.js → mobx-9haaaJQN.js} +4 -4
  51. package/dist/browser/{particles.min-CNUDOoq0.js → particles.min-Cy0_xv2F.js} +2 -2
  52. package/dist/browser/{prop-types-BOYxjTWi.js → prop-types-CGmwvRRk.js} +2 -2
  53. package/dist/browser/{react-CIU0fTyL.js → react-C94g1dWf.js} +2 -2
  54. package/dist/browser/{react-dom-BYBThAht.js → react-dom-VzzznUin.js} +3 -3
  55. package/dist/browser/{reset-all-settings-BhzcLM6d.js → reset-all-settings-Bs45R4UK.js} +7 -7
  56. package/dist/browser/{rolldown-runtime-BbFBHYUl.js → rolldown-runtime-DDajFMnr.js} +1 -1
  57. package/dist/browser/{settings-3mNrotnD.js → settings-B89NEO7Z.js} +2 -2
  58. package/dist/browser/{settings-item-DNQSLrXW.js → settings-item-CTgteXDw.js} +6 -6
  59. package/dist/browser/{store-CbkLKghg.js → store-39MLQcdz.js} +72 -71
  60. package/dist/browser/{string-editor-DbizsPe5.js → string-editor-4uawnaDY.js} +7 -7
  61. package/dist/browser/{theme-CSXyl6GN.js → theme-CWzone56.js} +8 -8
  62. package/dist/browser/{ui-D8gVz9vz.js → ui-D8Gz1TVh.js} +8 -8
  63. package/dist/browser/{useRenderTarget-Bzj4QCqf.js → useRenderTarget-BSjQ_3rd.js} +4 -4
  64. package/dist/esm/wayfinding/core/graph/constants.d.ts +16 -2
  65. package/dist/esm/wayfinding/core/graph/constants.js +1 -1
  66. package/dist/esm/wayfinding/core/graph/linkCost.js +1 -1
  67. package/dist/esm/wayfinding/core/graph/pathfinder/aStarPathFinder.js +1 -1
  68. package/dist/esm/wayfinding/core/types.d.ts +3 -2
  69. package/package.json +3 -3
@@ -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.7.16" };
4
+ e.SENTRY_RELEASE = { id: "3.7.17" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "9cdf6ee1-ca8c-43b1-b08c-7b3d7dde15e9", e._sentryDebugIdIdentifier = "sentry-dbid-9cdf6ee1-ca8c-43b1-b08c-7b3d7dde15e9");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-BbFBHYUl.js";
10
- import { t } from "./react-CIU0fTyL.js";
11
- import { t as n } from "./jsx-runtime-CpBZ_Xu9.js";
12
- import { c as r, l as i, t as a, u as o, y as s } from "./flex-D4pQUlUP.js";
13
- import { t as c } from "./classnames-DerROiP3.js";
9
+ import { r as e } from "./rolldown-runtime-DDajFMnr.js";
10
+ import { t } from "./react-C94g1dWf.js";
11
+ import { t as n } from "./jsx-runtime-CcqjcKRn.js";
12
+ import { c as r, l as i, t as a, u as o, y as s } from "./flex-BJvbUFUw.js";
13
+ import { t as c } from "./classnames-N7RelmSW.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(c()), d = {
16
16
  orientation: {
@@ -2,21 +2,21 @@ 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.7.16" };
5
+ e.SENTRY_RELEASE = { id: "3.7.17" };
6
6
  var t = new e.Error().stack;
7
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "a135484f-7590-49b6-8ff9-4ee1e6f434c4", e._sentryDebugIdIdentifier = "sentry-dbid-a135484f-7590-49b6-8ff9-4ee1e6f434c4");
7
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7852fb71-36f6-444b-9a88-09598e0979e3", e._sentryDebugIdIdentifier = "sentry-dbid-7852fb71-36f6-444b-9a88-09598e0979e3");
8
8
  } catch {}
9
9
  })();
10
- import { r as e, t } from "./rolldown-runtime-BbFBHYUl.js";
11
- import { t as n } from "./react-CIU0fTyL.js";
12
- import { i as r } from "./reset-all-settings-BhzcLM6d.js";
13
- import { t as i } from "./jsx-runtime-CpBZ_Xu9.js";
14
- import { _ as a, a as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, p as g, r as _, t as v, u as y } from "./loadImage-D0OiaH3g.js";
15
- import { t as b } from "./browser-jkQElf_j.js";
16
- import { $ as x, A as S, H as C, I as w, J as T, K as E, L as D, O, R as k, S as A, U as ee, V as te, W as ne, X as re, Y as ie, Z as ae, _ as oe, a as se, at as ce, c as le, ct as j, d as ue, g as M, it as de, j as fe, m as pe, n as me, nt as he, o as ge, p as N, r as _e, rt as ve, s as P, t as ye, u as F, v as be, z as xe } from "./i18n-BxzWqmMz.js";
17
- import { t as Se } from "./is-webview-Cf05uzxP.js";
18
- import { t as I } from "./classnames-DerROiP3.js";
19
- import { t as Ce } from "./Button-CjtFTyzR.js";
10
+ import { r as e, t } from "./rolldown-runtime-DDajFMnr.js";
11
+ import { t as n } from "./react-C94g1dWf.js";
12
+ import { i as r } from "./reset-all-settings-Bs45R4UK.js";
13
+ import { t as i } from "./jsx-runtime-CcqjcKRn.js";
14
+ import { _ as a, a as o, c as s, d as c, f as l, g as u, h as d, i as f, l as p, m, n as h, p as g, r as _, t as v, u as y } from "./loadImage-BSgOJpEi.js";
15
+ import { t as b } from "./browser-Dvk9Y0QP.js";
16
+ import { $ as x, A as S, H as C, I as w, J as T, K as E, L as D, O, R as k, S as A, U as ee, V as te, W as ne, X as re, Y as ie, Z as ae, _ as oe, a as se, at as ce, c as le, ct as j, d as ue, g as M, it as de, j as fe, m as pe, n as me, nt as he, o as ge, p as N, r as _e, rt as ve, s as P, t as ye, u as F, v as be, z as xe } from "./i18n-GqZrkrT3.js";
17
+ import { t as Se } from "./is-webview-Ubd69hDX.js";
18
+ import { t as I } from "./classnames-N7RelmSW.js";
19
+ import { t as Ce } from "./Button-CalAncSt.js";
20
20
  //#endregion
21
21
  //#region src/tools/settings.ts
22
22
  var we = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
@@ -33698,73 +33698,75 @@ function HP(e, t) {
33698
33698
  return n;
33699
33699
  }
33700
33700
  //#endregion
33701
+ //#region src/wayfinding/core/graph/constants.ts
33702
+ var UP = 1e4, WP = 1.01;
33703
+ //#endregion
33701
33704
  //#region src/wayfinding/core/graph/linkCost.ts
33702
- var UP = 4;
33703
- function WP(e) {
33705
+ function GP(e) {
33704
33706
  var t;
33705
- return e.virtual ? (t = e.virtualLength) == null ? 0 : t : (0, mr.lineLength)(e.p0, e.p1) / (e.weight || UP);
33707
+ return e.virtual ? (t = e.virtualLength) == null ? UP : t : (0, mr.lineLength)(e.p0, e.p1) / (e.weight || 4);
33706
33708
  }
33707
33709
  //#endregion
33708
33710
  //#region src/wayfinding/core/graph/buildNGraph.ts
33709
- var GP = /* @__PURE__ */ e(PP(), 1);
33710
- function KP(e, t) {
33711
- let { oriented: n, onlyAccessible: r } = t, i = (0, GP.default)();
33711
+ var KP = /* @__PURE__ */ e(PP(), 1);
33712
+ function qP(e, t) {
33713
+ let { oriented: n, onlyAccessible: r } = t, i = (0, KP.default)();
33712
33714
  for (let t of e) {
33713
33715
  if (r && t.unaccessible) continue;
33714
- let e = FP(t.p0), a = FP(t.p1), o = WP(t);
33716
+ let e = FP(t.p0), a = FP(t.p1), o = GP(t);
33715
33717
  i.addLink(e, a, { distance: o }), n && !t.unidirection && i.addLink(a, e, { distance: o });
33716
33718
  }
33717
33719
  return i;
33718
33720
  }
33719
33721
  //#endregion
33720
33722
  //#region src/wayfinding/core/graph/utils/a-star/defaultSettings.js
33721
- var qP = [];
33722
- typeof Object.freeze == "function" && Object.freeze(qP);
33723
- var JP = {
33724
- heuristic: YP,
33725
- distance: XP,
33726
- blocked: ZP,
33727
- compareFScore: QP,
33728
- NO_PATH: qP,
33729
- setHeapIndex: $P,
33730
- setH1: nF,
33731
- setH2: rF,
33732
- compareF1Score: eF,
33733
- compareF2Score: tF
33723
+ var JP = [];
33724
+ typeof Object.freeze == "function" && Object.freeze(JP);
33725
+ var YP = {
33726
+ heuristic: XP,
33727
+ distance: ZP,
33728
+ blocked: QP,
33729
+ compareFScore: $P,
33730
+ NO_PATH: JP,
33731
+ setHeapIndex: eF,
33732
+ setH1: rF,
33733
+ setH2: iF,
33734
+ compareF1Score: tF,
33735
+ compareF2Score: nF
33734
33736
  };
33735
- function YP() {
33737
+ function XP() {
33736
33738
  return 0;
33737
33739
  }
33738
- function XP() {
33740
+ function ZP() {
33739
33741
  return 1;
33740
33742
  }
33741
- function ZP() {
33743
+ function QP() {
33742
33744
  return !1;
33743
33745
  }
33744
- function QP(e, t) {
33746
+ function $P(e, t) {
33745
33747
  return e.fScore - t.fScore;
33746
33748
  }
33747
- function $P(e, t) {
33749
+ function eF(e, t) {
33748
33750
  e.heapIndex = t;
33749
33751
  }
33750
- function eF(e, t) {
33752
+ function tF(e, t) {
33751
33753
  return e.f1 - t.f1;
33752
33754
  }
33753
- function tF(e, t) {
33755
+ function nF(e, t) {
33754
33756
  return e.f2 - t.f2;
33755
33757
  }
33756
- function nF(e, t) {
33758
+ function rF(e, t) {
33757
33759
  e.h1 = t;
33758
33760
  }
33759
- function rF(e, t) {
33761
+ function iF(e, t) {
33760
33762
  e.h2 = t;
33761
33763
  }
33762
33764
  //#endregion
33763
33765
  //#region src/wayfinding/core/graph/utils/a-star/makeSearchStatePool.js
33764
- function iF(e) {
33766
+ function aF(e) {
33765
33767
  this.node = e, this.parent = null, this.closed = !1, this.open = 0, this.distanceToSource = Infinity, this.fScore = Infinity, this.heapIndex = -1;
33766
33768
  }
33767
- function aF() {
33769
+ function oF() {
33768
33770
  let e = 0, t = [];
33769
33771
  return {
33770
33772
  createNewState: r,
@@ -33775,21 +33777,21 @@ function aF() {
33775
33777
  }
33776
33778
  function r(n) {
33777
33779
  let r = t[e];
33778
- return r ? (r.node = n, r.parent = null, r.closed = !1, r.open = 0, r.distanceToSource = Infinity, r.fScore = Infinity, r.heapIndex = -1) : (r = new iF(n), t[e] = r), e++, r;
33780
+ return r ? (r.node = n, r.parent = null, r.closed = !1, r.open = 0, r.distanceToSource = Infinity, r.fScore = Infinity, r.heapIndex = -1) : (r = new aF(n), t[e] = r), e++, r;
33779
33781
  }
33780
33782
  }
33781
33783
  //#endregion
33782
33784
  //#region src/wayfinding/core/graph/utils/a-star/NodeHeap.js
33783
- function oF(e, t) {
33784
- if (!(this instanceof oF)) return new oF(e, t);
33785
- if (Array.isArray(e) || (t = e, e = []), t = t || {}, this.data = e || [], this.length = this.data.length, this.compare = t.compare || cF, this.setNodeId = t.setNodeId || sF, this.length > 0) for (let e = this.length >> 1; e >= 0; e--) this._down(e);
33785
+ function sF(e, t) {
33786
+ if (!(this instanceof sF)) return new sF(e, t);
33787
+ if (Array.isArray(e) || (t = e, e = []), t = t || {}, this.data = e || [], this.length = this.data.length, this.compare = t.compare || lF, this.setNodeId = t.setNodeId || cF, this.length > 0) for (let e = this.length >> 1; e >= 0; e--) this._down(e);
33786
33788
  if (t.setNodeId) for (let e = 0; e < this.length; ++e) this.setNodeId(this.data[e], e);
33787
33789
  }
33788
- function sF() {}
33789
- function cF(e, t) {
33790
+ function cF() {}
33791
+ function lF(e, t) {
33790
33792
  return e - t;
33791
33793
  }
33792
- oF.prototype = {
33794
+ sF.prototype = {
33793
33795
  push: function(e) {
33794
33796
  this.data.push(e), this.setNodeId(e, this.length), this.length++, this._up(this.length - 1);
33795
33797
  },
@@ -33825,16 +33827,16 @@ oF.prototype = {
33825
33827
  };
33826
33828
  //#endregion
33827
33829
  //#region src/wayfinding/core/graph/utils/a-star/a-star.js
33828
- var lF = JP.NO_PATH;
33829
- function uF(e, t) {
33830
+ var uF = YP.NO_PATH;
33831
+ function dF(e, t) {
33830
33832
  t = t || {};
33831
33833
  let n = t.oriented, r = t.blocked;
33832
- r || (r = JP.blocked);
33834
+ r || (r = YP.blocked);
33833
33835
  let i = t.heuristic;
33834
- i || (i = JP.heuristic);
33836
+ i || (i = YP.heuristic);
33835
33837
  let a = t.distance;
33836
- a || (a = JP.distance);
33837
- let o = aF();
33838
+ a || (a = YP.distance);
33839
+ let o = oF();
33838
33840
  return { find: s };
33839
33841
  function s(t, s) {
33840
33842
  let c = e.getNode(t);
@@ -33842,17 +33844,17 @@ function uF(e, t) {
33842
33844
  let l = e.getNode(s);
33843
33845
  if (!l) throw Error("toId is not defined in this graph: " + s);
33844
33846
  o.reset();
33845
- let u = /* @__PURE__ */ new Map(), d = new oF({
33846
- compare: JP.compareFScore,
33847
- setNodeId: JP.setHeapIndex
33847
+ let u = /* @__PURE__ */ new Map(), d = new sF({
33848
+ compare: YP.compareFScore,
33849
+ setNodeId: YP.setHeapIndex
33848
33850
  }), f = o.createNewState(c);
33849
33851
  u.set(t, f), f.fScore = i(c, l), f.distanceToSource = 0, d.push(f), f.open = 1;
33850
33852
  let p;
33851
33853
  for (; d.length > 0;) {
33852
- if (p = d.pop(), dF(p, l)) return fF(p);
33854
+ if (p = d.pop(), fF(p, l)) return pF(p);
33853
33855
  p.closed = !0, e.forEachLinkedNode(p.node.id, m, n);
33854
33856
  }
33855
- return lF;
33857
+ return uF;
33856
33858
  function m(e, t) {
33857
33859
  let n = u.get(e.id);
33858
33860
  if (n || (n = o.createNewState(e), u.set(e.id, n)), n.closed || (n.open === 0 && (d.push(n), n.open = 1), r(e, p.node, t))) return;
@@ -33861,17 +33863,17 @@ function uF(e, t) {
33861
33863
  }
33862
33864
  }
33863
33865
  }
33864
- function dF(e, t) {
33866
+ function fF(e, t) {
33865
33867
  return e.node === t;
33866
33868
  }
33867
- function fF(e) {
33869
+ function pF(e) {
33868
33870
  let t = [e.node], n = e.parent;
33869
33871
  for (; n;) t.push(n.node), n = n.parent;
33870
33872
  return t;
33871
33873
  }
33872
33874
  //#endregion
33873
33875
  //#region src/wayfinding/core/graph/pathfinder/parseNodeId.ts
33874
- function pF(e) {
33876
+ function mF(e) {
33875
33877
  let t = e.lastIndexOf("_"), n = e.lastIndexOf("_", t - 1);
33876
33878
  if (n === -1) throw Error(`WF: invalid node ID format "${e}", expected "{layer}_{x}_{y}"`);
33877
33879
  return [
@@ -33882,12 +33884,11 @@ function pF(e) {
33882
33884
  }
33883
33885
  //#endregion
33884
33886
  //#region src/wayfinding/core/graph/pathfinder/aStarPathFinder.ts
33885
- var mF = 1.01;
33886
33887
  function hF() {
33887
33888
  return function(e, t, n) {
33888
33889
  let r = 1;
33889
33890
  if (t.parent) {
33890
- let [, n, i] = pF(t.parent.node.id), [, a, o] = pF(t.node.id), [, s, c] = pF(e.id);
33891
+ let [, n, i] = mF(t.parent.node.id), [, a, o] = mF(t.node.id), [, s, c] = mF(e.id);
33891
33892
  (0, mr.lineAngle)({
33892
33893
  x: n,
33893
33894
  y: i
@@ -33900,7 +33901,7 @@ function hF() {
33900
33901
  }, {
33901
33902
  x: s,
33902
33903
  y: c
33903
- }) && (r = mF);
33904
+ }) && (r = WP);
33904
33905
  }
33905
33906
  return r * n.data.distance;
33906
33907
  };
@@ -33909,7 +33910,7 @@ function gF() {
33909
33910
  let e = null, t = null;
33910
33911
  return {
33911
33912
  build(n, r) {
33912
- t = KP(n, r), e = uF(t, {
33913
+ t = qP(n, r), e = dF(t, {
33913
33914
  oriented: r.oriented,
33914
33915
  distance: hF()
33915
33916
  });
@@ -33921,7 +33922,7 @@ function gF() {
33921
33922
  if (!e) return [];
33922
33923
  let r = e.find(t, n);
33923
33924
  return r.length ? r.map((e) => {
33924
- let [t, n, r] = pF(e.id);
33925
+ let [t, n, r] = mF(e.id);
33925
33926
  return {
33926
33927
  id: e.id,
33927
33928
  layer: t,
@@ -33961,7 +33962,7 @@ function bF(e, t) {
33961
33962
  let n = 0;
33962
33963
  for (let r = 1; r < e.length; r++) {
33963
33964
  let i = zP(t, e[r - 1], e[r]);
33964
- i && (n += WP(i));
33965
+ i && (n += GP(i));
33965
33966
  }
33966
33967
  return n;
33967
33968
  }
@@ -35867,7 +35868,7 @@ var bR = (gR = class {
35867
35868
  }
35868
35869
  async buildEngine() {
35869
35870
  try {
35870
- let { default: e } = await import("./fuse-DchetBTf.js").then((e) => e.n);
35871
+ let { default: e } = await import("./fuse-C1gHDLf6.js").then((e) => e.n);
35871
35872
  be(() => {
35872
35873
  this.engine = new e([], {
35873
35874
  keys: this.keys,
@@ -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.7.16" };
4
+ e.SENTRY_RELEASE = { id: "3.7.17" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "888fc155-fb35-4159-9302-91880886e35d", e._sentryDebugIdIdentifier = "sentry-dbid-888fc155-fb35-4159-9302-91880886e35d");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-BbFBHYUl.js";
10
- import { t } from "./react-CIU0fTyL.js";
11
- import { t as n } from "./jsx-runtime-CpBZ_Xu9.js";
12
- import { D as r, i, l as a, n as o, s, u as c, y as l } from "./flex-D4pQUlUP.js";
13
- import { t as u } from "./classnames-DerROiP3.js";
14
- import { t as d } from "./settings-item-DNQSLrXW.js";
9
+ import { r as e } from "./rolldown-runtime-DDajFMnr.js";
10
+ import { t } from "./react-C94g1dWf.js";
11
+ import { t as n } from "./jsx-runtime-CcqjcKRn.js";
12
+ import { D as r, i, l as a, n as o, s, u as c, y as l } from "./flex-BJvbUFUw.js";
13
+ import { t as u } from "./classnames-N7RelmSW.js";
14
+ import { t as d } from "./settings-item-CTgteXDw.js";
15
15
  //#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
16
16
  var f = {
17
17
  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.7.16" };
4
+ e.SENTRY_RELEASE = { id: "3.7.17" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b674b3f0-1e85-4d5b-b554-fb365f6d1945", e._sentryDebugIdIdentifier = "sentry-dbid-b674b3f0-1e85-4d5b-b554-fb365f6d1945");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-BbFBHYUl.js";
10
- import { t } from "./react-CIU0fTyL.js";
11
- import { t as n } from "./jsx-runtime-CpBZ_Xu9.js";
12
- import { t as r } from "./react-dom-BYBThAht.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-D4pQUlUP.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-DlO0STw3.js";
15
- import { t as y } from "./classnames-DerROiP3.js";
9
+ import { r as e } from "./rolldown-runtime-DDajFMnr.js";
10
+ import { t } from "./react-C94g1dWf.js";
11
+ import { t as n } from "./jsx-runtime-CcqjcKRn.js";
12
+ import { t as r } from "./react-dom-VzzznUin.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-BJvbUFUw.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-BjWXGdvS.js";
15
+ import { t as y } from "./classnames-N7RelmSW.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_070bcfa32421a5876e7dcb93369fcbee/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.7.16" };
4
+ e.SENTRY_RELEASE = { id: "3.7.17" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "43912113-9328-4069-8890-5091c8745c34", e._sentryDebugIdIdentifier = "sentry-dbid-43912113-9328-4069-8890-5091c8745c34");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-BbFBHYUl.js";
10
- import { a as t, r as n } from "./reset-all-settings-BhzcLM6d.js";
11
- import { t as r } from "./jsx-runtime-CpBZ_Xu9.js";
12
- import "./settings-3mNrotnD.js";
13
- import { t as i } from "./browser-jkQElf_j.js";
14
- import { t as a } from "./add-debug-secret-listener-DjsOy3Gq.js";
9
+ import { r as e } from "./rolldown-runtime-DDajFMnr.js";
10
+ import { a as t, r as n } from "./reset-all-settings-Bs45R4UK.js";
11
+ import { t as r } from "./jsx-runtime-CcqjcKRn.js";
12
+ import "./settings-B89NEO7Z.js";
13
+ import { t as i } from "./browser-Dvk9Y0QP.js";
14
+ import { t as a } from "./add-debug-secret-listener-0zbOfR23.js";
15
15
  //#region ../debug/src/lib/ui/render-debug-ui.tsx
16
16
  var o = /* @__PURE__ */ e(i(), 1), s = r(), c = !1;
17
17
  function l() {
@@ -26,7 +26,7 @@ function l() {
26
26
  }
27
27
  });
28
28
  let i = async (t) => {
29
- let { DebugUi: n } = await import("./debug-ui-B1rCZ_20.js"), { createRoot: i } = await import("./client-Vh95j-4Q.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div");
29
+ let { DebugUi: n } = await import("./debug-ui-Dk4TQW1Q.js"), { createRoot: i } = await import("./client-B3oB_gzf.js").then((t) => /* @__PURE__ */ e(t.default, 1)), a = document.createElement("div");
30
30
  document.body.appendChild(a), i(a).render(/* @__PURE__ */ (0, s.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.7.16" };
4
+ e.SENTRY_RELEASE = { id: "3.7.17" };
5
5
  var t = new e.Error().stack;
6
6
  t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "d4febe97-784c-4cf8-93f1-f2e3b29f8347", e._sentryDebugIdIdentifier = "sentry-dbid-d4febe97-784c-4cf8-93f1-f2e3b29f8347");
7
7
  } catch {}
8
8
  })();
9
- import { r as e } from "./rolldown-runtime-BbFBHYUl.js";
10
- import { t } from "./react-CIU0fTyL.js";
11
- import { s as n } from "./store-CbkLKghg.js";
9
+ import { r as e } from "./rolldown-runtime-DDajFMnr.js";
10
+ import { t } from "./react-C94g1dWf.js";
11
+ import { s as n } from "./store-39MLQcdz.js";
12
12
  //#region src/utils/getRenderTargetFromRoot.ts
13
13
  var r = /* @__PURE__ */ e(t(), 1);
14
14
  function i(e) {
@@ -1,3 +1,17 @@
1
- /** Cost assigned to virtual (non-physical) route segments. Zero means virtual links are free (preferred by the pathfinder). */
2
- export declare const VIRTUAL_LINE_PENALTY = 0;
1
+ /**
2
+ * Default A* cost for a virtual (floor-transition) link. Non-zero so a floor
3
+ * change costs more than any same-floor detour; otherwise floor changes are free
4
+ * and a route between two points on one floor can detour through another.
5
+ */
6
+ export declare const VIRTUAL_LINE_PENALTY = 10000;
7
+ /**
8
+ * Fallback line weight when `line.weight` is 0 (meaning "not set" in floorplan data,
9
+ * not "free passage").
10
+ */
11
+ export declare const DEFAULT_LINE_WEIGHT = 4;
12
+ /**
13
+ * Multiplier applied to a graph edge cost whenever the route changes direction at a node
14
+ * (A* turn penalty).
15
+ */
16
+ export declare const TURN_PENALTY = 1.01;
3
17
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- export const VIRTUAL_LINE_PENALTY=0;
1
+ export const VIRTUAL_LINE_PENALTY=1e4,DEFAULT_LINE_WEIGHT=4,TURN_PENALTY=1.01;
@@ -1 +1 @@
1
- import{lineLength as r}from"simple-geometry";import{VIRTUAL_LINE_PENALTY as o}from"./constants";const L=4;export function linkCost(t){return t.virtual?t.virtualLength??o:r(t.p0,t.p1)/(t.weight||L)}
1
+ import{lineLength as r}from"simple-geometry";import{DEFAULT_LINE_WEIGHT as o,VIRTUAL_LINE_PENALTY as L}from"./constants";export function linkCost(t){return t.virtual?t.virtualLength??L:r(t.p0,t.p1)/(t.weight||o)}
@@ -1 +1 @@
1
- import{lineAngle as f}from"simple-geometry";import{buildNGraph as h}from"../buildNGraph";import y from"../utils/a-star/a-star";import{parseNodeId as l}from"./parseNodeId";const g=1.01;function x(){return function(n,e,t){let r=1;if(e.parent){const[,a,c]=l(e.parent.node.id),[,o,d]=l(e.node.id),[,s,u]=l(n.id),p=f({x:a,y:c},{x:o,y:d}),m=f({x:o,y:d},{x:s,y:u});p!==m&&(r=g)}return r*t.data.distance}}export function createAStarPathFinder(){let i=null,n=null;return{build(e,t){n=h(e,t),i=y(n,{oriented:t.oriented,distance:x()})},hasNode(e){return n?!!n.hasNode(e):!1},find(e,t){if(!i)return[];const r=i.find(e,t);return r.length?r.map(a=>{const[c,o,d]=l(a.id);return{id:a.id,layer:c,x:o,y:d}}):[]}}}
1
+ import{lineAngle as c}from"simple-geometry";import{buildNGraph as h}from"../buildNGraph";import{TURN_PENALTY as y}from"../constants";import g from"../utils/a-star/a-star";import{parseNodeId as f}from"./parseNodeId";function x(){return function(n,e,r){let t=1;if(e.parent){const[,a,l]=f(e.parent.node.id),[,o,d]=f(e.node.id),[,u,s]=f(n.id),p=c({x:a,y:l},{x:o,y:d}),m=c({x:o,y:d},{x:u,y:s});p!==m&&(t=y)}return t*r.data.distance}}export function createAStarPathFinder(){let i=null,n=null;return{build(e,r){n=h(e,r),i=g(n,{oriented:r.oriented,distance:x()})},hasNode(e){return n?!!n.hasNode(e):!1},find(e,r){if(!i)return[];const t=i.find(e,r);return t.length?t.map(a=>{const[l,o,d]=f(a.id);return{id:a.id,layer:l,x:o,y:d}}):[]}}}
@@ -23,8 +23,9 @@ export interface RouteLine {
23
23
  /**
24
24
  * Optional custom cost for virtual (floor-transition) links, configured
25
25
  * per-line in the designer as "Virtual length". When set, the pathfinder
26
- * uses this value instead of the default VIRTUAL_LINE_PENALTY (0), making
27
- * the transition less preferred so routes may stay on the same floor.
26
+ * uses this value instead of the default VIRTUAL_LINE_PENALTY, overriding it
27
+ * per line `0` makes the transition free (preferred), a large value makes
28
+ * it avoided. When unset, the non-zero default keeps routes on the same floor.
28
29
  */
29
30
  readonly virtualLength?: number;
30
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/floorplan",
3
- "version": "3.7.16",
3
+ "version": "3.7.17",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/expofp/efp-app.git",
@@ -73,8 +73,8 @@
73
73
  "tslib": "^2.3.0",
74
74
  "uuid": "^9.0.1",
75
75
  "zod": "4.3.5",
76
- "@expofp/debug": "3.7.16",
77
- "@expofp/resolve": "3.7.16"
76
+ "@expofp/debug": "3.7.17",
77
+ "@expofp/resolve": "3.7.17"
78
78
  },
79
79
  "devDependencies": {
80
80
  "@babel/plugin-proposal-decorators": "^8.0.2",