@shopware-ag/dive 2.0.1-beta.1 → 2.0.1-beta.3

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 (80) hide show
  1. package/build/chunks/FileTypes-DuVGjbcR.mjs +36 -0
  2. package/build/chunks/FileTypes-DzVpDu_p.cjs +1 -0
  3. package/build/chunks/{SelectTool-BAXTVyWs.cjs → SelectTool-C7nerV4P.cjs} +1 -1
  4. package/build/chunks/{SelectTool-Bd8cC9nb.mjs → SelectTool-DmuTopJx.mjs} +35 -35
  5. package/build/chunks/draco_decoder-Bh9flJPu.cjs +1 -0
  6. package/build/chunks/draco_decoder-CEzwqP9o.mjs +38 -0
  7. package/build/chunks/draco_decoder-DtHHc5d0.mjs +4 -0
  8. package/build/chunks/draco_decoder-DvYjcLz_.cjs +35 -0
  9. package/build/chunks/draco_wasm_wrapper-FoEVV9af.cjs +118 -0
  10. package/build/chunks/draco_wasm_wrapper-yQy2VLhb.mjs +121 -0
  11. package/build/chunks/fflate.module-DHdJvhNh.cjs +6 -0
  12. package/build/chunks/fflate.module-xyO_T3Zm.mjs +602 -0
  13. package/build/chunks/index-C7Wx_9uY.mjs +33 -0
  14. package/build/chunks/index-MNP0K5dt.cjs +1 -0
  15. package/build/chunks/{package-BHjZWYD6.mjs → package-C16N_5TP.mjs} +1 -1
  16. package/build/chunks/{package-JHvTSNgQ.cjs → package-CafekLb8.cjs} +1 -1
  17. package/build/chunks/parse-error-BFRJyIxM.mjs +14 -0
  18. package/build/chunks/parse-error-Bd09D_1L.cjs +1 -0
  19. package/build/dive.cjs +2 -2
  20. package/build/dive.mjs +136 -121
  21. package/build/src/components/group/Group.d.ts +4 -4
  22. package/build/src/components/node/Node.d.ts +4 -4
  23. package/build/src/components/primitive/Primitive.d.ts +1 -1
  24. package/build/src/core/Dive.d.ts +2 -2
  25. package/build/src/engine/scene/xrroot/XRRoot.d.ts +2 -2
  26. package/build/src/engine/scene/xrroot/xrlightroot/XRLightRoot.d.ts +2 -2
  27. package/build/src/index.d.ts +4 -4
  28. package/build/src/modules/animation/AnimationSystem.cjs +1 -1
  29. package/build/src/modules/animation/AnimationSystem.d.ts +2 -2
  30. package/build/src/modules/animation/AnimationSystem.mjs +2 -2
  31. package/build/src/modules/ar/ARSystem.cjs +1 -1
  32. package/build/src/modules/ar/ARSystem.mjs +2 -2
  33. package/build/src/modules/ar/webxr/WebXR.d.ts +2 -2
  34. package/build/src/modules/ar/webxr/controller/WebXRController.d.ts +3 -3
  35. package/build/src/modules/ar/webxr/crosshair/WebXRCrosshair.d.ts +2 -2
  36. package/build/src/modules/ar/webxr/origin/WebXROrigin.d.ts +3 -3
  37. package/build/src/modules/ar/webxr/overlay/Overlay.d.ts +2 -2
  38. package/build/src/modules/ar/webxr/raycaster/WebXRRaycaster.d.ts +4 -4
  39. package/build/src/modules/ar/webxr/raycaster/ar/WebXRRaycasterAR.d.ts +3 -3
  40. package/build/src/modules/ar/webxr/raycaster/three/WebXRRaycasterTHREE.d.ts +2 -2
  41. package/build/src/modules/ar/webxr/touchscreencontrols/WebXRTouchscreenControls.d.ts +1 -1
  42. package/build/src/modules/asset/draco/DracoLoader.d.ts +10 -0
  43. package/build/src/modules/asset/exporter/AssetExporter.cjs +24 -24
  44. package/build/src/modules/asset/exporter/AssetExporter.mjs +4 -3
  45. package/build/src/modules/asset/loader/AssetLoader.cjs +4 -3
  46. package/build/src/modules/asset/loader/AssetLoader.mjs +765 -584
  47. package/build/src/modules/axiscamera/AxisCamera.d.ts +2 -2
  48. package/build/src/modules/events/EventExecutor.d.ts +1 -1
  49. package/build/src/modules/mediacreator/MediaCreator.cjs +1 -1
  50. package/build/src/modules/mediacreator/MediaCreator.d.ts +2 -2
  51. package/build/src/modules/mediacreator/MediaCreator.mjs +3 -3
  52. package/build/src/modules/state/State.cjs +7 -7
  53. package/build/src/modules/state/State.d.ts +1 -1
  54. package/build/src/modules/state/State.mjs +148 -148
  55. package/build/src/modules/systeminfo/SystemInfo.cjs +1 -1
  56. package/build/src/modules/systeminfo/SystemInfo.mjs +112 -3
  57. package/build/src/modules/toolbox/BaseTool.d.ts +2 -2
  58. package/build/src/modules/toolbox/Toolbox.cjs +1 -1
  59. package/build/src/modules/toolbox/Toolbox.d.ts +6 -6
  60. package/build/src/modules/toolbox/Toolbox.mjs +16 -16
  61. package/build/src/modules/toolbox/select/SelectTool.d.ts +5 -5
  62. package/build/src/modules/toolbox/transform/TransformTool.d.ts +4 -4
  63. package/package.json +2 -1
  64. package/build/chunks/FileTypes-BjZ0rrIV.cjs +0 -1
  65. package/build/chunks/FileTypes-qgYnI0Jg.mjs +0 -30
  66. package/build/chunks/SystemInfo-DPAQG-S5.mjs +0 -139
  67. package/build/chunks/SystemInfo-oX-NNneO.cjs +0 -1
  68. package/build/chunks/index-C_uFFwT2.mjs +0 -5
  69. package/build/chunks/index-DAwIH9xh.cjs +0 -1
  70. package/build/chunks/parse-error-2f5qpXP5.cjs +0 -6
  71. package/build/chunks/parse-error-DRBVHL9E.mjs +0 -614
  72. package/build/src/modules/asset/draco/README.md +0 -32
  73. package/build/src/modules/asset/draco/draco_decoder.js +0 -33
  74. package/build/src/modules/asset/draco/draco_decoder.wasm +0 -0
  75. package/build/src/modules/asset/draco/draco_encoder.js +0 -33
  76. package/build/src/modules/asset/draco/draco_wasm_wrapper.js +0 -116
  77. package/build/src/modules/asset/draco/gltf/draco_decoder.js +0 -33
  78. package/build/src/modules/asset/draco/gltf/draco_decoder.wasm +0 -0
  79. package/build/src/modules/asset/draco/gltf/draco_encoder.js +0 -33
  80. package/build/src/modules/asset/draco/gltf/draco_wasm_wrapper.js +0 -116
