@shopware-ag/dive 2.2.5 → 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.
Files changed (32) hide show
  1. package/build/chunks/{AssetCache-BgBHM6S5.mjs → AssetCache-3ouLCwG8.mjs} +1 -1
  2. package/build/chunks/{AssetCache-Bn5GNWfs.cjs → AssetCache-DhgU13Qu.cjs} +1 -1
  3. package/build/chunks/{AssetLoader--8t2T5ko.mjs → AssetLoader-MNABEWSP.mjs} +2 -2
  4. package/build/chunks/{AssetLoader-b5ktist5.cjs → AssetLoader-Y1WUrflq.cjs} +1 -1
  5. package/build/chunks/AxisHelperColors-BrGqktN5.cjs +1 -0
  6. package/build/chunks/AxisHelperColors-JLBHYQDi.mjs +9 -0
  7. package/build/chunks/{FileTypes-Dv8dH6R0.mjs → FileTypes-B5EJOgeX.mjs} +205 -254
  8. package/build/chunks/FileTypes-CsaIrcSz.cjs +29 -0
  9. package/build/chunks/{SelectTool-DU_wsl-z.mjs → SelectTool-BrK1C-h9.mjs} +14 -13
  10. package/build/chunks/SelectTool-COXzVZGs.cjs +1 -0
  11. package/build/dive.cjs +1 -1
  12. package/build/dive.mjs +61 -60
  13. package/build/engine/Dive.d.ts +1 -1
  14. package/build/plugins/ar/index.cjs +1 -1
  15. package/build/plugins/ar/index.mjs +1 -1
  16. package/build/plugins/assetcache/index.cjs +1 -1
  17. package/build/plugins/assetcache/index.mjs +1 -1
  18. package/build/plugins/assetloader/index.cjs +1 -1
  19. package/build/plugins/assetloader/index.mjs +1 -1
  20. package/build/plugins/orbitcontroller/index.cjs +1 -1
  21. package/build/plugins/orbitcontroller/index.mjs +1 -1
  22. package/build/plugins/orientationdisplay/index.cjs +1 -1
  23. package/build/plugins/orientationdisplay/index.mjs +54 -3
  24. package/build/plugins/quickview/index.cjs +1 -1
  25. package/build/plugins/quickview/index.mjs +6 -6
  26. package/build/plugins/state/index.cjs +1 -1
  27. package/build/plugins/state/index.mjs +2 -2
  28. package/build/plugins/toolbox/index.cjs +1 -1
  29. package/build/plugins/toolbox/index.mjs +2 -2
  30. package/package.json +1 -1
  31. package/build/chunks/FileTypes-CbfZcYpV.cjs +0 -29
  32. package/build/chunks/SelectTool-C7VQJNWQ.cjs +0 -1
