@expofp/floorplan 3.0.0-alpha.13 → 3.0.0-alpha.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 (47) hide show
  1. package/dist/browser/Debug-Bn7mmuWl.js +40 -0
  2. package/dist/browser/Demo-pwpeopeB.js +47 -0
  3. package/dist/browser/{Free-Cf7Raqrc.js → Free-CeZSHheC.js} +29 -20
  4. package/dist/browser/Gallery-BTasOfWx.js +288 -0
  5. package/dist/browser/GpsLoader-BS8b-Aif.js +140 -0
  6. package/dist/browser/{KioskStore-D241RDzb.js → KioskStore-_Zcv0Bc0.js} +57 -48
  7. package/dist/browser/Mapbox-Cl59-8BN.js +118 -0
  8. package/dist/browser/{SetKioskMode-2rlj74Xn.js → SetKioskMode-CjjAW8SI.js} +66 -57
  9. package/dist/browser/{ShowKiosk-CrsnQU04.js → ShowKiosk-DUcthTIK.js} +28 -19
  10. package/dist/browser/{ThreeComponent-ClnfXUj7.js → ThreeComponent-CdelmApV.js} +181 -172
  11. package/dist/browser/boolean-editor-HetrPeeC.js +157 -0
  12. package/dist/browser/bundle.json +32 -29
  13. package/dist/browser/{client-CkzDfd_U.js → client-BMgLu7eB.js} +590 -581
  14. package/dist/browser/compat-helper.js +5 -0
  15. package/dist/browser/{data-m8n9ATTo.js → data-eO9H1gMa.js} +276 -267
  16. package/dist/browser/{debug-overlay-2jzTw6KL.js → debug-overlay-DqIeCuHo.js} +98 -89
  17. package/dist/browser/debug-ui-6t_iunMd.js +67 -0
  18. package/dist/browser/{favicon-DalyEhbd.js → favicon-CoF9H4Pb.js} +11 -2
  19. package/dist/browser/fetch-retry.umd-GcX1W9qV.js +123 -0
  20. package/dist/browser/{flex-Cdkjkshz.js → flex-BC_JSvaB.js} +80 -71
  21. package/dist/browser/{floorplan.ready-D6FqQD8c.js → floorplan.ready-CZn5dvsU.js} +1011 -987
  22. package/dist/browser/index-C1Rwmp91.js +54 -0
  23. package/dist/browser/{index-DSgSq67u.js → index-CEVUHq8g.js} +96 -87
  24. package/dist/browser/{index-CEmjMySn.js → index-Dba8EyWF.js} +41 -32
  25. package/dist/browser/{index-4ImEhZsQ.js → index-DnV82MKb.js} +936 -923
  26. package/dist/browser/index-Dp-WygGH.js +57 -0
  27. package/dist/browser/index-sNwIhVDZ.js +92 -0
  28. package/dist/browser/{index-DBHasqQ8.js → index-uGr-_9rk.js} +258 -249
  29. package/dist/browser/index.js +11 -2
  30. package/dist/browser/jsx-runtime-BHfPvO9I.js +40 -0
  31. package/dist/browser/{main-CD9JioNt.js → main-DYasSc7U.js} +24 -15
  32. package/dist/browser/{particles.min-7sD7ioDi.js → particles.min-B6O6_M_h.js} +43 -34
  33. package/dist/esm/load.d.ts +2 -0
  34. package/dist/esm/load.js +3 -3
  35. package/package.json +4 -3
  36. package/dist/browser/Debug-2YRpxyzp.js +0 -31
  37. package/dist/browser/Demo-BhvcgT41.js +0 -38
  38. package/dist/browser/Gallery-Dq_GR98t.js +0 -279
  39. package/dist/browser/GpsLoader-ChfXQOsy.js +0 -131
  40. package/dist/browser/Mapbox-DFHRWdCq.js +0 -109
  41. package/dist/browser/boolean-editor-D8wja-hk.js +0 -148
  42. package/dist/browser/debug-ui-YhK0Mf0Y.js +0 -58
  43. package/dist/browser/fetch-retry.umd-dyC72RhE.js +0 -114
  44. package/dist/browser/index-BKeGOpor.js +0 -48
  45. package/dist/browser/index-D153Iyx8.js +0 -45
  46. package/dist/browser/index-d52BKaOl.js +0 -83
  47. package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
@@ -1,4 +1,13 @@
1
- import { ak as r } from "./index-4ImEhZsQ.js";
1
+ import { ak as o } from "./index-DnV82MKb.js";
2
+ (function() {
3
+ try {
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.0.0-alpha.15" };
6
+ var d = new e.Error().stack;
7
+ d && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[d] = "866f8649-85cf-49cc-a842-5b610398d593", e._sentryDebugIdIdentifier = "sentry-dbid-866f8649-85cf-49cc-a842-5b610398d593");
8
+ } catch {
9
+ }
10
+ })();
2
11
  export {
3
- r as load
12
+ o as load
4
13
  };