package/build/dive.mjs CHANGED
@@ -1,19 +1,20 @@
1
1
  var Dt = Object.defineProperty;
2
2
  var xt = (h, s, t) => s in h ? Dt(h, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[s] = t;
3
3
  var a = (h, s, t) => xt(h, typeof s != "symbol" ? s + "" : s, t);
4
- import { Ray as St, Plane as Tt, MathUtils as C, EventDispatcher as Lt, Vector3 as m, MOUSE as U, TOUCH as G, Spherical as Ne, Quaternion as Fe, Vector2 as E, OrthographicCamera as Pt, Vector4 as Mt, AxesHelper as It, Color as D, Matrix4 as Ct, Object3D as j, AmbientLight as vt, PointLight as Ot, SphereGeometry as Ke, MeshBasicMaterial as At, FrontSide as kt, Mesh as pe, HemisphereLight as Rt, DirectionalLight as Vt, Box3 as Ze, MeshStandardMaterial as fe, Raycaster as Xe, CylinderGeometry as Bt, BufferGeometry as qe, BufferAttribute as Ye, BoxGeometry as de, ConeGeometry as zt, LineDashedMaterial as Nt, Line as Ft, PlaneGeometry as Yt, GridHelper as Ut, Scene as Gt, WebGLRenderer as Ue } from "three";
4
+ import { Ray as Tt, Plane as Lt, MathUtils as C, EventDispatcher as Pt, Vector3 as m, MOUSE as G, TOUCH as U, Spherical as Ne, Quaternion as Fe, Vector2 as E, OrthographicCamera as St, Vector4 as It, AxesHelper as Mt, Color as D, Matrix4 as Ct, Object3D as j, AmbientLight as Ot, PointLight as vt, SphereGeometry as Ke, MeshBasicMaterial as At, FrontSide as kt, Mesh as pe, HemisphereLight as Rt, DirectionalLight as Vt, Box3 as Ze, MeshStandardMaterial as fe, Raycaster as Xe, CylinderGeometry as Bt, BufferGeometry as qe, BufferAttribute as Ye, BoxGeometry as de, ConeGeometry as zt, LineDashedMaterial as Nt, Line as Ft, PlaneGeometry as Yt, GridHelper as Gt, Scene as Ut, WebGLRenderer as Ge } from "three";
5
5
  import ue from "three-spritetext";
6
- import { C as q, P, U as jt, H as Ht } from "./chunks/VisibilityLayerMask-CXgt1fJc.mjs";
6
+ import { C as q, P as S, U as jt, H as Ht } from "./chunks/VisibilityLayerMask-CXgt1fJc.mjs";
7
7
  import { A as Wt, a as Kt, b as Zt, c as Xt, d as qt, e as Jt } from "./chunks/findInterface-OrXgmwxj.mjs";
8
8
  import { f as Fi, i as Yi } from "./chunks/findInterface-OrXgmwxj.mjs";
9
9
  import { g as w } from "./chunks/ModuleRegistry-RSub8W0G.mjs";
10
10
  import { D as $t, a as Qt } from "./chunks/PerspectiveCamera-sm4_81KJ.mjs";
11
- import { F as Gi, S as ji, g as Hi, i as Wi } from "./chunks/FileTypes-qgYnI0Jg.mjs";
12
- import { E as Zi, a as Xi } from "./chunks/index-C_uFFwT2.mjs";
13
- const Ge = { type: "change" }, me = { type: "start" }, je = { type: "end" }, ie = new St(), He = new Tt(), ei = Math.cos(70 * C.DEG2RAD);
14
- class ti extends Lt {
11
+ import { F as Ui, N as ji, S as Hi, g as Wi, i as Ki } from "./chunks/FileTypes-DuVGjbcR.mjs";
12
+ import { A as Xi, E as qi, a as Ji } from "./chunks/index-C7Wx_9uY.mjs";
13
+ import { F as Qi, P as es } from "./chunks/parse-error-BFRJyIxM.mjs";
14
+ const Ue = { type: "change" }, me = { type: "start" }, je = { type: "end" }, ie = new Tt(), He = new Lt(), ei = Math.cos(70 * C.DEG2RAD);
15
+ class ti extends Pt {
15
16
  constructor(s, t) {
16
- super(), this.object = s, this.domElement = t, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new m(), this.cursor = new m(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: U.ROTATE, MIDDLE: U.DOLLY, RIGHT: U.PAN }, this.touches = { ONE: G.ROTATE, TWO: G.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
17
+ super(), this.object = s, this.domElement = t, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new m(), this.cursor = new m(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: G.ROTATE, MIDDLE: G.DOLLY, RIGHT: G.PAN }, this.touches = { ONE: U.ROTATE, TWO: U.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
17
18
  return l.phi;
18
19
  }, this.getAzimuthalAngle = function() {
19
20
  return l.theta;
@@ -26,46 +27,46 @@ class ti extends Lt {
26
27
  }, this.saveState = function() {
27
28
  e.target0.copy(e.target), e.position0.copy(e.object.position), e.zoom0 = e.object.zoom;
28
29
  }, this.reset = function() {
29
- e.target.copy(e.target0), e.object.position.copy(e.position0), e.object.zoom = e.zoom0, e.object.updateProjectionMatrix(), e.dispatchEvent(Ge), e.update(), o = n.NONE;
30
+ e.target.copy(e.target0), e.object.position.copy(e.position0), e.object.zoom = e.zoom0, e.object.updateProjectionMatrix(), e.dispatchEvent(Ue), e.update(), o = n.NONE;
30
31
  }, this.update = function() {
31
- const i = new m(), r = new Fe().setFromUnitVectors(s.up, new m(0, 1, 0)), d = r.clone().invert(), u = new m(), y = new Fe(), I = new m(), b = 2 * Math.PI;
32
+ const i = new m(), r = new Fe().setFromUnitVectors(s.up, new m(0, 1, 0)), d = r.clone().invert(), u = new m(), y = new Fe(), M = new m(), b = 2 * Math.PI;
32
33
  return function(Et = null) {
33
34
  const Be = e.object.position;
34
35
  i.copy(Be).sub(e.target), i.applyQuaternion(r), l.setFromVector3(i), e.autoRotate && o === n.NONE && W(st(Et)), e.enableDamping ? (l.theta += p.theta * e.dampingFactor, l.phi += p.phi * e.dampingFactor) : (l.theta += p.theta, l.phi += p.phi);
35
- let S = e.minAzimuthAngle, T = e.maxAzimuthAngle;
36
- isFinite(S) && isFinite(T) && (S < -Math.PI ? S += b : S > Math.PI && (S -= b), T < -Math.PI ? T += b : T > Math.PI && (T -= b), S <= T ? l.theta = Math.max(S, Math.min(T, l.theta)) : l.theta = l.theta > (S + T) / 2 ? Math.max(S, l.theta) : Math.min(T, l.theta)), l.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, l.phi)), l.makeSafe(), e.enableDamping === !0 ? e.target.addScaledVector(_, e.dampingFactor) : e.target.add(_), e.target.sub(e.cursor), e.target.clampLength(e.minTargetRadius, e.maxTargetRadius), e.target.add(e.cursor);
36
+ let T = e.minAzimuthAngle, L = e.maxAzimuthAngle;
37
+ isFinite(T) && isFinite(L) && (T < -Math.PI ? T += b : T > Math.PI && (T -= b), L < -Math.PI ? L += b : L > Math.PI && (L -= b), T <= L ? l.theta = Math.max(T, Math.min(L, l.theta)) : l.theta = l.theta > (T + L) / 2 ? Math.max(T, l.theta) : Math.min(L, l.theta)), l.phi = Math.max(e.minPolarAngle, Math.min(e.maxPolarAngle, l.phi)), l.makeSafe(), e.enableDamping === !0 ? e.target.addScaledVector(_, e.dampingFactor) : e.target.add(_), e.target.sub(e.cursor), e.target.clampLength(e.minTargetRadius, e.maxTargetRadius), e.target.add(e.cursor);
37
38
  let Z = !1;
38
39
  if (e.zoomToCursor && $ || e.object.isOrthographicCamera)
39
40
  l.radius = he(l.radius);
40
41
  else {
41
- const L = l.radius;
42
- l.radius = he(l.radius * f), Z = L != l.radius;
42
+ const P = l.radius;
43
+ l.radius = he(l.radius * f), Z = P != l.radius;
43
44
  }
44
45
  if (i.setFromSpherical(l), i.applyQuaternion(d), Be.copy(e.target).add(i), e.object.lookAt(e.target), e.enableDamping === !0 ? (p.theta *= 1 - e.dampingFactor, p.phi *= 1 - e.dampingFactor, _.multiplyScalar(1 - e.dampingFactor)) : (p.set(0, 0, 0), _.set(0, 0, 0)), e.zoomToCursor && $) {
45
- let L = null;
46
+ let P = null;
46
47
  if (e.object.isPerspectiveCamera) {
47
48
  const X = i.length();
48
- L = he(X * f);
49
- const te = X - L;
49
+ P = he(X * f);
50
+ const te = X - P;
50
51
  e.object.position.addScaledVector(ye, te), e.object.updateMatrixWorld(), Z = !!te;
51
52
  } else if (e.object.isOrthographicCamera) {
52
- const X = new m(M.x, M.y, 0);
53
+ const X = new m(I.x, I.y, 0);
53
54
  X.unproject(e.object);
54
55
  const te = e.object.zoom;
55
56
  e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / f)), e.object.updateProjectionMatrix(), Z = te !== e.object.zoom;
56
- const ze = new m(M.x, M.y, 0);
57
- ze.unproject(e.object), e.object.position.sub(ze).add(X), e.object.updateMatrixWorld(), L = i.length();
57
+ const ze = new m(I.x, I.y, 0);
58
+ ze.unproject(e.object), e.object.position.sub(ze).add(X), e.object.updateMatrixWorld(), P = i.length();
58
59
  } else
59
60
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), e.zoomToCursor = !1;
60
- L !== null && (this.screenSpacePanning ? e.target.set(0, 0, -1).transformDirection(e.object.matrix).multiplyScalar(L).add(e.object.position) : (ie.origin.copy(e.object.position), ie.direction.set(0, 0, -1).transformDirection(e.object.matrix), Math.abs(e.object.up.dot(ie.direction)) < ei ? s.lookAt(e.target) : (He.setFromNormalAndCoplanarPoint(e.object.up, e.target), ie.intersectPlane(He, e.target))));
61
+ P !== null && (this.screenSpacePanning ? e.target.set(0, 0, -1).transformDirection(e.object.matrix).multiplyScalar(P).add(e.object.position) : (ie.origin.copy(e.object.position), ie.direction.set(0, 0, -1).transformDirection(e.object.matrix), Math.abs(e.object.up.dot(ie.direction)) < ei ? s.lookAt(e.target) : (He.setFromNormalAndCoplanarPoint(e.object.up, e.target), ie.intersectPlane(He, e.target))));
61
62
  } else if (e.object.isOrthographicCamera) {
62
- const L = e.object.zoom;
63
- e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / f)), L !== e.object.zoom && (e.object.updateProjectionMatrix(), Z = !0);
63
+ const P = e.object.zoom;
64
+ e.object.zoom = Math.max(e.minZoom, Math.min(e.maxZoom, e.object.zoom / f)), P !== e.object.zoom && (e.object.updateProjectionMatrix(), Z = !0);
64
65
  }
65
- return f = 1, $ = !1, Z || u.distanceToSquared(e.object.position) > c || 8 * (1 - y.dot(e.object.quaternion)) > c || I.distanceToSquared(e.target) > c ? (e.dispatchEvent(Ge), u.copy(e.object.position), y.copy(e.object.quaternion), I.copy(e.target), !0) : !1;
66
+ return f = 1, $ = !1, Z || u.distanceToSquared(e.object.position) > c || 8 * (1 - y.dot(e.object.quaternion)) > c || M.distanceToSquared(e.target) > c ? (e.dispatchEvent(Ue), u.copy(e.object.position), y.copy(e.object.quaternion), M.copy(e.target), !0) : !1;
66
67
  };
