@expofp/floorplan 3.0.0-alpha.14 → 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.
- package/dist/browser/Debug-Bn7mmuWl.js +40 -0
- package/dist/browser/Demo-pwpeopeB.js +47 -0
- package/dist/browser/{Free-Dm2FRajw.js → Free-CeZSHheC.js} +29 -20
- package/dist/browser/Gallery-BTasOfWx.js +288 -0
- package/dist/browser/GpsLoader-BS8b-Aif.js +140 -0
- package/dist/browser/{KioskStore-Bvvm0aNQ.js → KioskStore-_Zcv0Bc0.js} +57 -48
- package/dist/browser/Mapbox-Cl59-8BN.js +118 -0
- package/dist/browser/{SetKioskMode-BecTBVRp.js → SetKioskMode-CjjAW8SI.js} +66 -57
- package/dist/browser/{ShowKiosk-C-6DHz7T.js → ShowKiosk-DUcthTIK.js} +28 -19
- package/dist/browser/{ThreeComponent-Brnrh22I.js → ThreeComponent-CdelmApV.js} +181 -172
- package/dist/browser/boolean-editor-HetrPeeC.js +157 -0
- package/dist/browser/bundle.json +29 -29
- package/dist/browser/{client-D3Op9Jdd.js → client-BMgLu7eB.js} +590 -581
- package/dist/browser/{data-0pZ-ZMEi.js → data-eO9H1gMa.js} +276 -267
- package/dist/browser/{debug-overlay-6c_tWF4O.js → debug-overlay-DqIeCuHo.js} +98 -89
- package/dist/browser/debug-ui-6t_iunMd.js +67 -0
- package/dist/browser/{favicon-DalyEhbd.js → favicon-CoF9H4Pb.js} +11 -2
- package/dist/browser/fetch-retry.umd-GcX1W9qV.js +123 -0
- package/dist/browser/{flex-OW_m-DBA.js → flex-BC_JSvaB.js} +80 -71
- package/dist/browser/{floorplan.ready-D-VQ-QvS.js → floorplan.ready-CZn5dvsU.js} +1011 -987
- package/dist/browser/index-C1Rwmp91.js +54 -0
- package/dist/browser/{index-BuJlIIdP.js → index-CEVUHq8g.js} +96 -87
- package/dist/browser/{index-BUq8_R36.js → index-Dba8EyWF.js} +41 -32
- package/dist/browser/{index-Zz9lJz5_.js → index-DnV82MKb.js} +296 -287
- package/dist/browser/index-Dp-WygGH.js +57 -0
- package/dist/browser/index-sNwIhVDZ.js +92 -0
- package/dist/browser/{index-AJbTBu7z.js → index-uGr-_9rk.js} +258 -249
- package/dist/browser/index.js +11 -2
- package/dist/browser/jsx-runtime-BHfPvO9I.js +40 -0
- package/dist/browser/{main-CD9JioNt.js → main-DYasSc7U.js} +24 -15
- package/dist/browser/{particles.min-BZTb0pvb.js → particles.min-B6O6_M_h.js} +43 -34
- package/package.json +4 -3
- package/dist/browser/Debug-Pul6-ZdY.js +0 -31
- package/dist/browser/Demo-DN_Ej-P_.js +0 -38
- package/dist/browser/Gallery-TLr-wfCG.js +0 -279
- package/dist/browser/GpsLoader-CeS0cp98.js +0 -131
- package/dist/browser/Mapbox-DizBJSb0.js +0 -109
- package/dist/browser/boolean-editor-Duwgypgb.js +0 -148
- package/dist/browser/debug-ui-TGRI1j4k.js +0 -58
- package/dist/browser/fetch-retry.umd-BZ52tMyv.js +0 -114
- package/dist/browser/index-B2YV6GNs.js +0 -48
- package/dist/browser/index-D0SjrKD-.js +0 -45
- package/dist/browser/index-Vc2rrV4B.js +0 -83
- package/dist/browser/jsx-runtime-jIxVPx5o.js +0 -31
package/dist/browser/index.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import { ak as
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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:
|
|
125
|
-
minimal:
|
|
126
|
-
horizontal:
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
249
|
-
|
|
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
|
-
|
|
347
|
-
let x =
|
|
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-
|
|
2
|
-
function
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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: () =>
|
|
20
|
+
get: () => p[a]
|
|
12
21
|
});
|
|
13
22
|
}
|
|
14
23
|
}
|
|
15
24
|
}
|
|
16
|
-
return Object.freeze(Object.defineProperty(
|
|
25
|
+
return Object.freeze(Object.defineProperty(c, Symbol.toStringTag, { value: "Module" }));
|
|
17
26
|
}
|
|
18
|
-
var
|
|
27
|
+
var y = { exports: {} }, v;
|
|
19
28
|
function S() {
|
|
20
|
-
return
|
|
21
|
-
var
|
|
22
|
-
var a,
|
|
23
|
-
function
|
|
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 :
|
|
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
|
|
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
|
|
85
|
-
o &&
|
|
93
|
+
var h = s[l];
|
|
94
|
+
o && h._draw(), h._updateCoordinates(n, i);
|
|
86
95
|
}
|
|
87
|
-
e.options.connectParticles && (s.sort(
|
|
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
|
|
90
|
-
var
|
|
91
|
-
if (
|
|
92
|
-
|
|
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
|
-
}, (
|
|
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 :
|
|
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
|
-
},
|
|
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
|
-
|
|
132
|
+
c.exports ? c.exports = f : window.Particles = f;
|
|
124
133
|
})();
|
|
125
|
-
})(
|
|
134
|
+
})(y)), y.exports;
|
|
126
135
|
}
|
|
127
|
-
var
|
|
128
|
-
const z = /* @__PURE__ */ k(
|
|
136
|
+
var b = S();
|
|
137
|
+
const z = /* @__PURE__ */ k(b), A = /* @__PURE__ */ w({
|
|
129
138
|
__proto__: null,
|
|
130
139
|
default: z
|
|
131
|
-
}, [
|
|
140
|
+
}, [b]);
|
|
132
141
|
export {
|
|
133
|
-
|
|
142
|
+
A as p
|
|
134
143
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@expofp/floorplan",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
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/resolve": "3.0.0-alpha.
|
|
83
|
-
"@expofp/debug": "3.0.0-alpha.
|
|
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-D-VQ-QvS.js";
|
|
4
|
-
import { u as l } from "./index-Zz9lJz5_.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-D0SjrKD-.js";
|
|
3
|
-
import { u as a, a as d, b as m, c } from "./floorplan.ready-D-VQ-QvS.js";
|
|
4
|
-
import { u as t } from "./index-Zz9lJz5_.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
|
-
};
|