@@ -0,0 +1,40 @@
1
+ (function() {
2
+ try {
3
+ var r = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ r.SENTRY_RELEASE = { id: "3.0.0-alpha.15" };
5
+ var a = new r.Error().stack;
6
+ a && (r._sentryDebugIds = r._sentryDebugIds || {}, r._sentryDebugIds[a] = "6aa5acce-bbae-4352-a6aa-9212ad4bd577", r._sentryDebugIdIdentifier = "sentry-dbid-6aa5acce-bbae-4352-a6aa-9212ad4bd577");
7
+ } catch {
8
+ }
9
+ })();
10
+ var d = { exports: {} }, n = {};
11
+ var o;
12
+ function x() {
13
+ if (o) return n;
14
+ o = 1;
15
+ var r = /* @__PURE__ */ Symbol.for("react.transitional.element"), a = /* @__PURE__ */ Symbol.for("react.fragment");
16
+ function s(f, e, t) {
17
+ var u = null;
18
+ if (t !== void 0 && (u = "" + t), e.key !== void 0 && (u = "" + e.key), "key" in e) {
19
+ t = {};
20
+ for (var i in e)
21
+ i !== "key" && (t[i] = e[i]);
22
+ } else t = e;
23
+ return e = t.ref, {
24
+ $$typeof: r,
25
+ type: f,
26
+ key: u,
27
+ ref: e !== void 0 ? e : null,
28
+ props: t
29
+ };
30
+ }
31
+ return n.Fragment = a, n.jsx = s, n.jsxs = s, n;
32
+ }
33
+ var l;
34
+ function R() {
35
+ return l || (l = 1, d.exports = x()), d.exports;
36
+ }
37
+ var p = R();
38
+ export {
39
+ p as j
40
+ };
@@ -1,4 +1,13 @@
1
- class c {
1
+ (function() {
2
+ try {
3
+ var o = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
4
+ o.SENTRY_RELEASE = { id: "3.0.0-alpha.15" };
5
+ var t = new o.Error().stack;
6
+ t && (o._sentryDebugIds = o._sentryDebugIds || {}, o._sentryDebugIds[t] = "7bb9c1f4-826f-44b2-80a8-3d0519897683", o._sentryDebugIdIdentifier = "sentry-dbid-7bb9c1f4-826f-44b2-80a8-3d0519897683");
7
+ } catch {
8
+ }
9
+ })();
10
+ class u {
2
11
  constructor(t, e, i) {
3
12
  this.id = 0, this.name = t, this.fg = e, this.bg = i, this.gradient = null, this.PR = Math.round(window.devicePixelRatio || 1), this.WIDTH = 90 * this.PR, this.HEIGHT = 48 * this.PR, this.TEXT_X = 3 * this.PR, this.TEXT_Y = 2 * this.PR, this.GRAPH_X = 3 * this.PR, this.GRAPH_Y = 15 * this.PR, this.GRAPH_WIDTH = 84 * this.PR, this.GRAPH_HEIGHT = 30 * this.PR, this.canvas = document.createElement("canvas"), this.canvas.width = this.WIDTH, this.canvas.height = this.HEIGHT, this.canvas.style.width = "90px", this.canvas.style.height = "48px", this.canvas.style.position = "absolute", this.canvas.style.cssText = "width:90px;height:48px;background-color: transparent !important;", this.context = this.canvas.getContext("2d"), this.initializeCanvas();
4
13
  }
@@ -80,7 +89,7 @@ class c {
80
89
  )), this.context.globalAlpha = 1;
81
90
  }
82
91
  }
