@roomle/web-sdk 5.1.0-alpha.4 → 5.1.0-alpha.5
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/lib/{BufferGeometry-Bl5whHAB.mjs → BufferGeometry-CxlpBjLq.mjs} +192 -195
- package/lib/BufferGeometry-CxlpBjLq.mjs.map +1 -0
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/{GLTFExporter-yQ7mMauu.mjs → GLTFExporter-DeNw0qAI.mjs} +86 -80
- package/lib/GLTFExporter-DeNw0qAI.mjs.map +1 -0
- package/lib/GaussianBlurNode-BR1cKBsX.mjs +65 -0
- package/lib/GaussianBlurNode-BR1cKBsX.mjs.map +1 -0
- package/lib/{Object3D-BHdngbxB.mjs → Object3D-CALIQdg1.mjs} +142 -59
- package/lib/Object3D-CALIQdg1.mjs.map +1 -0
- package/lib/{Pass-DLiMLT5k.mjs → Pass-DCljS3Z-.mjs} +4 -4
- package/lib/{Pass-DLiMLT5k.mjs.map → Pass-DCljS3Z-.mjs.map} +1 -1
- package/lib/{PointLightHelper-CuPSBuDU.mjs → PointLightHelper-C_0CYp7R.mjs} +35 -32
- package/lib/PointLightHelper-C_0CYp7R.mjs.map +1 -0
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{SpotLightHelper-m-Rh8vGU.mjs → SpotLightHelper-UUIHn43T.mjs} +22 -19
- package/lib/SpotLightHelper-UUIHn43T.mjs.map +1 -0
- package/lib/{USDZExporter-MdkuT226.mjs → USDZExporter-BBNw7Hey.mjs} +6 -3
- package/lib/USDZExporter-BBNw7Hey.mjs.map +1 -0
- package/lib/{Vector4-C7TlIAyy.mjs → Vector4-BOcWTZJI.mjs} +2 -2
- package/lib/Vector4-BOcWTZJI.mjs.map +1 -0
- package/lib/{api-Bznmr-xZ.mjs → api-CwEjmjrn.mjs} +2 -2
- package/lib/{api-Bznmr-xZ.mjs.map → api-CwEjmjrn.mjs.map} +1 -1
- package/lib/{banana-for-scale-DpKXNBt_.mjs → banana-for-scale-Cf41yXTl.mjs} +3 -3
- package/lib/{banana-for-scale-DpKXNBt_.mjs.map → banana-for-scale-Cf41yXTl.mjs.map} +1 -1
- package/lib/{common-utils-DbL4tku0.mjs → common-utils-OTJQGohe.mjs} +3 -3
- package/lib/common-utils-OTJQGohe.mjs.map +1 -0
- package/lib/{component-dimensioning-BaUqwqYJ.mjs → component-dimensioning-yPK46Y5o.mjs} +26 -26
- package/lib/{component-dimensioning-BaUqwqYJ.mjs.map → component-dimensioning-yPK46Y5o.mjs.map} +1 -1
- package/lib/{component-raycast-helper-4i8b4E5B.mjs → component-raycast-helper-CnpnRaFg.mjs} +15 -15
- package/lib/{component-raycast-helper-4i8b4E5B.mjs.map → component-raycast-helper-CnpnRaFg.mjs.map} +1 -1
- package/lib/{configurator-CDw_c6tB.mjs → configurator-iYlO_buA.mjs} +4 -4
- package/lib/{configurator-CDw_c6tB.mjs.map → configurator-iYlO_buA.mjs.map} +1 -1
- package/lib/configurator-y7zIaUe_.mjs +2 -0
- package/lib/{continuous-drawing-helper-DqHIR_qF.mjs → continuous-drawing-helper-CTfGRTfH.mjs} +3 -3
- package/lib/{continuous-drawing-helper-DqHIR_qF.mjs.map → continuous-drawing-helper-CTfGRTfH.mjs.map} +1 -1
- package/lib/dimensioning-helper-CQlesi-m.mjs +2 -0
- package/lib/{dimensioning-helper-CGPjS2hW.mjs → dimensioning-helper-DSlkLDmx.mjs} +42 -36
- package/lib/dimensioning-helper-DSlkLDmx.mjs.map +1 -0
- package/lib/{glb-viewer-B-Zr743e.mjs → glb-viewer-AGV-_xKd.mjs} +33 -33
- package/lib/{glb-viewer-B-Zr743e.mjs.map → glb-viewer-AGV-_xKd.mjs.map} +1 -1
- package/lib/glb-viewer-DSzNR4CI.mjs +2 -0
- package/lib/{highlight-coordinator-4gkjde82.mjs → highlight-coordinator-DU6oFunq.mjs} +6 -6
- package/lib/{highlight-coordinator-4gkjde82.mjs.map → highlight-coordinator-DU6oFunq.mjs.map} +1 -1
- package/lib/{homag-intelligence-D7S7r-Gc.mjs → homag-intelligence-D_yBv0ig.mjs} +3 -3
- package/lib/{homag-intelligence-D7S7r-Gc.mjs.map → homag-intelligence-D_yBv0ig.mjs.map} +1 -1
- package/lib/{hosek-wilkie-sky-iMar2iw-.mjs → hosek-wilkie-sky-DmTvnxMA.mjs} +33 -33
- package/lib/{hosek-wilkie-sky-iMar2iw-.mjs.map → hosek-wilkie-sky-DmTvnxMA.mjs.map} +1 -1
- package/lib/{imos-ix-poc-export-helper-CyGqK7nu.mjs → imos-ix-poc-export-helper-BGN97m8W.mjs} +3 -3
- package/lib/{imos-ix-poc-export-helper-CyGqK7nu.mjs.map → imos-ix-poc-export-helper-BGN97m8W.mjs.map} +1 -1
- package/lib/{kernel-utils-BvatnA7U.mjs → kernel-utils-BYKmP0mf.mjs} +13 -13
- package/lib/{kernel-utils-BvatnA7U.mjs.map → kernel-utils-BYKmP0mf.mjs.map} +1 -1
- package/lib/{material-viewer-CTsSfTfL.mjs → material-viewer-BuBSXGw6.mjs} +18 -18
- package/lib/{material-viewer-CTsSfTfL.mjs.map → material-viewer-BuBSXGw6.mjs.map} +1 -1
- package/lib/{packages-BXAZEcKa.mjs → packages-CduZDHYG.mjs} +5 -5
- package/lib/{packages-BXAZEcKa.mjs.map → packages-CduZDHYG.mjs.map} +1 -1
- package/lib/planner-B-SWR4R8.mjs +2 -0
- package/lib/{planner-jvLAnYww.mjs → planner-BuBkFbra.mjs} +3 -3
- package/lib/{planner-jvLAnYww.mjs.map → planner-BuBkFbra.mjs.map} +1 -1
- package/lib/{plugin-system-CRaC04G5.mjs → plugin-system-CPf99Zkf.mjs} +2 -2
- package/lib/{plugin-system-CRaC04G5.mjs.map → plugin-system-CPf99Zkf.mjs.map} +1 -1
- package/lib/{render-cache-DCPIQbO1.mjs → render-cache-CPppt7Rd.mjs} +5 -5
- package/lib/{render-cache-DCPIQbO1.mjs.map → render-cache-CPppt7Rd.mjs.map} +1 -1
- package/lib/{render-order-BPF2wDMw.mjs → render-order-a0QAbB7Q.mjs} +2 -2
- package/lib/{render-order-BPF2wDMw.mjs.map → render-order-a0QAbB7Q.mjs.map} +1 -1
- package/lib/roomle-headless.d.ts +0 -2
- package/lib/roomle-headless.js +14 -14
- package/lib/{roomle-renderer-Ato6RMrd.mjs → roomle-renderer-UJINLYxS.mjs} +2 -2
- package/lib/{roomle-renderer-Ato6RMrd.mjs.map → roomle-renderer-UJINLYxS.mjs.map} +1 -1
- package/lib/{roomle-sdk-CBwhwX_e.mjs → roomle-sdk-CcNdTp_n.mjs} +1844 -1889
- package/lib/roomle-sdk-CcNdTp_n.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +0 -2
- package/lib/roomle-sdk.js +7 -7
- package/lib/{roomle-webgpu-renderer-BfZKcXSz.mjs → roomle-webgpu-renderer-BSvxbopA.mjs} +900 -707
- package/lib/roomle-webgpu-renderer-BSvxbopA.mjs.map +1 -0
- package/lib/{scene-renderer-BHYZac3H.mjs → scene-renderer--DzrpIl_.mjs} +309 -309
- package/lib/{scene-renderer-BHYZac3H.mjs.map → scene-renderer--DzrpIl_.mjs.map} +1 -1
- package/lib/{script-loader-CvnG6LgL.mjs → script-loader-D6i0wQ_j.mjs} +2 -2
- package/lib/{script-loader-CvnG6LgL.mjs.map → script-loader-D6i0wQ_j.mjs.map} +1 -1
- package/lib/{shading-settings-BBhR7KcS.mjs → shading-settings-6v-7O_Sz.mjs} +49 -49
- package/lib/{shading-settings-BBhR7KcS.mjs.map → shading-settings-6v-7O_Sz.mjs.map} +1 -1
- package/lib/src-6KtBPZXp.mjs +2 -0
- package/lib/{src-HhklrVDg.mjs → src-Dg0wYIom.mjs} +150 -150
- package/lib/{src-HhklrVDg.mjs.map → src-Dg0wYIom.mjs.map} +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.wasm +0 -0
- package/lib/{stats-helper-PndcZCzL.mjs → stats-helper-DYjPPDnz.mjs} +2 -2
- package/lib/{stats-helper-PndcZCzL.mjs.map → stats-helper-DYjPPDnz.mjs.map} +1 -1
- package/lib/{three.core-0KaTx8dm.mjs → three.core-BTUCraWz.mjs} +976 -884
- package/lib/three.core-BTUCraWz.mjs.map +1 -0
- package/lib/{three.module-dym6j3lO.mjs → three.module-DUSFrLM6.mjs} +1789 -1739
- package/lib/three.module-DUSFrLM6.mjs.map +1 -0
- package/lib/three.tsl-De6A-G56.mjs +158 -0
- package/lib/three.tsl-De6A-G56.mjs.map +1 -0
- package/lib/three.tsl-DtfvggFX.mjs +2 -0
- package/lib/three.webgpu-B1OhMci_.mjs +3 -0
- package/lib/{three.webgpu-D3nSEIjD.mjs → three.webgpu-wPiwbpFM.mjs} +5806 -4926
- package/lib/three.webgpu-wPiwbpFM.mjs.map +1 -0
- package/lib/{threejs-utils-v1uOvccg.mjs → threejs-utils-lVSsgAiQ.mjs} +68 -68
- package/lib/{threejs-utils-v1uOvccg.mjs.map → threejs-utils-lVSsgAiQ.mjs.map} +1 -1
- package/lib/{tools-core-B29U-88K.mjs → tools-core-CRGER_KC.mjs} +3 -3
- package/lib/{tools-core-B29U-88K.mjs.map → tools-core-CRGER_KC.mjs.map} +1 -1
- package/lib/{webgpu-BHAP6BLI.mjs → webgpu-BxYJfBjz.mjs} +555 -555
- package/lib/{webgpu-BHAP6BLI.mjs.map → webgpu-BxYJfBjz.mjs.map} +1 -1
- package/package.json +5 -5
- package/lib/BufferGeometry-Bl5whHAB.mjs.map +0 -1
- package/lib/GLTFExporter-yQ7mMauu.mjs.map +0 -1
- package/lib/GaussianBlurNode-DNBEf5-n.mjs +0 -59
- package/lib/GaussianBlurNode-DNBEf5-n.mjs.map +0 -1
- package/lib/Object3D-BHdngbxB.mjs.map +0 -1
- package/lib/PointLightHelper-CuPSBuDU.mjs.map +0 -1
- package/lib/SpotLightHelper-m-Rh8vGU.mjs.map +0 -1
- package/lib/USDZExporter-MdkuT226.mjs.map +0 -1
- package/lib/Vector4-C7TlIAyy.mjs.map +0 -1
- package/lib/common-utils-DbL4tku0.mjs.map +0 -1
- package/lib/configurator-BYQdWEvf.mjs +0 -2
- package/lib/dimensioning-helper-CGPjS2hW.mjs.map +0 -1
- package/lib/dimensioning-helper-VndKlIXS.mjs +0 -2
- package/lib/glb-viewer-Bd5Xn6Oq.mjs +0 -2
- package/lib/planner-DMk3T4ts.mjs +0 -2
- package/lib/roomle-sdk-CBwhwX_e.mjs.map +0 -1
- package/lib/roomle-webgpu-renderer-BfZKcXSz.mjs.map +0 -1
- package/lib/src-Bbq3Hqzn.mjs +0 -2
- package/lib/three.core-0KaTx8dm.mjs.map +0 -1
- package/lib/three.module-dym6j3lO.mjs.map +0 -1
- package/lib/three.tsl-BTc4fg8T.mjs +0 -2
- package/lib/three.tsl-Cf0-sCqB.mjs +0 -152
- package/lib/three.tsl-Cf0-sCqB.mjs.map +0 -1
- package/lib/three.webgpu-ClICiWlK.mjs +0 -3
- package/lib/three.webgpu-D3nSEIjD.mjs.map +0 -1
|
@@ -58,7 +58,8 @@ function w(e, t) {
|
|
|
58
58
|
case Float32Array: return e;
|
|
59
59
|
case Uint32Array: return e / 4294967295;
|
|
60
60
|
case Uint16Array: return e / 65535;
|
|
61
|
-
case Uint8Array:
|
|
61
|
+
case Uint8Array:
|
|
62
|
+
case Uint8ClampedArray: return e / 255;
|
|
62
63
|
case Int32Array: return Math.max(e / 2147483647, -1);
|
|
63
64
|
case Int16Array: return Math.max(e / 32767, -1);
|
|
64
65
|
case Int8Array: return Math.max(e / 127, -1);
|
|
@@ -70,7 +71,8 @@ function T(e, t) {
|
|
|
70
71
|
case Float32Array: return e;
|
|
71
72
|
case Uint32Array: return Math.round(e * 4294967295);
|
|
72
73
|
case Uint16Array: return Math.round(e * 65535);
|
|
73
|
-
case Uint8Array:
|
|
74
|
+
case Uint8Array:
|
|
75
|
+
case Uint8ClampedArray: return Math.round(e * 255);
|
|
74
76
|
case Int32Array: return Math.round(e * 2147483647);
|
|
75
77
|
case Int16Array: return Math.round(e * 32767);
|
|
76
78
|
case Int8Array: return Math.round(e * 127);
|
|
@@ -983,7 +985,7 @@ var E = class {
|
|
|
983
985
|
if (n !== void 0) {
|
|
984
986
|
let r = n.getAttribute("position");
|
|
985
987
|
if (t === !0 && r !== void 0 && e.isInstancedMesh !== !0) for (let t = 0, n = r.count; t < n; t++) e.isMesh === !0 ? e.getVertexPosition(t, z) : z.fromBufferAttribute(r, t), z.applyMatrix4(e.matrixWorld), this.expandByPoint(z);
|
|
986
|
-
else e.boundingBox === void 0 ? (n.boundingBox === null && n.computeBoundingBox(),
|
|
988
|
+
else e.boundingBox === void 0 ? (n.boundingBox === null && n.computeBoundingBox(), ne.copy(n.boundingBox)) : (e.boundingBox === null && e.computeBoundingBox(), ne.copy(e.boundingBox)), ne.applyMatrix4(e.matrixWorld), this.union(ne);
|
|
987
989
|
}
|
|
988
990
|
let r = e.children;
|
|
989
991
|
for (let e = 0, n = r.length; e < n; e++) this.expandByObject(r[e], t);
|
|
@@ -1010,37 +1012,37 @@ var E = class {
|
|
|
1010
1012
|
}
|
|
1011
1013
|
intersectsTriangle(e) {
|
|
1012
1014
|
if (this.isEmpty()) return !1;
|
|
1013
|
-
this.getCenter(
|
|
1015
|
+
this.getCenter(K), re.subVectors(this.max, K), B.subVectors(e.a, K), V.subVectors(e.b, K), H.subVectors(e.c, K), U.subVectors(V, B), W.subVectors(H, V), G.subVectors(B, H);
|
|
1014
1016
|
let t = [
|
|
1017
|
+
0,
|
|
1018
|
+
-U.z,
|
|
1019
|
+
U.y,
|
|
1015
1020
|
0,
|
|
1016
1021
|
-W.z,
|
|
1017
1022
|
W.y,
|
|
1018
1023
|
0,
|
|
1019
1024
|
-G.z,
|
|
1020
1025
|
G.y,
|
|
1026
|
+
U.z,
|
|
1021
1027
|
0,
|
|
1022
|
-
-
|
|
1023
|
-
K.y,
|
|
1028
|
+
-U.x,
|
|
1024
1029
|
W.z,
|
|
1025
1030
|
0,
|
|
1026
1031
|
-W.x,
|
|
1027
1032
|
G.z,
|
|
1028
1033
|
0,
|
|
1029
1034
|
-G.x,
|
|
1030
|
-
|
|
1035
|
+
-U.y,
|
|
1036
|
+
U.x,
|
|
1031
1037
|
0,
|
|
1032
|
-
-K.x,
|
|
1033
1038
|
-W.y,
|
|
1034
1039
|
W.x,
|
|
1035
1040
|
0,
|
|
1036
1041
|
-G.y,
|
|
1037
1042
|
G.x,
|
|
1038
|
-
0,
|
|
1039
|
-
-K.y,
|
|
1040
|
-
K.x,
|
|
1041
1043
|
0
|
|
1042
1044
|
];
|
|
1043
|
-
return !
|
|
1045
|
+
return !ae(t, B, V, H, re) || (t = [
|
|
1044
1046
|
1,
|
|
1045
1047
|
0,
|
|
1046
1048
|
0,
|
|
@@ -1050,11 +1052,11 @@ var E = class {
|
|
|
1050
1052
|
0,
|
|
1051
1053
|
0,
|
|
1052
1054
|
1
|
|
1053
|
-
], !
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
],
|
|
1055
|
+
], !ae(t, B, V, H, re)) ? !1 : (ie.crossVectors(U, W), t = [
|
|
1056
|
+
ie.x,
|
|
1057
|
+
ie.y,
|
|
1058
|
+
ie.z
|
|
1059
|
+
], ae(t, B, V, H, re));
|
|
1058
1060
|
}
|
|
1059
1061
|
clampPoint(e, t) {
|
|
1060
1062
|
return t.copy(e).clamp(this.min, this.max);
|
|
@@ -1098,18 +1100,18 @@ var E = class {
|
|
|
1098
1100
|
/* @__PURE__ */ new D(),
|
|
1099
1101
|
/* @__PURE__ */ new D(),
|
|
1100
1102
|
/* @__PURE__ */ new D()
|
|
1101
|
-
], z = /* @__PURE__ */ new D(),
|
|
1102
|
-
function
|
|
1103
|
+
], z = /* @__PURE__ */ new D(), ne = /* @__PURE__ */ new te(), B = /* @__PURE__ */ new D(), V = /* @__PURE__ */ new D(), H = /* @__PURE__ */ new D(), U = /* @__PURE__ */ new D(), W = /* @__PURE__ */ new D(), G = /* @__PURE__ */ new D(), K = /* @__PURE__ */ new D(), re = /* @__PURE__ */ new D(), ie = /* @__PURE__ */ new D(), q = /* @__PURE__ */ new D();
|
|
1104
|
+
function ae(e, t, n, r, i) {
|
|
1103
1105
|
for (let a = 0, o = e.length - 3; a <= o; a += 3) {
|
|
1104
|
-
|
|
1105
|
-
let o = i.x * Math.abs(
|
|
1106
|
+
q.fromArray(e, a);
|
|
1107
|
+
let o = i.x * Math.abs(q.x) + i.y * Math.abs(q.y) + i.z * Math.abs(q.z), s = t.dot(q), c = n.dot(q), l = r.dot(q);
|
|
1106
1108
|
if (Math.max(-Math.max(s, c, l), Math.min(s, c, l)) > o) return !1;
|
|
1107
1109
|
}
|
|
1108
1110
|
return !0;
|
|
1109
1111
|
}
|
|
1110
1112
|
//#endregion
|
|
1111
1113
|
//#region ../../node_modules/three/src/math/Sphere.js
|
|
1112
|
-
var
|
|
1114
|
+
var oe = /* @__PURE__ */ new te(), J = /* @__PURE__ */ new D(), se = /* @__PURE__ */ new D(), ce = class {
|
|
1113
1115
|
constructor(e = new D(), t = -1) {
|
|
1114
1116
|
this.isSphere = !0, this.center = e, this.radius = t;
|
|
1115
1117
|
}
|
|
@@ -1118,7 +1120,7 @@ var ae = /* @__PURE__ */ new te(), Y = /* @__PURE__ */ new D(), oe = /* @__PURE_
|
|
|
1118
1120
|
}
|
|
1119
1121
|
setFromPoints(e, t) {
|
|
1120
1122
|
let n = this.center;
|
|
1121
|
-
t === void 0 ?
|
|
1123
|
+
t === void 0 ? oe.setFromPoints(e).getCenter(n) : n.copy(t);
|
|
1122
1124
|
let r = 0;
|
|
1123
1125
|
for (let t = 0, i = e.length; t < i; t++) r = Math.max(r, n.distanceToSquared(e[t]));
|
|
1124
1126
|
return this.radius = Math.sqrt(r), this;
|
|
@@ -1163,16 +1165,16 @@ var ae = /* @__PURE__ */ new te(), Y = /* @__PURE__ */ new D(), oe = /* @__PURE_
|
|
|
1163
1165
|
}
|
|
1164
1166
|
expandByPoint(e) {
|
|
1165
1167
|
if (this.isEmpty()) return this.center.copy(e), this.radius = 0, this;
|
|
1166
|
-
|
|
1167
|
-
let t =
|
|
1168
|
+
J.subVectors(e, this.center);
|
|
1169
|
+
let t = J.lengthSq();
|
|
1168
1170
|
if (t > this.radius * this.radius) {
|
|
1169
1171
|
let e = Math.sqrt(t), n = (e - this.radius) * .5;
|
|
1170
|
-
this.center.addScaledVector(
|
|
1172
|
+
this.center.addScaledVector(J, n / e), this.radius += n;
|
|
1171
1173
|
}
|
|
1172
1174
|
return this;
|
|
1173
1175
|
}
|
|
1174
1176
|
union(e) {
|
|
1175
|
-
return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (
|
|
1177
|
+
return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (se.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(J.copy(e.center).add(se)), this.expandByPoint(J.copy(e.center).sub(se))), this);
|
|
1176
1178
|
}
|
|
1177
1179
|
equals(e) {
|
|
1178
1180
|
return e.center.equals(this.center) && e.radius === this.radius;
|
|
@@ -1189,7 +1191,7 @@ var ae = /* @__PURE__ */ new te(), Y = /* @__PURE__ */ new D(), oe = /* @__PURE_
|
|
|
1189
1191
|
fromJSON(e) {
|
|
1190
1192
|
return this.radius = e.radius, this.center.fromArray(e.center), this;
|
|
1191
1193
|
}
|
|
1192
|
-
},
|
|
1194
|
+
}, Y = class e {
|
|
1193
1195
|
static {
|
|
1194
1196
|
e.prototype.isMatrix3 = !0;
|
|
1195
1197
|
}
|
|
@@ -1298,7 +1300,84 @@ var ae = /* @__PURE__ */ new te(), Y = /* @__PURE__ */ new D(), oe = /* @__PURE_
|
|
|
1298
1300
|
clone() {
|
|
1299
1301
|
return new this.constructor().fromArray(this.elements);
|
|
1300
1302
|
}
|
|
1301
|
-
}, le = /* @__PURE__ */ new
|
|
1303
|
+
}, le = /* @__PURE__ */ new Y(), ue = /* @__PURE__ */ new D(), de = /* @__PURE__ */ new D(), fe = /* @__PURE__ */ new Y(), pe = class {
|
|
1304
|
+
constructor(e = new D(1, 0, 0), t = 0) {
|
|
1305
|
+
this.isPlane = !0, this.normal = e, this.constant = t;
|
|
1306
|
+
}
|
|
1307
|
+
set(e, t) {
|
|
1308
|
+
return this.normal.copy(e), this.constant = t, this;
|
|
1309
|
+
}
|
|
1310
|
+
setComponents(e, t, n, r) {
|
|
1311
|
+
return this.normal.set(e, t, n), this.constant = r, this;
|
|
1312
|
+
}
|
|
1313
|
+
setFromNormalAndCoplanarPoint(e, t) {
|
|
1314
|
+
return this.normal.copy(e), this.constant = -t.dot(this.normal), this;
|
|
1315
|
+
}
|
|
1316
|
+
setFromCoplanarPoints(e, t, n) {
|
|
1317
|
+
let r = ue.subVectors(n, t).cross(de.subVectors(e, t)).normalize();
|
|
1318
|
+
return this.setFromNormalAndCoplanarPoint(r, e), this;
|
|
1319
|
+
}
|
|
1320
|
+
copy(e) {
|
|
1321
|
+
return this.normal.copy(e.normal), this.constant = e.constant, this;
|
|
1322
|
+
}
|
|
1323
|
+
normalize() {
|
|
1324
|
+
let e = 1 / this.normal.length();
|
|
1325
|
+
return this.normal.multiplyScalar(e), this.constant *= e, this;
|
|
1326
|
+
}
|
|
1327
|
+
negate() {
|
|
1328
|
+
return this.constant *= -1, this.normal.negate(), this;
|
|
1329
|
+
}
|
|
1330
|
+
distanceToPoint(e) {
|
|
1331
|
+
return this.normal.dot(e) + this.constant;
|
|
1332
|
+
}
|
|
1333
|
+
distanceToSphere(e) {
|
|
1334
|
+
return this.distanceToPoint(e.center) - e.radius;
|
|
1335
|
+
}
|
|
1336
|
+
projectPoint(e, t) {
|
|
1337
|
+
return t.copy(e).addScaledVector(this.normal, -this.distanceToPoint(e));
|
|
1338
|
+
}
|
|
1339
|
+
intersectLine(e, t, n = !0) {
|
|
1340
|
+
let r = e.delta(ue), i = this.normal.dot(r);
|
|
1341
|
+
if (i === 0) return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null;
|
|
1342
|
+
let a = -(e.start.dot(this.normal) + this.constant) / i;
|
|
1343
|
+
return n === !0 && (a < 0 || a > 1) ? null : t.copy(e.start).addScaledVector(r, a);
|
|
1344
|
+
}
|
|
1345
|
+
intersectsLine(e) {
|
|
1346
|
+
let t = this.distanceToPoint(e.start), n = this.distanceToPoint(e.end);
|
|
1347
|
+
return t < 0 && n > 0 || n < 0 && t > 0;
|
|
1348
|
+
}
|
|
1349
|
+
intersectsBox(e) {
|
|
1350
|
+
return e.intersectsPlane(this);
|
|
1351
|
+
}
|
|
1352
|
+
intersectsSphere(e) {
|
|
1353
|
+
return e.intersectsPlane(this);
|
|
1354
|
+
}
|
|
1355
|
+
coplanarPoint(e) {
|
|
1356
|
+
return e.copy(this.normal).multiplyScalar(-this.constant);
|
|
1357
|
+
}
|
|
1358
|
+
applyMatrix4(e, t) {
|
|
1359
|
+
let n = t || fe.getNormalMatrix(e), r = this.coplanarPoint(ue).applyMatrix4(e), i = this.normal.applyMatrix3(n).normalize();
|
|
1360
|
+
return this.constant = -r.dot(i), this;
|
|
1361
|
+
}
|
|
1362
|
+
translate(e) {
|
|
1363
|
+
return this.constant -= e.dot(this.normal), this;
|
|
1364
|
+
}
|
|
1365
|
+
equals(e) {
|
|
1366
|
+
return e.normal.equals(this.normal) && e.constant === this.constant;
|
|
1367
|
+
}
|
|
1368
|
+
clone() {
|
|
1369
|
+
return new this.constructor().copy(this);
|
|
1370
|
+
}
|
|
1371
|
+
toJSON() {
|
|
1372
|
+
return {
|
|
1373
|
+
normal: this.normal.toArray(),
|
|
1374
|
+
constant: this.constant
|
|
1375
|
+
};
|
|
1376
|
+
}
|
|
1377
|
+
fromJSON(e) {
|
|
1378
|
+
return this.normal.fromArray(e.normal), this.constant = e.constant, this;
|
|
1379
|
+
}
|
|
1380
|
+
}, me = class {
|
|
1302
1381
|
addEventListener(e, t) {
|
|
1303
1382
|
this._listeners === void 0 && (this._listeners = {});
|
|
1304
1383
|
let n = this._listeners;
|
|
@@ -1328,7 +1407,7 @@ var ae = /* @__PURE__ */ new te(), Y = /* @__PURE__ */ new D(), oe = /* @__PURE_
|
|
|
1328
1407
|
e.target = null;
|
|
1329
1408
|
}
|
|
1330
1409
|
}
|
|
1331
|
-
},
|
|
1410
|
+
}, he = /* @__PURE__ */ new A(), ge = /* @__PURE__ */ new E(), _e = class e {
|
|
1332
1411
|
constructor(t = 0, n = 0, r = 0, i = e.DEFAULT_ORDER) {
|
|
1333
1412
|
this.isEuler = !0, this._x = t, this._y = n, this._z = r, this._order = i;
|
|
1334
1413
|
}
|
|
@@ -1391,13 +1470,13 @@ var ae = /* @__PURE__ */ new te(), Y = /* @__PURE__ */ new D(), oe = /* @__PURE_
|
|
|
1391
1470
|
return this._order = t, n === !0 && this._onChangeCallback(), this;
|
|
1392
1471
|
}
|
|
1393
1472
|
setFromQuaternion(e, t, n) {
|
|
1394
|
-
return
|
|
1473
|
+
return he.makeRotationFromQuaternion(e), this.setFromRotationMatrix(he, t, n);
|
|
1395
1474
|
}
|
|
1396
1475
|
setFromVector3(e, t = this._order) {
|
|
1397
1476
|
return this.set(e.x, e.y, e.z, t);
|
|
1398
1477
|
}
|
|
1399
1478
|
reorder(e) {
|
|
1400
|
-
return
|
|
1479
|
+
return ge.setFromEuler(this), this.setFromQuaternion(ge, e);
|
|
1401
1480
|
}
|
|
1402
1481
|
equals(e) {
|
|
1403
1482
|
return e._x === this._x && e._y === this._y && e._z === this._z && e._order === this._order;
|
|
@@ -1416,10 +1495,10 @@ var ae = /* @__PURE__ */ new te(), Y = /* @__PURE__ */ new D(), oe = /* @__PURE_
|
|
|
1416
1495
|
yield this._x, yield this._y, yield this._z, yield this._order;
|
|
1417
1496
|
}
|
|
1418
1497
|
};
|
|
1419
|
-
|
|
1498
|
+
_e.DEFAULT_ORDER = "XYZ";
|
|
1420
1499
|
//#endregion
|
|
1421
1500
|
//#region ../../node_modules/three/src/core/Layers.js
|
|
1422
|
-
var
|
|
1501
|
+
var ve = class {
|
|
1423
1502
|
constructor() {
|
|
1424
1503
|
this.mask = 1;
|
|
1425
1504
|
}
|
|
@@ -1447,16 +1526,16 @@ var me = class {
|
|
|
1447
1526
|
isEnabled(e) {
|
|
1448
1527
|
return (this.mask & (1 << e | 0)) != 0;
|
|
1449
1528
|
}
|
|
1450
|
-
},
|
|
1529
|
+
}, ye = 0, be = /* @__PURE__ */ new D(), X = /* @__PURE__ */ new E(), Z = /* @__PURE__ */ new A(), xe = /* @__PURE__ */ new D(), Q = /* @__PURE__ */ new D(), Se = /* @__PURE__ */ new D(), Ce = /* @__PURE__ */ new E(), we = /* @__PURE__ */ new D(1, 0, 0), Te = /* @__PURE__ */ new D(0, 1, 0), Ee = /* @__PURE__ */ new D(0, 0, 1), De = { type: "added" }, Oe = { type: "removed" }, $ = {
|
|
1451
1530
|
type: "childadded",
|
|
1452
1531
|
child: null
|
|
1453
|
-
},
|
|
1532
|
+
}, ke = {
|
|
1454
1533
|
type: "childremoved",
|
|
1455
1534
|
child: null
|
|
1456
|
-
},
|
|
1535
|
+
}, Ae = class e extends me {
|
|
1457
1536
|
constructor() {
|
|
1458
|
-
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value:
|
|
1459
|
-
let t = new D(), n = new
|
|
1537
|
+
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: ye++ }), this.uuid = b(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = e.DEFAULT_UP.clone();
|
|
1538
|
+
let t = new D(), n = new _e(), r = new E(), i = new D(1, 1, 1);
|
|
1460
1539
|
function a() {
|
|
1461
1540
|
r.setFromEuler(n, !1);
|
|
1462
1541
|
}
|
|
@@ -1485,8 +1564,8 @@ var me = class {
|
|
|
1485
1564
|
value: i
|
|
1486
1565
|
},
|
|
1487
1566
|
modelViewMatrix: { value: new A() },
|
|
1488
|
-
normalMatrix: { value: new
|
|
1489
|
-
}), this.matrix = new A(), this.matrixWorld = new A(), this.matrixAutoUpdate = e.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new
|
|
1567
|
+
normalMatrix: { value: new Y() }
|
|
1568
|
+
}), this.matrix = new A(), this.matrixWorld = new A(), this.matrixAutoUpdate = e.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new ve(), this.visible = !0, this.castShadow = !1, this.receiveShadow = !1, this.frustumCulled = !0, this.renderOrder = 0, this.animations = [], this.customDepthMaterial = void 0, this.customDistanceMaterial = void 0, this.static = !1, this.userData = {}, this.pivot = null;
|
|
1490
1569
|
}
|
|
1491
1570
|
onBeforeShadow() {}
|
|
1492
1571
|
onAfterShadow() {}
|
|
@@ -1517,25 +1596,25 @@ var me = class {
|
|
|
1517
1596
|
return X.setFromAxisAngle(e, t), this.quaternion.premultiply(X), this;
|
|
1518
1597
|
}
|
|
1519
1598
|
rotateX(e) {
|
|
1520
|
-
return this.rotateOnAxis(
|
|
1599
|
+
return this.rotateOnAxis(we, e);
|
|
1521
1600
|
}
|
|
1522
1601
|
rotateY(e) {
|
|
1523
|
-
return this.rotateOnAxis(
|
|
1602
|
+
return this.rotateOnAxis(Te, e);
|
|
1524
1603
|
}
|
|
1525
1604
|
rotateZ(e) {
|
|
1526
|
-
return this.rotateOnAxis(
|
|
1605
|
+
return this.rotateOnAxis(Ee, e);
|
|
1527
1606
|
}
|
|
1528
1607
|
translateOnAxis(e, t) {
|
|
1529
|
-
return
|
|
1608
|
+
return be.copy(e).applyQuaternion(this.quaternion), this.position.add(be.multiplyScalar(t)), this;
|
|
1530
1609
|
}
|
|
1531
1610
|
translateX(e) {
|
|
1532
|
-
return this.translateOnAxis(
|
|
1611
|
+
return this.translateOnAxis(we, e);
|
|
1533
1612
|
}
|
|
1534
1613
|
translateY(e) {
|
|
1535
|
-
return this.translateOnAxis(
|
|
1614
|
+
return this.translateOnAxis(Te, e);
|
|
1536
1615
|
}
|
|
1537
1616
|
translateZ(e) {
|
|
1538
|
-
return this.translateOnAxis(
|
|
1617
|
+
return this.translateOnAxis(Ee, e);
|
|
1539
1618
|
}
|
|
1540
1619
|
localToWorld(e) {
|
|
1541
1620
|
return this.updateWorldMatrix(!0, !1), e.applyMatrix4(this.matrixWorld);
|
|
@@ -1544,16 +1623,16 @@ var me = class {
|
|
|
1544
1623
|
return this.updateWorldMatrix(!0, !1), e.applyMatrix4(Z.copy(this.matrixWorld).invert());
|
|
1545
1624
|
}
|
|
1546
1625
|
lookAt(e, t, n) {
|
|
1547
|
-
e.isVector3 ?
|
|
1626
|
+
e.isVector3 ? xe.copy(e) : xe.set(e, t, n);
|
|
1548
1627
|
let r = this.parent;
|
|
1549
|
-
this.updateWorldMatrix(!0, !1), Q.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Z.lookAt(Q,
|
|
1628
|
+
this.updateWorldMatrix(!0, !1), Q.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Z.lookAt(Q, xe, this.up) : Z.lookAt(xe, Q, this.up), this.quaternion.setFromRotationMatrix(Z), r && (Z.extractRotation(r.matrixWorld), X.setFromRotationMatrix(Z), this.quaternion.premultiply(X.invert()));
|
|
1550
1629
|
}
|
|
1551
1630
|
add(e) {
|
|
1552
1631
|
if (arguments.length > 1) {
|
|
1553
1632
|
for (let e = 0; e < arguments.length; e++) this.add(arguments[e]);
|
|
1554
1633
|
return this;
|
|
1555
1634
|
}
|
|
1556
|
-
return e === this ? (h("Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(
|
|
1635
|
+
return e === this ? (h("Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(De), $.child = e, this.dispatchEvent($), $.child = null) : h("Object3D.add: object not an instance of THREE.Object3D.", e), this);
|
|
1557
1636
|
}
|
|
1558
1637
|
remove(e) {
|
|
1559
1638
|
if (arguments.length > 1) {
|
|
@@ -1561,7 +1640,7 @@ var me = class {
|
|
|
1561
1640
|
return this;
|
|
1562
1641
|
}
|
|
1563
1642
|
let t = this.children.indexOf(e);
|
|
1564
|
-
return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(
|
|
1643
|
+
return t !== -1 && (e.parent = null, this.children.splice(t, 1), e.dispatchEvent(Oe), ke.child = e, this.dispatchEvent(ke), ke.child = null), this;
|
|
1565
1644
|
}
|
|
1566
1645
|
removeFromParent() {
|
|
1567
1646
|
let e = this.parent;
|
|
@@ -1571,7 +1650,7 @@ var me = class {
|
|
|
1571
1650
|
return this.remove(...this.children);
|
|
1572
1651
|
}
|
|
1573
1652
|
attach(e) {
|
|
1574
|
-
return this.updateWorldMatrix(!0, !1), Z.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), Z.multiply(e.parent.matrixWorld)), e.applyMatrix4(Z), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(
|
|
1653
|
+
return this.updateWorldMatrix(!0, !1), Z.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), Z.multiply(e.parent.matrixWorld)), e.applyMatrix4(Z), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(De), $.child = e, this.dispatchEvent($), $.child = null, this;
|
|
1575
1654
|
}
|
|
1576
1655
|
getObjectById(e) {
|
|
1577
1656
|
return this.getObjectByProperty("id", e);
|
|
@@ -1596,10 +1675,10 @@ var me = class {
|
|
|
1596
1675
|
return this.updateWorldMatrix(!0, !1), e.setFromMatrixPosition(this.matrixWorld);
|
|
1597
1676
|
}
|
|
1598
1677
|
getWorldQuaternion(e) {
|
|
1599
|
-
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Q, e,
|
|
1678
|
+
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Q, e, Se), e;
|
|
1600
1679
|
}
|
|
1601
1680
|
getWorldScale(e) {
|
|
1602
|
-
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Q,
|
|
1681
|
+
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Q, Ce, e), e;
|
|
1603
1682
|
}
|
|
1604
1683
|
getWorldDirection(e) {
|
|
1605
1684
|
this.updateWorldMatrix(!0, !1);
|
|
@@ -1607,6 +1686,7 @@ var me = class {
|
|
|
1607
1686
|
return e.set(t[8], t[9], t[10]).normalize();
|
|
1608
1687
|
}
|
|
1609
1688
|
raycast() {}
|
|
1689
|
+
intersectsFrustum() {}
|
|
1610
1690
|
traverse(e) {
|
|
1611
1691
|
e(this);
|
|
1612
1692
|
let t = this.children;
|
|
@@ -1660,7 +1740,7 @@ var me = class {
|
|
|
1660
1740
|
generator: "Object3D.toJSON"
|
|
1661
1741
|
});
|
|
1662
1742
|
let r = {};
|
|
1663
|
-
r.uuid = this.uuid, r.type = this.type,
|
|
1743
|
+
r.uuid = this.uuid, r.type = this.type, r.name = this.name, r.castShadow = this.castShadow, r.receiveShadow = this.receiveShadow, r.visible = this.visible, r.frustumCulled = this.frustumCulled, r.renderOrder = this.renderOrder, r.static = this.static, r.matrixAutoUpdate = this.matrixAutoUpdate, Object.keys(this.userData).length > 0 && (r.userData = this.userData), r.layers = this.layers.mask, r.matrix = this.matrix.toArray(), r.up = this.up.toArray(), this.pivot !== null && (r.pivot = this.pivot.toArray()), this.morphTargetDictionary !== void 0 && (r.morphTargetDictionary = Object.assign({}, this.morphTargetDictionary)), this.morphTargetInfluences !== void 0 && (r.morphTargetInfluences = this.morphTargetInfluences.slice()), this.isInstancedMesh && (r.type = "InstancedMesh", r.count = this.count, r.instanceMatrix = this.instanceMatrix.toJSON(), this.instanceColor !== null && (r.instanceColor = this.instanceColor.toJSON())), this.isBatchedMesh && (r.type = "BatchedMesh", r.perObjectFrustumCulled = this.perObjectFrustumCulled, r.sortObjects = this.sortObjects, r.drawRanges = this._drawRanges, r.reservedRanges = this._reservedRanges, r.geometryInfo = this._geometryInfo.map((e) => ({
|
|
1664
1744
|
...e,
|
|
1665
1745
|
boundingBox: e.boundingBox ? e.boundingBox.toJSON() : void 0,
|
|
1666
1746
|
boundingSphere: e.boundingSphere ? e.boundingSphere.toJSON() : void 0
|
|
@@ -1721,9 +1801,12 @@ var me = class {
|
|
|
1721
1801
|
}
|
|
1722
1802
|
return this;
|
|
1723
1803
|
}
|
|
1804
|
+
dispose() {
|
|
1805
|
+
this.dispatchEvent({ type: "dispose" });
|
|
1806
|
+
}
|
|
1724
1807
|
};
|
|
1725
|
-
|
|
1808
|
+
Ae.DEFAULT_UP = /* @__PURE__ */ new D(0, 1, 0), Ae.DEFAULT_MATRIX_AUTO_UPDATE = !0, Ae.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
1726
1809
|
//#endregion
|
|
1727
|
-
export {
|
|
1810
|
+
export { s as A, g as C, i as D, r as E, c as M, l as N, n as O, m as S, o as T, b as _, Y as a, u as b, ee as c, E as d, v as f, S as g, w as h, pe as i, e as j, a as k, A as l, x as m, _e as n, ce as o, y as p, me as r, te as s, Ae as t, D as u, C as v, t as w, h as x, T as y };
|
|
1728
1811
|
|
|
1729
|
-
//# sourceMappingURL=Object3D-
|
|
1812
|
+
//# sourceMappingURL=Object3D-CALIQdg1.mjs.map
|