@roomle/web-sdk 3.7.0 → 3.8.0
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-BzmfTBQt.mjs → BufferGeometry-ltw0XkYt.mjs} +7 -4
- package/lib/BufferGeometry-ltw0XkYt.mjs.map +1 -0
- package/lib/ConfiguratorKernel.js +6 -6
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/{GLTFExporter-CyhgWPq0.mjs → GLTFExporter-BqjC9LhS.mjs} +9 -14
- package/lib/GLTFExporter-BqjC9LhS.mjs.map +1 -0
- package/lib/{Object3D-C3wqWk6O.mjs → Object3D-BZaiqQIE.mjs} +24 -12
- package/lib/Object3D-BZaiqQIE.mjs.map +1 -0
- package/lib/{PointLightHelper-DwIXACyT.mjs → PointLightHelper-AxCe6I00.mjs} +4 -4
- package/lib/PointLightHelper-AxCe6I00.mjs.map +1 -0
- package/lib/RoomleCore.js +8 -8
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/{SpotLightHelper-CfLHM7LU.mjs → SpotLightHelper-DpMerFPv.mjs} +3 -3
- package/lib/{SpotLightHelper-CfLHM7LU.mjs.map → SpotLightHelper-DpMerFPv.mjs.map} +1 -1
- package/lib/{USDZExporter-kmxcTvnQ.mjs → USDZExporter-qUD2VgwK.mjs} +2 -2
- package/lib/{USDZExporter-kmxcTvnQ.mjs.map → USDZExporter-qUD2VgwK.mjs.map} +1 -1
- package/lib/{Vector4-DUqY3Egg.mjs → Vector4-BfZH1ecw.mjs} +7 -4
- package/lib/Vector4-BfZH1ecw.mjs.map +1 -0
- package/lib/{api-X1dDTDvL.mjs → api-CbHAzwVm.mjs} +2 -2
- package/lib/{api-X1dDTDvL.mjs.map → api-CbHAzwVm.mjs.map} +1 -1
- package/lib/asset-loader.worker-A7nEeQB4.mjs.map +1 -1
- package/lib/{banana-for-scale-Bpf8RfLi.mjs → banana-for-scale-DiBCpVNM.mjs} +3 -3
- package/lib/{banana-for-scale-Bpf8RfLi.mjs.map → banana-for-scale-DiBCpVNM.mjs.map} +1 -1
- package/lib/budgeteer.sw-CQWYbQSc.mjs.map +1 -1
- package/lib/{common-utils-DMI8Yuhe.mjs → common-utils-AB4Lnet3.mjs} +2 -2
- package/lib/{common-utils-DMI8Yuhe.mjs.map → common-utils-AB4Lnet3.mjs.map} +1 -1
- package/lib/{component-dimensioning-MtS9xiY-.mjs → component-dimensioning-LUnZnpqG.mjs} +5 -5
- package/lib/{component-dimensioning-MtS9xiY-.mjs.map → component-dimensioning-LUnZnpqG.mjs.map} +1 -1
- package/lib/{component-raycast-helper-C1qWqpRH.mjs → component-raycast-helper-Bl0mWPcj.mjs} +4 -4
- package/lib/{component-raycast-helper-C1qWqpRH.mjs.map → component-raycast-helper-Bl0mWPcj.mjs.map} +1 -1
- package/lib/configurator-BmJX0gB5.mjs +2 -0
- package/lib/configurator-CP80d0HI.mjs +45 -0
- package/lib/{configurator-Cg1a9XSL.mjs.map → configurator-CP80d0HI.mjs.map} +1 -1
- package/lib/{continuous-drawing-helper-CQx5Sbns.mjs → continuous-drawing-helper-BlRy7u2t.mjs} +3 -3
- package/lib/{continuous-drawing-helper-CQx5Sbns.mjs.map → continuous-drawing-helper-BlRy7u2t.mjs.map} +1 -1
- package/lib/dimensioning-helper-5xsc6I7Y.mjs +2 -0
- package/lib/{dimensioning-helper-GPn7Z8GE.mjs → dimensioning-helper-vPhGfHd-.mjs} +3 -3
- package/lib/{dimensioning-helper-GPn7Z8GE.mjs.map → dimensioning-helper-vPhGfHd-.mjs.map} +1 -1
- package/lib/{glb-viewer-tgKOPCaI.mjs → glb-viewer-B7pA8K_w.mjs} +71 -54
- package/lib/glb-viewer-B7pA8K_w.mjs.map +1 -0
- package/lib/glb-viewer-XFEP993c.mjs +2 -0
- package/lib/{highlight-coordinator-DRHeEU-E.mjs → highlight-coordinator-DeB46jQq.mjs} +9 -3
- package/lib/highlight-coordinator-DeB46jQq.mjs.map +1 -0
- package/lib/{homag-intelligence-D5mCTWgG.mjs → homag-intelligence-f1JD0An1.mjs} +3 -3
- package/lib/homag-intelligence-f1JD0An1.mjs.map +1 -0
- package/lib/{imos-ix-poc-export-helper-BKFs_Yhm.mjs → imos-ix-poc-export-helper-Vyv-uuNs.mjs} +3 -3
- package/lib/{imos-ix-poc-export-helper-BKFs_Yhm.mjs.map → imos-ix-poc-export-helper-Vyv-uuNs.mjs.map} +1 -1
- package/lib/kernel-C7YDLxq8.mjs.map +1 -1
- package/lib/{kernel-utils-B80amC-l.mjs → kernel-utils-BG1uqfT_.mjs} +2 -2
- package/lib/{kernel-utils-B80amC-l.mjs.map → kernel-utils-BG1uqfT_.mjs.map} +1 -1
- package/lib/{main-CJ5TNhBt.mjs → main-CuqGqemT.mjs} +2916 -2605
- package/lib/main-CuqGqemT.mjs.map +1 -0
- package/lib/{material-viewer-DCqZzMZN.mjs → material-viewer-Cij9aWpI.mjs} +23 -23
- package/lib/{material-viewer-DCqZzMZN.mjs.map → material-viewer-Cij9aWpI.mjs.map} +1 -1
- package/lib/packages-DALvuVA_.mjs +4 -0
- package/lib/planner-CVn2Lls0.mjs +2 -0
- package/lib/planner-DKbmQVSf.mjs +44 -0
- package/lib/{planner-CSboZram.mjs.map → planner-DKbmQVSf.mjs.map} +1 -1
- package/lib/{plugin-system-DD0Z9Jvt.mjs → plugin-system-BEZnFUyT.mjs} +2 -2
- package/lib/{plugin-system-DD0Z9Jvt.mjs.map → plugin-system-BEZnFUyT.mjs.map} +1 -1
- package/lib/{roomle-headless-setup-nsoGENQV.mjs → roomle-headless-setup-CMK-quZI.mjs} +131 -77
- package/lib/roomle-headless-setup-CMK-quZI.mjs.map +1 -0
- package/lib/roomle-headless.d.ts +333 -44
- package/lib/roomle-headless.js +196 -80
- package/lib/roomle-headless.js.map +1 -1
- package/lib/{roomle-renderer-BEJNPCKx.mjs → roomle-renderer-BgT28pfp.mjs} +2 -2
- package/lib/{roomle-renderer-BEJNPCKx.mjs.map → roomle-renderer-BgT28pfp.mjs.map} +1 -1
- package/lib/roomle-sdk.d.ts +168 -37
- package/lib/roomle-sdk.js +7 -7
- package/lib/roomle-webgpu-renderer-BdCItfH1.mjs +2243 -0
- package/lib/roomle-webgpu-renderer-BdCItfH1.mjs.map +1 -0
- package/lib/{scene-renderer-Dm1kij1z.mjs → scene-renderer-Bdl7umAf.mjs} +6 -6
- package/lib/{scene-renderer-Dm1kij1z.mjs.map → scene-renderer-Bdl7umAf.mjs.map} +1 -1
- package/lib/{script-loader-DqaDm1FG.mjs → script-loader-BtWHegD-.mjs} +2 -2
- package/lib/{script-loader-DqaDm1FG.mjs.map → script-loader-BtWHegD-.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/src/embind/configuratorCallback.d.ts +2 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCallback.js +2 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCallback.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +12 -3
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js +1 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.d.ts +43 -2
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js +20 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.d.ts +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.js +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/src/loader/configurationLoader.js.map +1 -1
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +6 -6
- 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.js +8 -8
- 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-D7a7oxnj.mjs → stats-helper-BvDfWWfq.mjs} +2 -2
- package/lib/{stats-helper-D7a7oxnj.mjs.map → stats-helper-BvDfWWfq.mjs.map} +1 -1
- package/lib/{three.core-BmQnspOL.mjs → three.core-K1JzUaep.mjs} +748 -706
- package/lib/three.core-K1JzUaep.mjs.map +1 -0
- package/lib/{three.module-DkrZwaid.mjs → three.module-Q2K9uyhi.mjs} +1022 -965
- package/lib/three.module-Q2K9uyhi.mjs.map +1 -0
- package/lib/{three.webgpu-DLZjhIYv.mjs → three.webgpu-7v7o6Pxs.mjs} +3804 -3481
- package/lib/three.webgpu-7v7o6Pxs.mjs.map +1 -0
- package/lib/three.webgpu-ChguPx4k.mjs +3 -0
- package/lib/{threejs-utils-CrK_gp1x.mjs → threejs-utils-BzXU2M3w.mjs} +67 -47
- package/lib/threejs-utils-BzXU2M3w.mjs.map +1 -0
- package/lib/{tools-core-CZWgXTFV.mjs → tools-core-BoxckhTR.mjs} +6 -6
- package/lib/{tools-core-CZWgXTFV.mjs.map → tools-core-BoxckhTR.mjs.map} +1 -1
- package/package.json +4 -4
- package/lib/BufferGeometry-BzmfTBQt.mjs.map +0 -1
- package/lib/GLTFExporter-CyhgWPq0.mjs.map +0 -1
- package/lib/Object3D-C3wqWk6O.mjs.map +0 -1
- package/lib/PointLightHelper-DwIXACyT.mjs.map +0 -1
- package/lib/Vector4-DUqY3Egg.mjs.map +0 -1
- package/lib/configurator-C5t3clCx.mjs +0 -2
- package/lib/configurator-Cg1a9XSL.mjs +0 -45
- package/lib/dimensioning-helper-Bfe0fImX.mjs +0 -2
- package/lib/glb-viewer-DIEpkrvY.mjs +0 -2
- package/lib/glb-viewer-tgKOPCaI.mjs.map +0 -1
- package/lib/highlight-coordinator-DRHeEU-E.mjs.map +0 -1
- package/lib/homag-intelligence-D5mCTWgG.mjs.map +0 -1
- package/lib/main-CJ5TNhBt.mjs.map +0 -1
- package/lib/packages-DuOz6rk6.mjs +0 -4
- package/lib/planner-CSboZram.mjs +0 -44
- package/lib/planner-CWPqJktz.mjs +0 -2
- package/lib/roomle-headless-setup-nsoGENQV.mjs.map +0 -1
- package/lib/roomle-webgpu-renderer-D5flithq.mjs +0 -1502
- package/lib/roomle-webgpu-renderer-D5flithq.mjs.map +0 -1
- package/lib/three.core-BmQnspOL.mjs.map +0 -1
- package/lib/three.module-DkrZwaid.mjs.map +0 -1
- package/lib/three.webgpu-DLZjhIYv.mjs.map +0 -1
- package/lib/three.webgpu-RkQxSIwG.mjs +0 -3
- package/lib/threejs-utils-CrK_gp1x.mjs.map +0 -1
|
@@ -54,7 +54,12 @@ function Tt(...e) {
|
|
|
54
54
|
let t = e.join(" ");
|
|
55
55
|
t in bt || (bt[t] = !0, k(...e));
|
|
56
56
|
}
|
|
57
|
-
function Et(
|
|
57
|
+
function Et() {
|
|
58
|
+
return typeof self < "u" && self.scheduler !== void 0 && self.scheduler.yield !== void 0 ? self.scheduler.yield() : new Promise((e) => {
|
|
59
|
+
requestAnimationFrame(e);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function Dt(e, t, n) {
|
|
58
63
|
return new Promise(function(r, i) {
|
|
59
64
|
function a() {
|
|
60
65
|
switch (e.clientWaitSync(t, e.SYNC_FLUSH_COMMANDS_BIT, 0)) {
|
|
@@ -70,7 +75,7 @@ function Et(e, t, n) {
|
|
|
70
75
|
setTimeout(a, n);
|
|
71
76
|
});
|
|
72
77
|
}
|
|
73
|
-
var
|
|
78
|
+
var Ot = {
|
|
74
79
|
0: 1,
|
|
75
80
|
2: 6,
|
|
76
81
|
4: 7,
|
|
@@ -79,7 +84,7 @@ var Dt = {
|
|
|
79
84
|
6: 2,
|
|
80
85
|
7: 4,
|
|
81
86
|
5: 3
|
|
82
|
-
},
|
|
87
|
+
}, kt = class {
|
|
83
88
|
addEventListener(e, t) {
|
|
84
89
|
this._listeners === void 0 && (this._listeners = {});
|
|
85
90
|
let n = this._listeners;
|
|
@@ -109,68 +114,68 @@ var Dt = {
|
|
|
109
114
|
e.target = null;
|
|
110
115
|
}
|
|
111
116
|
}
|
|
112
|
-
}, j = /* @__PURE__ */ "00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.cd.ce.cf.d0.d1.d2.d3.d4.d5.d6.d7.d8.d9.da.db.dc.dd.de.df.e0.e1.e2.e3.e4.e5.e6.e7.e8.e9.ea.eb.ec.ed.ee.ef.f0.f1.f2.f3.f4.f5.f6.f7.f8.f9.fa.fb.fc.fd.fe.ff".split("."),
|
|
113
|
-
function
|
|
117
|
+
}, j = /* @__PURE__ */ "00.01.02.03.04.05.06.07.08.09.0a.0b.0c.0d.0e.0f.10.11.12.13.14.15.16.17.18.19.1a.1b.1c.1d.1e.1f.20.21.22.23.24.25.26.27.28.29.2a.2b.2c.2d.2e.2f.30.31.32.33.34.35.36.37.38.39.3a.3b.3c.3d.3e.3f.40.41.42.43.44.45.46.47.48.49.4a.4b.4c.4d.4e.4f.50.51.52.53.54.55.56.57.58.59.5a.5b.5c.5d.5e.5f.60.61.62.63.64.65.66.67.68.69.6a.6b.6c.6d.6e.6f.70.71.72.73.74.75.76.77.78.79.7a.7b.7c.7d.7e.7f.80.81.82.83.84.85.86.87.88.89.8a.8b.8c.8d.8e.8f.90.91.92.93.94.95.96.97.98.99.9a.9b.9c.9d.9e.9f.a0.a1.a2.a3.a4.a5.a6.a7.a8.a9.aa.ab.ac.ad.ae.af.b0.b1.b2.b3.b4.b5.b6.b7.b8.b9.ba.bb.bc.bd.be.bf.c0.c1.c2.c3.c4.c5.c6.c7.c8.c9.ca.cb.cc.cd.ce.cf.d0.d1.d2.d3.d4.d5.d6.d7.d8.d9.da.db.dc.dd.de.df.e0.e1.e2.e3.e4.e5.e6.e7.e8.e9.ea.eb.ec.ed.ee.ef.f0.f1.f2.f3.f4.f5.f6.f7.f8.f9.fa.fb.fc.fd.fe.ff".split("."), At = 1234567, jt = Math.PI / 180, Mt = 180 / Math.PI;
|
|
118
|
+
function Nt() {
|
|
114
119
|
let e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, n = Math.random() * 4294967295 | 0, r = Math.random() * 4294967295 | 0;
|
|
115
120
|
return (j[e & 255] + j[e >> 8 & 255] + j[e >> 16 & 255] + j[e >> 24 & 255] + "-" + j[t & 255] + j[t >> 8 & 255] + "-" + j[t >> 16 & 15 | 64] + j[t >> 24 & 255] + "-" + j[n & 63 | 128] + j[n >> 8 & 255] + "-" + j[n >> 16 & 255] + j[n >> 24 & 255] + j[r & 255] + j[r >> 8 & 255] + j[r >> 16 & 255] + j[r >> 24 & 255]).toLowerCase();
|
|
116
121
|
}
|
|
117
122
|
function M(e, t, n) {
|
|
118
123
|
return Math.max(t, Math.min(n, e));
|
|
119
124
|
}
|
|
120
|
-
function
|
|
125
|
+
function Pt(e, t) {
|
|
121
126
|
return (e % t + t) % t;
|
|
122
127
|
}
|
|
123
|
-
function
|
|
128
|
+
function Ft(e, t, n, r, i) {
|
|
124
129
|
return r + (e - t) * (i - r) / (n - t);
|
|
125
130
|
}
|
|
126
|
-
function
|
|
131
|
+
function It(e, t, n) {
|
|
127
132
|
return e === t ? 0 : (n - e) / (t - e);
|
|
128
133
|
}
|
|
129
|
-
function
|
|
134
|
+
function Lt(e, t, n) {
|
|
130
135
|
return (1 - n) * e + n * t;
|
|
131
136
|
}
|
|
132
|
-
function
|
|
133
|
-
return
|
|
137
|
+
function Rt(e, t, n, r) {
|
|
138
|
+
return Lt(e, t, 1 - Math.exp(-n * r));
|
|
134
139
|
}
|
|
135
|
-
function
|
|
136
|
-
return t - Math.abs(
|
|
140
|
+
function zt(e, t = 1) {
|
|
141
|
+
return t - Math.abs(Pt(e, t * 2) - t);
|
|
137
142
|
}
|
|
138
|
-
function
|
|
143
|
+
function Bt(e, t, n) {
|
|
139
144
|
return e <= t ? 0 : e >= n ? 1 : (e = (e - t) / (n - t), e * e * (3 - 2 * e));
|
|
140
145
|
}
|
|
141
|
-
function
|
|
146
|
+
function Vt(e, t, n) {
|
|
142
147
|
return e <= t ? 0 : e >= n ? 1 : (e = (e - t) / (n - t), e * e * e * (e * (e * 6 - 15) + 10));
|
|
143
148
|
}
|
|
144
|
-
function
|
|
149
|
+
function Ht(e, t) {
|
|
145
150
|
return e + Math.floor(Math.random() * (t - e + 1));
|
|
146
151
|
}
|
|
147
|
-
function
|
|
152
|
+
function Ut(e, t) {
|
|
148
153
|
return e + Math.random() * (t - e);
|
|
149
154
|
}
|
|
150
|
-
function Ut(e) {
|
|
151
|
-
return e * (.5 - Math.random());
|
|
152
|
-
}
|
|
153
155
|
function Wt(e) {
|
|
154
|
-
e
|
|
155
|
-
let t = kt += 1831565813;
|
|
156
|
-
return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
156
|
+
return e * (.5 - Math.random());
|
|
157
157
|
}
|
|
158
158
|
function Gt(e) {
|
|
159
|
-
|
|
159
|
+
e !== void 0 && (At = e);
|
|
160
|
+
let t = At += 1831565813;
|
|
161
|
+
return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
160
162
|
}
|
|
161
163
|
function Kt(e) {
|
|
162
164
|
return e * jt;
|
|
163
165
|
}
|
|
164
166
|
function qt(e) {
|
|
165
|
-
return
|
|
167
|
+
return e * Mt;
|
|
166
168
|
}
|
|
167
169
|
function Jt(e) {
|
|
168
|
-
return
|
|
170
|
+
return (e & e - 1) == 0 && e !== 0;
|
|
169
171
|
}
|
|
170
172
|
function Yt(e) {
|
|
173
|
+
return 2 ** Math.ceil(Math.log(e) / Math.LN2);
|
|
174
|
+
}
|
|
175
|
+
function Xt(e) {
|
|
171
176
|
return 2 ** Math.floor(Math.log(e) / Math.LN2);
|
|
172
177
|
}
|
|
173
|
-
function
|
|
178
|
+
function Zt(e, t, n, r, i) {
|
|
174
179
|
let a = Math.cos, o = Math.sin, s = a(n / 2), c = o(n / 2), l = a((t + r) / 2), u = o((t + r) / 2), d = a((t - r) / 2), f = o((t - r) / 2), p = a((r - t) / 2), m = o((r - t) / 2);
|
|
175
180
|
switch (i) {
|
|
176
181
|
case "XYX":
|
|
@@ -218,34 +223,37 @@ function P(e, t) {
|
|
|
218
223
|
default: throw Error("Invalid component type.");
|
|
219
224
|
}
|
|
220
225
|
}
|
|
221
|
-
var
|
|
222
|
-
DEG2RAD:
|
|
223
|
-
RAD2DEG:
|
|
224
|
-
generateUUID:
|
|
226
|
+
var Qt = {
|
|
227
|
+
DEG2RAD: jt,
|
|
228
|
+
RAD2DEG: Mt,
|
|
229
|
+
generateUUID: Nt,
|
|
225
230
|
clamp: M,
|
|
226
|
-
euclideanModulo:
|
|
227
|
-
mapLinear:
|
|
228
|
-
inverseLerp:
|
|
229
|
-
lerp:
|
|
230
|
-
damp:
|
|
231
|
-
pingpong:
|
|
232
|
-
smoothstep:
|
|
233
|
-
smootherstep:
|
|
234
|
-
randInt:
|
|
235
|
-
randFloat:
|
|
236
|
-
randFloatSpread:
|
|
237
|
-
seededRandom:
|
|
238
|
-
degToRad:
|
|
239
|
-
radToDeg:
|
|
240
|
-
isPowerOfTwo:
|
|
241
|
-
ceilPowerOfTwo:
|
|
242
|
-
floorPowerOfTwo:
|
|
243
|
-
setQuaternionFromProperEuler:
|
|
231
|
+
euclideanModulo: Pt,
|
|
232
|
+
mapLinear: Ft,
|
|
233
|
+
inverseLerp: It,
|
|
234
|
+
lerp: Lt,
|
|
235
|
+
damp: Rt,
|
|
236
|
+
pingpong: zt,
|
|
237
|
+
smoothstep: Bt,
|
|
238
|
+
smootherstep: Vt,
|
|
239
|
+
randInt: Ht,
|
|
240
|
+
randFloat: Ut,
|
|
241
|
+
randFloatSpread: Wt,
|
|
242
|
+
seededRandom: Gt,
|
|
243
|
+
degToRad: Kt,
|
|
244
|
+
radToDeg: qt,
|
|
245
|
+
isPowerOfTwo: Jt,
|
|
246
|
+
ceilPowerOfTwo: Yt,
|
|
247
|
+
floorPowerOfTwo: Xt,
|
|
248
|
+
setQuaternionFromProperEuler: Zt,
|
|
244
249
|
normalize: P,
|
|
245
250
|
denormalize: N
|
|
246
251
|
}, F = class e {
|
|
247
|
-
|
|
248
|
-
e.prototype.isVector2 = !0
|
|
252
|
+
static {
|
|
253
|
+
e.prototype.isVector2 = !0;
|
|
254
|
+
}
|
|
255
|
+
constructor(e = 0, t = 0) {
|
|
256
|
+
this.x = e, this.y = t;
|
|
249
257
|
}
|
|
250
258
|
get width() {
|
|
251
259
|
return this.x;
|
|
@@ -432,7 +440,7 @@ var Zt = {
|
|
|
432
440
|
*[Symbol.iterator]() {
|
|
433
441
|
yield this.x, yield this.y;
|
|
434
442
|
}
|
|
435
|
-
},
|
|
443
|
+
}, $t = class {
|
|
436
444
|
constructor(e = 0, t = 0, n = 0, r = 1) {
|
|
437
445
|
this.isQuaternion = !0, this._x = e, this._y = t, this._z = n, this._w = r;
|
|
438
446
|
}
|
|
@@ -621,8 +629,11 @@ var Zt = {
|
|
|
621
629
|
yield this._x, yield this._y, yield this._z, yield this._w;
|
|
622
630
|
}
|
|
623
631
|
}, I = class e {
|
|
624
|
-
|
|
625
|
-
e.prototype.isVector3 = !0
|
|
632
|
+
static {
|
|
633
|
+
e.prototype.isVector3 = !0;
|
|
634
|
+
}
|
|
635
|
+
constructor(e = 0, t = 0, n = 0) {
|
|
636
|
+
this.x = e, this.y = t, this.z = n;
|
|
626
637
|
}
|
|
627
638
|
set(e, t, n) {
|
|
628
639
|
return n === void 0 && (n = this.z), this.x = e, this.y = t, this.z = n, this;
|
|
@@ -699,10 +710,10 @@ var Zt = {
|
|
|
699
710
|
return this.x = e.x * t.x, this.y = e.y * t.y, this.z = e.z * t.z, this;
|
|
700
711
|
}
|
|
701
712
|
applyEuler(e) {
|
|
702
|
-
return this.applyQuaternion(
|
|
713
|
+
return this.applyQuaternion(tn.setFromEuler(e));
|
|
703
714
|
}
|
|
704
715
|
applyAxisAngle(e, t) {
|
|
705
|
-
return this.applyQuaternion(
|
|
716
|
+
return this.applyQuaternion(tn.setFromAxisAngle(e, t));
|
|
706
717
|
}
|
|
707
718
|
applyMatrix3(e) {
|
|
708
719
|
let t = this.x, n = this.y, r = this.z, i = e.elements;
|
|
@@ -804,10 +815,10 @@ var Zt = {
|
|
|
804
815
|
return this.copy(e).multiplyScalar(n);
|
|
805
816
|
}
|
|
806
817
|
projectOnPlane(e) {
|
|
807
|
-
return
|
|
818
|
+
return en.copy(this).projectOnVector(e), this.sub(en);
|
|
808
819
|
}
|
|
809
820
|
reflect(e) {
|
|
810
|
-
return this.sub(
|
|
821
|
+
return this.sub(en.copy(e).multiplyScalar(2 * this.dot(e)));
|
|
811
822
|
}
|
|
812
823
|
angleTo(e) {
|
|
813
824
|
let t = Math.sqrt(this.lengthSq() * e.lengthSq());
|
|
@@ -880,9 +891,12 @@ var Zt = {
|
|
|
880
891
|
*[Symbol.iterator]() {
|
|
881
892
|
yield this.x, yield this.y, yield this.z;
|
|
882
893
|
}
|
|
883
|
-
},
|
|
884
|
-
|
|
885
|
-
e.prototype.isMatrix3 = !0
|
|
894
|
+
}, en = /* @__PURE__ */ new I(), tn = /* @__PURE__ */ new $t(), nn = class e {
|
|
895
|
+
static {
|
|
896
|
+
e.prototype.isMatrix3 = !0;
|
|
897
|
+
}
|
|
898
|
+
constructor(e, t, n, r, i, a, o, s, c) {
|
|
899
|
+
this.elements = [
|
|
886
900
|
1,
|
|
887
901
|
0,
|
|
888
902
|
0,
|
|
@@ -892,7 +906,7 @@ var Zt = {
|
|
|
892
906
|
0,
|
|
893
907
|
0,
|
|
894
908
|
1
|
|
895
|
-
],
|
|
909
|
+
], e !== void 0 && this.set(e, t, n, r, i, a, o, s, c);
|
|
896
910
|
}
|
|
897
911
|
set(e, t, n, r, i, a, o, s, c) {
|
|
898
912
|
let l = this.elements;
|
|
@@ -952,13 +966,13 @@ var Zt = {
|
|
|
952
966
|
return this.set(n * s, n * c, -n * (s * a + c * o) + a + e, -r * c, r * s, -r * (-c * a + s * o) + o + t, 0, 0, 1), this;
|
|
953
967
|
}
|
|
954
968
|
scale(e, t) {
|
|
955
|
-
return this.premultiply(
|
|
969
|
+
return this.premultiply(rn.makeScale(e, t)), this;
|
|
956
970
|
}
|
|
957
971
|
rotate(e) {
|
|
958
|
-
return this.premultiply(
|
|
972
|
+
return this.premultiply(rn.makeRotation(-e)), this;
|
|
959
973
|
}
|
|
960
974
|
translate(e, t) {
|
|
961
|
-
return this.premultiply(
|
|
975
|
+
return this.premultiply(rn.makeTranslation(e, t)), this;
|
|
962
976
|
}
|
|
963
977
|
makeTranslation(e, t) {
|
|
964
978
|
return e.isVector2 ? this.set(1, 0, e.x, 0, 1, e.y, 0, 0, 1) : this.set(1, 0, e, 0, 1, t, 0, 0, 1), this;
|
|
@@ -986,8 +1000,8 @@ var Zt = {
|
|
|
986
1000
|
clone() {
|
|
987
1001
|
return new this.constructor().fromArray(this.elements);
|
|
988
1002
|
}
|
|
989
|
-
},
|
|
990
|
-
function
|
|
1003
|
+
}, rn = /* @__PURE__ */ new nn(), an = /* @__PURE__ */ new nn().set(.4123908, .3575843, .1804808, .212639, .7151687, .0721923, .0193308, .1191948, .9505322), on = /* @__PURE__ */ new nn().set(3.2409699, -1.5373832, -.4986108, -.9692436, 1.8759675, .0415551, .0556301, -.203977, 1.0569715);
|
|
1004
|
+
function sn() {
|
|
991
1005
|
let e = {
|
|
992
1006
|
enabled: !0,
|
|
993
1007
|
workingColorSpace: $e,
|
|
@@ -1048,8 +1062,8 @@ function on() {
|
|
|
1048
1062
|
primaries: t,
|
|
1049
1063
|
whitePoint: r,
|
|
1050
1064
|
transfer: et,
|
|
1051
|
-
toXYZ:
|
|
1052
|
-
fromXYZ:
|
|
1065
|
+
toXYZ: an,
|
|
1066
|
+
fromXYZ: on,
|
|
1053
1067
|
luminanceCoefficients: n,
|
|
1054
1068
|
workingColorSpaceConfig: { unpackColorSpace: Qe },
|
|
1055
1069
|
outputColorSpaceConfig: { drawingBufferColorSpace: Qe }
|
|
@@ -1058,14 +1072,14 @@ function on() {
|
|
|
1058
1072
|
primaries: t,
|
|
1059
1073
|
whitePoint: r,
|
|
1060
1074
|
transfer: tt,
|
|
1061
|
-
toXYZ:
|
|
1062
|
-
fromXYZ:
|
|
1075
|
+
toXYZ: an,
|
|
1076
|
+
fromXYZ: on,
|
|
1063
1077
|
luminanceCoefficients: n,
|
|
1064
1078
|
outputColorSpaceConfig: { drawingBufferColorSpace: Qe }
|
|
1065
1079
|
}
|
|
1066
1080
|
}), e;
|
|
1067
1081
|
}
|
|
1068
|
-
var
|
|
1082
|
+
var L = /* @__PURE__ */ sn();
|
|
1069
1083
|
function cn(e) {
|
|
1070
1084
|
return e < .04045 ? e * .0773993808 : (e * .9478672986 + .0521327014) ** 2.4;
|
|
1071
1085
|
}
|
|
@@ -1105,11 +1119,11 @@ var un, dn = class {
|
|
|
1105
1119
|
}
|
|
1106
1120
|
}, fn = 0, pn = class {
|
|
1107
1121
|
constructor(e = null) {
|
|
1108
|
-
this.isSource = !0, Object.defineProperty(this, "id", { value: fn++ }), this.uuid =
|
|
1122
|
+
this.isSource = !0, Object.defineProperty(this, "id", { value: fn++ }), this.uuid = Nt(), this.data = e, this.dataReady = !0, this.version = 0;
|
|
1109
1123
|
}
|
|
1110
1124
|
getSize(e) {
|
|
1111
1125
|
let t = this.data;
|
|
1112
|
-
return typeof HTMLVideoElement < "u" && t instanceof HTMLVideoElement ? e.set(t.videoWidth, t.videoHeight, 0) : typeof VideoFrame < "u" && t instanceof VideoFrame ? e.set(t.
|
|
1126
|
+
return typeof HTMLVideoElement < "u" && t instanceof HTMLVideoElement ? e.set(t.videoWidth, t.videoHeight, 0) : typeof VideoFrame < "u" && t instanceof VideoFrame ? e.set(t.displayWidth, t.displayHeight, 0) : t === null ? e.set(0, 0, 0) : e.set(t.width, t.height, t.depth || 0), e;
|
|
1113
1127
|
}
|
|
1114
1128
|
set needsUpdate(e) {
|
|
1115
1129
|
e === !0 && this.version++;
|
|
@@ -1140,9 +1154,9 @@ function mn(e) {
|
|
|
1140
1154
|
type: e.data.constructor.name
|
|
1141
1155
|
} : (k("Texture: Unable to serialize Texture."), {});
|
|
1142
1156
|
}
|
|
1143
|
-
var hn = 0, gn = /* @__PURE__ */ new I(),
|
|
1157
|
+
var hn = 0, gn = /* @__PURE__ */ new I(), R = class e extends kt {
|
|
1144
1158
|
constructor(t = e.DEFAULT_IMAGE, n = e.DEFAULT_MAPPING, i = r, a = r, o = c, s = u, l = D, d = f, p = e.DEFAULT_ANISOTROPY, m = "") {
|
|
1145
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: hn++ }), this.uuid =
|
|
1159
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: hn++ }), this.uuid = Nt(), this.name = "", this.source = new pn(t), this.mipmaps = [], this.mapping = n, this.channel = 0, this.wrapS = i, this.wrapT = a, this.magFilter = o, this.minFilter = s, this.anisotropy = p, this.format = l, this.internalFormat = null, this.type = d, this.offset = new F(0, 0), this.repeat = new F(1, 1), this.center = new F(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new nn(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = m, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(t && t.depth && t.depth > 1), this.pmremVersion = 0, this.normalized = !1;
|
|
1146
1160
|
}
|
|
1147
1161
|
get width() {
|
|
1148
1162
|
return this.source.getSize(gn).x;
|
|
@@ -1156,7 +1170,7 @@ var hn = 0, gn = /* @__PURE__ */ new I(), L = class e extends Ot {
|
|
|
1156
1170
|
get image() {
|
|
1157
1171
|
return this.source.data;
|
|
1158
1172
|
}
|
|
1159
|
-
set image(e
|
|
1173
|
+
set image(e) {
|
|
1160
1174
|
this.source.data = e;
|
|
1161
1175
|
}
|
|
1162
1176
|
updateMatrix() {
|
|
@@ -1175,7 +1189,7 @@ var hn = 0, gn = /* @__PURE__ */ new I(), L = class e extends Ot {
|
|
|
1175
1189
|
return new this.constructor().copy(this);
|
|
1176
1190
|
}
|
|
1177
1191
|
copy(e) {
|
|
1178
|
-
return this.name = e.name, this.source = e.source, this.mipmaps = e.mipmaps.slice(0), this.mapping = e.mapping, this.channel = e.channel, this.wrapS = e.wrapS, this.wrapT = e.wrapT, this.magFilter = e.magFilter, this.minFilter = e.minFilter, this.anisotropy = e.anisotropy, this.format = e.format, this.internalFormat = e.internalFormat, this.type = e.type, this.offset.copy(e.offset), this.repeat.copy(e.repeat), this.center.copy(e.center), this.rotation = e.rotation, this.matrixAutoUpdate = e.matrixAutoUpdate, this.matrix.copy(e.matrix), this.generateMipmaps = e.generateMipmaps, this.premultiplyAlpha = e.premultiplyAlpha, this.flipY = e.flipY, this.unpackAlignment = e.unpackAlignment, this.colorSpace = e.colorSpace, this.renderTarget = e.renderTarget, this.isRenderTargetTexture = e.isRenderTargetTexture, this.isArrayTexture = e.isArrayTexture, this.userData = JSON.parse(JSON.stringify(e.userData)), this.needsUpdate = !0, this;
|
|
1192
|
+
return this.name = e.name, this.source = e.source, this.mipmaps = e.mipmaps.slice(0), this.mapping = e.mapping, this.channel = e.channel, this.wrapS = e.wrapS, this.wrapT = e.wrapT, this.magFilter = e.magFilter, this.minFilter = e.minFilter, this.anisotropy = e.anisotropy, this.format = e.format, this.internalFormat = e.internalFormat, this.type = e.type, this.normalized = e.normalized, this.offset.copy(e.offset), this.repeat.copy(e.repeat), this.center.copy(e.center), this.rotation = e.rotation, this.matrixAutoUpdate = e.matrixAutoUpdate, this.matrix.copy(e.matrix), this.generateMipmaps = e.generateMipmaps, this.premultiplyAlpha = e.premultiplyAlpha, this.flipY = e.flipY, this.unpackAlignment = e.unpackAlignment, this.colorSpace = e.colorSpace, this.renderTarget = e.renderTarget, this.isRenderTargetTexture = e.isRenderTargetTexture, this.isArrayTexture = e.isArrayTexture, this.userData = JSON.parse(JSON.stringify(e.userData)), this.needsUpdate = !0, this;
|
|
1179
1193
|
}
|
|
1180
1194
|
setValues(e) {
|
|
1181
1195
|
for (let t in e) {
|
|
@@ -1214,6 +1228,7 @@ var hn = 0, gn = /* @__PURE__ */ new I(), L = class e extends Ot {
|
|
|
1214
1228
|
format: this.format,
|
|
1215
1229
|
internalFormat: this.internalFormat,
|
|
1216
1230
|
type: this.type,
|
|
1231
|
+
normalized: this.normalized,
|
|
1217
1232
|
colorSpace: this.colorSpace,
|
|
1218
1233
|
minFilter: this.minFilter,
|
|
1219
1234
|
magFilter: this.magFilter,
|
|
@@ -1261,10 +1276,13 @@ var hn = 0, gn = /* @__PURE__ */ new I(), L = class e extends Ot {
|
|
|
1261
1276
|
e === !0 && this.pmremVersion++;
|
|
1262
1277
|
}
|
|
1263
1278
|
};
|
|
1264
|
-
|
|
1279
|
+
R.DEFAULT_IMAGE = null, R.DEFAULT_MAPPING = 300, R.DEFAULT_ANISOTROPY = 1;
|
|
1265
1280
|
var _n = class e {
|
|
1266
|
-
|
|
1267
|
-
e.prototype.isVector4 = !0
|
|
1281
|
+
static {
|
|
1282
|
+
e.prototype.isVector4 = !0;
|
|
1283
|
+
}
|
|
1284
|
+
constructor(e = 0, t = 0, n = 0, r = 1) {
|
|
1285
|
+
this.x = e, this.y = t, this.z = n, this.w = r;
|
|
1268
1286
|
}
|
|
1269
1287
|
get width() {
|
|
1270
1288
|
return this.z;
|
|
@@ -1459,7 +1477,7 @@ var _n = class e {
|
|
|
1459
1477
|
*[Symbol.iterator]() {
|
|
1460
1478
|
yield this.x, yield this.y, yield this.z, yield this.w;
|
|
1461
1479
|
}
|
|
1462
|
-
}, vn = class extends
|
|
1480
|
+
}, vn = class extends kt {
|
|
1463
1481
|
constructor(e = 1, t = 1, n = {}) {
|
|
1464
1482
|
super(), n = Object.assign({
|
|
1465
1483
|
generateMipmaps: !1,
|
|
@@ -1475,7 +1493,7 @@ var _n = class e {
|
|
|
1475
1493
|
depth: 1,
|
|
1476
1494
|
multiview: !1
|
|
1477
1495
|
}, n), this.isRenderTarget = !0, this.width = e, this.height = t, this.depth = n.depth, this.scissor = new _n(0, 0, e, t), this.scissorTest = !1, this.viewport = new _n(0, 0, e, t), this.textures = [];
|
|
1478
|
-
let r = new
|
|
1496
|
+
let r = new R({
|
|
1479
1497
|
width: e,
|
|
1480
1498
|
height: t,
|
|
1481
1499
|
depth: n.depth
|
|
@@ -1523,7 +1541,7 @@ var _n = class e {
|
|
|
1523
1541
|
let n = Object.assign({}, e.textures[t].image);
|
|
1524
1542
|
this.textures[t].source = new pn(n);
|
|
1525
1543
|
}
|
|
1526
|
-
return this.depthBuffer = e.depthBuffer, this.stencilBuffer = e.stencilBuffer, this.resolveDepthBuffer = e.resolveDepthBuffer, this.resolveStencilBuffer = e.resolveStencilBuffer, e.depthTexture !== null && (this.depthTexture = e.depthTexture.clone()), this.samples = e.samples, this;
|
|
1544
|
+
return this.depthBuffer = e.depthBuffer, this.stencilBuffer = e.stencilBuffer, this.resolveDepthBuffer = e.resolveDepthBuffer, this.resolveStencilBuffer = e.resolveStencilBuffer, e.depthTexture !== null && (this.depthTexture = e.depthTexture.clone()), this.samples = e.samples, this.multiview = e.multiview, this;
|
|
1527
1545
|
}
|
|
1528
1546
|
dispose() {
|
|
1529
1547
|
this.dispatchEvent({ type: "dispose" });
|
|
@@ -1532,7 +1550,7 @@ var _n = class e {
|
|
|
1532
1550
|
constructor(e = 1, t = 1, n = {}) {
|
|
1533
1551
|
super(e, t, n), this.isWebGLRenderTarget = !0;
|
|
1534
1552
|
}
|
|
1535
|
-
}, bn = class extends
|
|
1553
|
+
}, bn = class extends R {
|
|
1536
1554
|
constructor(e = null, t = 1, n = 1, i = 1) {
|
|
1537
1555
|
super(null), this.isDataArrayTexture = !0, this.image = {
|
|
1538
1556
|
data: e,
|
|
@@ -1547,7 +1565,7 @@ var _n = class e {
|
|
|
1547
1565
|
clearLayerUpdates() {
|
|
1548
1566
|
this.layerUpdates.clear();
|
|
1549
1567
|
}
|
|
1550
|
-
}, xn = class extends
|
|
1568
|
+
}, xn = class extends R {
|
|
1551
1569
|
constructor(e = null, t = 1, n = 1, i = 1) {
|
|
1552
1570
|
super(null), this.isData3DTexture = !0, this.image = {
|
|
1553
1571
|
data: e,
|
|
@@ -1556,9 +1574,12 @@ var _n = class e {
|
|
|
1556
1574
|
depth: i
|
|
1557
1575
|
}, this.magFilter = a, this.minFilter = a, this.wrapR = r, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
1558
1576
|
}
|
|
1559
|
-
},
|
|
1560
|
-
|
|
1561
|
-
e.prototype.isMatrix4 = !0
|
|
1577
|
+
}, z = class e {
|
|
1578
|
+
static {
|
|
1579
|
+
e.prototype.isMatrix4 = !0;
|
|
1580
|
+
}
|
|
1581
|
+
constructor(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
|
|
1582
|
+
this.elements = [
|
|
1562
1583
|
1,
|
|
1563
1584
|
0,
|
|
1564
1585
|
0,
|
|
@@ -1575,7 +1596,7 @@ var _n = class e {
|
|
|
1575
1596
|
0,
|
|
1576
1597
|
0,
|
|
1577
1598
|
1
|
|
1578
|
-
],
|
|
1599
|
+
], e !== void 0 && this.set(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h);
|
|
1579
1600
|
}
|
|
1580
1601
|
set(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m, h) {
|
|
1581
1602
|
let g = this.elements;
|
|
@@ -1638,7 +1659,7 @@ var _n = class e {
|
|
|
1638
1659
|
}
|
|
1639
1660
|
lookAt(e, t, n) {
|
|
1640
1661
|
let r = this.elements;
|
|
1641
|
-
return
|
|
1662
|
+
return B.subVectors(e, t), B.lengthSq() === 0 && (B.z = 1), B.normalize(), En.crossVectors(n, B), En.lengthSq() === 0 && (Math.abs(n.z) === 1 ? B.x += 1e-4 : B.z += 1e-4, B.normalize(), En.crossVectors(n, B)), En.normalize(), Dn.crossVectors(B, En), r[0] = En.x, r[4] = Dn.x, r[8] = B.x, r[1] = En.y, r[5] = Dn.y, r[9] = B.y, r[2] = En.z, r[6] = Dn.z, r[10] = B.z, this;
|
|
1642
1663
|
}
|
|
1643
1664
|
multiply(e) {
|
|
1644
1665
|
return this.multiplyMatrices(this, e);
|
|
@@ -1748,7 +1769,7 @@ var _n = class e {
|
|
|
1748
1769
|
let n = this.elements;
|
|
1749
1770
|
return e[t] = n[0], e[t + 1] = n[1], e[t + 2] = n[2], e[t + 3] = n[3], e[t + 4] = n[4], e[t + 5] = n[5], e[t + 6] = n[6], e[t + 7] = n[7], e[t + 8] = n[8], e[t + 9] = n[9], e[t + 10] = n[10], e[t + 11] = n[11], e[t + 12] = n[12], e[t + 13] = n[13], e[t + 14] = n[14], e[t + 15] = n[15], e;
|
|
1750
1771
|
}
|
|
1751
|
-
}, Sn = /* @__PURE__ */ new I(), Cn = /* @__PURE__ */ new
|
|
1772
|
+
}, Sn = /* @__PURE__ */ new I(), Cn = /* @__PURE__ */ new z(), wn = /* @__PURE__ */ new I(0, 0, 0), Tn = /* @__PURE__ */ new I(1, 1, 1), En = /* @__PURE__ */ new I(), Dn = /* @__PURE__ */ new I(), B = /* @__PURE__ */ new I(), On = /* @__PURE__ */ new z(), kn = /* @__PURE__ */ new $t(), An = class e {
|
|
1752
1773
|
constructor(t = 0, n = 0, r = 0, i = e.DEFAULT_ORDER) {
|
|
1753
1774
|
this.isEuler = !0, this._x = t, this._y = n, this._z = r, this._order = i;
|
|
1754
1775
|
}
|
|
@@ -1865,16 +1886,16 @@ var jn = class {
|
|
|
1865
1886
|
isEnabled(e) {
|
|
1866
1887
|
return (this.mask & (1 << e | 0)) != 0;
|
|
1867
1888
|
}
|
|
1868
|
-
}, Mn = 0, Nn = /* @__PURE__ */ new I(), Pn = /* @__PURE__ */ new
|
|
1889
|
+
}, Mn = 0, Nn = /* @__PURE__ */ new I(), Pn = /* @__PURE__ */ new $t(), Fn = /* @__PURE__ */ new z(), In = /* @__PURE__ */ new I(), Ln = /* @__PURE__ */ new I(), Rn = /* @__PURE__ */ new I(), zn = /* @__PURE__ */ new $t(), Bn = /* @__PURE__ */ new I(1, 0, 0), Vn = /* @__PURE__ */ new I(0, 1, 0), Hn = /* @__PURE__ */ new I(0, 0, 1), Un = { type: "added" }, Wn = { type: "removed" }, Gn = {
|
|
1869
1890
|
type: "childadded",
|
|
1870
1891
|
child: null
|
|
1871
1892
|
}, Kn = {
|
|
1872
1893
|
type: "childremoved",
|
|
1873
1894
|
child: null
|
|
1874
|
-
},
|
|
1895
|
+
}, V = class e extends kt {
|
|
1875
1896
|
constructor() {
|
|
1876
|
-
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Mn++ }), this.uuid =
|
|
1877
|
-
let t = new I(), n = new An(), r = new
|
|
1897
|
+
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Mn++ }), this.uuid = Nt(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = e.DEFAULT_UP.clone();
|
|
1898
|
+
let t = new I(), n = new An(), r = new $t(), i = new I(1, 1, 1);
|
|
1878
1899
|
function a() {
|
|
1879
1900
|
r.setFromEuler(n, !1);
|
|
1880
1901
|
}
|
|
@@ -1902,9 +1923,9 @@ var jn = class {
|
|
|
1902
1923
|
enumerable: !0,
|
|
1903
1924
|
value: i
|
|
1904
1925
|
},
|
|
1905
|
-
modelViewMatrix: { value: new
|
|
1906
|
-
normalMatrix: { value: new
|
|
1907
|
-
}), this.matrix = new
|
|
1926
|
+
modelViewMatrix: { value: new z() },
|
|
1927
|
+
normalMatrix: { value: new nn() }
|
|
1928
|
+
}), this.matrix = new z(), this.matrixWorld = new z(), this.matrixAutoUpdate = e.DEFAULT_MATRIX_AUTO_UPDATE, this.matrixWorldAutoUpdate = e.DEFAULT_MATRIX_WORLD_AUTO_UPDATE, this.matrixWorldNeedsUpdate = !1, this.layers = new jn(), 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;
|
|
1908
1929
|
}
|
|
1909
1930
|
onBeforeShadow() {}
|
|
1910
1931
|
onAfterShadow() {}
|
|
@@ -2133,15 +2154,15 @@ var jn = class {
|
|
|
2133
2154
|
return new this.constructor().copy(this, e);
|
|
2134
2155
|
}
|
|
2135
2156
|
copy(e, t = !0) {
|
|
2136
|
-
if (this.name = e.name, this.up.copy(e.up), this.position.copy(e.position), this.rotation.order = e.rotation.order, this.quaternion.copy(e.quaternion), this.scale.copy(e.scale), e.pivot
|
|
2157
|
+
if (this.name = e.name, this.up.copy(e.up), this.position.copy(e.position), this.rotation.order = e.rotation.order, this.quaternion.copy(e.quaternion), this.scale.copy(e.scale), this.pivot = e.pivot === null ? null : e.pivot.clone(), this.matrix.copy(e.matrix), this.matrixWorld.copy(e.matrixWorld), this.matrixAutoUpdate = e.matrixAutoUpdate, this.matrixWorldAutoUpdate = e.matrixWorldAutoUpdate, this.matrixWorldNeedsUpdate = e.matrixWorldNeedsUpdate, this.layers.mask = e.layers.mask, this.visible = e.visible, this.castShadow = e.castShadow, this.receiveShadow = e.receiveShadow, this.frustumCulled = e.frustumCulled, this.renderOrder = e.renderOrder, this.static = e.static, this.animations = e.animations.slice(), this.userData = JSON.parse(JSON.stringify(e.userData)), t === !0) for (let t = 0; t < e.children.length; t++) {
|
|
2137
2158
|
let n = e.children[t];
|
|
2138
2159
|
this.add(n.clone());
|
|
2139
2160
|
}
|
|
2140
2161
|
return this;
|
|
2141
2162
|
}
|
|
2142
2163
|
};
|
|
2143
|
-
|
|
2144
|
-
var qn = class extends
|
|
2164
|
+
V.DEFAULT_UP = /* @__PURE__ */ new I(0, 1, 0), V.DEFAULT_MATRIX_AUTO_UPDATE = !0, V.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
2165
|
+
var qn = class extends V {
|
|
2145
2166
|
constructor() {
|
|
2146
2167
|
super(), this.isGroup = !0, this.type = "Group";
|
|
2147
2168
|
}
|
|
@@ -2156,7 +2177,7 @@ var qn = class extends B {
|
|
|
2156
2177
|
return this._targetRay === null && (this._targetRay = new qn(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new I(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new I()), this._targetRay;
|
|
2157
2178
|
}
|
|
2158
2179
|
getGripSpace() {
|
|
2159
|
-
return this._grip === null && (this._grip = new qn(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new I(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new I()), this._grip;
|
|
2180
|
+
return this._grip === null && (this._grip = new qn(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new I(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new I(), this._grip.eventsEnabled = !1), this._grip;
|
|
2160
2181
|
}
|
|
2161
2182
|
dispatchEvent(e) {
|
|
2162
2183
|
return this._targetRay !== null && this._targetRay.dispatchEvent(e), this._grip !== null && this._grip.dispatchEvent(e), this._hand !== null && this._hand.dispatchEvent(e), this;
|
|
@@ -2196,7 +2217,11 @@ var qn = class extends B {
|
|
|
2196
2217
|
handedness: e.handedness,
|
|
2197
2218
|
target: this
|
|
2198
2219
|
}));
|
|
2199
|
-
} else s !== null && e.gripSpace && (i = t.getPose(e.gripSpace, n), i !== null && (s.matrix.fromArray(i.transform.matrix), s.matrix.decompose(s.position, s.rotation, s.scale), s.matrixWorldNeedsUpdate = !0, i.linearVelocity ? (s.hasLinearVelocity = !0, s.linearVelocity.copy(i.linearVelocity)) : s.hasLinearVelocity = !1, i.angularVelocity ? (s.hasAngularVelocity = !0, s.angularVelocity.copy(i.angularVelocity)) : s.hasAngularVelocity = !1
|
|
2220
|
+
} else s !== null && e.gripSpace && (i = t.getPose(e.gripSpace, n), i !== null && (s.matrix.fromArray(i.transform.matrix), s.matrix.decompose(s.position, s.rotation, s.scale), s.matrixWorldNeedsUpdate = !0, i.linearVelocity ? (s.hasLinearVelocity = !0, s.linearVelocity.copy(i.linearVelocity)) : s.hasLinearVelocity = !1, i.angularVelocity ? (s.hasAngularVelocity = !0, s.angularVelocity.copy(i.angularVelocity)) : s.hasAngularVelocity = !1, s.eventsEnabled && s.dispatchEvent({
|
|
2221
|
+
type: "gripUpdated",
|
|
2222
|
+
data: e,
|
|
2223
|
+
target: this
|
|
2224
|
+
})));
|
|
2200
2225
|
o !== null && (r = t.getPose(e.targetRaySpace, n), r === null && i !== null && (r = i), r !== null && (o.matrix.fromArray(r.transform.matrix), o.matrix.decompose(o.position, o.rotation, o.scale), o.matrixWorldNeedsUpdate = !0, r.linearVelocity ? (o.hasLinearVelocity = !0, o.linearVelocity.copy(r.linearVelocity)) : o.hasLinearVelocity = !1, r.angularVelocity ? (o.hasAngularVelocity = !0, o.angularVelocity.copy(r.angularVelocity)) : o.hasAngularVelocity = !1, this.dispatchEvent(Jn)));
|
|
2201
2226
|
}
|
|
2202
2227
|
return o !== null && (o.visible = r !== null), s !== null && (s.visible = i !== null), c !== null && (c.visible = a !== null), this;
|
|
@@ -2369,7 +2394,7 @@ var qn = class extends B {
|
|
|
2369
2394
|
function $n(e, t, n) {
|
|
2370
2395
|
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * 6 * (2 / 3 - n) : e;
|
|
2371
2396
|
}
|
|
2372
|
-
var
|
|
2397
|
+
var H = class {
|
|
2373
2398
|
constructor(e, t, n) {
|
|
2374
2399
|
return this.isColor = !0, this.r = 1, this.g = 1, this.b = 1, this.set(e, t, n);
|
|
2375
2400
|
}
|
|
@@ -2384,18 +2409,18 @@ var V = class {
|
|
|
2384
2409
|
return this.r = e, this.g = e, this.b = e, this;
|
|
2385
2410
|
}
|
|
2386
2411
|
setHex(e, t = Qe) {
|
|
2387
|
-
return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255,
|
|
2412
|
+
return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, L.colorSpaceToWorking(this, t), this;
|
|
2388
2413
|
}
|
|
2389
|
-
setRGB(e, t, n, r =
|
|
2390
|
-
return this.r = e, this.g = t, this.b = n,
|
|
2414
|
+
setRGB(e, t, n, r = L.workingColorSpace) {
|
|
2415
|
+
return this.r = e, this.g = t, this.b = n, L.colorSpaceToWorking(this, r), this;
|
|
2391
2416
|
}
|
|
2392
|
-
setHSL(e, t, n, r =
|
|
2393
|
-
if (e =
|
|
2417
|
+
setHSL(e, t, n, r = L.workingColorSpace) {
|
|
2418
|
+
if (e = Pt(e, 1), t = M(t, 0, 1), n = M(n, 0, 1), t === 0) this.r = this.g = this.b = n;
|
|
2394
2419
|
else {
|
|
2395
2420
|
let r = n <= .5 ? n * (1 + t) : n + t - n * t, i = 2 * n - r;
|
|
2396
2421
|
this.r = $n(i, r, e + 1 / 3), this.g = $n(i, r, e), this.b = $n(i, r, e - 1 / 3);
|
|
2397
2422
|
}
|
|
2398
|
-
return
|
|
2423
|
+
return L.colorSpaceToWorking(this, r), this;
|
|
2399
2424
|
}
|
|
2400
2425
|
setStyle(e, t = Qe) {
|
|
2401
2426
|
function n(t) {
|
|
@@ -2447,14 +2472,14 @@ var V = class {
|
|
|
2447
2472
|
return this.copyLinearToSRGB(this), this;
|
|
2448
2473
|
}
|
|
2449
2474
|
getHex(e = Qe) {
|
|
2450
|
-
return
|
|
2475
|
+
return L.workingToColorSpace(U.copy(this), e), Math.round(M(U.r * 255, 0, 255)) * 65536 + Math.round(M(U.g * 255, 0, 255)) * 256 + Math.round(M(U.b * 255, 0, 255));
|
|
2451
2476
|
}
|
|
2452
2477
|
getHexString(e = Qe) {
|
|
2453
2478
|
return ("000000" + this.getHex(e).toString(16)).slice(-6);
|
|
2454
2479
|
}
|
|
2455
|
-
getHSL(e, t =
|
|
2456
|
-
|
|
2457
|
-
let n =
|
|
2480
|
+
getHSL(e, t = L.workingColorSpace) {
|
|
2481
|
+
L.workingToColorSpace(U.copy(this), t);
|
|
2482
|
+
let n = U.r, r = U.g, i = U.b, a = Math.max(n, r, i), o = Math.min(n, r, i), s, c, l = (o + a) / 2;
|
|
2458
2483
|
if (o === a) s = 0, c = 0;
|
|
2459
2484
|
else {
|
|
2460
2485
|
let e = a - o;
|
|
@@ -2473,12 +2498,12 @@ var V = class {
|
|
|
2473
2498
|
}
|
|
2474
2499
|
return e.h = s, e.s = c, e.l = l, e;
|
|
2475
2500
|
}
|
|
2476
|
-
getRGB(e, t =
|
|
2477
|
-
return
|
|
2501
|
+
getRGB(e, t = L.workingColorSpace) {
|
|
2502
|
+
return L.workingToColorSpace(U.copy(this), t), e.r = U.r, e.g = U.g, e.b = U.b, e;
|
|
2478
2503
|
}
|
|
2479
2504
|
getStyle(e = Qe) {
|
|
2480
|
-
|
|
2481
|
-
let t =
|
|
2505
|
+
L.workingToColorSpace(U.copy(this), e);
|
|
2506
|
+
let t = U.r, n = U.g, r = U.b;
|
|
2482
2507
|
return e === "srgb" ? `rgb(${Math.round(t * 255)},${Math.round(n * 255)},${Math.round(r * 255)})` : `color(${e} ${t.toFixed(3)} ${n.toFixed(3)} ${r.toFixed(3)})`;
|
|
2483
2508
|
}
|
|
2484
2509
|
offsetHSL(e, t, n) {
|
|
@@ -2510,7 +2535,7 @@ var V = class {
|
|
|
2510
2535
|
}
|
|
2511
2536
|
lerpHSL(e, t) {
|
|
2512
2537
|
this.getHSL(Zn), e.getHSL(Qn);
|
|
2513
|
-
let n =
|
|
2538
|
+
let n = Lt(Zn.h, Qn.h, t), r = Lt(Zn.s, Qn.s, t), i = Lt(Zn.l, Qn.l, t);
|
|
2514
2539
|
return this.setHSL(n, r, i), this;
|
|
2515
2540
|
}
|
|
2516
2541
|
setFromVector3(e) {
|
|
@@ -2538,11 +2563,11 @@ var V = class {
|
|
|
2538
2563
|
*[Symbol.iterator]() {
|
|
2539
2564
|
yield this.r, yield this.g, yield this.b;
|
|
2540
2565
|
}
|
|
2541
|
-
},
|
|
2542
|
-
|
|
2566
|
+
}, U = /* @__PURE__ */ new H();
|
|
2567
|
+
H.NAMES = Xn;
|
|
2543
2568
|
var er = class e {
|
|
2544
2569
|
constructor(e, t = 1, n = 1e3) {
|
|
2545
|
-
this.isFog = !0, this.name = "", this.color = new
|
|
2570
|
+
this.isFog = !0, this.name = "", this.color = new H(e), this.near = t, this.far = n;
|
|
2546
2571
|
}
|
|
2547
2572
|
clone() {
|
|
2548
2573
|
return new e(this.color, this.near, this.far);
|
|
@@ -2556,7 +2581,7 @@ var er = class e {
|
|
|
2556
2581
|
far: this.far
|
|
2557
2582
|
};
|
|
2558
2583
|
}
|
|
2559
|
-
}, tr = class extends
|
|
2584
|
+
}, tr = class extends V {
|
|
2560
2585
|
constructor() {
|
|
2561
2586
|
super(), this.isScene = !0, this.type = "Scene", this.background = null, this.environment = null, this.fog = null, this.backgroundBlurriness = 0, this.backgroundIntensity = 1, this.backgroundRotation = new An(), this.environmentIntensity = 1, this.environmentRotation = new An(), this.overrideMaterial = null, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
|
|
2562
2587
|
}
|
|
@@ -2875,7 +2900,7 @@ function Mr() {
|
|
|
2875
2900
|
offsetTable: s
|
|
2876
2901
|
};
|
|
2877
2902
|
}
|
|
2878
|
-
function
|
|
2903
|
+
function W(e) {
|
|
2879
2904
|
Math.abs(e) > 65504 && k("DataUtils.toHalfFloat(): Value out of range."), e = M(e, -65504, 65504), jr.floatView[0] = e;
|
|
2880
2905
|
let t = jr.uint32View[0], n = t >> 23 & 511;
|
|
2881
2906
|
return jr.baseTable[n] + ((t & 8388607) >> jr.shiftTable[n]);
|
|
@@ -2886,14 +2911,14 @@ function Nr(e) {
|
|
|
2886
2911
|
}
|
|
2887
2912
|
var Pr = class {
|
|
2888
2913
|
static toHalfFloat(e) {
|
|
2889
|
-
return
|
|
2914
|
+
return W(e);
|
|
2890
2915
|
}
|
|
2891
2916
|
static fromHalfFloat(e) {
|
|
2892
2917
|
return Nr(e);
|
|
2893
2918
|
}
|
|
2894
|
-
},
|
|
2919
|
+
}, G = /* @__PURE__ */ new I(), Fr = /* @__PURE__ */ new F(), Ir = 0, Lr = class extends kt {
|
|
2895
2920
|
constructor(e, t, n = !1) {
|
|
2896
|
-
if (Array.isArray(e)) throw TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
2921
|
+
if (super(), Array.isArray(e)) throw TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
2897
2922
|
this.isBufferAttribute = !0, Object.defineProperty(this, "id", { value: Ir++ }), this.name = "", this.array = e, this.itemSize = t, this.count = e === void 0 ? 0 : e.length / t, this.normalized = n, this.usage = lt, this.updateRanges = [], this.gpuType = v, this.version = 0;
|
|
2898
2923
|
}
|
|
2899
2924
|
onUploadCallback() {}
|
|
@@ -2925,19 +2950,19 @@ var Pr = class {
|
|
|
2925
2950
|
}
|
|
2926
2951
|
applyMatrix3(e) {
|
|
2927
2952
|
if (this.itemSize === 2) for (let t = 0, n = this.count; t < n; t++) Fr.fromBufferAttribute(this, t), Fr.applyMatrix3(e), this.setXY(t, Fr.x, Fr.y);
|
|
2928
|
-
else if (this.itemSize === 3) for (let t = 0, n = this.count; t < n; t++)
|
|
2953
|
+
else if (this.itemSize === 3) for (let t = 0, n = this.count; t < n; t++) G.fromBufferAttribute(this, t), G.applyMatrix3(e), this.setXYZ(t, G.x, G.y, G.z);
|
|
2929
2954
|
return this;
|
|
2930
2955
|
}
|
|
2931
2956
|
applyMatrix4(e) {
|
|
2932
|
-
for (let t = 0, n = this.count; t < n; t++)
|
|
2957
|
+
for (let t = 0, n = this.count; t < n; t++) G.fromBufferAttribute(this, t), G.applyMatrix4(e), this.setXYZ(t, G.x, G.y, G.z);
|
|
2933
2958
|
return this;
|
|
2934
2959
|
}
|
|
2935
2960
|
applyNormalMatrix(e) {
|
|
2936
|
-
for (let t = 0, n = this.count; t < n; t++)
|
|
2961
|
+
for (let t = 0, n = this.count; t < n; t++) G.fromBufferAttribute(this, t), G.applyNormalMatrix(e), this.setXYZ(t, G.x, G.y, G.z);
|
|
2937
2962
|
return this;
|
|
2938
2963
|
}
|
|
2939
2964
|
transformDirection(e) {
|
|
2940
|
-
for (let t = 0, n = this.count; t < n; t++)
|
|
2965
|
+
for (let t = 0, n = this.count; t < n; t++) G.fromBufferAttribute(this, t), G.transformDirection(e), this.setXYZ(t, G.x, G.y, G.z);
|
|
2941
2966
|
return this;
|
|
2942
2967
|
}
|
|
2943
2968
|
set(e, t = 0) {
|
|
@@ -3002,6 +3027,9 @@ var Pr = class {
|
|
|
3002
3027
|
};
|
|
3003
3028
|
return this.name !== "" && (e.name = this.name), this.usage !== 35044 && (e.usage = this.usage), e;
|
|
3004
3029
|
}
|
|
3030
|
+
dispose() {
|
|
3031
|
+
this.dispatchEvent({ type: "dispose" });
|
|
3032
|
+
}
|
|
3005
3033
|
}, Rr = class extends Lr {
|
|
3006
3034
|
constructor(e, t, n) {
|
|
3007
3035
|
super(new Uint16Array(e), t, n);
|
|
@@ -3019,39 +3047,39 @@ var Pr = class {
|
|
|
3019
3047
|
return this.normalized && (t = N(t, this.array)), t;
|
|
3020
3048
|
}
|
|
3021
3049
|
setX(e, t) {
|
|
3022
|
-
return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize] =
|
|
3050
|
+
return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize] = W(t), this;
|
|
3023
3051
|
}
|
|
3024
3052
|
getY(e) {
|
|
3025
3053
|
let t = Nr(this.array[e * this.itemSize + 1]);
|
|
3026
3054
|
return this.normalized && (t = N(t, this.array)), t;
|
|
3027
3055
|
}
|
|
3028
3056
|
setY(e, t) {
|
|
3029
|
-
return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 1] =
|
|
3057
|
+
return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 1] = W(t), this;
|
|
3030
3058
|
}
|
|
3031
3059
|
getZ(e) {
|
|
3032
3060
|
let t = Nr(this.array[e * this.itemSize + 2]);
|
|
3033
3061
|
return this.normalized && (t = N(t, this.array)), t;
|
|
3034
3062
|
}
|
|
3035
3063
|
setZ(e, t) {
|
|
3036
|
-
return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 2] =
|
|
3064
|
+
return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 2] = W(t), this;
|
|
3037
3065
|
}
|
|
3038
3066
|
getW(e) {
|
|
3039
3067
|
let t = Nr(this.array[e * this.itemSize + 3]);
|
|
3040
3068
|
return this.normalized && (t = N(t, this.array)), t;
|
|
3041
3069
|
}
|
|
3042
3070
|
setW(e, t) {
|
|
3043
|
-
return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 3] =
|
|
3071
|
+
return this.normalized && (t = P(t, this.array)), this.array[e * this.itemSize + 3] = W(t), this;
|
|
3044
3072
|
}
|
|
3045
3073
|
setXY(e, t, n) {
|
|
3046
|
-
return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array)), this.array[e + 0] =
|
|
3074
|
+
return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array)), this.array[e + 0] = W(t), this.array[e + 1] = W(n), this;
|
|
3047
3075
|
}
|
|
3048
3076
|
setXYZ(e, t, n, r) {
|
|
3049
|
-
return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array)), this.array[e + 0] =
|
|
3077
|
+
return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array)), this.array[e + 0] = W(t), this.array[e + 1] = W(n), this.array[e + 2] = W(r), this;
|
|
3050
3078
|
}
|
|
3051
3079
|
setXYZW(e, t, n, r, i) {
|
|
3052
|
-
return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array), i = P(i, this.array)), this.array[e + 0] =
|
|
3080
|
+
return e *= this.itemSize, this.normalized && (t = P(t, this.array), n = P(n, this.array), r = P(r, this.array), i = P(i, this.array)), this.array[e + 0] = W(t), this.array[e + 1] = W(n), this.array[e + 2] = W(r), this.array[e + 3] = W(i), this;
|
|
3053
3081
|
}
|
|
3054
|
-
},
|
|
3082
|
+
}, K = class extends Lr {
|
|
3055
3083
|
constructor(e, t, n) {
|
|
3056
3084
|
super(new Float32Array(e), t, n);
|
|
3057
3085
|
}
|
|
@@ -3135,9 +3163,9 @@ var Pr = class {
|
|
|
3135
3163
|
fromJSON(e) {
|
|
3136
3164
|
return this.radius = e.radius, this.center.fromArray(e.center), this;
|
|
3137
3165
|
}
|
|
3138
|
-
}, Gr = 0, Kr = /* @__PURE__ */ new
|
|
3166
|
+
}, Gr = 0, Kr = /* @__PURE__ */ new z(), qr = /* @__PURE__ */ new V(), Jr = /* @__PURE__ */ new I(), Yr = /* @__PURE__ */ new gr(), Xr = /* @__PURE__ */ new gr(), q = /* @__PURE__ */ new I(), Zr = class e extends kt {
|
|
3139
3167
|
constructor() {
|
|
3140
|
-
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Gr++ }), this.uuid =
|
|
3168
|
+
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Gr++ }), this.uuid = Nt(), this.name = "", this.type = "BufferGeometry", this.index = null, this.indirect = null, this.indirectOffset = 0, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = {
|
|
3141
3169
|
start: 0,
|
|
3142
3170
|
count: Infinity
|
|
3143
3171
|
}, this.userData = {};
|
|
@@ -3184,7 +3212,7 @@ var Pr = class {
|
|
|
3184
3212
|
t !== void 0 && (t.applyMatrix4(e), t.needsUpdate = !0);
|
|
3185
3213
|
let n = this.attributes.normal;
|
|
3186
3214
|
if (n !== void 0) {
|
|
3187
|
-
let t = new
|
|
3215
|
+
let t = new nn().getNormalMatrix(e);
|
|
3188
3216
|
n.applyNormalMatrix(t), n.needsUpdate = !0;
|
|
3189
3217
|
}
|
|
3190
3218
|
let r = this.attributes.tangent;
|
|
@@ -3222,7 +3250,7 @@ var Pr = class {
|
|
|
3222
3250
|
let r = e[n];
|
|
3223
3251
|
t.push(r.x, r.y, r.z || 0);
|
|
3224
3252
|
}
|
|
3225
|
-
this.setAttribute("position", new
|
|
3253
|
+
this.setAttribute("position", new K(t, 3));
|
|
3226
3254
|
} else {
|
|
3227
3255
|
let n = Math.min(e.length, t.count);
|
|
3228
3256
|
for (let r = 0; r < n; r++) {
|
|
@@ -3243,7 +3271,7 @@ var Pr = class {
|
|
|
3243
3271
|
if (e !== void 0) {
|
|
3244
3272
|
if (this.boundingBox.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
|
|
3245
3273
|
let n = t[e];
|
|
3246
|
-
|
|
3274
|
+
Yr.setFromBufferAttribute(n), this.morphTargetsRelative ? (q.addVectors(this.boundingBox.min, Yr.min), this.boundingBox.expandByPoint(q), q.addVectors(this.boundingBox.max, Yr.max), this.boundingBox.expandByPoint(q)) : (this.boundingBox.expandByPoint(Yr.min), this.boundingBox.expandByPoint(Yr.max));
|
|
3247
3275
|
}
|
|
3248
3276
|
} else this.boundingBox.makeEmpty();
|
|
3249
3277
|
(isNaN(this.boundingBox.min.x) || isNaN(this.boundingBox.min.y) || isNaN(this.boundingBox.min.z)) && A("BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The \"position\" attribute is likely to have NaN values.", this);
|
|
@@ -3257,11 +3285,11 @@ var Pr = class {
|
|
|
3257
3285
|
}
|
|
3258
3286
|
if (e) {
|
|
3259
3287
|
let n = this.boundingSphere.center;
|
|
3260
|
-
if (
|
|
3288
|
+
if (Yr.setFromBufferAttribute(e), t) for (let e = 0, n = t.length; e < n; e++) {
|
|
3261
3289
|
let n = t[e];
|
|
3262
|
-
|
|
3290
|
+
Xr.setFromBufferAttribute(n), this.morphTargetsRelative ? (q.addVectors(Yr.min, Xr.min), Yr.expandByPoint(q), q.addVectors(Yr.max, Xr.max), Yr.expandByPoint(q)) : (Yr.expandByPoint(Xr.min), Yr.expandByPoint(Xr.max));
|
|
3263
3291
|
}
|
|
3264
|
-
|
|
3292
|
+
Yr.getCenter(n);
|
|
3265
3293
|
let r = 0;
|
|
3266
3294
|
for (let t = 0, i = e.count; t < i; t++) q.fromBufferAttribute(e, t), r = Math.max(r, n.distanceToSquared(q));
|
|
3267
3295
|
if (t) for (let i = 0, a = t.length; i < a; i++) {
|
|
@@ -3431,9 +3459,9 @@ var Pr = class {
|
|
|
3431
3459
|
dispose() {
|
|
3432
3460
|
this.dispatchEvent({ type: "dispose" });
|
|
3433
3461
|
}
|
|
3434
|
-
},
|
|
3462
|
+
}, Qr = class {
|
|
3435
3463
|
constructor(e, t) {
|
|
3436
|
-
this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e === void 0 ? 0 : e.length / t, this.usage = lt, this.updateRanges = [], this.version = 0, this.uuid =
|
|
3464
|
+
this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e === void 0 ? 0 : e.length / t, this.usage = lt, this.updateRanges = [], this.version = 0, this.uuid = Nt();
|
|
3437
3465
|
}
|
|
3438
3466
|
onUploadCallback() {}
|
|
3439
3467
|
set needsUpdate(e) {
|
|
@@ -3463,7 +3491,7 @@ var Pr = class {
|
|
|
3463
3491
|
return this.array.set(e, t), this;
|
|
3464
3492
|
}
|
|
3465
3493
|
clone(e) {
|
|
3466
|
-
e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid =
|
|
3494
|
+
e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Nt()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer);
|
|
3467
3495
|
let t = new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]), n = new this.constructor(t, this.stride);
|
|
3468
3496
|
return n.setUsage(this.usage), n;
|
|
3469
3497
|
}
|
|
@@ -3471,14 +3499,14 @@ var Pr = class {
|
|
|
3471
3499
|
return this.onUploadCallback = e, this;
|
|
3472
3500
|
}
|
|
3473
3501
|
toJSON(e) {
|
|
3474
|
-
return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid =
|
|
3502
|
+
return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Nt()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer))), {
|
|
3475
3503
|
uuid: this.uuid,
|
|
3476
3504
|
buffer: this.array.buffer._uuid,
|
|
3477
3505
|
type: this.array.constructor.name,
|
|
3478
3506
|
stride: this.stride
|
|
3479
3507
|
};
|
|
3480
3508
|
}
|
|
3481
|
-
}, J = /* @__PURE__ */ new I(),
|
|
3509
|
+
}, J = /* @__PURE__ */ new I(), $r = class e {
|
|
3482
3510
|
constructor(e, t, n, r = !1) {
|
|
3483
3511
|
this.isInterleavedBufferAttribute = !0, this.name = "", this.data = e, this.itemSize = t, this.offset = n, this.normalized = r;
|
|
3484
3512
|
}
|
|
@@ -3580,9 +3608,9 @@ var Pr = class {
|
|
|
3580
3608
|
normalized: this.normalized
|
|
3581
3609
|
};
|
|
3582
3610
|
}
|
|
3583
|
-
},
|
|
3611
|
+
}, ei = 0, Y = class extends kt {
|
|
3584
3612
|
constructor() {
|
|
3585
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value:
|
|
3613
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: ei++ }), this.uuid = Nt(), this.name = "", this.type = "Material", this.blending = 1, this.side = 0, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = 204, this.blendDst = 205, this.blendEquation = 100, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new H(0, 0, 0), this.blendAlpha = 0, this.depthFunc = 3, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = 519, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = nt, this.stencilZFail = nt, this.stencilZPass = nt, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
3586
3614
|
}
|
|
3587
3615
|
get alphaTest() {
|
|
3588
3616
|
return this._alphaTest;
|
|
@@ -3655,14 +3683,14 @@ var Pr = class {
|
|
|
3655
3683
|
set needsUpdate(e) {
|
|
3656
3684
|
e === !0 && this.version++;
|
|
3657
3685
|
}
|
|
3658
|
-
},
|
|
3686
|
+
}, ti = class extends Y {
|
|
3659
3687
|
constructor(e) {
|
|
3660
|
-
super(), this.isSpriteMaterial = !0, this.type = "SpriteMaterial", this.color = new
|
|
3688
|
+
super(), this.isSpriteMaterial = !0, this.type = "SpriteMaterial", this.color = new H(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.fog = !0, this.setValues(e);
|
|
3661
3689
|
}
|
|
3662
3690
|
copy(e) {
|
|
3663
3691
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.rotation = e.rotation, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
3664
3692
|
}
|
|
3665
|
-
},
|
|
3693
|
+
}, ni = /* @__PURE__ */ new I(), ri = /* @__PURE__ */ new I(), ii = /* @__PURE__ */ new I(), ai = /* @__PURE__ */ new I(), oi = /* @__PURE__ */ new I(), si = /* @__PURE__ */ new I(), ci = /* @__PURE__ */ new I(), li = class {
|
|
3666
3694
|
constructor(e = new I(), t = new I(0, 0, -1)) {
|
|
3667
3695
|
this.origin = e, this.direction = t;
|
|
3668
3696
|
}
|
|
@@ -3679,7 +3707,7 @@ var Pr = class {
|
|
|
3679
3707
|
return this.direction.copy(e).sub(this.origin).normalize(), this;
|
|
3680
3708
|
}
|
|
3681
3709
|
recast(e) {
|
|
3682
|
-
return this.origin.copy(this.at(e,
|
|
3710
|
+
return this.origin.copy(this.at(e, ni)), this;
|
|
3683
3711
|
}
|
|
3684
3712
|
closestPointToPoint(e, t) {
|
|
3685
3713
|
t.subVectors(e, this.origin);
|
|
@@ -3690,12 +3718,12 @@ var Pr = class {
|
|
|
3690
3718
|
return Math.sqrt(this.distanceSqToPoint(e));
|
|
3691
3719
|
}
|
|
3692
3720
|
distanceSqToPoint(e) {
|
|
3693
|
-
let t =
|
|
3694
|
-
return t < 0 ? this.origin.distanceToSquared(e) : (
|
|
3721
|
+
let t = ni.subVectors(e, this.origin).dot(this.direction);
|
|
3722
|
+
return t < 0 ? this.origin.distanceToSquared(e) : (ni.copy(this.origin).addScaledVector(this.direction, t), ni.distanceToSquared(e));
|
|
3695
3723
|
}
|
|
3696
3724
|
distanceSqToSegment(e, t, n, r) {
|
|
3697
|
-
|
|
3698
|
-
let i = e.distanceTo(t) * .5, a = -this.direction.dot(
|
|
3725
|
+
ri.copy(e).add(t).multiplyScalar(.5), ii.copy(t).sub(e).normalize(), ai.copy(this.origin).sub(ri);
|
|
3726
|
+
let i = e.distanceTo(t) * .5, a = -this.direction.dot(ii), o = ai.dot(this.direction), s = -ai.dot(ii), c = ai.lengthSq(), l = Math.abs(1 - a * a), u, d, f, p;
|
|
3699
3727
|
if (l > 0) if (u = a * s - o, d = a * o - s, p = i * l, u >= 0) if (d >= -p) if (d <= p) {
|
|
3700
3728
|
let e = 1 / l;
|
|
3701
3729
|
u *= e, d *= e, f = u * (u + a * d + 2 * o) + d * (a * u + d + 2 * s) + c;
|
|
@@ -3703,11 +3731,11 @@ var Pr = class {
|
|
|
3703
3731
|
else d = -i, u = Math.max(0, -(a * d + o)), f = -u * u + d * (d + 2 * s) + c;
|
|
3704
3732
|
else d <= -p ? (u = Math.max(0, -(-a * i + o)), d = u > 0 ? -i : Math.min(Math.max(-i, -s), i), f = -u * u + d * (d + 2 * s) + c) : d <= p ? (u = 0, d = Math.min(Math.max(-i, -s), i), f = d * (d + 2 * s) + c) : (u = Math.max(0, -(a * i + o)), d = u > 0 ? i : Math.min(Math.max(-i, -s), i), f = -u * u + d * (d + 2 * s) + c);
|
|
3705
3733
|
else d = a > 0 ? -i : i, u = Math.max(0, -(a * d + o)), f = -u * u + d * (d + 2 * s) + c;
|
|
3706
|
-
return n && n.copy(this.origin).addScaledVector(this.direction, u), r && r.copy(
|
|
3734
|
+
return n && n.copy(this.origin).addScaledVector(this.direction, u), r && r.copy(ri).addScaledVector(ii, d), f;
|
|
3707
3735
|
}
|
|
3708
3736
|
intersectSphere(e, t) {
|
|
3709
|
-
|
|
3710
|
-
let n =
|
|
3737
|
+
ni.subVectors(e.center, this.origin);
|
|
3738
|
+
let n = ni.dot(this.direction), r = ni.dot(ni) - n * n, i = e.radius * e.radius;
|
|
3711
3739
|
if (r > i) return null;
|
|
3712
3740
|
let a = Math.sqrt(i - r), o = n - a, s = n + a;
|
|
3713
3741
|
return s < 0 ? null : o < 0 ? this.at(s, t) : this.at(o, t);
|
|
@@ -3734,22 +3762,22 @@ var Pr = class {
|
|
|
3734
3762
|
return c >= 0 ? (n = (e.min.x - d.x) * c, r = (e.max.x - d.x) * c) : (n = (e.max.x - d.x) * c, r = (e.min.x - d.x) * c), l >= 0 ? (i = (e.min.y - d.y) * l, a = (e.max.y - d.y) * l) : (i = (e.max.y - d.y) * l, a = (e.min.y - d.y) * l), n > a || i > r || ((i > n || isNaN(n)) && (n = i), (a < r || isNaN(r)) && (r = a), u >= 0 ? (o = (e.min.z - d.z) * u, s = (e.max.z - d.z) * u) : (o = (e.max.z - d.z) * u, s = (e.min.z - d.z) * u), n > s || o > r) || ((o > n || n !== n) && (n = o), (s < r || r !== r) && (r = s), r < 0) ? null : this.at(n >= 0 ? n : r, t);
|
|
3735
3763
|
}
|
|
3736
3764
|
intersectsBox(e) {
|
|
3737
|
-
return this.intersectBox(e,
|
|
3765
|
+
return this.intersectBox(e, ni) !== null;
|
|
3738
3766
|
}
|
|
3739
3767
|
intersectTriangle(e, t, n, r, i) {
|
|
3740
|
-
|
|
3741
|
-
let a = this.direction.dot(
|
|
3768
|
+
oi.subVectors(t, e), si.subVectors(n, e), ci.crossVectors(oi, si);
|
|
3769
|
+
let a = this.direction.dot(ci), o;
|
|
3742
3770
|
if (a > 0) {
|
|
3743
3771
|
if (r) return null;
|
|
3744
3772
|
o = 1;
|
|
3745
3773
|
} else if (a < 0) o = -1, a = -a;
|
|
3746
3774
|
else return null;
|
|
3747
|
-
|
|
3748
|
-
let s = o * this.direction.dot(
|
|
3775
|
+
ai.subVectors(this.origin, e);
|
|
3776
|
+
let s = o * this.direction.dot(si.crossVectors(ai, si));
|
|
3749
3777
|
if (s < 0) return null;
|
|
3750
|
-
let c = o * this.direction.dot(
|
|
3778
|
+
let c = o * this.direction.dot(oi.cross(ai));
|
|
3751
3779
|
if (c < 0 || s + c > a) return null;
|
|
3752
|
-
let l = -o *
|
|
3780
|
+
let l = -o * ai.dot(ci);
|
|
3753
3781
|
return l < 0 ? null : this.at(l / a, i);
|
|
3754
3782
|
}
|
|
3755
3783
|
applyMatrix4(e) {
|
|
@@ -3761,15 +3789,15 @@ var Pr = class {
|
|
|
3761
3789
|
clone() {
|
|
3762
3790
|
return new this.constructor().copy(this);
|
|
3763
3791
|
}
|
|
3764
|
-
},
|
|
3792
|
+
}, ui = class extends Y {
|
|
3765
3793
|
constructor(e) {
|
|
3766
|
-
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new
|
|
3794
|
+
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new H(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), this.combine = 0, this.reflectivity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
|
|
3767
3795
|
}
|
|
3768
3796
|
copy(e) {
|
|
3769
3797
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
|
|
3770
3798
|
}
|
|
3771
|
-
},
|
|
3772
|
-
constructor(e = new
|
|
3799
|
+
}, di = /* @__PURE__ */ new z(), fi = /* @__PURE__ */ new li(), pi = /* @__PURE__ */ new Wr(), mi = /* @__PURE__ */ new I(), hi = /* @__PURE__ */ new I(), gi = /* @__PURE__ */ new I(), _i = /* @__PURE__ */ new I(), vi = /* @__PURE__ */ new I(), yi = /* @__PURE__ */ new I(), bi = /* @__PURE__ */ new I(), xi = /* @__PURE__ */ new I(), Si = class extends V {
|
|
3800
|
+
constructor(e = new Zr(), t = new ui()) {
|
|
3773
3801
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
|
|
3774
3802
|
}
|
|
3775
3803
|
copy(e, t) {
|
|
@@ -3793,18 +3821,18 @@ var Pr = class {
|
|
|
3793
3821
|
t.fromBufferAttribute(r, e);
|
|
3794
3822
|
let o = this.morphTargetInfluences;
|
|
3795
3823
|
if (i && o) {
|
|
3796
|
-
|
|
3824
|
+
yi.set(0, 0, 0);
|
|
3797
3825
|
for (let n = 0, r = i.length; n < r; n++) {
|
|
3798
3826
|
let r = o[n], s = i[n];
|
|
3799
|
-
r !== 0 && (
|
|
3827
|
+
r !== 0 && (vi.fromBufferAttribute(s, e), a ? yi.addScaledVector(vi, r) : yi.addScaledVector(vi.sub(t), r));
|
|
3800
3828
|
}
|
|
3801
|
-
t.add(
|
|
3829
|
+
t.add(yi);
|
|
3802
3830
|
}
|
|
3803
3831
|
return t;
|
|
3804
3832
|
}
|
|
3805
3833
|
raycast(e, t) {
|
|
3806
3834
|
let n = this.geometry, r = this.material, i = this.matrixWorld;
|
|
3807
|
-
r !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(),
|
|
3835
|
+
r !== void 0 && (n.boundingSphere === null && n.computeBoundingSphere(), pi.copy(n.boundingSphere), pi.applyMatrix4(i), fi.copy(e.ray).recast(e.near), !(pi.containsPoint(fi.origin) === !1 && (fi.intersectSphere(pi, mi) === null || fi.origin.distanceToSquared(mi) > (e.far - e.near) ** 2)) && (di.copy(i).invert(), fi.copy(e.ray).applyMatrix4(di), !(n.boundingBox !== null && fi.intersectsBox(n.boundingBox) === !1) && this._computeIntersections(e, t, fi)));
|
|
3808
3836
|
}
|
|
3809
3837
|
_computeIntersections(e, t, n) {
|
|
3810
3838
|
let r, i = this.geometry, a = this.material, o = i.index, s = i.attributes.position, c = i.attributes.uv, l = i.attributes.uv1, u = i.attributes.normal, d = i.groups, f = i.drawRange;
|
|
@@ -3812,49 +3840,49 @@ var Pr = class {
|
|
|
3812
3840
|
let s = d[i], p = a[s.materialIndex], m = Math.max(s.start, f.start), h = Math.min(o.count, Math.min(s.start + s.count, f.start + f.count));
|
|
3813
3841
|
for (let i = m, a = h; i < a; i += 3) {
|
|
3814
3842
|
let a = o.getX(i), d = o.getX(i + 1), f = o.getX(i + 2);
|
|
3815
|
-
r =
|
|
3843
|
+
r = wi(this, p, e, n, c, l, u, a, d, f), r && (r.faceIndex = Math.floor(i / 3), r.face.materialIndex = s.materialIndex, t.push(r));
|
|
3816
3844
|
}
|
|
3817
3845
|
}
|
|
3818
3846
|
else {
|
|
3819
3847
|
let i = Math.max(0, f.start), s = Math.min(o.count, f.start + f.count);
|
|
3820
3848
|
for (let d = i, f = s; d < f; d += 3) {
|
|
3821
3849
|
let i = o.getX(d), s = o.getX(d + 1), f = o.getX(d + 2);
|
|
3822
|
-
r =
|
|
3850
|
+
r = wi(this, a, e, n, c, l, u, i, s, f), r && (r.faceIndex = Math.floor(d / 3), t.push(r));
|
|
3823
3851
|
}
|
|
3824
3852
|
}
|
|
3825
3853
|
else if (s !== void 0) if (Array.isArray(a)) for (let i = 0, o = d.length; i < o; i++) {
|
|
3826
3854
|
let o = d[i], p = a[o.materialIndex], m = Math.max(o.start, f.start), h = Math.min(s.count, Math.min(o.start + o.count, f.start + f.count));
|
|
3827
3855
|
for (let i = m, a = h; i < a; i += 3) {
|
|
3828
3856
|
let a = i, s = i + 1, d = i + 2;
|
|
3829
|
-
r =
|
|
3857
|
+
r = wi(this, p, e, n, c, l, u, a, s, d), r && (r.faceIndex = Math.floor(i / 3), r.face.materialIndex = o.materialIndex, t.push(r));
|
|
3830
3858
|
}
|
|
3831
3859
|
}
|
|
3832
3860
|
else {
|
|
3833
3861
|
let i = Math.max(0, f.start), o = Math.min(s.count, f.start + f.count);
|
|
3834
3862
|
for (let s = i, d = o; s < d; s += 3) {
|
|
3835
3863
|
let i = s, o = s + 1, d = s + 2;
|
|
3836
|
-
r =
|
|
3864
|
+
r = wi(this, a, e, n, c, l, u, i, o, d), r && (r.faceIndex = Math.floor(s / 3), t.push(r));
|
|
3837
3865
|
}
|
|
3838
3866
|
}
|
|
3839
3867
|
}
|
|
3840
3868
|
};
|
|
3841
|
-
function
|
|
3869
|
+
function Ci(e, t, n, r, i, a, o, s) {
|
|
3842
3870
|
let c;
|
|
3843
3871
|
if (c = t.side === 1 ? r.intersectTriangle(o, a, i, !0, s) : r.intersectTriangle(i, a, o, t.side === 0, s), c === null) return null;
|
|
3844
|
-
|
|
3845
|
-
let l = n.ray.origin.distanceTo(
|
|
3872
|
+
xi.copy(s), xi.applyMatrix4(e.matrixWorld);
|
|
3873
|
+
let l = n.ray.origin.distanceTo(xi);
|
|
3846
3874
|
return l < n.near || l > n.far ? null : {
|
|
3847
3875
|
distance: l,
|
|
3848
|
-
point:
|
|
3876
|
+
point: xi.clone(),
|
|
3849
3877
|
object: e
|
|
3850
3878
|
};
|
|
3851
3879
|
}
|
|
3852
|
-
function
|
|
3853
|
-
e.getVertexPosition(s,
|
|
3854
|
-
let u =
|
|
3880
|
+
function wi(e, t, n, r, i, a, o, s, c, l) {
|
|
3881
|
+
e.getVertexPosition(s, hi), e.getVertexPosition(c, gi), e.getVertexPosition(l, _i);
|
|
3882
|
+
let u = Ci(e, t, n, r, hi, gi, _i, bi);
|
|
3855
3883
|
if (u) {
|
|
3856
3884
|
let e = new I();
|
|
3857
|
-
hr.getBarycoord(
|
|
3885
|
+
hr.getBarycoord(bi, hi, gi, _i, e), i && (u.uv = hr.getInterpolatedAttribute(i, s, c, l, e, new F())), a && (u.uv1 = hr.getInterpolatedAttribute(a, s, c, l, e, new F())), o && (u.normal = hr.getInterpolatedAttribute(o, s, c, l, e, new I()), u.normal.dot(r.direction) > 0 && u.normal.multiplyScalar(-1));
|
|
3858
3886
|
let t = {
|
|
3859
3887
|
a: s,
|
|
3860
3888
|
b: c,
|
|
@@ -3862,32 +3890,32 @@ function Ci(e, t, n, r, i, a, o, s, c, l) {
|
|
|
3862
3890
|
normal: new I(),
|
|
3863
3891
|
materialIndex: 0
|
|
3864
3892
|
};
|
|
3865
|
-
hr.getNormal(
|
|
3893
|
+
hr.getNormal(hi, gi, _i, t.normal), u.face = t, u.barycoord = e;
|
|
3866
3894
|
}
|
|
3867
3895
|
return u;
|
|
3868
3896
|
}
|
|
3869
|
-
var
|
|
3897
|
+
var Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE__ */ new _n(), Di = /* @__PURE__ */ new _n(), Oi = /* @__PURE__ */ new _n(), ki = /* @__PURE__ */ new z(), Ai = /* @__PURE__ */ new I(), ji = /* @__PURE__ */ new Wr(), Mi = /* @__PURE__ */ new z(), Ni = /* @__PURE__ */ new li(), Pi = class extends Si {
|
|
3870
3898
|
constructor(t, n) {
|
|
3871
|
-
super(t, n), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = e, this.bindMatrix = new
|
|
3899
|
+
super(t, n), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = e, this.bindMatrix = new z(), this.bindMatrixInverse = new z(), this.boundingBox = null, this.boundingSphere = null;
|
|
3872
3900
|
}
|
|
3873
3901
|
computeBoundingBox() {
|
|
3874
3902
|
let e = this.geometry;
|
|
3875
3903
|
this.boundingBox === null && (this.boundingBox = new gr()), this.boundingBox.makeEmpty();
|
|
3876
3904
|
let t = e.getAttribute("position");
|
|
3877
|
-
for (let e = 0; e < t.count; e++) this.getVertexPosition(e,
|
|
3905
|
+
for (let e = 0; e < t.count; e++) this.getVertexPosition(e, Ai), this.boundingBox.expandByPoint(Ai);
|
|
3878
3906
|
}
|
|
3879
3907
|
computeBoundingSphere() {
|
|
3880
3908
|
let e = this.geometry;
|
|
3881
3909
|
this.boundingSphere === null && (this.boundingSphere = new Wr()), this.boundingSphere.makeEmpty();
|
|
3882
3910
|
let t = e.getAttribute("position");
|
|
3883
|
-
for (let e = 0; e < t.count; e++) this.getVertexPosition(e,
|
|
3911
|
+
for (let e = 0; e < t.count; e++) this.getVertexPosition(e, Ai), this.boundingSphere.expandByPoint(Ai);
|
|
3884
3912
|
}
|
|
3885
3913
|
copy(e, t) {
|
|
3886
3914
|
return super.copy(e, t), this.bindMode = e.bindMode, this.bindMatrix.copy(e.bindMatrix), this.bindMatrixInverse.copy(e.bindMatrixInverse), this.skeleton = e.skeleton, e.boundingBox !== null && (this.boundingBox = e.boundingBox.clone()), e.boundingSphere !== null && (this.boundingSphere = e.boundingSphere.clone()), this;
|
|
3887
3915
|
}
|
|
3888
3916
|
raycast(e, t) {
|
|
3889
3917
|
let n = this.material, r = this.matrixWorld;
|
|
3890
|
-
n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(),
|
|
3918
|
+
n !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), ji.copy(this.boundingSphere), ji.applyMatrix4(r), e.ray.intersectsSphere(ji) !== !1 && (Mi.copy(r).invert(), Ni.copy(e.ray).applyMatrix4(Mi), !(this.boundingBox !== null && Ni.intersectsBox(this.boundingBox) === !1) && this._computeIntersections(e, t, Ni)));
|
|
3891
3919
|
}
|
|
3892
3920
|
getVertexPosition(e, t) {
|
|
3893
3921
|
return super.getVertexPosition(e, t), this.applyBoneTransform(e, t), t;
|
|
@@ -3911,21 +3939,21 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
3911
3939
|
}
|
|
3912
3940
|
applyBoneTransform(e, t) {
|
|
3913
3941
|
let n = this.skeleton, r = this.geometry;
|
|
3914
|
-
|
|
3942
|
+
Ei.fromBufferAttribute(r.attributes.skinIndex, e), Di.fromBufferAttribute(r.attributes.skinWeight, e), t.isVector4 ? (Ti.copy(t), t.set(0, 0, 0, 0)) : (Ti.set(...t, 1), t.set(0, 0, 0)), Ti.applyMatrix4(this.bindMatrix);
|
|
3915
3943
|
for (let e = 0; e < 4; e++) {
|
|
3916
|
-
let r =
|
|
3944
|
+
let r = Di.getComponent(e);
|
|
3917
3945
|
if (r !== 0) {
|
|
3918
|
-
let i =
|
|
3919
|
-
|
|
3946
|
+
let i = Ei.getComponent(e);
|
|
3947
|
+
ki.multiplyMatrices(n.bones[i].matrixWorld, n.boneInverses[i]), t.addScaledVector(Oi.copy(Ti).applyMatrix4(ki), r);
|
|
3920
3948
|
}
|
|
3921
3949
|
}
|
|
3922
|
-
return t.applyMatrix4(this.bindMatrixInverse);
|
|
3950
|
+
return t.isVector4 && (t.w = Ti.w), t.applyMatrix4(this.bindMatrixInverse);
|
|
3923
3951
|
}
|
|
3924
|
-
},
|
|
3952
|
+
}, Fi = class extends V {
|
|
3925
3953
|
constructor() {
|
|
3926
3954
|
super(), this.isBone = !0, this.type = "Bone";
|
|
3927
3955
|
}
|
|
3928
|
-
},
|
|
3956
|
+
}, Ii = class extends R {
|
|
3929
3957
|
constructor(e = null, t = 1, n = 1, r, i, o, s, c, l = a, u = a, d, f) {
|
|
3930
3958
|
super(null, o, s, c, l, u, r, i, d, f), this.isDataTexture = !0, this.image = {
|
|
3931
3959
|
data: e,
|
|
@@ -3933,22 +3961,22 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
3933
3961
|
height: n
|
|
3934
3962
|
}, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
3935
3963
|
}
|
|
3936
|
-
},
|
|
3964
|
+
}, Li = /* @__PURE__ */ new z(), Ri = /* @__PURE__ */ new z(), zi = class e {
|
|
3937
3965
|
constructor(e = [], t = []) {
|
|
3938
|
-
this.uuid =
|
|
3966
|
+
this.uuid = Nt(), this.bones = e.slice(0), this.boneInverses = t, this.boneMatrices = null, this.previousBoneMatrices = null, this.boneTexture = null, this.init();
|
|
3939
3967
|
}
|
|
3940
3968
|
init() {
|
|
3941
3969
|
let e = this.bones, t = this.boneInverses;
|
|
3942
3970
|
if (this.boneMatrices = new Float32Array(e.length * 16), t.length === 0) this.calculateInverses();
|
|
3943
3971
|
else if (e.length !== t.length) {
|
|
3944
3972
|
k("Skeleton: Number of inverse bone matrices does not match amount of bones."), this.boneInverses = [];
|
|
3945
|
-
for (let e = 0, t = this.bones.length; e < t; e++) this.boneInverses.push(new
|
|
3973
|
+
for (let e = 0, t = this.bones.length; e < t; e++) this.boneInverses.push(new z());
|
|
3946
3974
|
}
|
|
3947
3975
|
}
|
|
3948
3976
|
calculateInverses() {
|
|
3949
3977
|
this.boneInverses.length = 0;
|
|
3950
3978
|
for (let e = 0, t = this.bones.length; e < t; e++) {
|
|
3951
|
-
let t = new
|
|
3979
|
+
let t = new z();
|
|
3952
3980
|
this.bones[e] && t.copy(this.bones[e].matrixWorld).invert(), this.boneInverses.push(t);
|
|
3953
3981
|
}
|
|
3954
3982
|
}
|
|
@@ -3965,8 +3993,8 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
3965
3993
|
update() {
|
|
3966
3994
|
let e = this.bones, t = this.boneInverses, n = this.boneMatrices, r = this.boneTexture;
|
|
3967
3995
|
for (let r = 0, i = e.length; r < i; r++) {
|
|
3968
|
-
let i = e[r] ? e[r].matrixWorld :
|
|
3969
|
-
|
|
3996
|
+
let i = e[r] ? e[r].matrixWorld : Ri;
|
|
3997
|
+
Li.multiplyMatrices(i, t[r]), Li.toArray(n, r * 16);
|
|
3970
3998
|
}
|
|
3971
3999
|
r !== null && (r.needsUpdate = !0);
|
|
3972
4000
|
}
|
|
@@ -3978,7 +4006,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
3978
4006
|
e = Math.ceil(e / 4) * 4, e = Math.max(e, 4);
|
|
3979
4007
|
let t = new Float32Array(e * e * 4);
|
|
3980
4008
|
t.set(this.boneMatrices);
|
|
3981
|
-
let n = new
|
|
4009
|
+
let n = new Ii(t, e, e, D, v);
|
|
3982
4010
|
return n.needsUpdate = !0, this.boneMatrices = t, this.boneTexture = n, this;
|
|
3983
4011
|
}
|
|
3984
4012
|
getBoneByName(e) {
|
|
@@ -3994,7 +4022,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
3994
4022
|
this.uuid = e.uuid;
|
|
3995
4023
|
for (let n = 0, r = e.bones.length; n < r; n++) {
|
|
3996
4024
|
let r = e.bones[n], i = t[r];
|
|
3997
|
-
i === void 0 && (k("Skeleton: No bone found with UUID:", r), i = new
|
|
4025
|
+
i === void 0 && (k("Skeleton: No bone found with UUID:", r), i = new Fi()), this.bones.push(i), this.boneInverses.push(new z().fromArray(e.boneInverses[n]));
|
|
3998
4026
|
}
|
|
3999
4027
|
return this.init(), this;
|
|
4000
4028
|
}
|
|
@@ -4018,7 +4046,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4018
4046
|
}
|
|
4019
4047
|
return e;
|
|
4020
4048
|
}
|
|
4021
|
-
},
|
|
4049
|
+
}, Bi = class extends Lr {
|
|
4022
4050
|
constructor(e, t, n, r = 1) {
|
|
4023
4051
|
super(e, t, n), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = r;
|
|
4024
4052
|
}
|
|
@@ -4029,29 +4057,29 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4029
4057
|
let e = super.toJSON();
|
|
4030
4058
|
return e.meshPerAttribute = this.meshPerAttribute, e.isInstancedBufferAttribute = !0, e;
|
|
4031
4059
|
}
|
|
4032
|
-
},
|
|
4060
|
+
}, Vi = /* @__PURE__ */ new z(), Hi = /* @__PURE__ */ new z(), Ui = [], Wi = /* @__PURE__ */ new gr(), Gi = /* @__PURE__ */ new z(), Ki = /* @__PURE__ */ new Si(), qi = /* @__PURE__ */ new Wr(), Ji = class extends Si {
|
|
4033
4061
|
constructor(e, t, n) {
|
|
4034
|
-
super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new
|
|
4035
|
-
for (let e = 0; e < n; e++) this.setMatrixAt(e,
|
|
4062
|
+
super(e, t), this.isInstancedMesh = !0, this.instanceMatrix = new Bi(new Float32Array(n * 16), 16), this.previousInstanceMatrix = null, this.instanceColor = null, this.morphTexture = null, this.count = n, this.boundingBox = null, this.boundingSphere = null;
|
|
4063
|
+
for (let e = 0; e < n; e++) this.setMatrixAt(e, Gi);
|
|
4036
4064
|
}
|
|
4037
4065
|
computeBoundingBox() {
|
|
4038
4066
|
let e = this.geometry, t = this.count;
|
|
4039
4067
|
this.boundingBox === null && (this.boundingBox = new gr()), e.boundingBox === null && e.computeBoundingBox(), this.boundingBox.makeEmpty();
|
|
4040
|
-
for (let n = 0; n < t; n++) this.getMatrixAt(n,
|
|
4068
|
+
for (let n = 0; n < t; n++) this.getMatrixAt(n, Vi), Wi.copy(e.boundingBox).applyMatrix4(Vi), this.boundingBox.union(Wi);
|
|
4041
4069
|
}
|
|
4042
4070
|
computeBoundingSphere() {
|
|
4043
4071
|
let e = this.geometry, t = this.count;
|
|
4044
4072
|
this.boundingSphere === null && (this.boundingSphere = new Wr()), e.boundingSphere === null && e.computeBoundingSphere(), this.boundingSphere.makeEmpty();
|
|
4045
|
-
for (let n = 0; n < t; n++) this.getMatrixAt(n,
|
|
4073
|
+
for (let n = 0; n < t; n++) this.getMatrixAt(n, Vi), qi.copy(e.boundingSphere).applyMatrix4(Vi), this.boundingSphere.union(qi);
|
|
4046
4074
|
}
|
|
4047
4075
|
copy(e, t) {
|
|
4048
4076
|
return super.copy(e, t), this.instanceMatrix.copy(e.instanceMatrix), e.previousInstanceMatrix !== null && (this.previousInstanceMatrix = e.previousInstanceMatrix.clone()), e.morphTexture !== null && (this.morphTexture = e.morphTexture.clone()), e.instanceColor !== null && (this.instanceColor = e.instanceColor.clone()), this.count = e.count, e.boundingBox !== null && (this.boundingBox = e.boundingBox.clone()), e.boundingSphere !== null && (this.boundingSphere = e.boundingSphere.clone()), this;
|
|
4049
4077
|
}
|
|
4050
4078
|
getColorAt(e, t) {
|
|
4051
|
-
t.fromArray(this.instanceColor.array, e * 3);
|
|
4079
|
+
return this.instanceColor === null ? t.setRGB(1, 1, 1) : t.fromArray(this.instanceColor.array, e * 3);
|
|
4052
4080
|
}
|
|
4053
4081
|
getMatrixAt(e, t) {
|
|
4054
|
-
t.fromArray(this.instanceMatrix.array, e * 16);
|
|
4082
|
+
return t.fromArray(this.instanceMatrix.array, e * 16);
|
|
4055
4083
|
}
|
|
4056
4084
|
getMorphAt(e, t) {
|
|
4057
4085
|
let n = t.morphTargetInfluences, r = this.morphTexture.source.data.data, i = e * (n.length + 1) + 1;
|
|
@@ -4059,34 +4087,34 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4059
4087
|
}
|
|
4060
4088
|
raycast(e, t) {
|
|
4061
4089
|
let n = this.matrixWorld, r = this.count;
|
|
4062
|
-
if (
|
|
4063
|
-
this.getMatrixAt(i,
|
|
4064
|
-
for (let e = 0, n =
|
|
4065
|
-
let n =
|
|
4090
|
+
if (Ki.geometry = this.geometry, Ki.material = this.material, Ki.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), qi.copy(this.boundingSphere), qi.applyMatrix4(n), e.ray.intersectsSphere(qi) !== !1)) for (let i = 0; i < r; i++) {
|
|
4091
|
+
this.getMatrixAt(i, Vi), Hi.multiplyMatrices(n, Vi), Ki.matrixWorld = Hi, Ki.raycast(e, Ui);
|
|
4092
|
+
for (let e = 0, n = Ui.length; e < n; e++) {
|
|
4093
|
+
let n = Ui[e];
|
|
4066
4094
|
n.instanceId = i, n.object = this, t.push(n);
|
|
4067
4095
|
}
|
|
4068
|
-
|
|
4096
|
+
Ui.length = 0;
|
|
4069
4097
|
}
|
|
4070
4098
|
}
|
|
4071
4099
|
setColorAt(e, t) {
|
|
4072
|
-
this.instanceColor === null && (this.instanceColor = new
|
|
4100
|
+
return this.instanceColor === null && (this.instanceColor = new Bi(new Float32Array(this.instanceMatrix.count * 3).fill(1), 3)), t.toArray(this.instanceColor.array, e * 3), this;
|
|
4073
4101
|
}
|
|
4074
4102
|
setMatrixAt(e, t) {
|
|
4075
|
-
t.toArray(this.instanceMatrix.array, e * 16);
|
|
4103
|
+
return t.toArray(this.instanceMatrix.array, e * 16), this;
|
|
4076
4104
|
}
|
|
4077
4105
|
setMorphAt(e, t) {
|
|
4078
4106
|
let n = t.morphTargetInfluences, r = n.length + 1;
|
|
4079
|
-
this.morphTexture === null && (this.morphTexture = new
|
|
4107
|
+
this.morphTexture === null && (this.morphTexture = new Ii(new Float32Array(r * this.count), r, this.count, O, v));
|
|
4080
4108
|
let i = this.morphTexture.source.data.data, a = 0;
|
|
4081
4109
|
for (let e = 0; e < n.length; e++) a += n[e];
|
|
4082
4110
|
let o = this.geometry.morphTargetsRelative ? 1 : 1 - a, s = r * e;
|
|
4083
|
-
i[s] = o, i.set(n, s + 1);
|
|
4111
|
+
return i[s] = o, i.set(n, s + 1), this;
|
|
4084
4112
|
}
|
|
4085
4113
|
updateMorphTargets() {}
|
|
4086
4114
|
dispose() {
|
|
4087
4115
|
this.dispatchEvent({ type: "dispose" }), this.morphTexture !== null && (this.morphTexture.dispose(), this.morphTexture = null);
|
|
4088
4116
|
}
|
|
4089
|
-
},
|
|
4117
|
+
}, Yi = /* @__PURE__ */ new I(), Xi = /* @__PURE__ */ new I(), Zi = /* @__PURE__ */ new nn(), Qi = class {
|
|
4090
4118
|
constructor(e = new I(1, 0, 0), t = 0) {
|
|
4091
4119
|
this.isPlane = !0, this.normal = e, this.constant = t;
|
|
4092
4120
|
}
|
|
@@ -4100,7 +4128,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4100
4128
|
return this.normal.copy(e), this.constant = -t.dot(this.normal), this;
|
|
4101
4129
|
}
|
|
4102
4130
|
setFromCoplanarPoints(e, t, n) {
|
|
4103
|
-
let r =
|
|
4131
|
+
let r = Yi.subVectors(n, t).cross(Xi.subVectors(e, t)).normalize();
|
|
4104
4132
|
return this.setFromNormalAndCoplanarPoint(r, e), this;
|
|
4105
4133
|
}
|
|
4106
4134
|
copy(e) {
|
|
@@ -4122,11 +4150,11 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4122
4150
|
projectPoint(e, t) {
|
|
4123
4151
|
return t.copy(e).addScaledVector(this.normal, -this.distanceToPoint(e));
|
|
4124
4152
|
}
|
|
4125
|
-
intersectLine(e, t) {
|
|
4126
|
-
let
|
|
4127
|
-
if (
|
|
4128
|
-
let
|
|
4129
|
-
return
|
|
4153
|
+
intersectLine(e, t, n = !0) {
|
|
4154
|
+
let r = e.delta(Yi), i = this.normal.dot(r);
|
|
4155
|
+
if (i === 0) return this.distanceToPoint(e.start) === 0 ? t.copy(e.start) : null;
|
|
4156
|
+
let a = -(e.start.dot(this.normal) + this.constant) / i;
|
|
4157
|
+
return n === !0 && (a < 0 || a > 1) ? null : t.copy(e.start).addScaledVector(r, a);
|
|
4130
4158
|
}
|
|
4131
4159
|
intersectsLine(e) {
|
|
4132
4160
|
let t = this.distanceToPoint(e.start), n = this.distanceToPoint(e.end);
|
|
@@ -4142,7 +4170,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4142
4170
|
return e.copy(this.normal).multiplyScalar(-this.constant);
|
|
4143
4171
|
}
|
|
4144
4172
|
applyMatrix4(e, t) {
|
|
4145
|
-
let n = t ||
|
|
4173
|
+
let n = t || Zi.getNormalMatrix(e), r = this.coplanarPoint(Yi).applyMatrix4(e), i = this.normal.applyMatrix3(n).normalize();
|
|
4146
4174
|
return this.constant = -r.dot(i), this;
|
|
4147
4175
|
}
|
|
4148
4176
|
translate(e) {
|
|
@@ -4154,8 +4182,8 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4154
4182
|
clone() {
|
|
4155
4183
|
return new this.constructor().copy(this);
|
|
4156
4184
|
}
|
|
4157
|
-
},
|
|
4158
|
-
constructor(e = new
|
|
4185
|
+
}, $i = /* @__PURE__ */ new Wr(), ea = /* @__PURE__ */ new F(.5, .5), ta = /* @__PURE__ */ new I(), na = class {
|
|
4186
|
+
constructor(e = new Qi(), t = new Qi(), n = new Qi(), r = new Qi(), i = new Qi(), a = new Qi()) {
|
|
4159
4187
|
this.planes = [
|
|
4160
4188
|
e,
|
|
4161
4189
|
t,
|
|
@@ -4183,15 +4211,15 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4183
4211
|
return this;
|
|
4184
4212
|
}
|
|
4185
4213
|
intersectsObject(e) {
|
|
4186
|
-
if (e.boundingSphere !== void 0) e.boundingSphere === null && e.computeBoundingSphere(),
|
|
4214
|
+
if (e.boundingSphere !== void 0) e.boundingSphere === null && e.computeBoundingSphere(), $i.copy(e.boundingSphere).applyMatrix4(e.matrixWorld);
|
|
4187
4215
|
else {
|
|
4188
4216
|
let t = e.geometry;
|
|
4189
|
-
t.boundingSphere === null && t.computeBoundingSphere(),
|
|
4217
|
+
t.boundingSphere === null && t.computeBoundingSphere(), $i.copy(t.boundingSphere).applyMatrix4(e.matrixWorld);
|
|
4190
4218
|
}
|
|
4191
|
-
return this.intersectsSphere(
|
|
4219
|
+
return this.intersectsSphere($i);
|
|
4192
4220
|
}
|
|
4193
4221
|
intersectsSprite(e) {
|
|
4194
|
-
return
|
|
4222
|
+
return $i.center.set(0, 0, 0), $i.radius = .7071067811865476 + ea.distanceTo(e.center), $i.applyMatrix4(e.matrixWorld), this.intersectsSphere($i);
|
|
4195
4223
|
}
|
|
4196
4224
|
intersectsSphere(e) {
|
|
4197
4225
|
let t = this.planes, n = e.center, r = -e.radius;
|
|
@@ -4202,7 +4230,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4202
4230
|
let t = this.planes;
|
|
4203
4231
|
for (let n = 0; n < 6; n++) {
|
|
4204
4232
|
let r = t[n];
|
|
4205
|
-
if (
|
|
4233
|
+
if (ta.x = r.normal.x > 0 ? e.max.x : e.min.x, ta.y = r.normal.y > 0 ? e.max.y : e.min.y, ta.z = r.normal.z > 0 ? e.max.z : e.min.z, r.distanceToPoint(ta) < 0) return !1;
|
|
4206
4234
|
}
|
|
4207
4235
|
return !0;
|
|
4208
4236
|
}
|
|
@@ -4214,7 +4242,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4214
4242
|
clone() {
|
|
4215
4243
|
return new this.constructor().copy(this);
|
|
4216
4244
|
}
|
|
4217
|
-
},
|
|
4245
|
+
}, ra = /* @__PURE__ */ new z(), ia = /* @__PURE__ */ new na(), aa = class e {
|
|
4218
4246
|
constructor() {
|
|
4219
4247
|
this.coordinateSystem = ft;
|
|
4220
4248
|
}
|
|
@@ -4222,7 +4250,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4222
4250
|
if (!t.isArrayCamera || t.cameras.length === 0) return !1;
|
|
4223
4251
|
for (let n = 0; n < t.cameras.length; n++) {
|
|
4224
4252
|
let r = t.cameras[n];
|
|
4225
|
-
if (
|
|
4253
|
+
if (ra.multiplyMatrices(r.projectionMatrix, r.matrixWorldInverse), ia.setFromProjectionMatrix(ra, r.coordinateSystem, r.reversedDepth), ia.intersectsObject(e)) return !0;
|
|
4226
4254
|
}
|
|
4227
4255
|
return !1;
|
|
4228
4256
|
}
|
|
@@ -4230,7 +4258,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4230
4258
|
if (!t || !t.cameras || t.cameras.length === 0) return !1;
|
|
4231
4259
|
for (let n = 0; n < t.cameras.length; n++) {
|
|
4232
4260
|
let r = t.cameras[n];
|
|
4233
|
-
if (
|
|
4261
|
+
if (ra.multiplyMatrices(r.projectionMatrix, r.matrixWorldInverse), ia.setFromProjectionMatrix(ra, r.coordinateSystem, r.reversedDepth), ia.intersectsSprite(e)) return !0;
|
|
4234
4262
|
}
|
|
4235
4263
|
return !1;
|
|
4236
4264
|
}
|
|
@@ -4238,7 +4266,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4238
4266
|
if (!t || !t.cameras || t.cameras.length === 0) return !1;
|
|
4239
4267
|
for (let n = 0; n < t.cameras.length; n++) {
|
|
4240
4268
|
let r = t.cameras[n];
|
|
4241
|
-
if (
|
|
4269
|
+
if (ra.multiplyMatrices(r.projectionMatrix, r.matrixWorldInverse), ia.setFromProjectionMatrix(ra, r.coordinateSystem, r.reversedDepth), ia.intersectsSphere(e)) return !0;
|
|
4242
4270
|
}
|
|
4243
4271
|
return !1;
|
|
4244
4272
|
}
|
|
@@ -4246,7 +4274,7 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4246
4274
|
if (!t || !t.cameras || t.cameras.length === 0) return !1;
|
|
4247
4275
|
for (let n = 0; n < t.cameras.length; n++) {
|
|
4248
4276
|
let r = t.cameras[n];
|
|
4249
|
-
if (
|
|
4277
|
+
if (ra.multiplyMatrices(r.projectionMatrix, r.matrixWorldInverse), ia.setFromProjectionMatrix(ra, r.coordinateSystem, r.reversedDepth), ia.intersectsBox(e)) return !0;
|
|
4250
4278
|
}
|
|
4251
4279
|
return !1;
|
|
4252
4280
|
}
|
|
@@ -4254,22 +4282,22 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4254
4282
|
if (!t || !t.cameras || t.cameras.length === 0) return !1;
|
|
4255
4283
|
for (let n = 0; n < t.cameras.length; n++) {
|
|
4256
4284
|
let r = t.cameras[n];
|
|
4257
|
-
if (
|
|
4285
|
+
if (ra.multiplyMatrices(r.projectionMatrix, r.matrixWorldInverse), ia.setFromProjectionMatrix(ra, r.coordinateSystem, r.reversedDepth), ia.containsPoint(e)) return !0;
|
|
4258
4286
|
}
|
|
4259
4287
|
return !1;
|
|
4260
4288
|
}
|
|
4261
4289
|
clone() {
|
|
4262
4290
|
return new e();
|
|
4263
4291
|
}
|
|
4264
|
-
},
|
|
4292
|
+
}, oa = class extends Y {
|
|
4265
4293
|
constructor(e) {
|
|
4266
|
-
super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new
|
|
4294
|
+
super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new H(16777215), this.map = null, this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.fog = !0, this.setValues(e);
|
|
4267
4295
|
}
|
|
4268
4296
|
copy(e) {
|
|
4269
4297
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
|
|
4270
4298
|
}
|
|
4271
|
-
},
|
|
4272
|
-
constructor(e = new
|
|
4299
|
+
}, sa = /* @__PURE__ */ new I(), ca = /* @__PURE__ */ new I(), la = /* @__PURE__ */ new z(), ua = /* @__PURE__ */ new li(), da = /* @__PURE__ */ new Wr(), fa = /* @__PURE__ */ new I(), pa = /* @__PURE__ */ new I(), ma = class extends V {
|
|
4300
|
+
constructor(e = new Zr(), t = new oa()) {
|
|
4273
4301
|
super(), this.isLine = !0, this.type = "Line", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
|
|
4274
4302
|
}
|
|
4275
4303
|
copy(e, t) {
|
|
@@ -4279,34 +4307,34 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4279
4307
|
let e = this.geometry;
|
|
4280
4308
|
if (e.index === null) {
|
|
4281
4309
|
let t = e.attributes.position, n = [0];
|
|
4282
|
-
for (let e = 1, r = t.count; e < r; e++)
|
|
4283
|
-
e.setAttribute("lineDistance", new
|
|
4310
|
+
for (let e = 1, r = t.count; e < r; e++) sa.fromBufferAttribute(t, e - 1), ca.fromBufferAttribute(t, e), n[e] = n[e - 1], n[e] += sa.distanceTo(ca);
|
|
4311
|
+
e.setAttribute("lineDistance", new K(n, 1));
|
|
4284
4312
|
} else k("Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
|
|
4285
4313
|
return this;
|
|
4286
4314
|
}
|
|
4287
4315
|
raycast(e, t) {
|
|
4288
4316
|
let n = this.geometry, r = this.matrixWorld, i = e.params.Line.threshold, a = n.drawRange;
|
|
4289
|
-
if (n.boundingSphere === null && n.computeBoundingSphere(),
|
|
4290
|
-
|
|
4317
|
+
if (n.boundingSphere === null && n.computeBoundingSphere(), da.copy(n.boundingSphere), da.applyMatrix4(r), da.radius += i, e.ray.intersectsSphere(da) === !1) return;
|
|
4318
|
+
la.copy(r).invert(), ua.copy(e.ray).applyMatrix4(la);
|
|
4291
4319
|
let o = i / ((this.scale.x + this.scale.y + this.scale.z) / 3), s = o * o, c = this.isLineSegments ? 2 : 1, l = n.index, u = n.attributes.position;
|
|
4292
4320
|
if (l !== null) {
|
|
4293
4321
|
let n = Math.max(0, a.start), r = Math.min(l.count, a.start + a.count);
|
|
4294
4322
|
for (let i = n, a = r - 1; i < a; i += c) {
|
|
4295
|
-
let n = l.getX(i), r = l.getX(i + 1), a =
|
|
4323
|
+
let n = l.getX(i), r = l.getX(i + 1), a = ha(this, e, ua, s, n, r, i);
|
|
4296
4324
|
a && t.push(a);
|
|
4297
4325
|
}
|
|
4298
4326
|
if (this.isLineLoop) {
|
|
4299
|
-
let i = l.getX(r - 1), a = l.getX(n), o =
|
|
4327
|
+
let i = l.getX(r - 1), a = l.getX(n), o = ha(this, e, ua, s, i, a, r - 1);
|
|
4300
4328
|
o && t.push(o);
|
|
4301
4329
|
}
|
|
4302
4330
|
} else {
|
|
4303
4331
|
let n = Math.max(0, a.start), r = Math.min(u.count, a.start + a.count);
|
|
4304
4332
|
for (let i = n, a = r - 1; i < a; i += c) {
|
|
4305
|
-
let n =
|
|
4333
|
+
let n = ha(this, e, ua, s, i, i + 1, i);
|
|
4306
4334
|
n && t.push(n);
|
|
4307
4335
|
}
|
|
4308
4336
|
if (this.isLineLoop) {
|
|
4309
|
-
let i =
|
|
4337
|
+
let i = ha(this, e, ua, s, r - 1, n, r - 1);
|
|
4310
4338
|
i && t.push(i);
|
|
4311
4339
|
}
|
|
4312
4340
|
}
|
|
@@ -4325,14 +4353,14 @@ var wi = /* @__PURE__ */ new I(), Ti = /* @__PURE__ */ new _n(), Ei = /* @__PURE
|
|
|
4325
4353
|
}
|
|
4326
4354
|
}
|
|
4327
4355
|
};
|
|
4328
|
-
function
|
|
4356
|
+
function ha(e, t, n, r, i, a, o) {
|
|
4329
4357
|
let s = e.geometry.attributes.position;
|
|
4330
|
-
if (
|
|
4331
|
-
|
|
4332
|
-
let c = t.ray.origin.distanceTo(
|
|
4358
|
+
if (sa.fromBufferAttribute(s, i), ca.fromBufferAttribute(s, a), n.distanceSqToSegment(sa, ca, fa, pa) > r) return;
|
|
4359
|
+
fa.applyMatrix4(e.matrixWorld);
|
|
4360
|
+
let c = t.ray.origin.distanceTo(fa);
|
|
4333
4361
|
if (!(c < t.near || c > t.far)) return {
|
|
4334
4362
|
distance: c,
|
|
4335
|
-
point:
|
|
4363
|
+
point: pa.clone().applyMatrix4(e.matrixWorld),
|
|
4336
4364
|
index: o,
|
|
4337
4365
|
face: null,
|
|
4338
4366
|
faceIndex: null,
|
|
@@ -4340,7 +4368,7 @@ function ma(e, t, n, r, i, a, o) {
|
|
|
4340
4368
|
object: e
|
|
4341
4369
|
};
|
|
4342
4370
|
}
|
|
4343
|
-
var
|
|
4371
|
+
var ga = /* @__PURE__ */ new I(), _a = /* @__PURE__ */ new I(), va = class extends ma {
|
|
4344
4372
|
constructor(e, t) {
|
|
4345
4373
|
super(e, t), this.isLineSegments = !0, this.type = "LineSegments";
|
|
4346
4374
|
}
|
|
@@ -4348,24 +4376,24 @@ var ha = /* @__PURE__ */ new I(), ga = /* @__PURE__ */ new I(), _a = class exten
|
|
|
4348
4376
|
let e = this.geometry;
|
|
4349
4377
|
if (e.index === null) {
|
|
4350
4378
|
let t = e.attributes.position, n = [];
|
|
4351
|
-
for (let e = 0, r = t.count; e < r; e += 2)
|
|
4352
|
-
e.setAttribute("lineDistance", new
|
|
4379
|
+
for (let e = 0, r = t.count; e < r; e += 2) ga.fromBufferAttribute(t, e), _a.fromBufferAttribute(t, e + 1), n[e] = e === 0 ? 0 : n[e - 1], n[e + 1] = n[e] + ga.distanceTo(_a);
|
|
4380
|
+
e.setAttribute("lineDistance", new K(n, 1));
|
|
4353
4381
|
} else k("LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
|
|
4354
4382
|
return this;
|
|
4355
4383
|
}
|
|
4356
|
-
},
|
|
4384
|
+
}, ya = class extends ma {
|
|
4357
4385
|
constructor(e, t) {
|
|
4358
4386
|
super(e, t), this.isLineLoop = !0, this.type = "LineLoop";
|
|
4359
4387
|
}
|
|
4360
|
-
},
|
|
4388
|
+
}, ba = class extends Y {
|
|
4361
4389
|
constructor(e) {
|
|
4362
|
-
super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new
|
|
4390
|
+
super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new H(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.fog = !0, this.setValues(e);
|
|
4363
4391
|
}
|
|
4364
4392
|
copy(e) {
|
|
4365
4393
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
4366
4394
|
}
|
|
4367
|
-
},
|
|
4368
|
-
constructor(e = new
|
|
4395
|
+
}, xa = /* @__PURE__ */ new z(), Sa = /* @__PURE__ */ new li(), Ca = /* @__PURE__ */ new Wr(), wa = /* @__PURE__ */ new I(), Ta = class extends V {
|
|
4396
|
+
constructor(e = new Zr(), t = new ba()) {
|
|
4369
4397
|
super(), this.isPoints = !0, this.type = "Points", this.geometry = e, this.material = t, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.updateMorphTargets();
|
|
4370
4398
|
}
|
|
4371
4399
|
copy(e, t) {
|
|
@@ -4373,18 +4401,18 @@ var ha = /* @__PURE__ */ new I(), ga = /* @__PURE__ */ new I(), _a = class exten
|
|
|
4373
4401
|
}
|
|
4374
4402
|
raycast(e, t) {
|
|
4375
4403
|
let n = this.geometry, r = this.matrixWorld, i = e.params.Points.threshold, a = n.drawRange;
|
|
4376
|
-
if (n.boundingSphere === null && n.computeBoundingSphere(),
|
|
4377
|
-
|
|
4404
|
+
if (n.boundingSphere === null && n.computeBoundingSphere(), Ca.copy(n.boundingSphere), Ca.applyMatrix4(r), Ca.radius += i, e.ray.intersectsSphere(Ca) === !1) return;
|
|
4405
|
+
xa.copy(r).invert(), Sa.copy(e.ray).applyMatrix4(xa);
|
|
4378
4406
|
let o = i / ((this.scale.x + this.scale.y + this.scale.z) / 3), s = o * o, c = n.index, l = n.attributes.position;
|
|
4379
4407
|
if (c !== null) {
|
|
4380
4408
|
let n = Math.max(0, a.start), i = Math.min(c.count, a.start + a.count);
|
|
4381
4409
|
for (let a = n, o = i; a < o; a++) {
|
|
4382
4410
|
let n = c.getX(a);
|
|
4383
|
-
|
|
4411
|
+
wa.fromBufferAttribute(l, n), Ea(wa, n, s, r, e, t, this);
|
|
4384
4412
|
}
|
|
4385
4413
|
} else {
|
|
4386
4414
|
let n = Math.max(0, a.start), i = Math.min(l.count, a.start + a.count);
|
|
4387
|
-
for (let a = n, o = i; a < o; a++)
|
|
4415
|
+
for (let a = n, o = i; a < o; a++) wa.fromBufferAttribute(l, a), Ea(wa, a, s, r, e, t, this);
|
|
4388
4416
|
}
|
|
4389
4417
|
}
|
|
4390
4418
|
updateMorphTargets() {
|
|
@@ -4401,11 +4429,11 @@ var ha = /* @__PURE__ */ new I(), ga = /* @__PURE__ */ new I(), _a = class exten
|
|
|
4401
4429
|
}
|
|
4402
4430
|
}
|
|
4403
4431
|
};
|
|
4404
|
-
function
|
|
4405
|
-
let s =
|
|
4432
|
+
function Ea(e, t, n, r, i, a, o) {
|
|
4433
|
+
let s = Sa.distanceSqToPoint(e);
|
|
4406
4434
|
if (s < n) {
|
|
4407
4435
|
let n = new I();
|
|
4408
|
-
|
|
4436
|
+
Sa.closestPointToPoint(e, n), n.applyMatrix4(r);
|
|
4409
4437
|
let c = i.ray.origin.distanceTo(n);
|
|
4410
4438
|
if (c < i.near || c > i.far) return;
|
|
4411
4439
|
a.push({
|
|
@@ -4420,21 +4448,21 @@ function Ta(e, t, n, r, i, a, o) {
|
|
|
4420
4448
|
});
|
|
4421
4449
|
}
|
|
4422
4450
|
}
|
|
4423
|
-
var
|
|
4451
|
+
var Da = class extends R {
|
|
4424
4452
|
constructor(e, t) {
|
|
4425
4453
|
super({
|
|
4426
4454
|
width: e,
|
|
4427
4455
|
height: t
|
|
4428
4456
|
}), this.isFramebufferTexture = !0, this.magFilter = a, this.minFilter = a, this.generateMipmaps = !1, this.needsUpdate = !0;
|
|
4429
4457
|
}
|
|
4430
|
-
},
|
|
4458
|
+
}, Oa = class extends R {
|
|
4431
4459
|
constructor(e, t, n, r, i, a, o, s, c, l, u, d) {
|
|
4432
4460
|
super(null, a, o, s, c, l, r, i, u, d), this.isCompressedTexture = !0, this.image = {
|
|
4433
4461
|
width: t,
|
|
4434
4462
|
height: n
|
|
4435
4463
|
}, this.mipmaps = e, this.flipY = !1, this.generateMipmaps = !1;
|
|
4436
4464
|
}
|
|
4437
|
-
},
|
|
4465
|
+
}, ka = class extends R {
|
|
4438
4466
|
constructor(e = [], t = 301, n, r, i, a, o, s, c, l) {
|
|
4439
4467
|
super(e, t, n, r, i, a, o, s, c, l), this.isCubeTexture = !0, this.flipY = !1;
|
|
4440
4468
|
}
|
|
@@ -4444,7 +4472,7 @@ var Ea = class extends L {
|
|
|
4444
4472
|
set images(e) {
|
|
4445
4473
|
this.image = e;
|
|
4446
4474
|
}
|
|
4447
|
-
},
|
|
4475
|
+
}, Aa = class extends R {
|
|
4448
4476
|
constructor(e, t, n = _, r, i, o, s = a, c = a, l, u = ee, d = 1) {
|
|
4449
4477
|
if (u !== 1026 && u !== 1027) throw Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
4450
4478
|
super({
|
|
@@ -4460,7 +4488,7 @@ var Ea = class extends L {
|
|
|
4460
4488
|
let t = super.toJSON(e);
|
|
4461
4489
|
return this.compareFunction !== null && (t.compareFunction = this.compareFunction), t;
|
|
4462
4490
|
}
|
|
4463
|
-
},
|
|
4491
|
+
}, ja = class extends Aa {
|
|
4464
4492
|
constructor(e, t = _, n = 301, r, i, o = a, s = a, c, l = ee) {
|
|
4465
4493
|
let u = {
|
|
4466
4494
|
width: e,
|
|
@@ -4482,14 +4510,14 @@ var Ea = class extends L {
|
|
|
4482
4510
|
set images(e) {
|
|
4483
4511
|
this.image = e;
|
|
4484
4512
|
}
|
|
4485
|
-
},
|
|
4513
|
+
}, Ma = class extends R {
|
|
4486
4514
|
constructor(e = null) {
|
|
4487
4515
|
super(), this.sourceTexture = e, this.isExternalTexture = !0;
|
|
4488
4516
|
}
|
|
4489
4517
|
copy(e) {
|
|
4490
4518
|
return super.copy(e), this.sourceTexture = e.sourceTexture, this;
|
|
4491
4519
|
}
|
|
4492
|
-
},
|
|
4520
|
+
}, Na = class e extends Zr {
|
|
4493
4521
|
constructor(e = 1, t = 1, n = 1, r = 1, i = 1, a = 1) {
|
|
4494
4522
|
super(), this.type = "BoxGeometry", this.parameters = {
|
|
4495
4523
|
width: e,
|
|
@@ -4502,7 +4530,7 @@ var Ea = class extends L {
|
|
|
4502
4530
|
let o = this;
|
|
4503
4531
|
r = Math.floor(r), i = Math.floor(i), a = Math.floor(a);
|
|
4504
4532
|
let s = [], c = [], l = [], u = [], d = 0, f = 0;
|
|
4505
|
-
p("z", "y", "x", -1, -1, n, t, e, a, i, 0), p("z", "y", "x", 1, -1, n, t, -e, a, i, 1), p("x", "z", "y", 1, 1, e, n, t, r, a, 2), p("x", "z", "y", 1, -1, e, n, -t, r, a, 3), p("x", "y", "z", 1, -1, e, t, n, r, i, 4), p("x", "y", "z", -1, -1, e, t, -n, r, i, 5), this.setIndex(s), this.setAttribute("position", new
|
|
4533
|
+
p("z", "y", "x", -1, -1, n, t, e, a, i, 0), p("z", "y", "x", 1, -1, n, t, -e, a, i, 1), p("x", "z", "y", 1, 1, e, n, t, r, a, 2), p("x", "z", "y", 1, -1, e, n, -t, r, a, 3), p("x", "y", "z", 1, -1, e, t, n, r, i, 4), p("x", "y", "z", -1, -1, e, t, -n, r, i, 5), this.setIndex(s), this.setAttribute("position", new K(c, 3)), this.setAttribute("normal", new K(l, 3)), this.setAttribute("uv", new K(u, 2));
|
|
4506
4534
|
function p(e, t, n, r, i, a, p, m, h, g, _) {
|
|
4507
4535
|
let v = a / h, y = p / g, b = a / 2, x = p / 2, S = m / 2, C = h + 1, w = g + 1, T = 0, E = 0, D = new I();
|
|
4508
4536
|
for (let a = 0; a < w; a++) {
|
|
@@ -4522,7 +4550,7 @@ var Ea = class extends L {
|
|
|
4522
4550
|
static fromJSON(t) {
|
|
4523
4551
|
return new e(t.width, t.height, t.depth, t.widthSegments, t.heightSegments, t.depthSegments);
|
|
4524
4552
|
}
|
|
4525
|
-
},
|
|
4553
|
+
}, Pa = class e extends Zr {
|
|
4526
4554
|
constructor(e = 1, t = 32, n = 0, r = Math.PI * 2) {
|
|
4527
4555
|
super(), this.type = "CircleGeometry", this.parameters = {
|
|
4528
4556
|
radius: e,
|
|
@@ -4537,7 +4565,7 @@ var Ea = class extends L {
|
|
|
4537
4565
|
c.x = e * Math.cos(d), c.y = e * Math.sin(d), a.push(c.x, c.y, c.z), o.push(0, 0, 1), l.x = (a[u] / e + 1) / 2, l.y = (a[u + 1] / e + 1) / 2, s.push(l.x, l.y);
|
|
4538
4566
|
}
|
|
4539
4567
|
for (let e = 1; e <= t; e++) i.push(e, e + 1, 0);
|
|
4540
|
-
this.setIndex(i), this.setAttribute("position", new
|
|
4568
|
+
this.setIndex(i), this.setAttribute("position", new K(a, 3)), this.setAttribute("normal", new K(o, 3)), this.setAttribute("uv", new K(s, 2));
|
|
4541
4569
|
}
|
|
4542
4570
|
copy(e) {
|
|
4543
4571
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
@@ -4545,7 +4573,7 @@ var Ea = class extends L {
|
|
|
4545
4573
|
static fromJSON(t) {
|
|
4546
4574
|
return new e(t.radius, t.segments, t.thetaStart, t.thetaLength);
|
|
4547
4575
|
}
|
|
4548
|
-
},
|
|
4576
|
+
}, Fa = class e extends Zr {
|
|
4549
4577
|
constructor(e = 1, t = 1, n = 1, r = 32, i = 1, a = !1, o = 0, s = Math.PI * 2) {
|
|
4550
4578
|
super(), this.type = "CylinderGeometry", this.parameters = {
|
|
4551
4579
|
radiusTop: e,
|
|
@@ -4560,7 +4588,7 @@ var Ea = class extends L {
|
|
|
4560
4588
|
let c = this;
|
|
4561
4589
|
r = Math.floor(r), i = Math.floor(i);
|
|
4562
4590
|
let l = [], u = [], d = [], f = [], p = 0, m = [], h = n / 2, g = 0;
|
|
4563
|
-
_(), a === !1 && (e > 0 && v(!0), t > 0 && v(!1)), this.setIndex(l), this.setAttribute("position", new
|
|
4591
|
+
_(), a === !1 && (e > 0 && v(!0), t > 0 && v(!1)), this.setIndex(l), this.setAttribute("position", new K(u, 3)), this.setAttribute("normal", new K(d, 3)), this.setAttribute("uv", new K(f, 2));
|
|
4564
4592
|
function _() {
|
|
4565
4593
|
let a = new I(), _ = new I(), v = 0, y = (t - e) / n;
|
|
4566
4594
|
for (let c = 0; c <= i; c++) {
|
|
@@ -4598,7 +4626,7 @@ var Ea = class extends L {
|
|
|
4598
4626
|
static fromJSON(t) {
|
|
4599
4627
|
return new e(t.radiusTop, t.radiusBottom, t.height, t.radialSegments, t.heightSegments, t.openEnded, t.thetaStart, t.thetaLength);
|
|
4600
4628
|
}
|
|
4601
|
-
},
|
|
4629
|
+
}, Ia = class e extends Fa {
|
|
4602
4630
|
constructor(e = 1, t = 1, n = 32, r = 1, i = !1, a = 0, o = Math.PI * 2) {
|
|
4603
4631
|
super(0, e, t, n, r, i, a, o), this.type = "ConeGeometry", this.parameters = {
|
|
4604
4632
|
radius: e,
|
|
@@ -4613,13 +4641,13 @@ var Ea = class extends L {
|
|
|
4613
4641
|
static fromJSON(t) {
|
|
4614
4642
|
return new e(t.radius, t.height, t.radialSegments, t.heightSegments, t.openEnded, t.thetaStart, t.thetaLength);
|
|
4615
4643
|
}
|
|
4616
|
-
},
|
|
4644
|
+
}, La = /* @__PURE__ */ new I(), Ra = /* @__PURE__ */ new I(), za = /* @__PURE__ */ new I(), Ba = /* @__PURE__ */ new hr(), Va = class extends Zr {
|
|
4617
4645
|
constructor(e = null, t = 1) {
|
|
4618
4646
|
if (super(), this.type = "EdgesGeometry", this.parameters = {
|
|
4619
4647
|
geometry: e,
|
|
4620
4648
|
thresholdAngle: t
|
|
4621
4649
|
}, e !== null) {
|
|
4622
|
-
let n = 10 ** 4, r = Math.cos(
|
|
4650
|
+
let n = 10 ** 4, r = Math.cos(jt * t), i = e.getIndex(), a = e.getAttribute("position"), o = i ? i.count : a.count, s = [
|
|
4623
4651
|
0,
|
|
4624
4652
|
0,
|
|
4625
4653
|
0
|
|
@@ -4634,27 +4662,27 @@ var Ea = class extends L {
|
|
|
4634
4662
|
], u = {}, d = [];
|
|
4635
4663
|
for (let e = 0; e < o; e += 3) {
|
|
4636
4664
|
i ? (s[0] = i.getX(e), s[1] = i.getX(e + 1), s[2] = i.getX(e + 2)) : (s[0] = e, s[1] = e + 1, s[2] = e + 2);
|
|
4637
|
-
let { a: t, b: o, c: f } =
|
|
4638
|
-
if (t.fromBufferAttribute(a, s[0]), o.fromBufferAttribute(a, s[1]), f.fromBufferAttribute(a, s[2]),
|
|
4639
|
-
let t = (e + 1) % 3, n = l[e], i = l[t], a =
|
|
4640
|
-
p in u && u[p] ? (
|
|
4665
|
+
let { a: t, b: o, c: f } = Ba;
|
|
4666
|
+
if (t.fromBufferAttribute(a, s[0]), o.fromBufferAttribute(a, s[1]), f.fromBufferAttribute(a, s[2]), Ba.getNormal(za), l[0] = `${Math.round(t.x * n)},${Math.round(t.y * n)},${Math.round(t.z * n)}`, l[1] = `${Math.round(o.x * n)},${Math.round(o.y * n)},${Math.round(o.z * n)}`, l[2] = `${Math.round(f.x * n)},${Math.round(f.y * n)},${Math.round(f.z * n)}`, !(l[0] === l[1] || l[1] === l[2] || l[2] === l[0])) for (let e = 0; e < 3; e++) {
|
|
4667
|
+
let t = (e + 1) % 3, n = l[e], i = l[t], a = Ba[c[e]], o = Ba[c[t]], f = `${n}_${i}`, p = `${i}_${n}`;
|
|
4668
|
+
p in u && u[p] ? (za.dot(u[p].normal) <= r && (d.push(a.x, a.y, a.z), d.push(o.x, o.y, o.z)), u[p] = null) : f in u || (u[f] = {
|
|
4641
4669
|
index0: s[e],
|
|
4642
4670
|
index1: s[t],
|
|
4643
|
-
normal:
|
|
4671
|
+
normal: za.clone()
|
|
4644
4672
|
});
|
|
4645
4673
|
}
|
|
4646
4674
|
}
|
|
4647
4675
|
for (let e in u) if (u[e]) {
|
|
4648
4676
|
let { index0: t, index1: n } = u[e];
|
|
4649
|
-
|
|
4677
|
+
La.fromBufferAttribute(a, t), Ra.fromBufferAttribute(a, n), d.push(La.x, La.y, La.z), d.push(Ra.x, Ra.y, Ra.z);
|
|
4650
4678
|
}
|
|
4651
|
-
this.setAttribute("position", new
|
|
4679
|
+
this.setAttribute("position", new K(d, 3));
|
|
4652
4680
|
}
|
|
4653
4681
|
}
|
|
4654
4682
|
copy(e) {
|
|
4655
4683
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
4656
4684
|
}
|
|
4657
|
-
},
|
|
4685
|
+
}, Ha = class {
|
|
4658
4686
|
constructor() {
|
|
4659
4687
|
this.type = "Curve", this.arcLengthDivisions = 200, this.needsUpdate = !1, this.cacheArcLengths = null;
|
|
4660
4688
|
}
|
|
@@ -4715,7 +4743,7 @@ var Ea = class extends L {
|
|
|
4715
4743
|
return this.getTangent(n, t);
|
|
4716
4744
|
}
|
|
4717
4745
|
computeFrenetFrames(e, t = !1) {
|
|
4718
|
-
let n = new I(), r = [], i = [], a = [], o = new I(), s = new
|
|
4746
|
+
let n = new I(), r = [], i = [], a = [], o = new I(), s = new z();
|
|
4719
4747
|
for (let t = 0; t <= e; t++) {
|
|
4720
4748
|
let n = t / e;
|
|
4721
4749
|
r[t] = this.getTangentAt(n, new I());
|
|
@@ -4759,7 +4787,7 @@ var Ea = class extends L {
|
|
|
4759
4787
|
fromJSON(e) {
|
|
4760
4788
|
return this.arcLengthDivisions = e.arcLengthDivisions, this;
|
|
4761
4789
|
}
|
|
4762
|
-
},
|
|
4790
|
+
}, Ua = class extends Ha {
|
|
4763
4791
|
constructor(e = 0, t = 0, n = 1, r = 1, i = 0, a = Math.PI * 2, o = !1, s = 0) {
|
|
4764
4792
|
super(), this.isEllipseCurve = !0, this.type = "EllipseCurve", this.aX = e, this.aY = t, this.xRadius = n, this.yRadius = r, this.aStartAngle = i, this.aEndAngle = a, this.aClockwise = o, this.aRotation = s;
|
|
4765
4793
|
}
|
|
@@ -4785,12 +4813,12 @@ var Ea = class extends L {
|
|
|
4785
4813
|
fromJSON(e) {
|
|
4786
4814
|
return super.fromJSON(e), this.aX = e.aX, this.aY = e.aY, this.xRadius = e.xRadius, this.yRadius = e.yRadius, this.aStartAngle = e.aStartAngle, this.aEndAngle = e.aEndAngle, this.aClockwise = e.aClockwise, this.aRotation = e.aRotation, this;
|
|
4787
4815
|
}
|
|
4788
|
-
},
|
|
4816
|
+
}, Wa = class extends Ua {
|
|
4789
4817
|
constructor(e, t, n, r, i, a) {
|
|
4790
4818
|
super(e, t, n, n, r, i, a), this.isArcCurve = !0, this.type = "ArcCurve";
|
|
4791
4819
|
}
|
|
4792
4820
|
};
|
|
4793
|
-
function
|
|
4821
|
+
function Ga() {
|
|
4794
4822
|
let e = 0, t = 0, n = 0, r = 0;
|
|
4795
4823
|
function i(i, a, o, s) {
|
|
4796
4824
|
e = i, t = o, n = -3 * i + 3 * a - 2 * o - s, r = 2 * i - 2 * a + o + s;
|
|
@@ -4809,7 +4837,7 @@ function Wa() {
|
|
|
4809
4837
|
}
|
|
4810
4838
|
};
|
|
4811
4839
|
}
|
|
4812
|
-
var
|
|
4840
|
+
var Ka = /* @__PURE__ */ new I(), qa = /* @__PURE__ */ new I(), Ja = /* @__PURE__ */ new Ga(), Ya = /* @__PURE__ */ new Ga(), Xa = /* @__PURE__ */ new Ga(), Za = class extends Ha {
|
|
4813
4841
|
constructor(e = [], t = !1, n = "centripetal", r = .5) {
|
|
4814
4842
|
super(), this.isCatmullRomCurve3 = !0, this.type = "CatmullRomCurve3", this.points = e, this.closed = t, this.curveType = n, this.tension = r;
|
|
4815
4843
|
}
|
|
@@ -4817,13 +4845,13 @@ var Ga = /* @__PURE__ */ new I(), Ka = /* @__PURE__ */ new Wa(), qa = /* @__PURE
|
|
|
4817
4845
|
let n = t, r = this.points, i = r.length, a = (i - (this.closed ? 0 : 1)) * e, o = Math.floor(a), s = a - o;
|
|
4818
4846
|
this.closed ? o += o > 0 ? 0 : (Math.floor(Math.abs(o) / i) + 1) * i : s === 0 && o === i - 1 && (o = i - 2, s = 1);
|
|
4819
4847
|
let c, l;
|
|
4820
|
-
this.closed || o > 0 ? c = r[(o - 1) % i] : (
|
|
4848
|
+
this.closed || o > 0 ? c = r[(o - 1) % i] : (qa.subVectors(r[0], r[1]).add(r[0]), c = qa);
|
|
4821
4849
|
let u = r[o % i], d = r[(o + 1) % i];
|
|
4822
|
-
if (this.closed || o + 2 < i ? l = r[(o + 2) % i] : (
|
|
4850
|
+
if (this.closed || o + 2 < i ? l = r[(o + 2) % i] : (Ka.subVectors(r[i - 1], r[i - 2]).add(r[i - 1]), l = Ka), this.curveType === "centripetal" || this.curveType === "chordal") {
|
|
4823
4851
|
let e = this.curveType === "chordal" ? .5 : .25, t = c.distanceToSquared(u) ** +e, n = u.distanceToSquared(d) ** +e, r = d.distanceToSquared(l) ** +e;
|
|
4824
|
-
n < 1e-4 && (n = 1), t < 1e-4 && (t = n), r < 1e-4 && (r = n),
|
|
4825
|
-
} else this.curveType === "catmullrom" && (
|
|
4826
|
-
return n.set(
|
|
4852
|
+
n < 1e-4 && (n = 1), t < 1e-4 && (t = n), r < 1e-4 && (r = n), Ja.initNonuniformCatmullRom(c.x, u.x, d.x, l.x, t, n, r), Ya.initNonuniformCatmullRom(c.y, u.y, d.y, l.y, t, n, r), Xa.initNonuniformCatmullRom(c.z, u.z, d.z, l.z, t, n, r);
|
|
4853
|
+
} else this.curveType === "catmullrom" && (Ja.initCatmullRom(c.x, u.x, d.x, l.x, this.tension), Ya.initCatmullRom(c.y, u.y, d.y, l.y, this.tension), Xa.initCatmullRom(c.z, u.z, d.z, l.z, this.tension));
|
|
4854
|
+
return n.set(Ja.calc(s), Ya.calc(s), Xa.calc(s)), n;
|
|
4827
4855
|
}
|
|
4828
4856
|
copy(e) {
|
|
4829
4857
|
super.copy(e), this.points = [];
|
|
@@ -4851,47 +4879,47 @@ var Ga = /* @__PURE__ */ new I(), Ka = /* @__PURE__ */ new Wa(), qa = /* @__PURE
|
|
|
4851
4879
|
return this.closed = e.closed, this.curveType = e.curveType, this.tension = e.tension, this;
|
|
4852
4880
|
}
|
|
4853
4881
|
};
|
|
4854
|
-
function
|
|
4882
|
+
function Qa(e, t, n, r, i) {
|
|
4855
4883
|
let a = (r - t) * .5, o = (i - n) * .5, s = e * e, c = e * s;
|
|
4856
4884
|
return (2 * n - 2 * r + a + o) * c + (-3 * n + 3 * r - 2 * a - o) * s + a * e + n;
|
|
4857
4885
|
}
|
|
4858
|
-
function
|
|
4886
|
+
function $a(e, t) {
|
|
4859
4887
|
let n = 1 - e;
|
|
4860
4888
|
return n * n * t;
|
|
4861
4889
|
}
|
|
4862
|
-
function
|
|
4890
|
+
function eo(e, t) {
|
|
4863
4891
|
return 2 * (1 - e) * e * t;
|
|
4864
4892
|
}
|
|
4865
|
-
function
|
|
4893
|
+
function to(e, t) {
|
|
4866
4894
|
return e * e * t;
|
|
4867
4895
|
}
|
|
4868
|
-
function
|
|
4869
|
-
return
|
|
4896
|
+
function no(e, t, n, r) {
|
|
4897
|
+
return $a(e, t) + eo(e, n) + to(e, r);
|
|
4870
4898
|
}
|
|
4871
|
-
function
|
|
4899
|
+
function ro(e, t) {
|
|
4872
4900
|
let n = 1 - e;
|
|
4873
4901
|
return n * n * n * t;
|
|
4874
4902
|
}
|
|
4875
|
-
function
|
|
4903
|
+
function io(e, t) {
|
|
4876
4904
|
let n = 1 - e;
|
|
4877
4905
|
return 3 * n * n * e * t;
|
|
4878
4906
|
}
|
|
4879
|
-
function
|
|
4907
|
+
function ao(e, t) {
|
|
4880
4908
|
return 3 * (1 - e) * e * e * t;
|
|
4881
4909
|
}
|
|
4882
|
-
function
|
|
4910
|
+
function oo(e, t) {
|
|
4883
4911
|
return e * e * e * t;
|
|
4884
4912
|
}
|
|
4885
|
-
function
|
|
4886
|
-
return
|
|
4913
|
+
function so(e, t, n, r, i) {
|
|
4914
|
+
return ro(e, t) + io(e, n) + ao(e, r) + oo(e, i);
|
|
4887
4915
|
}
|
|
4888
|
-
var
|
|
4916
|
+
var co = class extends Ha {
|
|
4889
4917
|
constructor(e = new F(), t = new F(), n = new F(), r = new F()) {
|
|
4890
4918
|
super(), this.isCubicBezierCurve = !0, this.type = "CubicBezierCurve", this.v0 = e, this.v1 = t, this.v2 = n, this.v3 = r;
|
|
4891
4919
|
}
|
|
4892
4920
|
getPoint(e, t = new F()) {
|
|
4893
4921
|
let n = t, r = this.v0, i = this.v1, a = this.v2, o = this.v3;
|
|
4894
|
-
return n.set(
|
|
4922
|
+
return n.set(so(e, r.x, i.x, a.x, o.x), so(e, r.y, i.y, a.y, o.y)), n;
|
|
4895
4923
|
}
|
|
4896
4924
|
copy(e) {
|
|
4897
4925
|
return super.copy(e), this.v0.copy(e.v0), this.v1.copy(e.v1), this.v2.copy(e.v2), this.v3.copy(e.v3), this;
|
|
@@ -4903,13 +4931,13 @@ var oo = class extends Va {
|
|
|
4903
4931
|
fromJSON(e) {
|
|
4904
4932
|
return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this.v3.fromArray(e.v3), this;
|
|
4905
4933
|
}
|
|
4906
|
-
},
|
|
4934
|
+
}, lo = class extends Ha {
|
|
4907
4935
|
constructor(e = new I(), t = new I(), n = new I(), r = new I()) {
|
|
4908
4936
|
super(), this.isCubicBezierCurve3 = !0, this.type = "CubicBezierCurve3", this.v0 = e, this.v1 = t, this.v2 = n, this.v3 = r;
|
|
4909
4937
|
}
|
|
4910
4938
|
getPoint(e, t = new I()) {
|
|
4911
4939
|
let n = t, r = this.v0, i = this.v1, a = this.v2, o = this.v3;
|
|
4912
|
-
return n.set(
|
|
4940
|
+
return n.set(so(e, r.x, i.x, a.x, o.x), so(e, r.y, i.y, a.y, o.y), so(e, r.z, i.z, a.z, o.z)), n;
|
|
4913
4941
|
}
|
|
4914
4942
|
copy(e) {
|
|
4915
4943
|
return super.copy(e), this.v0.copy(e.v0), this.v1.copy(e.v1), this.v2.copy(e.v2), this.v3.copy(e.v3), this;
|
|
@@ -4921,7 +4949,7 @@ var oo = class extends Va {
|
|
|
4921
4949
|
fromJSON(e) {
|
|
4922
4950
|
return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this.v3.fromArray(e.v3), this;
|
|
4923
4951
|
}
|
|
4924
|
-
},
|
|
4952
|
+
}, uo = class extends Ha {
|
|
4925
4953
|
constructor(e = new F(), t = new F()) {
|
|
4926
4954
|
super(), this.isLineCurve = !0, this.type = "LineCurve", this.v1 = e, this.v2 = t;
|
|
4927
4955
|
}
|
|
@@ -4948,7 +4976,7 @@ var oo = class extends Va {
|
|
|
4948
4976
|
fromJSON(e) {
|
|
4949
4977
|
return super.fromJSON(e), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
|
|
4950
4978
|
}
|
|
4951
|
-
},
|
|
4979
|
+
}, fo = class extends Ha {
|
|
4952
4980
|
constructor(e = new I(), t = new I()) {
|
|
4953
4981
|
super(), this.isLineCurve3 = !0, this.type = "LineCurve3", this.v1 = e, this.v2 = t;
|
|
4954
4982
|
}
|
|
@@ -4975,13 +5003,13 @@ var oo = class extends Va {
|
|
|
4975
5003
|
fromJSON(e) {
|
|
4976
5004
|
return super.fromJSON(e), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
|
|
4977
5005
|
}
|
|
4978
|
-
},
|
|
5006
|
+
}, po = class extends Ha {
|
|
4979
5007
|
constructor(e = new F(), t = new F(), n = new F()) {
|
|
4980
5008
|
super(), this.isQuadraticBezierCurve = !0, this.type = "QuadraticBezierCurve", this.v0 = e, this.v1 = t, this.v2 = n;
|
|
4981
5009
|
}
|
|
4982
5010
|
getPoint(e, t = new F()) {
|
|
4983
5011
|
let n = t, r = this.v0, i = this.v1, a = this.v2;
|
|
4984
|
-
return n.set(
|
|
5012
|
+
return n.set(no(e, r.x, i.x, a.x), no(e, r.y, i.y, a.y)), n;
|
|
4985
5013
|
}
|
|
4986
5014
|
copy(e) {
|
|
4987
5015
|
return super.copy(e), this.v0.copy(e.v0), this.v1.copy(e.v1), this.v2.copy(e.v2), this;
|
|
@@ -4993,13 +5021,13 @@ var oo = class extends Va {
|
|
|
4993
5021
|
fromJSON(e) {
|
|
4994
5022
|
return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
|
|
4995
5023
|
}
|
|
4996
|
-
},
|
|
5024
|
+
}, mo = class extends Ha {
|
|
4997
5025
|
constructor(e = new I(), t = new I(), n = new I()) {
|
|
4998
5026
|
super(), this.isQuadraticBezierCurve3 = !0, this.type = "QuadraticBezierCurve3", this.v0 = e, this.v1 = t, this.v2 = n;
|
|
4999
5027
|
}
|
|
5000
5028
|
getPoint(e, t = new I()) {
|
|
5001
5029
|
let n = t, r = this.v0, i = this.v1, a = this.v2;
|
|
5002
|
-
return n.set(
|
|
5030
|
+
return n.set(no(e, r.x, i.x, a.x), no(e, r.y, i.y, a.y), no(e, r.z, i.z, a.z)), n;
|
|
5003
5031
|
}
|
|
5004
5032
|
copy(e) {
|
|
5005
5033
|
return super.copy(e), this.v0.copy(e.v0), this.v1.copy(e.v1), this.v2.copy(e.v2), this;
|
|
@@ -5011,13 +5039,13 @@ var oo = class extends Va {
|
|
|
5011
5039
|
fromJSON(e) {
|
|
5012
5040
|
return super.fromJSON(e), this.v0.fromArray(e.v0), this.v1.fromArray(e.v1), this.v2.fromArray(e.v2), this;
|
|
5013
5041
|
}
|
|
5014
|
-
},
|
|
5042
|
+
}, ho = class extends Ha {
|
|
5015
5043
|
constructor(e = []) {
|
|
5016
5044
|
super(), this.isSplineCurve = !0, this.type = "SplineCurve", this.points = e;
|
|
5017
5045
|
}
|
|
5018
5046
|
getPoint(e, t = new F()) {
|
|
5019
5047
|
let n = t, r = this.points, i = (r.length - 1) * e, a = Math.floor(i), o = i - a, s = r[a === 0 ? a : a - 1], c = r[a], l = r[a > r.length - 2 ? r.length - 1 : a + 1], u = r[a > r.length - 3 ? r.length - 1 : a + 2];
|
|
5020
|
-
return n.set(
|
|
5048
|
+
return n.set(Qa(o, s.x, c.x, l.x, u.x), Qa(o, s.y, c.y, l.y, u.y)), n;
|
|
5021
5049
|
}
|
|
5022
5050
|
copy(e) {
|
|
5023
5051
|
super.copy(e), this.points = [];
|
|
@@ -5044,19 +5072,19 @@ var oo = class extends Va {
|
|
|
5044
5072
|
}
|
|
5045
5073
|
return this;
|
|
5046
5074
|
}
|
|
5047
|
-
},
|
|
5075
|
+
}, go = /* @__PURE__ */ Object.freeze({
|
|
5048
5076
|
__proto__: null,
|
|
5049
|
-
ArcCurve:
|
|
5050
|
-
CatmullRomCurve3:
|
|
5051
|
-
CubicBezierCurve:
|
|
5052
|
-
CubicBezierCurve3:
|
|
5053
|
-
EllipseCurve:
|
|
5054
|
-
LineCurve:
|
|
5055
|
-
LineCurve3:
|
|
5056
|
-
QuadraticBezierCurve:
|
|
5057
|
-
QuadraticBezierCurve3:
|
|
5058
|
-
SplineCurve:
|
|
5059
|
-
}),
|
|
5077
|
+
ArcCurve: Wa,
|
|
5078
|
+
CatmullRomCurve3: Za,
|
|
5079
|
+
CubicBezierCurve: co,
|
|
5080
|
+
CubicBezierCurve3: lo,
|
|
5081
|
+
EllipseCurve: Ua,
|
|
5082
|
+
LineCurve: uo,
|
|
5083
|
+
LineCurve3: fo,
|
|
5084
|
+
QuadraticBezierCurve: po,
|
|
5085
|
+
QuadraticBezierCurve3: mo,
|
|
5086
|
+
SplineCurve: ho
|
|
5087
|
+
}), _o = class extends Ha {
|
|
5060
5088
|
constructor() {
|
|
5061
5089
|
super(), this.type = "CurvePath", this.curves = [], this.autoClose = !1;
|
|
5062
5090
|
}
|
|
@@ -5067,7 +5095,7 @@ var oo = class extends Va {
|
|
|
5067
5095
|
let e = this.curves[0].getPoint(0), t = this.curves[this.curves.length - 1].getPoint(1);
|
|
5068
5096
|
if (!e.equals(t)) {
|
|
5069
5097
|
let n = e.isVector2 === !0 ? "LineCurve" : "LineCurve3";
|
|
5070
|
-
this.curves.push(new
|
|
5098
|
+
this.curves.push(new go[n](t, e));
|
|
5071
5099
|
}
|
|
5072
5100
|
return this;
|
|
5073
5101
|
}
|
|
@@ -5132,11 +5160,11 @@ var oo = class extends Va {
|
|
|
5132
5160
|
super.fromJSON(e), this.autoClose = e.autoClose, this.curves = [];
|
|
5133
5161
|
for (let t = 0, n = e.curves.length; t < n; t++) {
|
|
5134
5162
|
let n = e.curves[t];
|
|
5135
|
-
this.curves.push(new
|
|
5163
|
+
this.curves.push(new go[n.type]().fromJSON(n));
|
|
5136
5164
|
}
|
|
5137
5165
|
return this;
|
|
5138
5166
|
}
|
|
5139
|
-
},
|
|
5167
|
+
}, vo = class extends _o {
|
|
5140
5168
|
constructor(e) {
|
|
5141
5169
|
super(), this.type = "Path", this.currentPoint = new F(), e && this.setFromPoints(e);
|
|
5142
5170
|
}
|
|
@@ -5149,19 +5177,19 @@ var oo = class extends Va {
|
|
|
5149
5177
|
return this.currentPoint.set(e, t), this;
|
|
5150
5178
|
}
|
|
5151
5179
|
lineTo(e, t) {
|
|
5152
|
-
let n = new
|
|
5180
|
+
let n = new uo(this.currentPoint.clone(), new F(e, t));
|
|
5153
5181
|
return this.curves.push(n), this.currentPoint.set(e, t), this;
|
|
5154
5182
|
}
|
|
5155
5183
|
quadraticCurveTo(e, t, n, r) {
|
|
5156
|
-
let i = new
|
|
5184
|
+
let i = new po(this.currentPoint.clone(), new F(e, t), new F(n, r));
|
|
5157
5185
|
return this.curves.push(i), this.currentPoint.set(n, r), this;
|
|
5158
5186
|
}
|
|
5159
5187
|
bezierCurveTo(e, t, n, r, i, a) {
|
|
5160
|
-
let o = new
|
|
5188
|
+
let o = new co(this.currentPoint.clone(), new F(e, t), new F(n, r), new F(i, a));
|
|
5161
5189
|
return this.curves.push(o), this.currentPoint.set(i, a), this;
|
|
5162
5190
|
}
|
|
5163
5191
|
splineThru(e) {
|
|
5164
|
-
let t = new
|
|
5192
|
+
let t = new ho([this.currentPoint.clone()].concat(e));
|
|
5165
5193
|
return this.curves.push(t), this.currentPoint.copy(e[e.length - 1]), this;
|
|
5166
5194
|
}
|
|
5167
5195
|
arc(e, t, n, r, i, a) {
|
|
@@ -5176,7 +5204,7 @@ var oo = class extends Va {
|
|
|
5176
5204
|
return this.absellipse(e + c, t + l, n, r, i, a, o, s), this;
|
|
5177
5205
|
}
|
|
5178
5206
|
absellipse(e, t, n, r, i, a, o, s) {
|
|
5179
|
-
let c = new
|
|
5207
|
+
let c = new Ua(e, t, n, r, i, a, o, s);
|
|
5180
5208
|
if (this.curves.length > 0) {
|
|
5181
5209
|
let e = c.getPoint(0);
|
|
5182
5210
|
e.equals(this.currentPoint) || this.lineTo(e.x, e.y);
|
|
@@ -5195,9 +5223,9 @@ var oo = class extends Va {
|
|
|
5195
5223
|
fromJSON(e) {
|
|
5196
5224
|
return super.fromJSON(e), this.currentPoint.fromArray(e.currentPoint), this;
|
|
5197
5225
|
}
|
|
5198
|
-
},
|
|
5226
|
+
}, yo = class extends vo {
|
|
5199
5227
|
constructor(e) {
|
|
5200
|
-
super(e), this.uuid =
|
|
5228
|
+
super(e), this.uuid = Nt(), this.type = "Shape", this.holes = [];
|
|
5201
5229
|
}
|
|
5202
5230
|
getPointsHoles(e) {
|
|
5203
5231
|
let t = [];
|
|
@@ -5231,16 +5259,16 @@ var oo = class extends Va {
|
|
|
5231
5259
|
super.fromJSON(e), this.uuid = e.uuid, this.holes = [];
|
|
5232
5260
|
for (let t = 0, n = e.holes.length; t < n; t++) {
|
|
5233
5261
|
let n = e.holes[t];
|
|
5234
|
-
this.holes.push(new
|
|
5262
|
+
this.holes.push(new vo().fromJSON(n));
|
|
5235
5263
|
}
|
|
5236
5264
|
return this;
|
|
5237
5265
|
}
|
|
5238
5266
|
};
|
|
5239
|
-
function
|
|
5240
|
-
let r = t && t.length, i = r ? t[0] * n : e.length, a =
|
|
5267
|
+
function bo(e, t, n = 2) {
|
|
5268
|
+
let r = t && t.length, i = r ? t[0] * n : e.length, a = xo(e, 0, i, n, !0), o = [];
|
|
5241
5269
|
if (!a || a.next === a.prev) return o;
|
|
5242
5270
|
let s, c, l;
|
|
5243
|
-
if (r && (a =
|
|
5271
|
+
if (r && (a = Oo(e, t, a, n)), e.length > 80 * n) {
|
|
5244
5272
|
s = e[0], c = e[1];
|
|
5245
5273
|
let t = s, r = c;
|
|
5246
5274
|
for (let a = n; a < i; a += n) {
|
|
@@ -5249,86 +5277,86 @@ function vo(e, t, n = 2) {
|
|
|
5249
5277
|
}
|
|
5250
5278
|
l = Math.max(t - s, r - c), l = l === 0 ? 0 : 32767 / l;
|
|
5251
5279
|
}
|
|
5252
|
-
return
|
|
5280
|
+
return Co(a, o, n, s, c, l, 0), o;
|
|
5253
5281
|
}
|
|
5254
|
-
function
|
|
5282
|
+
function xo(e, t, n, r, i) {
|
|
5255
5283
|
let a;
|
|
5256
|
-
if (i ===
|
|
5257
|
-
else for (let i = n - r; i >= t; i -= r) a =
|
|
5258
|
-
return a &&
|
|
5284
|
+
if (i === Zo(e, t, n, r) > 0) for (let i = t; i < n; i += r) a = Jo(i / r | 0, e[i], e[i + 1], a);
|
|
5285
|
+
else for (let i = n - r; i >= t; i -= r) a = Jo(i / r | 0, e[i], e[i + 1], a);
|
|
5286
|
+
return a && Bo(a, a.next) && (Yo(a), a = a.next), a;
|
|
5259
5287
|
}
|
|
5260
|
-
function
|
|
5288
|
+
function So(e, t) {
|
|
5261
5289
|
if (!e) return e;
|
|
5262
5290
|
t ||= e;
|
|
5263
5291
|
let n = e, r;
|
|
5264
5292
|
do
|
|
5265
|
-
if (r = !1, !n.steiner && (
|
|
5266
|
-
if (
|
|
5293
|
+
if (r = !1, !n.steiner && (Bo(n, n.next) || X(n.prev, n, n.next) === 0)) {
|
|
5294
|
+
if (Yo(n), n = t = n.prev, n === n.next) break;
|
|
5267
5295
|
r = !0;
|
|
5268
5296
|
} else n = n.next;
|
|
5269
5297
|
while (r || n !== t);
|
|
5270
5298
|
return t;
|
|
5271
5299
|
}
|
|
5272
|
-
function
|
|
5300
|
+
function Co(e, t, n, r, i, a, o) {
|
|
5273
5301
|
if (!e) return;
|
|
5274
|
-
!o && a &&
|
|
5302
|
+
!o && a && No(e, r, i, a);
|
|
5275
5303
|
let s = e;
|
|
5276
5304
|
for (; e.prev !== e.next;) {
|
|
5277
5305
|
let c = e.prev, l = e.next;
|
|
5278
|
-
if (a ?
|
|
5279
|
-
t.push(c.i, e.i, l.i),
|
|
5306
|
+
if (a ? To(e, r, i, a) : wo(e)) {
|
|
5307
|
+
t.push(c.i, e.i, l.i), Yo(e), e = l.next, s = l.next;
|
|
5280
5308
|
continue;
|
|
5281
5309
|
}
|
|
5282
5310
|
if (e = l, e === s) {
|
|
5283
|
-
o ? o === 1 ? (e =
|
|
5311
|
+
o ? o === 1 ? (e = Eo(So(e), t), Co(e, t, n, r, i, a, 2)) : o === 2 && Do(e, t, n, r, i, a) : Co(So(e), t, n, r, i, a, 1);
|
|
5284
5312
|
break;
|
|
5285
5313
|
}
|
|
5286
5314
|
}
|
|
5287
5315
|
}
|
|
5288
|
-
function
|
|
5316
|
+
function wo(e) {
|
|
5289
5317
|
let t = e.prev, n = e, r = e.next;
|
|
5290
5318
|
if (X(t, n, r) >= 0) return !1;
|
|
5291
5319
|
let i = t.x, a = n.x, o = r.x, s = t.y, c = n.y, l = r.y, u = Math.min(i, a, o), d = Math.min(s, c, l), f = Math.max(i, a, o), p = Math.max(s, c, l), m = r.next;
|
|
5292
5320
|
for (; m !== t;) {
|
|
5293
|
-
if (m.x >= u && m.x <= f && m.y >= d && m.y <= p &&
|
|
5321
|
+
if (m.x >= u && m.x <= f && m.y >= d && m.y <= p && Ro(i, s, a, c, o, l, m.x, m.y) && X(m.prev, m, m.next) >= 0) return !1;
|
|
5294
5322
|
m = m.next;
|
|
5295
5323
|
}
|
|
5296
5324
|
return !0;
|
|
5297
5325
|
}
|
|
5298
|
-
function
|
|
5326
|
+
function To(e, t, n, r) {
|
|
5299
5327
|
let i = e.prev, a = e, o = e.next;
|
|
5300
5328
|
if (X(i, a, o) >= 0) return !1;
|
|
5301
|
-
let s = i.x, c = a.x, l = o.x, u = i.y, d = a.y, f = o.y, p = Math.min(s, c, l), m = Math.min(u, d, f), h = Math.max(s, c, l), g = Math.max(u, d, f), _ =
|
|
5329
|
+
let s = i.x, c = a.x, l = o.x, u = i.y, d = a.y, f = o.y, p = Math.min(s, c, l), m = Math.min(u, d, f), h = Math.max(s, c, l), g = Math.max(u, d, f), _ = Fo(p, m, t, n, r), v = Fo(h, g, t, n, r), y = e.prevZ, b = e.nextZ;
|
|
5302
5330
|
for (; y && y.z >= _ && b && b.z <= v;) {
|
|
5303
|
-
if (y.x >= p && y.x <= h && y.y >= m && y.y <= g && y !== i && y !== o &&
|
|
5331
|
+
if (y.x >= p && y.x <= h && y.y >= m && y.y <= g && y !== i && y !== o && Ro(s, u, c, d, l, f, y.x, y.y) && X(y.prev, y, y.next) >= 0 || (y = y.prevZ, b.x >= p && b.x <= h && b.y >= m && b.y <= g && b !== i && b !== o && Ro(s, u, c, d, l, f, b.x, b.y) && X(b.prev, b, b.next) >= 0)) return !1;
|
|
5304
5332
|
b = b.nextZ;
|
|
5305
5333
|
}
|
|
5306
5334
|
for (; y && y.z >= _;) {
|
|
5307
|
-
if (y.x >= p && y.x <= h && y.y >= m && y.y <= g && y !== i && y !== o &&
|
|
5335
|
+
if (y.x >= p && y.x <= h && y.y >= m && y.y <= g && y !== i && y !== o && Ro(s, u, c, d, l, f, y.x, y.y) && X(y.prev, y, y.next) >= 0) return !1;
|
|
5308
5336
|
y = y.prevZ;
|
|
5309
5337
|
}
|
|
5310
5338
|
for (; b && b.z <= v;) {
|
|
5311
|
-
if (b.x >= p && b.x <= h && b.y >= m && b.y <= g && b !== i && b !== o &&
|
|
5339
|
+
if (b.x >= p && b.x <= h && b.y >= m && b.y <= g && b !== i && b !== o && Ro(s, u, c, d, l, f, b.x, b.y) && X(b.prev, b, b.next) >= 0) return !1;
|
|
5312
5340
|
b = b.nextZ;
|
|
5313
5341
|
}
|
|
5314
5342
|
return !0;
|
|
5315
5343
|
}
|
|
5316
|
-
function
|
|
5344
|
+
function Eo(e, t) {
|
|
5317
5345
|
let n = e;
|
|
5318
5346
|
do {
|
|
5319
5347
|
let r = n.prev, i = n.next.next;
|
|
5320
|
-
!
|
|
5348
|
+
!Bo(r, i) && Vo(r, n, n.next, i) && Go(r, i) && Go(i, r) && (t.push(r.i, n.i, i.i), Yo(n), Yo(n.next), n = e = i), n = n.next;
|
|
5321
5349
|
} while (n !== e);
|
|
5322
|
-
return
|
|
5350
|
+
return So(n);
|
|
5323
5351
|
}
|
|
5324
|
-
function
|
|
5352
|
+
function Do(e, t, n, r, i, a) {
|
|
5325
5353
|
let o = e;
|
|
5326
5354
|
do {
|
|
5327
5355
|
let e = o.next.next;
|
|
5328
5356
|
for (; e !== o.prev;) {
|
|
5329
|
-
if (o.i !== e.i &&
|
|
5330
|
-
let s =
|
|
5331
|
-
o =
|
|
5357
|
+
if (o.i !== e.i && zo(o, e)) {
|
|
5358
|
+
let s = qo(o, e);
|
|
5359
|
+
o = So(o, o.next), s = So(s, s.next), Co(o, t, n, r, i, a, 0), Co(s, t, n, r, i, a, 0);
|
|
5332
5360
|
return;
|
|
5333
5361
|
}
|
|
5334
5362
|
e = e.next;
|
|
@@ -5336,31 +5364,31 @@ function To(e, t, n, r, i, a) {
|
|
|
5336
5364
|
o = o.next;
|
|
5337
5365
|
} while (o !== e);
|
|
5338
5366
|
}
|
|
5339
|
-
function
|
|
5367
|
+
function Oo(e, t, n, r) {
|
|
5340
5368
|
let i = [];
|
|
5341
5369
|
for (let n = 0, a = t.length; n < a; n++) {
|
|
5342
|
-
let o =
|
|
5343
|
-
o === o.next && (o.steiner = !0), i.push(
|
|
5370
|
+
let o = xo(e, t[n] * r, n < a - 1 ? t[n + 1] * r : e.length, r, !1);
|
|
5371
|
+
o === o.next && (o.steiner = !0), i.push(Io(o));
|
|
5344
5372
|
}
|
|
5345
|
-
i.sort(
|
|
5346
|
-
for (let e = 0; e < i.length; e++) n =
|
|
5373
|
+
i.sort(ko);
|
|
5374
|
+
for (let e = 0; e < i.length; e++) n = Ao(i[e], n);
|
|
5347
5375
|
return n;
|
|
5348
5376
|
}
|
|
5349
|
-
function
|
|
5377
|
+
function ko(e, t) {
|
|
5350
5378
|
let n = e.x - t.x;
|
|
5351
5379
|
return n === 0 && (n = e.y - t.y, n === 0 && (n = (e.next.y - e.y) / (e.next.x - e.x) - (t.next.y - t.y) / (t.next.x - t.x))), n;
|
|
5352
5380
|
}
|
|
5353
|
-
function
|
|
5354
|
-
let n =
|
|
5381
|
+
function Ao(e, t) {
|
|
5382
|
+
let n = jo(e, t);
|
|
5355
5383
|
if (!n) return t;
|
|
5356
|
-
let r =
|
|
5357
|
-
return
|
|
5384
|
+
let r = qo(n, e);
|
|
5385
|
+
return So(r, r.next), So(n, n.next);
|
|
5358
5386
|
}
|
|
5359
|
-
function
|
|
5387
|
+
function jo(e, t) {
|
|
5360
5388
|
let n = t, r = e.x, i = e.y, a = -Infinity, o;
|
|
5361
|
-
if (
|
|
5389
|
+
if (Bo(e, n)) return n;
|
|
5362
5390
|
do {
|
|
5363
|
-
if (
|
|
5391
|
+
if (Bo(e, n.next)) return n.next;
|
|
5364
5392
|
if (i <= n.y && i >= n.next.y && n.next.y !== n.y) {
|
|
5365
5393
|
let e = n.x + (i - n.y) * (n.next.x - n.x) / (n.next.y - n.y);
|
|
5366
5394
|
if (e <= r && e > a && (a = e, o = n.x < n.next.x ? n : n.next, e === r)) return o;
|
|
@@ -5371,25 +5399,25 @@ function ko(e, t) {
|
|
|
5371
5399
|
let s = o, c = o.x, l = o.y, u = Infinity;
|
|
5372
5400
|
n = o;
|
|
5373
5401
|
do {
|
|
5374
|
-
if (r >= n.x && n.x >= c && r !== n.x &&
|
|
5402
|
+
if (r >= n.x && n.x >= c && r !== n.x && Lo(i < l ? r : a, i, c, l, i < l ? a : r, i, n.x, n.y)) {
|
|
5375
5403
|
let t = Math.abs(i - n.y) / (r - n.x);
|
|
5376
|
-
|
|
5404
|
+
Go(n, e) && (t < u || t === u && (n.x > o.x || n.x === o.x && Mo(o, n))) && (o = n, u = t);
|
|
5377
5405
|
}
|
|
5378
5406
|
n = n.next;
|
|
5379
5407
|
} while (n !== s);
|
|
5380
5408
|
return o;
|
|
5381
5409
|
}
|
|
5382
|
-
function
|
|
5410
|
+
function Mo(e, t) {
|
|
5383
5411
|
return X(e.prev, e, t.prev) < 0 && X(t.next, e, e.next) < 0;
|
|
5384
5412
|
}
|
|
5385
|
-
function
|
|
5413
|
+
function No(e, t, n, r) {
|
|
5386
5414
|
let i = e;
|
|
5387
5415
|
do
|
|
5388
|
-
i.z === 0 && (i.z =
|
|
5416
|
+
i.z === 0 && (i.z = Fo(i.x, i.y, t, n, r)), i.prevZ = i.prev, i.nextZ = i.next, i = i.next;
|
|
5389
5417
|
while (i !== e);
|
|
5390
|
-
i.prevZ.nextZ = null, i.prevZ = null,
|
|
5418
|
+
i.prevZ.nextZ = null, i.prevZ = null, Po(i);
|
|
5391
5419
|
}
|
|
5392
|
-
function
|
|
5420
|
+
function Po(e) {
|
|
5393
5421
|
let t, n = 1;
|
|
5394
5422
|
do {
|
|
5395
5423
|
let r = e, i;
|
|
@@ -5407,71 +5435,71 @@ function Mo(e) {
|
|
|
5407
5435
|
} while (t > 1);
|
|
5408
5436
|
return e;
|
|
5409
5437
|
}
|
|
5410
|
-
function
|
|
5438
|
+
function Fo(e, t, n, r, i) {
|
|
5411
5439
|
return e = (e - n) * i | 0, t = (t - r) * i | 0, e = (e | e << 8) & 16711935, e = (e | e << 4) & 252645135, e = (e | e << 2) & 858993459, e = (e | e << 1) & 1431655765, t = (t | t << 8) & 16711935, t = (t | t << 4) & 252645135, t = (t | t << 2) & 858993459, t = (t | t << 1) & 1431655765, e | t << 1;
|
|
5412
5440
|
}
|
|
5413
|
-
function
|
|
5441
|
+
function Io(e) {
|
|
5414
5442
|
let t = e, n = e;
|
|
5415
5443
|
do
|
|
5416
5444
|
(t.x < n.x || t.x === n.x && t.y < n.y) && (n = t), t = t.next;
|
|
5417
5445
|
while (t !== e);
|
|
5418
5446
|
return n;
|
|
5419
5447
|
}
|
|
5420
|
-
function
|
|
5448
|
+
function Lo(e, t, n, r, i, a, o, s) {
|
|
5421
5449
|
return (i - o) * (t - s) >= (e - o) * (a - s) && (e - o) * (r - s) >= (n - o) * (t - s) && (n - o) * (a - s) >= (i - o) * (r - s);
|
|
5422
5450
|
}
|
|
5423
|
-
function
|
|
5424
|
-
return !(e === o && t === s) &&
|
|
5451
|
+
function Ro(e, t, n, r, i, a, o, s) {
|
|
5452
|
+
return !(e === o && t === s) && Lo(e, t, n, r, i, a, o, s);
|
|
5425
5453
|
}
|
|
5426
|
-
function
|
|
5427
|
-
return e.next.i !== t.i && e.prev.i !== t.i && !
|
|
5454
|
+
function zo(e, t) {
|
|
5455
|
+
return e.next.i !== t.i && e.prev.i !== t.i && !Wo(e, t) && (Go(e, t) && Go(t, e) && Ko(e, t) && (X(e.prev, e, t.prev) || X(e, t.prev, t)) || Bo(e, t) && X(e.prev, e, e.next) > 0 && X(t.prev, t, t.next) > 0);
|
|
5428
5456
|
}
|
|
5429
5457
|
function X(e, t, n) {
|
|
5430
5458
|
return (t.y - e.y) * (n.x - t.x) - (t.x - e.x) * (n.y - t.y);
|
|
5431
5459
|
}
|
|
5432
|
-
function
|
|
5460
|
+
function Bo(e, t) {
|
|
5433
5461
|
return e.x === t.x && e.y === t.y;
|
|
5434
5462
|
}
|
|
5435
|
-
function
|
|
5436
|
-
let i =
|
|
5437
|
-
return !!(i !== a && o !== s || i === 0 &&
|
|
5463
|
+
function Vo(e, t, n, r) {
|
|
5464
|
+
let i = Uo(X(e, t, n)), a = Uo(X(e, t, r)), o = Uo(X(n, r, e)), s = Uo(X(n, r, t));
|
|
5465
|
+
return !!(i !== a && o !== s || i === 0 && Ho(e, n, t) || a === 0 && Ho(e, r, t) || o === 0 && Ho(n, e, r) || s === 0 && Ho(n, t, r));
|
|
5438
5466
|
}
|
|
5439
|
-
function
|
|
5467
|
+
function Ho(e, t, n) {
|
|
5440
5468
|
return t.x <= Math.max(e.x, n.x) && t.x >= Math.min(e.x, n.x) && t.y <= Math.max(e.y, n.y) && t.y >= Math.min(e.y, n.y);
|
|
5441
5469
|
}
|
|
5442
|
-
function
|
|
5470
|
+
function Uo(e) {
|
|
5443
5471
|
return e > 0 ? 1 : e < 0 ? -1 : 0;
|
|
5444
5472
|
}
|
|
5445
|
-
function
|
|
5473
|
+
function Wo(e, t) {
|
|
5446
5474
|
let n = e;
|
|
5447
5475
|
do {
|
|
5448
|
-
if (n.i !== e.i && n.next.i !== e.i && n.i !== t.i && n.next.i !== t.i &&
|
|
5476
|
+
if (n.i !== e.i && n.next.i !== e.i && n.i !== t.i && n.next.i !== t.i && Vo(n, n.next, e, t)) return !0;
|
|
5449
5477
|
n = n.next;
|
|
5450
5478
|
} while (n !== e);
|
|
5451
5479
|
return !1;
|
|
5452
5480
|
}
|
|
5453
|
-
function
|
|
5481
|
+
function Go(e, t) {
|
|
5454
5482
|
return X(e.prev, e, e.next) < 0 ? X(e, t, e.next) >= 0 && X(e, e.prev, t) >= 0 : X(e, t, e.prev) < 0 || X(e, e.next, t) < 0;
|
|
5455
5483
|
}
|
|
5456
|
-
function
|
|
5484
|
+
function Ko(e, t) {
|
|
5457
5485
|
let n = e, r = !1, i = (e.x + t.x) / 2, a = (e.y + t.y) / 2;
|
|
5458
5486
|
do
|
|
5459
5487
|
n.y > a != n.next.y > a && n.next.y !== n.y && i < (n.next.x - n.x) * (a - n.y) / (n.next.y - n.y) + n.x && (r = !r), n = n.next;
|
|
5460
5488
|
while (n !== e);
|
|
5461
5489
|
return r;
|
|
5462
5490
|
}
|
|
5463
|
-
function
|
|
5464
|
-
let n =
|
|
5491
|
+
function qo(e, t) {
|
|
5492
|
+
let n = Xo(e.i, e.x, e.y), r = Xo(t.i, t.x, t.y), i = e.next, a = t.prev;
|
|
5465
5493
|
return e.next = t, t.prev = e, n.next = i, i.prev = n, r.next = n, n.prev = r, a.next = r, r.prev = a, r;
|
|
5466
5494
|
}
|
|
5467
|
-
function
|
|
5468
|
-
let i =
|
|
5495
|
+
function Jo(e, t, n, r) {
|
|
5496
|
+
let i = Xo(e, t, n);
|
|
5469
5497
|
return r ? (i.next = r.next, i.prev = r, r.next.prev = i, r.next = i) : (i.prev = i, i.next = i), i;
|
|
5470
5498
|
}
|
|
5471
|
-
function
|
|
5499
|
+
function Yo(e) {
|
|
5472
5500
|
e.next.prev = e.prev, e.prev.next = e.next, e.prevZ && (e.prevZ.nextZ = e.nextZ), e.nextZ && (e.nextZ.prevZ = e.prevZ);
|
|
5473
5501
|
}
|
|
5474
|
-
function
|
|
5502
|
+
function Xo(e, t, n) {
|
|
5475
5503
|
return {
|
|
5476
5504
|
i: e,
|
|
5477
5505
|
x: t,
|
|
@@ -5484,16 +5512,16 @@ function Jo(e, t, n) {
|
|
|
5484
5512
|
steiner: !1
|
|
5485
5513
|
};
|
|
5486
5514
|
}
|
|
5487
|
-
function
|
|
5515
|
+
function Zo(e, t, n, r) {
|
|
5488
5516
|
let i = 0;
|
|
5489
5517
|
for (let a = t, o = n - r; a < n; a += r) i += (e[o] - e[a]) * (e[a + 1] + e[o + 1]), o = a;
|
|
5490
5518
|
return i;
|
|
5491
5519
|
}
|
|
5492
|
-
var
|
|
5520
|
+
var Qo = class {
|
|
5493
5521
|
static triangulate(e, t, n = 2) {
|
|
5494
|
-
return
|
|
5522
|
+
return bo(e, t, n);
|
|
5495
5523
|
}
|
|
5496
|
-
},
|
|
5524
|
+
}, $o = class e {
|
|
5497
5525
|
static area(e) {
|
|
5498
5526
|
let t = e.length, n = 0;
|
|
5499
5527
|
for (let r = t - 1, i = 0; i < t; r = i++) n += e[r].x * e[i].y - e[i].x * e[r].y;
|
|
@@ -5504,23 +5532,23 @@ var Xo = class {
|
|
|
5504
5532
|
}
|
|
5505
5533
|
static triangulateShape(e, t) {
|
|
5506
5534
|
let n = [], r = [], i = [];
|
|
5507
|
-
|
|
5535
|
+
es(e), ts(n, e);
|
|
5508
5536
|
let a = e.length;
|
|
5509
|
-
t.forEach(
|
|
5510
|
-
for (let e = 0; e < t.length; e++) r.push(a), a += t[e].length,
|
|
5511
|
-
let o =
|
|
5537
|
+
t.forEach(es);
|
|
5538
|
+
for (let e = 0; e < t.length; e++) r.push(a), a += t[e].length, ts(n, t[e]);
|
|
5539
|
+
let o = Qo.triangulate(n, r);
|
|
5512
5540
|
for (let e = 0; e < o.length; e += 3) i.push(o.slice(e, e + 3));
|
|
5513
5541
|
return i;
|
|
5514
5542
|
}
|
|
5515
5543
|
};
|
|
5516
|
-
function
|
|
5544
|
+
function es(e) {
|
|
5517
5545
|
let t = e.length;
|
|
5518
5546
|
t > 2 && e[t - 1].equals(e[0]) && e.pop();
|
|
5519
5547
|
}
|
|
5520
|
-
function
|
|
5548
|
+
function ts(e, t) {
|
|
5521
5549
|
for (let n = 0; n < t.length; n++) e.push(t[n].x), e.push(t[n].y);
|
|
5522
5550
|
}
|
|
5523
|
-
var
|
|
5551
|
+
var ns = class e extends Zr {
|
|
5524
5552
|
constructor(e = 1, t = 1, n = 1, r = 1) {
|
|
5525
5553
|
super(), this.type = "PlaneGeometry", this.parameters = {
|
|
5526
5554
|
width: e,
|
|
@@ -5540,7 +5568,7 @@ var es = class e extends Xr {
|
|
|
5540
5568
|
let n = t + c * e, r = t + c * (e + 1), i = t + 1 + c * (e + 1), a = t + 1 + c * e;
|
|
5541
5569
|
f.push(n, r, a), f.push(r, i, a);
|
|
5542
5570
|
}
|
|
5543
|
-
this.setIndex(f), this.setAttribute("position", new
|
|
5571
|
+
this.setIndex(f), this.setAttribute("position", new K(p, 3)), this.setAttribute("normal", new K(m, 3)), this.setAttribute("uv", new K(h, 2));
|
|
5544
5572
|
}
|
|
5545
5573
|
copy(e) {
|
|
5546
5574
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
@@ -5548,7 +5576,7 @@ var es = class e extends Xr {
|
|
|
5548
5576
|
static fromJSON(t) {
|
|
5549
5577
|
return new e(t.width, t.height, t.widthSegments, t.heightSegments);
|
|
5550
5578
|
}
|
|
5551
|
-
},
|
|
5579
|
+
}, rs = class e extends Zr {
|
|
5552
5580
|
constructor(e = .5, t = 1, n = 32, r = 1, i = 0, a = Math.PI * 2) {
|
|
5553
5581
|
super(), this.type = "RingGeometry", this.parameters = {
|
|
5554
5582
|
innerRadius: e,
|
|
@@ -5573,7 +5601,7 @@ var es = class e extends Xr {
|
|
|
5573
5601
|
o.push(i, a, c), o.push(a, s, c);
|
|
5574
5602
|
}
|
|
5575
5603
|
}
|
|
5576
|
-
this.setIndex(o), this.setAttribute("position", new
|
|
5604
|
+
this.setIndex(o), this.setAttribute("position", new K(s, 3)), this.setAttribute("normal", new K(c, 3)), this.setAttribute("uv", new K(l, 2));
|
|
5577
5605
|
}
|
|
5578
5606
|
copy(e) {
|
|
5579
5607
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
@@ -5581,8 +5609,8 @@ var es = class e extends Xr {
|
|
|
5581
5609
|
static fromJSON(t) {
|
|
5582
5610
|
return new e(t.innerRadius, t.outerRadius, t.thetaSegments, t.phiSegments, t.thetaStart, t.thetaLength);
|
|
5583
5611
|
}
|
|
5584
|
-
},
|
|
5585
|
-
constructor(e = new
|
|
5612
|
+
}, is = class e extends Zr {
|
|
5613
|
+
constructor(e = new yo([
|
|
5586
5614
|
new F(0, .5),
|
|
5587
5615
|
new F(-.5, -.5),
|
|
5588
5616
|
new F(.5, -.5)
|
|
@@ -5594,15 +5622,15 @@ var es = class e extends Xr {
|
|
|
5594
5622
|
let n = [], r = [], i = [], a = [], o = 0, s = 0;
|
|
5595
5623
|
if (Array.isArray(e) === !1) c(e);
|
|
5596
5624
|
else for (let t = 0; t < e.length; t++) c(e[t]), this.addGroup(o, s, t), o += s, s = 0;
|
|
5597
|
-
this.setIndex(n), this.setAttribute("position", new
|
|
5625
|
+
this.setIndex(n), this.setAttribute("position", new K(r, 3)), this.setAttribute("normal", new K(i, 3)), this.setAttribute("uv", new K(a, 2));
|
|
5598
5626
|
function c(e) {
|
|
5599
5627
|
let o = r.length / 3, c = e.extractPoints(t), l = c.shape, u = c.holes;
|
|
5600
|
-
|
|
5628
|
+
$o.isClockWise(l) === !1 && (l = l.reverse());
|
|
5601
5629
|
for (let e = 0, t = u.length; e < t; e++) {
|
|
5602
5630
|
let t = u[e];
|
|
5603
|
-
|
|
5631
|
+
$o.isClockWise(t) === !0 && (u[e] = t.reverse());
|
|
5604
5632
|
}
|
|
5605
|
-
let d =
|
|
5633
|
+
let d = $o.triangulateShape(l, u);
|
|
5606
5634
|
for (let e = 0, t = u.length; e < t; e++) {
|
|
5607
5635
|
let t = u[e];
|
|
5608
5636
|
l = l.concat(t);
|
|
@@ -5622,7 +5650,7 @@ var es = class e extends Xr {
|
|
|
5622
5650
|
}
|
|
5623
5651
|
toJSON() {
|
|
5624
5652
|
let e = super.toJSON(), t = this.parameters.shapes;
|
|
5625
|
-
return
|
|
5653
|
+
return as(t, e);
|
|
5626
5654
|
}
|
|
5627
5655
|
static fromJSON(t, n) {
|
|
5628
5656
|
let r = [];
|
|
@@ -5633,7 +5661,7 @@ var es = class e extends Xr {
|
|
|
5633
5661
|
return new e(r, t.curveSegments);
|
|
5634
5662
|
}
|
|
5635
5663
|
};
|
|
5636
|
-
function
|
|
5664
|
+
function as(e, t) {
|
|
5637
5665
|
if (t.shapes = [], Array.isArray(e)) for (let n = 0, r = e.length; n < r; n++) {
|
|
5638
5666
|
let r = e[n];
|
|
5639
5667
|
t.shapes.push(r.uuid);
|
|
@@ -5641,7 +5669,7 @@ function rs(e, t) {
|
|
|
5641
5669
|
else t.shapes.push(e.uuid);
|
|
5642
5670
|
return t;
|
|
5643
5671
|
}
|
|
5644
|
-
var
|
|
5672
|
+
var os = class e extends Zr {
|
|
5645
5673
|
constructor(e = 1, t = 32, n = 16, r = 0, i = Math.PI * 2, a = 0, o = Math.PI) {
|
|
5646
5674
|
super(), this.type = "SphereGeometry", this.parameters = {
|
|
5647
5675
|
radius: e,
|
|
@@ -5666,7 +5694,7 @@ var is = class e extends Xr {
|
|
|
5666
5694
|
let t = l[e][r + 1], i = l[e][r], o = l[e + 1][r], c = l[e + 1][r + 1];
|
|
5667
5695
|
(e !== 0 || a > 0) && f.push(t, i, c), (e !== n - 1 || s < Math.PI) && f.push(i, o, c);
|
|
5668
5696
|
}
|
|
5669
|
-
this.setIndex(f), this.setAttribute("position", new
|
|
5697
|
+
this.setIndex(f), this.setAttribute("position", new K(p, 3)), this.setAttribute("normal", new K(m, 3)), this.setAttribute("uv", new K(h, 2));
|
|
5670
5698
|
}
|
|
5671
5699
|
copy(e) {
|
|
5672
5700
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
@@ -5674,48 +5702,57 @@ var is = class e extends Xr {
|
|
|
5674
5702
|
static fromJSON(t) {
|
|
5675
5703
|
return new e(t.radius, t.widthSegments, t.heightSegments, t.phiStart, t.phiLength, t.thetaStart, t.thetaLength);
|
|
5676
5704
|
}
|
|
5677
|
-
},
|
|
5705
|
+
}, ss = class extends Y {
|
|
5678
5706
|
constructor(e) {
|
|
5679
|
-
super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new
|
|
5707
|
+
super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new H(0), this.transparent = !0, this.fog = !0, this.setValues(e);
|
|
5680
5708
|
}
|
|
5681
5709
|
copy(e) {
|
|
5682
5710
|
return super.copy(e), this.color.copy(e.color), this.fog = e.fog, this;
|
|
5683
5711
|
}
|
|
5684
5712
|
};
|
|
5685
|
-
function
|
|
5713
|
+
function cs(e) {
|
|
5686
5714
|
let t = {};
|
|
5687
5715
|
for (let n in e) {
|
|
5688
5716
|
t[n] = {};
|
|
5689
5717
|
for (let r in e[n]) {
|
|
5690
5718
|
let i = e[n][r];
|
|
5691
|
-
|
|
5719
|
+
if (us(i)) i.isRenderTargetTexture ? (k("UniformsUtils: Textures of render targets cannot be cloned via cloneUniforms() or mergeUniforms()."), t[n][r] = null) : t[n][r] = i.clone();
|
|
5720
|
+
else if (Array.isArray(i)) if (us(i[0])) {
|
|
5721
|
+
let e = [];
|
|
5722
|
+
for (let t = 0, n = i.length; t < n; t++) e[t] = i[t].clone();
|
|
5723
|
+
t[n][r] = e;
|
|
5724
|
+
} else t[n][r] = i.slice();
|
|
5725
|
+
else t[n][r] = i;
|
|
5692
5726
|
}
|
|
5693
5727
|
}
|
|
5694
5728
|
return t;
|
|
5695
5729
|
}
|
|
5696
|
-
function
|
|
5730
|
+
function ls(e) {
|
|
5697
5731
|
let t = {};
|
|
5698
5732
|
for (let n = 0; n < e.length; n++) {
|
|
5699
|
-
let r =
|
|
5733
|
+
let r = cs(e[n]);
|
|
5700
5734
|
for (let e in r) t[e] = r[e];
|
|
5701
5735
|
}
|
|
5702
5736
|
return t;
|
|
5703
5737
|
}
|
|
5704
|
-
function
|
|
5738
|
+
function us(e) {
|
|
5739
|
+
return e && (e.isColor || e.isMatrix3 || e.isMatrix4 || e.isVector2 || e.isVector3 || e.isVector4 || e.isTexture || e.isQuaternion);
|
|
5740
|
+
}
|
|
5741
|
+
function ds(e) {
|
|
5705
5742
|
let t = [];
|
|
5706
5743
|
for (let n = 0; n < e.length; n++) t.push(e[n].clone());
|
|
5707
5744
|
return t;
|
|
5708
5745
|
}
|
|
5709
|
-
function
|
|
5746
|
+
function fs(e) {
|
|
5710
5747
|
let t = e.getRenderTarget();
|
|
5711
|
-
return t === null ? e.outputColorSpace : t.isXRRenderTarget === !0 ? t.texture.colorSpace :
|
|
5748
|
+
return t === null ? e.outputColorSpace : t.isXRRenderTarget === !0 ? t.texture.colorSpace : L.workingColorSpace;
|
|
5712
5749
|
}
|
|
5713
|
-
var
|
|
5714
|
-
clone:
|
|
5715
|
-
merge:
|
|
5716
|
-
},
|
|
5750
|
+
var ps = {
|
|
5751
|
+
clone: cs,
|
|
5752
|
+
merge: ls
|
|
5753
|
+
}, ms = "void main() {\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}", hs = "void main() {\n gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}", gs = class extends Y {
|
|
5717
5754
|
constructor(e) {
|
|
5718
|
-
super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader =
|
|
5755
|
+
super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = ms, this.fragmentShader = hs, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
|
|
5719
5756
|
clipCullDistance: !1,
|
|
5720
5757
|
multiDraw: !1
|
|
5721
5758
|
}, this.defaultAttributeValues = {
|
|
@@ -5729,7 +5766,7 @@ var us = {
|
|
|
5729
5766
|
}, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, e !== void 0 && this.setValues(e);
|
|
5730
5767
|
}
|
|
5731
5768
|
copy(e) {
|
|
5732
|
-
return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms =
|
|
5769
|
+
return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = cs(e.uniforms), this.uniformsGroups = ds(e.uniformsGroups), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.fog = e.fog, this.lights = e.lights, this.clipping = e.clipping, this.extensions = Object.assign({}, e.extensions), this.glslVersion = e.glslVersion, this.defaultAttributeValues = Object.assign({}, e.defaultAttributeValues), this.index0AttributeName = e.index0AttributeName, this.uniformsNeedUpdate = e.uniformsNeedUpdate, this;
|
|
5733
5770
|
}
|
|
5734
5771
|
toJSON(e) {
|
|
5735
5772
|
let t = super.toJSON(e);
|
|
@@ -5764,18 +5801,18 @@ var us = {
|
|
|
5764
5801
|
for (let e in this.extensions) this.extensions[e] === !0 && (n[e] = !0);
|
|
5765
5802
|
return Object.keys(n).length > 0 && (t.extensions = n), t;
|
|
5766
5803
|
}
|
|
5767
|
-
},
|
|
5804
|
+
}, _s = class extends gs {
|
|
5768
5805
|
constructor(e) {
|
|
5769
5806
|
super(e), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial";
|
|
5770
5807
|
}
|
|
5771
|
-
},
|
|
5808
|
+
}, vs = class extends Y {
|
|
5772
5809
|
constructor(e) {
|
|
5773
|
-
super(), this.isMeshStandardMaterial = !0, this.type = "MeshStandardMaterial", this.defines = { STANDARD: "" }, this.color = new
|
|
5810
|
+
super(), this.isMeshStandardMaterial = !0, this.type = "MeshStandardMaterial", this.defines = { STANDARD: "" }, this.color = new H(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
5774
5811
|
}
|
|
5775
5812
|
copy(e) {
|
|
5776
5813
|
return super.copy(e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.envMapIntensity = e.envMapIntensity, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
5777
5814
|
}
|
|
5778
|
-
},
|
|
5815
|
+
}, ys = class extends vs {
|
|
5779
5816
|
constructor(e) {
|
|
5780
5817
|
super(), this.isMeshPhysicalMaterial = !0, this.defines = {
|
|
5781
5818
|
STANDARD: "",
|
|
@@ -5787,7 +5824,7 @@ var us = {
|
|
|
5787
5824
|
set: function(e) {
|
|
5788
5825
|
this.ior = (1 + .4 * e) / (1 - .4 * e);
|
|
5789
5826
|
}
|
|
5790
|
-
}), this.iridescenceMap = null, this.iridescenceIOR = 1.3, this.iridescenceThicknessRange = [100, 400], this.iridescenceThicknessMap = null, this.sheenColor = new
|
|
5827
|
+
}), this.iridescenceMap = null, this.iridescenceIOR = 1.3, this.iridescenceThicknessRange = [100, 400], this.iridescenceThicknessMap = null, this.sheenColor = new H(0), this.sheenColorMap = null, this.sheenRoughness = 1, this.sheenRoughnessMap = null, this.transmissionMap = null, this.thickness = 0, this.thicknessMap = null, this.attenuationDistance = Infinity, this.attenuationColor = new H(1, 1, 1), this.specularIntensity = 1, this.specularIntensityMap = null, this.specularColor = new H(1, 1, 1), this.specularColorMap = null, this._anisotropy = 0, this._clearcoat = 0, this._dispersion = 0, this._iridescence = 0, this._sheen = 0, this._transmission = 0, this.setValues(e);
|
|
5791
5828
|
}
|
|
5792
5829
|
get anisotropy() {
|
|
5793
5830
|
return this._anisotropy;
|
|
@@ -5831,56 +5868,56 @@ var us = {
|
|
|
5831
5868
|
PHYSICAL: ""
|
|
5832
5869
|
}, this.anisotropy = e.anisotropy, this.anisotropyRotation = e.anisotropyRotation, this.anisotropyMap = e.anisotropyMap, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.dispersion = e.dispersion, this.ior = e.ior, this.iridescence = e.iridescence, this.iridescenceMap = e.iridescenceMap, this.iridescenceIOR = e.iridescenceIOR, this.iridescenceThicknessRange = [...e.iridescenceThicknessRange], this.iridescenceThicknessMap = e.iridescenceThicknessMap, this.sheen = e.sheen, this.sheenColor.copy(e.sheenColor), this.sheenColorMap = e.sheenColorMap, this.sheenRoughness = e.sheenRoughness, this.sheenRoughnessMap = e.sheenRoughnessMap, this.transmission = e.transmission, this.transmissionMap = e.transmissionMap, this.thickness = e.thickness, this.thicknessMap = e.thicknessMap, this.attenuationDistance = e.attenuationDistance, this.attenuationColor.copy(e.attenuationColor), this.specularIntensity = e.specularIntensity, this.specularIntensityMap = e.specularIntensityMap, this.specularColor.copy(e.specularColor), this.specularColorMap = e.specularColorMap, this;
|
|
5833
5870
|
}
|
|
5834
|
-
},
|
|
5871
|
+
}, bs = class extends Y {
|
|
5835
5872
|
constructor(e) {
|
|
5836
|
-
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new
|
|
5873
|
+
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new H(16777215), this.specular = new H(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), this.combine = 0, this.reflectivity = 1, this.envMapIntensity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
5837
5874
|
}
|
|
5838
5875
|
copy(e) {
|
|
5839
5876
|
return super.copy(e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.envMapIntensity = e.envMapIntensity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
5840
5877
|
}
|
|
5841
|
-
},
|
|
5878
|
+
}, xs = class extends Y {
|
|
5842
5879
|
constructor(e) {
|
|
5843
|
-
super(), this.isMeshToonMaterial = !0, this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new
|
|
5880
|
+
super(), this.isMeshToonMaterial = !0, this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new H(16777215), this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
|
|
5844
5881
|
}
|
|
5845
5882
|
copy(e) {
|
|
5846
5883
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.gradientMap = e.gradientMap, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
|
|
5847
5884
|
}
|
|
5848
|
-
},
|
|
5885
|
+
}, Ss = class extends Y {
|
|
5849
5886
|
constructor(e) {
|
|
5850
5887
|
super(), this.isMeshNormalMaterial = !0, this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.flatShading = !1, this.setValues(e);
|
|
5851
5888
|
}
|
|
5852
5889
|
copy(e) {
|
|
5853
5890
|
return super.copy(e), this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.flatShading = e.flatShading, this;
|
|
5854
5891
|
}
|
|
5855
|
-
},
|
|
5892
|
+
}, Cs = class extends Y {
|
|
5856
5893
|
constructor(e) {
|
|
5857
|
-
super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new
|
|
5894
|
+
super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new H(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new H(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new An(), this.combine = 0, this.reflectivity = 1, this.envMapIntensity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
5858
5895
|
}
|
|
5859
5896
|
copy(e) {
|
|
5860
5897
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.envMapIntensity = e.envMapIntensity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
5861
5898
|
}
|
|
5862
|
-
},
|
|
5899
|
+
}, ws = class extends Y {
|
|
5863
5900
|
constructor(e) {
|
|
5864
5901
|
super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = Ze, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(e);
|
|
5865
5902
|
}
|
|
5866
5903
|
copy(e) {
|
|
5867
5904
|
return super.copy(e), this.depthPacking = e.depthPacking, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this;
|
|
5868
5905
|
}
|
|
5869
|
-
},
|
|
5906
|
+
}, Ts = class extends Y {
|
|
5870
5907
|
constructor(e) {
|
|
5871
5908
|
super(), this.isMeshDistanceMaterial = !0, this.type = "MeshDistanceMaterial", this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.setValues(e);
|
|
5872
5909
|
}
|
|
5873
5910
|
copy(e) {
|
|
5874
5911
|
return super.copy(e), this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this;
|
|
5875
5912
|
}
|
|
5876
|
-
},
|
|
5913
|
+
}, Es = class extends Y {
|
|
5877
5914
|
constructor(e) {
|
|
5878
|
-
super(), this.isMeshMatcapMaterial = !0, this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new
|
|
5915
|
+
super(), this.isMeshMatcapMaterial = !0, this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new H(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = 0, this.normalScale = new F(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
5879
5916
|
}
|
|
5880
5917
|
copy(e) {
|
|
5881
5918
|
return super.copy(e), this.defines = { MATCAP: "" }, this.color.copy(e.color), this.matcap = e.matcap, this.map = e.map, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.alphaMap = e.alphaMap, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
5882
5919
|
}
|
|
5883
|
-
},
|
|
5920
|
+
}, Ds = class extends oa {
|
|
5884
5921
|
constructor(e) {
|
|
5885
5922
|
super(), this.isLineDashedMaterial = !0, this.type = "LineDashedMaterial", this.scale = 1, this.dashSize = 3, this.gapSize = 1, this.setValues(e);
|
|
5886
5923
|
}
|
|
@@ -5888,10 +5925,10 @@ var us = {
|
|
|
5888
5925
|
return super.copy(e), this.scale = e.scale, this.dashSize = e.dashSize, this.gapSize = e.gapSize, this;
|
|
5889
5926
|
}
|
|
5890
5927
|
};
|
|
5891
|
-
function
|
|
5928
|
+
function Os(e, t) {
|
|
5892
5929
|
return !e || e.constructor === t ? e : typeof t.BYTES_PER_ELEMENT == "number" ? new t(e) : Array.prototype.slice.call(e);
|
|
5893
5930
|
}
|
|
5894
|
-
function
|
|
5931
|
+
function ks(e) {
|
|
5895
5932
|
function t(t, n) {
|
|
5896
5933
|
return e[t] - e[n];
|
|
5897
5934
|
}
|
|
@@ -5899,7 +5936,7 @@ function Es(e) {
|
|
|
5899
5936
|
for (let e = 0; e !== n; ++e) r[e] = e;
|
|
5900
5937
|
return r.sort(t), r;
|
|
5901
5938
|
}
|
|
5902
|
-
function
|
|
5939
|
+
function As(e, t, n) {
|
|
5903
5940
|
let r = e.length, i = new e.constructor(r);
|
|
5904
5941
|
for (let a = 0, o = 0; o !== r; ++a) {
|
|
5905
5942
|
let r = n[a] * t;
|
|
@@ -5907,7 +5944,7 @@ function Ds(e, t, n) {
|
|
|
5907
5944
|
}
|
|
5908
5945
|
return i;
|
|
5909
5946
|
}
|
|
5910
|
-
function
|
|
5947
|
+
function js(e, t, n, r) {
|
|
5911
5948
|
let i = 1, a = e[0];
|
|
5912
5949
|
for (; a !== void 0 && a[r] === void 0;) a = e[i++];
|
|
5913
5950
|
if (a === void 0) return;
|
|
@@ -5922,7 +5959,7 @@ function Os(e, t, n, r) {
|
|
|
5922
5959
|
o = a[r], o !== void 0 && (t.push(a.time), n.push(o)), a = e[i++];
|
|
5923
5960
|
while (a !== void 0);
|
|
5924
5961
|
}
|
|
5925
|
-
var
|
|
5962
|
+
var Ms = class {
|
|
5926
5963
|
constructor(e, t, n, r) {
|
|
5927
5964
|
this.parameterPositions = e, this._cachedIndex = 0, this.resultBuffer = r === void 0 ? new t.constructor(n) : r, this.sampleValues = t, this.valueSize = n, this.settings = null, this.DefaultSettings_ = {};
|
|
5928
5965
|
}
|
|
@@ -5980,7 +6017,7 @@ var ks = class {
|
|
|
5980
6017
|
throw Error("call to abstract method");
|
|
5981
6018
|
}
|
|
5982
6019
|
intervalChanged_() {}
|
|
5983
|
-
},
|
|
6020
|
+
}, Ns = class extends Ms {
|
|
5984
6021
|
constructor(e, t, n, r) {
|
|
5985
6022
|
super(e, t, n, r), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = {
|
|
5986
6023
|
endingStart: qe,
|
|
@@ -6015,7 +6052,7 @@ var ks = class {
|
|
|
6015
6052
|
for (let e = 0; e !== o; ++e) i[e] = g * a[l + e] + _ * a[c + e] + v * a[s + e] + y * a[u + e];
|
|
6016
6053
|
return i;
|
|
6017
6054
|
}
|
|
6018
|
-
},
|
|
6055
|
+
}, Ps = class extends Ms {
|
|
6019
6056
|
constructor(e, t, n, r) {
|
|
6020
6057
|
super(e, t, n, r);
|
|
6021
6058
|
}
|
|
@@ -6024,14 +6061,14 @@ var ks = class {
|
|
|
6024
6061
|
for (let e = 0; e !== o; ++e) i[e] = a[c + e] * u + a[s + e] * l;
|
|
6025
6062
|
return i;
|
|
6026
6063
|
}
|
|
6027
|
-
},
|
|
6064
|
+
}, Fs = class extends Ms {
|
|
6028
6065
|
constructor(e, t, n, r) {
|
|
6029
6066
|
super(e, t, n, r);
|
|
6030
6067
|
}
|
|
6031
6068
|
interpolate_(e) {
|
|
6032
6069
|
return this.copySampleValue_(e - 1);
|
|
6033
6070
|
}
|
|
6034
|
-
},
|
|
6071
|
+
}, Is = class extends Ms {
|
|
6035
6072
|
interpolate_(e, t, n, r) {
|
|
6036
6073
|
let i = this.resultBuffer, a = this.sampleValues, o = this.valueSize, s = e * o, c = s - o, l = this.settings || this.DefaultSettings_, u = l.inTangents, d = l.outTangents;
|
|
6037
6074
|
if (!u || !d) {
|
|
@@ -6054,11 +6091,11 @@ var ks = class {
|
|
|
6054
6091
|
}
|
|
6055
6092
|
return i;
|
|
6056
6093
|
}
|
|
6057
|
-
},
|
|
6094
|
+
}, Ls = class {
|
|
6058
6095
|
constructor(e, t, n, r) {
|
|
6059
6096
|
if (e === void 0) throw Error("THREE.KeyframeTrack: track name is undefined");
|
|
6060
6097
|
if (t === void 0 || t.length === 0) throw Error("THREE.KeyframeTrack: no keyframes in track named " + e);
|
|
6061
|
-
this.name = e, this.times =
|
|
6098
|
+
this.name = e, this.times = Os(t, this.TimeBufferType), this.values = Os(n, this.ValueBufferType), this.setInterpolation(r || this.DefaultInterpolation);
|
|
6062
6099
|
}
|
|
6063
6100
|
static toJSON(e) {
|
|
6064
6101
|
let t = e.constructor, n;
|
|
@@ -6066,8 +6103,8 @@ var ks = class {
|
|
|
6066
6103
|
else {
|
|
6067
6104
|
n = {
|
|
6068
6105
|
name: e.name,
|
|
6069
|
-
times:
|
|
6070
|
-
values:
|
|
6106
|
+
times: Os(e.times, Array),
|
|
6107
|
+
values: Os(e.values, Array)
|
|
6071
6108
|
};
|
|
6072
6109
|
let t = e.getInterpolation();
|
|
6073
6110
|
t !== e.DefaultInterpolation && (n.interpolation = t);
|
|
@@ -6075,16 +6112,16 @@ var ks = class {
|
|
|
6075
6112
|
return n.type = e.ValueTypeName, n;
|
|
6076
6113
|
}
|
|
6077
6114
|
InterpolantFactoryMethodDiscrete(e) {
|
|
6078
|
-
return new
|
|
6115
|
+
return new Fs(this.times, this.values, this.getValueSize(), e);
|
|
6079
6116
|
}
|
|
6080
6117
|
InterpolantFactoryMethodLinear(e) {
|
|
6081
|
-
return new
|
|
6118
|
+
return new Ps(this.times, this.values, this.getValueSize(), e);
|
|
6082
6119
|
}
|
|
6083
6120
|
InterpolantFactoryMethodSmooth(e) {
|
|
6084
|
-
return new
|
|
6121
|
+
return new Ns(this.times, this.values, this.getValueSize(), e);
|
|
6085
6122
|
}
|
|
6086
6123
|
InterpolantFactoryMethodBezier(e) {
|
|
6087
|
-
let t = new
|
|
6124
|
+
let t = new Is(this.times, this.values, this.getValueSize(), e);
|
|
6088
6125
|
return this.settings && (t.settings = this.settings), t;
|
|
6089
6126
|
}
|
|
6090
6127
|
setInterpolation(e) {
|
|
@@ -6210,62 +6247,62 @@ var ks = class {
|
|
|
6210
6247
|
return r.createInterpolant = this.createInterpolant, r;
|
|
6211
6248
|
}
|
|
6212
6249
|
};
|
|
6213
|
-
|
|
6214
|
-
var
|
|
6250
|
+
Ls.prototype.ValueTypeName = "", Ls.prototype.TimeBufferType = Float32Array, Ls.prototype.ValueBufferType = Float32Array, Ls.prototype.DefaultInterpolation = We;
|
|
6251
|
+
var Rs = class extends Ls {
|
|
6215
6252
|
constructor(e, t, n) {
|
|
6216
6253
|
super(e, t, n);
|
|
6217
6254
|
}
|
|
6218
6255
|
};
|
|
6219
|
-
|
|
6220
|
-
var
|
|
6256
|
+
Rs.prototype.ValueTypeName = "bool", Rs.prototype.ValueBufferType = Array, Rs.prototype.DefaultInterpolation = Ue, Rs.prototype.InterpolantFactoryMethodLinear = void 0, Rs.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
6257
|
+
var zs = class extends Ls {
|
|
6221
6258
|
constructor(e, t, n, r) {
|
|
6222
6259
|
super(e, t, n, r);
|
|
6223
6260
|
}
|
|
6224
6261
|
};
|
|
6225
|
-
|
|
6226
|
-
var
|
|
6262
|
+
zs.prototype.ValueTypeName = "color";
|
|
6263
|
+
var Bs = class extends Ls {
|
|
6227
6264
|
constructor(e, t, n, r) {
|
|
6228
6265
|
super(e, t, n, r);
|
|
6229
6266
|
}
|
|
6230
6267
|
};
|
|
6231
|
-
|
|
6232
|
-
var
|
|
6268
|
+
Bs.prototype.ValueTypeName = "number";
|
|
6269
|
+
var Vs = class extends Ms {
|
|
6233
6270
|
constructor(e, t, n, r) {
|
|
6234
6271
|
super(e, t, n, r);
|
|
6235
6272
|
}
|
|
6236
6273
|
interpolate_(e, t, n, r) {
|
|
6237
6274
|
let i = this.resultBuffer, a = this.sampleValues, o = this.valueSize, s = (n - t) / (r - t), c = e * o;
|
|
6238
|
-
for (let e = c + o; c !== e; c += 4)
|
|
6275
|
+
for (let e = c + o; c !== e; c += 4) $t.slerpFlat(i, 0, a, c - o, a, c, s);
|
|
6239
6276
|
return i;
|
|
6240
6277
|
}
|
|
6241
|
-
},
|
|
6278
|
+
}, Hs = class extends Ls {
|
|
6242
6279
|
constructor(e, t, n, r) {
|
|
6243
6280
|
super(e, t, n, r);
|
|
6244
6281
|
}
|
|
6245
6282
|
InterpolantFactoryMethodLinear(e) {
|
|
6246
|
-
return new
|
|
6283
|
+
return new Vs(this.times, this.values, this.getValueSize(), e);
|
|
6247
6284
|
}
|
|
6248
6285
|
};
|
|
6249
|
-
|
|
6250
|
-
var
|
|
6286
|
+
Hs.prototype.ValueTypeName = "quaternion", Hs.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
6287
|
+
var Us = class extends Ls {
|
|
6251
6288
|
constructor(e, t, n) {
|
|
6252
6289
|
super(e, t, n);
|
|
6253
6290
|
}
|
|
6254
6291
|
};
|
|
6255
|
-
|
|
6256
|
-
var
|
|
6292
|
+
Us.prototype.ValueTypeName = "string", Us.prototype.ValueBufferType = Array, Us.prototype.DefaultInterpolation = Ue, Us.prototype.InterpolantFactoryMethodLinear = void 0, Us.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
6293
|
+
var Ws = class extends Ls {
|
|
6257
6294
|
constructor(e, t, n, r) {
|
|
6258
6295
|
super(e, t, n, r);
|
|
6259
6296
|
}
|
|
6260
6297
|
};
|
|
6261
|
-
|
|
6262
|
-
var
|
|
6298
|
+
Ws.prototype.ValueTypeName = "vector";
|
|
6299
|
+
var Gs = class {
|
|
6263
6300
|
constructor(e = "", t = -1, n = [], r = Xe) {
|
|
6264
|
-
this.name = e, this.tracks = n, this.duration = t, this.blendMode = r, this.uuid =
|
|
6301
|
+
this.name = e, this.tracks = n, this.duration = t, this.blendMode = r, this.uuid = Nt(), this.userData = {}, this.duration < 0 && this.resetDuration();
|
|
6265
6302
|
}
|
|
6266
6303
|
static parse(e) {
|
|
6267
6304
|
let t = [], n = e.tracks, r = 1 / (e.fps || 1);
|
|
6268
|
-
for (let e = 0, i = n.length; e !== i; ++e) t.push(
|
|
6305
|
+
for (let e = 0, i = n.length; e !== i; ++e) t.push(qs(n[e]).scale(r));
|
|
6269
6306
|
let i = new this(e.name, e.duration, t, e.blendMode);
|
|
6270
6307
|
return i.uuid = e.uuid, i.userData = JSON.parse(e.userData || "{}"), i;
|
|
6271
6308
|
}
|
|
@@ -6278,7 +6315,7 @@ var Hs = class {
|
|
|
6278
6315
|
blendMode: e.blendMode,
|
|
6279
6316
|
userData: JSON.stringify(e.userData)
|
|
6280
6317
|
};
|
|
6281
|
-
for (let e = 0, r = n.length; e !== r; ++e) t.push(
|
|
6318
|
+
for (let e = 0, r = n.length; e !== r; ++e) t.push(Ls.toJSON(n[e]));
|
|
6282
6319
|
return r;
|
|
6283
6320
|
}
|
|
6284
6321
|
static CreateFromMorphTargetSequence(e, t, n, r) {
|
|
@@ -6286,8 +6323,8 @@ var Hs = class {
|
|
|
6286
6323
|
for (let e = 0; e < i; e++) {
|
|
6287
6324
|
let o = [], s = [];
|
|
6288
6325
|
o.push((e + i - 1) % i, e, (e + 1) % i), s.push(0, 1, 0);
|
|
6289
|
-
let c =
|
|
6290
|
-
o =
|
|
6326
|
+
let c = ks(o);
|
|
6327
|
+
o = As(o, 1, c), s = As(s, 1, c), !r && o[0] === 0 && (o.push(i), s.push(s[0])), a.push(new Bs(".morphTargetInfluences[" + t[e].name + "]", o, s).scale(1 / n));
|
|
6291
6328
|
}
|
|
6292
6329
|
return new this(e, -1, a);
|
|
6293
6330
|
}
|
|
@@ -6318,7 +6355,7 @@ var Hs = class {
|
|
|
6318
6355
|
let n = function(e, t, n, r, i) {
|
|
6319
6356
|
if (n.length !== 0) {
|
|
6320
6357
|
let a = [], o = [];
|
|
6321
|
-
|
|
6358
|
+
js(n, a, o, r), a.length !== 0 && i.push(new e(t, a, o));
|
|
6322
6359
|
}
|
|
6323
6360
|
}, r = [], i = e.name || "default", a = e.fps || 30, o = e.blendMode, s = e.length || -1, c = e.hierarchy || [];
|
|
6324
6361
|
for (let e = 0; e < c.length; e++) {
|
|
@@ -6332,12 +6369,12 @@ var Hs = class {
|
|
|
6332
6369
|
let r = i[t];
|
|
6333
6370
|
e.push(r.time), a.push(r.morphTarget === n ? 1 : 0);
|
|
6334
6371
|
}
|
|
6335
|
-
r.push(new
|
|
6372
|
+
r.push(new Bs(".morphTargetInfluence[" + n + "]", e, a));
|
|
6336
6373
|
}
|
|
6337
6374
|
s = e.length * a;
|
|
6338
6375
|
} else {
|
|
6339
6376
|
let a = ".bones[" + t[e].name + "]";
|
|
6340
|
-
n(
|
|
6377
|
+
n(Ws, a + ".position", i, "pos", r), n(Hs, a + ".quaternion", i, "rot", r), n(Ws, a + ".scale", i, "scl", r);
|
|
6341
6378
|
}
|
|
6342
6379
|
}
|
|
6343
6380
|
return r.length === 0 ? null : new this(i, s, r, o);
|
|
@@ -6373,42 +6410,42 @@ var Hs = class {
|
|
|
6373
6410
|
return this.constructor.toJSON(this);
|
|
6374
6411
|
}
|
|
6375
6412
|
};
|
|
6376
|
-
function
|
|
6413
|
+
function Ks(e) {
|
|
6377
6414
|
switch (e.toLowerCase()) {
|
|
6378
6415
|
case "scalar":
|
|
6379
6416
|
case "double":
|
|
6380
6417
|
case "float":
|
|
6381
6418
|
case "number":
|
|
6382
|
-
case "integer": return
|
|
6419
|
+
case "integer": return Bs;
|
|
6383
6420
|
case "vector":
|
|
6384
6421
|
case "vector2":
|
|
6385
6422
|
case "vector3":
|
|
6386
|
-
case "vector4": return
|
|
6387
|
-
case "color": return
|
|
6388
|
-
case "quaternion": return
|
|
6423
|
+
case "vector4": return Ws;
|
|
6424
|
+
case "color": return zs;
|
|
6425
|
+
case "quaternion": return Hs;
|
|
6389
6426
|
case "bool":
|
|
6390
|
-
case "boolean": return
|
|
6391
|
-
case "string": return
|
|
6427
|
+
case "boolean": return Rs;
|
|
6428
|
+
case "string": return Us;
|
|
6392
6429
|
}
|
|
6393
6430
|
throw Error("THREE.KeyframeTrack: Unsupported typeName: " + e);
|
|
6394
6431
|
}
|
|
6395
|
-
function
|
|
6432
|
+
function qs(e) {
|
|
6396
6433
|
if (e.type === void 0) throw Error("THREE.KeyframeTrack: track type undefined, can not parse");
|
|
6397
|
-
let t =
|
|
6434
|
+
let t = Ks(e.type);
|
|
6398
6435
|
if (e.times === void 0) {
|
|
6399
6436
|
let t = [], n = [];
|
|
6400
|
-
|
|
6437
|
+
js(e.keys, t, n, "value"), e.times = t, e.values = n;
|
|
6401
6438
|
}
|
|
6402
6439
|
return t.parse === void 0 ? new t(e.name, e.times, e.values, e.interpolation) : t.parse(e);
|
|
6403
6440
|
}
|
|
6404
|
-
var
|
|
6441
|
+
var Js = {
|
|
6405
6442
|
enabled: !1,
|
|
6406
6443
|
files: {},
|
|
6407
6444
|
add: function(e, t) {
|
|
6408
|
-
this.enabled !== !1 && (
|
|
6445
|
+
this.enabled !== !1 && (Ys(e) || (this.files[e] = t));
|
|
6409
6446
|
},
|
|
6410
6447
|
get: function(e) {
|
|
6411
|
-
if (this.enabled !== !1 && !
|
|
6448
|
+
if (this.enabled !== !1 && !Ys(e)) return this.files[e];
|
|
6412
6449
|
},
|
|
6413
6450
|
remove: function(e) {
|
|
6414
6451
|
delete this.files[e];
|
|
@@ -6417,7 +6454,7 @@ var Gs = {
|
|
|
6417
6454
|
this.files = {};
|
|
6418
6455
|
}
|
|
6419
6456
|
};
|
|
6420
|
-
function
|
|
6457
|
+
function Ys(e) {
|
|
6421
6458
|
try {
|
|
6422
6459
|
let t = e.slice(e.indexOf(":") + 1);
|
|
6423
6460
|
return new URL(t).protocol === "blob:";
|
|
@@ -6425,7 +6462,7 @@ function Ks(e) {
|
|
|
6425
6462
|
return !1;
|
|
6426
6463
|
}
|
|
6427
6464
|
}
|
|
6428
|
-
var
|
|
6465
|
+
var Xs = class {
|
|
6429
6466
|
constructor(e, t, n) {
|
|
6430
6467
|
let r = this, i = !1, a = 0, o = 0, s, c = [];
|
|
6431
6468
|
this.onStart = void 0, this.onLoad = e, this.onProgress = t, this.onError = n, this._abortController = null, this.itemStart = function(e) {
|
|
@@ -6456,9 +6493,9 @@ var qs = class {
|
|
|
6456
6493
|
get abortController() {
|
|
6457
6494
|
return this._abortController ||= new AbortController(), this._abortController;
|
|
6458
6495
|
}
|
|
6459
|
-
},
|
|
6496
|
+
}, Zs = /* @__PURE__ */ new Xs(), Qs = class {
|
|
6460
6497
|
constructor(e) {
|
|
6461
|
-
this.manager = e === void 0 ?
|
|
6498
|
+
this.manager = e === void 0 ? Zs : e, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {}, typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
|
|
6462
6499
|
}
|
|
6463
6500
|
load() {}
|
|
6464
6501
|
loadAsync(e, t) {
|
|
@@ -6487,30 +6524,33 @@ var qs = class {
|
|
|
6487
6524
|
return this;
|
|
6488
6525
|
}
|
|
6489
6526
|
};
|
|
6490
|
-
|
|
6491
|
-
var
|
|
6527
|
+
Qs.DEFAULT_MATERIAL_NAME = "__DEFAULT";
|
|
6528
|
+
var $s = {}, ec = class extends Error {
|
|
6492
6529
|
constructor(e, t) {
|
|
6493
6530
|
super(e), this.response = t;
|
|
6494
6531
|
}
|
|
6495
|
-
},
|
|
6532
|
+
}, tc = class extends Qs {
|
|
6496
6533
|
constructor(e) {
|
|
6497
6534
|
super(e), this.mimeType = "", this.responseType = "", this._abortController = new AbortController();
|
|
6498
6535
|
}
|
|
6499
6536
|
load(e, t, n, r) {
|
|
6500
6537
|
e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
|
|
6501
|
-
let i =
|
|
6502
|
-
if (i !== void 0)
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6538
|
+
let i = Js.get(`file:${e}`);
|
|
6539
|
+
if (i !== void 0) {
|
|
6540
|
+
this.manager.itemStart(e), setTimeout(() => {
|
|
6541
|
+
t && t(i), this.manager.itemEnd(e);
|
|
6542
|
+
}, 0);
|
|
6543
|
+
return;
|
|
6544
|
+
}
|
|
6545
|
+
if ($s[e] !== void 0) {
|
|
6546
|
+
$s[e].push({
|
|
6507
6547
|
onLoad: t,
|
|
6508
6548
|
onProgress: n,
|
|
6509
6549
|
onError: r
|
|
6510
6550
|
});
|
|
6511
6551
|
return;
|
|
6512
6552
|
}
|
|
6513
|
-
|
|
6553
|
+
$s[e] = [], $s[e].push({
|
|
6514
6554
|
onLoad: t,
|
|
6515
6555
|
onProgress: n,
|
|
6516
6556
|
onError: r
|
|
@@ -6523,7 +6563,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6523
6563
|
fetch(a).then((t) => {
|
|
6524
6564
|
if (t.status === 200 || t.status === 0) {
|
|
6525
6565
|
if (t.status === 0 && k("FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || t.body === void 0 || t.body.getReader === void 0) return t;
|
|
6526
|
-
let n =
|
|
6566
|
+
let n = $s[e], r = t.body.getReader(), i = t.headers.get("X-File-Size") || t.headers.get("Content-Length"), a = i ? parseInt(i) : 0, o = a !== 0, s = 0, c = new ReadableStream({ start(e) {
|
|
6527
6567
|
t();
|
|
6528
6568
|
function t() {
|
|
6529
6569
|
r.read().then(({ done: r, value: i }) => {
|
|
@@ -6547,7 +6587,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6547
6587
|
}
|
|
6548
6588
|
} });
|
|
6549
6589
|
return new Response(c);
|
|
6550
|
-
} else throw new
|
|
6590
|
+
} else throw new ec(`fetch for "${t.url}" responded with ${t.status}: ${t.statusText}`, t);
|
|
6551
6591
|
}).then((e) => {
|
|
6552
6592
|
switch (s) {
|
|
6553
6593
|
case "arraybuffer": return e.arrayBuffer();
|
|
@@ -6562,17 +6602,17 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6562
6602
|
}
|
|
6563
6603
|
}
|
|
6564
6604
|
}).then((t) => {
|
|
6565
|
-
|
|
6566
|
-
let n =
|
|
6567
|
-
delete
|
|
6605
|
+
Js.add(`file:${e}`, t);
|
|
6606
|
+
let n = $s[e];
|
|
6607
|
+
delete $s[e];
|
|
6568
6608
|
for (let e = 0, r = n.length; e < r; e++) {
|
|
6569
6609
|
let r = n[e];
|
|
6570
6610
|
r.onLoad && r.onLoad(t);
|
|
6571
6611
|
}
|
|
6572
6612
|
}).catch((t) => {
|
|
6573
|
-
let n =
|
|
6613
|
+
let n = $s[e];
|
|
6574
6614
|
if (n === void 0) throw this.manager.itemError(e), t;
|
|
6575
|
-
delete
|
|
6615
|
+
delete $s[e];
|
|
6576
6616
|
for (let e = 0, r = n.length; e < r; e++) {
|
|
6577
6617
|
let r = n[e];
|
|
6578
6618
|
r.onError && r.onError(t);
|
|
@@ -6591,20 +6631,20 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6591
6631
|
abort() {
|
|
6592
6632
|
return this._abortController.abort(), this._abortController = new AbortController(), this;
|
|
6593
6633
|
}
|
|
6594
|
-
},
|
|
6634
|
+
}, nc = /* @__PURE__ */ new WeakMap(), rc = class extends Qs {
|
|
6595
6635
|
constructor(e) {
|
|
6596
6636
|
super(e);
|
|
6597
6637
|
}
|
|
6598
6638
|
load(e, t, n, r) {
|
|
6599
6639
|
this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
|
|
6600
|
-
let i = this, a =
|
|
6640
|
+
let i = this, a = Js.get(`image:${e}`);
|
|
6601
6641
|
if (a !== void 0) {
|
|
6602
6642
|
if (a.complete === !0) i.manager.itemStart(e), setTimeout(function() {
|
|
6603
6643
|
t && t(a), i.manager.itemEnd(e);
|
|
6604
6644
|
}, 0);
|
|
6605
6645
|
else {
|
|
6606
|
-
let e =
|
|
6607
|
-
e === void 0 && (e = [],
|
|
6646
|
+
let e = nc.get(a);
|
|
6647
|
+
e === void 0 && (e = [], nc.set(a, e)), e.push({
|
|
6608
6648
|
onLoad: t,
|
|
6609
6649
|
onError: r
|
|
6610
6650
|
});
|
|
@@ -6614,60 +6654,57 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6614
6654
|
let o = vt("img");
|
|
6615
6655
|
function s() {
|
|
6616
6656
|
l(), t && t(this);
|
|
6617
|
-
let n =
|
|
6657
|
+
let n = nc.get(this) || [];
|
|
6618
6658
|
for (let e = 0; e < n.length; e++) {
|
|
6619
6659
|
let t = n[e];
|
|
6620
6660
|
t.onLoad && t.onLoad(this);
|
|
6621
6661
|
}
|
|
6622
|
-
|
|
6662
|
+
nc.delete(this), i.manager.itemEnd(e);
|
|
6623
6663
|
}
|
|
6624
6664
|
function c(t) {
|
|
6625
|
-
l(), r && r(t),
|
|
6626
|
-
let n =
|
|
6665
|
+
l(), r && r(t), Js.remove(`image:${e}`);
|
|
6666
|
+
let n = nc.get(this) || [];
|
|
6627
6667
|
for (let e = 0; e < n.length; e++) {
|
|
6628
6668
|
let r = n[e];
|
|
6629
6669
|
r.onError && r.onError(t);
|
|
6630
6670
|
}
|
|
6631
|
-
|
|
6671
|
+
nc.delete(this), i.manager.itemError(e), i.manager.itemEnd(e);
|
|
6632
6672
|
}
|
|
6633
6673
|
function l() {
|
|
6634
6674
|
o.removeEventListener("load", s, !1), o.removeEventListener("error", c, !1);
|
|
6635
6675
|
}
|
|
6636
|
-
return o.addEventListener("load", s, !1), o.addEventListener("error", c, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (o.crossOrigin = this.crossOrigin),
|
|
6676
|
+
return o.addEventListener("load", s, !1), o.addEventListener("error", c, !1), e.slice(0, 5) !== "data:" && this.crossOrigin !== void 0 && (o.crossOrigin = this.crossOrigin), Js.add(`image:${e}`, o), i.manager.itemStart(e), o.src = e, o;
|
|
6637
6677
|
}
|
|
6638
|
-
},
|
|
6678
|
+
}, ic = class extends Qs {
|
|
6639
6679
|
constructor(e) {
|
|
6640
6680
|
super(e);
|
|
6641
6681
|
}
|
|
6642
6682
|
load(e, t, n, i) {
|
|
6643
|
-
let a = this, o = new
|
|
6683
|
+
let a = this, o = new Ii(), s = new tc(this.manager);
|
|
6644
6684
|
return s.setResponseType("arraybuffer"), s.setRequestHeader(this.requestHeader), s.setPath(this.path), s.setWithCredentials(a.withCredentials), s.load(e, function(e) {
|
|
6645
6685
|
let n;
|
|
6646
6686
|
try {
|
|
6647
6687
|
n = a.parse(e);
|
|
6648
6688
|
} catch (e) {
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
e(e);
|
|
6652
|
-
return;
|
|
6653
|
-
}
|
|
6689
|
+
i === void 0 ? A(e) : i(e);
|
|
6690
|
+
return;
|
|
6654
6691
|
}
|
|
6655
6692
|
n.image === void 0 ? n.data !== void 0 && (o.image.width = n.width, o.image.height = n.height, o.image.data = n.data) : o.image = n.image, o.wrapS = n.wrapS === void 0 ? r : n.wrapS, o.wrapT = n.wrapT === void 0 ? r : n.wrapT, o.magFilter = n.magFilter === void 0 ? c : n.magFilter, o.minFilter = n.minFilter === void 0 ? c : n.minFilter, o.anisotropy = n.anisotropy === void 0 ? 1 : n.anisotropy, n.colorSpace !== void 0 && (o.colorSpace = n.colorSpace), n.flipY !== void 0 && (o.flipY = n.flipY), n.format !== void 0 && (o.format = n.format), n.type !== void 0 && (o.type = n.type), n.mipmaps !== void 0 && (o.mipmaps = n.mipmaps, o.minFilter = u), n.mipmapCount === 1 && (o.minFilter = c), n.generateMipmaps !== void 0 && (o.generateMipmaps = n.generateMipmaps), o.needsUpdate = !0, t && t(o, n);
|
|
6656
6693
|
}, n, i), o;
|
|
6657
6694
|
}
|
|
6658
|
-
},
|
|
6695
|
+
}, ac = class extends Qs {
|
|
6659
6696
|
constructor(e) {
|
|
6660
6697
|
super(e);
|
|
6661
6698
|
}
|
|
6662
6699
|
load(e, t, n, r) {
|
|
6663
|
-
let i = new
|
|
6700
|
+
let i = new R(), a = new rc(this.manager);
|
|
6664
6701
|
return a.setCrossOrigin(this.crossOrigin), a.setPath(this.path), a.load(e, function(e) {
|
|
6665
6702
|
i.image = e, i.needsUpdate = !0, t !== void 0 && t(i);
|
|
6666
6703
|
}, n, r), i;
|
|
6667
6704
|
}
|
|
6668
|
-
},
|
|
6705
|
+
}, oc = class extends V {
|
|
6669
6706
|
constructor(e, t = 1) {
|
|
6670
|
-
super(), this.isLight = !0, this.type = "Light", this.color = new
|
|
6707
|
+
super(), this.isLight = !0, this.type = "Light", this.color = new H(e), this.intensity = t;
|
|
6671
6708
|
}
|
|
6672
6709
|
dispose() {
|
|
6673
6710
|
this.dispatchEvent({ type: "dispose" });
|
|
@@ -6679,9 +6716,9 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6679
6716
|
let t = super.toJSON(e);
|
|
6680
6717
|
return t.object.color = this.color.getHex(), t.object.intensity = this.intensity, t;
|
|
6681
6718
|
}
|
|
6682
|
-
},
|
|
6719
|
+
}, sc = class extends oc {
|
|
6683
6720
|
constructor(e, t, n) {
|
|
6684
|
-
super(e, n), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(
|
|
6721
|
+
super(e, n), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(V.DEFAULT_UP), this.updateMatrix(), this.groundColor = new H(t);
|
|
6685
6722
|
}
|
|
6686
6723
|
copy(e, t) {
|
|
6687
6724
|
return super.copy(e, t), this.groundColor.copy(e.groundColor), this;
|
|
@@ -6690,9 +6727,9 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6690
6727
|
let t = super.toJSON(e);
|
|
6691
6728
|
return t.object.groundColor = this.groundColor.getHex(), t;
|
|
6692
6729
|
}
|
|
6693
|
-
},
|
|
6730
|
+
}, cc = /* @__PURE__ */ new z(), lc = /* @__PURE__ */ new I(), uc = /* @__PURE__ */ new I(), dc = class {
|
|
6694
6731
|
constructor(e) {
|
|
6695
|
-
this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new F(512, 512), this.mapType = f, this.map = null, this.mapPass = null, this.matrix = new
|
|
6732
|
+
this.camera = e, this.intensity = 1, this.bias = 0, this.biasNode = null, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new F(512, 512), this.mapType = f, this.map = null, this.mapPass = null, this.matrix = new z(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new na(), this._frameExtents = new F(1, 1), this._viewportCount = 1, this._viewports = [new _n(0, 0, 1, 1)];
|
|
6696
6733
|
}
|
|
6697
6734
|
getViewportCount() {
|
|
6698
6735
|
return this._viewportCount;
|
|
@@ -6702,7 +6739,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6702
6739
|
}
|
|
6703
6740
|
updateMatrices(e) {
|
|
6704
6741
|
let t = this.camera, n = this.matrix;
|
|
6705
|
-
|
|
6742
|
+
lc.setFromMatrixPosition(e.matrixWorld), t.position.copy(lc), uc.setFromMatrixPosition(e.target.matrixWorld), t.lookAt(uc), t.updateMatrixWorld(), cc.multiplyMatrices(t.projectionMatrix, t.matrixWorldInverse), this._frustum.setFromProjectionMatrix(cc, t.coordinateSystem, t.reversedDepth), t.coordinateSystem === 2001 || t.reversedDepth ? n.set(.5, 0, 0, .5, 0, .5, 0, .5, 0, 0, 1, 0, 0, 0, 0, 1) : n.set(.5, 0, 0, .5, 0, .5, 0, .5, 0, 0, .5, .5, 0, 0, 0, 1), n.multiply(cc);
|
|
6706
6743
|
}
|
|
6707
6744
|
getViewport(e) {
|
|
6708
6745
|
return this._viewports[e];
|
|
@@ -6723,9 +6760,9 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6723
6760
|
let e = {};
|
|
6724
6761
|
return this.intensity !== 1 && (e.intensity = this.intensity), this.bias !== 0 && (e.bias = this.bias), this.normalBias !== 0 && (e.normalBias = this.normalBias), this.radius !== 1 && (e.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (e.mapSize = this.mapSize.toArray()), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e;
|
|
6725
6762
|
}
|
|
6726
|
-
},
|
|
6763
|
+
}, fc = /* @__PURE__ */ new I(), pc = /* @__PURE__ */ new $t(), mc = /* @__PURE__ */ new I(), hc = class extends V {
|
|
6727
6764
|
constructor() {
|
|
6728
|
-
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new
|
|
6765
|
+
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new z(), this.projectionMatrix = new z(), this.projectionMatrixInverse = new z(), this.coordinateSystem = ft, this._reversedDepth = !1;
|
|
6729
6766
|
}
|
|
6730
6767
|
get reversedDepth() {
|
|
6731
6768
|
return this._reversedDepth;
|
|
@@ -6737,15 +6774,15 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6737
6774
|
return super.getWorldDirection(e).negate();
|
|
6738
6775
|
}
|
|
6739
6776
|
updateMatrixWorld(e) {
|
|
6740
|
-
super.updateMatrixWorld(e), this.matrixWorld.decompose(
|
|
6777
|
+
super.updateMatrixWorld(e), this.matrixWorld.decompose(fc, pc, mc), mc.x === 1 && mc.y === 1 && mc.z === 1 ? this.matrixWorldInverse.copy(this.matrixWorld).invert() : this.matrixWorldInverse.compose(fc, pc, mc.set(1, 1, 1)).invert();
|
|
6741
6778
|
}
|
|
6742
6779
|
updateWorldMatrix(e, t) {
|
|
6743
|
-
super.updateWorldMatrix(e, t), this.matrixWorld.decompose(
|
|
6780
|
+
super.updateWorldMatrix(e, t), this.matrixWorld.decompose(fc, pc, mc), mc.x === 1 && mc.y === 1 && mc.z === 1 ? this.matrixWorldInverse.copy(this.matrixWorld).invert() : this.matrixWorldInverse.compose(fc, pc, mc.set(1, 1, 1)).invert();
|
|
6744
6781
|
}
|
|
6745
6782
|
clone() {
|
|
6746
6783
|
return new this.constructor().copy(this);
|
|
6747
6784
|
}
|
|
6748
|
-
},
|
|
6785
|
+
}, gc = /* @__PURE__ */ new I(), _c = /* @__PURE__ */ new F(), vc = /* @__PURE__ */ new F(), yc = class extends hc {
|
|
6749
6786
|
constructor(e = 50, t = 1, n = .1, r = 2e3) {
|
|
6750
6787
|
super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = e, this.zoom = 1, this.near = n, this.far = r, this.focus = 10, this.aspect = t, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
6751
6788
|
}
|
|
@@ -6754,14 +6791,14 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6754
6791
|
}
|
|
6755
6792
|
setFocalLength(e) {
|
|
6756
6793
|
let t = .5 * this.getFilmHeight() / e;
|
|
6757
|
-
this.fov =
|
|
6794
|
+
this.fov = Mt * 2 * Math.atan(t), this.updateProjectionMatrix();
|
|
6758
6795
|
}
|
|
6759
6796
|
getFocalLength() {
|
|
6760
|
-
let e = Math.tan(
|
|
6797
|
+
let e = Math.tan(jt * .5 * this.fov);
|
|
6761
6798
|
return .5 * this.getFilmHeight() / e;
|
|
6762
6799
|
}
|
|
6763
6800
|
getEffectiveFOV() {
|
|
6764
|
-
return
|
|
6801
|
+
return Mt * 2 * Math.atan(Math.tan(jt * .5 * this.fov) / this.zoom);
|
|
6765
6802
|
}
|
|
6766
6803
|
getFilmWidth() {
|
|
6767
6804
|
return this.filmGauge * Math.min(this.aspect, 1);
|
|
@@ -6770,10 +6807,10 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6770
6807
|
return this.filmGauge / Math.max(this.aspect, 1);
|
|
6771
6808
|
}
|
|
6772
6809
|
getViewBounds(e, t, n) {
|
|
6773
|
-
|
|
6810
|
+
gc.set(-1, -1, .5).applyMatrix4(this.projectionMatrixInverse), t.set(gc.x, gc.y).multiplyScalar(-e / gc.z), gc.set(1, 1, .5).applyMatrix4(this.projectionMatrixInverse), n.set(gc.x, gc.y).multiplyScalar(-e / gc.z);
|
|
6774
6811
|
}
|
|
6775
6812
|
getViewSize(e, t) {
|
|
6776
|
-
return this.getViewBounds(e,
|
|
6813
|
+
return this.getViewBounds(e, _c, vc), t.subVectors(vc, _c);
|
|
6777
6814
|
}
|
|
6778
6815
|
setViewOffset(e, t, n, r, i, a) {
|
|
6779
6816
|
this.aspect = e / t, this.view === null && (this.view = {
|
|
@@ -6790,7 +6827,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6790
6827
|
this.view !== null && (this.view.enabled = !1), this.updateProjectionMatrix();
|
|
6791
6828
|
}
|
|
6792
6829
|
updateProjectionMatrix() {
|
|
6793
|
-
let e = this.near, t = e * Math.tan(
|
|
6830
|
+
let e = this.near, t = e * Math.tan(jt * .5 * this.fov) / this.zoom, n = 2 * t, r = this.aspect * n, i = -.5 * r, a = this.view;
|
|
6794
6831
|
if (this.view !== null && this.view.enabled) {
|
|
6795
6832
|
let e = a.fullWidth, o = a.fullHeight;
|
|
6796
6833
|
i += a.offsetX * r / e, t -= a.offsetY * n / o, r *= a.width / e, n *= a.height / o;
|
|
@@ -6802,20 +6839,20 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6802
6839
|
let t = super.toJSON(e);
|
|
6803
6840
|
return t.object.fov = this.fov, t.object.zoom = this.zoom, t.object.near = this.near, t.object.far = this.far, t.object.focus = this.focus, t.object.aspect = this.aspect, this.view !== null && (t.object.view = Object.assign({}, this.view)), t.object.filmGauge = this.filmGauge, t.object.filmOffset = this.filmOffset, t;
|
|
6804
6841
|
}
|
|
6805
|
-
},
|
|
6842
|
+
}, bc = class extends dc {
|
|
6806
6843
|
constructor() {
|
|
6807
|
-
super(new
|
|
6844
|
+
super(new yc(50, 1, .5, 500)), this.isSpotLightShadow = !0, this.focus = 1, this.aspect = 1;
|
|
6808
6845
|
}
|
|
6809
6846
|
updateMatrices(e) {
|
|
6810
|
-
let t = this.camera, n =
|
|
6847
|
+
let t = this.camera, n = Mt * 2 * e.angle * this.focus, r = this.mapSize.width / this.mapSize.height * this.aspect, i = e.distance || t.far;
|
|
6811
6848
|
(n !== t.fov || r !== t.aspect || i !== t.far) && (t.fov = n, t.aspect = r, t.far = i, t.updateProjectionMatrix()), super.updateMatrices(e);
|
|
6812
6849
|
}
|
|
6813
6850
|
copy(e) {
|
|
6814
6851
|
return super.copy(e), this.focus = e.focus, this;
|
|
6815
6852
|
}
|
|
6816
|
-
},
|
|
6853
|
+
}, xc = class extends oc {
|
|
6817
6854
|
constructor(e, t, n = 0, r = Math.PI / 3, i = 0, a = 2) {
|
|
6818
|
-
super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(
|
|
6855
|
+
super(e, t), this.isSpotLight = !0, this.type = "SpotLight", this.position.copy(V.DEFAULT_UP), this.updateMatrix(), this.target = new V(), this.distance = n, this.angle = r, this.penumbra = i, this.decay = a, this.map = null, this.shadow = new bc();
|
|
6819
6856
|
}
|
|
6820
6857
|
get power() {
|
|
6821
6858
|
return this.intensity * Math.PI;
|
|
@@ -6833,13 +6870,13 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6833
6870
|
let t = super.toJSON(e);
|
|
6834
6871
|
return t.object.distance = this.distance, t.object.angle = this.angle, t.object.decay = this.decay, t.object.penumbra = this.penumbra, t.object.target = this.target.uuid, this.map && this.map.isTexture && (t.object.map = this.map.toJSON(e).uuid), t.object.shadow = this.shadow.toJSON(), t;
|
|
6835
6872
|
}
|
|
6836
|
-
},
|
|
6873
|
+
}, Sc = class extends dc {
|
|
6837
6874
|
constructor() {
|
|
6838
|
-
super(new
|
|
6875
|
+
super(new yc(90, 1, .5, 500)), this.isPointLightShadow = !0;
|
|
6839
6876
|
}
|
|
6840
|
-
},
|
|
6877
|
+
}, Cc = class extends oc {
|
|
6841
6878
|
constructor(e, t, n = 0, r = 2) {
|
|
6842
|
-
super(e, t), this.isPointLight = !0, this.type = "PointLight", this.distance = n, this.decay = r, this.shadow = new
|
|
6879
|
+
super(e, t), this.isPointLight = !0, this.type = "PointLight", this.distance = n, this.decay = r, this.shadow = new Sc();
|
|
6843
6880
|
}
|
|
6844
6881
|
get power() {
|
|
6845
6882
|
return this.intensity * 4 * Math.PI;
|
|
@@ -6857,7 +6894,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6857
6894
|
let t = super.toJSON(e);
|
|
6858
6895
|
return t.object.distance = this.distance, t.object.decay = this.decay, t.object.shadow = this.shadow.toJSON(), t;
|
|
6859
6896
|
}
|
|
6860
|
-
},
|
|
6897
|
+
}, wc = class extends hc {
|
|
6861
6898
|
constructor(e = -1, t = 1, n = 1, r = -1, i = .1, a = 2e3) {
|
|
6862
6899
|
super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = e, this.right = t, this.top = n, this.bottom = r, this.near = i, this.far = a, this.updateProjectionMatrix();
|
|
6863
6900
|
}
|
|
@@ -6890,13 +6927,13 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6890
6927
|
let t = super.toJSON(e);
|
|
6891
6928
|
return t.object.zoom = this.zoom, t.object.left = this.left, t.object.right = this.right, t.object.top = this.top, t.object.bottom = this.bottom, t.object.near = this.near, t.object.far = this.far, this.view !== null && (t.object.view = Object.assign({}, this.view)), t;
|
|
6892
6929
|
}
|
|
6893
|
-
},
|
|
6930
|
+
}, Tc = class extends dc {
|
|
6894
6931
|
constructor() {
|
|
6895
|
-
super(new
|
|
6932
|
+
super(new wc(-5, 5, 5, -5, .5, 500)), this.isDirectionalLightShadow = !0;
|
|
6896
6933
|
}
|
|
6897
|
-
},
|
|
6934
|
+
}, Ec = class extends oc {
|
|
6898
6935
|
constructor(e, t) {
|
|
6899
|
-
super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(
|
|
6936
|
+
super(e, t), this.isDirectionalLight = !0, this.type = "DirectionalLight", this.position.copy(V.DEFAULT_UP), this.updateMatrix(), this.target = new V(), this.shadow = new Tc();
|
|
6900
6937
|
}
|
|
6901
6938
|
dispose() {
|
|
6902
6939
|
super.dispose(), this.shadow.dispose();
|
|
@@ -6908,11 +6945,11 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6908
6945
|
let t = super.toJSON(e);
|
|
6909
6946
|
return t.object.shadow = this.shadow.toJSON(), t.object.target = this.target.uuid, t;
|
|
6910
6947
|
}
|
|
6911
|
-
},
|
|
6948
|
+
}, Dc = class extends oc {
|
|
6912
6949
|
constructor(e, t) {
|
|
6913
6950
|
super(e, t), this.isAmbientLight = !0, this.type = "AmbientLight";
|
|
6914
6951
|
}
|
|
6915
|
-
},
|
|
6952
|
+
}, Oc = class extends oc {
|
|
6916
6953
|
constructor(e, t, n = 10, r = 10) {
|
|
6917
6954
|
super(e, t), this.isRectAreaLight = !0, this.type = "RectAreaLight", this.width = n, this.height = r;
|
|
6918
6955
|
}
|
|
@@ -6929,7 +6966,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6929
6966
|
let t = super.toJSON(e);
|
|
6930
6967
|
return t.object.width = this.width, t.object.height = this.height, t;
|
|
6931
6968
|
}
|
|
6932
|
-
},
|
|
6969
|
+
}, kc = class {
|
|
6933
6970
|
constructor() {
|
|
6934
6971
|
this.isSphericalHarmonics3 = !0, this.coefficients = [];
|
|
6935
6972
|
for (let e = 0; e < 9; e++) this.coefficients.push(new I());
|
|
@@ -6990,8 +7027,8 @@ var Xs = {}, Zs = class extends Error {
|
|
|
6990
7027
|
let n = e.x, r = e.y, i = e.z;
|
|
6991
7028
|
t[0] = .282095, t[1] = .488603 * r, t[2] = .488603 * i, t[3] = .488603 * n, t[4] = 1.092548 * n * r, t[5] = 1.092548 * r * i, t[6] = .315392 * (3 * i * i - 1), t[7] = 1.092548 * n * i, t[8] = .546274 * (n * n - r * r);
|
|
6992
7029
|
}
|
|
6993
|
-
},
|
|
6994
|
-
constructor(e = new
|
|
7030
|
+
}, Ac = class extends oc {
|
|
7031
|
+
constructor(e = new kc(), t = 1) {
|
|
6995
7032
|
super(void 0, t), this.isLightProbe = !0, this.sh = e;
|
|
6996
7033
|
}
|
|
6997
7034
|
copy(e) {
|
|
@@ -7001,7 +7038,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
7001
7038
|
let t = super.toJSON(e);
|
|
7002
7039
|
return t.object.sh = this.sh.toArray(), t;
|
|
7003
7040
|
}
|
|
7004
|
-
},
|
|
7041
|
+
}, jc = class {
|
|
7005
7042
|
static extractUrlBase(e) {
|
|
7006
7043
|
let t = e.lastIndexOf("/");
|
|
7007
7044
|
return t === -1 ? "./" : e.slice(0, t + 1);
|
|
@@ -7009,7 +7046,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
7009
7046
|
static resolveURL(e, t) {
|
|
7010
7047
|
return typeof e != "string" || e === "" ? "" : (/^https?:\/\//i.test(t) && /^\//.test(e) && (t = t.replace(/(^https?:\/\/[^\/]+).*/i, "$1")), /^(https?:)?\/\//i.test(e) || /^data:.*,.*$/i.test(e) || /^blob:.*$/i.test(e) ? e : t + e);
|
|
7011
7048
|
}
|
|
7012
|
-
},
|
|
7049
|
+
}, Mc = /* @__PURE__ */ new WeakMap(), Nc = class extends Qs {
|
|
7013
7050
|
constructor(e) {
|
|
7014
7051
|
super(e), this.isImageBitmapLoader = !0, typeof createImageBitmap > "u" && k("ImageBitmapLoader: createImageBitmap() not supported."), typeof fetch > "u" && k("ImageBitmapLoader: fetch() not supported."), this.options = { premultiplyAlpha: "none" }, this._abortController = new AbortController();
|
|
7015
7052
|
}
|
|
@@ -7018,18 +7055,18 @@ var Xs = {}, Zs = class extends Error {
|
|
|
7018
7055
|
}
|
|
7019
7056
|
load(e, t, n, r) {
|
|
7020
7057
|
e === void 0 && (e = ""), this.path !== void 0 && (e = this.path + e), e = this.manager.resolveURL(e);
|
|
7021
|
-
let i = this, a =
|
|
7058
|
+
let i = this, a = Js.get(`image-bitmap:${e}`);
|
|
7022
7059
|
if (a !== void 0) {
|
|
7023
7060
|
if (i.manager.itemStart(e), a.then) {
|
|
7024
7061
|
a.then((n) => {
|
|
7025
|
-
|
|
7026
|
-
else return t && t(n), i.manager.itemEnd(e), n;
|
|
7062
|
+
Mc.has(a) === !0 ? (r && r(Mc.get(a)), i.manager.itemError(e), i.manager.itemEnd(e)) : (t && t(n), i.manager.itemEnd(e));
|
|
7027
7063
|
});
|
|
7028
7064
|
return;
|
|
7029
7065
|
}
|
|
7030
|
-
|
|
7066
|
+
setTimeout(function() {
|
|
7031
7067
|
t && t(a), i.manager.itemEnd(e);
|
|
7032
|
-
}, 0)
|
|
7068
|
+
}, 0);
|
|
7069
|
+
return;
|
|
7033
7070
|
}
|
|
7034
7071
|
let o = {};
|
|
7035
7072
|
o.credentials = this.crossOrigin === "anonymous" ? "same-origin" : "include", o.headers = this.requestHeader, o.signal = typeof AbortSignal.any == "function" ? AbortSignal.any([this._abortController.signal, this.manager.abortController.signal]) : this._abortController.signal;
|
|
@@ -7038,29 +7075,29 @@ var Xs = {}, Zs = class extends Error {
|
|
|
7038
7075
|
}).then(function(e) {
|
|
7039
7076
|
return createImageBitmap(e, Object.assign(i.options, { colorSpaceConversion: "none" }));
|
|
7040
7077
|
}).then(function(n) {
|
|
7041
|
-
|
|
7078
|
+
Js.add(`image-bitmap:${e}`, n), t && t(n), i.manager.itemEnd(e);
|
|
7042
7079
|
}).catch(function(t) {
|
|
7043
|
-
r && r(t),
|
|
7080
|
+
r && r(t), Mc.set(s, t), Js.remove(`image-bitmap:${e}`), i.manager.itemError(e), i.manager.itemEnd(e);
|
|
7044
7081
|
});
|
|
7045
|
-
|
|
7082
|
+
Js.add(`image-bitmap:${e}`, s), i.manager.itemStart(e);
|
|
7046
7083
|
}
|
|
7047
7084
|
abort() {
|
|
7048
7085
|
return this._abortController.abort(), this._abortController = new AbortController(), this;
|
|
7049
7086
|
}
|
|
7050
|
-
},
|
|
7087
|
+
}, Pc = -90, Fc = 1, Ic = class extends V {
|
|
7051
7088
|
constructor(e, t, n) {
|
|
7052
7089
|
super(), this.type = "CubeCamera", this.renderTarget = n, this.coordinateSystem = null, this.activeMipmapLevel = 0;
|
|
7053
|
-
let r = new
|
|
7090
|
+
let r = new yc(Pc, Fc, e, t);
|
|
7054
7091
|
r.layers = this.layers, this.add(r);
|
|
7055
|
-
let i = new
|
|
7092
|
+
let i = new yc(Pc, Fc, e, t);
|
|
7056
7093
|
i.layers = this.layers, this.add(i);
|
|
7057
|
-
let a = new
|
|
7094
|
+
let a = new yc(Pc, Fc, e, t);
|
|
7058
7095
|
a.layers = this.layers, this.add(a);
|
|
7059
|
-
let o = new
|
|
7096
|
+
let o = new yc(Pc, Fc, e, t);
|
|
7060
7097
|
o.layers = this.layers, this.add(o);
|
|
7061
|
-
let s = new
|
|
7098
|
+
let s = new yc(Pc, Fc, e, t);
|
|
7062
7099
|
s.layers = this.layers, this.add(s);
|
|
7063
|
-
let c = new
|
|
7100
|
+
let c = new yc(Pc, Fc, e, t);
|
|
7064
7101
|
c.layers = this.layers, this.add(c);
|
|
7065
7102
|
}
|
|
7066
7103
|
updateCoordinateSystem() {
|
|
@@ -7082,38 +7119,16 @@ var Xs = {}, Zs = class extends Error {
|
|
|
7082
7119
|
let h = !1;
|
|
7083
7120
|
h = e.isWebGLRenderer === !0 ? e.state.buffers.depth.getReversed() : e.reversedDepthBuffer, e.setRenderTarget(n, 0, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, i), e.setRenderTarget(n, 1, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, a), e.setRenderTarget(n, 2, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, o), e.setRenderTarget(n, 3, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, s), e.setRenderTarget(n, 4, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, c), n.texture.generateMipmaps = m, e.setRenderTarget(n, 5, r), h && e.autoClear === !1 && e.clearDepth(), e.render(t, l), e.setRenderTarget(u, d, f), e.xr.enabled = p, n.texture.needsPMREMUpdate = !0;
|
|
7084
7121
|
}
|
|
7085
|
-
},
|
|
7122
|
+
}, Lc = class extends yc {
|
|
7086
7123
|
constructor(e = []) {
|
|
7087
7124
|
super(), this.isArrayCamera = !0, this.isMultiViewCamera = !1, this.cameras = e;
|
|
7088
7125
|
}
|
|
7089
|
-
},
|
|
7090
|
-
constructor(e = !0) {
|
|
7091
|
-
this.autoStart = e, this.startTime = 0, this.oldTime = 0, this.elapsedTime = 0, this.running = !1, k("THREE.Clock: This module has been deprecated. Please use THREE.Timer instead.");
|
|
7092
|
-
}
|
|
7093
|
-
start() {
|
|
7094
|
-
this.startTime = performance.now(), this.oldTime = this.startTime, this.elapsedTime = 0, this.running = !0;
|
|
7095
|
-
}
|
|
7096
|
-
stop() {
|
|
7097
|
-
this.getElapsedTime(), this.running = !1, this.autoStart = !1;
|
|
7098
|
-
}
|
|
7099
|
-
getElapsedTime() {
|
|
7100
|
-
return this.getDelta(), this.elapsedTime;
|
|
7101
|
-
}
|
|
7102
|
-
getDelta() {
|
|
7103
|
-
let e = 0;
|
|
7104
|
-
if (this.autoStart && !this.running) return this.start(), 0;
|
|
7105
|
-
if (this.running) {
|
|
7106
|
-
let t = performance.now();
|
|
7107
|
-
e = (t - this.oldTime) / 1e3, this.oldTime = t, this.elapsedTime += e;
|
|
7108
|
-
}
|
|
7109
|
-
return e;
|
|
7110
|
-
}
|
|
7111
|
-
}, Ic = "\\[\\]\\.:\\/", Lc = RegExp("[" + Ic + "]", "g"), Rc = "[^" + Ic + "]", zc = "[^" + Ic.replace("\\.", "") + "]", Bc = /* @__PURE__ */ "((?:WC+[\\/:])*)".replace("WC", Rc), Vc = /* @__PURE__ */ "(WCOD+)?".replace("WCOD", zc), Hc = /* @__PURE__ */ "(?:\\.(WC+)(?:\\[(.+)\\])?)?".replace("WC", Rc), Uc = /* @__PURE__ */ "\\.(WC+)(?:\\[(.+)\\])?".replace("WC", Rc), Wc = RegExp("^" + Bc + Vc + Hc + Uc + "$"), Gc = [
|
|
7126
|
+
}, Rc = "\\[\\]\\.:\\/", zc = RegExp("[" + Rc + "]", "g"), Bc = "[^" + Rc + "]", Vc = "[^" + Rc.replace("\\.", "") + "]", Hc = /* @__PURE__ */ "((?:WC+[\\/:])*)".replace("WC", Bc), Uc = /* @__PURE__ */ "(WCOD+)?".replace("WCOD", Vc), Wc = /* @__PURE__ */ "(?:\\.(WC+)(?:\\[(.+)\\])?)?".replace("WC", Bc), Gc = /* @__PURE__ */ "\\.(WC+)(?:\\[(.+)\\])?".replace("WC", Bc), Kc = RegExp("^" + Hc + Uc + Wc + Gc + "$"), qc = [
|
|
7112
7127
|
"material",
|
|
7113
7128
|
"materials",
|
|
7114
7129
|
"bones",
|
|
7115
7130
|
"map"
|
|
7116
|
-
],
|
|
7131
|
+
], Jc = class {
|
|
7117
7132
|
constructor(e, t, n) {
|
|
7118
7133
|
let r = n || Z.parseTrackName(t);
|
|
7119
7134
|
this._targetGroup = e, this._bindings = e.subscribe_(t, r);
|
|
@@ -7143,10 +7158,10 @@ var Xs = {}, Zs = class extends Error {
|
|
|
7143
7158
|
return t && t.isAnimationObjectGroup ? new e.Composite(t, n, r) : new e(t, n, r);
|
|
7144
7159
|
}
|
|
7145
7160
|
static sanitizeNodeName(e) {
|
|
7146
|
-
return e.replace(/\s/g, "_").replace(
|
|
7161
|
+
return e.replace(/\s/g, "_").replace(zc, "");
|
|
7147
7162
|
}
|
|
7148
7163
|
static parseTrackName(e) {
|
|
7149
|
-
let t =
|
|
7164
|
+
let t = Kc.exec(e);
|
|
7150
7165
|
if (t === null) throw Error("PropertyBinding: Cannot parse trackName: " + e);
|
|
7151
7166
|
let n = {
|
|
7152
7167
|
nodeName: t[2],
|
|
@@ -7157,7 +7172,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
7157
7172
|
}, r = n.nodeName && n.nodeName.lastIndexOf(".");
|
|
7158
7173
|
if (r !== void 0 && r !== -1) {
|
|
7159
7174
|
let e = n.nodeName.substring(r + 1);
|
|
7160
|
-
|
|
7175
|
+
qc.indexOf(e) !== -1 && (n.nodeName = n.nodeName.substring(0, r), n.objectName = e);
|
|
7161
7176
|
}
|
|
7162
7177
|
if (n.propertyName === null || n.propertyName.length === 0) throw Error("PropertyBinding: can not parse propertyName from trackName: " + e);
|
|
7163
7178
|
return n;
|
|
@@ -7334,7 +7349,7 @@ var Xs = {}, Zs = class extends Error {
|
|
|
7334
7349
|
this.node = null, this.getValue = this._getValue_unbound, this.setValue = this._setValue_unbound;
|
|
7335
7350
|
}
|
|
7336
7351
|
};
|
|
7337
|
-
Z.Composite =
|
|
7352
|
+
Z.Composite = Jc, Z.prototype.BindingType = {
|
|
7338
7353
|
Direct: 0,
|
|
7339
7354
|
EntireArray: 1,
|
|
7340
7355
|
ArrayElement: 2,
|
|
@@ -7370,7 +7385,7 @@ Z.Composite = Kc, Z.prototype.BindingType = {
|
|
|
7370
7385
|
Z.prototype._setValue_fromArray_setMatrixWorldNeedsUpdate
|
|
7371
7386
|
]
|
|
7372
7387
|
];
|
|
7373
|
-
var
|
|
7388
|
+
var Yc = class extends Qr {
|
|
7374
7389
|
constructor(e, t, n = 1) {
|
|
7375
7390
|
super(e, t), this.isInstancedInterleavedBuffer = !0, this.meshPerAttribute = n;
|
|
7376
7391
|
}
|
|
@@ -7385,9 +7400,9 @@ var qc = class extends Zr {
|
|
|
7385
7400
|
let t = super.toJSON(e);
|
|
7386
7401
|
return t.isInstancedInterleavedBuffer = !0, t.meshPerAttribute = this.meshPerAttribute, t;
|
|
7387
7402
|
}
|
|
7388
|
-
},
|
|
7403
|
+
}, Xc = /* @__PURE__ */ new z(), Zc = class {
|
|
7389
7404
|
constructor(e, t, n = 0, r = Infinity) {
|
|
7390
|
-
this.ray = new
|
|
7405
|
+
this.ray = new li(e, t), this.near = n, this.far = r, this.camera = null, this.layers = new jn(), this.params = {
|
|
7391
7406
|
Mesh: {},
|
|
7392
7407
|
Line: { threshold: 1 },
|
|
7393
7408
|
LOD: {},
|
|
@@ -7402,34 +7417,59 @@ var qc = class extends Zr {
|
|
|
7402
7417
|
t.isPerspectiveCamera ? (this.ray.origin.setFromMatrixPosition(t.matrixWorld), this.ray.direction.set(e.x, e.y, .5).unproject(t).sub(this.ray.origin).normalize(), this.camera = t) : t.isOrthographicCamera ? (this.ray.origin.set(e.x, e.y, (t.near + t.far) / (t.near - t.far)).unproject(t), this.ray.direction.set(0, 0, -1).transformDirection(t.matrixWorld), this.camera = t) : A("Raycaster: Unsupported camera type: " + t.type);
|
|
7403
7418
|
}
|
|
7404
7419
|
setFromXRController(e) {
|
|
7405
|
-
return
|
|
7420
|
+
return Xc.identity().extractRotation(e.matrixWorld), this.ray.origin.setFromMatrixPosition(e.matrixWorld), this.ray.direction.set(0, 0, -1).applyMatrix4(Xc), this;
|
|
7406
7421
|
}
|
|
7407
7422
|
intersectObject(e, t = !0, n = []) {
|
|
7408
|
-
return
|
|
7423
|
+
return $c(e, this, n, t), n.sort(Qc), n;
|
|
7409
7424
|
}
|
|
7410
7425
|
intersectObjects(e, t = !0, n = []) {
|
|
7411
|
-
for (let r = 0, i = e.length; r < i; r++)
|
|
7412
|
-
return n.sort(
|
|
7426
|
+
for (let r = 0, i = e.length; r < i; r++) $c(e[r], this, n, t);
|
|
7427
|
+
return n.sort(Qc), n;
|
|
7413
7428
|
}
|
|
7414
7429
|
};
|
|
7415
|
-
function
|
|
7430
|
+
function Qc(e, t) {
|
|
7416
7431
|
return e.distance - t.distance;
|
|
7417
7432
|
}
|
|
7418
|
-
function
|
|
7433
|
+
function $c(e, t, n, r) {
|
|
7419
7434
|
let i = !0;
|
|
7420
7435
|
if (e.layers.test(t.layers) && e.raycast(t, n) === !1 && (i = !1), i === !0 && r === !0) {
|
|
7421
7436
|
let r = e.children;
|
|
7422
|
-
for (let e = 0, i = r.length; e < i; e++)
|
|
7437
|
+
for (let e = 0, i = r.length; e < i; e++) $c(r[e], t, n, !0);
|
|
7423
7438
|
}
|
|
7424
7439
|
}
|
|
7425
|
-
var
|
|
7426
|
-
constructor(
|
|
7427
|
-
e.
|
|
7440
|
+
var el = class {
|
|
7441
|
+
constructor(e = !0) {
|
|
7442
|
+
this.autoStart = e, this.startTime = 0, this.oldTime = 0, this.elapsedTime = 0, this.running = !1, k("Clock: This module has been deprecated. Please use THREE.Timer instead.");
|
|
7443
|
+
}
|
|
7444
|
+
start() {
|
|
7445
|
+
this.startTime = performance.now(), this.oldTime = this.startTime, this.elapsedTime = 0, this.running = !0;
|
|
7446
|
+
}
|
|
7447
|
+
stop() {
|
|
7448
|
+
this.getElapsedTime(), this.running = !1, this.autoStart = !1;
|
|
7449
|
+
}
|
|
7450
|
+
getElapsedTime() {
|
|
7451
|
+
return this.getDelta(), this.elapsedTime;
|
|
7452
|
+
}
|
|
7453
|
+
getDelta() {
|
|
7454
|
+
let e = 0;
|
|
7455
|
+
if (this.autoStart && !this.running) return this.start(), 0;
|
|
7456
|
+
if (this.running) {
|
|
7457
|
+
let t = performance.now();
|
|
7458
|
+
e = (t - this.oldTime) / 1e3, this.oldTime = t, this.elapsedTime += e;
|
|
7459
|
+
}
|
|
7460
|
+
return e;
|
|
7461
|
+
}
|
|
7462
|
+
}, tl = class e {
|
|
7463
|
+
static {
|
|
7464
|
+
e.prototype.isMatrix2 = !0;
|
|
7465
|
+
}
|
|
7466
|
+
constructor(e, t, n, r) {
|
|
7467
|
+
this.elements = [
|
|
7428
7468
|
1,
|
|
7429
7469
|
0,
|
|
7430
7470
|
0,
|
|
7431
7471
|
1
|
|
7432
|
-
],
|
|
7472
|
+
], e !== void 0 && this.set(e, t, n, r);
|
|
7433
7473
|
}
|
|
7434
7474
|
identity() {
|
|
7435
7475
|
return this.set(1, 0, 0, 1), this;
|
|
@@ -7442,7 +7482,7 @@ var Qc = class e {
|
|
|
7442
7482
|
let i = this.elements;
|
|
7443
7483
|
return i[0] = e, i[2] = t, i[1] = n, i[3] = r, this;
|
|
7444
7484
|
}
|
|
7445
|
-
},
|
|
7485
|
+
}, nl = /* @__PURE__ */ new I(), rl = /* @__PURE__ */ new I(), il = /* @__PURE__ */ new I(), al = /* @__PURE__ */ new I(), ol = /* @__PURE__ */ new I(), sl = /* @__PURE__ */ new I(), cl = /* @__PURE__ */ new I(), ll = class {
|
|
7446
7486
|
constructor(e = new I(), t = new I()) {
|
|
7447
7487
|
this.start = e, this.end = t;
|
|
7448
7488
|
}
|
|
@@ -7468,29 +7508,31 @@ var Qc = class e {
|
|
|
7468
7508
|
return this.delta(t).multiplyScalar(e).add(this.start);
|
|
7469
7509
|
}
|
|
7470
7510
|
closestPointToPointParameter(e, t) {
|
|
7471
|
-
|
|
7472
|
-
let n =
|
|
7511
|
+
nl.subVectors(e, this.start), rl.subVectors(this.end, this.start);
|
|
7512
|
+
let n = rl.dot(rl);
|
|
7513
|
+
if (n === 0) return 0;
|
|
7514
|
+
let r = rl.dot(nl) / n;
|
|
7473
7515
|
return t && (r = M(r, 0, 1)), r;
|
|
7474
7516
|
}
|
|
7475
7517
|
closestPointToPoint(e, t, n) {
|
|
7476
7518
|
let r = this.closestPointToPointParameter(e, t);
|
|
7477
7519
|
return this.delta(n).multiplyScalar(r).add(this.start);
|
|
7478
7520
|
}
|
|
7479
|
-
distanceSqToLine3(e, t =
|
|
7521
|
+
distanceSqToLine3(e, t = sl, n = cl) {
|
|
7480
7522
|
let r = 1e-8 * 1e-8, i, a, o = this.start, s = e.start, c = this.end, l = e.end;
|
|
7481
|
-
|
|
7482
|
-
let u =
|
|
7523
|
+
il.subVectors(c, o), al.subVectors(l, s), ol.subVectors(o, s);
|
|
7524
|
+
let u = il.dot(il), d = al.dot(al), f = al.dot(ol);
|
|
7483
7525
|
if (u <= r && d <= r) return t.copy(o), n.copy(s), t.sub(n), t.dot(t);
|
|
7484
7526
|
if (u <= r) i = 0, a = f / d, a = M(a, 0, 1);
|
|
7485
7527
|
else {
|
|
7486
|
-
let e =
|
|
7528
|
+
let e = il.dot(ol);
|
|
7487
7529
|
if (d <= r) a = 0, i = M(-e / u, 0, 1);
|
|
7488
7530
|
else {
|
|
7489
|
-
let t =
|
|
7531
|
+
let t = il.dot(al), n = u * d - t * t;
|
|
7490
7532
|
i = n === 0 ? 0 : M((t * f - e * d) / n, 0, 1), a = (t * i + f) / d, a < 0 ? (a = 0, i = M(-e / u, 0, 1)) : a > 1 && (a = 1, i = M((t - e) / u, 0, 1));
|
|
7491
7533
|
}
|
|
7492
7534
|
}
|
|
7493
|
-
return t.copy(o).addScaledVector(
|
|
7535
|
+
return t.copy(o).addScaledVector(il, i), n.copy(s).addScaledVector(al, a), t.distanceToSquared(n);
|
|
7494
7536
|
}
|
|
7495
7537
|
applyMatrix4(e) {
|
|
7496
7538
|
return this.start.applyMatrix4(e), this.end.applyMatrix4(e), this;
|
|
@@ -7501,9 +7543,9 @@ var Qc = class e {
|
|
|
7501
7543
|
clone() {
|
|
7502
7544
|
return new this.constructor().copy(this);
|
|
7503
7545
|
}
|
|
7504
|
-
},
|
|
7546
|
+
}, ul = /* @__PURE__ */ new I(), Q = /* @__PURE__ */ new hc(), dl = class extends va {
|
|
7505
7547
|
constructor(e) {
|
|
7506
|
-
let t = new
|
|
7548
|
+
let t = new Zr(), n = new oa({
|
|
7507
7549
|
color: 16777215,
|
|
7508
7550
|
vertexColors: !0,
|
|
7509
7551
|
toneMapped: !1
|
|
@@ -7515,8 +7557,8 @@ var Qc = class e {
|
|
|
7515
7557
|
function s(e) {
|
|
7516
7558
|
r.push(0, 0, 0), i.push(0, 0, 0), a[e] === void 0 && (a[e] = []), a[e].push(r.length / 3 - 1);
|
|
7517
7559
|
}
|
|
7518
|
-
t.setAttribute("position", new
|
|
7519
|
-
let c = new
|
|
7560
|
+
t.setAttribute("position", new K(r, 3)), t.setAttribute("color", new K(i, 3)), super(t, n), this.type = "CameraHelper", this.camera = e, this.camera.updateProjectionMatrix && this.camera.updateProjectionMatrix(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.pointMap = a, this.update();
|
|
7561
|
+
let c = new H(16755200), l = new H(16711680), u = new H(43775), d = new H(16777215), f = new H(3355443);
|
|
7520
7562
|
this.setColors(c, l, u, d, f);
|
|
7521
7563
|
}
|
|
7522
7564
|
setColors(e, t, n, r, i) {
|
|
@@ -7536,15 +7578,15 @@ var Qc = class e {
|
|
|
7536
7578
|
}
|
|
7537
7579
|
};
|
|
7538
7580
|
function $(e, t, n, r, i, a, o) {
|
|
7539
|
-
|
|
7581
|
+
ul.set(i, a, o).unproject(r);
|
|
7540
7582
|
let s = t[e];
|
|
7541
7583
|
if (s !== void 0) {
|
|
7542
7584
|
let e = n.getAttribute("position");
|
|
7543
|
-
for (let t = 0, n = s.length; t < n; t++) e.setXYZ(s[t],
|
|
7585
|
+
for (let t = 0, n = s.length; t < n; t++) e.setXYZ(s[t], ul.x, ul.y, ul.z);
|
|
7544
7586
|
}
|
|
7545
7587
|
}
|
|
7546
|
-
function
|
|
7547
|
-
let i =
|
|
7588
|
+
function fl(e, t, n, r) {
|
|
7589
|
+
let i = pl(r);
|
|
7548
7590
|
switch (n) {
|
|
7549
7591
|
case T: return e * t;
|
|
7550
7592
|
case O: return e * t / i.components * i.byteLength;
|
|
@@ -7593,7 +7635,7 @@ function ll(e, t, n, r) {
|
|
|
7593
7635
|
}
|
|
7594
7636
|
throw Error(`Unable to determine texture byte length for ${n} format.`);
|
|
7595
7637
|
}
|
|
7596
|
-
function
|
|
7638
|
+
function pl(e) {
|
|
7597
7639
|
switch (e) {
|
|
7598
7640
|
case f:
|
|
7599
7641
|
case p: return {
|
|
@@ -7625,8 +7667,8 @@ function ul(e) {
|
|
|
7625
7667
|
}
|
|
7626
7668
|
throw Error(`Unknown texture type ${e}.`);
|
|
7627
7669
|
}
|
|
7628
|
-
typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "
|
|
7670
|
+
typeof __THREE_DEVTOOLS__ < "u" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "184" } })), typeof window < "u" && (window.__THREE__ ? k("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = "184");
|
|
7629
7671
|
//#endregion
|
|
7630
|
-
export {
|
|
7672
|
+
export { Va as $, Ce as $n, kc as $r, Qs as $t, ja as A, Je as Ai, Cc as An, vn as Ar, We as At, Ii as B, Dt as Bi, Mt as Bn, tt as Br, oa as Bt, H as C, Ws as Ci, Bs as Cn, ie as Cr, Ji as Ct, Oa as D, Yn as Di, yc as Dn, Oc as Dr, Ms as Dt, ht as E, pt as Ei, vo as En, Zc as Er, $r as Et, Ha as F, fl as Fi, mo as Fn, ye as Fr, jn as Ft, Zs as G, oe as Gn, is as Gr, va as Gt, Pr as H, k as Hi, ze as Hn, gs as Hr, fo as Ht, _o as I, fs as Ii, $t as In, He as Ir, oc as It, Aa as J, je as Jn, zi as Jr, d as Jt, ee as K, Ne as Kn, $o as Kr, c as Kt, Fa as L, _t as Li, Hs as Ln, Be as Lr, Ac as Lt, co as M, yt as Mi, ba as Mn, rt as Mr, ct as Mt, lo as N, vt as Ni, Z as Nn, Ot as Nr, nt as Nt, Ia as O, Ye as Oi, Qi as On, O as Or, Ke as Ot, Ns as P, A as Pi, po as Pn, rs as Pr, Ls as Pt, ut as Q, Se as Qn, os as Qr, et as Qt, xn as R, Ct as Ri, Vs as Rn, xe as Rr, ma as Rt, el as S, _n as Si, Xe as Sn, re as Sr, Yc as St, L as T, yn as Ti, wc as Tn, li as Tr, Qr as Tt, at as U, Tt as Ui, be as Un, ss as Ur, Ds as Ut, ic as V, St as Vi, Ve as Vn, tr as Vr, uo as Vt, st as W, Et as Wi, D as Wn, yo as Wr, ya as Wt, Ec as X, Pe as Xn, pn as Xr, l as Xt, t as Y, Me as Yn, Pi as Yr, u as Yt, Fs as Z, Fe as Zn, Wr as Zr, $e as Zt, hc as _, b as _i, xs as _n, he as _r, rc as _t, Lc as a, R as ai, nn as an, ke as ar, Br as at, Pa as b, F as bi, s as bn, de as br, ot as bt, Is as c, hr as ci, ui as cn, me as cr, er as ct, gr as d, ps as di, Cs as dn, le as dr, aa as dt, ho as ei, jc as en, we as er, Ua as et, Na as f, f as fi, Es as fn, ue as fr, dt as ft, Js as g, _ as gi, vs as gn, Re as gr, Nc as gt, p as h, C as hi, ys as hn, Le as hr, sc as ht, Wa as i, Us as ii, tl as in, Oe as ir, tc as it, ka as j, cs as ji, Ta as jn, n as jr, Ge as jt, Ic as k, qe as ki, ns as kn, ne as kr, Ue as kt, Fi as l, Rr as li, ws as ln, pe as lr, Da as lt, Zr as m, S as mi, bs as mn, ae as mr, y as mt, Dc as n, ti as ni, Y as nn, Ee as nr, kt as nt, e as o, ac as oi, z as on, Ie as or, K as ot, Lr as p, w as pi, Ss as pn, E as pr, qn as pt, te as q, Ae as qn, m as qr, Ps as qt, Gs as r, lt as ri, Qt as rn, De as rr, Ma as rt, Ze as s, mt as si, Si as sn, _e as sr, v as st, T as t, xc as ti, Xs as tn, Te as tr, An as tt, Rs as u, zr as ui, Ts as un, ce as ur, na as ut, dl as v, x as vi, i as vn, ge as vr, dn as vt, zs as w, ft as wi, V as wn, _s as wr, g as wt, r as x, I as xi, o as xn, se as xr, Bi as xt, Za as y, h as yi, a as yn, fe as yr, it as yt, bn as z, ls as zi, ve as zn, Qe as zr, ll as zt };
|
|
7631
7673
|
|
|
7632
|
-
//# sourceMappingURL=three.core-
|
|
7674
|
+
//# sourceMappingURL=three.core-K1JzUaep.mjs.map
|