67
68
  }(), this.dispose = function() {
68
- e.domElement.removeEventListener("contextmenu", Re), e.domElement.removeEventListener("pointerdown", Ce), e.domElement.removeEventListener("pointercancel", K), e.domElement.removeEventListener("wheel", ve), e.domElement.removeEventListener("pointermove", le), e.domElement.removeEventListener("pointerup", K), e.domElement.getRootNode().removeEventListener("keydown", Oe, { capture: !0 }), e._domElementKeyEvents !== null && (e._domElementKeyEvents.removeEventListener("keydown", ce), e._domElementKeyEvents = null);
69
+ e.domElement.removeEventListener("contextmenu", Re), e.domElement.removeEventListener("pointerdown", Ce), e.domElement.removeEventListener("pointercancel", K), e.domElement.removeEventListener("wheel", Oe), e.domElement.removeEventListener("pointermove", le), e.domElement.removeEventListener("pointerup", K), e.domElement.getRootNode().removeEventListener("keydown", ve, { capture: !0 }), e._domElementKeyEvents !== null && (e._domElementKeyEvents.removeEventListener("keydown", ce), e._domElementKeyEvents = null);
69
70
  };
70
71
  const e = this, n = {
71
72
  NONE: -1,
@@ -80,7 +81,7 @@ class ti extends Lt {
80
81
  let o = n.NONE;
81
82
  const c = 1e-6, l = new Ne(), p = new Ne();
82
83
  let f = 1;
83
- const _ = new m(), v = new E(), O = new E(), V = new E(), A = new E(), k = new E(), B = new E(), z = new E(), N = new E(), R = new E(), ye = new m(), M = new E();
84
+ const _ = new m(), O = new E(), v = new E(), V = new E(), A = new E(), k = new E(), B = new E(), z = new E(), N = new E(), R = new E(), ye = new m(), I = new E();
84
85
  let $ = !1;
85
86
  const g = [], H = {};
86
87
  let oe = !1;
@@ -112,8 +113,8 @@ class ti extends Lt {
112
113
  return function(d, u) {
113
114
  const y = e.domElement;
114
115
  if (e.object.isPerspectiveCamera) {
115
- const I = e.object.position;
116
- i.copy(I).sub(e.target);
116
+ const M = e.object.position;
117
+ i.copy(M).sub(e.target);
117
118
  let b = i.length();
118
119
  b *= Math.tan(e.object.fov / 2 * Math.PI / 180), be(2 * d * b / y.clientHeight, e.object.matrix), we(2 * u * b / y.clientHeight, e.object.matrix);
119
120
  } else e.object.isOrthographicCamera ? (be(d * (e.object.right - e.object.left) / e.object.zoom / y.clientWidth, e.object.matrix), we(u * (e.object.top - e.object.bottom) / e.object.zoom / y.clientHeight, e.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), e.enablePan = !1);
@@ -129,14 +130,14 @@ class ti extends Lt {
129
130
  if (!e.zoomToCursor)
130
131
  return;
131
132
  $ = !0;
132
- const d = e.domElement.getBoundingClientRect(), u = i - d.left, y = r - d.top, I = d.width, b = d.height;
133
- M.x = u / I * 2 - 1, M.y = -(y / b) * 2 + 1, ye.set(M.x, M.y, 1).unproject(e.object).sub(e.object.position).normalize();
133
+ const d = e.domElement.getBoundingClientRect(), u = i - d.left, y = r - d.top, M = d.width, b = d.height;
134
+ I.x = u / M * 2 - 1, I.y = -(y / b) * 2 + 1, ye.set(I.x, I.y, 1).unproject(e.object).sub(e.object.position).normalize();
134
135
  }
135
136
  function he(i) {
136
137
  return Math.max(e.minDistance, Math.min(e.maxDistance, i));
137
138
  }
138
139
  function De(i) {
139
- v.set(i.clientX, i.clientY);
140
+ O.set(i.clientX, i.clientY);
140
141
  }
141
142
  function nt(i) {
142
143
  ae(i.clientX, i.clientX), z.set(i.clientX, i.clientY);
@@ -145,9 +146,9 @@ class ti extends Lt {
145
146
  A.set(i.clientX, i.clientY);
146
147
  }
147
148
  function ot(i) {
148
- O.set(i.clientX, i.clientY), V.subVectors(O, v).multiplyScalar(e.rotateSpeed);
149
+ v.set(i.clientX, i.clientY), V.subVectors(v, O).multiplyScalar(e.rotateSpeed);
149
150
  const r = e.domElement;
150
- W(2 * Math.PI * V.x / r.clientHeight), ee(2 * Math.PI * V.y / r.clientHeight), v.copy(O), e.update();
151
+ W(2 * Math.PI * V.x / r.clientHeight), ee(2 * Math.PI * V.y / r.clientHeight), O.copy(v), e.update();
151
152
  }
152
153
  function rt(i) {
153
154
  N.set(i.clientX, i.clientY), R.subVectors(N, z), R.y > 0 ? re(Q(R.y)) : R.y < 0 && Ee(Q(R.y)), z.copy(N), e.update();
@@ -176,15 +177,15 @@ class ti extends Lt {
176
177
  }
177
178
  r && (i.preventDefault(), e.update());
178
179
  }
179
- function Se(i) {
180
+ function Te(i) {
180
181
  if (g.length === 1)
181
- v.set(i.pageX, i.pageY);
182
+ O.set(i.pageX, i.pageY);
182
183
  else {
183
184
  const r = Y(i), d = 0.5 * (i.pageX + r.x), u = 0.5 * (i.pageY + r.y);
184
- v.set(d, u);
185
+ O.set(d, u);
185
186
  }
186
187
  }
187
- function Te(i) {
188
+ function Le(i) {
188
189
  if (g.length === 1)
189
190
  A.set(i.pageX, i.pageY);
190
191
  else {
@@ -192,28 +193,28 @@ class ti extends Lt {
192
193
  A.set(d, u);
193
194
  }
194
195
  }
195
- function Le(i) {
196
+ function Pe(i) {
196
197
  const r = Y(i), d = i.pageX - r.x, u = i.pageY - r.y, y = Math.sqrt(d * d + u * u);
197
198
  z.set(0, y);
198
199
  }
199
200
  function ct(i) {
200
- e.enableZoom && Le(i), e.enablePan && Te(i);
201
+ e.enableZoom && Pe(i), e.enablePan && Le(i);
201
202
  }
202
203
  function dt(i) {
203
- e.enableZoom && Le(i), e.enableRotate && Se(i);
204
+ e.enableZoom && Pe(i), e.enableRotate && Te(i);
204
205
  }
205
- function Pe(i) {
206
+ function Se(i) {
206
207
  if (g.length == 1)
207
- O.set(i.pageX, i.pageY);
208
+ v.set(i.pageX, i.pageY);
208
209
  else {
209
210
  const d = Y(i), u = 0.5 * (i.pageX + d.x), y = 0.5 * (i.pageY + d.y);
210
- O.set(u, y);
211
+ v.set(u, y);
211
212
  }
212
- V.subVectors(O, v).multiplyScalar(e.rotateSpeed);
213
+ V.subVectors(v, O).multiplyScalar(e.rotateSpeed);
213
214
  const r = e.domElement;
214
- W(2 * Math.PI * V.x / r.clientHeight), ee(2 * Math.PI * V.y / r.clientHeight), v.copy(O);
215
+ W(2 * Math.PI * V.x / r.clientHeight), ee(2 * Math.PI * V.y / r.clientHeight), O.copy(v);
215
216
  }
216
- function Me(i) {
217
+ function Ie(i) {
217
218
  if (g.length === 1)
218
219
  k.set(i.pageX, i.pageY);
219
220
  else {
@@ -222,17 +223,17 @@ class ti extends Lt {
222
223
  }
223
224
  B.subVectors(k, A).multiplyScalar(e.panSpeed), F(B.x, B.y), A.copy(k);
224
225
  }
225
- function Ie(i) {
226
+ function Me(i) {
226
227
  const r = Y(i), d = i.pageX - r.x, u = i.pageY - r.y, y = Math.sqrt(d * d + u * u);
227
228
  N.set(0, y), R.set(0, Math.pow(N.y / z.y, e.zoomSpeed)), re(R.y), z.copy(N);
228
- const I = (i.pageX + r.x) * 0.5, b = (i.pageY + r.y) * 0.5;
229
- ae(I, b);
229
+ const M = (i.pageX + r.x) * 0.5, b = (i.pageY + r.y) * 0.5;
230
+ ae(M, b);
230
231
  }
231
232
  function ut(i) {
232
- e.enableZoom && Ie(i), e.enablePan && Me(i);
233
+ e.enableZoom && Me(i), e.enablePan && Ie(i);
233
234
  }
234
235
  function mt(i) {
235
- e.enableZoom && Ie(i), e.enableRotate && Pe(i);
236
+ e.enableZoom && Me(i), e.enableRotate && Se(i);
236
237
  }
237
238
  function Ce(i) {
238
239
  e.enabled !== !1 && (g.length === 0 && (e.domElement.setPointerCapture(i.pointerId), e.domElement.addEventListener("pointermove", le), e.domElement.addEventListener("pointerup", K)), !wt(i) && (yt(i), i.pointerType === "touch" ? ke(i) : pt(i)));
@@ -267,11 +268,11 @@ class ti extends Lt {
267
268
  r = -1;
268
269
  }
269
270
  switch (r) {
270
- case U.DOLLY:
271
+ case G.DOLLY:
271
272
  if (e.enableZoom === !1) return;
272
273
  nt(i), o = n.DOLLY;
273
274
  break;
274
- case U.ROTATE:
275
+ case G.ROTATE:
275
276
  if (i.ctrlKey || i.metaKey || i.shiftKey) {
276
277
  if (e.enablePan === !1) return;
277
278
  xe(i), o = n.PAN;
@@ -280,7 +281,7 @@ class ti extends Lt {
280
281
  De(i), o = n.ROTATE;
281
282
  }
282
283
  break;
283
- case U.PAN:
284
+ case G.PAN:
284
285
  if (i.ctrlKey || i.metaKey || i.shiftKey) {
285
286
  if (e.enableRotate === !1) return;
286
287
  De(i), o = n.ROTATE;
@@ -310,7 +311,7 @@ class ti extends Lt {
310
311
  break;
311
312
  }
312
313
  }
313
- function ve(i) {
314
+ function Oe(i) {
314
315
  e.enabled === !1 || e.enableZoom === !1 || o !== n.NONE || (i.preventDefault(), e.dispatchEvent(me), ht(gt(i)), e.dispatchEvent(je));
315
316
  }
316
317
  function gt(i) {
@@ -329,7 +330,7 @@ class ti extends Lt {
329
330
  }
330
331
  return i.ctrlKey && !oe && (d.deltaY *= 10), d;
331
332
  }
332
- function Oe(i) {
333
+ function ve(i) {
333
334
  i.key === "Control" && (oe = !0, e.domElement.getRootNode().addEventListener("keyup", Ae, { passive: !0, capture: !0 }));
334
335
  }
335
336
  function Ae(i) {
@@ -342,13 +343,13 @@ class ti extends Lt {
342
343
  switch (Ve(i), g.length) {
343
344
  case 1:
344
345
  switch (e.touches.ONE) {
345
- case G.ROTATE:
346
+ case U.ROTATE:
346
347
  if (e.enableRotate === !1) return;
347
- Se(i), o = n.TOUCH_ROTATE;
348
+ Te(i), o = n.TOUCH_ROTATE;
348
349
  break;
349
- case G.PAN:
350
+ case U.PAN:
350
351
  if (e.enablePan === !1) return;
351
- Te(i), o = n.TOUCH_PAN;
352
+ Le(i), o = n.TOUCH_PAN;
352
353
  break;
353
354
  default:
354
355
  o = n.NONE;
@@ -356,11 +357,11 @@ class ti extends Lt {
356
357
  break;
357
358
  case 2:
358
359
  switch (e.touches.TWO) {
359
- case G.DOLLY_PAN:
360
+ case U.DOLLY_PAN:
360
361
  if (e.enableZoom === !1 && e.enablePan === !1) return;
361
362
  ct(i), o = n.TOUCH_DOLLY_PAN;
362
363
  break;
363
- case G.DOLLY_ROTATE:
364
+ case U.DOLLY_ROTATE:
364
365
  if (e.enableZoom === !1 && e.enableRotate === !1) return;
365
366
  dt(i), o = n.TOUCH_DOLLY_ROTATE;
366
367
  break;
@@ -377,11 +378,11 @@ class ti extends Lt {
377
378
  switch (Ve(i), o) {
378
379
  case n.TOUCH_ROTATE:
379
380
  if (e.enableRotate === !1) return;
380
- Pe(i), e.update();
381
+ Se(i), e.update();
381
382
  break;
382
383
  case n.TOUCH_PAN:
383
384
  if (e.enablePan === !1) return;
384
- Me(i), e.update();
385
+ Ie(i), e.update();
385
386
  break;
386
387
  case n.TOUCH_DOLLY_PAN:
387
388
  if (e.enableZoom === !1 && e.enablePan === !1) return;
@@ -422,7 +423,7 @@ class ti extends Lt {
422
423
  const r = i.pointerId === g[0] ? g[1] : g[0];
423
424
  return H[r];
424
425
  }
425
- e.domElement.addEventListener("contextmenu", Re), e.domElement.addEventListener("pointerdown", Ce), e.domElement.addEventListener("pointercancel", K), e.domElement.addEventListener("wheel", ve, { passive: !1 }), e.domElement.getRootNode().addEventListener("keydown", Oe, { passive: !0, capture: !0 }), this.update();
426
+ e.domElement.addEventListener("contextmenu", Re), e.domElement.addEventListener("pointerdown", Ce), e.domElement.addEventListener("pointercancel", K), e.domElement.addEventListener("wheel", Oe, { passive: !1 }), e.domElement.getRootNode().addEventListener("keydown", ve, { passive: !0, capture: !0 }), this.update();
426
427
  }
427
428
  }
428
429
  const se = {
@@ -464,15 +465,15 @@ const se = {
464
465
  };
465
466
  a(J, "DEFAULT_ZOOM_FACTOR", 1);
466
467
  let ne = J;
467
- class ii extends Pt {
468
+ class ii extends St {
468
469
  constructor(t, e, n) {
469
470
  super(-1, 1, 1, -1, 0.1, 100);
470
471
  a(this, "axesHelper");
471
472
  a(this, "_renderer");
472
473
  a(this, "_scene");
473
474
  a(this, "_camera");
474
- a(this, "_restoreViewport", new Mt());
475
- this.layers.mask = q, this.axesHelper = new It(0.5), this.axesHelper.layers.mask = q, this.axesHelper.material.depthTest = !1, this.axesHelper.position.set(0, 0, -1), this.axesHelper.setColors(
475
+ a(this, "_restoreViewport", new It());
476
+ this.layers.mask = q, this.axesHelper = new Mt(0.5), this.axesHelper.layers.mask = q, this.axesHelper.material.depthTest = !1, this.axesHelper.position.set(0, 0, -1), this.axesHelper.setColors(
476
477
  new D(Wt),
477
478
  new D(Kt),
478
479
  new D(Zt)
@@ -482,12 +483,12 @@ class ii extends Pt {
482
483
  }
483
484
  tick() {
484
485
  const t = this._scene.background;
485
- this._scene.background = null, this._renderer.webglrenderer.getViewport(this._restoreViewport), this._renderer.webglrenderer.setViewport(0, 0, 150, 150), this._renderer.webglrenderer.autoClear = !1, this.SetFromCameraMatrix(this._camera.matrix), this._renderer.webglrenderer.render(this._scene, this), this._renderer.webglrenderer.setViewport(this._restoreViewport), this._renderer.webglrenderer.autoClear = !0, this._scene.background = t;
486
+ this._scene.background = null, this._renderer.webglrenderer.getViewport(this._restoreViewport), this._renderer.webglrenderer.setViewport(0, 0, 150, 150), this._renderer.webglrenderer.autoClear = !1, this.setFromCameraMatrix(this._camera.matrix), this._renderer.webglrenderer.render(this._scene, this), this._renderer.webglrenderer.setViewport(this._restoreViewport), this._renderer.webglrenderer.autoClear = !0, this._scene.background = t;
486
487
  }
487
- Dispose() {
488
+ dispose() {
488
489
  this._scene.remove(this);
489
490
  }
490
- SetFromCameraMatrix(t) {
491
+ setFromCameraMatrix(t) {
491
492
  this.axesHelper.rotation.setFromRotationMatrix(
492
493
  new Ct().extractRotation(t).invert()
493
494
  );
@@ -499,7 +500,7 @@ class si extends j {
499
500
  a(this, "isDIVELight", !0);
500
501
  a(this, "isDIVEAmbientLight", !0);
501
502
  a(this, "_light");
502
- this.name = "DIVEAmbientLight", this._light = new vt(16777215, 1), this._light.layers.mask = P, this.add(this._light);
503
+ this.name = "DIVEAmbientLight", this._light = new Ot(16777215, 1), this._light.layers.mask = S, this.add(this._light);
503
504
  }
504
505
  setColor(t) {
505
506
  this._light.color = t;
@@ -521,7 +522,7 @@ class ni extends j {
521
522
  a(this, "gizmo", null);
522
523
  a(this, "light");
523
524
  a(this, "mesh");
524
- this.name = "DIVEPointLight", this.light = new Ot(16777215, 1), this.light.layers.mask = P, this.light.castShadow = !0, this.light.shadow.mapSize.width = 512, this.light.shadow.mapSize.height = 512, this.add(this.light);
525
+ this.name = "DIVEPointLight", this.light = new vt(16777215, 1), this.light.layers.mask = S, this.light.castShadow = !0, this.light.shadow.mapSize.width = 512, this.light.shadow.mapSize.height = 512, this.add(this.light);
525
526
  const t = 0.1, e = new Ke(
526
527
  t,
527
528
  t * 320,
@@ -576,7 +577,7 @@ class Je extends j {
576
577
  a(this, "isDIVESceneLight", !0);
577
578
  a(this, "_hemiLight");
578
579
  a(this, "_dirLight");
579
- this.name = "DIVESceneLight", this._hemiLight = new Rt(16777215, 16777215, 2), this._hemiLight.layers.mask = P, this._hemiLight.position.set(0, 50, 0), this.add(this._hemiLight), this._dirLight = new Vt(16777215, 3), this._dirLight.layers.mask = P, this._dirLight.position.set(1, 1.75, 1), this._dirLight.position.multiplyScalar(30), this._dirLight.castShadow = !0, this._dirLight.shadow.mapSize.width = 2048, this._dirLight.shadow.mapSize.height = 2048;
580
+ this.name = "DIVESceneLight", this._hemiLight = new Rt(16777215, 16777215, 2), this._hemiLight.layers.mask = S, this._hemiLight.position.set(0, 50, 0), this.add(this._hemiLight), this._dirLight = new Vt(16777215, 3), this._dirLight.layers.mask = S, this._dirLight.position.set(1, 1.75, 1), this._dirLight.position.multiplyScalar(30), this._dirLight.castShadow = !0, this._dirLight.shadow.mapSize.width = 2048, this._dirLight.shadow.mapSize.height = 2048;
580
581
  const t = 5;
581
582
  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);
582
583
  }
@@ -603,12 +604,22 @@ class ri {
603
604
  }
604
605
  function ai(h, s) {
605
606
  return s.forEach((t) => {
606
- Object.getOwnPropertyNames(t.prototype).forEach((e) => {
607
- Object.defineProperty(
608
- h.prototype,
607
+ Object.getOwnPropertyNames(t.prototype).forEach((n) => {
608
+ if (n === "constructor")
609
+ return;
610
+ const o = Object.getOwnPropertyDescriptor(
611
+ t.prototype,
612
+ n
613
+ );
614
+ Object.defineProperty(h.prototype, n, o);
615
+ });
616
+ const e = new t();
617
+ Object.getOwnPropertyNames(e).forEach((n) => {
618
+ const o = Object.getOwnPropertyDescriptor(
609
619
  e,
610
- Object.getOwnPropertyDescriptor(t.prototype, e)
620
+ n
611
621
  );
622
+ Object.defineProperty(h.prototype, n, o);
612
623
  });
613
624
  }), h;
614
625
  }
@@ -622,26 +633,26 @@ class _e extends ai(j, [
622
633
  a(this, "gizmo", null);
623
634
  a(this, "_positionWorldBuffer");
624
635
  a(this, "_boundingBox");
625
- this.layers.mask = P, this._positionWorldBuffer = new m(), this._boundingBox = new Ze();
636
+ this.layers.mask = S, this._positionWorldBuffer = new m(), this._boundingBox = new Ze();
626
637
  }
627
- SetPosition(t) {
638
+ setPosition(t) {
628
639
  if (!this.parent) {
629
640
  this.position.set(t.x, t.y, t.z);
630
641
  return;
631
642
  }
632
643
  const e = new m(t.x, t.y, t.z);
633
- this.position.copy(this.parent.worldToLocal(e)), "isDIVEGroup" in this.parent && this.parent.UpdateLineTo(this);
644
+ this.position.copy(this.parent.worldToLocal(e)), "isDIVEGroup" in this.parent && this.parent.updateLineTo(this);
634
645
  }
635
- SetRotation(t) {
646
+ setRotation(t) {
636
647
  this.rotation.set(t.x, t.y, t.z);
637
648
  }
638
- SetScale(t) {
649
+ setScale(t) {
639
650
  this.scale.set(t.x, t.y, t.z);
640
651
  }
641
652
  setVisibility(t) {
642
653
  this.visible = t;
643
654
  }
644
- SetToWorldOrigin() {
655
+ setToWorldOrigin() {
645
656
  this.position.set(0, 0, 0), w("State").then((t) => {
646
657
  var e;
647
658
  (e = t.get(this.userData.id)) == null || e.performAction("UPDATE_OBJECT", {
@@ -739,7 +750,7 @@ class $e extends _e {
739
750
  );
740
751
  e.y = t + this.position.y;
741
752
  const n = new Xe(e, new m(0, -1, 0));
742
- n.layers.mask = P;
753
+ n.layers.mask = S;
743
754
  const o = n.intersectObjects(
744
755
  ge(this).root.children,
745
756
  !0
@@ -758,9 +769,9 @@ class hi extends _e {
758
769
  super();
759
770
  a(this, "isDIVEPrimitive", !0);
760
771
  a(this, "_mesh");
761
- this._mesh = new pe(), this._mesh.layers.mask = P, this._mesh.castShadow = !0, this._mesh.receiveShadow = !0, this._mesh.material = new fe(), this.add(this._mesh);
772
+ this._mesh = new pe(), this._mesh.layers.mask = S, this._mesh.castShadow = !0, this._mesh.receiveShadow = !0, this._mesh.material = new fe(), this.add(this._mesh);
762
773
  }
763
- SetGeometry(t) {
774
+ setGeometry(t) {
764
775
  const e = this.assembleGeometry(t);
765
776
  e && (this._mesh.geometry = e, this._boundingBox.setFromObject(this._mesh));
766
777
  }
@@ -796,7 +807,7 @@ class hi extends _e {
796
807
  );
797
808
  e.y = t + this.position.y;
798
809
  const n = new Xe(e, new m(0, -1, 0));
799
- n.layers.mask = P;
810
+ n.layers.mask = S;
800
811
  const o = n.intersectObjects(
801
812
  ge(this).root.children,
802
813
  !0
@@ -934,12 +945,12 @@ class li extends _e {
934
945
  get members() {
935
946
  return this._members;
936
947
  }
937
- SetPosition(t) {
938
- super.SetPosition(t), this._members.forEach((e) => {
948
+ setPosition(t) {
949
+ super.setPosition(t), this._members.forEach((e) => {
939
950
  "isDIVENode" in e && e.onMove();
940
951
  });
941
952
  }
942
- SetLinesVisibility(t, e) {
953
+ setLinesVisibility(t, e) {
943
954
  if (!e) {
944
955
  this._lines.forEach((o) => {
945
956
  o.visible = t;
@@ -953,7 +964,7 @@ class li extends _e {
953
964
  if (this._members.includes(t))
954
965
  return this;
955
966
  const e = this.createLine();
956
- return this.add(e), this._lines.push(e), super.attach(t), this._members.push(t), this.updateLineTo(e, t), this.SetLinesVisibility(!0, t), this;
967
+ return this.add(e), this._lines.push(e), super.attach(t), this._members.push(t), this._updateLineTo(e, t), this.setLinesVisibility(!0, t), this;
957
968
  }
958
969
  /**
959
970
  * Removes an object from the group.
@@ -967,9 +978,9 @@ class li extends _e {
967
978
  const n = this._lines[e];
968
979
  return super.remove(n), this._lines.splice(e, 1), super.remove(t), this._members.splice(e, 1), this;
969
980
  }
970
- UpdateLineTo(t) {
981
+ updateLineTo(t) {
971
982
  const e = this._members.indexOf(t);
972
- e !== -1 && this.updateLineTo(this._lines[e], t);
983
+ e !== -1 && this._updateLineTo(this._lines[e], t);
973
984
  }
974
985
  /**
975
986
  * Creates a line for visualization.
@@ -985,14 +996,14 @@ class li extends _e {
985
996
  /**
986
997
  * Updates a line to the object.
987
998
  */
988
- updateLineTo(t, e) {
999
+ _updateLineTo(t, e) {
989
1000
  const n = [
990
1001
  new m(0, 0, 0),
991
1002
  e.position.clone()
992
1003
  ];
993
1004
  t.geometry.setFromPoints(n), t.computeLineDistances();
994
1005
  }
995
- // public SetBoundingBoxVisibility(visible: boolean): void {
1006
+ // public setBoundingBoxVisibility(visible: boolean): void {
996
1007
  // this._boxMesh.visible = visible;
997
1008
  // }
998
1009
  // /**
@@ -1049,7 +1060,7 @@ class ci extends pe {
1049
1060
  })
1050
1061
  );
1051
1062
  a(this, "isDIVEFloor", !0);
1052
- this.name = "Floor", this.layers.mask = P, this.receiveShadow = !0, this.rotateX(-Math.PI / 2);
1063
+ this.name = "Floor", this.layers.mask = S, this.receiveShadow = !0, this.rotateX(-Math.PI / 2);
1053
1064
  }
1054
1065
  setVisibility(t) {
1055
1066
  this.visible = t;
@@ -1210,13 +1221,13 @@ class di extends j {
1210
1221
  ), 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 D(e.color)), e.visible !== void 0 && e.visible !== null && (t.visible = e.visible), e.parentId !== void 0 && this._setParent({ ...e, parentId: e.parentId });
1211
1222
  }
1212
1223
  _updateModel(t, e) {
1213
- 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 });
1224
+ 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 });
1214
1225
  }
1215
1226
  _updatePrimitive(t, e) {
1216
- e.name !== void 0 && (t.name = e.name), e.geometry !== void 0 && t.SetGeometry(e.geometry), 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 });
1227
+ e.name !== void 0 && (t.name = e.name), e.geometry !== void 0 && t.setGeometry(e.geometry), 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 });
1217
1228
  }
1218
1229
  _updateGroup(t, e) {
1219
- 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.bbVisible !== void 0 && t.SetLinesVisibility(e.bbVisible), e.parentId !== void 0 && this._setParent({ ...e, parentId: e.parentId });
1230
+ 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.bbVisible !== void 0 && t.setLinesVisibility(e.bbVisible), e.parentId !== void 0 && this._setParent({ ...e, parentId: e.parentId });
1220
1231
  }
1221
1232
  _deleteLight(t) {
1222
1233
  this._detachTransformControls(t), t.parent.remove(t);
@@ -1258,7 +1269,7 @@ const ui = "#888888", mi = "#dddddd";
1258
1269
  class pi extends j {
1259
1270
  constructor() {
1260
1271
  super(), this.name = "Grid";
1261
- const s = new Ut(
1272
+ const s = new Gt(
1262
1273
  100,
1263
1274
  100,
1264
1275
  ui,
@@ -1270,7 +1281,7 @@ class pi extends j {
1270
1281
  this.visible = s;
1271
1282
  }
1272
1283
  }
1273
- class fi extends Gt {
1284
+ class fi extends Ut {
1274
1285
  constructor() {
1275
1286
  super();
1276
1287
  a(this, "_root");
@@ -1307,7 +1318,7 @@ class gi {
1307
1318
  this._scene = s, this._camera = t, this._settings = {
1308
1319
  ...Qe,
1309
1320
  ...e ?? {}
1310
- }, this._webglrenderer = new Ue({
1321
+ }, this._webglrenderer = new Ge({
1311
1322
  canvas: this._settings.canvas,
1312
1323
  antialias: this._settings.antialias,
1313
1324
  alpha: this._settings.alpha,
@@ -1322,7 +1333,7 @@ class gi {
1322
1333
  return this._webglrenderer;
1323
1334
  }
1324
1335
  setCanvas(s) {
1325
- this._webglrenderer.dispose(), this._settings.canvas = s, this._webglrenderer = new Ue(this._settings);
1336
+ this._webglrenderer.dispose(), this._settings.canvas = s, this._webglrenderer = new Ge(this._settings);
1326
1337
  }
1327
1338
  render() {
1328
1339
  this._webglrenderer.render(this._scene, this._camera);
@@ -1476,14 +1487,14 @@ function xi(h, s = 0) {
1476
1487
  const t = x(h, +s);
1477
1488
  return x(Math.round(t), -s).toFixed(s);
1478
1489
  }
1479
- function Si(h, s = 0) {
1490
+ function Ti(h, s = 0) {
1480
1491
  const t = x(h, +s);
1481
1492
  return x(Math.trunc(t), -s);
1482
1493
  }
1483
- function Ti(h) {
1494
+ function Li(h) {
1484
1495
  return (C.radToDeg(h) + 360) % 360;
1485
1496
  }
1486
- function Li(h) {
1497
+ function Pi(h) {
1487
1498
  return C.degToRad(h);
1488
1499
  }
1489
1500
  const Bi = {
@@ -1491,10 +1502,10 @@ const Bi = {
1491
1502
  floorExp: Ei,
1492
1503
  roundExp: tt,
1493
1504
  toFixedExp: xi,
1494
- truncateExp: Si,
1505
+ truncateExp: Ti,
1495
1506
  signedAngleTo: Di,
1496
- radToDeg: Ti,
1497
- degToRad: Li
1507
+ radToDeg: Li,
1508
+ degToRad: Pi
1498
1509
  };
1499
1510
  window.DIVE = {
1500
1511
  instances: [],
@@ -1502,7 +1513,7 @@ window.DIVE = {
1502
1513
  return window.DIVE.instances[0];
1503
1514
  }
1504
1515
  };
1505
- const Pi = {
1516
+ const Si = {
1506
1517
  ...et,
1507
1518
  ...se
1508
1519
  };
@@ -1514,7 +1525,7 @@ class it {
1514
1525
  a(this, "orbitController");
1515
1526
  a(this, "axisCamera");
1516
1527
  this._settings = {
1517
- ...Pi,
1528
+ ...Si,
1518
1529
  ...s ?? {}
1519
1530
  }, this._engine = new bi(s), this.orbitController = new ne(
1520
1531
  this._engine.camera,
@@ -1524,7 +1535,7 @@ class it {
1524
1535
  this._engine.renderer,
1525
1536
  this._engine.scene,
1526
1537
  this._engine.camera
1527
- ), this._engine.clock.addTicker(this.axisCamera)) : this.axisCamera = null, import("./chunks/package-BHjZWYD6.mjs").then((t) => {
1538
+ ), this._engine.clock.addTicker(this.axisCamera)) : this.axisCamera = null, import("./chunks/package-C16N_5TP.mjs").then((t) => {
1528
1539
  console.log(
1529
1540
  `DIVE ${t.default.version} initialized successfully!`
1530
1541
  ), console.log(`
@@ -1583,9 +1594,9 @@ class it {
1583
1594
  this._settings
1584
1595
  ), this._engine.clock.addTicker(this.orbitController);
1585
1596
  }
1586
- async Dispose() {
1597
+ async dispose() {
1587
1598
  return new Promise((s) => {
1588
- this._engine.clock.removeTicker(this.orbitController), this.orbitController.dispose(), this.axisCamera && (this._engine.clock.removeTicker(this.axisCamera), this.axisCamera.Dispose()), s();
1599
+ this._engine.clock.removeTicker(this.orbitController), this.orbitController.dispose(), this.axisCamera && (this._engine.clock.removeTicker(this.axisCamera), this.axisCamera.dispose()), s();
1589
1600
  });
1590
1601
  }
1591
1602
  }
@@ -1645,19 +1656,23 @@ const We = (h, s) => {
1645
1656
  }), t;
1646
1657
  };
1647
1658
  export {
1659
+ Xi as ARCompatibilityError,
1648
1660
  it as DIVE,
1649
- Pi as DIVEDefaultSettings,
1661
+ Si as DIVEDefaultSettings,
1650
1662
  Bi as DIVEMath,
1651
- Zi as ESystem,
1652
- Xi as EWebXRUnsupportedReason,
1653
- Gi as FILE_TYPES,
1654
- ji as SUPPORTED_FILE_TYPES,
1663
+ qi as ESystem,
1664
+ Ji as EWebXRUnsupportedReason,
1665
+ Ui as FILE_TYPES,
1666
+ Qi as FileTypeError,
1667
+ ji as NetworkError,
1668
+ es as ParseError,
1669
+ Hi as SUPPORTED_FILE_TYPES,
1655
1670
  ai as applyMixins,
1656
1671
  Fi as findInterface,
1657
1672
  ge as findSceneRecursive,
1658
- Hi as getFileTypeFromUri,
1673
+ Wi as getFileTypeFromUri,
1659
1674
  w as getModule,
1660
1675
  We as getObjectDelta,
1661
1676
  Yi as implementsInterface,
1662
- Wi as isFileTypeSupported
1677
+ Ki as isFileTypeSupported
1663
1678
  };