@@ -1,10 +1,9 @@
1
- var j = Object.defineProperty;
2
- var tt = (o, s, t) => s in o ? j(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
3
- var i = (o, s, t) => tt(o, typeof s != "symbol" ? s + "" : s, t);
4
- import { WebGLRenderer as et, PCFSoftShadowMap as it, PCFShadowMap as st, BasicShadowMap as at, MathUtils as x, Object3D as f, AmbientLight as rt, PointLight as nt, SphereGeometry as V, MeshBasicMaterial as H, FrontSide as Y, Mesh as M, HemisphereLight as ot, DirectionalLight as ht, Vector3 as h, Box3 as w, Quaternion as k, Box3Helper as lt, Sphere as dt, MeshStandardMaterial as A, Raycaster as ct, CylinderGeometry as ut, BufferGeometry as W, BufferAttribute as z, BoxGeometry as I, ConeGeometry as pt, LineDashedMaterial as mt, Line as _t, PlaneGeometry as gt, Color as g, GridHelper as ft, Scene as wt, TOUCH as m, MOUSE as p, EventDispatcher as yt, Spherical as B, Vector2 as c, AxesHelper as bt, Matrix4 as Dt, OrthographicCamera as Et, Vector4 as St } from "three";
5
- import { P as _, U as Pt, H as vt, C as y, a as xt, D as G } from "./PerspectiveCamera-BFzE2TQU.mjs";
6
- import T from "three-spritetext";
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 Z = {
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 N {
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
- ...Z,
56
+ ...W,
58
57
  ...e ?? {}
59
58
  }, this._webglrenderer = this._createWebGLRenderer();
60
59
  }
@@ -77,20 +76,20 @@ class N {
77
76
  this._webglrenderer.dispose(), this._settings.canvas = s, this._webglrenderer = this._createWebGLRenderer();
78
77
  }
79
78
  _createWebGLRenderer() {
80
- const s = new et(this._settings);
81
- return s.shadowMap.enabled = this._settings.shadows, s.shadowMap.type = this._settings.shadowQuality === "high" ? it : this._settings.shadowQuality === "medium" ? st : at, s.setPixelRatio(window.devicePixelRatio), s;
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 te = N;
85
- class Lt {
83
+ const Gt = H;
84
+ class yt {
86
85
  constructor(s, t) {
87
86
  i(this, "isDIVEResizeManager", !0);
88
87
  i(this, "_resizeObserver");
89
88
  i(this, "_width", 0);
90
89
  i(this, "_height", 0);
91
90
  this._renderer = s, this._camera = t, this._resizeObserver = new ResizeObserver((e) => {
92
- const a = e[0], { width: r, height: n } = a.contentRect;
93
- r === this._width && n === this._height || (this._camera.onResize(r, n), this._renderer.onResize(r, n), this._width = r, this._height = n, this._renderer.render());
91
+ const a = e[0], { width: n, height: r } = a.contentRect;
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) {
@@ -111,18 +110,18 @@ class Lt {
111
110
  }
112
111
  }
113
112
  }
114
- class F {
113
+ class B {
115
114
  constructor(s, t, e) {
116
115
  i(this, "isDIVEView", !0);
117
- i(this, "uuid", x.generateUUID());
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 N(
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 Lt(
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 It extends f {
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 rt(16777215, 1), this._light.layers.mask = _, this.add(this._light);
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 Tt extends f {
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 nt(16777215, 1), this.light.layers.mask = _, this.light.castShadow = !0, this.light.shadow.mapSize.width = 512, this.light.shadow.mapSize.height = 512, this.add(this.light);
192
- const t = 0.1, e = new V(
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 H({
195
+ ), a = new F({
197
196
  color: this.light.color,
198
197
  transparent: !0,
199
198
  opacity: 0.8,
200
- side: Y
199
+ side: U
201
200
  });
202
- this.mesh = new M(e, a), this.mesh.layers.mask = Pt, this.add(this.mesh);
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 kt extends f {
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 ot(16777215, 16777215, 2), this._hemiLight.layers.mask = _, this._hemiLight.position.set(0, 50, 0), this._hemiLight.visible = !0, this.add(this._hemiLight), this._dirLight = new ht(16777215, 3), this._dirLight.layers.mask = _, 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;
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 X = (o) => o.parent ? X(o.parent) : o;
262
- class C extends f {
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 = _, this._positionWorldBuffer = new h(), this._boundingBox = new w();
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 R extends C {
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 r = new w();
372
- e ? r.setFromObject(t) : (t.updateWorldMatrix(!0, !0), t.traverse((l) => {
370
+ const n = new g();
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 D = d.getWorldQuaternion(new k()).invert();
377
- u.applyQuaternion(D), u.computeBoundingBox(), u.boundingBox && r.union(u.boundingBox);
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 = r, this._size = r.getSize(new h()), this._center = r.getCenter(new h()), this._boxHelper = new lt(this._box, a), this._boxHelper.visible = !1, this.add(this._boxHelper), this._sphere = r.getBoundingSphere(new dt()), this._radius = this._sphere.radius;
380
- const n = new V(this._radius, 32, 32);
381
- n.translate(this._center.x, this._center.y, this._center.z), this._sphereHelper = new M(
382
- n,
383
- new H({ color: a, wireframe: !0 })
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(
381
+ r,
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 q extends C {
459
+ class N extends V {
461
460
  constructor() {
462
461
  super();
463
462
  i(this, "isDIVEModel", !0);
@@ -472,9 +471,9 @@ class q extends C {
472
471
  }
473
472
  async setFromURL(t) {
474
473
  const a = await (await this._getAssetLoader()).load(t);
475
- return this.setFromGLTF(a), import("../plugins/state/index.mjs").then(({ State: r }) => {
476
- var n;
477
- (n = r.get(this.userData.id)) == null || n.performAction("MODEL_LOADED", {
474
+ return this.setFromGLTF(a), import("../plugins/state/index.mjs").then(({ State: n }) => {
475
+ var r;
476
+ (r = n.get(this.userData.id)) == null || r.performAction("MODEL_LOADED", {
478
477
  id: this.userData.id
479
478
  });
480
479
  }), this;
@@ -485,18 +484,18 @@ class q extends C {
485
484
  }), this.add(this._gltf), this;
486
485
  }
487
486
  setMaterial(t) {
488
- this._material || (this._material = new A()), 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);
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 w();
493
- this.children.forEach((n) => {
494
- n instanceof R || a.expandByObject(n, !0);
491
+ const t = this.getWorldPosition(this._positionWorldBuffer), e = t.clone(), a = new g();
492
+ this.children.forEach((r) => {
493
+ r instanceof T || a.expandByObject(r, !0);
495
494
  });
496
- const r = -a.min.y;
497
- Math.abs(r) < 1e-9 || (t.y += r, t.y !== e.y && (this.setPosition(t), import("../plugins/state/index.mjs").then(({ State: n }) => {
495
+ const n = -a.min.y;
496
+ Math.abs(n) < 1e-9 || (t.y += n, t.y !== e.y && (this.setPosition(t), import("../plugins/state/index.mjs").then(({ State: r }) => {
498
497
  var l;
499
- (l = n.get(this.userData.id)) == null || l.performAction("UPDATE_OBJECT", {
498
+ (l = r.get(this.userData.id)) == null || l.performAction("UPDATE_OBJECT", {
500
499
  id: this.userData.id,
501
500
  position: t,
502
501
  rotation: this.rotation,
@@ -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 w();
514
+ const t = this.getWorldPosition(this._positionWorldBuffer), e = t.clone(), a = new g();
516
515
  this.children.forEach((d) => {
517
- d instanceof R || a.expandByObject(d, !0);
516
+ d instanceof T || a.expandByObject(d, !0);
518
517
  });
519
- const r = a.getCenter(new h());
520
- r.y = a.min.y;
521
- const n = new ct(r, new h(0, -1, 0));
522
- n.layers.mask = _;
523
- const l = n.intersectObjects(
524
- X(this).root.children,
518
+ const n = a.getCenter(new h());
519
+ n.y = a.min.y;
520
+ const r = new rt(n, new h(0, -1, 0));
521
+ r.layers.mask = f;
522
+ const l = r.intersectObjects(
523
+ Z(this).root.children,
525
524
  !0
526
525
  );
527
526
  if (l.length > 0) {
528
- const d = l[0].object, E = new w().setFromObject(d).max.y - a.min.y;
529
- if (Math.abs(E) < 1e-9 || (t.y += E, t.y === e.y)) return;
530
- this.setPosition(t), import("../plugins/state/index.mjs").then(({ State: L }) => {
531
- var S;
532
- (S = L.get(this.userData.id)) == null || S.performAction("UPDATE_OBJECT", {
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 Rt extends q {
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 M(), this._mesh.name = "PrimitiveMesh", this._mesh.layers.mask = _, this._mesh.castShadow = !0, this._mesh.receiveShadow = !0, this.add(this._mesh), this._material = new A(), this._mesh.material = this._material;
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 ut(
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 V(t.width / 2, 256, 256);
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
- ]), r = new W();
632
- return r.setAttribute(
630
+ ]), n = new Y();
631
+ return n.setAttribute(
633
632
  "position",
634
- new z(e, 3)
635
- ), r.setIndex(new z(a, 1)), r;
633
+ new C(e, 3)
634
+ ), n.setIndex(new C(a, 1)), n;
636
635
  }
637
636
  createBoxGeometry(t) {
638
- const e = new I(
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 pt(t.width / 2, t.height, 256);
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 I(
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 I(
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 Vt extends C {
666
+ class Pt extends V {
668
667
  // lines to children
669
668
  constructor() {
670
669
  super();
@@ -684,8 +683,8 @@ class Vt extends C {
684
683
  }
685
684
  setLinesVisibility(t, e) {
686
685
  if (!e) {
687
- this._lines.forEach((r) => {
688
- r.visible = t;
686
+ this._lines.forEach((n) => {
687
+ n.visible = t;
689
688
  });
690
689
  return;
691
690
  }
@@ -718,11 +717,11 @@ class Vt extends C {
718
717
  * Creates a line for visualization.
719
718
  */
720
719
  createLine() {
721
- const t = new W(), e = new mt({
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 _t(t, e);
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 At extends M {
785
+ class vt extends v {
787
786
  constructor() {
788
- const t = new gt(1, 1);
787
+ const t = new ct(1, 1);
789
788
  t.scale(1e3, 1e3, 1), t.rotateX(-Math.PI / 2);
790
- const e = new A({
791
- color: new g(16777215),
792
- side: Y
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 = _, this.receiveShadow = !0;
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 g(t);
801
+ this.material.color = new P(t);
803
802
  }
804
803
  }
805
- class Ct extends f {
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 At(), this.add(this._floor);
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 w();
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 kt();
840
+ e = new Et();
842
841
  break;
843
842
  }
844
843
  case "ambient": {
845
- e = new It();
844
+ e = new bt();
846
845
  break;
847
846
  }
848
847
  case "point": {
849
- e = new Tt();
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 q(), e.name = t.name, e.userData.id = t.id, e.userData.uri = t.uri, this.add(e), this._updateModel(e, t);
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 Rt(), e.name = t.name, e.userData.id = t.id, this.add(e), this._updatePrimitive(e, t);
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 Vt(), e.name = t.name, e.userData.id = t.id, this.add(e), this._updateGroup(e, t);
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 g(e.color)), e.visible !== void 0 && e.visible !== null && (t.visible = e.visible), e.parentId !== void 0 && this._setParent({ ...e, parentId: e.parentId });
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 Ot = "#888888", zt = "#dddddd";
998
- class Bt extends f {
996
+ const Lt = "#888888", It = "#dddddd";
997
+ class Tt extends _ {
999
998
  constructor() {
1000
999
  super(), this.name = "Grid";
1001
- const s = new ft(
1000
+ const s = new ut(
1002
1001
  100,
1003
1002
  100,
1004
- Ot,
1005
- zt
1003
+ Lt,
1004
+ It
1006
1005
  );
1007
- s.material.depthTest = !1, s.layers.mask = vt, this.add(s);
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 v = {
1012
+ const S = {
1014
1013
  displayFloor: !1,
1015
1014
  displayGrid: !1,
1016
1015
  backgroundColor: "#ffffff"
1017
1016
  };
1018
- class Gt extends wt {
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) ?? v.backgroundColor
1026
- ), this._root = new Ct(), this._root.floor.setVisibility(
1027
- (t == null ? void 0 : t.displayFloor) ?? v.displayFloor
1028
- ), this.add(this._root), this._grid = new Bt(), this._grid.setVisibility(
1029
- (t == null ? void 0 : t.displayGrid) ?? v.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 g(t);
1038
+ this.background = new P(t);
1040
1039
  }
1041
1040
  computeSceneBB() {
1042
1041
  return this._root.computeSceneBB();
1043
1042
  }
1044
1043
  }
1045
- const Ft = {
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
- }, b = class b extends yt {
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", x.generateUUID());
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 B());
1135
- i(this, "sphericalDelta", new B());
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 k());
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,10 +1316,10 @@ 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 k().setFromUnitVectors(
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
- ), this.quatInverse = this.quat.clone().invert(), this.domElements.forEach((r) => this.addEventListeners(r)), this.update();
1322
+ ), this.quatInverse = this.quat.clone().invert(), this.domElements.forEach((n) => this.addEventListeners(n)), this.update();
1324
1323
  }
1325
1324
  get domElement() {
1326
1325
  return this.domElements[0];
@@ -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, n = t.sphere.radius, l = this.object.fov * (Math.PI / 180), d = this.object.aspect, u = l / 2, D = Math.atan(Math.tan(u) * d), E = n / Math.sin(u), L = n / Math.sin(D), S = Math.max(E, L) * (1 + e), O = this.object.position.clone().sub(this.target).normalize(), $ = O.length() > 1e-3 ? O : new h(0, 0, 1);
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($.multiplyScalar(S)),
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 R(t), r = this.computeEncompassingView(a, e);
1386
- this.object.position.copy(r.position), this.target.copy(r.target), this.update();
1384
+ const a = new T(t), n = this.computeEncompassingView(a, e);
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 ?? b.DEFAULT_ZOOM_FACTOR)), this.update();
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 ?? b.DEFAULT_ZOOM_FACTOR)
1392
+ Math.pow(0.95, t ?? w.DEFAULT_ZOOM_FACTOR)
1394
1393
  ), this.update();
1395
1394
  }
1396
1395
  getState() {
@@ -1430,11 +1429,11 @@ const Ft = {
1430
1429
  this.sphericalDelta.phi -= t;
1431
1430
  }
1432
1431
  pan(t, e, a) {
1433
- const r = new h();
1432
+ const n = new h();
1434
1433
  if ("isPerspectiveCamera" in this.object) {
1435
- const n = this.object.position;
1436
- r.copy(n).sub(this.target);
1437
- let l = r.length();
1434
+ const r = this.object.position;
1435
+ n.copy(r).sub(this.target);
1436
+ let l = n.length();
1438
1437
  l *= Math.tan(
1439
1438
  this.object.fov / 2 * Math.PI / 180
1440
1439
  ), this.panLeft(
@@ -1516,21 +1515,21 @@ const Ft = {
1516
1515
  if (this.pointers.length === 1)
1517
1516
  this.rotateStart.set(t.pageX, t.pageY);
1518
1517
  else {
1519
- const e = this.getSecondPointer(t), a = 0.5 * (t.pageX + e.pageX), r = 0.5 * (t.pageY + e.pageY);
1520
- this.rotateStart.set(a, r);
1518
+ const e = this.getSecondPointer(t), a = 0.5 * (t.pageX + e.pageX), n = 0.5 * (t.pageY + e.pageY);
1519
+ this.rotateStart.set(a, n);
1521
1520
  }
1522
1521
  }
1523
1522
  handleTouchStartPan(t) {
1524
1523
  if (this.pointers.length === 1)
1525
1524
  this.panStart.set(t.pageX, t.pageY);
1526
1525
  else {
1527
- const e = this.getSecondPointer(t), a = 0.5 * (t.pageX + e.pageX), r = 0.5 * (t.pageY + e.pageY);
1528
- this.panStart.set(a, r);
1526
+ const e = this.getSecondPointer(t), a = 0.5 * (t.pageX + e.pageX), n = 0.5 * (t.pageY + e.pageY);
1527
+ this.panStart.set(a, n);
1529
1528
  }
1530
1529
  }
1531
1530
  handleTouchStartDolly(t) {
1532
- const e = this.getSecondPointer(t), a = t.pageX - e.pageX, r = t.pageY - e.pageY, n = Math.sqrt(a * a + r * r);
1533
- this.dollyStart.set(0, n);
1531
+ const e = this.getSecondPointer(t), a = t.pageX - e.pageX, n = t.pageY - e.pageY, r = Math.sqrt(a * a + n * n);
1532
+ this.dollyStart.set(0, r);
1534
1533
  }
1535
1534
  handleTouchStartDollyPan(t) {
1536
1535
  this.enableZoom && this.handleTouchStartDolly(t), this.enablePan && this.handleTouchStartPan(t);
@@ -1542,8 +1541,8 @@ const Ft = {
1542
1541
  if (this.pointers.length === 1)
1543
1542
  this.rotateEnd.set(t.pageX, t.pageY);
1544
1543
  else {
1545
- const a = this.getSecondPointer(t), r = 0.5 * (t.pageX + a.pageX), n = 0.5 * (t.pageY + a.pageY);
1546
- this.rotateEnd.set(r, n);
1544
+ const a = this.getSecondPointer(t), n = 0.5 * (t.pageX + a.pageX), r = 0.5 * (t.pageY + a.pageY);
1545
+ this.rotateEnd.set(n, r);
1547
1546
  }
1548
1547
  const e = t.currentTarget;
1549
1548
  this.rotateDelta.subVectors(this.rotateEnd, this.rotateStart).multiplyScalar(this.rotateSpeed), this.rotateLeft(
@@ -1556,15 +1555,15 @@ const Ft = {
1556
1555
  if (this.pointers.length === 1)
1557
1556
  this.panEnd.set(t.pageX, t.pageY);
1558
1557
  else {
1559
- const a = this.getSecondPointer(t), r = 0.5 * (t.pageX + a.pageX), n = 0.5 * (t.pageY + a.pageY);
1560
- this.panEnd.set(r, n);
1558
+ const a = this.getSecondPointer(t), n = 0.5 * (t.pageX + a.pageX), r = 0.5 * (t.pageY + a.pageY);
1559
+ this.panEnd.set(n, r);
1561
1560
  }
1562
1561
  const e = t.currentTarget;
1563
1562
  this.panDelta.subVectors(this.panEnd, this.panStart).multiplyScalar(this.panSpeed), this.pan(this.panDelta.x, this.panDelta.y, e), this.panStart.copy(this.panEnd);
1564
1563
  }
1565
1564
  handleTouchMoveDolly(t) {
1566
- const e = this.getSecondPointer(t), a = t.pageX - e.pageX, r = t.pageY - e.pageY, n = Math.sqrt(a * a + r * r);
1567
- this.dollyEnd.set(0, n), this.dollyDelta.set(
1565
+ const e = this.getSecondPointer(t), a = t.pageX - e.pageX, n = t.pageY - e.pageY, r = Math.sqrt(a * a + n * n);
1566
+ this.dollyEnd.set(0, r), this.dollyDelta.set(
1568
1567
  0,
1569
1568
  Math.pow(this.dollyEnd.y / this.dollyStart.y, this.zoomSpeed)
1570
1569
  ), this.dollyOut(this.dollyDelta.y), this.dollyStart.copy(this.dollyEnd);
@@ -1599,53 +1598,9 @@ const Ft = {
1599
1598
  );
1600
1599
  }
1601
1600
  };
1602
- i(b, "DEFAULT_ZOOM_FACTOR", 1);
1603
- let U = b;
1604
- class Ut extends f {
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 P = {
1638
+ const E = {
1684
1639
  autoStart: !0,
1685
1640
  displayAxes: !1,
1686
- ...v,
1687
- ...xt,
1688
- ...Z,
1689
- ...Ft
1641
+ ...S,
1642
+ ..._t,
1643
+ ...W,
1644
+ ...xt
1690
1645
  };
1691
- class Wt {
1646
+ class Vt {
1692
1647
  constructor(s) {
1693
1648
  // descriptive members
1694
- i(this, "_instanceId", x.generateUUID());
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, "orientationDisplay");
1655
+ i(this, "_orientationDisplay", null);
1701
1656
  this._settings = {
1702
- ...P,
1657
+ ...E,
1703
1658
  ...s ?? {}
1704
- }, this._clock = new Mt(), this._scene = new Gt({
1705
- backgroundColor: (s == null ? void 0 : s.backgroundColor) ?? P.backgroundColor,
1706
- displayGrid: (s == null ? void 0 : s.displayGrid) ?? P.displayGrid,
1707
- displayFloor: (s == null ? void 0 : s.displayFloor) ?? P.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 F(
1664
+ const t = new B(
1710
1665
  this._scene,
1711
- new G(),
1666
+ new z(),
1712
1667
  this._settings
1713
1668
  );
1714
- this._clock.addTicker(t), this._views = [t], this._mainView = t, this._settings.autoStart && this.start(), this._settings.displayAxes ? (console.log("displayAxes", this._settings.displayAxes), this.orientationDisplay = new Ht(
1715
- this.mainView.renderer,
1716
- this.scene,
1717
- this.mainView.camera
1718
- ), this.clock.addTicker(this.orientationDisplay)) : this.orientationDisplay = null, console.log("DIVE 2.2.5 initialized successfully!"), console.log(Yt), window.DIVE.instances.push(this);
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.orientationDisplay && (this._clock.removeTicker(this.orientationDisplay), this.orientationDisplay.dispose()), window.DIVE.instances = window.DIVE.instances.filter(
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 F(
1741
+ const t = new B(
1783
1742
  this._scene,
1784
- s ?? new G(),
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 ee = Wt, K = "#c20017", Q = "#00ab26", J = "#0081d4", Zt = K, Nt = Q, Xt = J, qt = {
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
- }, ie = Object.values(qt).map(
1769
+ }, Ut = Object.values(At).map(
1811
1770
  (o) => o.extension
1812
1771
  );
1813
1772
  export {
1814
- Zt as A,
1815
- C as B,
1816
- Rt as C,
1817
- P as D,
1818
- Ct as E,
1819
- R as F,
1820
- Ot as G,
1821
- X as H,
1822
- qt as I,
1823
- Ft as O,
1824
- ie as S,
1825
- U as a,
1826
- Ht as b,
1827
- Ut as c,
1828
- Wt as d,
1829
- kt as e,
1830
- q as f,
1831
- Nt as g,
1832
- Xt as h,
1833
- ee as i,
1834
- Mt as j,
1835
- Z as k,
1836
- N as l,
1837
- te as m,
1838
- Lt as n,
1839
- v as o,
1840
- Gt as p,
1841
- F as q,
1842
- K as r,
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
  };