@shopware-ag/dive 2.2.4 → 2.2.6
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/build/chunks/{AssetCache-BQFuZyej.mjs → AssetCache-3ouLCwG8.mjs} +1 -1
- package/build/chunks/{AssetCache-BNppFVgO.cjs → AssetCache-DhgU13Qu.cjs} +1 -1
- package/build/chunks/{AssetLoader-E2Xdqd44.mjs → AssetLoader-MNABEWSP.mjs} +2 -2
- package/build/chunks/{AssetLoader-rt-Pr_wb.cjs → AssetLoader-Y1WUrflq.cjs} +1 -1
- package/build/chunks/AxisHelperColors-BrGqktN5.cjs +1 -0
- package/build/chunks/AxisHelperColors-JLBHYQDi.mjs +9 -0
- package/build/chunks/{FileTypes-C6ZTNzXM.mjs → FileTypes-B5EJOgeX.mjs} +172 -221
- package/build/chunks/FileTypes-CsaIrcSz.cjs +29 -0
- package/build/chunks/{SelectTool-B6qvhxVy.mjs → SelectTool-BrK1C-h9.mjs} +14 -13
- package/build/chunks/SelectTool-COXzVZGs.cjs +1 -0
- package/build/dive.cjs +1 -1
- package/build/dive.mjs +61 -60
- package/build/engine/Dive.d.ts +1 -1
- package/build/plugins/ar/index.cjs +1 -1
- package/build/plugins/ar/index.mjs +1 -1
- package/build/plugins/assetcache/index.cjs +1 -1
- package/build/plugins/assetcache/index.mjs +1 -1
- package/build/plugins/assetloader/index.cjs +1 -1
- package/build/plugins/assetloader/index.mjs +1 -1
- package/build/plugins/orbitcontroller/index.cjs +1 -1
- package/build/plugins/orbitcontroller/index.mjs +1 -1
- package/build/plugins/orientationdisplay/index.cjs +1 -1
- package/build/plugins/orientationdisplay/index.mjs +54 -3
- package/build/plugins/quickview/index.cjs +1 -1
- package/build/plugins/quickview/index.mjs +6 -6
- package/build/plugins/state/index.cjs +1 -1
- package/build/plugins/state/index.mjs +2 -2
- package/build/plugins/toolbox/index.cjs +1 -1
- package/build/plugins/toolbox/index.mjs +2 -2
- package/package.json +1 -1
- package/build/chunks/FileTypes-CXhRE6Gs.cjs +0 -29
- package/build/chunks/SelectTool-L7SsQpDR.cjs +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var i = (o, s, t) =>
|
|
4
|
-
import { WebGLRenderer as
|
|
5
|
-
import { P as
|
|
6
|
-
|
|
7
|
-
class Mt {
|
|
1
|
+
var q = Object.defineProperty;
|
|
2
|
+
var K = (o, s, t) => s in o ? q(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
|
|
3
|
+
var i = (o, s, t) => K(o, typeof s != "symbol" ? s + "" : s, t);
|
|
4
|
+
import { WebGLRenderer as Q, PCFSoftShadowMap as J, PCFShadowMap as $, BasicShadowMap as j, MathUtils as k, Object3D as _, AmbientLight as tt, PointLight as et, SphereGeometry as x, MeshBasicMaterial as F, FrontSide as U, Mesh as v, HemisphereLight as it, DirectionalLight as st, Vector3 as h, Box3 as g, Quaternion as I, Box3Helper as at, Sphere as nt, MeshStandardMaterial as R, Raycaster as rt, CylinderGeometry as ot, BufferGeometry as Y, BufferAttribute as C, BoxGeometry as L, ConeGeometry as ht, LineDashedMaterial as lt, Line as dt, PlaneGeometry as ct, Color as P, GridHelper as ut, Scene as pt, TOUCH as m, MOUSE as p, EventDispatcher as mt, Spherical as O, Vector2 as c } from "three";
|
|
5
|
+
import { P as f, U as ft, H as gt, a as _t, D as z } from "./PerspectiveCamera-BFzE2TQU.mjs";
|
|
6
|
+
class wt {
|
|
8
7
|
constructor() {
|
|
9
8
|
i(this, "isDIVEClock", !0);
|
|
10
9
|
i(this, "_lastTime", 0);
|
|
@@ -36,7 +35,7 @@ class Mt {
|
|
|
36
35
|
this._lastTime = s, this._tickers.forEach((e) => e.tick(t)), requestAnimationFrame(this._tick.bind(this));
|
|
37
36
|
}
|
|
38
37
|
}
|
|
39
|
-
const
|
|
38
|
+
const W = {
|
|
40
39
|
canvas: void 0,
|
|
41
40
|
antialias: !0,
|
|
42
41
|
alpha: !0,
|
|
@@ -48,13 +47,13 @@ const Z = {
|
|
|
48
47
|
shadows: !0,
|
|
49
48
|
shadowQuality: "high"
|
|
50
49
|
};
|
|
51
|
-
class
|
|
50
|
+
class H {
|
|
52
51
|
constructor(s, t, e) {
|
|
53
52
|
i(this, "isDIVERenderer", !0);
|
|
54
53
|
i(this, "_webglrenderer");
|
|
55
54
|
i(this, "_settings");
|
|
56
55
|
this._scene = s, this._camera = t, this._settings = {
|
|
57
|
-
...
|
|
56
|
+
...W,
|
|
58
57
|
...e ?? {}
|
|
59
58
|
}, this._webglrenderer = this._createWebGLRenderer();
|
|
60
59
|
}
|
|
@@ -77,12 +76,12 @@ class N {
|
|
|
77
76
|
this._webglrenderer.dispose(), this._settings.canvas = s, this._webglrenderer = this._createWebGLRenderer();
|
|
78
77
|
}
|
|
79
78
|
_createWebGLRenderer() {
|
|
80
|
-
const s = new
|
|
81
|
-
return s.shadowMap.enabled = this._settings.shadows, s.shadowMap.type = this._settings.shadowQuality === "high" ?
|
|
79
|
+
const s = new Q(this._settings);
|
|
80
|
+
return s.shadowMap.enabled = this._settings.shadows, s.shadowMap.type = this._settings.shadowQuality === "high" ? J : this._settings.shadowQuality === "medium" ? $ : j, s.setPixelRatio(window.devicePixelRatio), s;
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
|
-
const
|
|
85
|
-
class
|
|
83
|
+
const Gt = H;
|
|
84
|
+
class yt {
|
|
86
85
|
constructor(s, t) {
|
|
87
86
|
i(this, "isDIVEResizeManager", !0);
|
|
88
87
|
i(this, "_resizeObserver");
|
|
@@ -90,13 +89,13 @@ class Lt {
|
|
|
90
89
|
i(this, "_height", 0);
|
|
91
90
|
this._renderer = s, this._camera = t, this._resizeObserver = new ResizeObserver((e) => {
|
|
92
91
|
const a = e[0], { width: n, height: r } = a.contentRect;
|
|
93
|
-
n === this._width && r === this._height || (this.
|
|
92
|
+
n === this._width && r === this._height || (this._camera.onResize(n, r), this._renderer.onResize(n, r), this._width = n, this._height = r, this._renderer.render());
|
|
94
93
|
}), this._observeCanvas(this._renderer.canvas);
|
|
95
94
|
}
|
|
96
95
|
setCanvas(s) {
|
|
97
96
|
this._resizeObserver.disconnect(), this._observeCanvas(s);
|
|
98
97
|
const { width: t, height: e } = s.getBoundingClientRect();
|
|
99
|
-
this.
|
|
98
|
+
this._camera.onResize(t, e), this._renderer.onResize(t, e), this._width = t, this._height = e, this._renderer.render();
|
|
100
99
|
}
|
|
101
100
|
dispose() {
|
|
102
101
|
this._resizeObserver.disconnect();
|
|
@@ -111,18 +110,18 @@ class Lt {
|
|
|
111
110
|
}
|
|
112
111
|
}
|
|
113
112
|
}
|
|
114
|
-
class
|
|
113
|
+
class B {
|
|
115
114
|
constructor(s, t, e) {
|
|
116
115
|
i(this, "isDIVEView", !0);
|
|
117
|
-
i(this, "uuid",
|
|
116
|
+
i(this, "uuid", k.generateUUID());
|
|
118
117
|
i(this, "_paused", !1);
|
|
119
118
|
i(this, "_renderer");
|
|
120
119
|
i(this, "_resizeManager");
|
|
121
|
-
this._scene = s, this._camera = t, this._settings = e, this._renderer = new
|
|
120
|
+
this._scene = s, this._camera = t, this._settings = e, this._renderer = new H(
|
|
122
121
|
this._scene,
|
|
123
122
|
this._camera,
|
|
124
123
|
this._settings
|
|
125
|
-
), this._resizeManager = new
|
|
124
|
+
), this._resizeManager = new yt(
|
|
126
125
|
this._renderer,
|
|
127
126
|
this._camera
|
|
128
127
|
);
|
|
@@ -159,14 +158,14 @@ class F {
|
|
|
159
158
|
this._paused = !1;
|
|
160
159
|
}
|
|
161
160
|
}
|
|
162
|
-
class
|
|
161
|
+
class bt extends _ {
|
|
163
162
|
constructor() {
|
|
164
163
|
super();
|
|
165
164
|
i(this, "isDIVELight", !0);
|
|
166
165
|
i(this, "isDIVEAmbientLight", !0);
|
|
167
166
|
i(this, "isSelectable", !0);
|
|
168
167
|
i(this, "_light");
|
|
169
|
-
this.name = "DIVEAmbientLight", this._light = new
|
|
168
|
+
this.name = "DIVEAmbientLight", this._light = new tt(16777215, 1), this._light.layers.mask = f, this.add(this._light);
|
|
170
169
|
}
|
|
171
170
|
setColor(t) {
|
|
172
171
|
this._light.color = t;
|
|
@@ -178,7 +177,7 @@ class It extends f {
|
|
|
178
177
|
this._light.visible = t;
|
|
179
178
|
}
|
|
180
179
|
}
|
|
181
|
-
class
|
|
180
|
+
class Dt extends _ {
|
|
182
181
|
constructor() {
|
|
183
182
|
super();
|
|
184
183
|
i(this, "isDIVELight", !0);
|
|
@@ -188,18 +187,18 @@ class Tt extends f {
|
|
|
188
187
|
i(this, "gizmo", null);
|
|
189
188
|
i(this, "light");
|
|
190
189
|
i(this, "mesh");
|
|
191
|
-
this.name = "DIVEPointLight", this.light = new
|
|
192
|
-
const t = 0.1, e = new
|
|
190
|
+
this.name = "DIVEPointLight", this.light = new et(16777215, 1), this.light.layers.mask = f, this.light.castShadow = !0, this.light.shadow.mapSize.width = 512, this.light.shadow.mapSize.height = 512, this.add(this.light);
|
|
191
|
+
const t = 0.1, e = new x(
|
|
193
192
|
t,
|
|
194
193
|
t * 320,
|
|
195
194
|
t * 320
|
|
196
|
-
), a = new
|
|
195
|
+
), a = new F({
|
|
197
196
|
color: this.light.color,
|
|
198
197
|
transparent: !0,
|
|
199
198
|
opacity: 0.8,
|
|
200
|
-
side:
|
|
199
|
+
side: U
|
|
201
200
|
});
|
|
202
|
-
this.mesh = new
|
|
201
|
+
this.mesh = new v(e, a), this.mesh.layers.mask = ft, this.add(this.mesh);
|
|
203
202
|
}
|
|
204
203
|
setColor(t) {
|
|
205
204
|
this.light.color = t, this.mesh.material.color = t;
|
|
@@ -236,7 +235,7 @@ class Tt extends f {
|
|
|
236
235
|
});
|
|
237
236
|
}
|
|
238
237
|
}
|
|
239
|
-
class
|
|
238
|
+
class Et extends _ {
|
|
240
239
|
constructor() {
|
|
241
240
|
super();
|
|
242
241
|
i(this, "isDIVELight", !0);
|
|
@@ -244,7 +243,7 @@ class kt extends f {
|
|
|
244
243
|
i(this, "isSelectable", !0);
|
|
245
244
|
i(this, "_hemiLight");
|
|
246
245
|
i(this, "_dirLight");
|
|
247
|
-
this.name = "DIVESceneLight", this._hemiLight = new
|
|
246
|
+
this.name = "DIVESceneLight", this._hemiLight = new it(16777215, 16777215, 2), this._hemiLight.layers.mask = f, this._hemiLight.position.set(0, 50, 0), this._hemiLight.visible = !0, this.add(this._hemiLight), this._dirLight = new st(16777215, 3), this._dirLight.layers.mask = f, this._dirLight.position.set(1, 1.75, 1), this._dirLight.position.multiplyScalar(30), this._dirLight.castShadow = !0, this._dirLight.visible = !0, this._dirLight.shadow.mapSize.width = 2048, this._dirLight.shadow.mapSize.height = 2048;
|
|
248
247
|
const t = 5;
|
|
249
248
|
this._dirLight.shadow.camera.left = -5, this._dirLight.shadow.camera.right = t, this._dirLight.shadow.camera.top = t, this._dirLight.shadow.camera.bottom = -5, this._dirLight.shadow.camera.far = 3500, this.add(this._dirLight);
|
|
250
249
|
}
|
|
@@ -258,8 +257,8 @@ class kt extends f {
|
|
|
258
257
|
this._hemiLight.visible = t, this._dirLight.visible = t;
|
|
259
258
|
}
|
|
260
259
|
}
|
|
261
|
-
const
|
|
262
|
-
class
|
|
260
|
+
const Z = (o) => o.parent ? Z(o.parent) : o;
|
|
261
|
+
class V extends _ {
|
|
263
262
|
constructor() {
|
|
264
263
|
super();
|
|
265
264
|
i(this, "isSelectable", !0);
|
|
@@ -268,7 +267,7 @@ class C extends f {
|
|
|
268
267
|
i(this, "gizmo", null);
|
|
269
268
|
i(this, "_positionWorldBuffer");
|
|
270
269
|
i(this, "_boundingBox");
|
|
271
|
-
this.layers.mask =
|
|
270
|
+
this.layers.mask = f, this._positionWorldBuffer = new h(), this._boundingBox = new g();
|
|
272
271
|
}
|
|
273
272
|
setPosition(t) {
|
|
274
273
|
if (!this.parent) {
|
|
@@ -329,7 +328,7 @@ class C extends f {
|
|
|
329
328
|
});
|
|
330
329
|
}
|
|
331
330
|
}
|
|
332
|
-
class
|
|
331
|
+
class T extends V {
|
|
333
332
|
/**
|
|
334
333
|
* Creates a new BoundingBox instance for the specified 3D object.
|
|
335
334
|
*
|
|
@@ -368,19 +367,19 @@ class R extends C {
|
|
|
368
367
|
i(this, "_sphereHelper");
|
|
369
368
|
/** The dimensions (width, height, depth) of the bounding box */
|
|
370
369
|
i(this, "_size");
|
|
371
|
-
const n = new
|
|
370
|
+
const n = new g();
|
|
372
371
|
e ? n.setFromObject(t) : (t.updateWorldMatrix(!0, !0), t.traverse((l) => {
|
|
373
372
|
if (l.isMesh) {
|
|
374
373
|
const d = l, u = d.geometry.clone();
|
|
375
374
|
u.applyMatrix4(d.matrixWorld);
|
|
376
|
-
const
|
|
377
|
-
u.applyQuaternion(
|
|
375
|
+
const y = d.getWorldQuaternion(new I()).invert();
|
|
376
|
+
u.applyQuaternion(y), u.computeBoundingBox(), u.boundingBox && n.union(u.boundingBox);
|
|
378
377
|
}
|
|
379
|
-
})), this.rotation.copy(t.rotation), this._box = n, this._size = n.getSize(new h()), this._center = n.getCenter(new h()), this._boxHelper = new
|
|
380
|
-
const r = new
|
|
381
|
-
r.translate(this._center.x, this._center.y, this._center.z), this._sphereHelper = new
|
|
378
|
+
})), this.rotation.copy(t.rotation), this._box = n, this._size = n.getSize(new h()), this._center = n.getCenter(new h()), this._boxHelper = new at(this._box, a), this._boxHelper.visible = !1, this.add(this._boxHelper), this._sphere = n.getBoundingSphere(new nt()), this._radius = this._sphere.radius;
|
|
379
|
+
const r = new x(this._radius, 32, 32);
|
|
380
|
+
r.translate(this._center.x, this._center.y, this._center.z), this._sphereHelper = new v(
|
|
382
381
|
r,
|
|
383
|
-
new
|
|
382
|
+
new F({ color: a, wireframe: !0 })
|
|
384
383
|
), this._sphereHelper.visible = !1, this.add(this._sphereHelper);
|
|
385
384
|
}
|
|
386
385
|
/**
|
|
@@ -457,7 +456,7 @@ class R extends C {
|
|
|
457
456
|
this._sphereHelper.visible = t;
|
|
458
457
|
}
|
|
459
458
|
}
|
|
460
|
-
class
|
|
459
|
+
class N extends V {
|
|
461
460
|
constructor() {
|
|
462
461
|
super();
|
|
463
462
|
i(this, "isDIVEModel", !0);
|
|
@@ -485,13 +484,13 @@ class q extends C {
|
|
|
485
484
|
}), this.add(this._gltf), this;
|
|
486
485
|
}
|
|
487
486
|
setMaterial(t) {
|
|
488
|
-
this._material || (this._material = new
|
|
487
|
+
this._material || (this._material = new R()), t.vertexColors !== void 0 && (this._material.vertexColors = t.vertexColors), t.color !== void 0 && this._material.color.set(t.color), t.map !== void 0 && (this._material.map = t.map), t.normalMap !== void 0 && (this._material.normalMap = t.normalMap), t.roughness !== void 0 && (this._material.roughness = t.roughness), t.roughnessMap !== void 0 && (this._material.roughnessMap = t.roughnessMap, this._material.roughnessMap && (this._material.roughness = 1)), t.metalness !== void 0 && (this._material.metalness = t.metalness), t.metalnessMap !== void 0 && (this._material.metalnessMap = t.metalnessMap, this._material.metalnessMap && (this._material.metalness = 1)), this._mesh && (this._mesh.material = this._material);
|
|
489
488
|
}
|
|
490
489
|
placeOnFloor() {
|
|
491
490
|
this.updateWorldMatrix(!0, !0);
|
|
492
|
-
const t = this.getWorldPosition(this._positionWorldBuffer), e = t.clone(), a = new
|
|
491
|
+
const t = this.getWorldPosition(this._positionWorldBuffer), e = t.clone(), a = new g();
|
|
493
492
|
this.children.forEach((r) => {
|
|
494
|
-
r instanceof
|
|
493
|
+
r instanceof T || a.expandByObject(r, !0);
|
|
495
494
|
});
|
|
496
495
|
const n = -a.min.y;
|
|
497
496
|
Math.abs(n) < 1e-9 || (t.y += n, t.y !== e.y && (this.setPosition(t), import("../plugins/state/index.mjs").then(({ State: r }) => {
|
|
@@ -512,24 +511,24 @@ class q extends C {
|
|
|
512
511
|
);
|
|
513
512
|
return;
|
|
514
513
|
}
|
|
515
|
-
const t = this.getWorldPosition(this._positionWorldBuffer), e = t.clone(), a = new
|
|
514
|
+
const t = this.getWorldPosition(this._positionWorldBuffer), e = t.clone(), a = new g();
|
|
516
515
|
this.children.forEach((d) => {
|
|
517
|
-
d instanceof
|
|
516
|
+
d instanceof T || a.expandByObject(d, !0);
|
|
518
517
|
});
|
|
519
518
|
const n = a.getCenter(new h());
|
|
520
519
|
n.y = a.min.y;
|
|
521
|
-
const r = new
|
|
522
|
-
r.layers.mask =
|
|
520
|
+
const r = new rt(n, new h(0, -1, 0));
|
|
521
|
+
r.layers.mask = f;
|
|
523
522
|
const l = r.intersectObjects(
|
|
524
|
-
|
|
523
|
+
Z(this).root.children,
|
|
525
524
|
!0
|
|
526
525
|
);
|
|
527
526
|
if (l.length > 0) {
|
|
528
|
-
const d = l[0].object,
|
|
529
|
-
if (Math.abs(
|
|
530
|
-
this.setPosition(t), import("../plugins/state/index.mjs").then(({ State:
|
|
531
|
-
var
|
|
532
|
-
(
|
|
527
|
+
const d = l[0].object, b = new g().setFromObject(d).max.y - a.min.y;
|
|
528
|
+
if (Math.abs(b) < 1e-9 || (t.y += b, t.y === e.y)) return;
|
|
529
|
+
this.setPosition(t), import("../plugins/state/index.mjs").then(({ State: M }) => {
|
|
530
|
+
var D;
|
|
531
|
+
(D = M.get(this.userData.id)) == null || D.performAction("UPDATE_OBJECT", {
|
|
533
532
|
id: this.userData.id,
|
|
534
533
|
position: t,
|
|
535
534
|
rotation: this.rotation,
|
|
@@ -540,13 +539,13 @@ class q extends C {
|
|
|
540
539
|
this.placeOnFloor();
|
|
541
540
|
}
|
|
542
541
|
}
|
|
543
|
-
class
|
|
542
|
+
class St extends N {
|
|
544
543
|
constructor() {
|
|
545
544
|
super();
|
|
546
545
|
i(this, "isDIVEPrimitive", !0);
|
|
547
546
|
i(this, "_mesh");
|
|
548
547
|
i(this, "_material");
|
|
549
|
-
this._mesh = new
|
|
548
|
+
this._mesh = new v(), this._mesh.name = "PrimitiveMesh", this._mesh.layers.mask = f, this._mesh.castShadow = !0, this._mesh.receiveShadow = !0, this.add(this._mesh), this._material = new R(), this._mesh.material = this._material;
|
|
550
549
|
}
|
|
551
550
|
setGeometry(t) {
|
|
552
551
|
const e = this.assembleGeometry(t);
|
|
@@ -577,7 +576,7 @@ class Rt extends q {
|
|
|
577
576
|
}
|
|
578
577
|
}
|
|
579
578
|
createCylinderGeometry(t) {
|
|
580
|
-
const e = new
|
|
579
|
+
const e = new ot(
|
|
581
580
|
t.width / 2,
|
|
582
581
|
t.width / 2,
|
|
583
582
|
t.height,
|
|
@@ -586,7 +585,7 @@ class Rt extends q {
|
|
|
586
585
|
return e.translate(0, t.height / 2, 0), e;
|
|
587
586
|
}
|
|
588
587
|
createSphereGeometry(t) {
|
|
589
|
-
return new
|
|
588
|
+
return new x(t.width / 2, 256, 256);
|
|
590
589
|
}
|
|
591
590
|
createPyramidGeometry(t) {
|
|
592
591
|
const e = new Float32Array([
|
|
@@ -628,14 +627,14 @@ class Rt extends q {
|
|
|
628
627
|
3,
|
|
629
628
|
4,
|
|
630
629
|
0
|
|
631
|
-
]), n = new
|
|
630
|
+
]), n = new Y();
|
|
632
631
|
return n.setAttribute(
|
|
633
632
|
"position",
|
|
634
|
-
new
|
|
635
|
-
), n.setIndex(new
|
|
633
|
+
new C(e, 3)
|
|
634
|
+
), n.setIndex(new C(a, 1)), n;
|
|
636
635
|
}
|
|
637
636
|
createBoxGeometry(t) {
|
|
638
|
-
const e = new
|
|
637
|
+
const e = new L(
|
|
639
638
|
t.width,
|
|
640
639
|
t.height,
|
|
641
640
|
t.depth
|
|
@@ -643,11 +642,11 @@ class Rt extends q {
|
|
|
643
642
|
return e.translate(0, t.height / 2, 0), e;
|
|
644
643
|
}
|
|
645
644
|
createConeGeometry(t) {
|
|
646
|
-
const e = new
|
|
645
|
+
const e = new ht(t.width / 2, t.height, 256);
|
|
647
646
|
return e.translate(0, t.height / 2, 0), e;
|
|
648
647
|
}
|
|
649
648
|
createWallGeometry(t) {
|
|
650
|
-
const e = new
|
|
649
|
+
const e = new L(
|
|
651
650
|
t.width,
|
|
652
651
|
t.height,
|
|
653
652
|
t.depth || 0.05,
|
|
@@ -656,7 +655,7 @@ class Rt extends q {
|
|
|
656
655
|
return e.translate(0, t.height / 2, 0), e;
|
|
657
656
|
}
|
|
658
657
|
createPlaneGeometry(t) {
|
|
659
|
-
const e = new
|
|
658
|
+
const e = new L(
|
|
660
659
|
t.width,
|
|
661
660
|
t.height,
|
|
662
661
|
t.depth
|
|
@@ -664,7 +663,7 @@ class Rt extends q {
|
|
|
664
663
|
return e.translate(0, t.height / 2, 0), e;
|
|
665
664
|
}
|
|
666
665
|
}
|
|
667
|
-
class
|
|
666
|
+
class Pt extends V {
|
|
668
667
|
// lines to children
|
|
669
668
|
constructor() {
|
|
670
669
|
super();
|
|
@@ -718,11 +717,11 @@ class Vt extends C {
|
|
|
718
717
|
* Creates a line for visualization.
|
|
719
718
|
*/
|
|
720
719
|
createLine() {
|
|
721
|
-
const t = new
|
|
720
|
+
const t = new Y(), e = new lt({
|
|
722
721
|
color: 6710886,
|
|
723
722
|
dashSize: 0.05,
|
|
724
723
|
gapSize: 0.025
|
|
725
|
-
}), a = new
|
|
724
|
+
}), a = new dt(t, e);
|
|
726
725
|
return a.visible = !1, a;
|
|
727
726
|
}
|
|
728
727
|
/**
|
|
@@ -783,37 +782,37 @@ class Vt extends C {
|
|
|
783
782
|
// this._boxMesh.visible = true;
|
|
784
783
|
// }
|
|
785
784
|
}
|
|
786
|
-
class
|
|
785
|
+
class vt extends v {
|
|
787
786
|
constructor() {
|
|
788
|
-
const t = new
|
|
787
|
+
const t = new ct(1, 1);
|
|
789
788
|
t.scale(1e3, 1e3, 1), t.rotateX(-Math.PI / 2);
|
|
790
|
-
const e = new
|
|
791
|
-
color: new
|
|
792
|
-
side:
|
|
789
|
+
const e = new R({
|
|
790
|
+
color: new P(16777215),
|
|
791
|
+
side: U
|
|
793
792
|
});
|
|
794
793
|
super(t, e);
|
|
795
794
|
i(this, "isDIVEFloor", !0);
|
|
796
|
-
this.name = "Floor", this.layers.mask =
|
|
795
|
+
this.name = "Floor", this.layers.mask = f, this.receiveShadow = !0;
|
|
797
796
|
}
|
|
798
797
|
setVisibility(t) {
|
|
799
798
|
this.visible = t;
|
|
800
799
|
}
|
|
801
800
|
setColor(t) {
|
|
802
|
-
this.material.color = new
|
|
801
|
+
this.material.color = new P(t);
|
|
803
802
|
}
|
|
804
803
|
}
|
|
805
|
-
class
|
|
804
|
+
class Mt extends _ {
|
|
806
805
|
constructor() {
|
|
807
806
|
super();
|
|
808
807
|
i(this, "isDIVERoot", !0);
|
|
809
808
|
i(this, "_floor");
|
|
810
|
-
this.name = "Root", this._floor = new
|
|
809
|
+
this.name = "Root", this._floor = new vt(), this.add(this._floor);
|
|
811
810
|
}
|
|
812
811
|
get floor() {
|
|
813
812
|
return this._floor;
|
|
814
813
|
}
|
|
815
814
|
computeSceneBB() {
|
|
816
|
-
const t = new
|
|
815
|
+
const t = new g();
|
|
817
816
|
return this.children.forEach((e) => {
|
|
818
817
|
"isDIVEFloor" in e || e.traverse((a) => {
|
|
819
818
|
"isObject3D" in a && t.expandByObject(a);
|
|
@@ -838,15 +837,15 @@ class Ct extends f {
|
|
|
838
837
|
case "light": {
|
|
839
838
|
switch (t.type) {
|
|
840
839
|
case "scene": {
|
|
841
|
-
e = new
|
|
840
|
+
e = new Et();
|
|
842
841
|
break;
|
|
843
842
|
}
|
|
844
843
|
case "ambient": {
|
|
845
|
-
e = new
|
|
844
|
+
e = new bt();
|
|
846
845
|
break;
|
|
847
846
|
}
|
|
848
847
|
case "point": {
|
|
849
|
-
e = new
|
|
848
|
+
e = new Dt();
|
|
850
849
|
break;
|
|
851
850
|
}
|
|
852
851
|
default:
|
|
@@ -858,15 +857,15 @@ class Ct extends f {
|
|
|
858
857
|
break;
|
|
859
858
|
}
|
|
860
859
|
case "model": {
|
|
861
|
-
e = new
|
|
860
|
+
e = new N(), e.name = t.name, e.userData.id = t.id, e.userData.uri = t.uri, this.add(e), this._updateModel(e, t);
|
|
862
861
|
break;
|
|
863
862
|
}
|
|
864
863
|
case "primitive": {
|
|
865
|
-
e = new
|
|
864
|
+
e = new St(), e.name = t.name, e.userData.id = t.id, this.add(e), this._updatePrimitive(e, t);
|
|
866
865
|
break;
|
|
867
866
|
}
|
|
868
867
|
case "group": {
|
|
869
|
-
e = new
|
|
868
|
+
e = new Pt(), e.name = t.name, e.userData.id = t.id, this.add(e), this._updateGroup(e, t);
|
|
870
869
|
break;
|
|
871
870
|
}
|
|
872
871
|
default:
|
|
@@ -947,7 +946,7 @@ class Ct extends f {
|
|
|
947
946
|
e.position.x,
|
|
948
947
|
e.position.y,
|
|
949
948
|
e.position.z
|
|
950
|
-
), e.intensity !== void 0 && e.intensity !== null && t.setIntensity(e.intensity), e.enabled !== void 0 && e.enabled !== null && t.setEnabled(e.enabled), e.color !== void 0 && e.color !== null && t.setColor(new
|
|
949
|
+
), e.intensity !== void 0 && e.intensity !== null && t.setIntensity(e.intensity), e.enabled !== void 0 && e.enabled !== null && t.setEnabled(e.enabled), e.color !== void 0 && e.color !== null && t.setColor(new P(e.color)), e.visible !== void 0 && e.visible !== null && (t.visible = e.visible), e.parentId !== void 0 && this._setParent({ ...e, parentId: e.parentId });
|
|
951
950
|
}
|
|
952
951
|
_updateModel(t, e) {
|
|
953
952
|
e.uri !== void 0 && t.setFromURL(e.uri), e.name !== void 0 && (t.name = e.name), e.position !== void 0 && t.setPosition(e.position), e.rotation !== void 0 && t.setRotation(e.rotation), e.scale !== void 0 && t.setScale(e.scale), e.visible !== void 0 && t.setVisibility(e.visible), e.material !== void 0 && t.setMaterial(e.material), e.parentId !== void 0 && this._setParent({ ...e, parentId: e.parentId });
|
|
@@ -994,39 +993,39 @@ class Ct extends f {
|
|
|
994
993
|
return t.parent !== null ? this._findScene(t.parent) : t;
|
|
995
994
|
}
|
|
996
995
|
}
|
|
997
|
-
const
|
|
998
|
-
class
|
|
996
|
+
const Lt = "#888888", It = "#dddddd";
|
|
997
|
+
class Tt extends _ {
|
|
999
998
|
constructor() {
|
|
1000
999
|
super(), this.name = "Grid";
|
|
1001
|
-
const s = new
|
|
1000
|
+
const s = new ut(
|
|
1002
1001
|
100,
|
|
1003
1002
|
100,
|
|
1004
|
-
|
|
1005
|
-
|
|
1003
|
+
Lt,
|
|
1004
|
+
It
|
|
1006
1005
|
);
|
|
1007
|
-
s.material.depthTest = !1, s.layers.mask =
|
|
1006
|
+
s.material.depthTest = !1, s.layers.mask = gt, this.add(s);
|
|
1008
1007
|
}
|
|
1009
1008
|
setVisibility(s) {
|
|
1010
1009
|
this.visible = s;
|
|
1011
1010
|
}
|
|
1012
1011
|
}
|
|
1013
|
-
const
|
|
1012
|
+
const S = {
|
|
1014
1013
|
displayFloor: !1,
|
|
1015
1014
|
displayGrid: !1,
|
|
1016
1015
|
backgroundColor: "#ffffff"
|
|
1017
1016
|
};
|
|
1018
|
-
class
|
|
1017
|
+
class kt extends pt {
|
|
1019
1018
|
constructor(t) {
|
|
1020
1019
|
super();
|
|
1021
1020
|
i(this, "isDIVEScene", !0);
|
|
1022
1021
|
i(this, "_root");
|
|
1023
1022
|
i(this, "_grid");
|
|
1024
1023
|
this.setBackground(
|
|
1025
|
-
(t == null ? void 0 : t.backgroundColor) ??
|
|
1026
|
-
), this._root = new
|
|
1027
|
-
(t == null ? void 0 : t.displayFloor) ??
|
|
1028
|
-
), this.add(this._root), this._grid = new
|
|
1029
|
-
(t == null ? void 0 : t.displayGrid) ??
|
|
1024
|
+
(t == null ? void 0 : t.backgroundColor) ?? S.backgroundColor
|
|
1025
|
+
), this._root = new Mt(), this._root.floor.setVisibility(
|
|
1026
|
+
(t == null ? void 0 : t.displayFloor) ?? S.displayFloor
|
|
1027
|
+
), this.add(this._root), this._grid = new Tt(), this._grid.setVisibility(
|
|
1028
|
+
(t == null ? void 0 : t.displayGrid) ?? S.displayGrid
|
|
1030
1029
|
), this.add(this._grid);
|
|
1031
1030
|
}
|
|
1032
1031
|
get root() {
|
|
@@ -1036,13 +1035,13 @@ class Gt extends wt {
|
|
|
1036
1035
|
return this._grid;
|
|
1037
1036
|
}
|
|
1038
1037
|
setBackground(t) {
|
|
1039
|
-
this.background = new
|
|
1038
|
+
this.background = new P(t);
|
|
1040
1039
|
}
|
|
1041
1040
|
computeSceneBB() {
|
|
1042
1041
|
return this._root.computeSceneBB();
|
|
1043
1042
|
}
|
|
1044
1043
|
}
|
|
1045
|
-
const
|
|
1044
|
+
const xt = {
|
|
1046
1045
|
enableDamping: !0,
|
|
1047
1046
|
dampingFactor: 0.05,
|
|
1048
1047
|
enabled: !0,
|
|
@@ -1080,7 +1079,7 @@ const Ft = {
|
|
|
1080
1079
|
ONE: m.ROTATE,
|
|
1081
1080
|
TWO: m.DOLLY_PAN
|
|
1082
1081
|
}
|
|
1083
|
-
},
|
|
1082
|
+
}, w = class w extends mt {
|
|
1084
1083
|
constructor(t, e, a) {
|
|
1085
1084
|
super();
|
|
1086
1085
|
// public API
|
|
@@ -1127,12 +1126,12 @@ const Ft = {
|
|
|
1127
1126
|
i(this, "target0");
|
|
1128
1127
|
i(this, "position0");
|
|
1129
1128
|
i(this, "zoom0");
|
|
1130
|
-
i(this, "uuid",
|
|
1129
|
+
i(this, "uuid", k.generateUUID());
|
|
1131
1130
|
// private state
|
|
1132
1131
|
i(this, "state", -1);
|
|
1133
1132
|
i(this, "EPS", 1e-6);
|
|
1134
|
-
i(this, "spherical", new
|
|
1135
|
-
i(this, "sphericalDelta", new
|
|
1133
|
+
i(this, "spherical", new O());
|
|
1134
|
+
i(this, "sphericalDelta", new O());
|
|
1136
1135
|
i(this, "scale", 1);
|
|
1137
1136
|
i(this, "panOffset", new h());
|
|
1138
1137
|
i(this, "zoomChanged", !1);
|
|
@@ -1152,7 +1151,7 @@ const Ft = {
|
|
|
1152
1151
|
i(this, "quat");
|
|
1153
1152
|
i(this, "quatInverse");
|
|
1154
1153
|
i(this, "lastPosition", new h());
|
|
1155
|
-
i(this, "lastQuaternion", new
|
|
1154
|
+
i(this, "lastQuaternion", new I());
|
|
1156
1155
|
i(this, "lastTarget", new h());
|
|
1157
1156
|
i(this, "panLeft", (() => {
|
|
1158
1157
|
const t = new h();
|
|
@@ -1317,7 +1316,7 @@ const Ft = {
|
|
|
1317
1316
|
i(this, "onContextMenu", (t) => {
|
|
1318
1317
|
this.enabled !== !1 && t.preventDefault();
|
|
1319
1318
|
});
|
|
1320
|
-
this.object = t, this.domElements = Array.isArray(e) ? e : [e], Object.assign(this, a), this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this.quat = new
|
|
1319
|
+
this.object = t, this.domElements = Array.isArray(e) ? e : [e], Object.assign(this, a), this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this.quat = new I().setFromUnitVectors(
|
|
1321
1320
|
t.up,
|
|
1322
1321
|
new h(0, 1, 0)
|
|
1323
1322
|
), this.quatInverse = this.quat.clone().invert(), this.domElements.forEach((n) => this.addEventListeners(n)), this.update();
|
|
@@ -1375,22 +1374,22 @@ const Ft = {
|
|
|
1375
1374
|
this.removeDomElements(...this.domElements), this.domElements = [], this.addDomElements(...t);
|
|
1376
1375
|
}
|
|
1377
1376
|
computeEncompassingView(t, e = 0) {
|
|
1378
|
-
const a = t.center, r = t.sphere.radius, l = this.object.fov * (Math.PI / 180), d = this.object.aspect, u = l / 2,
|
|
1377
|
+
const a = t.center, r = t.sphere.radius, l = this.object.fov * (Math.PI / 180), d = this.object.aspect, u = l / 2, y = Math.atan(Math.tan(u) * d), b = r / Math.sin(u), M = r / Math.sin(y), D = Math.max(b, M) * (1 + e), A = this.object.position.clone().sub(this.target).normalize(), X = A.length() > 1e-3 ? A : new h(0, 0, 1);
|
|
1379
1378
|
return {
|
|
1380
|
-
position: a.clone().add(
|
|
1379
|
+
position: a.clone().add(X.multiplyScalar(D)),
|
|
1381
1380
|
target: a
|
|
1382
1381
|
};
|
|
1383
1382
|
}
|
|
1384
1383
|
focusObject(t, e = 0) {
|
|
1385
|
-
const a = new
|
|
1384
|
+
const a = new T(t), n = this.computeEncompassingView(a, e);
|
|
1386
1385
|
this.object.position.copy(n.position), this.target.copy(n.target), this.update();
|
|
1387
1386
|
}
|
|
1388
1387
|
zoomIn(t) {
|
|
1389
|
-
this.dollyIn(Math.pow(0.95, t ??
|
|
1388
|
+
this.dollyIn(Math.pow(0.95, t ?? w.DEFAULT_ZOOM_FACTOR)), this.update();
|
|
1390
1389
|
}
|
|
1391
1390
|
zoomOut(t) {
|
|
1392
1391
|
this.dollyOut(
|
|
1393
|
-
Math.pow(0.95, t ??
|
|
1392
|
+
Math.pow(0.95, t ?? w.DEFAULT_ZOOM_FACTOR)
|
|
1394
1393
|
), this.update();
|
|
1395
1394
|
}
|
|
1396
1395
|
getState() {
|
|
@@ -1599,53 +1598,9 @@ const Ft = {
|
|
|
1599
1598
|
);
|
|
1600
1599
|
}
|
|
1601
1600
|
};
|
|
1602
|
-
i(
|
|
1603
|
-
let
|
|
1604
|
-
|
|
1605
|
-
constructor() {
|
|
1606
|
-
super();
|
|
1607
|
-
i(this, "_axesHelper");
|
|
1608
|
-
this._axesHelper = new bt(0.5), this._axesHelper.layers.mask = y, this._axesHelper.material.depthTest = !1, this._axesHelper.position.set(0, 0, -1), this._axesHelper.setColors(
|
|
1609
|
-
new g(Zt),
|
|
1610
|
-
new g(Nt),
|
|
1611
|
-
new g(Xt)
|
|
1612
|
-
);
|
|
1613
|
-
const t = new T("X", 0.2, K), e = new T("Y", 0.2, Q), a = new T("Z", 0.2, J);
|
|
1614
|
-
t.layers.mask = y, e.layers.mask = y, a.layers.mask = y, t.position.set(0.7, 0, 0), e.position.set(0, 0.7, 0), a.position.set(0, 0, 0.7), this._axesHelper.add(t), this._axesHelper.add(e), this._axesHelper.add(a);
|
|
1615
|
-
}
|
|
1616
|
-
setFromCameraMatrix(t) {
|
|
1617
|
-
this._axesHelper.rotation.setFromRotationMatrix(
|
|
1618
|
-
new Dt().extractRotation(t).invert()
|
|
1619
|
-
);
|
|
1620
|
-
}
|
|
1621
|
-
}
|
|
1622
|
-
class Ht {
|
|
1623
|
-
constructor(s, t, e) {
|
|
1624
|
-
i(this, "uuid", x.generateUUID());
|
|
1625
|
-
i(this, "_axes");
|
|
1626
|
-
i(this, "_orthographicCamera");
|
|
1627
|
-
i(this, "_restoreViewport", new St());
|
|
1628
|
-
this._renderer = s, this._scene = t, this._camera = e, this._orthographicCamera = new Et(
|
|
1629
|
-
-1,
|
|
1630
|
-
1,
|
|
1631
|
-
1,
|
|
1632
|
-
-1,
|
|
1633
|
-
0.1,
|
|
1634
|
-
100
|
|
1635
|
-
), this._orthographicCamera.layers.mask = y, this._scene.add(this._orthographicCamera), this._axes = new Ut(), this._scene.add(this._axes);
|
|
1636
|
-
}
|
|
1637
|
-
tick() {
|
|
1638
|
-
const s = this._scene.background;
|
|
1639
|
-
this._scene.background = null, this._renderer.webglrenderer.getViewport(this._restoreViewport), this._renderer.webglrenderer.setViewport(0, 0, 150, 150), this._renderer.webglrenderer.autoClear = !1, this._axes.setFromCameraMatrix(this._camera.matrix), this._renderer.webglrenderer.render(
|
|
1640
|
-
this._scene,
|
|
1641
|
-
this._orthographicCamera
|
|
1642
|
-
), this._renderer.webglrenderer.setViewport(this._restoreViewport), this._renderer.webglrenderer.autoClear = !0, this._scene.background = s;
|
|
1643
|
-
}
|
|
1644
|
-
dispose() {
|
|
1645
|
-
this._scene.remove(this._axes), this._scene.remove(this._orthographicCamera);
|
|
1646
|
-
}
|
|
1647
|
-
}
|
|
1648
|
-
const Yt = `
|
|
1601
|
+
i(w, "DEFAULT_ZOOM_FACTOR", 1);
|
|
1602
|
+
let G = w;
|
|
1603
|
+
const Rt = `
|
|
1649
1604
|
@@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@
|
|
1650
1605
|
@@@@+-:::::::---------------------==------------------------------=#@@@@
|
|
1651
1606
|
@@%=::::.......::---------------------------------------------------------+@@
|
|
@@ -1680,42 +1635,46 @@ window.DIVE = {
|
|
|
1680
1635
|
return window.DIVE.instances[0];
|
|
1681
1636
|
}
|
|
1682
1637
|
};
|
|
1683
|
-
const
|
|
1638
|
+
const E = {
|
|
1684
1639
|
autoStart: !0,
|
|
1685
1640
|
displayAxes: !1,
|
|
1686
|
-
...
|
|
1687
|
-
...
|
|
1688
|
-
...
|
|
1689
|
-
...
|
|
1641
|
+
...S,
|
|
1642
|
+
..._t,
|
|
1643
|
+
...W,
|
|
1644
|
+
...xt
|
|
1690
1645
|
};
|
|
1691
|
-
class
|
|
1646
|
+
class Vt {
|
|
1692
1647
|
constructor(s) {
|
|
1693
1648
|
// descriptive members
|
|
1694
|
-
i(this, "_instanceId",
|
|
1649
|
+
i(this, "_instanceId", k.generateUUID());
|
|
1695
1650
|
i(this, "_settings");
|
|
1696
1651
|
i(this, "_views");
|
|
1697
1652
|
i(this, "_mainView");
|
|
1698
1653
|
i(this, "_scene");
|
|
1699
1654
|
i(this, "_clock");
|
|
1700
|
-
i(this, "
|
|
1655
|
+
i(this, "_orientationDisplay", null);
|
|
1701
1656
|
this._settings = {
|
|
1702
|
-
...
|
|
1657
|
+
...E,
|
|
1703
1658
|
...s ?? {}
|
|
1704
|
-
}, this._clock = new
|
|
1705
|
-
backgroundColor: (s == null ? void 0 : s.backgroundColor) ??
|
|
1706
|
-
displayGrid: (s == null ? void 0 : s.displayGrid) ??
|
|
1707
|
-
displayFloor: (s == null ? void 0 : s.displayFloor) ??
|
|
1659
|
+
}, this._clock = new wt(), this._scene = new kt({
|
|
1660
|
+
backgroundColor: (s == null ? void 0 : s.backgroundColor) ?? E.backgroundColor,
|
|
1661
|
+
displayGrid: (s == null ? void 0 : s.displayGrid) ?? E.displayGrid,
|
|
1662
|
+
displayFloor: (s == null ? void 0 : s.displayFloor) ?? E.displayFloor
|
|
1708
1663
|
});
|
|
1709
|
-
const t = new
|
|
1664
|
+
const t = new B(
|
|
1710
1665
|
this._scene,
|
|
1711
|
-
new
|
|
1666
|
+
new z(),
|
|
1712
1667
|
this._settings
|
|
1713
1668
|
);
|
|
1714
|
-
this._clock.addTicker(t), this._views = [t], this._mainView = t, this._settings.
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1669
|
+
this._clock.addTicker(t), this._views = [t], this._mainView = t, this._settings.displayAxes && import("../plugins/orientationdisplay/index.mjs").then(
|
|
1670
|
+
({ OrientationDisplay: e }) => {
|
|
1671
|
+
this._orientationDisplay = new e(
|
|
1672
|
+
this.mainView.renderer,
|
|
1673
|
+
this.scene,
|
|
1674
|
+
this.mainView.camera
|
|
1675
|
+
), this._clock.addTicker(this._orientationDisplay);
|
|
1676
|
+
}
|
|
1677
|
+
), this._settings.autoStart && this.start(), console.log("DIVE 2.2.6 initialized successfully!"), console.log(Rt), window.DIVE.instances.push(this);
|
|
1719
1678
|
}
|
|
1720
1679
|
/**
|
|
1721
1680
|
* @deprecated This static method will be removed in a future version. Please use `import { QuickView, QuickViewSettings, QuickViewDefaultSettings } from '@shopware-ag/dive/quickview'` instead.
|
|
@@ -1773,15 +1732,15 @@ class Wt {
|
|
|
1773
1732
|
return new Promise((s) => {
|
|
1774
1733
|
this._views.forEach((t) => {
|
|
1775
1734
|
t.dispose();
|
|
1776
|
-
}), this._views = [], this.
|
|
1735
|
+
}), this._views = [], this._orientationDisplay && (this._clock.removeTicker(this._orientationDisplay), this._orientationDisplay.dispose()), window.DIVE.instances = window.DIVE.instances.filter(
|
|
1777
1736
|
(t) => t._instanceId !== this._instanceId
|
|
1778
1737
|
), s();
|
|
1779
1738
|
});
|
|
1780
1739
|
}
|
|
1781
1740
|
createView(s) {
|
|
1782
|
-
const t = new
|
|
1741
|
+
const t = new B(
|
|
1783
1742
|
this._scene,
|
|
1784
|
-
s ?? new
|
|
1743
|
+
s ?? new z(),
|
|
1785
1744
|
{
|
|
1786
1745
|
...this._settings,
|
|
1787
1746
|
canvas: void 0
|
|
@@ -1794,7 +1753,7 @@ class Wt {
|
|
|
1794
1753
|
this._views = this._views.filter((t) => t !== s), this._clock.removeTicker(s), this._mainView === s && (this._mainView = this._views[0]), s.dispose();
|
|
1795
1754
|
}
|
|
1796
1755
|
}
|
|
1797
|
-
const
|
|
1756
|
+
const Ft = Vt, At = {
|
|
1798
1757
|
glb: {
|
|
1799
1758
|
key: "glb",
|
|
1800
1759
|
extension: "glb"
|
|
@@ -1807,45 +1766,37 @@ const ee = Wt, K = "#c20017", Q = "#00ab26", J = "#0081d4", Zt = K, Nt = Q, Xt =
|
|
|
1807
1766
|
key: "usdz",
|
|
1808
1767
|
extension: "usdz"
|
|
1809
1768
|
}
|
|
1810
|
-
},
|
|
1769
|
+
}, Ut = Object.values(At).map(
|
|
1811
1770
|
(o) => o.extension
|
|
1812
1771
|
);
|
|
1813
1772
|
export {
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
Q as s,
|
|
1844
|
-
J as t,
|
|
1845
|
-
zt as u,
|
|
1846
|
-
At as v,
|
|
1847
|
-
Bt as w,
|
|
1848
|
-
Vt as x,
|
|
1849
|
-
It as y,
|
|
1850
|
-
Tt as z
|
|
1773
|
+
T as B,
|
|
1774
|
+
E as D,
|
|
1775
|
+
At as F,
|
|
1776
|
+
Lt as G,
|
|
1777
|
+
xt as O,
|
|
1778
|
+
Ut as S,
|
|
1779
|
+
G as a,
|
|
1780
|
+
Vt as b,
|
|
1781
|
+
Et as c,
|
|
1782
|
+
N as d,
|
|
1783
|
+
Ft as e,
|
|
1784
|
+
wt as f,
|
|
1785
|
+
W as g,
|
|
1786
|
+
H as h,
|
|
1787
|
+
Gt as i,
|
|
1788
|
+
yt as j,
|
|
1789
|
+
S as k,
|
|
1790
|
+
kt as l,
|
|
1791
|
+
B as m,
|
|
1792
|
+
It as n,
|
|
1793
|
+
vt as o,
|
|
1794
|
+
Tt as p,
|
|
1795
|
+
Pt as q,
|
|
1796
|
+
bt as r,
|
|
1797
|
+
Dt as s,
|
|
1798
|
+
V as t,
|
|
1799
|
+
St as u,
|
|
1800
|
+
Mt as v,
|
|
1801
|
+
Z as w
|
|
1851
1802
|
};
|