83
- class T extends c {
92
+ class T extends u {
84
93
  constructor(t, e, i) {
85
94
  super(t, e, i), this.vsyncValue = 0, this.SMALL_HEIGHT = 9 * this.PR, this.HEIGHT = this.SMALL_HEIGHT, this.WIDTH = 35 * this.PR, this.TEXT_Y = 0 * this.PR, this.canvas.height = this.HEIGHT, this.canvas.width = this.WIDTH, this.canvas.style.height = "9px", this.canvas.style.width = "35px", this.canvas.style.cssText = `
86
95
  width: 35px;
@@ -111,7 +120,7 @@ class T extends c {
111
120
  this.canvas.style.transform = `translate(${t}px, ${e}px)`;
112
121
  }
113
122
  }
114
- const u = class l {
123
+ const f = class c {
115
124
  constructor({
116
125
  trackGPU: t = !1,
117
126
  trackCPT: e = !1,
@@ -121,9 +130,9 @@ const u = class l {
121
130
  graphsPerSecond: a = 30,
122
131
  samplesLog: n = 40,
123
132
  samplesGraph: r = 10,
124
- precision: o = 2,
125
- minimal: m = !1,
126
- horizontal: d = !0,
133
+ precision: l = 2,
134
+ minimal: d = !1,
135
+ horizontal: m = !0,
127
136
  mode: p = 0
128
137
  } = {}) {
129
138
  this.gl = null, this.ext = null, this.activeQuery = null, this.gpuQueries = [], this.threeRendererPatched = !1, this.frameTimes = [], this.renderCount = 0, this.totalCpuDuration = 0, this.totalGpuDuration = 0, this.totalGpuDurationCompute = 0, this.fpsPanel = null, this.msPanel = null, this.gpuPanel = null, this.gpuPanelCompute = null, this.vsyncPanel = null, this.averageFps = { logs: [], graph: [] }, this.averageCpu = { logs: [], graph: [] }, this.averageGpu = { logs: [], graph: [] }, this.averageGpuCompute = { logs: [], graph: [] }, this.updateCounter = 0, this.lastMin = {}, this.lastMax = {}, this.lastValue = {}, this.VSYNC_RATES = [
@@ -138,9 +147,9 @@ const u = class l {
138
147
  P.preventDefault(), this.showPanel(++this.mode % this.dom.children.length);
139
148
  }, this.handleResize = () => {
140
149
  this.fpsPanel && this.resizePanel(this.fpsPanel), this.msPanel && this.resizePanel(this.msPanel), this.gpuPanel && this.resizePanel(this.gpuPanel), this.gpuPanelCompute && this.resizePanel(this.gpuPanelCompute);
141
- }, this.mode = p, this.horizontal = d, this.minimal = m, this.trackGPU = t, this.trackCPT = e, this.trackHz = i, this.trackFPS = s, this.samplesLog = n, this.samplesGraph = r, this.precision = o, this.logsPerSecond = h, this.graphsPerSecond = a;
150
+ }, this.mode = p, this.horizontal = m, this.minimal = d, this.trackGPU = t, this.trackCPT = e, this.trackHz = i, this.trackFPS = s, this.samplesLog = n, this.samplesGraph = r, this.precision = l, this.logsPerSecond = h, this.graphsPerSecond = a;
142
151
  const g = performance.now();
143
- this.prevGraphTime = g, this.dom = document.createElement("div"), this.initializeDOM(), this.beginTime = performance.now(), this.prevTextTime = this.beginTime, this.prevCpuTime = this.beginTime, this._panelId = 0, this.trackFPS && (this.fpsPanel = this.addPanel(new l.Panel("FPS", "#0ff", "#002")), this.msPanel = this.addPanel(new l.Panel("CPU", "#0f0", "#020"))), this.trackHz === !0 && (this.vsyncPanel = new T("", "#f0f", "#202"), this.dom.appendChild(this.vsyncPanel.canvas), this.vsyncPanel.setOffset(56, 35)), this.setupEventListeners();
152
+ this.prevGraphTime = g, this.dom = document.createElement("div"), this.initializeDOM(), this.beginTime = performance.now(), this.prevTextTime = this.beginTime, this.prevCpuTime = this.beginTime, this._panelId = 0, this.trackFPS && (this.fpsPanel = this.addPanel(new c.Panel("FPS", "#0ff", "#002")), this.msPanel = this.addPanel(new c.Panel("CPU", "#0f0", "#020"))), this.trackHz === !0 && (this.vsyncPanel = new T("", "#f0f", "#202"), this.dom.appendChild(this.vsyncPanel.canvas), this.vsyncPanel.setOffset(56, 35)), this.setupEventListeners();
144
153
  }
145
154
  initializeDOM() {
146
155
  this.dom.style.cssText = `
@@ -174,7 +183,7 @@ const u = class l {
174
183
  return t.isWebGPURenderer ? ((this.trackGPU || this.trackCPT) && (t.backend.trackTimestamp = !0, t._initialized || await t.init(), t.hasFeature("timestamp-query") && this.initializeWebGPUPanels()), this.info = t.info, this.patchThreeWebGPU(t), !0) : !1;
175
184
  }
176
185
  initializeWebGPUPanels() {
177
- this.trackGPU && (this.gpuPanel = this.addPanel(new l.Panel("GPU", "#ff0", "#220"))), this.trackCPT && (this.gpuPanelCompute = this.addPanel(new l.Panel("CPT", "#e1e1e1", "#212121")));
186
+ this.trackGPU && (this.gpuPanel = this.addPanel(new c.Panel("GPU", "#ff0", "#220"))), this.trackCPT && (this.gpuPanelCompute = this.addPanel(new c.Panel("CPT", "#e1e1e1", "#212121")));
178
187
  }
179
188
  initializeWebGL(t) {
180
189
  if (t instanceof WebGL2RenderingContext)
@@ -189,7 +198,7 @@ const u = class l {
189
198
  return !0;
190
199
  }
191
200
  initializeGPUTracking() {
192
- this.gl && (this.ext = this.gl.getExtension("EXT_disjoint_timer_query_webgl2"), this.ext && (this.gpuPanel = this.addPanel(new l.Panel("GPU", "#ff0", "#220"))));
201
+ this.gl && (this.ext = this.gl.getExtension("EXT_disjoint_timer_query_webgl2"), this.ext && (this.gpuPanel = this.addPanel(new c.Panel("GPU", "#ff0", "#220"))));
193
202
  }
194
203
  begin() {
195
204
  this.beginProfiling("cpu-started"), !(!this.gl || !this.ext) && (this.activeQuery && this.gl.endQuery(this.ext.TIME_ELAPSED_EXT), this.activeQuery = this.gl.createQuery(), this.activeQuery && this.gl.beginQuery(this.ext.TIME_ELAPSED_EXT, this.activeQuery));
@@ -238,15 +247,15 @@ const u = class l {
238
247
  const e = t - this.lastFrameTime;
239
248
  if (this.lastFrameTime = t, this.frameTimeHistory.push(e), this.frameTimeHistory.length > this.HISTORY_SIZE && this.frameTimeHistory.shift(), this.frameTimeHistory.length < 60)
240
249
  return;
241
- const i = this.frameTimeHistory.reduce((r, o) => r + o) / this.frameTimeHistory.length, s = this.frameTimeHistory.reduce((r, o) => r + Math.pow(o - i, 2), 0) / this.frameTimeHistory.length;
250
+ const i = this.frameTimeHistory.reduce((r, l) => r + l) / this.frameTimeHistory.length, s = this.frameTimeHistory.reduce((r, l) => r + Math.pow(l - i, 2), 0) / this.frameTimeHistory.length;
242
251
  if (Math.sqrt(s) > 2) {
243
252
  this.detectedVSync = null;
244
253
  return;
245
254
  }
246
255
  let a = null, n = 1 / 0;
247
256
  for (const r of this.VSYNC_RATES) {
248
- const o = Math.abs(i - r.frameTime);
249
- o < n && (n = o, a = r);
257
+ const l = Math.abs(i - r.frameTime);
258
+ l < n && (n = l, a = r);
250
259
  }
251
260
  a && n / a.frameTime <= this.VSYNC_THRESHOLD ? this.detectedVSync = a : this.detectedVSync = null;
252
261
  }
@@ -343,8 +352,8 @@ const u = class l {
343
352
  }, this.threeRendererPatched = !0;
344
353
  }
345
354
  };
346
- u.Panel = c;
347
- let x = u;
355
+ f.Panel = u;
356
+ let x = f;
348
357
  export {
349
358
  x as default
350
359
  };
@@ -1,26 +1,35 @@
1
- import { f as k } from "./index-4ImEhZsQ.js";
2
- function w(p, u) {
3
- for (var r = 0; r < u.length; r++) {
4
- const c = u[r];
5
- if (typeof c != "string" && !Array.isArray(c)) {
6
- for (const a in c)
7
- if (a !== "default" && !(a in p)) {
8
- const f = Object.getOwnPropertyDescriptor(c, a);
9
- f && Object.defineProperty(p, a, f.get ? f : {
1
+ import { f as k } from "./index-DnV82MKb.js";
2
+ (function() {
3
+ try {
4
+ var c = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
5
+ c.SENTRY_RELEASE = { id: "3.0.0-alpha.15" };
6
+ var f = new c.Error().stack;
7
+ f && (c._sentryDebugIds = c._sentryDebugIds || {}, c._sentryDebugIds[f] = "ef591c59-97a6-4332-bfff-833fac589b5b", c._sentryDebugIdIdentifier = "sentry-dbid-ef591c59-97a6-4332-bfff-833fac589b5b");
8
+ } catch {
9
+ }
10
+ })();
11
+ function w(c, f) {
12
+ for (var r = 0; r < f.length; r++) {
13
+ const p = f[r];
14
+ if (typeof p != "string" && !Array.isArray(p)) {
15
+ for (const a in p)
16
+ if (a !== "default" && !(a in c)) {
17
+ const u = Object.getOwnPropertyDescriptor(p, a);
18
+ u && Object.defineProperty(c, a, u.get ? u : {
10
19
  enumerable: !0,
11
- get: () => c[a]
20
+ get: () => p[a]
12
21
  });
13
22
  }
14
23
  }
15
24
  }
16
- return Object.freeze(Object.defineProperty(p, Symbol.toStringTag, { value: "Module" }));
25
+ return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
17
26
  }
18
- var _ = { exports: {} }, y;
27
+ var y = { exports: {} }, v;
19
28
  function S() {
20
- return y || (y = 1, (function(p) {
21
- var u = (function(r, c) {
22
- var a, f = {};
23
- function b(e, t) {
29
+ return v || (v = 1, (function(c) {
30
+ var f = (function(r, p) {
31
+ var a, u = {};
32
+ function P(e, t) {
24
33
  return e.x < t.x ? -1 : e.x > t.x ? 1 : e.y < t.y ? -1 : e.y > t.y ? 1 : 0;
25
34
  }
26
35
  return (a = function() {
@@ -35,7 +44,7 @@ function S() {
35
44
  }, a.prototype._initializeCanvas = function() {
36
45
  var e, t, n = this;
37
46
  if (!n.options.selector) return console.warn("particles.js: No selector specified! Check https://github.com/marcbruederlin/particles.js#options"), !1;
38
- n.element = n.options.selector.tagName ? n.options.selector : c.querySelector(n.options.selector), n.context = n.element.getContext("2d"), e = r.devicePixelRatio || 1, t = n.context.webkitBackingStorePixelRatio || n.context.mozBackingStorePixelRatio || n.context.msBackingStorePixelRatio || n.context.oBackingStorePixelRatio || n.context.backingStorePixelRatio || 1, n.ratio = e / t, n.element.width = n.element.offsetParent ? n.element.offsetParent.clientWidth * n.ratio : n.element.clientWidth * n.ratio, n.element.offsetParent && n.element.offsetParent.nodeName === "BODY" ? n.element.height = r.innerHeight * n.ratio : n.element.height = n.element.offsetParent ? n.element.offsetParent.clientHeight * n.ratio : n.element.clientHeight * n.ratio, n.element.style.width = "100%", n.element.style.height = "100%", n.context.scale(n.ratio, n.ratio);
47
+ n.element = n.options.selector.tagName ? n.options.selector : p.querySelector(n.options.selector), n.context = n.element.getContext("2d"), e = r.devicePixelRatio || 1, t = n.context.webkitBackingStorePixelRatio || n.context.mozBackingStorePixelRatio || n.context.msBackingStorePixelRatio || n.context.oBackingStorePixelRatio || n.context.backingStorePixelRatio || 1, n.ratio = e / t, n.element.width = n.element.offsetParent ? n.element.offsetParent.clientWidth * n.ratio : n.element.clientWidth * n.ratio, n.element.offsetParent && n.element.offsetParent.nodeName === "BODY" ? n.element.height = r.innerHeight * n.ratio : n.element.height = n.element.offsetParent ? n.element.offsetParent.clientHeight * n.ratio : n.element.clientHeight * n.ratio, n.element.style.width = "100%", n.element.style.height = "100%", n.context.scale(n.ratio, n.ratio);
39
48
  }, a.prototype._initializeEvents = function() {
40
49
  var e = this;
41
50
  e.listener = (function() {
@@ -44,7 +53,7 @@ function S() {
44
53
  }, a.prototype._initializeStorage = function() {
45
54
  var e = this;
46
55
  e.storage = [];
47
- for (var t = e.options.maxParticles; t--; ) e.storage.push(new f(e.context, e.options));
56
+ for (var t = e.options.maxParticles; t--; ) e.storage.push(new u(e.context, e.options));
48
57
  }, a.prototype._registerBreakpoints = function() {
49
58
  var e, t, n, i = this, o = i.options.responsive || null;
50
59
  if (typeof o == "object" && o !== null && o.length) {
@@ -81,15 +90,15 @@ function S() {
81
90
  var e = this, t = e.element, n = t.offsetParent ? t.offsetParent.clientWidth : t.clientWidth, i = t.offsetParent ? t.offsetParent.clientHeight : t.clientHeight, o = e.options.showParticles, s = e.storage;
82
91
  t.offsetParent && t.offsetParent.nodeName === "BODY" && (i = r.innerHeight), e.context.clearRect(0, 0, t.width, t.height), e.context.beginPath();
83
92
  for (var l = s.length; l--; ) {
84
- var m = s[l];
85
- o && m._draw(), m._updateCoordinates(n, i);
93
+ var h = s[l];
94
+ o && h._draw(), h._updateCoordinates(n, i);
86
95
  }
87
- e.options.connectParticles && (s.sort(b), e._updateEdges());
96
+ e.options.connectParticles && (s.sort(P), e._updateEdges());
88
97
  }, a.prototype._updateEdges = function() {
89
- for (var e = this, t = e.options.minDistance, n = Math.sqrt, i = Math.abs, o = e.storage, s = o.length, l = 0; l < s; l++) for (var m = o[l], h = l + 1; h < s; h++) {
90
- var g, d = o[h], x = m.x - d.x, v = m.y - d.y;
91
- if (g = n(x * x + v * v), i(x) > t) break;
92
- g <= t && e._drawEdge(m, d, 1.2 - g / t);
98
+ for (var e = this, t = e.options.minDistance, n = Math.sqrt, i = Math.abs, o = e.storage, s = o.length, l = 0; l < s; l++) for (var h = o[l], m = l + 1; m < s; m++) {
99
+ var d, g = o[m], x = h.x - g.x, _ = h.y - g.y;
100
+ if (d = n(x * x + _ * _), i(x) > t) break;
101
+ d <= t && e._drawEdge(h, g, 1.2 - d / t);
93
102
  }
94
103
  }, a.prototype._drawEdge = function(e, t, n) {
95
104
  var i = this, o = i.context.createLinearGradient(e.x, e.y, t.x, t.y), s = this._hex2rgb(e.color), l = this._hex2rgb(t.color);
@@ -101,15 +110,15 @@ function S() {
101
110
  }, a.prototype._hex2rgb = function(e) {
102
111
  var t = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);
103
112
  return t ? { r: parseInt(t[1], 16), g: parseInt(t[2], 16), b: parseInt(t[3], 16) } : null;
104
- }, (f = function(e, t) {
113
+ }, (u = function(e, t) {
105
114
  var n = this, i = Math.random, o = t.speed, s = t.color instanceof Array ? t.color[Math.floor(Math.random() * t.color.length)] : t.color;
106
115
  n.context = e;
107
- var l = (n.options = t).selector.tagName ? t.selector : c.querySelector(t.selector);
116
+ var l = (n.options = t).selector.tagName ? t.selector : p.querySelector(t.selector);
108
117
  n.x = l.offsetParent ? i() * l.offsetParent.clientWidth : i() * l.clientWidth, l.offsetParent && l.offsetParent.nodeName === "BODY" ? n.y = i() * r.innerHeight : n.y = l.offsetParent ? i() * l.offsetParent.clientHeight : i() * l.clientHeight, n.vx = i() * o * 2 - o, n.vy = i() * o * 2 - o, n.radius = i() * i() * t.sizeVariations, n.color = s, n._draw();
109
118
  }).prototype._draw = function() {
110
119
  var e = this;
111
120
  e.context.save(), e.context.translate(e.x, e.y), e.context.moveTo(0, 0), e.context.beginPath(), e.context.arc(0, 0, e.radius, 0, 2 * Math.PI, !1), e.context.fillStyle = e.color, e.context.fill(), e.context.restore();
112
- }, f.prototype._updateCoordinates = function(e, t) {
121
+ }, u.prototype._updateCoordinates = function(e, t) {
113
122
  var n = this, i = n.x + this.vx, o = n.y + this.vy, s = n.radius;
114
123
  e < i + s ? i = s : i - s < 0 && (i = e - s), t < o + s ? o = s : o - s < 0 && (o = t - s), n.x = i, n.y = o;
115
124
  }, r.requestAnimFrame = (function() {
@@ -120,15 +129,15 @@ function S() {
120
129
  })(), new a();
121
130
  })(window, document);
122
131
  (function() {
123
- p.exports ? p.exports = u : window.Particles = u;
132
+ c.exports ? c.exports = f : window.Particles = f;
124
133
  })();
125
- })(_)), _.exports;
134
+ })(y)), y.exports;
126
135
  }
127
- var P = S();
128
- const z = /* @__PURE__ */ k(P), B = /* @__PURE__ */ w({
136
+ var b = S();
137
+ const z = /* @__PURE__ */ k(b), A = /* @__PURE__ */ w({
129
138
  __proto__: null,
130
139
  default: z
131
- }, [P]);
140
+ }, [b]);
132
141
  export {
133
- B as p
142
+ A as p
134
143
  };
@@ -6,6 +6,8 @@ declare global {
6
6
  interface Window {
7
7
  /** @deprecated */
8
8
  ___fp?: FloorPlan;
9
+ /** @deprecated temporary placeholder for async initialization in iOS/Android SDK */
10
+ ___fpResolve?: (fp: FloorPlan) => void;
9
11
  }
10
12
  }
11
13
  //# sourceMappingURL=load.d.ts.map
package/dist/esm/load.js CHANGED
@@ -1,4 +1,4 @@
1
- import{resolve as c}from"@expofp/resolve";import m from"debug";import{initHtmlHead as p}from"./_misc_to_move/initHtmlHead";import{logBuildInfo as h}from"./_misc_to_move/logBuildInfoImpl";import u from"./floorplan.loader";const d=m("efp:load");export async function load(s,t){p(),h();const n={...await c(s),...t},r=n.element;let o;if(typeof r=="string"){const a=document.querySelector(r);if(!a)throw new Error(`Element not found for selector: ${r}`);o=a}else r?o=r:(o=document.getElementById("floorplan"),o||(o=document.createElement("div"),y(o),document.body.appendChild(o)));const e=o.style;e.width=e.width||"100vw",e.height=e.height||"100vh",e.position=e.position||"fixed",e.touchAction=e.touchAction||"none",e.background=e.background||"#fff",e.transition=e.transition||"background-color 2s ease",e.overflow=e.overflow||"hidden",requestAnimationFrame(()=>{e.backgroundColor="#ebebeb"});const f=n.legacyDataUrlBase;if(d("legacyDataUrlBase",f),n.legacyDataVersion)try{const{version:a}=await c(n.legacyDataVersion);globalThis.__fpDataVersion=a}catch{d("Could not resolve version")}const l=new u({...n,element:o});return window.___fp=l,import("@expofp/debug").then(({initDebug:a})=>a()).catch(()=>{}),l}function y(s){if(!document.adoptedStyleSheets)return;const t="efp-runtime-loader-spinner",i=`
1
+ import{resolve as c}from"@expofp/resolve";import p from"debug";import{initHtmlHead as h}from"./_misc_to_move/initHtmlHead";import{logBuildInfo as y}from"./_misc_to_move/logBuildInfoImpl";import u from"./floorplan.loader";const f=p("efp:load");export async function load(i,t){h(),y();const n={...await c(i),...t},r=n.element;let o;if(typeof r=="string"){const s=document.querySelector(r);if(!s)throw new Error(`Element not found for selector: ${r}`);o=s}else r?o=r:(o=document.getElementById("floorplan"),o||(o=document.createElement("div"),v(o),document.body.appendChild(o)));const e=o.style;e.width=e.width||"100vw",e.height=e.height||"100vh",e.position=e.position||"fixed",e.touchAction=e.touchAction||"none",e.background=e.background||"#fff",e.transition=e.transition||"background-color 2s ease",e.overflow=e.overflow||"hidden",requestAnimationFrame(()=>{e.backgroundColor="#ebebeb"});const m=n.legacyDataUrlBase;if(f("legacyDataUrlBase",m),n.legacyDataVersion)try{const{version:s}=await c(n.legacyDataVersion);globalThis.__fpDataVersion=s}catch{f("Could not resolve version")}const a=new u({...n,element:o}),d=window.___fpResolve;return window.___fp=a,d&&(a.ready.then(()=>d(a)),delete window.___fpResolve),a.ready.then(()=>window.dispatchEvent(new CustomEvent("expofp:ready",{detail:{floorplan:a}}))),import("@expofp/debug").then(({initDebug:s})=>s()).catch(()=>{}),a}function v(i){if(!document.adoptedStyleSheets)return;const t="efp-runtime-loader-spinner",l=`
2
2
  .${t} {
3
3
  position: fixed;
4
4
  top: 50%;
@@ -49,8 +49,8 @@ import{resolve as c}from"@expofp/resolve";import m from"debug";import{initHtmlHe
49
49
  100% {
50
50
  stroke-dashoffset: -125px;
51
51
  }
52
- }`,n=new CSSStyleSheet;n.replaceSync(i),document.adoptedStyleSheets=[...document.adoptedStyleSheets,n],s.innerHTML=`<div class="${t}">
52
+ }`,n=new CSSStyleSheet;n.replaceSync(l),document.adoptedStyleSheets=[...document.adoptedStyleSheets,n],i.innerHTML=`<div class="${t}">
53
53
  <svg viewBox="25 25 50 50">
54
54
  <circle r="20" cy="50" cx="50"></circle>
55
55
  </svg>
56
- </div>`,requestAnimationFrame(()=>{const r=s.querySelector(`.${t}`);r.style.opacity="1"})}
56
+ </div>`,requestAnimationFrame(()=>{const r=i.querySelector(`.${t}`);r.style.opacity="1"})}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expofp/floorplan",
3
- "version": "3.0.0-alpha.13",
3
+ "version": "3.0.0-alpha.15",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/expofp/efp-app.git",
@@ -79,12 +79,13 @@
79
79
  "twgl.js": "^4.14.0",
80
80
  "uuid": "^9.0.1",
81
81
  "zod": "4.3.5",
82
- "@expofp/debug": "3.0.0-alpha.13",
83
- "@expofp/resolve": "3.0.0-alpha.13"
82
+ "@expofp/resolve": "3.0.0-alpha.15",
83
+ "@expofp/debug": "3.0.0-alpha.15"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@babel/plugin-proposal-decorators": "^7.29.0",
87
87
  "@babel/plugin-transform-class-properties": "^7.28.6",
88
+ "@sentry/vite-plugin": "5.1.1",
88
89
  "@types/d3": "^7.1.0",
89
90
  "@types/lz-string": "1.3.32",
90
91
  "@types/mapbox-gl": "^2.6.3",
@@ -1,31 +0,0 @@
1
- function __vite_inject_css__(css, id, nonce){ if (typeof document==='undefined') return; var s=document.createElement('style'); s.setAttribute('data-vite-chunk-style', id); s.appendChild(document.createTextNode(css)); document.head.appendChild(s);}
2
- import { j as a } from "./jsx-runtime-jIxVPx5o.js";
3
- import { c as n, a as t, s as i } from "./floorplan.ready-D6FqQD8c.js";
4
- import { u as l } from "./index-4ImEhZsQ.js";
5
- const e = [];
6
- function u() {
7
- const r = e.map((s) => s.width * s.height).reduce((s, c) => s += c, 0), o = e.map((s) => /* @__PURE__ */ a.jsxs("div", { className: "debug__canvas", id: s.toDataURL(), children: [
8
- s.width,
9
- "x",
10
- s.height,
11
- "=",
12
- s.width * s.height,
13
- /* @__PURE__ */ a.jsx("br", {}),
14
- /* @__PURE__ */ a.jsx("img", { src: s.toDataURL(), alt: "", crossOrigin: "anonymous" })
15
- ] }, s.toDataURL()));
16
- return /* @__PURE__ */ a.jsxs("div", { className: "debug", children: [
17
- /* @__PURE__ */ a.jsx("button", { onClick: () => i.searchStore.selectSearch(""), children: l("Close") }),
18
- /* @__PURE__ */ a.jsxs("div", { children: [
19
- "Total square: ",
20
- r
21
- ] }),
22
- o
23
- ] });
24
- }
25
- const g = () => n(() => /* @__PURE__ */ a.jsx(a.Fragment, { children: t.list.type === "search" && t.list.text === "q1" ? /* @__PURE__ */ a.jsx(u, {}) : null }));
26
- export {
27
- g as default
28
- };
29
-
30
- ;/* vite-per-chunk-css */
31
- __vite_inject_css__(".debug{position:fixed;top:1rem;left:1vw;z-index:999;width:calc(100vw - 2rem);height:calc(100vh - 2rem);padding:1rem;overflow:scroll;background:var(--color-white);box-shadow:0 0 1rem #00000080}.debug label{display:block;font-weight:var(--font-weight-bold)}.debug__canvas{display:inline-block;padding:2px;vertical-align:top}.debug__canvas>img{background:var(--color-gray-300)}\n/*$vite$:1*/", "Debug.css", undefined);
@@ -1,38 +0,0 @@
1
- import { j as e } from "./jsx-runtime-jIxVPx5o.js";
2
- import { y as n } from "./index-D153Iyx8.js";
3
- import { u as a, a as d, b as m, c } from "./floorplan.ready-D6FqQD8c.js";
4
- import { u as t } from "./index-4ImEhZsQ.js";
5
- const r = "note-dismissed5";
6
- function f() {
7
- const s = a(() => ({
8
- hidden: !0,
9
- get top() {
10
- return d.screenSize.width <= 820;
11
- },
12
- get classes() {
13
- return n({
14
- demo: !0,
15
- top: this.top,
16
- hidden: this.hidden
17
- });
18
- }
19
- }));
20
- return m(() => {
21
- sessionStorage.getItem(r) || window.setTimeout(() => {
22
- s.hidden = !1;
23
- }, 2e3);
24
- }), c(() => /* @__PURE__ */ e.jsx("div", { className: s.classes, children: /* @__PURE__ */ e.jsxs("section", { children: [
25
- /* @__PURE__ */ e.jsx("div", { className: "demo__message", children: /* @__PURE__ */ e.jsxs("span", { children: [
26
- t("Get your free floor plan at"),
27
- " ",
28
- /* @__PURE__ */ e.jsx("a", { href: "https://expofp.com/", target: "_blank", rel: "noopener noreferrer", children: "ExpoFP.com" })
29
- ] }) }),
30
- /* @__PURE__ */ e.jsx("a", { href: "/", onClick: o, className: "demo__dismiss", children: t("Dismiss") })
31
- ] }) }));
32
- function o(i) {
33
- i.preventDefault(), s.hidden = !0, sessionStorage.setItem(r, "1");
34
- }
35
- }
36
- export {
37
- f as default
38
- };