vis-core 0.14.5 → 0.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +26 -26
- package/dist/index.module.js +544 -481
- package/dist/version.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.module.js
CHANGED
|
@@ -4,7 +4,7 @@ var SX = Object.getOwnPropertyDescriptors;
|
|
|
4
4
|
var E2 = Object.getOwnPropertySymbols, YX = Object.getPrototypeOf, NX = Object.prototype.hasOwnProperty, IX = Object.prototype.propertyIsEnumerable, TX = Reflect.get;
|
|
5
5
|
var Ra = (n, t) => (t = Symbol[n]) ? t : Symbol.for("Symbol." + n), MX = (n) => {
|
|
6
6
|
throw TypeError(n);
|
|
7
|
-
},
|
|
7
|
+
}, hl = Math.pow, Ih = (n, t, e) => t in n ? LX(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, kt = (n, t) => {
|
|
8
8
|
for (var e in t || (t = {}))
|
|
9
9
|
NX.call(t, e) && Ih(n, e, t[e]);
|
|
10
10
|
if (E2)
|
|
@@ -65,7 +65,7 @@ import H5 from "geojson-cn/extra/countries.json";
|
|
|
65
65
|
* Copyright 2010-2024 Three.js Authors
|
|
66
66
|
* SPDX-License-Identifier: MIT
|
|
67
67
|
*/
|
|
68
|
-
const
|
|
68
|
+
const il = "165", QX = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, AX = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, z5 = 0, $u = 1, K5 = 2, jX = 3, DX = 0, gm = 1, J5 = 2, tn = 3, Ei = 0, W0 = 1, ze = 2, H0 = 0, Rn = 1, ho = 2, t1 = 3, e1 = 4, k5 = 5, _n = 100, U5 = 101, B5 = 102, E5 = 103, P5 = 104, Q5 = 200, A5 = 201, j5 = 202, D5 = 203, tr = 204, er = 205, O5 = 206, _5 = 207, q5 = 208, $5 = 209, tZ = 210, eZ = 211, iZ = 212, nZ = 213, sZ = 214, fm = 0, xm = 1, ir = 2, ia = 3, uo = 4, Rm = 5, Lm = 6, Ar = 7, Qo = 0, lZ = 1, aZ = 2, Ln = 0, oZ = 1, cZ = 2, dZ = 3, rZ = 4, hZ = 5, uZ = 6, mZ = 7, i1 = "attached", pZ = "detached", Vn = 300, cn = 301, Nn = 302, na = 303, sa = 304, nl = 306, xe = 1e3, Z0 = 1001, Qs = 1002, Je = 1003, Ao = 1004, OX = 1004, $n = 1005, _X = 1005, Ie = 1006, Js = 1007, qX = 1007, li = 1008, $X = 1008, F0 = 1009, bZ = 1010, ZZ = 1011, mo = 1012, Cm = 1013, is = 1014, I0 = 1015, ai = 1016, Sm = 1017, Ym = 1018, ns = 1020, GZ = 35902, XZ = 1021, WZ = 1022, R0 = 1023, yZ = 1024, VZ = 1025, ks = 1026, ss = 1027, jr = 1028, Nm = 1029, gZ = 1030, Im = 1031, Tm = 1033, Jd = 33776, kd = 33777, Ud = 33778, Bd = 33779, n1 = 35840, s1 = 35841, l1 = 35842, a1 = 35843, o1 = 36196, c1 = 37492, d1 = 37496, r1 = 37808, h1 = 37809, u1 = 37810, m1 = 37811, p1 = 37812, b1 = 37813, Z1 = 37814, G1 = 37815, X1 = 37816, W1 = 37817, y1 = 37818, V1 = 37819, g1 = 37820, f1 = 37821, Ed = 36492, x1 = 36494, R1 = 36495, fZ = 36283, L1 = 36284, C1 = 36285, S1 = 36286, xZ = 2200, RZ = 2201, LZ = 2202, la = 2300, aa = 2301, Pd = 2302, Ms = 2400, Fs = 2401, po = 2402, Dr = 2500, Mm = 2501, CZ = 0, Fm = 1, nr = 2, In = 3200, Or = 3201, as = 0, SZ = 1, si = "", Xe = "srgb", h0 = "srgb-linear", _r = "display-p3", jo = "display-p3-linear", bo = "linear", De = "srgb", Zo = "rec709", Go = "p3", tW = 0, Ls = 7680, eW = 7681, iW = 7682, nW = 7683, sW = 34055, lW = 34056, aW = 5386, oW = 512, cW = 513, dW = 514, rW = 515, hW = 516, uW = 517, mW = 518, Y1 = 519, YZ = 512, NZ = 513, IZ = 514, vm = 515, TZ = 516, MZ = 517, FZ = 518, vZ = 519, Xo = 35044, wZ = 35048, pW = 35040, bW = 35045, ZW = 35049, GW = 35041, XW = 35046, WW = 35050, yW = 35042, VW = "100", N1 = "300 es", en = 2e3, Wo = 2001;
|
|
69
69
|
let Si = class {
|
|
70
70
|
addEventListener(t, e) {
|
|
71
71
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -99,7 +99,7 @@ let Si = class {
|
|
|
99
99
|
};
|
|
100
100
|
const K0 = ["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"];
|
|
101
101
|
let O2 = 1234567;
|
|
102
|
-
const Us = Math.PI / 180,
|
|
102
|
+
const Us = Math.PI / 180, oa = 180 / Math.PI;
|
|
103
103
|
function Wi() {
|
|
104
104
|
const n = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
|
|
105
105
|
return (K0[n & 255] + K0[n >> 8 & 255] + K0[n >> 16 & 255] + K0[n >> 24 & 255] + "-" + K0[t & 255] + K0[t >> 8 & 255] + "-" + K0[t >> 16 & 15 | 64] + K0[t >> 24 & 255] + "-" + K0[e & 63 | 128] + K0[e >> 8 & 255] + "-" + K0[e >> 16 & 255] + K0[e >> 24 & 255] + K0[i & 255] + K0[i >> 8 & 255] + K0[i >> 16 & 255] + K0[i >> 24 & 255]).toLowerCase();
|
|
@@ -149,7 +149,7 @@ function TW(n) {
|
|
|
149
149
|
return n * Us;
|
|
150
150
|
}
|
|
151
151
|
function MW(n) {
|
|
152
|
-
return n *
|
|
152
|
+
return n * oa;
|
|
153
153
|
}
|
|
154
154
|
function FW(n) {
|
|
155
155
|
return (n & n - 1) === 0 && n !== 0;
|
|
@@ -225,9 +225,9 @@ function me(n, t) {
|
|
|
225
225
|
throw new Error("Invalid component type.");
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
const
|
|
228
|
+
const ca = {
|
|
229
229
|
DEG2RAD: Us,
|
|
230
|
-
RAD2DEG:
|
|
230
|
+
RAD2DEG: oa,
|
|
231
231
|
generateUUID: Wi,
|
|
232
232
|
clamp: X0,
|
|
233
233
|
euclideanModulo: wm,
|
|
@@ -645,7 +645,7 @@ const zW = {
|
|
|
645
645
|
Float32Array,
|
|
646
646
|
Float64Array
|
|
647
647
|
};
|
|
648
|
-
function
|
|
648
|
+
function Ul(n, t) {
|
|
649
649
|
return new zW[n](t);
|
|
650
650
|
}
|
|
651
651
|
function yo(n) {
|
|
@@ -751,13 +751,13 @@ const q2 = /* @__PURE__ */ new ue().set(
|
|
|
751
751
|
return n === si ? bo : Rc[n].transfer;
|
|
752
752
|
}
|
|
753
753
|
};
|
|
754
|
-
function
|
|
754
|
+
function Ol(n) {
|
|
755
755
|
return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);
|
|
756
756
|
}
|
|
757
757
|
function vh(n) {
|
|
758
758
|
return n < 31308e-7 ? n * 12.92 : 1.055 * Math.pow(n, 0.41666) - 0.055;
|
|
759
759
|
}
|
|
760
|
-
let
|
|
760
|
+
let ul;
|
|
761
761
|
class KZ {
|
|
762
762
|
static getDataURL(t) {
|
|
763
763
|
if (/^data:/i.test(t.src) || typeof HTMLCanvasElement == "undefined")
|
|
@@ -766,9 +766,9 @@ class KZ {
|
|
|
766
766
|
if (t instanceof HTMLCanvasElement)
|
|
767
767
|
e = t;
|
|
768
768
|
else {
|
|
769
|
-
|
|
770
|
-
const i =
|
|
771
|
-
t instanceof ImageData ? i.putImageData(t, 0, 0) : i.drawImage(t, 0, 0, t.width, t.height), e =
|
|
769
|
+
ul === void 0 && (ul = yo("canvas")), ul.width = t.width, ul.height = t.height;
|
|
770
|
+
const i = ul.getContext("2d");
|
|
771
|
+
t instanceof ImageData ? i.putImageData(t, 0, 0) : i.drawImage(t, 0, 0, t.width, t.height), e = ul;
|
|
772
772
|
}
|
|
773
773
|
return e.width > 2048 || e.height > 2048 ? (console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons", t), e.toDataURL("image/jpeg", 0.6)) : e.toDataURL("image/png");
|
|
774
774
|
}
|
|
@@ -780,12 +780,12 @@ class KZ {
|
|
|
780
780
|
i.drawImage(t, 0, 0, t.width, t.height);
|
|
781
781
|
const s = i.getImageData(0, 0, t.width, t.height), l = s.data;
|
|
782
782
|
for (let a = 0; a < l.length; a++)
|
|
783
|
-
l[a] =
|
|
783
|
+
l[a] = Ol(l[a] / 255) * 255;
|
|
784
784
|
return i.putImageData(s, 0, 0), e;
|
|
785
785
|
} else if (t.data) {
|
|
786
786
|
const e = t.data.slice(0);
|
|
787
787
|
for (let i = 0; i < e.length; i++)
|
|
788
|
-
e instanceof Uint8Array || e instanceof Uint8ClampedArray ? e[i] = Math.floor(
|
|
788
|
+
e instanceof Uint8Array || e instanceof Uint8ClampedArray ? e[i] = Math.floor(Ol(e[i] / 255) * 255) : e[i] = Ol(e[i]);
|
|
789
789
|
return {
|
|
790
790
|
data: e,
|
|
791
791
|
width: t.width,
|
|
@@ -899,7 +899,7 @@ class Ue extends Si {
|
|
|
899
899
|
case Z0:
|
|
900
900
|
t.x = t.x < 0 ? 0 : 1;
|
|
901
901
|
break;
|
|
902
|
-
case
|
|
902
|
+
case Qs:
|
|
903
903
|
Math.abs(Math.floor(t.x) % 2) === 1 ? t.x = Math.ceil(t.x) - t.x : t.x = t.x - Math.floor(t.x);
|
|
904
904
|
break;
|
|
905
905
|
}
|
|
@@ -911,7 +911,7 @@ class Ue extends Si {
|
|
|
911
911
|
case Z0:
|
|
912
912
|
t.y = t.y < 0 ? 0 : 1;
|
|
913
913
|
break;
|
|
914
|
-
case
|
|
914
|
+
case Qs:
|
|
915
915
|
Math.abs(Math.floor(t.y) % 2) === 1 ? t.y = Math.ceil(t.y) - t.y : t.y = t.y - Math.floor(t.y);
|
|
916
916
|
break;
|
|
917
917
|
}
|
|
@@ -1788,7 +1788,7 @@ class y0 {
|
|
|
1788
1788
|
intersectsTriangle(t) {
|
|
1789
1789
|
if (this.isEmpty())
|
|
1790
1790
|
return !1;
|
|
1791
|
-
this.getCenter(La), Cc.subVectors(this.max, La),
|
|
1791
|
+
this.getCenter(La), Cc.subVectors(this.max, La), ml.subVectors(t.a, La), pl.subVectors(t.b, La), bl.subVectors(t.c, La), wn.subVectors(pl, ml), Hn.subVectors(bl, pl), rs.subVectors(ml, bl);
|
|
1792
1792
|
let e = [
|
|
1793
1793
|
0,
|
|
1794
1794
|
-wn.z,
|
|
@@ -1818,7 +1818,7 @@ class y0 {
|
|
|
1818
1818
|
rs.x,
|
|
1819
1819
|
0
|
|
1820
1820
|
];
|
|
1821
|
-
return !zh(e,
|
|
1821
|
+
return !zh(e, ml, pl, bl, Cc) || (e = [1, 0, 0, 0, 1, 0, 0, 0, 1], !zh(e, ml, pl, bl, Cc)) ? !1 : (Sc.crossVectors(wn, Hn), e = [Sc.x, Sc.y, Sc.z], zh(e, ml, pl, bl, Cc));
|
|
1822
1822
|
}
|
|
1823
1823
|
clampPoint(t, e) {
|
|
1824
1824
|
return e.copy(t).clamp(this.min, this.max);
|
|
@@ -1854,7 +1854,7 @@ const un = [
|
|
|
1854
1854
|
/* @__PURE__ */ new Y(),
|
|
1855
1855
|
/* @__PURE__ */ new Y(),
|
|
1856
1856
|
/* @__PURE__ */ new Y()
|
|
1857
|
-
], Ii = /* @__PURE__ */ new Y(), Lc = /* @__PURE__ */ new y0(),
|
|
1857
|
+
], Ii = /* @__PURE__ */ new Y(), Lc = /* @__PURE__ */ new y0(), ml = /* @__PURE__ */ new Y(), pl = /* @__PURE__ */ new Y(), bl = /* @__PURE__ */ new Y(), wn = /* @__PURE__ */ new Y(), Hn = /* @__PURE__ */ new Y(), rs = /* @__PURE__ */ new Y(), La = /* @__PURE__ */ new Y(), Cc = /* @__PURE__ */ new Y(), Sc = /* @__PURE__ */ new Y(), hs = /* @__PURE__ */ new Y();
|
|
1858
1858
|
function zh(n, t, e, i, s) {
|
|
1859
1859
|
for (let l = 0, a = n.length - 3; l <= a; l += 3) {
|
|
1860
1860
|
hs.fromArray(n, l);
|
|
@@ -1940,7 +1940,7 @@ let T0 = class {
|
|
|
1940
1940
|
}
|
|
1941
1941
|
};
|
|
1942
1942
|
const mn = /* @__PURE__ */ new Y(), Jh = /* @__PURE__ */ new Y(), Yc = /* @__PURE__ */ new Y(), zn = /* @__PURE__ */ new Y(), kh = /* @__PURE__ */ new Y(), Nc = /* @__PURE__ */ new Y(), Uh = /* @__PURE__ */ new Y();
|
|
1943
|
-
class
|
|
1943
|
+
class sl {
|
|
1944
1944
|
constructor(t = new Y(), e = new Y(0, 0, -1)) {
|
|
1945
1945
|
this.origin = t, this.direction = e;
|
|
1946
1946
|
}
|
|
@@ -2155,7 +2155,7 @@ class Et {
|
|
|
2155
2155
|
), this;
|
|
2156
2156
|
}
|
|
2157
2157
|
extractRotation(t) {
|
|
2158
|
-
const e = this.elements, i = t.elements, s = 1 /
|
|
2158
|
+
const e = this.elements, i = t.elements, s = 1 / Zl.setFromMatrixColumn(t, 0).length(), l = 1 / Zl.setFromMatrixColumn(t, 1).length(), a = 1 / Zl.setFromMatrixColumn(t, 2).length();
|
|
2159
2159
|
return e[0] = i[0] * s, e[1] = i[1] * s, e[2] = i[2] * s, e[3] = 0, e[4] = i[4] * l, e[5] = i[5] * l, e[6] = i[6] * l, e[7] = 0, e[8] = i[8] * a, e[9] = i[9] * a, e[10] = i[10] * a, e[11] = 0, e[12] = 0, e[13] = 0, e[14] = 0, e[15] = 1, this;
|
|
2160
2160
|
}
|
|
2161
2161
|
makeRotationFromEuler(t) {
|
|
@@ -2396,8 +2396,8 @@ class Et {
|
|
|
2396
2396
|
}
|
|
2397
2397
|
decompose(t, e, i) {
|
|
2398
2398
|
const s = this.elements;
|
|
2399
|
-
let l =
|
|
2400
|
-
const a =
|
|
2399
|
+
let l = Zl.set(s[0], s[1], s[2]).length();
|
|
2400
|
+
const a = Zl.set(s[4], s[5], s[6]).length(), o = Zl.set(s[8], s[9], s[10]).length();
|
|
2401
2401
|
this.determinant() < 0 && (l = -l), t.x = s[12], t.y = s[13], t.z = s[14], Ti.copy(this);
|
|
2402
2402
|
const d = 1 / l, r = 1 / a, h = 1 / o;
|
|
2403
2403
|
return Ti.elements[0] *= d, Ti.elements[1] *= d, Ti.elements[2] *= d, Ti.elements[4] *= r, Ti.elements[5] *= r, Ti.elements[6] *= r, Ti.elements[8] *= h, Ti.elements[9] *= h, Ti.elements[10] *= h, e.setFromRotationMatrix(Ti), i.x = l, i.y = a, i.z = o, this;
|
|
@@ -2440,7 +2440,7 @@ class Et {
|
|
|
2440
2440
|
return t[e] = i[0], t[e + 1] = i[1], t[e + 2] = i[2], t[e + 3] = i[3], t[e + 4] = i[4], t[e + 5] = i[5], t[e + 6] = i[6], t[e + 7] = i[7], t[e + 8] = i[8], t[e + 9] = i[9], t[e + 10] = i[10], t[e + 11] = i[11], t[e + 12] = i[12], t[e + 13] = i[13], t[e + 14] = i[14], t[e + 15] = i[15], t;
|
|
2441
2441
|
}
|
|
2442
2442
|
}
|
|
2443
|
-
const
|
|
2443
|
+
const Zl = /* @__PURE__ */ new Y(), Ti = /* @__PURE__ */ new Et(), QW = /* @__PURE__ */ new Y(0, 0, 0), AW = /* @__PURE__ */ new Y(1, 1, 1), Kn = /* @__PURE__ */ new Y(), Ic = /* @__PURE__ */ new Y(), hi = /* @__PURE__ */ new Y(), e9 = /* @__PURE__ */ new Et(), i9 = /* @__PURE__ */ new Be();
|
|
2444
2444
|
class P0 {
|
|
2445
2445
|
constructor(t = 0, e = 0, i = 0, s = P0.DEFAULT_ORDER) {
|
|
2446
2446
|
this.isEuler = !0, this._x = t, this._y = e, this._z = i, this._order = s;
|
|
@@ -2562,7 +2562,7 @@ class $r {
|
|
|
2562
2562
|
}
|
|
2563
2563
|
}
|
|
2564
2564
|
let jW = 0;
|
|
2565
|
-
const n9 = /* @__PURE__ */ new Y(),
|
|
2565
|
+
const n9 = /* @__PURE__ */ new Y(), Gl = /* @__PURE__ */ new Be(), pn = /* @__PURE__ */ new Et(), Tc = /* @__PURE__ */ new Y(), Sa = /* @__PURE__ */ new Y(), DW = /* @__PURE__ */ new Y(), OW = /* @__PURE__ */ new Be(), s9 = /* @__PURE__ */ new Y(1, 0, 0), l9 = /* @__PURE__ */ new Y(0, 1, 0), a9 = /* @__PURE__ */ new Y(0, 0, 1), o9 = { type: "added" }, _W = { type: "removed" }, Xl = { type: "childadded", child: null }, Bh = { type: "childremoved", child: null };
|
|
2566
2566
|
class We extends Si {
|
|
2567
2567
|
constructor() {
|
|
2568
2568
|
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: jW++ }), this.uuid = Wi(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = We.DEFAULT_UP.clone();
|
|
@@ -2629,10 +2629,10 @@ class We extends Si {
|
|
|
2629
2629
|
this.quaternion.copy(t);
|
|
2630
2630
|
}
|
|
2631
2631
|
rotateOnAxis(t, e) {
|
|
2632
|
-
return
|
|
2632
|
+
return Gl.setFromAxisAngle(t, e), this.quaternion.multiply(Gl), this;
|
|
2633
2633
|
}
|
|
2634
2634
|
rotateOnWorldAxis(t, e) {
|
|
2635
|
-
return
|
|
2635
|
+
return Gl.setFromAxisAngle(t, e), this.quaternion.premultiply(Gl), this;
|
|
2636
2636
|
}
|
|
2637
2637
|
rotateX(t) {
|
|
2638
2638
|
return this.rotateOnAxis(s9, t);
|
|
@@ -2664,7 +2664,7 @@ class We extends Si {
|
|
|
2664
2664
|
lookAt(t, e, i) {
|
|
2665
2665
|
t.isVector3 ? Tc.copy(t) : Tc.set(t, e, i);
|
|
2666
2666
|
const s = this.parent;
|
|
2667
|
-
this.updateWorldMatrix(!0, !1), Sa.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? pn.lookAt(Sa, Tc, this.up) : pn.lookAt(Tc, Sa, this.up), this.quaternion.setFromRotationMatrix(pn), s && (pn.extractRotation(s.matrixWorld),
|
|
2667
|
+
this.updateWorldMatrix(!0, !1), Sa.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? pn.lookAt(Sa, Tc, this.up) : pn.lookAt(Tc, Sa, this.up), this.quaternion.setFromRotationMatrix(pn), s && (pn.extractRotation(s.matrixWorld), Gl.setFromRotationMatrix(pn), this.quaternion.premultiply(Gl.invert()));
|
|
2668
2668
|
}
|
|
2669
2669
|
add(t) {
|
|
2670
2670
|
if (arguments.length > 1) {
|
|
@@ -2672,7 +2672,7 @@ class We extends Si {
|
|
|
2672
2672
|
this.add(arguments[e]);
|
|
2673
2673
|
return this;
|
|
2674
2674
|
}
|
|
2675
|
-
return t === this ? (console.error("THREE.Object3D.add: object can't be added as a child of itself.", t), this) : (t && t.isObject3D ? (t.removeFromParent(), t.parent = this, this.children.push(t), t.dispatchEvent(o9),
|
|
2675
|
+
return t === this ? (console.error("THREE.Object3D.add: object can't be added as a child of itself.", t), this) : (t && t.isObject3D ? (t.removeFromParent(), t.parent = this, this.children.push(t), t.dispatchEvent(o9), Xl.child = t, this.dispatchEvent(Xl), Xl.child = null) : console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.", t), this);
|
|
2676
2676
|
}
|
|
2677
2677
|
remove(t) {
|
|
2678
2678
|
if (arguments.length > 1) {
|
|
@@ -2691,7 +2691,7 @@ class We extends Si {
|
|
|
2691
2691
|
return this.remove(...this.children);
|
|
2692
2692
|
}
|
|
2693
2693
|
attach(t) {
|
|
2694
|
-
return this.updateWorldMatrix(!0, !1), pn.copy(this.matrixWorld).invert(), t.parent !== null && (t.parent.updateWorldMatrix(!0, !1), pn.multiply(t.parent.matrixWorld)), t.applyMatrix4(pn), t.removeFromParent(), t.parent = this, this.children.push(t), t.updateWorldMatrix(!1, !0), t.dispatchEvent(o9),
|
|
2694
|
+
return this.updateWorldMatrix(!0, !1), pn.copy(this.matrixWorld).invert(), t.parent !== null && (t.parent.updateWorldMatrix(!0, !1), pn.multiply(t.parent.matrixWorld)), t.applyMatrix4(pn), t.removeFromParent(), t.parent = this, this.children.push(t), t.updateWorldMatrix(!1, !0), t.dispatchEvent(o9), Xl.child = t, this.dispatchEvent(Xl), Xl.child = null, this;
|
|
2695
2695
|
}
|
|
2696
2696
|
getObjectById(t) {
|
|
2697
2697
|
return this.getObjectByProperty("id", t);
|
|
@@ -2867,7 +2867,7 @@ class We extends Si {
|
|
|
2867
2867
|
We.DEFAULT_UP = /* @__PURE__ */ new Y(0, 1, 0);
|
|
2868
2868
|
We.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
2869
2869
|
We.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
2870
|
-
const Mi = /* @__PURE__ */ new Y(), bn = /* @__PURE__ */ new Y(), Eh = /* @__PURE__ */ new Y(), Zn = /* @__PURE__ */ new Y(),
|
|
2870
|
+
const Mi = /* @__PURE__ */ new Y(), bn = /* @__PURE__ */ new Y(), Eh = /* @__PURE__ */ new Y(), Zn = /* @__PURE__ */ new Y(), Wl = /* @__PURE__ */ new Y(), yl = /* @__PURE__ */ new Y(), c9 = /* @__PURE__ */ new Y(), Ph = /* @__PURE__ */ new Y(), Qh = /* @__PURE__ */ new Y(), Ah = /* @__PURE__ */ new Y();
|
|
2871
2871
|
class Zi {
|
|
2872
2872
|
constructor(t = new Y(), e = new Y(), i = new Y()) {
|
|
2873
2873
|
this.a = t, this.b = e, this.c = i;
|
|
@@ -2941,29 +2941,29 @@ class Zi {
|
|
|
2941
2941
|
closestPointToPoint(t, e) {
|
|
2942
2942
|
const i = this.a, s = this.b, l = this.c;
|
|
2943
2943
|
let a, o;
|
|
2944
|
-
|
|
2945
|
-
const c =
|
|
2944
|
+
Wl.subVectors(s, i), yl.subVectors(l, i), Ph.subVectors(t, i);
|
|
2945
|
+
const c = Wl.dot(Ph), d = yl.dot(Ph);
|
|
2946
2946
|
if (c <= 0 && d <= 0)
|
|
2947
2947
|
return e.copy(i);
|
|
2948
2948
|
Qh.subVectors(t, s);
|
|
2949
|
-
const r =
|
|
2949
|
+
const r = Wl.dot(Qh), h = yl.dot(Qh);
|
|
2950
2950
|
if (r >= 0 && h <= r)
|
|
2951
2951
|
return e.copy(s);
|
|
2952
2952
|
const u = c * h - r * d;
|
|
2953
2953
|
if (u <= 0 && c >= 0 && r <= 0)
|
|
2954
|
-
return a = c / (c - r), e.copy(i).addScaledVector(
|
|
2954
|
+
return a = c / (c - r), e.copy(i).addScaledVector(Wl, a);
|
|
2955
2955
|
Ah.subVectors(t, l);
|
|
2956
|
-
const m =
|
|
2956
|
+
const m = Wl.dot(Ah), b = yl.dot(Ah);
|
|
2957
2957
|
if (b >= 0 && m <= b)
|
|
2958
2958
|
return e.copy(l);
|
|
2959
2959
|
const G = m * d - c * b;
|
|
2960
2960
|
if (G <= 0 && d >= 0 && b <= 0)
|
|
2961
|
-
return o = d / (d - b), e.copy(i).addScaledVector(
|
|
2961
|
+
return o = d / (d - b), e.copy(i).addScaledVector(yl, o);
|
|
2962
2962
|
const Z = r * b - m * h;
|
|
2963
2963
|
if (Z <= 0 && h - r >= 0 && m - b >= 0)
|
|
2964
2964
|
return c9.subVectors(l, s), o = (h - r) / (h - r + (m - b)), e.copy(s).addScaledVector(c9, o);
|
|
2965
2965
|
const p = 1 / (Z + G + u);
|
|
2966
|
-
return a = G * p, o = u * p, e.copy(i).addScaledVector(
|
|
2966
|
+
return a = G * p, o = u * p, e.copy(i).addScaledVector(Wl, a).addScaledVector(yl, o);
|
|
2967
2967
|
}
|
|
2968
2968
|
equals(t) {
|
|
2969
2969
|
return t.a.equals(this.a) && t.b.equals(this.b) && t.c.equals(this.c);
|
|
@@ -3218,7 +3218,7 @@ let ot = class {
|
|
|
3218
3218
|
return this.r = t.r, this.g = t.g, this.b = t.b, this;
|
|
3219
3219
|
}
|
|
3220
3220
|
copySRGBToLinear(t) {
|
|
3221
|
-
return this.r =
|
|
3221
|
+
return this.r = Ol(t.r), this.g = Ol(t.g), this.b = Ol(t.b), this;
|
|
3222
3222
|
}
|
|
3223
3223
|
copyLinearToSRGB(t) {
|
|
3224
3224
|
return this.r = vh(t.r), this.g = vh(t.g), this.b = vh(t.b), this;
|
|
@@ -3330,7 +3330,7 @@ ot.NAMES = kZ;
|
|
|
3330
3330
|
let qW = 0;
|
|
3331
3331
|
class g0 extends Si {
|
|
3332
3332
|
constructor() {
|
|
3333
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: qW++ }), this.uuid = Wi(), this.name = "", this.type = "Material", this.blending = Rn, this.side = Ei, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = tr, this.blendDst = er, this.blendEquation = _n, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new ot(0, 0, 0), this.blendAlpha = 0, this.depthFunc =
|
|
3333
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: qW++ }), this.uuid = Wi(), this.name = "", this.type = "Material", this.blending = Rn, this.side = Ei, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = tr, this.blendDst = er, this.blendEquation = _n, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new ot(0, 0, 0), this.blendAlpha = 0, this.depthFunc = ia, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Y1, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Ls, this.stencilZFail = Ls, this.stencilZPass = Ls, 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.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
3334
3334
|
}
|
|
3335
3335
|
get alphaTest() {
|
|
3336
3336
|
return this._alphaTest;
|
|
@@ -3376,7 +3376,7 @@ class g0 extends Si {
|
|
|
3376
3376
|
generator: "Material.toJSON"
|
|
3377
3377
|
}
|
|
3378
3378
|
};
|
|
3379
|
-
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(t).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(t).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(t).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (i.dispersion = this.dispersion), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(t).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(t).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(t).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(t).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(t).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(t).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(t).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(t).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(t).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(t).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(t).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(t).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(t).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(t).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(t).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(t).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(t).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(t).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapRotation !== void 0 && (i.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(t).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(t).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(t).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== Rn && (i.blending = this.blending), this.side !== Ei && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !== tr && (i.blendSrc = this.blendSrc), this.blendDst !== er && (i.blendDst = this.blendDst), this.blendEquation !== _n && (i.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (i.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (i.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (i.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (i.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (i.blendAlpha = this.blendAlpha), this.depthFunc !==
|
|
3379
|
+
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(t).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(t).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(t).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (i.dispersion = this.dispersion), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(t).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(t).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(t).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(t).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(t).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(t).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(t).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(t).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(t).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(t).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(t).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(t).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(t).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(t).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(t).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(t).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(t).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(t).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapRotation !== void 0 && (i.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(t).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(t).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(t).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== Rn && (i.blending = this.blending), this.side !== Ei && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !== tr && (i.blendSrc = this.blendSrc), this.blendDst !== er && (i.blendDst = this.blendDst), this.blendEquation !== _n && (i.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (i.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (i.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (i.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (i.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (i.blendAlpha = this.blendAlpha), this.depthFunc !== ia && (i.depthFunc = this.depthFunc), this.depthTest === !1 && (i.depthTest = this.depthTest), this.depthWrite === !1 && (i.depthWrite = this.depthWrite), this.colorWrite === !1 && (i.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (i.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Y1 && (i.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (i.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (i.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== Ls && (i.stencilFail = this.stencilFail), this.stencilZFail !== Ls && (i.stencilZFail = this.stencilZFail), this.stencilZPass !== Ls && (i.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (i.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = !0), this.alphaToCoverage === !0 && (i.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = !0), this.forceSinglePass === !0 && (i.forceSinglePass = !0), this.wireframe === !0 && (i.wireframe = !0), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = !0), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
|
|
3380
3380
|
function s(l) {
|
|
3381
3381
|
const a = [];
|
|
3382
3382
|
for (const o in l) {
|
|
@@ -3673,7 +3673,7 @@ class Bt extends ee {
|
|
|
3673
3673
|
}
|
|
3674
3674
|
}
|
|
3675
3675
|
let ay = 0;
|
|
3676
|
-
const fi = /* @__PURE__ */ new Et(), Dh = /* @__PURE__ */ new We(),
|
|
3676
|
+
const fi = /* @__PURE__ */ new Et(), Dh = /* @__PURE__ */ new We(), Vl = /* @__PURE__ */ new Y(), ui = /* @__PURE__ */ new y0(), Ya = /* @__PURE__ */ new y0(), Y0 = /* @__PURE__ */ new Y();
|
|
3677
3677
|
class Ot extends Si {
|
|
3678
3678
|
constructor() {
|
|
3679
3679
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: ay++ }), this.uuid = Wi(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
@@ -3742,7 +3742,7 @@ class Ot extends Si {
|
|
|
3742
3742
|
return Dh.lookAt(t), Dh.updateMatrix(), this.applyMatrix4(Dh.matrix), this;
|
|
3743
3743
|
}
|
|
3744
3744
|
center() {
|
|
3745
|
-
return this.computeBoundingBox(), this.boundingBox.getCenter(
|
|
3745
|
+
return this.computeBoundingBox(), this.boundingBox.getCenter(Vl).negate(), this.translate(Vl.x, Vl.y, Vl.z), this;
|
|
3746
3746
|
}
|
|
3747
3747
|
setFromPoints(t) {
|
|
3748
3748
|
const e = [];
|
|
@@ -3794,7 +3794,7 @@ class Ot extends Si {
|
|
|
3794
3794
|
for (let l = 0, a = e.length; l < a; l++) {
|
|
3795
3795
|
const o = e[l], c = this.morphTargetsRelative;
|
|
3796
3796
|
for (let d = 0, r = o.count; d < r; d++)
|
|
3797
|
-
Y0.fromBufferAttribute(o, d), c && (
|
|
3797
|
+
Y0.fromBufferAttribute(o, d), c && (Vl.fromBufferAttribute(t, d), Y0.add(Vl)), s = Math.max(s, i.distanceToSquared(Y0));
|
|
3798
3798
|
}
|
|
3799
3799
|
this.boundingSphere.radius = Math.sqrt(s), isNaN(this.boundingSphere.radius) && console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this);
|
|
3800
3800
|
}
|
|
@@ -3985,7 +3985,7 @@ class Ot extends Si {
|
|
|
3985
3985
|
this.dispatchEvent({ type: "dispose" });
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
const d9 = /* @__PURE__ */ new Et(), us = /* @__PURE__ */ new
|
|
3988
|
+
const d9 = /* @__PURE__ */ new Et(), us = /* @__PURE__ */ new sl(), vc = /* @__PURE__ */ new T0(), r9 = /* @__PURE__ */ new Y(), gl = /* @__PURE__ */ new Y(), fl = /* @__PURE__ */ new Y(), xl = /* @__PURE__ */ new Y(), Oh = /* @__PURE__ */ new Y(), wc = /* @__PURE__ */ new Y(), Hc = /* @__PURE__ */ new _(), zc = /* @__PURE__ */ new _(), Kc = /* @__PURE__ */ new _(), h9 = /* @__PURE__ */ new Y(), u9 = /* @__PURE__ */ new Y(), m9 = /* @__PURE__ */ new Y(), Jc = /* @__PURE__ */ new Y(), kc = /* @__PURE__ */ new Y();
|
|
3989
3989
|
class Xt extends We {
|
|
3990
3990
|
constructor(t = new Ot(), e = new qt()) {
|
|
3991
3991
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = t, this.material = e, this.updateMorphTargets();
|
|
@@ -4022,7 +4022,7 @@ class Xt extends We {
|
|
|
4022
4022
|
}
|
|
4023
4023
|
raycast(t, e) {
|
|
4024
4024
|
const i = this.geometry, s = this.material, l = this.matrixWorld;
|
|
4025
|
-
s !== void 0 && (i.boundingSphere === null && i.computeBoundingSphere(), vc.copy(i.boundingSphere), vc.applyMatrix4(l), us.copy(t.ray).recast(t.near), !(vc.containsPoint(us.origin) === !1 && (us.intersectSphere(vc, r9) === null || us.origin.distanceToSquared(r9) >
|
|
4025
|
+
s !== void 0 && (i.boundingSphere === null && i.computeBoundingSphere(), vc.copy(i.boundingSphere), vc.applyMatrix4(l), us.copy(t.ray).recast(t.near), !(vc.containsPoint(us.origin) === !1 && (us.intersectSphere(vc, r9) === null || us.origin.distanceToSquared(r9) > hl(t.far - t.near, 2))) && (d9.copy(l).invert(), us.copy(t.ray).applyMatrix4(d9), !(i.boundingBox !== null && us.intersectsBox(i.boundingBox) === !1) && this._computeIntersections(t, e, us)));
|
|
4026
4026
|
}
|
|
4027
4027
|
_computeIntersections(t, e, i) {
|
|
4028
4028
|
let s;
|
|
@@ -4073,10 +4073,10 @@ function oy(n, t, e, i, s, l, a, o) {
|
|
|
4073
4073
|
};
|
|
4074
4074
|
}
|
|
4075
4075
|
function Uc(n, t, e, i, s, l, a, o, c, d) {
|
|
4076
|
-
n.getVertexPosition(o,
|
|
4077
|
-
const r = oy(n, t, e, i,
|
|
4076
|
+
n.getVertexPosition(o, gl), n.getVertexPosition(c, fl), n.getVertexPosition(d, xl);
|
|
4077
|
+
const r = oy(n, t, e, i, gl, fl, xl, Jc);
|
|
4078
4078
|
if (r) {
|
|
4079
|
-
s && (Hc.fromBufferAttribute(s, o), zc.fromBufferAttribute(s, c), Kc.fromBufferAttribute(s, d), r.uv = Zi.getInterpolation(Jc,
|
|
4079
|
+
s && (Hc.fromBufferAttribute(s, o), zc.fromBufferAttribute(s, c), Kc.fromBufferAttribute(s, d), r.uv = Zi.getInterpolation(Jc, gl, fl, xl, Hc, zc, Kc, new _())), l && (Hc.fromBufferAttribute(l, o), zc.fromBufferAttribute(l, c), Kc.fromBufferAttribute(l, d), r.uv1 = Zi.getInterpolation(Jc, gl, fl, xl, Hc, zc, Kc, new _())), a && (h9.fromBufferAttribute(a, o), u9.fromBufferAttribute(a, c), m9.fromBufferAttribute(a, d), r.normal = Zi.getInterpolation(Jc, gl, fl, xl, h9, u9, m9, new Y()), r.normal.dot(i.direction) > 0 && r.normal.multiplyScalar(-1));
|
|
4080
4080
|
const h = {
|
|
4081
4081
|
a: o,
|
|
4082
4082
|
b: c,
|
|
@@ -4084,7 +4084,7 @@ function Uc(n, t, e, i, s, l, a, o, c, d) {
|
|
|
4084
4084
|
normal: new Y(),
|
|
4085
4085
|
materialIndex: 0
|
|
4086
4086
|
};
|
|
4087
|
-
Zi.getNormal(
|
|
4087
|
+
Zi.getNormal(gl, fl, xl, h.normal), r.face = h;
|
|
4088
4088
|
}
|
|
4089
4089
|
return r;
|
|
4090
4090
|
}
|
|
@@ -4129,7 +4129,7 @@ class n0 extends Ot {
|
|
|
4129
4129
|
return new n0(t.width, t.height, t.depth, t.widthSegments, t.heightSegments, t.depthSegments);
|
|
4130
4130
|
}
|
|
4131
4131
|
}
|
|
4132
|
-
function
|
|
4132
|
+
function da(n) {
|
|
4133
4133
|
const t = {};
|
|
4134
4134
|
for (const e in n) {
|
|
4135
4135
|
t[e] = {};
|
|
@@ -4143,7 +4143,7 @@ function ca(n) {
|
|
|
4143
4143
|
function j0(n) {
|
|
4144
4144
|
const t = {};
|
|
4145
4145
|
for (let e = 0; e < n.length; e++) {
|
|
4146
|
-
const i =
|
|
4146
|
+
const i = da(n[e]);
|
|
4147
4147
|
for (const s in i)
|
|
4148
4148
|
t[s] = i[s];
|
|
4149
4149
|
}
|
|
@@ -4159,7 +4159,7 @@ function UZ(n) {
|
|
|
4159
4159
|
const t = n.getRenderTarget();
|
|
4160
4160
|
return t === null ? n.outputColorSpace : t.isXRRenderTarget === !0 ? t.texture.colorSpace : Ye.workingColorSpace;
|
|
4161
4161
|
}
|
|
4162
|
-
const Do = { clone:
|
|
4162
|
+
const Do = { clone: da, merge: j0 };
|
|
4163
4163
|
var dy = `void main() {
|
|
4164
4164
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
4165
4165
|
}`, ry = `void main() {
|
|
@@ -4179,7 +4179,7 @@ class Ae extends g0 {
|
|
|
4179
4179
|
}, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, t !== void 0 && this.setValues(t);
|
|
4180
4180
|
}
|
|
4181
4181
|
copy(t) {
|
|
4182
|
-
return super.copy(t), this.fragmentShader = t.fragmentShader, this.vertexShader = t.vertexShader, this.uniforms =
|
|
4182
|
+
return super.copy(t), this.fragmentShader = t.fragmentShader, this.vertexShader = t.vertexShader, this.uniforms = da(t.uniforms), this.uniformsGroups = cy(t.uniformsGroups), this.defines = Object.assign({}, t.defines), this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.fog = t.fog, this.lights = t.lights, this.clipping = t.clipping, this.extensions = Object.assign({}, t.extensions), this.glslVersion = t.glslVersion, this;
|
|
4183
4183
|
}
|
|
4184
4184
|
toJSON(t) {
|
|
4185
4185
|
const e = super.toJSON(t);
|
|
@@ -4239,7 +4239,7 @@ class Ga extends We {
|
|
|
4239
4239
|
}
|
|
4240
4240
|
}
|
|
4241
4241
|
const kn = /* @__PURE__ */ new Y(), p9 = /* @__PURE__ */ new _(), b9 = /* @__PURE__ */ new _();
|
|
4242
|
-
class
|
|
4242
|
+
class Oe extends Ga {
|
|
4243
4243
|
constructor(t = 50, e = 1, i = 0.1, s = 2e3) {
|
|
4244
4244
|
super(), this.isPerspectiveCamera = !0, this.type = "PerspectiveCamera", this.fov = t, this.zoom = 1, this.near = i, this.far = s, this.focus = 10, this.aspect = e, this.view = null, this.filmGauge = 35, this.filmOffset = 0, this.updateProjectionMatrix();
|
|
4245
4245
|
}
|
|
@@ -4256,7 +4256,7 @@ class $e extends Ga {
|
|
|
4256
4256
|
*/
|
|
4257
4257
|
setFocalLength(t) {
|
|
4258
4258
|
const e = 0.5 * this.getFilmHeight() / t;
|
|
4259
|
-
this.fov =
|
|
4259
|
+
this.fov = oa * 2 * Math.atan(e), this.updateProjectionMatrix();
|
|
4260
4260
|
}
|
|
4261
4261
|
/**
|
|
4262
4262
|
* Calculates the focal length from the current .fov and .filmGauge.
|
|
@@ -4266,7 +4266,7 @@ class $e extends Ga {
|
|
|
4266
4266
|
return 0.5 * this.getFilmHeight() / t;
|
|
4267
4267
|
}
|
|
4268
4268
|
getEffectiveFOV() {
|
|
4269
|
-
return
|
|
4269
|
+
return oa * 2 * Math.atan(
|
|
4270
4270
|
Math.tan(Us * 0.5 * this.fov) / this.zoom
|
|
4271
4271
|
);
|
|
4272
4272
|
}
|
|
@@ -4355,21 +4355,21 @@ class $e extends Ga {
|
|
|
4355
4355
|
return e.object.fov = this.fov, e.object.zoom = this.zoom, e.object.near = this.near, e.object.far = this.far, e.object.focus = this.focus, e.object.aspect = this.aspect, this.view !== null && (e.object.view = Object.assign({}, this.view)), e.object.filmGauge = this.filmGauge, e.object.filmOffset = this.filmOffset, e;
|
|
4356
4356
|
}
|
|
4357
4357
|
}
|
|
4358
|
-
const
|
|
4358
|
+
const Rl = -90, Ll = 1;
|
|
4359
4359
|
class BZ extends We {
|
|
4360
4360
|
constructor(t, e, i) {
|
|
4361
4361
|
super(), this.type = "CubeCamera", this.renderTarget = i, this.coordinateSystem = null, this.activeMipmapLevel = 0;
|
|
4362
|
-
const s = new
|
|
4362
|
+
const s = new Oe(Rl, Ll, t, e);
|
|
4363
4363
|
s.layers = this.layers, this.add(s);
|
|
4364
|
-
const l = new
|
|
4364
|
+
const l = new Oe(Rl, Ll, t, e);
|
|
4365
4365
|
l.layers = this.layers, this.add(l);
|
|
4366
|
-
const a = new
|
|
4366
|
+
const a = new Oe(Rl, Ll, t, e);
|
|
4367
4367
|
a.layers = this.layers, this.add(a);
|
|
4368
|
-
const o = new
|
|
4368
|
+
const o = new Oe(Rl, Ll, t, e);
|
|
4369
4369
|
o.layers = this.layers, this.add(o);
|
|
4370
|
-
const c = new
|
|
4370
|
+
const c = new Oe(Rl, Ll, t, e);
|
|
4371
4371
|
c.layers = this.layers, this.add(c);
|
|
4372
|
-
const d = new
|
|
4372
|
+
const d = new Oe(Rl, Ll, t, e);
|
|
4373
4373
|
d.layers = this.layers, this.add(d);
|
|
4374
4374
|
}
|
|
4375
4375
|
updateCoordinateSystem() {
|
|
@@ -4462,7 +4462,7 @@ class EZ extends e0 {
|
|
|
4462
4462
|
)
|
|
4463
4463
|
}, s = new n0(5, 5, 5), l = new Ae({
|
|
4464
4464
|
name: "CubemapFromEquirect",
|
|
4465
|
-
uniforms:
|
|
4465
|
+
uniforms: da(i.uniforms),
|
|
4466
4466
|
vertexShader: i.vertexShader,
|
|
4467
4467
|
fragmentShader: i.fragmentShader,
|
|
4468
4468
|
side: W0,
|
|
@@ -8856,11 +8856,11 @@ function jg(n, t, e, i, s, l, a) {
|
|
|
8856
8856
|
}
|
|
8857
8857
|
function Z(W, X) {
|
|
8858
8858
|
const y = b(X);
|
|
8859
|
-
y && (y.isCubeTexture || y.mapping ===
|
|
8859
|
+
y && (y.isCubeTexture || y.mapping === nl) ? (r === void 0 && (r = new Xt(
|
|
8860
8860
|
new n0(1, 1, 1),
|
|
8861
8861
|
new Ae({
|
|
8862
8862
|
name: "BackgroundCubeMaterial",
|
|
8863
|
-
uniforms:
|
|
8863
|
+
uniforms: da(Ki.backgroundCube.uniforms),
|
|
8864
8864
|
vertexShader: Ki.backgroundCube.vertexShader,
|
|
8865
8865
|
fragmentShader: Ki.backgroundCube.fragmentShader,
|
|
8866
8866
|
side: W0,
|
|
@@ -8878,7 +8878,7 @@ function jg(n, t, e, i, s, l, a) {
|
|
|
8878
8878
|
new Pi(2, 2),
|
|
8879
8879
|
new Ae({
|
|
8880
8880
|
name: "BackgroundMaterial",
|
|
8881
|
-
uniforms:
|
|
8881
|
+
uniforms: da(Ki.background.uniforms),
|
|
8882
8882
|
vertexShader: Ki.background.vertexShader,
|
|
8883
8883
|
fragmentShader: Ki.background.fragmentShader,
|
|
8884
8884
|
side: Ei,
|
|
@@ -9268,12 +9268,12 @@ function qg(n) {
|
|
|
9268
9268
|
function $g(n) {
|
|
9269
9269
|
let t = /* @__PURE__ */ new WeakMap();
|
|
9270
9270
|
function e(a, o) {
|
|
9271
|
-
return o ===
|
|
9271
|
+
return o === na ? a.mapping = cn : o === sa && (a.mapping = Nn), a;
|
|
9272
9272
|
}
|
|
9273
9273
|
function i(a) {
|
|
9274
9274
|
if (a && a.isTexture) {
|
|
9275
9275
|
const o = a.mapping;
|
|
9276
|
-
if (o ===
|
|
9276
|
+
if (o === na || o === sa)
|
|
9277
9277
|
if (t.has(a)) {
|
|
9278
9278
|
const c = t.get(a).texture;
|
|
9279
9279
|
return e(c, a.mapping);
|
|
@@ -9337,15 +9337,15 @@ class qo extends Ga {
|
|
|
9337
9337
|
return e.object.zoom = this.zoom, e.object.left = this.left, e.object.right = this.right, e.object.top = this.top, e.object.bottom = this.bottom, e.object.near = this.near, e.object.far = this.far, this.view !== null && (e.object.view = Object.assign({}, this.view)), e;
|
|
9338
9338
|
}
|
|
9339
9339
|
}
|
|
9340
|
-
const
|
|
9340
|
+
const Bl = 4, Z9 = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], Is = 20, qh = /* @__PURE__ */ new qo(), G9 = /* @__PURE__ */ new ot();
|
|
9341
9341
|
let $h = null, tu = 0, eu = 0, iu = !1;
|
|
9342
|
-
const Cs = (1 + Math.sqrt(5)) / 2,
|
|
9343
|
-
/* @__PURE__ */ new Y(-Cs,
|
|
9344
|
-
/* @__PURE__ */ new Y(Cs,
|
|
9345
|
-
/* @__PURE__ */ new Y(-
|
|
9346
|
-
/* @__PURE__ */ new Y(
|
|
9347
|
-
/* @__PURE__ */ new Y(0, Cs, -
|
|
9348
|
-
/* @__PURE__ */ new Y(0, Cs,
|
|
9342
|
+
const Cs = (1 + Math.sqrt(5)) / 2, Cl = 1 / Cs, X9 = [
|
|
9343
|
+
/* @__PURE__ */ new Y(-Cs, Cl, 0),
|
|
9344
|
+
/* @__PURE__ */ new Y(Cs, Cl, 0),
|
|
9345
|
+
/* @__PURE__ */ new Y(-Cl, 0, Cs),
|
|
9346
|
+
/* @__PURE__ */ new Y(Cl, 0, Cs),
|
|
9347
|
+
/* @__PURE__ */ new Y(0, Cs, -Cl),
|
|
9348
|
+
/* @__PURE__ */ new Y(0, Cs, Cl),
|
|
9349
9349
|
/* @__PURE__ */ new Y(-1, 1, -1),
|
|
9350
9350
|
/* @__PURE__ */ new Y(1, 1, -1),
|
|
9351
9351
|
/* @__PURE__ */ new Y(-1, 1, 1),
|
|
@@ -9446,7 +9446,7 @@ class sr {
|
|
|
9446
9446
|
this._renderer.compile(e, qh);
|
|
9447
9447
|
}
|
|
9448
9448
|
_sceneToCubeUV(t, e, i, s) {
|
|
9449
|
-
const o = new
|
|
9449
|
+
const o = new Oe(90, 1, e, i), c = [1, -1, 1, 1, 1, 1], d = [1, 1, 1, -1, -1, -1], r = this._renderer, h = r.autoClear, u = r.toneMapping;
|
|
9450
9450
|
r.getClearColor(G9), r.toneMapping = Ln, r.autoClear = !1;
|
|
9451
9451
|
const m = new qt({
|
|
9452
9452
|
name: "PMREM.Background",
|
|
@@ -9528,19 +9528,19 @@ class sr {
|
|
|
9528
9528
|
u.envMap.value = t.texture, u.samples.value = Z, u.weights.value = p, u.latitudinal.value = a === "latitudinal", o && (u.poleAxis.value = o);
|
|
9529
9529
|
const { _lodMax: X } = this;
|
|
9530
9530
|
u.dTheta.value = b, u.mipInt.value = X - i;
|
|
9531
|
-
const y = this._sizeLods[s], g = 3 * y * (s > X -
|
|
9531
|
+
const y = this._sizeLods[s], g = 3 * y * (s > X - Bl ? s - X + Bl : 0), x = 4 * (this._cubeSize - y);
|
|
9532
9532
|
Pc(e, g, x, 3 * y, 2 * y), c.setRenderTarget(e), c.render(h, qh);
|
|
9533
9533
|
}
|
|
9534
9534
|
}
|
|
9535
9535
|
function tf(n) {
|
|
9536
9536
|
const t = [], e = [], i = [];
|
|
9537
9537
|
let s = n;
|
|
9538
|
-
const l = n -
|
|
9538
|
+
const l = n - Bl + 1 + Z9.length;
|
|
9539
9539
|
for (let a = 0; a < l; a++) {
|
|
9540
9540
|
const o = Math.pow(2, s);
|
|
9541
9541
|
e.push(o);
|
|
9542
9542
|
let c = 1 / o;
|
|
9543
|
-
a > n -
|
|
9543
|
+
a > n - Bl ? c = Z9[a - n + Bl - 1] : a === 0 && (c = 0), i.push(c);
|
|
9544
9544
|
const d = 1 / (o - 2), r = -d, h = 1 + d, u = [r, r, h, r, h, h, r, r, h, h, r, h], m = 6, b = 6, G = 3, Z = 2, p = 1, W = new Float32Array(G * b * m), X = new Float32Array(Z * b * m), y = new Float32Array(p * b * m);
|
|
9545
9545
|
for (let x = 0; x < m; x++) {
|
|
9546
9546
|
const C = x % 3 * 2 / 3 - 1, N = x > 2 ? 0 : -1, L = [
|
|
@@ -9568,13 +9568,13 @@ function tf(n) {
|
|
|
9568
9568
|
y.set(R, p * b * x);
|
|
9569
9569
|
}
|
|
9570
9570
|
const g = new Ot();
|
|
9571
|
-
g.setAttribute("position", new ee(W, G)), g.setAttribute("uv", new ee(X, Z)), g.setAttribute("faceIndex", new ee(y, p)), t.push(g), s >
|
|
9571
|
+
g.setAttribute("position", new ee(W, G)), g.setAttribute("uv", new ee(X, Z)), g.setAttribute("faceIndex", new ee(y, p)), t.push(g), s > Bl && s--;
|
|
9572
9572
|
}
|
|
9573
9573
|
return { lodPlanes: t, sizeLods: e, sigmas: i };
|
|
9574
9574
|
}
|
|
9575
9575
|
function W9(n, t, e) {
|
|
9576
9576
|
const i = new e0(n, t, e);
|
|
9577
|
-
return i.texture.mapping =
|
|
9577
|
+
return i.texture.mapping = nl, i.texture.name = "PMREM.cubeUv", i.scissorTest = !0, i;
|
|
9578
9578
|
}
|
|
9579
9579
|
function Pc(n, t, e, i, s) {
|
|
9580
9580
|
n.viewport.set(t, e, i, s), n.scissor.set(t, e, i, s);
|
|
@@ -9801,7 +9801,7 @@ function nf(n) {
|
|
|
9801
9801
|
let t = /* @__PURE__ */ new WeakMap(), e = null;
|
|
9802
9802
|
function i(o) {
|
|
9803
9803
|
if (o && o.isTexture) {
|
|
9804
|
-
const c = o.mapping, d = c ===
|
|
9804
|
+
const c = o.mapping, d = c === na || c === sa, r = c === cn || c === Nn;
|
|
9805
9805
|
if (d || r) {
|
|
9806
9806
|
let h = t.get(o);
|
|
9807
9807
|
const u = h !== void 0 ? h.texture.pmremVersion : 0;
|
|
@@ -10734,7 +10734,7 @@ function bx(n) {
|
|
|
10734
10734
|
case Nn:
|
|
10735
10735
|
t = "ENVMAP_TYPE_CUBE";
|
|
10736
10736
|
break;
|
|
10737
|
-
case
|
|
10737
|
+
case nl:
|
|
10738
10738
|
t = "ENVMAP_TYPE_CUBE_UV";
|
|
10739
10739
|
break;
|
|
10740
10740
|
}
|
|
@@ -11145,7 +11145,7 @@ function fx(n, t, e, i, s, l, a) {
|
|
|
11145
11145
|
return d.add(L), L === 0 ? "uv" : `uv${L}`;
|
|
11146
11146
|
}
|
|
11147
11147
|
function Z(L, R, I, K, H) {
|
|
11148
|
-
const z = K.fog, v = H.geometry, J = L.isMeshStandardMaterial ? K.environment : null, Q = (L.isMeshStandardMaterial ? e : t).get(L.envMap || J), A = Q && Q.mapping ===
|
|
11148
|
+
const z = K.fog, v = H.geometry, J = L.isMeshStandardMaterial ? K.environment : null, Q = (L.isMeshStandardMaterial ? e : t).get(L.envMap || J), A = Q && Q.mapping === nl ? Q.image.height : null, et = b[L.type];
|
|
11149
11149
|
L.precision !== null && (m = s.getMaxPrecision(L.precision), m !== L.precision && console.warn("THREE.WebGLProgram.getParameters:", L.precision, "not supported, using", m, "instead."));
|
|
11150
11150
|
const Vt = v.morphAttributes.position || v.morphAttributes.normal || v.morphAttributes.color, Rt = Vt !== void 0 ? Vt.length : 0;
|
|
11151
11151
|
let Jt = 0;
|
|
@@ -11900,7 +11900,7 @@ function wx(n) {
|
|
|
11900
11900
|
case ir:
|
|
11901
11901
|
n.depthFunc(n.LESS);
|
|
11902
11902
|
break;
|
|
11903
|
-
case
|
|
11903
|
+
case ia:
|
|
11904
11904
|
n.depthFunc(n.LEQUAL);
|
|
11905
11905
|
break;
|
|
11906
11906
|
case uo:
|
|
@@ -11974,7 +11974,7 @@ function wx(n) {
|
|
|
11974
11974
|
return le;
|
|
11975
11975
|
}
|
|
11976
11976
|
const Wt = {};
|
|
11977
|
-
Wt[n.TEXTURE_2D] = lt(n.TEXTURE_2D, n.TEXTURE_2D, 1), Wt[n.TEXTURE_CUBE_MAP] = lt(n.TEXTURE_CUBE_MAP, n.TEXTURE_CUBE_MAP_POSITIVE_X, 6), Wt[n.TEXTURE_2D_ARRAY] = lt(n.TEXTURE_2D_ARRAY, n.TEXTURE_2D_ARRAY, 1, 1), Wt[n.TEXTURE_3D] = lt(n.TEXTURE_3D, n.TEXTURE_3D, 1, 1), s.setClear(0, 0, 0, 1), l.setClear(1), a.setClear(0), ft(n.DEPTH_TEST), l.setFunc(
|
|
11977
|
+
Wt[n.TEXTURE_2D] = lt(n.TEXTURE_2D, n.TEXTURE_2D, 1), Wt[n.TEXTURE_CUBE_MAP] = lt(n.TEXTURE_CUBE_MAP, n.TEXTURE_CUBE_MAP_POSITIVE_X, 6), Wt[n.TEXTURE_2D_ARRAY] = lt(n.TEXTURE_2D_ARRAY, n.TEXTURE_2D_ARRAY, 1, 1), Wt[n.TEXTURE_3D] = lt(n.TEXTURE_3D, n.TEXTURE_3D, 1, 1), s.setClear(0, 0, 0, 1), l.setClear(1), a.setClear(0), ft(n.DEPTH_TEST), l.setFunc(ia), gt(!1), xt($u), ft(n.CULL_FACE), bt(H0);
|
|
11978
11978
|
function ft(k) {
|
|
11979
11979
|
d[k] !== !0 && (n.enable(k), d[k] = !0);
|
|
11980
11980
|
}
|
|
@@ -12392,7 +12392,7 @@ function Hx(n, t, e, i, s, l, a) {
|
|
|
12392
12392
|
const A = {
|
|
12393
12393
|
[xe]: n.REPEAT,
|
|
12394
12394
|
[Z0]: n.CLAMP_TO_EDGE,
|
|
12395
|
-
[
|
|
12395
|
+
[Qs]: n.MIRRORED_REPEAT
|
|
12396
12396
|
}, et = {
|
|
12397
12397
|
[Je]: n.NEAREST,
|
|
12398
12398
|
[Ao]: n.NEAREST_MIPMAP_NEAREST,
|
|
@@ -12883,7 +12883,7 @@ function _Z(n, t) {
|
|
|
12883
12883
|
}
|
|
12884
12884
|
return { convert: e };
|
|
12885
12885
|
}
|
|
12886
|
-
class qZ extends
|
|
12886
|
+
class qZ extends Oe {
|
|
12887
12887
|
constructor(t = []) {
|
|
12888
12888
|
super(), this.isArrayCamera = !0, this.cameras = t;
|
|
12889
12889
|
}
|
|
@@ -13020,9 +13020,9 @@ class Ux extends Si {
|
|
|
13020
13020
|
let p = null, W = null;
|
|
13021
13021
|
const X = [], y = [], g = new _();
|
|
13022
13022
|
let x = null;
|
|
13023
|
-
const C = new
|
|
13023
|
+
const C = new Oe();
|
|
13024
13024
|
C.layers.enable(1), C.viewport = new ge();
|
|
13025
|
-
const N = new
|
|
13025
|
+
const N = new Oe();
|
|
13026
13026
|
N.layers.enable(2), N.viewport = new ge();
|
|
13027
13027
|
const L = [C, N], R = new qZ();
|
|
13028
13028
|
R.layers.enable(1), R.layers.enable(2);
|
|
@@ -13165,7 +13165,7 @@ class Ux extends Si {
|
|
|
13165
13165
|
ft.length === 2 ? A(R, C, N) : R.projectionMatrix.copy(C.projectionMatrix), Vt(lt, R, Wt);
|
|
13166
13166
|
};
|
|
13167
13167
|
function Vt(lt, Wt, ft) {
|
|
13168
|
-
ft === null ? lt.matrix.copy(Wt.matrixWorld) : (lt.matrix.copy(ft.matrixWorld), lt.matrix.invert(), lt.matrix.multiply(Wt.matrixWorld)), lt.matrix.decompose(lt.position, lt.quaternion, lt.scale), lt.updateMatrixWorld(!0), lt.projectionMatrix.copy(Wt.projectionMatrix), lt.projectionMatrixInverse.copy(Wt.projectionMatrixInverse), lt.isPerspectiveCamera && (lt.fov =
|
|
13168
|
+
ft === null ? lt.matrix.copy(Wt.matrixWorld) : (lt.matrix.copy(ft.matrixWorld), lt.matrix.invert(), lt.matrix.multiply(Wt.matrixWorld)), lt.matrix.decompose(lt.position, lt.quaternion, lt.scale), lt.updateMatrixWorld(!0), lt.projectionMatrix.copy(Wt.projectionMatrix), lt.projectionMatrixInverse.copy(Wt.projectionMatrixInverse), lt.isPerspectiveCamera && (lt.fov = oa * 2 * Math.atan(1 / lt.projectionMatrix.elements[5]), lt.zoom = 1);
|
|
13169
13169
|
}
|
|
13170
13170
|
this.getCamera = function() {
|
|
13171
13171
|
return R;
|
|
@@ -13200,7 +13200,7 @@ class Ux extends Si {
|
|
|
13200
13200
|
), t.setRenderTarget(W));
|
|
13201
13201
|
}
|
|
13202
13202
|
let ut = L[ie];
|
|
13203
|
-
ut === void 0 && (ut = new
|
|
13203
|
+
ut === void 0 && (ut = new Oe(), ut.layers.enable(ie), ut.viewport = new ge(), L[ie] = ut), ut.matrix.fromArray($t.transform.matrix), ut.matrix.decompose(ut.position, ut.quaternion, ut.scale), ut.projectionMatrix.fromArray($t.projectionMatrix), ut.projectionMatrixInverse.copy(ut.projectionMatrix).invert(), ut.viewport.set(U.x, U.y, U.width, U.height), ie === 0 && (R.matrix.copy(ut.matrix), R.matrix.decompose(R.position, R.quaternion, R.scale)), Lt === !0 && R.cameras.push(ut);
|
|
13204
13204
|
}
|
|
13205
13205
|
const Dt = s.enabledFeatures;
|
|
13206
13206
|
if (Dt && Dt.includes("depth-sensing")) {
|
|
@@ -13444,7 +13444,7 @@ class $Z {
|
|
|
13444
13444
|
powerPreference: r,
|
|
13445
13445
|
failIfMajorPerformanceCaveat: h
|
|
13446
13446
|
};
|
|
13447
|
-
if ("setAttribute" in e && e.setAttribute("data-engine", `three.js r${
|
|
13447
|
+
if ("setAttribute" in e && e.setAttribute("data-engine", `three.js r${il}`), e.addEventListener("webglcontextlost", Ut, !1), e.addEventListener("webglcontextrestored", j, !1), e.addEventListener("webglcontextcreationerror", Zt, !1), U === null) {
|
|
13448
13448
|
const E = "webgl2";
|
|
13449
13449
|
if (U = ut(E, M), U === null)
|
|
13450
13450
|
throw ut(E) ? new Error("Error creating WebGL context with your selected attributes.") : new Error("Error creating WebGL context.");
|
|
@@ -13591,7 +13591,7 @@ class $Z {
|
|
|
13591
13591
|
Ct.render(at, St);
|
|
13592
13592
|
};
|
|
13593
13593
|
function s0(M, E, q) {
|
|
13594
|
-
M.transparent === !0 && M.side === ze && M.forceSinglePass === !1 ? (M.side = W0, M.needsUpdate = !0,
|
|
13594
|
+
M.transparent === !0 && M.side === ze && M.forceSinglePass === !1 ? (M.side = W0, M.needsUpdate = !0, rl(M, E, q), M.side = Ei, M.needsUpdate = !0, rl(M, E, q), M.side = ze) : rl(M, E, q);
|
|
13595
13595
|
}
|
|
13596
13596
|
this.compile = function(M, E, q = null) {
|
|
13597
13597
|
q === null && (q = M), Z = vt.get(q), Z.init(E), W.push(Z), q.traverseVisible(function(f) {
|
|
@@ -13701,7 +13701,7 @@ class $Z {
|
|
|
13701
13701
|
}
|
|
13702
13702
|
function Xc(M, E, q, V) {
|
|
13703
13703
|
const f = M.opaque, T = M.transmissive, w = M.transparent;
|
|
13704
|
-
Z.setupLightsView(q), lt === !0 && Ht.setGlobalState(X.clippingPlanes, q), V && gt.viewport(R.copy(V)), f.length > 0 &&
|
|
13704
|
+
Z.setupLightsView(q), lt === !0 && Ht.setGlobalState(X.clippingPlanes, q), V && gt.viewport(R.copy(V)), f.length > 0 && dl(f, E, q), T.length > 0 && dl(T, E, q), w.length > 0 && dl(w, E, q), gt.buffers.depth.setTest(!0), gt.buffers.depth.setMask(!0), gt.buffers.color.setMask(!0), gt.setPolygonOffset(!1);
|
|
13705
13705
|
}
|
|
13706
13706
|
function Wc(M, E, q, V) {
|
|
13707
13707
|
if ((q.isScene === !0 ? q.overrideMaterial : null) !== null)
|
|
@@ -13723,7 +13723,7 @@ class $Z {
|
|
|
13723
13723
|
const B = X.toneMapping;
|
|
13724
13724
|
X.toneMapping = Ln;
|
|
13725
13725
|
const tt = V.viewport;
|
|
13726
|
-
if (V.viewport !== void 0 && (V.viewport = void 0), Z.setupLightsView(V), lt === !0 && Ht.setGlobalState(X.clippingPlanes, V),
|
|
13726
|
+
if (V.viewport !== void 0 && (V.viewport = void 0), Z.setupLightsView(V), lt === !0 && Ht.setGlobalState(X.clippingPlanes, V), dl(M, q, V), nt.updateMultisampleRenderTarget(T), nt.updateRenderTargetMipmap(T), bt.has("WEBGL_multisampled_render_to_texture") === !1) {
|
|
13727
13727
|
let rt = !1;
|
|
13728
13728
|
for (let $ = 0, at = E.length; $ < at; $++) {
|
|
13729
13729
|
const ct = E[$], St = ct.object, zt = ct.geometry, Ct = ct.material, yt = ct.group;
|
|
@@ -13736,7 +13736,7 @@ class $Z {
|
|
|
13736
13736
|
}
|
|
13737
13737
|
X.setRenderTarget(P), X.setClearColor(H, z), tt !== void 0 && (V.viewport = tt), X.toneMapping = B;
|
|
13738
13738
|
}
|
|
13739
|
-
function
|
|
13739
|
+
function dl(M, E, q) {
|
|
13740
13740
|
const V = E.isScene === !0 ? E.overrideMaterial : null;
|
|
13741
13741
|
for (let f = 0, T = M.length; f < T; f++) {
|
|
13742
13742
|
const w = M[f], P = w.object, B = w.geometry, tt = V === null ? w.material : V, rt = w.group;
|
|
@@ -13746,7 +13746,7 @@ class $Z {
|
|
|
13746
13746
|
function fa(M, E, q, V, f, T) {
|
|
13747
13747
|
M.onBeforeRender(X, E, q, V, f, T), M.modelViewMatrix.multiplyMatrices(q.matrixWorldInverse, M.matrixWorld), M.normalMatrix.getNormalMatrix(M.modelViewMatrix), f.onBeforeRender(X, E, q, V, M, T), f.transparent === !0 && f.side === ze && f.forceSinglePass === !1 ? (f.side = W0, f.needsUpdate = !0, X.renderBufferDirect(q, E, V, f, M, T), f.side = Ei, f.needsUpdate = !0, X.renderBufferDirect(q, E, V, f, M, T), f.side = ze) : X.renderBufferDirect(q, E, V, f, M, T), M.onAfterRender(X, E, q, V, f, T);
|
|
13748
13748
|
}
|
|
13749
|
-
function
|
|
13749
|
+
function rl(M, E, q) {
|
|
13750
13750
|
E.isScene !== !0 && (E = Dt);
|
|
13751
13751
|
const V = it.get(M), f = Z.state.lights, T = Z.state.shadowsArray, w = f.state.version, P = dt.getParameters(M, f.state, T, E, q), B = dt.getProgramCacheKey(P);
|
|
13752
13752
|
let tt = V.programs;
|
|
@@ -13778,19 +13778,19 @@ class $Z {
|
|
|
13778
13778
|
V.toneMapped && (C === null || C.isXRRenderTarget === !0) && (St = X.toneMapping);
|
|
13779
13779
|
const zt = q.morphAttributes.position || q.morphAttributes.normal || q.morphAttributes.color, Ct = zt !== void 0 ? zt.length : 0, yt = it.get(V), wt = Z.state.lights;
|
|
13780
13780
|
if (lt === !0 && (Wt === !0 || M !== L)) {
|
|
13781
|
-
const
|
|
13782
|
-
Ht.setState(V, M,
|
|
13781
|
+
const $e = M === L && V.id === N;
|
|
13782
|
+
Ht.setState(V, M, $e);
|
|
13783
13783
|
}
|
|
13784
13784
|
let It = !1;
|
|
13785
13785
|
V.version === yt.__version ? (yt.needsLights && yt.lightsStateVersion !== wt.state.version || yt.outputColorSpace !== P || f.isBatchedMesh && yt.batching === !1 || !f.isBatchedMesh && yt.batching === !0 || f.isBatchedMesh && yt.batchingColor === !0 && f.colorTexture === null || f.isBatchedMesh && yt.batchingColor === !1 && f.colorTexture !== null || f.isInstancedMesh && yt.instancing === !1 || !f.isInstancedMesh && yt.instancing === !0 || f.isSkinnedMesh && yt.skinning === !1 || !f.isSkinnedMesh && yt.skinning === !0 || f.isInstancedMesh && yt.instancingColor === !0 && f.instanceColor === null || f.isInstancedMesh && yt.instancingColor === !1 && f.instanceColor !== null || f.isInstancedMesh && yt.instancingMorph === !0 && f.morphTexture === null || f.isInstancedMesh && yt.instancingMorph === !1 && f.morphTexture !== null || yt.envMap !== B || V.fog === !0 && yt.fog !== T || yt.numClippingPlanes !== void 0 && (yt.numClippingPlanes !== Ht.numPlanes || yt.numIntersection !== Ht.numIntersection) || yt.vertexAlphas !== tt || yt.vertexTangents !== rt || yt.morphTargets !== $ || yt.morphNormals !== at || yt.morphColors !== ct || yt.toneMapping !== St || yt.morphTargetsCount !== Ct) && (It = !0) : (It = !0, yt.__version = V.version);
|
|
13786
13786
|
let _t = yt.currentProgram;
|
|
13787
|
-
It === !0 && (_t =
|
|
13787
|
+
It === !0 && (_t = rl(V, E, f));
|
|
13788
13788
|
let Se = !1, Fe = !1, w0 = !1;
|
|
13789
13789
|
const de = _t.getUniforms(), he = yt.uniforms;
|
|
13790
13790
|
if (gt.useProgram(_t.program) && (Se = !0, Fe = !0, w0 = !0), V.id !== N && (N = V.id, Fe = !0), Se || L !== M) {
|
|
13791
13791
|
de.setValue(U, "projectionMatrix", M.projectionMatrix), de.setValue(U, "viewMatrix", M.matrixWorldInverse);
|
|
13792
|
-
const
|
|
13793
|
-
|
|
13792
|
+
const $e = de.map.cameraPosition;
|
|
13793
|
+
$e !== void 0 && $e.setValue(U, Lt.setFromMatrixPosition(M.matrixWorld)), Yt.logarithmicDepthBuffer && de.setValue(
|
|
13794
13794
|
U,
|
|
13795
13795
|
"logDepthBufFC",
|
|
13796
13796
|
2 / (Math.log(M.far + 1) / Math.LN2)
|
|
@@ -13798,15 +13798,15 @@ class $Z {
|
|
|
13798
13798
|
}
|
|
13799
13799
|
if (f.isSkinnedMesh) {
|
|
13800
13800
|
de.setOptional(U, f, "bindMatrix"), de.setOptional(U, f, "bindMatrixInverse");
|
|
13801
|
-
const
|
|
13802
|
-
|
|
13801
|
+
const $e = f.skeleton;
|
|
13802
|
+
$e && ($e.boneTexture === null && $e.computeBoneTexture(), de.setValue(U, "boneTexture", $e.boneTexture, nt));
|
|
13803
13803
|
}
|
|
13804
13804
|
f.isBatchedMesh && (de.setOptional(U, f, "batchingTexture"), de.setValue(U, "batchingTexture", f._matricesTexture, nt), de.setOptional(U, f, "batchingColorTexture"), f._colorsTexture !== null && de.setValue(U, "batchingColorTexture", f._colorsTexture, nt));
|
|
13805
13805
|
const l0 = q.morphAttributes;
|
|
13806
13806
|
if ((l0.position !== void 0 || l0.normal !== void 0 || l0.color !== void 0) && Pt.update(f, q, _t), (Fe || yt.receiveShadow !== f.receiveShadow) && (yt.receiveShadow = f.receiveShadow, de.setValue(U, "receiveShadow", f.receiveShadow)), V.isMeshGouraudMaterial && V.envMap !== null && (he.envMap.value = B, he.flipEnvMap.value = B.isCubeTexture && B.isRenderTargetTexture === !1 ? -1 : 1), V.isMeshStandardMaterial && V.envMap === null && E.environment !== null && (he.envMapIntensity.value = E.environmentIntensity), Fe && (de.setValue(U, "toneMappingExposure", X.toneMappingExposure), yt.needsLights && gc(he, w0), T && V.fog === !0 && mt.refreshFogUniforms(he, T), mt.refreshMaterialUniforms(he, V, Q, J, Z.state.transmissionRenderTarget[M.id]), Qd.upload(U, yc(yt), he, nt)), V.isShaderMaterial && V.uniformsNeedUpdate === !0 && (Qd.upload(U, yc(yt), he, nt), V.uniformsNeedUpdate = !1), V.isSpriteMaterial && de.setValue(U, "center", f.center), de.setValue(U, "modelViewMatrix", f.modelViewMatrix), de.setValue(U, "normalMatrix", f.normalMatrix), de.setValue(U, "modelMatrix", f.matrixWorld), V.isShaderMaterial || V.isRawShaderMaterial) {
|
|
13807
|
-
const
|
|
13808
|
-
for (let u0 = 0, ve =
|
|
13809
|
-
const ke =
|
|
13807
|
+
const $e = V.uniformsGroups;
|
|
13808
|
+
for (let u0 = 0, ve = $e.length; u0 < ve; u0++) {
|
|
13809
|
+
const ke = $e[u0];
|
|
13810
13810
|
se.update(ke, _t), se.bind(ke, _t);
|
|
13811
13811
|
}
|
|
13812
13812
|
}
|
|
@@ -13989,7 +13989,7 @@ class sh {
|
|
|
13989
13989
|
};
|
|
13990
13990
|
}
|
|
13991
13991
|
}
|
|
13992
|
-
class
|
|
13992
|
+
class As extends We {
|
|
13993
13993
|
constructor() {
|
|
13994
13994
|
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 P0(), this.environmentIntensity = 1, this.environmentRotation = new P0(), this.overrideMaterial = null, typeof __THREE_DEVTOOLS__ != "undefined" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
|
|
13995
13995
|
}
|
|
@@ -14170,12 +14170,12 @@ class tc extends g0 {
|
|
|
14170
14170
|
return super.copy(t), this.color.copy(t.color), this.map = t.map, this.alphaMap = t.alphaMap, this.rotation = t.rotation, this.sizeAttenuation = t.sizeAttenuation, this.fog = t.fog, this;
|
|
14171
14171
|
}
|
|
14172
14172
|
}
|
|
14173
|
-
let
|
|
14174
|
-
const Na = /* @__PURE__ */ new Y(),
|
|
14173
|
+
let Sl;
|
|
14174
|
+
const Na = /* @__PURE__ */ new Y(), Yl = /* @__PURE__ */ new Y(), Nl = /* @__PURE__ */ new Y(), Il = /* @__PURE__ */ new _(), Ia = /* @__PURE__ */ new _(), t3 = /* @__PURE__ */ new Et(), Qc = /* @__PURE__ */ new Y(), Ta = /* @__PURE__ */ new Y(), Ac = /* @__PURE__ */ new Y(), H9 = /* @__PURE__ */ new _(), lu = /* @__PURE__ */ new _(), z9 = /* @__PURE__ */ new _();
|
|
14175
14175
|
let Bm = class extends We {
|
|
14176
14176
|
constructor(t = new tc()) {
|
|
14177
|
-
if (super(), this.isSprite = !0, this.type = "Sprite",
|
|
14178
|
-
|
|
14177
|
+
if (super(), this.isSprite = !0, this.type = "Sprite", Sl === void 0) {
|
|
14178
|
+
Sl = new Ot();
|
|
14179
14179
|
const e = new Float32Array([
|
|
14180
14180
|
-0.5,
|
|
14181
14181
|
-0.5,
|
|
@@ -14198,19 +14198,19 @@ let Bm = class extends We {
|
|
|
14198
14198
|
0,
|
|
14199
14199
|
1
|
|
14200
14200
|
]), i = new $o(e, 5);
|
|
14201
|
-
|
|
14201
|
+
Sl.setIndex([0, 1, 2, 0, 2, 3]), Sl.setAttribute("position", new ls(i, 3, 0, !1)), Sl.setAttribute("uv", new ls(i, 2, 3, !1));
|
|
14202
14202
|
}
|
|
14203
|
-
this.geometry =
|
|
14203
|
+
this.geometry = Sl, this.material = t, this.center = new _(0.5, 0.5);
|
|
14204
14204
|
}
|
|
14205
14205
|
raycast(t, e) {
|
|
14206
|
-
t.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'),
|
|
14206
|
+
t.camera === null && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), Yl.setFromMatrixScale(this.matrixWorld), t3.copy(t.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(t.camera.matrixWorldInverse, this.matrixWorld), Nl.setFromMatrixPosition(this.modelViewMatrix), t.camera.isPerspectiveCamera && this.material.sizeAttenuation === !1 && Yl.multiplyScalar(-Nl.z);
|
|
14207
14207
|
const i = this.material.rotation;
|
|
14208
14208
|
let s, l;
|
|
14209
14209
|
i !== 0 && (l = Math.cos(i), s = Math.sin(i));
|
|
14210
14210
|
const a = this.center;
|
|
14211
|
-
jc(Qc.set(-0.5, -0.5, 0),
|
|
14211
|
+
jc(Qc.set(-0.5, -0.5, 0), Nl, a, Yl, s, l), jc(Ta.set(0.5, -0.5, 0), Nl, a, Yl, s, l), jc(Ac.set(0.5, 0.5, 0), Nl, a, Yl, s, l), H9.set(0, 0), lu.set(1, 0), z9.set(1, 1);
|
|
14212
14212
|
let o = t.ray.intersectTriangle(Qc, Ta, Ac, !1, Na);
|
|
14213
|
-
if (o === null && (jc(Ta.set(-0.5, 0.5, 0),
|
|
14213
|
+
if (o === null && (jc(Ta.set(-0.5, 0.5, 0), Nl, a, Yl, s, l), lu.set(0, 1), o = t.ray.intersectTriangle(Qc, Ac, Ta, !1, Na), o === null))
|
|
14214
14214
|
return;
|
|
14215
14215
|
const c = t.ray.origin.distanceTo(Na);
|
|
14216
14216
|
c < t.near || c > t.far || e.push({
|
|
@@ -14226,7 +14226,7 @@ let Bm = class extends We {
|
|
|
14226
14226
|
}
|
|
14227
14227
|
};
|
|
14228
14228
|
function jc(n, t, e, i, s, l) {
|
|
14229
|
-
|
|
14229
|
+
Il.subVectors(n, e).addScalar(0.5).multiply(i), s !== void 0 ? (Ia.x = l * Il.x - s * Il.y, Ia.y = s * Il.x + l * Il.y) : Ia.copy(Il), n.copy(t), n.x += Ia.x, n.y += Ia.y, n.applyMatrix4(t3);
|
|
14230
14230
|
}
|
|
14231
14231
|
const Dc = /* @__PURE__ */ new Y(), K9 = /* @__PURE__ */ new Y();
|
|
14232
14232
|
class e3 extends We {
|
|
@@ -14314,7 +14314,7 @@ class e3 extends We {
|
|
|
14314
14314
|
return e;
|
|
14315
14315
|
}
|
|
14316
14316
|
}
|
|
14317
|
-
const J9 = /* @__PURE__ */ new Y(), k9 = /* @__PURE__ */ new ge(), U9 = /* @__PURE__ */ new ge(), Qx = /* @__PURE__ */ new Y(), B9 = /* @__PURE__ */ new Et(), Oc = /* @__PURE__ */ new Y(), au = /* @__PURE__ */ new T0(), E9 = /* @__PURE__ */ new Et(), ou = /* @__PURE__ */ new
|
|
14317
|
+
const J9 = /* @__PURE__ */ new Y(), k9 = /* @__PURE__ */ new ge(), U9 = /* @__PURE__ */ new ge(), Qx = /* @__PURE__ */ new Y(), B9 = /* @__PURE__ */ new Et(), Oc = /* @__PURE__ */ new Y(), au = /* @__PURE__ */ new T0(), E9 = /* @__PURE__ */ new Et(), ou = /* @__PURE__ */ new sl();
|
|
14318
14318
|
class Em extends Xt {
|
|
14319
14319
|
constructor(t, e) {
|
|
14320
14320
|
super(t, e), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = i1, this.bindMatrix = new Et(), this.bindMatrixInverse = new Et(), this.boundingBox = null, this.boundingSphere = null;
|
|
@@ -14474,7 +14474,7 @@ class ec {
|
|
|
14474
14474
|
return t;
|
|
14475
14475
|
}
|
|
14476
14476
|
}
|
|
14477
|
-
class
|
|
14477
|
+
class js extends ee {
|
|
14478
14478
|
constructor(t, e, i, s = 1) {
|
|
14479
14479
|
super(t, e, i), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = s;
|
|
14480
14480
|
}
|
|
@@ -14486,10 +14486,10 @@ class As extends ee {
|
|
|
14486
14486
|
return t.meshPerAttribute = this.meshPerAttribute, t.isInstancedBufferAttribute = !0, t;
|
|
14487
14487
|
}
|
|
14488
14488
|
}
|
|
14489
|
-
const
|
|
14489
|
+
const Tl = /* @__PURE__ */ new Et(), Q9 = /* @__PURE__ */ new Et(), _c = [], A9 = /* @__PURE__ */ new y0(), jx = /* @__PURE__ */ new Et(), Ma = /* @__PURE__ */ new Xt(), Fa = /* @__PURE__ */ new T0();
|
|
14490
14490
|
class go extends Xt {
|
|
14491
14491
|
constructor(t, e, i) {
|
|
14492
|
-
super(t, e), this.isInstancedMesh = !0, this.instanceMatrix = new
|
|
14492
|
+
super(t, e), this.isInstancedMesh = !0, this.instanceMatrix = new js(new Float32Array(i * 16), 16), this.instanceColor = null, this.morphTexture = null, this.count = i, this.boundingBox = null, this.boundingSphere = null;
|
|
14493
14493
|
for (let s = 0; s < i; s++)
|
|
14494
14494
|
this.setMatrixAt(s, jx);
|
|
14495
14495
|
}
|
|
@@ -14497,13 +14497,13 @@ class go extends Xt {
|
|
|
14497
14497
|
const t = this.geometry, e = this.count;
|
|
14498
14498
|
this.boundingBox === null && (this.boundingBox = new y0()), t.boundingBox === null && t.computeBoundingBox(), this.boundingBox.makeEmpty();
|
|
14499
14499
|
for (let i = 0; i < e; i++)
|
|
14500
|
-
this.getMatrixAt(i,
|
|
14500
|
+
this.getMatrixAt(i, Tl), A9.copy(t.boundingBox).applyMatrix4(Tl), this.boundingBox.union(A9);
|
|
14501
14501
|
}
|
|
14502
14502
|
computeBoundingSphere() {
|
|
14503
14503
|
const t = this.geometry, e = this.count;
|
|
14504
14504
|
this.boundingSphere === null && (this.boundingSphere = new T0()), t.boundingSphere === null && t.computeBoundingSphere(), this.boundingSphere.makeEmpty();
|
|
14505
14505
|
for (let i = 0; i < e; i++)
|
|
14506
|
-
this.getMatrixAt(i,
|
|
14506
|
+
this.getMatrixAt(i, Tl), Fa.copy(t.boundingSphere).applyMatrix4(Tl), this.boundingSphere.union(Fa);
|
|
14507
14507
|
}
|
|
14508
14508
|
copy(t, e) {
|
|
14509
14509
|
return super.copy(t, e), this.instanceMatrix.copy(t.instanceMatrix), t.morphTexture !== null && (this.morphTexture = t.morphTexture.clone()), t.instanceColor !== null && (this.instanceColor = t.instanceColor.clone()), this.count = t.count, t.boundingBox !== null && (this.boundingBox = t.boundingBox.clone()), t.boundingSphere !== null && (this.boundingSphere = t.boundingSphere.clone()), this;
|
|
@@ -14523,7 +14523,7 @@ class go extends Xt {
|
|
|
14523
14523
|
const i = this.matrixWorld, s = this.count;
|
|
14524
14524
|
if (Ma.geometry = this.geometry, Ma.material = this.material, Ma.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Fa.copy(this.boundingSphere), Fa.applyMatrix4(i), t.ray.intersectsSphere(Fa) !== !1))
|
|
14525
14525
|
for (let l = 0; l < s; l++) {
|
|
14526
|
-
this.getMatrixAt(l,
|
|
14526
|
+
this.getMatrixAt(l, Tl), Q9.multiplyMatrices(i, Tl), Ma.matrixWorld = Q9, Ma.raycast(t, _c);
|
|
14527
14527
|
for (let a = 0, o = _c.length; a < o; a++) {
|
|
14528
14528
|
const c = _c[a];
|
|
14529
14529
|
c.instanceId = l, c.object = this, e.push(c);
|
|
@@ -14532,7 +14532,7 @@ class go extends Xt {
|
|
|
14532
14532
|
}
|
|
14533
14533
|
}
|
|
14534
14534
|
setColorAt(t, e) {
|
|
14535
|
-
this.instanceColor === null && (this.instanceColor = new
|
|
14535
|
+
this.instanceColor === null && (this.instanceColor = new js(new Float32Array(this.instanceMatrix.count * 3), 3)), e.toArray(this.instanceColor.array, t * 3);
|
|
14536
14536
|
}
|
|
14537
14537
|
setMatrixAt(t, e) {
|
|
14538
14538
|
e.toArray(this.instanceMatrix.array, t * 16);
|
|
@@ -14577,7 +14577,7 @@ class _x {
|
|
|
14577
14577
|
this.list.length = 0, this.index = 0;
|
|
14578
14578
|
}
|
|
14579
14579
|
}
|
|
14580
|
-
const
|
|
14580
|
+
const Ml = "batchId", Un = /* @__PURE__ */ new Et(), cu = /* @__PURE__ */ new Et(), qx = /* @__PURE__ */ new Et(), $x = /* @__PURE__ */ new ot(1, 1, 1), j9 = /* @__PURE__ */ new Et(), du = /* @__PURE__ */ new _o(), qc = /* @__PURE__ */ new y0(), Zs = /* @__PURE__ */ new T0(), va = /* @__PURE__ */ new Y(), D9 = /* @__PURE__ */ new Y(), tR = /* @__PURE__ */ new Y(), ru = /* @__PURE__ */ new _x(), k0 = /* @__PURE__ */ new Xt(), $c = [];
|
|
14581
14581
|
function eR(n, t, e = 0) {
|
|
14582
14582
|
const i = t.itemSize;
|
|
14583
14583
|
if (n.isInterleavedBufferAttribute || n.array.constructor !== t.array.constructor) {
|
|
@@ -14620,18 +14620,18 @@ class i3 extends Xt {
|
|
|
14620
14620
|
e.setIndex(new ee(o, 1));
|
|
14621
14621
|
}
|
|
14622
14622
|
const a = s > 65536 ? new Uint32Array(i) : new Uint16Array(i);
|
|
14623
|
-
e.setAttribute(
|
|
14623
|
+
e.setAttribute(Ml, new ee(a, 1)), this._geometryInitialized = !0;
|
|
14624
14624
|
}
|
|
14625
14625
|
}
|
|
14626
14626
|
// Make sure the geometry is compatible with the existing combined geometry attributes
|
|
14627
14627
|
_validateGeometry(t) {
|
|
14628
|
-
if (t.getAttribute(
|
|
14629
|
-
throw new Error(`BatchedMesh: Geometry cannot use attribute "${
|
|
14628
|
+
if (t.getAttribute(Ml))
|
|
14629
|
+
throw new Error(`BatchedMesh: Geometry cannot use attribute "${Ml}"`);
|
|
14630
14630
|
const e = this.geometry;
|
|
14631
14631
|
if (!!t.getIndex() != !!e.getIndex())
|
|
14632
14632
|
throw new Error('BatchedMesh: All geometries must consistently have "index".');
|
|
14633
14633
|
for (const i in e.attributes) {
|
|
14634
|
-
if (i ===
|
|
14634
|
+
if (i === Ml)
|
|
14635
14635
|
continue;
|
|
14636
14636
|
if (!t.hasAttribute(i))
|
|
14637
14637
|
throw new Error(`BatchedMesh: Added geometry missing "${i}". All geometries must have consistent attributes.`);
|
|
@@ -14684,7 +14684,7 @@ class i3 extends Xt {
|
|
|
14684
14684
|
sphereInitialized: !1,
|
|
14685
14685
|
sphere: new T0()
|
|
14686
14686
|
});
|
|
14687
|
-
const p = this.geometry.getAttribute(
|
|
14687
|
+
const p = this.geometry.getAttribute(Ml);
|
|
14688
14688
|
for (let W = 0; W < s.vertexCount; W++)
|
|
14689
14689
|
p.setX(s.vertexStart + W, Z);
|
|
14690
14690
|
return p.needsUpdate = !0, this.setGeometryAt(Z, t), Z;
|
|
@@ -14698,7 +14698,7 @@ class i3 extends Xt {
|
|
|
14698
14698
|
throw new Error("BatchedMesh: Reserved space not large enough for provided geometry.");
|
|
14699
14699
|
const c = o.vertexStart, d = o.vertexCount;
|
|
14700
14700
|
for (const m in i.attributes) {
|
|
14701
|
-
if (m ===
|
|
14701
|
+
if (m === Ml)
|
|
14702
14702
|
continue;
|
|
14703
14703
|
const b = e.getAttribute(m), G = i.getAttribute(m);
|
|
14704
14704
|
eR(b, G, c);
|
|
@@ -14868,7 +14868,7 @@ class v0 extends g0 {
|
|
|
14868
14868
|
return super.copy(t), this.color.copy(t.color), this.map = t.map, this.linewidth = t.linewidth, this.linecap = t.linecap, this.linejoin = t.linejoin, this.fog = t.fog, this;
|
|
14869
14869
|
}
|
|
14870
14870
|
}
|
|
14871
|
-
const lr = /* @__PURE__ */ new Y(), ar = /* @__PURE__ */ new Y(), O9 = /* @__PURE__ */ new Et(), wa = /* @__PURE__ */ new
|
|
14871
|
+
const lr = /* @__PURE__ */ new Y(), ar = /* @__PURE__ */ new Y(), O9 = /* @__PURE__ */ new Et(), wa = /* @__PURE__ */ new sl(), td = /* @__PURE__ */ new T0(), hu = /* @__PURE__ */ new Y(), _9 = /* @__PURE__ */ new Y();
|
|
14872
14872
|
class N0 extends We {
|
|
14873
14873
|
constructor(t = new Ot(), e = new v0()) {
|
|
14874
14874
|
super(), this.isLine = !0, this.type = "Line", this.geometry = t, this.material = e, this.updateMorphTargets();
|
|
@@ -14975,7 +14975,7 @@ class ah extends g0 {
|
|
|
14975
14975
|
return super.copy(t), this.color.copy(t.color), this.map = t.map, this.alphaMap = t.alphaMap, this.size = t.size, this.sizeAttenuation = t.sizeAttenuation, this.fog = t.fog, this;
|
|
14976
14976
|
}
|
|
14977
14977
|
}
|
|
14978
|
-
const tp = /* @__PURE__ */ new Et(), T1 = /* @__PURE__ */ new
|
|
14978
|
+
const tp = /* @__PURE__ */ new Et(), T1 = /* @__PURE__ */ new sl(), id = /* @__PURE__ */ new T0(), nd = /* @__PURE__ */ new Y();
|
|
14979
14979
|
class oh extends We {
|
|
14980
14980
|
constructor(t = new Ot(), e = new ah()) {
|
|
14981
14981
|
super(), this.isPoints = !0, this.type = "Points", this.geometry = t, this.material = e, this.updateMorphTargets();
|
|
@@ -16254,7 +16254,7 @@ function c3(n, t, e, i, s) {
|
|
|
16254
16254
|
for (l = e - i; l >= t; l -= i) a = np(l, n[l], n[l + 1], a);
|
|
16255
16255
|
return a && uh(a, a.next) && (Lo(a), a = a.next), a;
|
|
16256
16256
|
}
|
|
16257
|
-
function
|
|
16257
|
+
function Ds(n, t) {
|
|
16258
16258
|
if (!n) return n;
|
|
16259
16259
|
t || (t = n);
|
|
16260
16260
|
let e = n, i;
|
|
@@ -16277,7 +16277,7 @@ function xo(n, t, e, i, s, l, a) {
|
|
|
16277
16277
|
continue;
|
|
16278
16278
|
}
|
|
16279
16279
|
if (n = d, n === o) {
|
|
16280
|
-
a ? a === 1 ? (n = bR(
|
|
16280
|
+
a ? a === 1 ? (n = bR(Ds(n), t, e), xo(n, t, e, i, s, l, 2)) : a === 2 && ZR(n, t, e, i, s, l) : xo(Ds(n), t, e, i, s, l, 1);
|
|
16281
16281
|
break;
|
|
16282
16282
|
}
|
|
16283
16283
|
}
|
|
@@ -16288,7 +16288,7 @@ function mR(n) {
|
|
|
16288
16288
|
const s = t.x, l = e.x, a = i.x, o = t.y, c = e.y, d = i.y, r = s < l ? s < a ? s : a : l < a ? l : a, h = o < c ? o < d ? o : d : c < d ? c : d, u = s > l ? s > a ? s : a : l > a ? l : a, m = o > c ? o > d ? o : d : c > d ? c : d;
|
|
16289
16289
|
let b = i.next;
|
|
16290
16290
|
for (; b !== t; ) {
|
|
16291
|
-
if (b.x >= r && b.x <= u && b.y >= h && b.y <= m &&
|
|
16291
|
+
if (b.x >= r && b.x <= u && b.y >= h && b.y <= m && El(s, o, l, c, a, d, b.x, b.y) && d0(b.prev, b, b.next) >= 0) return !1;
|
|
16292
16292
|
b = b.next;
|
|
16293
16293
|
}
|
|
16294
16294
|
return !0;
|
|
@@ -16299,15 +16299,15 @@ function pR(n, t, e, i) {
|
|
|
16299
16299
|
const o = s.x, c = l.x, d = a.x, r = s.y, h = l.y, u = a.y, m = o < c ? o < d ? o : d : c < d ? c : d, b = r < h ? r < u ? r : u : h < u ? h : u, G = o > c ? o > d ? o : d : c > d ? c : d, Z = r > h ? r > u ? r : u : h > u ? h : u, p = M1(m, b, t, e, i), W = M1(G, Z, t, e, i);
|
|
16300
16300
|
let X = n.prevZ, y = n.nextZ;
|
|
16301
16301
|
for (; X && X.z >= p && y && y.z <= W; ) {
|
|
16302
|
-
if (X.x >= m && X.x <= G && X.y >= b && X.y <= Z && X !== s && X !== a &&
|
|
16302
|
+
if (X.x >= m && X.x <= G && X.y >= b && X.y <= Z && X !== s && X !== a && El(o, r, c, h, d, u, X.x, X.y) && d0(X.prev, X, X.next) >= 0 || (X = X.prevZ, y.x >= m && y.x <= G && y.y >= b && y.y <= Z && y !== s && y !== a && El(o, r, c, h, d, u, y.x, y.y) && d0(y.prev, y, y.next) >= 0)) return !1;
|
|
16303
16303
|
y = y.nextZ;
|
|
16304
16304
|
}
|
|
16305
16305
|
for (; X && X.z >= p; ) {
|
|
16306
|
-
if (X.x >= m && X.x <= G && X.y >= b && X.y <= Z && X !== s && X !== a &&
|
|
16306
|
+
if (X.x >= m && X.x <= G && X.y >= b && X.y <= Z && X !== s && X !== a && El(o, r, c, h, d, u, X.x, X.y) && d0(X.prev, X, X.next) >= 0) return !1;
|
|
16307
16307
|
X = X.prevZ;
|
|
16308
16308
|
}
|
|
16309
16309
|
for (; y && y.z <= W; ) {
|
|
16310
|
-
if (y.x >= m && y.x <= G && y.y >= b && y.y <= Z && y !== s && y !== a &&
|
|
16310
|
+
if (y.x >= m && y.x <= G && y.y >= b && y.y <= Z && y !== s && y !== a && El(o, r, c, h, d, u, y.x, y.y) && d0(y.prev, y, y.next) >= 0) return !1;
|
|
16311
16311
|
y = y.nextZ;
|
|
16312
16312
|
}
|
|
16313
16313
|
return !0;
|
|
@@ -16318,7 +16318,7 @@ function bR(n, t, e) {
|
|
|
16318
16318
|
const s = i.prev, l = i.next.next;
|
|
16319
16319
|
!uh(s, l) && d3(s, i, i.next, l) && Ro(s, l) && Ro(l, s) && (t.push(s.i / e | 0), t.push(i.i / e | 0), t.push(l.i / e | 0), Lo(i), Lo(i.next), i = n = l), i = i.next;
|
|
16320
16320
|
} while (i !== n);
|
|
16321
|
-
return
|
|
16321
|
+
return Ds(i);
|
|
16322
16322
|
}
|
|
16323
16323
|
function ZR(n, t, e, i, s, l) {
|
|
16324
16324
|
let a = n;
|
|
@@ -16327,7 +16327,7 @@ function ZR(n, t, e, i, s, l) {
|
|
|
16327
16327
|
for (; o !== a.prev; ) {
|
|
16328
16328
|
if (a.i !== o.i && RR(a, o)) {
|
|
16329
16329
|
let c = r3(a, o);
|
|
16330
|
-
a =
|
|
16330
|
+
a = Ds(a, a.next), c = Ds(c, c.next), xo(a, t, e, i, s, l, 0), xo(c, t, e, i, s, l, 0);
|
|
16331
16331
|
return;
|
|
16332
16332
|
}
|
|
16333
16333
|
o = o.next;
|
|
@@ -16352,7 +16352,7 @@ function WR(n, t) {
|
|
|
16352
16352
|
if (!e)
|
|
16353
16353
|
return t;
|
|
16354
16354
|
const i = r3(e, n);
|
|
16355
|
-
return
|
|
16355
|
+
return Ds(i, i.next), Ds(e, e.next);
|
|
16356
16356
|
}
|
|
16357
16357
|
function yR(n, t) {
|
|
16358
16358
|
let e = t, i = -1 / 0, s;
|
|
@@ -16370,7 +16370,7 @@ function yR(n, t) {
|
|
|
16370
16370
|
let r = 1 / 0, h;
|
|
16371
16371
|
e = s;
|
|
16372
16372
|
do
|
|
16373
|
-
l >= e.x && e.x >= c && l !== e.x &&
|
|
16373
|
+
l >= e.x && e.x >= c && l !== e.x && El(a < d ? l : i, a, c, d, a < d ? i : l, a, e.x, e.y) && (h = Math.abs(a - e.y) / (l - e.x), Ro(e, n) && (h < r || h === r && (e.x > s.x || e.x === s.x && VR(s, e))) && (s = e, r = h)), e = e.next;
|
|
16374
16374
|
while (e !== o);
|
|
16375
16375
|
return s;
|
|
16376
16376
|
}
|
|
@@ -16408,7 +16408,7 @@ function xR(n) {
|
|
|
16408
16408
|
while (t !== n);
|
|
16409
16409
|
return e;
|
|
16410
16410
|
}
|
|
16411
|
-
function
|
|
16411
|
+
function El(n, t, e, i, s, l, a, o) {
|
|
16412
16412
|
return (s - a) * (t - o) >= (n - a) * (l - o) && (n - a) * (i - o) >= (e - a) * (t - o) && (e - a) * (l - o) >= (s - a) * (i - o);
|
|
16413
16413
|
}
|
|
16414
16414
|
function RR(n, t) {
|
|
@@ -16996,7 +16996,7 @@ function IR(n, t) {
|
|
|
16996
16996
|
t.shapes.push(n.uuid);
|
|
16997
16997
|
return t;
|
|
16998
16998
|
}
|
|
16999
|
-
class
|
|
16999
|
+
class ll extends Ot {
|
|
17000
17000
|
constructor(t = 1, e = 32, i = 16, s = 0, l = Math.PI * 2, a = 0, o = Math.PI) {
|
|
17001
17001
|
super(), this.type = "SphereGeometry", this.parameters = {
|
|
17002
17002
|
radius: t,
|
|
@@ -17031,7 +17031,7 @@ class sl extends Ot {
|
|
|
17031
17031
|
return super.copy(t), this.parameters = Object.assign({}, t.parameters), this;
|
|
17032
17032
|
}
|
|
17033
17033
|
static fromJSON(t) {
|
|
17034
|
-
return new
|
|
17034
|
+
return new ll(t.radius, t.widthSegments, t.heightSegments, t.phiStart, t.phiLength, t.thetaStart, t.thetaLength);
|
|
17035
17035
|
}
|
|
17036
17036
|
}
|
|
17037
17037
|
class cc extends os {
|
|
@@ -17250,7 +17250,7 @@ var op = /* @__PURE__ */ Object.freeze({
|
|
|
17250
17250
|
PolyhedronGeometry: os,
|
|
17251
17251
|
RingGeometry: oc,
|
|
17252
17252
|
ShapeGeometry: ph,
|
|
17253
|
-
SphereGeometry:
|
|
17253
|
+
SphereGeometry: ll,
|
|
17254
17254
|
TetrahedronGeometry: cc,
|
|
17255
17255
|
TorusGeometry: Ji,
|
|
17256
17256
|
TorusKnotGeometry: dc,
|
|
@@ -17270,7 +17270,7 @@ class u3 extends Ae {
|
|
|
17270
17270
|
super(t), this.isRawShaderMaterial = !0, this.type = "RawShaderMaterial";
|
|
17271
17271
|
}
|
|
17272
17272
|
}
|
|
17273
|
-
class
|
|
17273
|
+
class qe extends g0 {
|
|
17274
17274
|
constructor(t) {
|
|
17275
17275
|
super(), this.isMeshStandardMaterial = !0, this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new ot(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 ot(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = as, this.normalScale = new _(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 P0(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(t);
|
|
17276
17276
|
}
|
|
@@ -17278,7 +17278,7 @@ class _e extends g0 {
|
|
|
17278
17278
|
return super.copy(t), this.defines = { STANDARD: "" }, this.color.copy(t.color), this.roughness = t.roughness, this.metalness = t.metalness, this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.emissive.copy(t.emissive), this.emissiveMap = t.emissiveMap, this.emissiveIntensity = t.emissiveIntensity, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.roughnessMap = t.roughnessMap, this.metalnessMap = t.metalnessMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.envMapIntensity = t.envMapIntensity, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.flatShading = t.flatShading, this.fog = t.fog, this;
|
|
17279
17279
|
}
|
|
17280
17280
|
}
|
|
17281
|
-
class Ni extends
|
|
17281
|
+
class Ni extends qe {
|
|
17282
17282
|
constructor(t) {
|
|
17283
17283
|
super(), this.isMeshPhysicalMaterial = !0, this.defines = {
|
|
17284
17284
|
STANDARD: "",
|
|
@@ -17675,10 +17675,10 @@ class Ai {
|
|
|
17675
17675
|
setInterpolation(t) {
|
|
17676
17676
|
let e;
|
|
17677
17677
|
switch (t) {
|
|
17678
|
-
case
|
|
17678
|
+
case la:
|
|
17679
17679
|
e = this.InterpolantFactoryMethodDiscrete;
|
|
17680
17680
|
break;
|
|
17681
|
-
case
|
|
17681
|
+
case aa:
|
|
17682
17682
|
e = this.InterpolantFactoryMethodLinear;
|
|
17683
17683
|
break;
|
|
17684
17684
|
case Pd:
|
|
@@ -17699,9 +17699,9 @@ class Ai {
|
|
|
17699
17699
|
getInterpolation() {
|
|
17700
17700
|
switch (this.createInterpolant) {
|
|
17701
17701
|
case this.InterpolantFactoryMethodDiscrete:
|
|
17702
|
-
return sa;
|
|
17703
|
-
case this.InterpolantFactoryMethodLinear:
|
|
17704
17702
|
return la;
|
|
17703
|
+
case this.InterpolantFactoryMethodLinear:
|
|
17704
|
+
return aa;
|
|
17705
17705
|
case this.InterpolantFactoryMethodSmooth:
|
|
17706
17706
|
return Pd;
|
|
17707
17707
|
}
|
|
@@ -17819,24 +17819,24 @@ class Ai {
|
|
|
17819
17819
|
}
|
|
17820
17820
|
Ai.prototype.TimeBufferType = Float32Array;
|
|
17821
17821
|
Ai.prototype.ValueBufferType = Float32Array;
|
|
17822
|
-
Ai.prototype.DefaultInterpolation =
|
|
17823
|
-
class
|
|
17822
|
+
Ai.prototype.DefaultInterpolation = aa;
|
|
17823
|
+
class al extends Ai {
|
|
17824
17824
|
// No interpolation parameter because only InterpolateDiscrete is valid.
|
|
17825
17825
|
constructor(t, e, i) {
|
|
17826
17826
|
super(t, e, i);
|
|
17827
17827
|
}
|
|
17828
17828
|
}
|
|
17829
|
-
|
|
17830
|
-
|
|
17831
|
-
|
|
17832
|
-
|
|
17833
|
-
|
|
17829
|
+
al.prototype.ValueTypeName = "bool";
|
|
17830
|
+
al.prototype.ValueBufferType = Array;
|
|
17831
|
+
al.prototype.DefaultInterpolation = la;
|
|
17832
|
+
al.prototype.InterpolantFactoryMethodLinear = void 0;
|
|
17833
|
+
al.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
17834
17834
|
class i2 extends Ai {
|
|
17835
17835
|
}
|
|
17836
17836
|
i2.prototype.ValueTypeName = "color";
|
|
17837
|
-
class
|
|
17837
|
+
class Os extends Ai {
|
|
17838
17838
|
}
|
|
17839
|
-
|
|
17839
|
+
Os.prototype.ValueTypeName = "number";
|
|
17840
17840
|
class f3 extends ya {
|
|
17841
17841
|
constructor(t, e, i, s) {
|
|
17842
17842
|
super(t, e, i, s);
|
|
@@ -17849,28 +17849,28 @@ class f3 extends ya {
|
|
|
17849
17849
|
return l;
|
|
17850
17850
|
}
|
|
17851
17851
|
}
|
|
17852
|
-
class
|
|
17852
|
+
class _s extends Ai {
|
|
17853
17853
|
InterpolantFactoryMethodLinear(t) {
|
|
17854
17854
|
return new f3(this.times, this.values, this.getValueSize(), t);
|
|
17855
17855
|
}
|
|
17856
17856
|
}
|
|
17857
|
-
|
|
17858
|
-
|
|
17859
|
-
class
|
|
17857
|
+
_s.prototype.ValueTypeName = "quaternion";
|
|
17858
|
+
_s.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
17859
|
+
class ol extends Ai {
|
|
17860
17860
|
// No interpolation parameter because only InterpolateDiscrete is valid.
|
|
17861
17861
|
constructor(t, e, i) {
|
|
17862
17862
|
super(t, e, i);
|
|
17863
17863
|
}
|
|
17864
17864
|
}
|
|
17865
|
-
|
|
17866
|
-
|
|
17867
|
-
|
|
17868
|
-
|
|
17869
|
-
|
|
17870
|
-
class
|
|
17865
|
+
ol.prototype.ValueTypeName = "string";
|
|
17866
|
+
ol.prototype.ValueBufferType = Array;
|
|
17867
|
+
ol.prototype.DefaultInterpolation = la;
|
|
17868
|
+
ol.prototype.InterpolantFactoryMethodLinear = void 0;
|
|
17869
|
+
ol.prototype.InterpolantFactoryMethodSmooth = void 0;
|
|
17870
|
+
class qs extends Ai {
|
|
17871
17871
|
}
|
|
17872
|
-
|
|
17873
|
-
class
|
|
17872
|
+
qs.prototype.ValueTypeName = "vector";
|
|
17873
|
+
class ra {
|
|
17874
17874
|
constructor(t = "", e = -1, i = [], s = Dr) {
|
|
17875
17875
|
this.name = t, this.tracks = i, this.duration = e, this.blendMode = s, this.uuid = Wi(), this.duration < 0 && this.resetDuration();
|
|
17876
17876
|
}
|
|
@@ -17904,7 +17904,7 @@ class da {
|
|
|
17904
17904
|
), d.push(0, 1, 0);
|
|
17905
17905
|
const r = y3(c);
|
|
17906
17906
|
c = v1(c, 1, r), d = v1(d, 1, r), !s && c[0] === 0 && (c.push(l), d.push(d[0])), a.push(
|
|
17907
|
-
new
|
|
17907
|
+
new Os(
|
|
17908
17908
|
".morphTargetInfluences[" + e[o].name + "]",
|
|
17909
17909
|
c,
|
|
17910
17910
|
d
|
|
@@ -17967,25 +17967,25 @@ class da {
|
|
|
17967
17967
|
const X = u[b];
|
|
17968
17968
|
Z.push(X.time), p.push(X.morphTarget === G ? 1 : 0);
|
|
17969
17969
|
}
|
|
17970
|
-
s.push(new
|
|
17970
|
+
s.push(new Os(".morphTargetInfluence[" + G + "]", Z, p));
|
|
17971
17971
|
}
|
|
17972
17972
|
c = m.length * a;
|
|
17973
17973
|
} else {
|
|
17974
17974
|
const m = ".bones[" + e[h].name + "]";
|
|
17975
17975
|
i(
|
|
17976
|
-
|
|
17976
|
+
qs,
|
|
17977
17977
|
m + ".position",
|
|
17978
17978
|
u,
|
|
17979
17979
|
"pos",
|
|
17980
17980
|
s
|
|
17981
17981
|
), i(
|
|
17982
|
-
|
|
17982
|
+
_s,
|
|
17983
17983
|
m + ".quaternion",
|
|
17984
17984
|
u,
|
|
17985
17985
|
"rot",
|
|
17986
17986
|
s
|
|
17987
17987
|
), i(
|
|
17988
|
-
|
|
17988
|
+
qs,
|
|
17989
17989
|
m + ".scale",
|
|
17990
17990
|
u,
|
|
17991
17991
|
"scl",
|
|
@@ -18037,21 +18037,21 @@ function vR(n) {
|
|
|
18037
18037
|
case "float":
|
|
18038
18038
|
case "number":
|
|
18039
18039
|
case "integer":
|
|
18040
|
-
return
|
|
18040
|
+
return Os;
|
|
18041
18041
|
case "vector":
|
|
18042
18042
|
case "vector2":
|
|
18043
18043
|
case "vector3":
|
|
18044
18044
|
case "vector4":
|
|
18045
|
-
return
|
|
18045
|
+
return qs;
|
|
18046
18046
|
case "color":
|
|
18047
18047
|
return i2;
|
|
18048
18048
|
case "quaternion":
|
|
18049
|
-
return
|
|
18049
|
+
return _s;
|
|
18050
18050
|
case "bool":
|
|
18051
18051
|
case "boolean":
|
|
18052
|
-
return ll;
|
|
18053
|
-
case "string":
|
|
18054
18052
|
return al;
|
|
18053
|
+
case "string":
|
|
18054
|
+
return ol;
|
|
18055
18055
|
}
|
|
18056
18056
|
throw new Error("THREE.KeyframeTrack: Unsupported typeName: " + n);
|
|
18057
18057
|
}
|
|
@@ -18274,7 +18274,7 @@ class zR extends S0 {
|
|
|
18274
18274
|
parse(t) {
|
|
18275
18275
|
const e = [];
|
|
18276
18276
|
for (let i = 0; i < t.length; i++) {
|
|
18277
|
-
const s =
|
|
18277
|
+
const s = ra.parse(t[i]);
|
|
18278
18278
|
e.push(s);
|
|
18279
18279
|
}
|
|
18280
18280
|
return e;
|
|
@@ -18475,10 +18475,10 @@ class l2 {
|
|
|
18475
18475
|
}
|
|
18476
18476
|
class kR extends l2 {
|
|
18477
18477
|
constructor() {
|
|
18478
|
-
super(new
|
|
18478
|
+
super(new Oe(50, 1, 0.5, 500)), this.isSpotLightShadow = !0, this.focus = 1;
|
|
18479
18479
|
}
|
|
18480
18480
|
updateMatrices(t) {
|
|
18481
|
-
const e = this.camera, i =
|
|
18481
|
+
const e = this.camera, i = oa * 2 * t.angle * this.focus, s = this.mapSize.width / this.mapSize.height, l = t.distance || e.far;
|
|
18482
18482
|
(i !== e.fov || s !== e.aspect || l !== e.far) && (e.fov = i, e.aspect = s, e.far = l, e.updateProjectionMatrix()), super.updateMatrices(t);
|
|
18483
18483
|
}
|
|
18484
18484
|
copy(t) {
|
|
@@ -18505,7 +18505,7 @@ class Zh extends cs {
|
|
|
18505
18505
|
const rp = /* @__PURE__ */ new Et(), Ha = /* @__PURE__ */ new Y(), Gu = /* @__PURE__ */ new Y();
|
|
18506
18506
|
class UR extends l2 {
|
|
18507
18507
|
constructor() {
|
|
18508
|
-
super(new
|
|
18508
|
+
super(new Oe(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new _(4, 2), this._viewportCount = 6, this._viewports = [
|
|
18509
18509
|
// These viewports map a cube-map onto a 2D texture with the
|
|
18510
18510
|
// following orientation:
|
|
18511
18511
|
//
|
|
@@ -18771,7 +18771,7 @@ class Xh extends S0 {
|
|
|
18771
18771
|
ShaderMaterial: Ae,
|
|
18772
18772
|
PointsMaterial: ah,
|
|
18773
18773
|
MeshPhysicalMaterial: Ni,
|
|
18774
|
-
MeshStandardMaterial:
|
|
18774
|
+
MeshStandardMaterial: qe,
|
|
18775
18775
|
MeshPhongMaterial: m3,
|
|
18776
18776
|
MeshToonMaterial: p3,
|
|
18777
18777
|
MeshNormalMaterial: b3,
|
|
@@ -18838,7 +18838,7 @@ class c2 extends S0 {
|
|
|
18838
18838
|
const e = {}, i = {};
|
|
18839
18839
|
function s(m, b) {
|
|
18840
18840
|
if (e[b] !== void 0) return e[b];
|
|
18841
|
-
const Z = m.interleavedBuffers[b], p = l(m, Z.buffer), W =
|
|
18841
|
+
const Z = m.interleavedBuffers[b], p = l(m, Z.buffer), W = Ul(Z.type, p), X = new $o(W, Z.stride);
|
|
18842
18842
|
return X.uuid = Z.uuid, e[b] = X, X;
|
|
18843
18843
|
}
|
|
18844
18844
|
function l(m, b) {
|
|
@@ -18848,7 +18848,7 @@ class c2 extends S0 {
|
|
|
18848
18848
|
}
|
|
18849
18849
|
const a = t.isInstancedBufferGeometry ? new S3() : new Ot(), o = t.data.index;
|
|
18850
18850
|
if (o !== void 0) {
|
|
18851
|
-
const m =
|
|
18851
|
+
const m = Ul(o.type, o.array);
|
|
18852
18852
|
a.setIndex(new ee(m, 1));
|
|
18853
18853
|
}
|
|
18854
18854
|
const c = t.data.attributes;
|
|
@@ -18859,7 +18859,7 @@ class c2 extends S0 {
|
|
|
18859
18859
|
const Z = s(t.data, b.data);
|
|
18860
18860
|
G = new ls(Z, b.itemSize, b.offset, b.normalized);
|
|
18861
18861
|
} else {
|
|
18862
|
-
const Z =
|
|
18862
|
+
const Z = Ul(b.type, b.array), p = b.isInstancedBufferAttribute ? js : ee;
|
|
18863
18863
|
G = new p(Z, b.itemSize, b.normalized);
|
|
18864
18864
|
}
|
|
18865
18865
|
b.name !== void 0 && (G.name = b.name), b.usage !== void 0 && G.setUsage(b.usage), a.setAttribute(m, G);
|
|
@@ -18875,7 +18875,7 @@ class c2 extends S0 {
|
|
|
18875
18875
|
const y = s(t.data, W.data);
|
|
18876
18876
|
X = new ls(y, W.itemSize, W.offset, W.normalized);
|
|
18877
18877
|
} else {
|
|
18878
|
-
const y =
|
|
18878
|
+
const y = Ul(W.type, W.array);
|
|
18879
18879
|
X = new ee(y, W.itemSize, W.normalized);
|
|
18880
18880
|
}
|
|
18881
18881
|
W.name !== void 0 && (X.name = W.name), G.push(X);
|
|
@@ -19010,7 +19010,7 @@ class d2 extends S0 {
|
|
|
19010
19010
|
const e = {};
|
|
19011
19011
|
if (t !== void 0)
|
|
19012
19012
|
for (let i = 0; i < t.length; i++) {
|
|
19013
|
-
const s = t[i], l =
|
|
19013
|
+
const s = t[i], l = ra.parse(s);
|
|
19014
19014
|
e[l.uuid] = l;
|
|
19015
19015
|
}
|
|
19016
19016
|
return e;
|
|
@@ -19031,7 +19031,7 @@ class d2 extends S0 {
|
|
|
19031
19031
|
return a(r);
|
|
19032
19032
|
} else
|
|
19033
19033
|
return c.data ? {
|
|
19034
|
-
data:
|
|
19034
|
+
data: Ul(c.type, c.data),
|
|
19035
19035
|
width: c.width,
|
|
19036
19036
|
height: c.height
|
|
19037
19037
|
} : null;
|
|
@@ -19067,7 +19067,7 @@ class d2 extends S0 {
|
|
|
19067
19067
|
return yield s.loadAsync(c);
|
|
19068
19068
|
} else
|
|
19069
19069
|
return a.data ? {
|
|
19070
|
-
data:
|
|
19070
|
+
data: Ul(a.type, a.data),
|
|
19071
19071
|
width: a.width,
|
|
19072
19072
|
height: a.height
|
|
19073
19073
|
} : null;
|
|
@@ -19132,10 +19132,10 @@ class d2 extends S0 {
|
|
|
19132
19132
|
let r, h;
|
|
19133
19133
|
switch (t.type) {
|
|
19134
19134
|
case "Scene":
|
|
19135
|
-
a = new
|
|
19135
|
+
a = new As(), t.background !== void 0 && (Number.isInteger(t.background) ? a.background = new ot(t.background) : a.background = d(t.background)), t.environment !== void 0 && (a.environment = d(t.environment)), t.fog !== void 0 && (t.fog.type === "Fog" ? a.fog = new sh(t.fog.color, t.fog.near, t.fog.far) : t.fog.type === "FogExp2" && (a.fog = new nh(t.fog.color, t.fog.density)), t.fog.name !== "" && (a.fog.name = t.fog.name)), t.backgroundBlurriness !== void 0 && (a.backgroundBlurriness = t.backgroundBlurriness), t.backgroundIntensity !== void 0 && (a.backgroundIntensity = t.backgroundIntensity), t.backgroundRotation !== void 0 && a.backgroundRotation.fromArray(t.backgroundRotation), t.environmentIntensity !== void 0 && (a.environmentIntensity = t.environmentIntensity), t.environmentRotation !== void 0 && a.environmentRotation.fromArray(t.environmentRotation);
|
|
19136
19136
|
break;
|
|
19137
19137
|
case "PerspectiveCamera":
|
|
19138
|
-
a = new
|
|
19138
|
+
a = new Oe(t.fov, t.aspect, t.near, t.far), t.focus !== void 0 && (a.focus = t.focus), t.zoom !== void 0 && (a.zoom = t.zoom), t.filmGauge !== void 0 && (a.filmGauge = t.filmGauge), t.filmOffset !== void 0 && (a.filmOffset = t.filmOffset), t.view !== void 0 && (a.view = Object.assign({}, t.view));
|
|
19139
19139
|
break;
|
|
19140
19140
|
case "OrthographicCamera":
|
|
19141
19141
|
a = new qo(t.left, t.right, t.top, t.bottom, t.near, t.far), t.zoom !== void 0 && (a.zoom = t.zoom), t.view !== void 0 && (a.view = Object.assign({}, t.view));
|
|
@@ -19170,7 +19170,7 @@ class d2 extends S0 {
|
|
|
19170
19170
|
case "InstancedMesh":
|
|
19171
19171
|
r = o(t.geometry), h = c(t.material);
|
|
19172
19172
|
const u = t.count, m = t.instanceMatrix, b = t.instanceColor;
|
|
19173
|
-
a = new go(r, h, u), a.instanceMatrix = new
|
|
19173
|
+
a = new go(r, h, u), a.instanceMatrix = new js(new Float32Array(m.array), 16), b !== void 0 && (a.instanceColor = new js(new Float32Array(b.array), b.itemSize));
|
|
19174
19174
|
break;
|
|
19175
19175
|
case "BatchedMesh":
|
|
19176
19176
|
r = o(t.geometry), h = c(t.material), a = new i3(t.maxGeometryCount, t.maxVertexCount, t.maxIndexCount, h), a.geometry = r, a.perObjectFrustumCulled = t.perObjectFrustumCulled, a.sortObjects = t.sortObjects, a._drawRanges = t.drawRanges, a._reservedRanges = t.reservedRanges, a._visibility = t.visibility, a._active = t.active, a._bounds = t.bounds.map((G) => {
|
|
@@ -19248,13 +19248,13 @@ const ER = {
|
|
|
19248
19248
|
UVMapping: Vn,
|
|
19249
19249
|
CubeReflectionMapping: cn,
|
|
19250
19250
|
CubeRefractionMapping: Nn,
|
|
19251
|
-
EquirectangularReflectionMapping:
|
|
19252
|
-
EquirectangularRefractionMapping:
|
|
19253
|
-
CubeUVReflectionMapping:
|
|
19251
|
+
EquirectangularReflectionMapping: na,
|
|
19252
|
+
EquirectangularRefractionMapping: sa,
|
|
19253
|
+
CubeUVReflectionMapping: nl
|
|
19254
19254
|
}, hp = {
|
|
19255
19255
|
RepeatWrapping: xe,
|
|
19256
19256
|
ClampToEdgeWrapping: Z0,
|
|
19257
|
-
MirroredRepeatWrapping:
|
|
19257
|
+
MirroredRepeatWrapping: Qs
|
|
19258
19258
|
}, up = {
|
|
19259
19259
|
NearestFilter: Je,
|
|
19260
19260
|
NearestMipmapNearestFilter: Ao,
|
|
@@ -19333,7 +19333,7 @@ class PR extends S0 {
|
|
|
19333
19333
|
const mp = /* @__PURE__ */ new Et(), pp = /* @__PURE__ */ new Et(), Gs = /* @__PURE__ */ new Et();
|
|
19334
19334
|
class QR {
|
|
19335
19335
|
constructor() {
|
|
19336
|
-
this.type = "StereoCamera", this.aspect = 1, this.eyeSep = 0.064, this.cameraL = new
|
|
19336
|
+
this.type = "StereoCamera", this.aspect = 1, this.eyeSep = 0.064, this.cameraL = new Oe(), this.cameraL.layers.enable(1), this.cameraL.matrixAutoUpdate = !1, this.cameraR = new Oe(), this.cameraR.layers.enable(2), this.cameraR.matrixAutoUpdate = !1, this._cache = {
|
|
19337
19337
|
focus: null,
|
|
19338
19338
|
fov: null,
|
|
19339
19339
|
aspect: null,
|
|
@@ -20516,7 +20516,7 @@ class d4 extends Si {
|
|
|
20516
20516
|
// previously unknown clip/root combination is specified)
|
|
20517
20517
|
clipAction(t, e, i) {
|
|
20518
20518
|
const s = e || this._root, l = s.uuid;
|
|
20519
|
-
let a = typeof t == "string" ?
|
|
20519
|
+
let a = typeof t == "string" ? ra.findByName(s, t) : t;
|
|
20520
20520
|
const o = a !== null ? a.uuid : t, c = this._actionsByClip[o];
|
|
20521
20521
|
let d = null;
|
|
20522
20522
|
if (i === void 0 && (a !== null ? i = a.blendMode : i = Dr), c !== void 0) {
|
|
@@ -20531,7 +20531,7 @@ class d4 extends Si {
|
|
|
20531
20531
|
}
|
|
20532
20532
|
// get an existing action
|
|
20533
20533
|
existingAction(t, e) {
|
|
20534
|
-
const i = e || this._root, s = i.uuid, l = typeof t == "string" ?
|
|
20534
|
+
const i = e || this._root, s = i.uuid, l = typeof t == "string" ? ra.findByName(i, t) : t, a = l ? l.uuid : t, o = this._actionsByClip[a];
|
|
20535
20535
|
return o !== void 0 && o.actionByRoot[s] || null;
|
|
20536
20536
|
}
|
|
20537
20537
|
// deactivates all previously scheduled actions
|
|
@@ -20680,7 +20680,7 @@ class m4 {
|
|
|
20680
20680
|
const Xp = /* @__PURE__ */ new Et();
|
|
20681
20681
|
class m2 {
|
|
20682
20682
|
constructor(t, e, i = 0, s = 1 / 0) {
|
|
20683
|
-
this.ray = new
|
|
20683
|
+
this.ray = new sl(t, e), this.near = i, this.far = s, this.camera = null, this.layers = new $r(), this.params = {
|
|
20684
20684
|
Mesh: {},
|
|
20685
20685
|
Line: { threshold: 1 },
|
|
20686
20686
|
LOD: {},
|
|
@@ -20980,7 +20980,7 @@ function F3(n) {
|
|
|
20980
20980
|
}
|
|
20981
20981
|
class v3 extends Xt {
|
|
20982
20982
|
constructor(t, e, i) {
|
|
20983
|
-
const s = new
|
|
20983
|
+
const s = new ll(e, 4, 2), l = new qt({ wireframe: !0, fog: !1, toneMapped: !1 });
|
|
20984
20984
|
super(s, l), this.light = t, this.color = i, this.type = "PointLightHelper", this.matrix = this.light.matrixWorld, this.matrixAutoUpdate = !1, this.update();
|
|
20985
20985
|
}
|
|
20986
20986
|
dispose() {
|
|
@@ -21362,9 +21362,9 @@ class L4 extends e0 {
|
|
|
21362
21362
|
}
|
|
21363
21363
|
}
|
|
21364
21364
|
typeof __THREE_DEVTOOLS__ != "undefined" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: {
|
|
21365
|
-
revision:
|
|
21365
|
+
revision: il
|
|
21366
21366
|
} }));
|
|
21367
|
-
typeof window != "undefined" && (window.__THREE__ ? console.warn("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ =
|
|
21367
|
+
typeof window != "undefined" && (window.__THREE__ ? console.warn("WARNING: Multiple instances of Three.js being imported.") : window.__THREE__ = il);
|
|
21368
21368
|
const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21369
21369
|
__proto__: null,
|
|
21370
21370
|
ACESFilmicToneMapping: rZ,
|
|
@@ -21379,7 +21379,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21379
21379
|
AlwaysStencilFunc: Y1,
|
|
21380
21380
|
AmbientLight: a2,
|
|
21381
21381
|
AnimationAction: T3,
|
|
21382
|
-
AnimationClip:
|
|
21382
|
+
AnimationClip: ra,
|
|
21383
21383
|
AnimationLoader: zR,
|
|
21384
21384
|
AnimationMixer: d4,
|
|
21385
21385
|
AnimationObjectGroup: o4,
|
|
@@ -21399,7 +21399,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21399
21399
|
BasicShadowMap: DX,
|
|
21400
21400
|
BatchedMesh: i3,
|
|
21401
21401
|
Bone: lh,
|
|
21402
|
-
BooleanKeyframeTrack:
|
|
21402
|
+
BooleanKeyframeTrack: al,
|
|
21403
21403
|
Box2: Z4,
|
|
21404
21404
|
Box3: y0,
|
|
21405
21405
|
Box3Helper: Ad,
|
|
@@ -21434,7 +21434,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21434
21434
|
CubeRefractionMapping: Nn,
|
|
21435
21435
|
CubeTexture: Oo,
|
|
21436
21436
|
CubeTextureLoader: JR,
|
|
21437
|
-
CubeUVReflectionMapping:
|
|
21437
|
+
CubeUVReflectionMapping: nl,
|
|
21438
21438
|
CubicBezierCurve: jm,
|
|
21439
21439
|
CubicBezierCurve3: ic,
|
|
21440
21440
|
CubicInterpolant: V3,
|
|
@@ -21476,8 +21476,8 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21476
21476
|
EqualCompare: IZ,
|
|
21477
21477
|
EqualDepth: uo,
|
|
21478
21478
|
EqualStencilFunc: dW,
|
|
21479
|
-
EquirectangularReflectionMapping:
|
|
21480
|
-
EquirectangularRefractionMapping:
|
|
21479
|
+
EquirectangularReflectionMapping: na,
|
|
21480
|
+
EquirectangularRefractionMapping: sa,
|
|
21481
21481
|
Euler: P0,
|
|
21482
21482
|
EventDispatcher: Si,
|
|
21483
21483
|
ExtrudeGeometry: mh,
|
|
@@ -21510,7 +21510,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21510
21510
|
ImageUtils: KZ,
|
|
21511
21511
|
IncrementStencilOp: iW,
|
|
21512
21512
|
IncrementWrapStencilOp: sW,
|
|
21513
|
-
InstancedBufferAttribute:
|
|
21513
|
+
InstancedBufferAttribute: js,
|
|
21514
21514
|
InstancedBufferGeometry: S3,
|
|
21515
21515
|
InstancedInterleavedBuffer: u4,
|
|
21516
21516
|
InstancedMesh: go,
|
|
@@ -21521,8 +21521,8 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21521
21521
|
InterleavedBuffer: $o,
|
|
21522
21522
|
InterleavedBufferAttribute: ls,
|
|
21523
21523
|
Interpolant: ya,
|
|
21524
|
-
InterpolateDiscrete:
|
|
21525
|
-
InterpolateLinear:
|
|
21524
|
+
InterpolateDiscrete: la,
|
|
21525
|
+
InterpolateLinear: aa,
|
|
21526
21526
|
InterpolateSmooth: Pd,
|
|
21527
21527
|
InvertStencilOp: aW,
|
|
21528
21528
|
KeepStencilOp: Ls,
|
|
@@ -21533,7 +21533,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21533
21533
|
LessCompare: NZ,
|
|
21534
21534
|
LessDepth: ir,
|
|
21535
21535
|
LessEqualCompare: vm,
|
|
21536
|
-
LessEqualDepth:
|
|
21536
|
+
LessEqualDepth: ia,
|
|
21537
21537
|
LessEqualStencilFunc: rW,
|
|
21538
21538
|
LessStencilFunc: cW,
|
|
21539
21539
|
Light: cs,
|
|
@@ -21567,7 +21567,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21567
21567
|
MOUSE: QX,
|
|
21568
21568
|
Material: g0,
|
|
21569
21569
|
MaterialLoader: Xh,
|
|
21570
|
-
MathUtils:
|
|
21570
|
+
MathUtils: ca,
|
|
21571
21571
|
Matrix3: ue,
|
|
21572
21572
|
Matrix4: Et,
|
|
21573
21573
|
MaxEquation: P5,
|
|
@@ -21580,10 +21580,10 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21580
21580
|
MeshNormalMaterial: b3,
|
|
21581
21581
|
MeshPhongMaterial: m3,
|
|
21582
21582
|
MeshPhysicalMaterial: Ni,
|
|
21583
|
-
MeshStandardMaterial:
|
|
21583
|
+
MeshStandardMaterial: qe,
|
|
21584
21584
|
MeshToonMaterial: p3,
|
|
21585
21585
|
MinEquation: E5,
|
|
21586
|
-
MirroredRepeatWrapping:
|
|
21586
|
+
MirroredRepeatWrapping: Qs,
|
|
21587
21587
|
MixOperation: lZ,
|
|
21588
21588
|
MultiplyBlending: e1,
|
|
21589
21589
|
MultiplyOperation: Qo,
|
|
@@ -21604,7 +21604,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21604
21604
|
NotEqualCompare: MZ,
|
|
21605
21605
|
NotEqualDepth: Ar,
|
|
21606
21606
|
NotEqualStencilFunc: uW,
|
|
21607
|
-
NumberKeyframeTrack:
|
|
21607
|
+
NumberKeyframeTrack: Os,
|
|
21608
21608
|
Object3D: We,
|
|
21609
21609
|
ObjectLoader: d2,
|
|
21610
21610
|
ObjectSpaceNormalMap: SZ,
|
|
@@ -21622,7 +21622,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21622
21622
|
PCFSoftShadowMap: J5,
|
|
21623
21623
|
PMREMGenerator: sr,
|
|
21624
21624
|
Path: fo,
|
|
21625
|
-
PerspectiveCamera:
|
|
21625
|
+
PerspectiveCamera: Oe,
|
|
21626
21626
|
Plane: zi,
|
|
21627
21627
|
PlaneGeometry: Pi,
|
|
21628
21628
|
PlaneHelper: f4,
|
|
@@ -21638,11 +21638,11 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21638
21638
|
QuadraticBezierCurve: Om,
|
|
21639
21639
|
QuadraticBezierCurve3: _m,
|
|
21640
21640
|
Quaternion: Be,
|
|
21641
|
-
QuaternionKeyframeTrack:
|
|
21641
|
+
QuaternionKeyframeTrack: _s,
|
|
21642
21642
|
QuaternionLinearInterpolant: f3,
|
|
21643
21643
|
RED_GREEN_RGTC2_Format: C1,
|
|
21644
21644
|
RED_RGTC1_Format: fZ,
|
|
21645
|
-
REVISION:
|
|
21645
|
+
REVISION: il,
|
|
21646
21646
|
RGBADepthPacking: Or,
|
|
21647
21647
|
RGBAFormat: R0,
|
|
21648
21648
|
RGBAIntegerFormat: Tm,
|
|
@@ -21678,7 +21678,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21678
21678
|
RGFormat: gZ,
|
|
21679
21679
|
RGIntegerFormat: Im,
|
|
21680
21680
|
RawShaderMaterial: u3,
|
|
21681
|
-
Ray:
|
|
21681
|
+
Ray: sl,
|
|
21682
21682
|
Raycaster: m2,
|
|
21683
21683
|
Rec709Primaries: Zo,
|
|
21684
21684
|
RectAreaLight: o2,
|
|
@@ -21694,7 +21694,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21694
21694
|
SIGNED_RED_RGTC1_Format: L1,
|
|
21695
21695
|
SRGBColorSpace: Xe,
|
|
21696
21696
|
SRGBTransfer: De,
|
|
21697
|
-
Scene:
|
|
21697
|
+
Scene: As,
|
|
21698
21698
|
ShaderChunk: Ze,
|
|
21699
21699
|
ShaderLib: Ki,
|
|
21700
21700
|
ShaderMaterial: Ae,
|
|
@@ -21709,7 +21709,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21709
21709
|
SkinnedMesh: Em,
|
|
21710
21710
|
Source: vs,
|
|
21711
21711
|
Sphere: T0,
|
|
21712
|
-
SphereGeometry:
|
|
21712
|
+
SphereGeometry: ll,
|
|
21713
21713
|
Spherical: p4,
|
|
21714
21714
|
SphericalHarmonics3: L3,
|
|
21715
21715
|
SplineCurve: qm,
|
|
@@ -21727,7 +21727,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21727
21727
|
StreamCopyUsage: yW,
|
|
21728
21728
|
StreamDrawUsage: pW,
|
|
21729
21729
|
StreamReadUsage: GW,
|
|
21730
|
-
StringKeyframeTrack:
|
|
21730
|
+
StringKeyframeTrack: ol,
|
|
21731
21731
|
SubtractEquation: U5,
|
|
21732
21732
|
SubtractiveBlending: t1,
|
|
21733
21733
|
TOUCH: AX,
|
|
@@ -21762,7 +21762,7 @@ const p2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21762
21762
|
Vector2: _,
|
|
21763
21763
|
Vector3: Y,
|
|
21764
21764
|
Vector4: ge,
|
|
21765
|
-
VectorKeyframeTrack:
|
|
21765
|
+
VectorKeyframeTrack: qs,
|
|
21766
21766
|
VideoTexture: ch,
|
|
21767
21767
|
WebGL3DRenderTarget: EW,
|
|
21768
21768
|
WebGLArrayRenderTarget: BW,
|
|
@@ -21809,7 +21809,7 @@ const a0 = {
|
|
|
21809
21809
|
TOUCH_ZOOM_TRUCK: 8192,
|
|
21810
21810
|
TOUCH_ZOOM_OFFSET: 16384,
|
|
21811
21811
|
TOUCH_ZOOM_ROTATE: 32768
|
|
21812
|
-
}),
|
|
21812
|
+
}), Fl = {
|
|
21813
21813
|
NONE: 0,
|
|
21814
21814
|
IN: 1,
|
|
21815
21815
|
OUT: -1
|
|
@@ -21820,7 +21820,7 @@ function gs(n) {
|
|
|
21820
21820
|
function Dn(n) {
|
|
21821
21821
|
return n.isOrthographicCamera;
|
|
21822
21822
|
}
|
|
21823
|
-
const
|
|
21823
|
+
const vl = Math.PI * 2, Sp = Math.PI / 2, K3 = 1e-5, za = Math.PI / 180;
|
|
21824
21824
|
function vi(n, t, e) {
|
|
21825
21825
|
return Math.max(t, Math.min(e, n));
|
|
21826
21826
|
}
|
|
@@ -21939,8 +21939,8 @@ class C4 {
|
|
|
21939
21939
|
}
|
|
21940
21940
|
var gu;
|
|
21941
21941
|
const S4 = "2.8.3", Xd = 1 / 8, Y4 = /Mac/.test((gu = globalThis == null ? void 0 : globalThis.navigator) === null || gu === void 0 ? void 0 : gu.platform);
|
|
21942
|
-
let te, Ip, Wd, fu, $0, be, Te,
|
|
21943
|
-
class
|
|
21942
|
+
let te, Ip, Wd, fu, $0, be, Te, wl, ka, Oi, _i, fs, Tp, Mp, xi, Ua, Hl, Fp, xu, vp, Ru, Lu, yd;
|
|
21943
|
+
class Bs extends C4 {
|
|
21944
21944
|
/**
|
|
21945
21945
|
* Injects THREE as the dependency. You can then proceed to use CameraControls.
|
|
21946
21946
|
*
|
|
@@ -21982,7 +21982,7 @@ class ra extends C4 {
|
|
|
21982
21982
|
* @category Statics
|
|
21983
21983
|
*/
|
|
21984
21984
|
static install(t) {
|
|
21985
|
-
te = t.THREE, Ip = Object.freeze(new te.Vector3(0, 0, 0)), Wd = Object.freeze(new te.Vector3(0, 1, 0)), fu = Object.freeze(new te.Vector3(0, 0, 1)), $0 = new te.Vector2(), be = new te.Vector3(), Te = new te.Vector3(),
|
|
21985
|
+
te = t.THREE, Ip = Object.freeze(new te.Vector3(0, 0, 0)), Wd = Object.freeze(new te.Vector3(0, 1, 0)), fu = Object.freeze(new te.Vector3(0, 0, 1)), $0 = new te.Vector2(), be = new te.Vector3(), Te = new te.Vector3(), wl = new te.Vector3(), ka = new te.Vector3(), Oi = new te.Vector3(), _i = new te.Vector3(), fs = new te.Vector3(), Tp = new te.Vector3(), Mp = new te.Vector3(), xi = new te.Spherical(), Ua = new te.Spherical(), Hl = new te.Box3(), Fp = new te.Box3(), xu = new te.Sphere(), vp = new te.Quaternion(), Ru = new te.Quaternion(), Lu = new te.Matrix4(), yd = new te.Raycaster();
|
|
21986
21986
|
}
|
|
21987
21987
|
/**
|
|
21988
21988
|
* list all ACTIONs
|
|
@@ -22010,7 +22010,7 @@ class ra extends C4 {
|
|
|
22010
22010
|
*/
|
|
22011
22011
|
constructor(t, e) {
|
|
22012
22012
|
super(), this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.minDistance = Number.EPSILON, this.maxDistance = 1 / 0, this.infinityDolly = !1, this.minZoom = 0.01, this.maxZoom = 1 / 0, this.smoothTime = 0.25, this.draggingSmoothTime = 0.125, this.maxSpeed = 1 / 0, this.azimuthRotateSpeed = 1, this.polarRotateSpeed = 1, this.dollySpeed = 1, this.dollyDragInverted = !1, this.truckSpeed = 2, this.dollyToCursor = !1, this.dragToOffset = !1, this.verticalDragToForward = !1, this.boundaryFriction = 0, this.restThreshold = 0.01, this.colliderMeshes = [], this.cancel = () => {
|
|
22013
|
-
}, this._enabled = !0, this._state = ht.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection =
|
|
22013
|
+
}, this._enabled = !0, this._state = ht.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = Fl.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new te.Vector3(), this._focalOffsetVelocity = new te.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (p, W, X) => {
|
|
22014
22014
|
let y, g;
|
|
22015
22015
|
if (gs(this._camera)) {
|
|
22016
22016
|
const x = be.copy(this._camera.position).sub(this._target), C = this._camera.getEffectiveFOV() * za, N = x.length() * Math.tan(C * 0.5);
|
|
@@ -22022,7 +22022,7 @@ class ra extends C4 {
|
|
|
22022
22022
|
return;
|
|
22023
22023
|
this.verticalDragToForward ? (X ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y, this._focalOffsetEnd.z, !0) : this.truck(y, 0, !0), this.forward(-g, !0)) : X ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y + g, this._focalOffsetEnd.z, !0) : this.truck(y, g, !0);
|
|
22024
22024
|
}, this._rotateInternal = (p, W) => {
|
|
22025
|
-
const X =
|
|
22025
|
+
const X = vl * this.azimuthRotateSpeed * p / this._elementRect.height, y = vl * this.polarRotateSpeed * W / this._elementRect.height;
|
|
22026
22026
|
this.rotate(X, y, !0);
|
|
22027
22027
|
}, this._dollyInternal = (p, W, X) => {
|
|
22028
22028
|
const y = Math.pow(0.95, -p * this.dollySpeed), g = this._sphericalEnd.radius, x = this._sphericalEnd.radius * y, C = vi(x, this.minDistance, this.maxDistance), N = C - x;
|
|
@@ -22151,7 +22151,7 @@ class ra extends C4 {
|
|
|
22151
22151
|
this.dispatchEvent({ type: "control" });
|
|
22152
22152
|
}, h = (p) => {
|
|
22153
22153
|
if (!(!this._domElement || !this._enabled)) {
|
|
22154
|
-
if (this.mouseButtons.right ===
|
|
22154
|
+
if (this.mouseButtons.right === Bs.ACTION.NONE) {
|
|
22155
22155
|
const W = p instanceof PointerEvent ? p.pointerId : 0, X = this._findPointerById(W);
|
|
22156
22156
|
X && this._disposePointer(X), this._domElement.ownerDocument.removeEventListener("pointermove", o, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("pointerup", c);
|
|
22157
22157
|
return;
|
|
@@ -22459,7 +22459,7 @@ class ra extends C4 {
|
|
|
22459
22459
|
* @category Methods
|
|
22460
22460
|
*/
|
|
22461
22461
|
dollyTo(t, e = !1) {
|
|
22462
|
-
return this._isUserControllingDolly = !1, this._lastDollyDirection =
|
|
22462
|
+
return this._isUserControllingDolly = !1, this._lastDollyDirection = Fl.NONE, this._changedDolly = 0, this._dollyToNoClamp(vi(t, this.minDistance, this.maxDistance), e);
|
|
22463
22463
|
}
|
|
22464
22464
|
_dollyToNoClamp(t, e = !1) {
|
|
22465
22465
|
const i = this._sphericalEnd.radius;
|
|
@@ -22589,7 +22589,7 @@ class ra extends C4 {
|
|
|
22589
22589
|
* @category Methods
|
|
22590
22590
|
*/
|
|
22591
22591
|
fitToBox(t, e, { cover: i = !1, paddingLeft: s = 0, paddingRight: l = 0, paddingBottom: a = 0, paddingTop: o = 0 } = {}) {
|
|
22592
|
-
const c = [], d = t.isBox3 ?
|
|
22592
|
+
const c = [], d = t.isBox3 ? Hl.copy(t) : Hl.setFromObject(t);
|
|
22593
22593
|
d.isEmpty() && (console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"), Promise.resolve());
|
|
22594
22594
|
const r = Yp(this._sphericalEnd.theta, Sp), h = Yp(this._sphericalEnd.phi, Sp);
|
|
22595
22595
|
c.push(this.rotateTo(r, h, e));
|
|
@@ -22614,7 +22614,7 @@ class ra extends C4 {
|
|
|
22614
22614
|
* @category Methods
|
|
22615
22615
|
*/
|
|
22616
22616
|
fitToSphere(t, e) {
|
|
22617
|
-
const i = [], l = t instanceof te.Sphere ? xu.copy(t) :
|
|
22617
|
+
const i = [], l = t instanceof te.Sphere ? xu.copy(t) : Bs.createBoundingSphere(t, xu);
|
|
22618
22618
|
if (i.push(this.moveTo(l.center.x, l.center.y, l.center.z, e)), gs(this._camera)) {
|
|
22619
22619
|
const a = this.getDistanceToFitSphere(l.radius);
|
|
22620
22620
|
i.push(this.dollyTo(a, e));
|
|
@@ -22636,7 +22636,7 @@ class ra extends C4 {
|
|
|
22636
22636
|
* @category Methods
|
|
22637
22637
|
*/
|
|
22638
22638
|
setLookAt(t, e, i, s, l, a, o = !1) {
|
|
22639
|
-
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection =
|
|
22639
|
+
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection = Fl.NONE, this._changedDolly = 0;
|
|
22640
22640
|
const c = Te.set(s, l, a), d = be.set(t, e, i);
|
|
22641
22641
|
this._targetEnd.copy(c), this._sphericalEnd.setFromVector3(d.sub(c).applyQuaternion(this._yAxisUpSpace)), this.normalizeRotations(), this._needsUpdate = !0, o || (this._target.copy(this._targetEnd), this._spherical.copy(this._sphericalEnd));
|
|
22642
22642
|
const r = !o || He(this._target.x, this._targetEnd.x, this.restThreshold) && He(this._target.y, this._targetEnd.y, this.restThreshold) && He(this._target.z, this._targetEnd.z, this.restThreshold) && He(this._spherical.theta, this._sphericalEnd.theta, this.restThreshold) && He(this._spherical.phi, this._sphericalEnd.phi, this.restThreshold) && He(this._spherical.radius, this._sphericalEnd.radius, this.restThreshold);
|
|
@@ -22661,10 +22661,10 @@ class ra extends C4 {
|
|
|
22661
22661
|
* @category Methods
|
|
22662
22662
|
*/
|
|
22663
22663
|
lerpLookAt(t, e, i, s, l, a, o, c, d, r, h, u, m, b = !1) {
|
|
22664
|
-
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection =
|
|
22664
|
+
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection = Fl.NONE, this._changedDolly = 0;
|
|
22665
22665
|
const G = be.set(s, l, a), Z = Te.set(t, e, i);
|
|
22666
22666
|
xi.setFromVector3(Z.sub(G).applyQuaternion(this._yAxisUpSpace));
|
|
22667
|
-
const p =
|
|
22667
|
+
const p = wl.set(r, h, u), W = Te.set(o, c, d);
|
|
22668
22668
|
Ua.setFromVector3(W.sub(p).applyQuaternion(this._yAxisUpSpace)), this._targetEnd.copy(G.lerp(p, m));
|
|
22669
22669
|
const X = Ua.theta - xi.theta, y = Ua.phi - xi.phi, g = Ua.radius - xi.radius;
|
|
22670
22670
|
this._sphericalEnd.set(xi.radius + g * m, xi.phi + y * m, xi.theta + X * m), this.normalizeRotations(), this._needsUpdate = !0, b || (this._target.copy(this._targetEnd), this._spherical.copy(this._sphericalEnd));
|
|
@@ -22817,7 +22817,7 @@ class ra extends C4 {
|
|
|
22817
22817
|
* @category Methods
|
|
22818
22818
|
*/
|
|
22819
22819
|
normalizeRotations() {
|
|
22820
|
-
this._sphericalEnd.theta = this._sphericalEnd.theta %
|
|
22820
|
+
this._sphericalEnd.theta = this._sphericalEnd.theta % vl, this._sphericalEnd.theta < 0 && (this._sphericalEnd.theta += vl), this._spherical.theta += vl * Math.round((this._sphericalEnd.theta - this._spherical.theta) / vl);
|
|
22821
22821
|
}
|
|
22822
22822
|
/**
|
|
22823
22823
|
* Reset all rotation and position to defaults.
|
|
@@ -22912,7 +22912,7 @@ class ra extends C4 {
|
|
|
22912
22912
|
if (gs(this._camera) && this._changedDolly !== 0) {
|
|
22913
22913
|
const h = this._spherical.radius - this._lastDistance, u = this._camera, m = this._getCameraDirection(ka), b = be.copy(m).cross(u.up).normalize();
|
|
22914
22914
|
b.lengthSq() === 0 && (b.x = 1);
|
|
22915
|
-
const G = Te.crossVectors(b, m), Z = this._sphericalEnd.radius * Math.tan(u.getEffectiveFOV() * za * 0.5), W = (this._sphericalEnd.radius - h - this._sphericalEnd.radius) / this._sphericalEnd.radius, X =
|
|
22915
|
+
const G = Te.crossVectors(b, m), Z = this._sphericalEnd.radius * Math.tan(u.getEffectiveFOV() * za * 0.5), W = (this._sphericalEnd.radius - h - this._sphericalEnd.radius) / this._sphericalEnd.radius, X = wl.copy(this._targetEnd).add(b.multiplyScalar(this._dollyControlCoord.x * Z * u.aspect)).add(G.multiplyScalar(this._dollyControlCoord.y * Z)), y = be.copy(this._targetEnd).lerp(X, W), g = this._lastDollyDirection === Fl.IN && this._spherical.radius <= this.minDistance, x = this._lastDollyDirection === Fl.OUT && this.maxDistance <= this._spherical.radius;
|
|
22916
22916
|
if (this.infinityDolly && (g || x)) {
|
|
22917
22917
|
this._sphericalEnd.radius -= h, this._spherical.radius -= h;
|
|
22918
22918
|
const N = Te.copy(m).multiplyScalar(-h);
|
|
@@ -22922,7 +22922,7 @@ class ra extends C4 {
|
|
|
22922
22922
|
const C = Te.subVectors(y, this._targetEnd);
|
|
22923
22923
|
this._targetEnd.copy(y), this._target.add(C), this._changedDolly -= h, je(this._changedDolly) && (this._changedDolly = 0);
|
|
22924
22924
|
} else if (Dn(this._camera) && this._changedZoom !== 0) {
|
|
22925
|
-
const h = this._zoom - this._lastZoom, u = this._camera, m = be.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (u.near + u.far) / (u.near - u.far)).unproject(u), b = Te.set(0, 0, -1).applyQuaternion(u.quaternion), G =
|
|
22925
|
+
const h = this._zoom - this._lastZoom, u = this._camera, m = be.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (u.near + u.far) / (u.near - u.far)).unproject(u), b = Te.set(0, 0, -1).applyQuaternion(u.quaternion), G = wl.copy(m).add(b.multiplyScalar(-m.dot(u.up))), p = -(this._zoom - h - this._zoom) / this._zoom, W = this._getCameraDirection(ka), X = this._targetEnd.dot(W), y = be.copy(this._targetEnd).lerp(G, p), g = y.dot(W), x = W.multiplyScalar(g - X);
|
|
22926
22926
|
y.sub(x), this._boundary.clampPoint(y, y);
|
|
22927
22927
|
const C = Te.subVectors(y, this._targetEnd);
|
|
22928
22928
|
this._targetEnd.copy(y), this._target.add(C), this._changedZoom -= h, je(this._changedZoom) && (this._changedZoom = 0);
|
|
@@ -23020,7 +23020,7 @@ class ra extends C4 {
|
|
|
23020
23020
|
const s = e.lengthSq();
|
|
23021
23021
|
if (s === 0)
|
|
23022
23022
|
return t;
|
|
23023
|
-
const l = Te.copy(e).add(t), o = this._boundary.clampPoint(l,
|
|
23023
|
+
const l = Te.copy(e).add(t), o = this._boundary.clampPoint(l, wl).sub(l), c = o.lengthSq();
|
|
23024
23024
|
if (c === 0)
|
|
23025
23025
|
return t.add(e);
|
|
23026
23026
|
if (c === s)
|
|
@@ -23051,7 +23051,7 @@ class ra extends C4 {
|
|
|
23051
23051
|
for (let s = 0; s < 4; s++) {
|
|
23052
23052
|
const l = Te.copy(this._nearPlaneCorners[s]);
|
|
23053
23053
|
l.applyMatrix4(Lu);
|
|
23054
|
-
const a =
|
|
23054
|
+
const a = wl.addVectors(this._target, l);
|
|
23055
23055
|
yd.set(a, i), yd.far = this._spherical.radius + 1;
|
|
23056
23056
|
const o = yd.intersectObjects(this.colliderMeshes);
|
|
23057
23057
|
o.length !== 0 && o[0].distance < t && (t = o[0].distance);
|
|
@@ -23114,9 +23114,9 @@ class ra extends C4 {
|
|
|
23114
23114
|
}
|
|
23115
23115
|
static createBoundingSphere(t, e = new te.Sphere()) {
|
|
23116
23116
|
const i = e, s = i.center;
|
|
23117
|
-
|
|
23118
|
-
a.isMesh &&
|
|
23119
|
-
}),
|
|
23117
|
+
Hl.makeEmpty(), t.traverseVisible((a) => {
|
|
23118
|
+
a.isMesh && Hl.expandByObject(a);
|
|
23119
|
+
}), Hl.getCenter(s);
|
|
23120
23120
|
let l = 0;
|
|
23121
23121
|
return t.traverseVisible((a) => {
|
|
23122
23122
|
if (!a.isMesh)
|
|
@@ -23129,7 +23129,7 @@ class ra extends C4 {
|
|
|
23129
23129
|
}), i.radius = Math.sqrt(l), i;
|
|
23130
23130
|
}
|
|
23131
23131
|
}
|
|
23132
|
-
var
|
|
23132
|
+
var _l = Object.freeze({
|
|
23133
23133
|
Linear: Object.freeze({
|
|
23134
23134
|
None: function(n) {
|
|
23135
23135
|
return n;
|
|
@@ -23248,13 +23248,13 @@ var Ol = Object.freeze({
|
|
|
23248
23248
|
}),
|
|
23249
23249
|
Bounce: Object.freeze({
|
|
23250
23250
|
In: function(n) {
|
|
23251
|
-
return 1 -
|
|
23251
|
+
return 1 - _l.Bounce.Out(1 - n);
|
|
23252
23252
|
},
|
|
23253
23253
|
Out: function(n) {
|
|
23254
23254
|
return n < 1 / 2.75 ? 7.5625 * n * n : n < 2 / 2.75 ? 7.5625 * (n -= 1.5 / 2.75) * n + 0.75 : n < 2.5 / 2.75 ? 7.5625 * (n -= 2.25 / 2.75) * n + 0.9375 : 7.5625 * (n -= 2.625 / 2.75) * n + 0.984375;
|
|
23255
23255
|
},
|
|
23256
23256
|
InOut: function(n) {
|
|
23257
|
-
return n < 0.5 ?
|
|
23257
|
+
return n < 0.5 ? _l.Bounce.In(n * 2) * 0.5 : _l.Bounce.Out(n * 2 - 1) * 0.5 + 0.5;
|
|
23258
23258
|
}
|
|
23259
23259
|
}),
|
|
23260
23260
|
generatePow: function(n) {
|
|
@@ -23270,7 +23270,7 @@ var Ol = Object.freeze({
|
|
|
23270
23270
|
}
|
|
23271
23271
|
};
|
|
23272
23272
|
}
|
|
23273
|
-
}),
|
|
23273
|
+
}), Pl = function() {
|
|
23274
23274
|
return performance.now();
|
|
23275
23275
|
}, J3 = (
|
|
23276
23276
|
/** @class */
|
|
@@ -23290,7 +23290,7 @@ var Ol = Object.freeze({
|
|
|
23290
23290
|
}, n.prototype.remove = function(t) {
|
|
23291
23291
|
delete this._tweens[t.getId()], delete this._tweensAddedDuringUpdate[t.getId()];
|
|
23292
23292
|
}, n.prototype.update = function(t, e) {
|
|
23293
|
-
t === void 0 && (t =
|
|
23293
|
+
t === void 0 && (t = Pl()), e === void 0 && (e = !1);
|
|
23294
23294
|
var i = Object.keys(this._tweens);
|
|
23295
23295
|
if (i.length === 0)
|
|
23296
23296
|
return !1;
|
|
@@ -23356,7 +23356,7 @@ var Ol = Object.freeze({
|
|
|
23356
23356
|
/** @class */
|
|
23357
23357
|
function() {
|
|
23358
23358
|
function n(t, e) {
|
|
23359
|
-
e === void 0 && (e = z1), this._object = t, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction =
|
|
23359
|
+
e === void 0 && (e = z1), this._object = t, this._group = e, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = _l.Linear.None, this._interpolationFunction = Hs.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = b2.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
|
|
23360
23360
|
}
|
|
23361
23361
|
return n.prototype.getId = function() {
|
|
23362
23362
|
return this._id;
|
|
@@ -23373,7 +23373,7 @@ var Ol = Object.freeze({
|
|
|
23373
23373
|
}, n.prototype.dynamic = function(t) {
|
|
23374
23374
|
return t === void 0 && (t = !1), this._isDynamic = t, this;
|
|
23375
23375
|
}, n.prototype.start = function(t, e) {
|
|
23376
|
-
if (t === void 0 && (t =
|
|
23376
|
+
if (t === void 0 && (t = Pl()), e === void 0 && (e = !1), this._isPlaying)
|
|
23377
23377
|
return this;
|
|
23378
23378
|
if (this._group && this._group.add(this), this._repeat = this._initialRepeat, this._reversed) {
|
|
23379
23379
|
this._reversed = !1;
|
|
@@ -23433,9 +23433,9 @@ var Ol = Object.freeze({
|
|
|
23433
23433
|
}, n.prototype.end = function() {
|
|
23434
23434
|
return this._goToEnd = !0, this.update(1 / 0), this;
|
|
23435
23435
|
}, n.prototype.pause = function(t) {
|
|
23436
|
-
return t === void 0 && (t =
|
|
23436
|
+
return t === void 0 && (t = Pl()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = t, this._group && this._group.remove(this), this);
|
|
23437
23437
|
}, n.prototype.resume = function(t) {
|
|
23438
|
-
return t === void 0 && (t =
|
|
23438
|
+
return t === void 0 && (t = Pl()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += t - this._pauseStart, this._pauseStart = 0, this._group && this._group.add(this), this);
|
|
23439
23439
|
}, n.prototype.stopChainedTweens = function() {
|
|
23440
23440
|
for (var t = 0, e = this._chainedTweens.length; t < e; t++)
|
|
23441
23441
|
this._chainedTweens[t].stop();
|
|
@@ -23451,7 +23451,7 @@ var Ol = Object.freeze({
|
|
|
23451
23451
|
}, n.prototype.yoyo = function(t) {
|
|
23452
23452
|
return t === void 0 && (t = !1), this._yoyo = t, this;
|
|
23453
23453
|
}, n.prototype.easing = function(t) {
|
|
23454
|
-
return t === void 0 && (t =
|
|
23454
|
+
return t === void 0 && (t = _l.Linear.None), this._easingFunction = t, this;
|
|
23455
23455
|
}, n.prototype.interpolation = function(t) {
|
|
23456
23456
|
return t === void 0 && (t = Hs.Linear), this._interpolationFunction = t, this;
|
|
23457
23457
|
}, n.prototype.chain = function() {
|
|
@@ -23471,7 +23471,7 @@ var Ol = Object.freeze({
|
|
|
23471
23471
|
}, n.prototype.onStop = function(t) {
|
|
23472
23472
|
return this._onStopCallback = t, this;
|
|
23473
23473
|
}, n.prototype.update = function(t, e) {
|
|
23474
|
-
if (t === void 0 && (t =
|
|
23474
|
+
if (t === void 0 && (t = Pl()), e === void 0 && (e = !0), this._isPaused)
|
|
23475
23475
|
return !0;
|
|
23476
23476
|
var i, s, l = this._startTime + this._duration;
|
|
23477
23477
|
if (!this._goToEnd && !this._isPlaying) {
|
|
@@ -23512,10 +23512,10 @@ var Ol = Object.freeze({
|
|
|
23512
23512
|
}, n;
|
|
23513
23513
|
}()
|
|
23514
23514
|
), N4 = "21.0.0", I4 = b2.nextId, dn = z1, T4 = dn.getAll.bind(dn), k3 = dn.removeAll.bind(dn), M4 = dn.add.bind(dn), F4 = dn.remove.bind(dn), U3 = dn.update.bind(dn), So = {
|
|
23515
|
-
Easing:
|
|
23515
|
+
Easing: _l,
|
|
23516
23516
|
Group: J3,
|
|
23517
23517
|
Interpolation: Hs,
|
|
23518
|
-
now:
|
|
23518
|
+
now: Pl,
|
|
23519
23519
|
Sequence: b2,
|
|
23520
23520
|
nextId: I4,
|
|
23521
23521
|
Tween: K1,
|
|
@@ -23525,10 +23525,10 @@ var Ol = Object.freeze({
|
|
|
23525
23525
|
add: M4,
|
|
23526
23526
|
remove: F4,
|
|
23527
23527
|
update: U3
|
|
23528
|
-
}, Z2 = { exports: {} },
|
|
23528
|
+
}, Z2 = { exports: {} }, ql = typeof Reflect == "object" ? Reflect : null, wp = ql && typeof ql.apply == "function" ? ql.apply : function(n, t, e) {
|
|
23529
23529
|
return Function.prototype.apply.call(n, t, e);
|
|
23530
23530
|
}, jd;
|
|
23531
|
-
|
|
23531
|
+
ql && typeof ql.ownKeys == "function" ? jd = ql.ownKeys : Object.getOwnPropertySymbols ? jd = function(n) {
|
|
23532
23532
|
return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n));
|
|
23533
23533
|
} : jd = function(n) {
|
|
23534
23534
|
return Object.getOwnPropertyNames(n);
|
|
@@ -25309,7 +25309,7 @@ function* CL(n) {
|
|
|
25309
25309
|
function uc(n) {
|
|
25310
25310
|
return Array.from(CL(n));
|
|
25311
25311
|
}
|
|
25312
|
-
var Ke = 1e-6, hr = 1e-12, Le = Math.PI, oi = Le / 2, ur = Le / 4, di = Le * 2, b0 = 180 / Le, ae = Le / 180,
|
|
25312
|
+
var Ke = 1e-6, hr = 1e-12, Le = Math.PI, oi = Le / 2, ur = Le / 4, di = Le * 2, b0 = 180 / Le, ae = Le / 180, _e = Math.abs, V2 = Math.atan, Ci = Math.atan2, re = Math.cos, SL = Math.exp, U1 = Math.hypot, YL = Math.log, ne = Math.sin, NL = Math.sign || function(n) {
|
|
25313
25313
|
return n > 0 ? 1 : n < 0 ? -1 : 0;
|
|
25314
25314
|
}, Tn = Math.sqrt, IL = Math.tan;
|
|
25315
25315
|
function TL(n) {
|
|
@@ -25404,7 +25404,7 @@ function nG(n, t) {
|
|
|
25404
25404
|
function br(n) {
|
|
25405
25405
|
return [Ci(n[1], n[0]), Mn(n[2])];
|
|
25406
25406
|
}
|
|
25407
|
-
function
|
|
25407
|
+
function $s(n) {
|
|
25408
25408
|
var t = n[0], e = n[1], i = re(e);
|
|
25409
25409
|
return [i * re(t), i * ne(t), ne(e)];
|
|
25410
25410
|
}
|
|
@@ -25424,7 +25424,7 @@ function Zr(n) {
|
|
|
25424
25424
|
var t = Tn(n[0] * n[0] + n[1] * n[1] + n[2] * n[2]);
|
|
25425
25425
|
n[0] /= t, n[1] /= t, n[2] /= t;
|
|
25426
25426
|
}
|
|
25427
|
-
var c0, ni, p0, bi, Ss, sG, lG,
|
|
25427
|
+
var c0, ni, p0, bi, Ss, sG, lG, $l, lo, On, vn, Wn = {
|
|
25428
25428
|
point: A1,
|
|
25429
25429
|
lineStart: Pp,
|
|
25430
25430
|
lineEnd: Qp,
|
|
@@ -25442,26 +25442,26 @@ function A1(n, t) {
|
|
|
25442
25442
|
On.push(vn = [c0 = n, p0 = n]), t < ni && (ni = t), t > bi && (bi = t);
|
|
25443
25443
|
}
|
|
25444
25444
|
function aG(n, t) {
|
|
25445
|
-
var e =
|
|
25446
|
-
if (
|
|
25447
|
-
var i = ua(
|
|
25445
|
+
var e = $s([n * ae, t * ae]);
|
|
25446
|
+
if ($l) {
|
|
25447
|
+
var i = ua($l, e), s = [i[1], -i[0], 0], l = ua(s, i);
|
|
25448
25448
|
Zr(l), l = br(l);
|
|
25449
|
-
var a = n - Ss, o = a > 0 ? 1 : -1, c = l[0] * b0 * o, d, r =
|
|
25449
|
+
var a = n - Ss, o = a > 0 ? 1 : -1, c = l[0] * b0 * o, d, r = _e(a) > 180;
|
|
25450
25450
|
r ^ (o * Ss < c && c < o * n) ? (d = l[1] * b0, d > bi && (bi = d)) : (c = (c + 360) % 360 - 180, r ^ (o * Ss < c && c < o * n) ? (d = -l[1] * b0, d < ni && (ni = d)) : (t < ni && (ni = t), t > bi && (bi = t))), r ? n < Ss ? mi(c0, n) > mi(c0, p0) && (p0 = n) : mi(n, p0) > mi(c0, p0) && (c0 = n) : p0 >= c0 ? (n < c0 && (c0 = n), n > p0 && (p0 = n)) : n > Ss ? mi(c0, n) > mi(c0, p0) && (p0 = n) : mi(n, p0) > mi(c0, p0) && (c0 = n);
|
|
25451
25451
|
} else
|
|
25452
25452
|
On.push(vn = [c0 = n, p0 = n]);
|
|
25453
|
-
t < ni && (ni = t), t > bi && (bi = t),
|
|
25453
|
+
t < ni && (ni = t), t > bi && (bi = t), $l = e, Ss = n;
|
|
25454
25454
|
}
|
|
25455
25455
|
function Pp() {
|
|
25456
25456
|
Wn.point = aG;
|
|
25457
25457
|
}
|
|
25458
25458
|
function Qp() {
|
|
25459
|
-
vn[0] = c0, vn[1] = p0, Wn.point = A1,
|
|
25459
|
+
vn[0] = c0, vn[1] = p0, Wn.point = A1, $l = null;
|
|
25460
25460
|
}
|
|
25461
25461
|
function oG(n, t) {
|
|
25462
|
-
if (
|
|
25462
|
+
if ($l) {
|
|
25463
25463
|
var e = n - Ss;
|
|
25464
|
-
lo.add(
|
|
25464
|
+
lo.add(_e(e) > 180 ? e + (e > 0 ? 360 : -360) : e);
|
|
25465
25465
|
} else
|
|
25466
25466
|
sG = n, lG = t;
|
|
25467
25467
|
Fn.point(n, t), aG(n, t);
|
|
@@ -25470,7 +25470,7 @@ function wL() {
|
|
|
25470
25470
|
Fn.lineStart();
|
|
25471
25471
|
}
|
|
25472
25472
|
function HL() {
|
|
25473
|
-
oG(sG, lG), Fn.lineEnd(),
|
|
25473
|
+
oG(sG, lG), Fn.lineEnd(), _e(lo) > Ke && (c0 = -(p0 = 180)), vn[0] = c0, vn[1] = p0, $l = null;
|
|
25474
25474
|
}
|
|
25475
25475
|
function mi(n, t) {
|
|
25476
25476
|
return (t -= n) < 0 ? t + 360 : t;
|
|
@@ -25557,7 +25557,7 @@ function _1(n, t) {
|
|
|
25557
25557
|
}), e;
|
|
25558
25558
|
}
|
|
25559
25559
|
function q1(n, t) {
|
|
25560
|
-
return
|
|
25560
|
+
return _e(n) > Le && (n -= Math.round(n / di) * di), [n, t];
|
|
25561
25561
|
}
|
|
25562
25562
|
q1.invert = q1;
|
|
25563
25563
|
function uG(n, t, e) {
|
|
@@ -25565,7 +25565,7 @@ function uG(n, t, e) {
|
|
|
25565
25565
|
}
|
|
25566
25566
|
function _p(n) {
|
|
25567
25567
|
return function(t, e) {
|
|
25568
|
-
return t += n,
|
|
25568
|
+
return t += n, _e(t) > Le && (t -= Math.round(t / di) * di), [t, e];
|
|
25569
25569
|
};
|
|
25570
25570
|
}
|
|
25571
25571
|
function qp(n) {
|
|
@@ -25607,7 +25607,7 @@ function EL(n, t, e, i, s, l) {
|
|
|
25607
25607
|
}
|
|
25608
25608
|
}
|
|
25609
25609
|
function tb(n, t) {
|
|
25610
|
-
t =
|
|
25610
|
+
t = $s(t), t[0] -= n, Zr(t);
|
|
25611
25611
|
var e = TL(-t[1]);
|
|
25612
25612
|
return ((-t[2] < 0 ? -e : e) + di - Ke) % di;
|
|
25613
25613
|
}
|
|
@@ -25631,7 +25631,7 @@ function pG() {
|
|
|
25631
25631
|
};
|
|
25632
25632
|
}
|
|
25633
25633
|
function Od(n, t) {
|
|
25634
|
-
return
|
|
25634
|
+
return _e(n[0] - t[0]) < Ke && _e(n[1] - t[1]) < Ke;
|
|
25635
25635
|
}
|
|
25636
25636
|
function fd(n, t, e, i) {
|
|
25637
25637
|
this.x = n, this.z = t, this.o = e, this.e = i, this.v = !1, this.n = this.p = null;
|
|
@@ -25685,7 +25685,7 @@ function eb(n) {
|
|
|
25685
25685
|
}
|
|
25686
25686
|
}
|
|
25687
25687
|
function Iu(n) {
|
|
25688
|
-
return
|
|
25688
|
+
return _e(n[0]) <= Le ? n[0] : NL(n[0]) * ((_e(n[0]) + Le) % di - Le);
|
|
25689
25689
|
}
|
|
25690
25690
|
function ZG(n, t) {
|
|
25691
25691
|
var e = Iu(t), i = t[1], s = ne(i), l = [ne(e), -re(e), 0], a = 0, o = 0, c = new Sn();
|
|
@@ -25695,7 +25695,7 @@ function ZG(n, t) {
|
|
|
25695
25695
|
for (var h, u, m = h[u - 1], b = Iu(m), G = m[1] / 2 + ur, Z = ne(G), p = re(G), W = 0; W < u; ++W, b = y, Z = x, p = C, m = X) {
|
|
25696
25696
|
var X = h[W], y = Iu(X), g = X[1] / 2 + ur, x = ne(g), C = re(g), N = y - b, L = N >= 0 ? 1 : -1, R = L * N, I = R > Le, K = Z * x;
|
|
25697
25697
|
if (c.add(Ci(K * L * ne(R), p * C + K * re(R))), a += I ? N + L * di : N, I ^ b >= e ^ y >= e) {
|
|
25698
|
-
var H = ua(
|
|
25698
|
+
var H = ua($s(m), $s(X));
|
|
25699
25699
|
Zr(H);
|
|
25700
25700
|
var z = ua(l, H);
|
|
25701
25701
|
Zr(z);
|
|
@@ -25779,8 +25779,8 @@ function AL(n) {
|
|
|
25779
25779
|
n.lineStart(), s = 1;
|
|
25780
25780
|
},
|
|
25781
25781
|
point: function(l, a) {
|
|
25782
|
-
var o = l > 0 ? Le : -Le, c =
|
|
25783
|
-
|
|
25782
|
+
var o = l > 0 ? Le : -Le, c = _e(l - t);
|
|
25783
|
+
_e(c - Le) < Ke ? (n.point(t, e = (e + a) / 2 > 0 ? oi : -oi), n.point(i, e), n.lineEnd(), n.lineStart(), n.point(o, e), n.point(l, e), s = 0) : i !== o && c >= Le && (_e(t - i) < Ke && (t -= i * Ke), _e(l - o) < Ke && (l -= o * Ke), e = jL(t, e, l, a), n.point(i, e), n.lineEnd(), n.lineStart(), n.point(o, e), s = 0), n.point(t = l, e = a), i = o;
|
|
25784
25784
|
},
|
|
25785
25785
|
lineEnd: function() {
|
|
25786
25786
|
n.lineEnd(), t = e = NaN;
|
|
@@ -25792,20 +25792,20 @@ function AL(n) {
|
|
|
25792
25792
|
}
|
|
25793
25793
|
function jL(n, t, e, i) {
|
|
25794
25794
|
var s, l, a = ne(n - e);
|
|
25795
|
-
return
|
|
25795
|
+
return _e(a) > Ke ? V2((ne(t) * (l = re(i)) * ne(e) - ne(i) * (s = re(t)) * ne(n)) / (s * l * a)) : (t + i) / 2;
|
|
25796
25796
|
}
|
|
25797
25797
|
function DL(n, t, e, i) {
|
|
25798
25798
|
var s;
|
|
25799
25799
|
if (n == null)
|
|
25800
25800
|
s = e * oi, i.point(-Le, s), i.point(0, s), i.point(Le, s), i.point(Le, 0), i.point(Le, -s), i.point(0, -s), i.point(-Le, -s), i.point(-Le, 0), i.point(-Le, s);
|
|
25801
|
-
else if (
|
|
25801
|
+
else if (_e(n[0] - t[0]) > Ke) {
|
|
25802
25802
|
var l = n[0] < t[0] ? Le : -Le;
|
|
25803
25803
|
s = e * l / 2, i.point(-l, s), i.point(0, s), i.point(l, s);
|
|
25804
25804
|
} else
|
|
25805
25805
|
i.point(t[0], t[1]);
|
|
25806
25806
|
}
|
|
25807
25807
|
function OL(n) {
|
|
25808
|
-
var t = re(n), e = 6 * ae, i = t > 0, s =
|
|
25808
|
+
var t = re(n), e = 6 * ae, i = t > 0, s = _e(t) > Ke;
|
|
25809
25809
|
function l(r, h, u, m) {
|
|
25810
25810
|
EL(m, n, e, u, r, h);
|
|
25811
25811
|
}
|
|
@@ -25839,7 +25839,7 @@ function OL(n) {
|
|
|
25839
25839
|
};
|
|
25840
25840
|
}
|
|
25841
25841
|
function c(r, h, u) {
|
|
25842
|
-
var m =
|
|
25842
|
+
var m = $s(r), b = $s(h), G = [1, 0, 0], Z = ua(m, b), p = Vd(Z, Z), W = Z[0], X = p - W * W;
|
|
25843
25843
|
if (!X) return !u && r;
|
|
25844
25844
|
var y = t * p / X, g = -t * W / X, x = ua(G, Z), C = gd(G, y), N = gd(Z, g);
|
|
25845
25845
|
Nu(C, N);
|
|
@@ -25849,8 +25849,8 @@ function OL(n) {
|
|
|
25849
25849
|
if (Nu(z, C), z = br(z), !u) return z;
|
|
25850
25850
|
var v = r[0], J = h[0], Q = r[1], A = h[1], et;
|
|
25851
25851
|
J < v && (et = v, v = J, J = et);
|
|
25852
|
-
var Vt = J - v, Rt =
|
|
25853
|
-
if (!Rt && A < Q && (et = Q, Q = A, A = et), Jt ? Rt ? Q + A > 0 ^ z[1] < (
|
|
25852
|
+
var Vt = J - v, Rt = _e(Vt - Le) < Ke, Jt = Rt || Vt < Ke;
|
|
25853
|
+
if (!Rt && A < Q && (et = Q, Q = A, A = et), Jt ? Rt ? Q + A > 0 ^ z[1] < (_e(z[0] - v) < Ke ? Q : A) : Q <= z[1] && z[1] <= A : Vt > Le ^ (v <= z[0] && z[0] <= J)) {
|
|
25854
25854
|
var At = gd(L, (-R + H) / I);
|
|
25855
25855
|
return Nu(At, C), [z, br(At)];
|
|
25856
25856
|
}
|
|
@@ -25917,7 +25917,7 @@ function qL(n, t, e, i) {
|
|
|
25917
25917
|
u.point(r[0], r[1]);
|
|
25918
25918
|
}
|
|
25919
25919
|
function a(d, r) {
|
|
25920
|
-
return
|
|
25920
|
+
return _e(d[0] - n) < Ke ? r > 0 ? 0 : 3 : _e(d[0] - e) < Ke ? r > 0 ? 2 : 1 : _e(d[1] - t) < Ke ? r > 0 ? 1 : 0 : r > 0 ? 3 : 2;
|
|
25921
25921
|
}
|
|
25922
25922
|
function o(d, r) {
|
|
25923
25923
|
return c(d.x, r.x);
|
|
@@ -25989,7 +25989,7 @@ function eC(n, t) {
|
|
|
25989
25989
|
}
|
|
25990
25990
|
function iC(n, t) {
|
|
25991
25991
|
n *= ae, t *= ae;
|
|
25992
|
-
var e = ne(t), i = re(t), s =
|
|
25992
|
+
var e = ne(t), i = re(t), s = _e(n - tm), l = re(s), a = ne(s), o = i * a, c = qd * e - _d * i * l, d = _d * e + qd * i * l;
|
|
25993
25993
|
$1.add(Ci(Tn(o * o + c * c), d)), tm = n, _d = e, qd = i;
|
|
25994
25994
|
}
|
|
25995
25995
|
function nC(n) {
|
|
@@ -26160,8 +26160,8 @@ function pC(n, t) {
|
|
|
26160
26160
|
function e(i, s, l, a, o, c, d, r, h, u, m, b, G, Z) {
|
|
26161
26161
|
var p = d - i, W = r - s, X = p * p + W * W;
|
|
26162
26162
|
if (X > 4 * t && G--) {
|
|
26163
|
-
var y = a + u, g = o + m, x = c + b, C = Tn(y * y + g * g + x * x), N = Mn(x /= C), L =
|
|
26164
|
-
(v * v / X > t ||
|
|
26163
|
+
var y = a + u, g = o + m, x = c + b, C = Tn(y * y + g * g + x * x), N = Mn(x /= C), L = _e(_e(x) - 1) < Ke || _e(l - h) < Ke ? (l + h) / 2 : Ci(g, y), R = n(L, N), I = R[0], K = R[1], H = I - i, z = K - s, v = W * H - p * z;
|
|
26164
|
+
(v * v / X > t || _e((p * H + W * z) / X - 0.5) > 0.3 || a * u + o * m + c * b < uC) && (e(i, s, l, a, o, c, I, K, L, y /= C, g /= C, x, G, Z), Z.point(I, K), e(I, K, L, y, g, x, d, r, h, u, m, b, G, Z));
|
|
26165
26165
|
}
|
|
26166
26166
|
}
|
|
26167
26167
|
return function(i) {
|
|
@@ -26183,7 +26183,7 @@ function pC(n, t) {
|
|
|
26183
26183
|
h = NaN, Z.point = X, i.lineStart();
|
|
26184
26184
|
}
|
|
26185
26185
|
function X(N, L) {
|
|
26186
|
-
var R =
|
|
26186
|
+
var R = $s([N, L]), I = n(N, L);
|
|
26187
26187
|
e(h, u, r, m, b, G, h = I[0], u = I[1], r = N, m = R[0], b = R[1], G = R[2], rb, i), i.point(h, u);
|
|
26188
26188
|
}
|
|
26189
26189
|
function y() {
|
|
@@ -27091,7 +27091,7 @@ class kC extends We {
|
|
|
27091
27091
|
]
|
|
27092
27092
|
}, R = {
|
|
27093
27093
|
XYZE: [
|
|
27094
|
-
[new Xt(new
|
|
27094
|
+
[new Xt(new ll(0.25, 10, 8), i)]
|
|
27095
27095
|
],
|
|
27096
27096
|
X: [
|
|
27097
27097
|
[new Xt(new Ji(0.5, 0.1, 4, 24), i), [0, 0, 0], [0, -Math.PI / 2, -Math.PI / 2]]
|
|
@@ -27349,7 +27349,7 @@ class AC extends We {
|
|
|
27349
27349
|
return super.copy(t, e), this.element = t.element.cloneNode(!0), this.center = t.center, this;
|
|
27350
27350
|
}
|
|
27351
27351
|
}
|
|
27352
|
-
const
|
|
27352
|
+
const zl = new Y(), xb = new Et(), Rb = new Et(), Lb = new Y(), Cb = new Y();
|
|
27353
27353
|
class jC {
|
|
27354
27354
|
constructor(t = {}) {
|
|
27355
27355
|
const e = this;
|
|
@@ -27378,9 +27378,9 @@ class jC {
|
|
|
27378
27378
|
return;
|
|
27379
27379
|
}
|
|
27380
27380
|
if (b.isCSS2DObject) {
|
|
27381
|
-
|
|
27382
|
-
const p =
|
|
27383
|
-
W.style.display = p === !0 ? "" : "none", p === !0 && (b.onBeforeRender(e, G, Z), W.style.transform = "translate(" + -100 * b.center.x + "%," + -100 * b.center.y + "%)translate(" + (
|
|
27381
|
+
zl.setFromMatrixPosition(b.matrixWorld), zl.applyMatrix4(Rb);
|
|
27382
|
+
const p = zl.z >= -1 && zl.z <= 1 && b.layers.test(Z.layers) === !0, W = b.element;
|
|
27383
|
+
W.style.display = p === !0 ? "" : "none", p === !0 && (b.onBeforeRender(e, G, Z), W.style.transform = "translate(" + -100 * b.center.x + "%," + -100 * b.center.y + "%)translate(" + (zl.x * l + l) + "px," + (-zl.y * a + a) + "px)", W.parentNode !== c && c.appendChild(W), b.onAfterRender(e, G, Z));
|
|
27384
27384
|
const X = {
|
|
27385
27385
|
distanceToCameraSquared: h(Z, b)
|
|
27386
27386
|
};
|
|
@@ -27492,7 +27492,7 @@ var ri = class gG {
|
|
|
27492
27492
|
* @param {Scene} [scene] - The scene to render. The default scene contains a single mesh that fills the screen.
|
|
27493
27493
|
* @param {Camera} [camera] - A camera. Fullscreen effect passes don't require a camera.
|
|
27494
27494
|
*/
|
|
27495
|
-
constructor(t = "Pass", e = new
|
|
27495
|
+
constructor(t = "Pass", e = new As(), i = _C) {
|
|
27496
27496
|
this.name = t, this.renderer = null, this.scene = e, this.camera = i, this.screen = null, this.rtt = !0, this.needsSwap = !0, this.needsDepthTexture = !1, this.enabled = !0;
|
|
27497
27497
|
}
|
|
27498
27498
|
/**
|
|
@@ -27562,7 +27562,7 @@ var ri = class gG {
|
|
|
27562
27562
|
}
|
|
27563
27563
|
set fullscreenMaterial(t) {
|
|
27564
27564
|
let e = this.screen;
|
|
27565
|
-
e !== null ? e.material = t : (e = new Xt(qC(), t), e.frustumCulled = !1, this.scene === null && (this.scene = new
|
|
27565
|
+
e !== null ? e.material = t : (e = new Xt(qC(), t), e.frustumCulled = !1, this.scene === null && (this.scene = new As()), this.scene.add(e), this.screen = e);
|
|
27566
27566
|
}
|
|
27567
27567
|
/**
|
|
27568
27568
|
* Returns the current fullscreen material.
|
|
@@ -27672,7 +27672,7 @@ var ri = class gG {
|
|
|
27672
27672
|
const l = n.state.buffers.stencil;
|
|
27673
27673
|
l.setLocked(!1), l.setTest(!1);
|
|
27674
27674
|
}
|
|
27675
|
-
}, tS = Number(
|
|
27675
|
+
}, tS = Number(il.replace(/\D+/g, ""));
|
|
27676
27676
|
function pc(n) {
|
|
27677
27677
|
return tS < 154 ? n.replace("colorspace_fragment", "encodings_fragment") : n;
|
|
27678
27678
|
}
|
|
@@ -29316,7 +29316,7 @@ gl_FragColor=vec4(l);
|
|
|
29316
29316
|
super({
|
|
29317
29317
|
name: "LuminanceMaterial",
|
|
29318
29318
|
defines: {
|
|
29319
|
-
THREE_REVISION:
|
|
29319
|
+
THREE_REVISION: il.replace(/\D+/g, "")
|
|
29320
29320
|
},
|
|
29321
29321
|
uniforms: {
|
|
29322
29322
|
inputBuffer: new oe(null),
|
|
@@ -30624,7 +30624,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, oY = class e
|
|
|
30624
30624
|
case ir:
|
|
30625
30625
|
t = "d0 > d1";
|
|
30626
30626
|
break;
|
|
30627
|
-
case
|
|
30627
|
+
case ia:
|
|
30628
30628
|
t = "d0 >= d1";
|
|
30629
30629
|
break;
|
|
30630
30630
|
case Rm:
|
|
@@ -30670,7 +30670,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, oY = class e
|
|
|
30670
30670
|
* @param {Camera} camera - A camera.
|
|
30671
30671
|
*/
|
|
30672
30672
|
copyCameraSettings(n) {
|
|
30673
|
-
n && (this.uniforms.cameraNearFar.value.set(n.near, n.far), n instanceof
|
|
30673
|
+
n && (this.uniforms.cameraNearFar.value.set(n.near, n.far), n instanceof Oe ? this.defines.PERSPECTIVE_CAMERA = "1" : delete this.defines.PERSPECTIVE_CAMERA, this.needsUpdate = !0);
|
|
30674
30674
|
}
|
|
30675
30675
|
}, RG = class extends ri {
|
|
30676
30676
|
/**
|
|
@@ -31643,7 +31643,7 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar);
|
|
|
31643
31643
|
super({
|
|
31644
31644
|
name: "EffectMaterial",
|
|
31645
31645
|
defines: {
|
|
31646
|
-
THREE_REVISION:
|
|
31646
|
+
THREE_REVISION: il.replace(/\D+/g, ""),
|
|
31647
31647
|
DEPTH_PACKING: "0",
|
|
31648
31648
|
ENCODE_OUTPUT: "1"
|
|
31649
31649
|
},
|
|
@@ -31833,7 +31833,7 @@ return orthographicDepthToViewZ(depth,cameraNear,cameraFar);
|
|
|
31833
31833
|
* @param {Camera} camera - A camera.
|
|
31834
31834
|
*/
|
|
31835
31835
|
copyCameraSettings(n) {
|
|
31836
|
-
n && (this.uniforms.cameraNear.value = n.near, this.uniforms.cameraFar.value = n.far, n instanceof
|
|
31836
|
+
n && (this.uniforms.cameraNear.value = n.near, this.uniforms.cameraFar.value = n.far, n instanceof Oe ? this.defines.PERSPECTIVE_CAMERA = "1" : delete this.defines.PERSPECTIVE_CAMERA, this.needsUpdate = !0);
|
|
31837
31837
|
}
|
|
31838
31838
|
/**
|
|
31839
31839
|
* Sets the resolution.
|
|
@@ -32328,9 +32328,9 @@ class RY {
|
|
|
32328
32328
|
setSize(t, e) {
|
|
32329
32329
|
this.renderer.setSize(t, e);
|
|
32330
32330
|
}
|
|
32331
|
-
render() {
|
|
32332
|
-
const { scene:
|
|
32333
|
-
this.renderer.render(
|
|
32331
|
+
render(t) {
|
|
32332
|
+
const { scene: e, camera: i } = this.options;
|
|
32333
|
+
this.renderer.render(e, t || i);
|
|
32334
32334
|
}
|
|
32335
32335
|
dispose() {
|
|
32336
32336
|
var t, e;
|
|
@@ -32407,7 +32407,7 @@ class CY {
|
|
|
32407
32407
|
if (s instanceof Ga)
|
|
32408
32408
|
this.camera = s, this.customCamera = !0;
|
|
32409
32409
|
else {
|
|
32410
|
-
const { fov: l, far: a, near: o, up: c } = s, d = new
|
|
32410
|
+
const { fov: l, far: a, near: o, up: c } = s, d = new Oe(
|
|
32411
32411
|
l,
|
|
32412
32412
|
e / i,
|
|
32413
32413
|
o,
|
|
@@ -32417,7 +32417,16 @@ class CY {
|
|
|
32417
32417
|
}
|
|
32418
32418
|
}
|
|
32419
32419
|
setSize(t, e) {
|
|
32420
|
-
this.camera instanceof
|
|
32420
|
+
this.camera instanceof Oe && (this.camera.aspect = t / e), this.camera.updateProjectionMatrix(), this.camera2 && (this.camera2.aspect = t / e, this.camera2.updateProjectionMatrix());
|
|
32421
|
+
}
|
|
32422
|
+
addCamera2() {
|
|
32423
|
+
const t = new Oe(
|
|
32424
|
+
this.camera.fov,
|
|
32425
|
+
this.camera.aspect,
|
|
32426
|
+
this.camera.near,
|
|
32427
|
+
this.camera.far
|
|
32428
|
+
);
|
|
32429
|
+
return t.position.copy(this.camera.position), this.camera2 = t, t;
|
|
32421
32430
|
}
|
|
32422
32431
|
setGui(t) {
|
|
32423
32432
|
const e = new sm({
|
|
@@ -32461,7 +32470,7 @@ class CY {
|
|
|
32461
32470
|
}
|
|
32462
32471
|
})
|
|
32463
32472
|
});
|
|
32464
|
-
this.camera instanceof
|
|
32473
|
+
this.camera instanceof Oe && (e.guiParams.camera.fov = {
|
|
32465
32474
|
min: 0,
|
|
32466
32475
|
max: 90,
|
|
32467
32476
|
step: 1,
|
|
@@ -32479,7 +32488,7 @@ const SY = {
|
|
|
32479
32488
|
class YY {
|
|
32480
32489
|
constructor(t) {
|
|
32481
32490
|
this.overrideMaterial = !1, this.options = t;
|
|
32482
|
-
const { camera: e, sceneParams: i } = t, { background: s, om: l } = i, a = l ? new
|
|
32491
|
+
const { camera: e, sceneParams: i } = t, { background: s, om: l } = i, a = l ? new As() : new Proxy(new As(), {
|
|
32483
32492
|
set: (o, c, d) => Reflect.set(o, c, d),
|
|
32484
32493
|
get: (o, c) => {
|
|
32485
32494
|
if (c === "overrideMaterial") {
|
|
@@ -32575,7 +32584,11 @@ let IY = class {
|
|
|
32575
32584
|
const a = new s(e, l);
|
|
32576
32585
|
a.enableDamping = !0, a.dampingFactor = 0.063, a.autoRotate = !1, a.autoRotateSpeed = -60, a.enableZoom = !0, a.zoomSpeed = 0.2, this.controls = a;
|
|
32577
32586
|
} else
|
|
32578
|
-
|
|
32587
|
+
Bs.install({ THREE: p2 }), this.cameraControls = new Bs(e, l);
|
|
32588
|
+
}
|
|
32589
|
+
addCameraControls2(t) {
|
|
32590
|
+
const { controlsParams: e } = this.options, { domElement: i } = e;
|
|
32591
|
+
this.cameraControls2 = new Bs(t, i);
|
|
32579
32592
|
}
|
|
32580
32593
|
enable() {
|
|
32581
32594
|
this.controls ? this.controls.enabled = !0 : this.cameraControls && (this.cameraControls.enabled = !0);
|
|
@@ -32584,12 +32597,12 @@ let IY = class {
|
|
|
32584
32597
|
this.controls ? this.controls.enabled = !1 : this.cameraControls && (this.cameraControls.enabled = !1);
|
|
32585
32598
|
}
|
|
32586
32599
|
update(t) {
|
|
32587
|
-
var e, i;
|
|
32588
|
-
(e = this.controls) == null || e.update(), (i = this.cameraControls) == null || i.update(t), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * t *
|
|
32600
|
+
var e, i, s;
|
|
32601
|
+
(e = this.controls) == null || e.update(), (i = this.cameraControls) == null || i.update(t), (s = this.cameraControls2) == null || s.update(t), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * t * ca.DEG2RAD);
|
|
32589
32602
|
}
|
|
32590
32603
|
dispose() {
|
|
32591
|
-
var t, e;
|
|
32592
|
-
(t = this.controls) == null || t.dispose(), (e = this.cameraControls) == null || e.dispose();
|
|
32604
|
+
var t, e, i;
|
|
32605
|
+
(t = this.controls) == null || t.dispose(), (e = this.cameraControls) == null || e.dispose(), (i = this.cameraControls2) == null || i.dispose();
|
|
32593
32606
|
}
|
|
32594
32607
|
}, TY = class {
|
|
32595
32608
|
constructor(t) {
|
|
@@ -32734,11 +32747,19 @@ const YG = {
|
|
|
32734
32747
|
let zY = class {
|
|
32735
32748
|
constructor(t) {
|
|
32736
32749
|
this.active = !0, this.options = t;
|
|
32737
|
-
const { renderer: e, scene: i, camera: s
|
|
32738
|
-
|
|
32739
|
-
|
|
32750
|
+
const { renderer: e, scene: i, camera: s } = t;
|
|
32751
|
+
this.finalComposer = this.addFinalComposer(s), this.renderer = e, this.scene = i, this.camera = s;
|
|
32752
|
+
}
|
|
32753
|
+
addFinalComposer(t) {
|
|
32754
|
+
const { renderer: e, scene: i, composerParams: s } = this.options, { multisampling: l, frameBufferType: a } = s, { maxSamples: o } = e.capabilities, c = new nS(e, {
|
|
32755
|
+
multisampling: Math.min(l, o),
|
|
32756
|
+
frameBufferType: a
|
|
32740
32757
|
});
|
|
32741
|
-
|
|
32758
|
+
return c.addPass(new RG(i, t)), c;
|
|
32759
|
+
}
|
|
32760
|
+
addFinalComposer2(t) {
|
|
32761
|
+
const e = this.addFinalComposer(t);
|
|
32762
|
+
this.finalComposer2 = e;
|
|
32742
32763
|
}
|
|
32743
32764
|
addCopyPass() {
|
|
32744
32765
|
const t = new C2();
|
|
@@ -32883,13 +32904,19 @@ let zY = class {
|
|
|
32883
32904
|
this.active && (this.active = !1);
|
|
32884
32905
|
}
|
|
32885
32906
|
setSize(t, e) {
|
|
32886
|
-
|
|
32907
|
+
var i;
|
|
32908
|
+
this.finalComposer.setSize(t, e), (i = this.finalComposer2) == null || i.setSize(t, e);
|
|
32887
32909
|
}
|
|
32888
32910
|
render() {
|
|
32889
32911
|
this.active && this.finalComposer.render();
|
|
32890
32912
|
}
|
|
32913
|
+
render2() {
|
|
32914
|
+
var t;
|
|
32915
|
+
this.active && ((t = this.finalComposer2) == null || t.render());
|
|
32916
|
+
}
|
|
32891
32917
|
dispose() {
|
|
32892
|
-
|
|
32918
|
+
var t;
|
|
32919
|
+
this.finalComposer.dispose(), (t = this.finalComposer2) == null || t.dispose();
|
|
32893
32920
|
}
|
|
32894
32921
|
};
|
|
32895
32922
|
const KY = () => {
|
|
@@ -32901,7 +32928,7 @@ const KY = () => {
|
|
|
32901
32928
|
}
|
|
32902
32929
|
}, Pa = !1, NG = KY() !== !1, IG = class TG {
|
|
32903
32930
|
constructor(t, e) {
|
|
32904
|
-
this.raycaster = new m2(), this.installPlugins = /* @__PURE__ */ new Map(), this.event = new G2.EventEmitter(), this.clock = new Wh(), this.userData = {}, this.options = eL(TG.options, t, {
|
|
32931
|
+
this.raycaster = new m2(), this.installPlugins = /* @__PURE__ */ new Map(), this.event = new G2.EventEmitter(), this.clock = new Wh(), this.userData = {}, this.mulitViewport = !1, this.options = eL(TG.options, t, {
|
|
32905
32932
|
isMergeableObject: WY
|
|
32906
32933
|
}), this.event.setMaxListeners(1 / 0);
|
|
32907
32934
|
const {
|
|
@@ -33118,7 +33145,7 @@ const KY = () => {
|
|
|
33118
33145
|
U3(), (t = this.controlsController) == null || t.update(r), this.installPlugins.forEach((u) => {
|
|
33119
33146
|
var m;
|
|
33120
33147
|
(m = u.update) == null || m.call(u, r, h);
|
|
33121
|
-
}), (e = this.helperController) == null || e.update(), (i = this.composerController) != null && i.active ? this.composerController.render() : (s = this.rendererController) == null || s.render(), (l = this.cssRendererController) == null || l.render(o, c), (a = this.stats) == null || a.update(), this.event.emit("render", { delta: r, elapsed: h });
|
|
33148
|
+
}), (e = this.helperController) == null || e.update(), (i = this.composerController) != null && i.active ? this.mulitViewport ? (this.setViewportLeft(), this.composerController.render(), this.setViewportRight(), this.composerController.render2()) : this.composerController.render() : (s = this.rendererController) == null || s.render(), (l = this.cssRendererController) == null || l.render(o, c), (a = this.stats) == null || a.update(), this.event.emit("render", { delta: r, elapsed: h });
|
|
33122
33149
|
}
|
|
33123
33150
|
start() {
|
|
33124
33151
|
this.renderer.setAnimationLoop(this.render.bind(this)), this.event.emit("start");
|
|
@@ -33129,6 +33156,42 @@ const KY = () => {
|
|
|
33129
33156
|
autoRotate(t) {
|
|
33130
33157
|
this.controlsController.autoRotateSpeed = t;
|
|
33131
33158
|
}
|
|
33159
|
+
setMulitViewport(t) {
|
|
33160
|
+
if (this.mulitViewport = t, t) {
|
|
33161
|
+
if (!this.controlsController.cameraControls2) {
|
|
33162
|
+
const e = this.cameraController.addCamera2();
|
|
33163
|
+
this.composerController.addFinalComposer2(e), this.controlsController.addCameraControls2(e);
|
|
33164
|
+
}
|
|
33165
|
+
this.controlsController.cameraControls.interactiveArea = new DOMRect(
|
|
33166
|
+
0,
|
|
33167
|
+
0,
|
|
33168
|
+
0.5,
|
|
33169
|
+
1
|
|
33170
|
+
), this.controlsController.cameraControls2.interactiveArea = new DOMRect(
|
|
33171
|
+
0.5,
|
|
33172
|
+
0,
|
|
33173
|
+
0.5,
|
|
33174
|
+
1
|
|
33175
|
+
);
|
|
33176
|
+
} else t || (this.controlsController.cameraControls2 && (this.controlsController.cameraControls.interactiveArea = new DOMRect(
|
|
33177
|
+
0,
|
|
33178
|
+
0,
|
|
33179
|
+
1,
|
|
33180
|
+
1
|
|
33181
|
+
)), this.setViewportFull());
|
|
33182
|
+
}
|
|
33183
|
+
setViewportFull() {
|
|
33184
|
+
const t = this.getSize(), e = 0, i = 0, s = t.width, l = t.height, a = s / l;
|
|
33185
|
+
this.camera.aspect !== a && (this.camera.aspect = a, this.camera.updateProjectionMatrix()), this.renderer.setViewport(e, i, s, l), this.renderer.setScissor(e, i, s, l), this.renderer.setScissorTest(!0);
|
|
33186
|
+
}
|
|
33187
|
+
setViewportLeft() {
|
|
33188
|
+
const t = this.getSize(), e = 0, i = 0, s = t.width / 2, l = t.height, a = s / l;
|
|
33189
|
+
this.camera.aspect !== a && (this.camera.aspect = a, this.camera.updateProjectionMatrix()), this.renderer.setViewport(e, i, s, l), this.renderer.setScissor(e, i, s, l), this.renderer.setScissorTest(!0);
|
|
33190
|
+
}
|
|
33191
|
+
setViewportRight() {
|
|
33192
|
+
const t = this.getSize(), e = t.width / 2, i = 0, s = t.width / 2, l = t.height, a = s / l, o = this.cameraController.camera2;
|
|
33193
|
+
o && o.aspect !== a && (o.aspect = a, o.updateProjectionMatrix()), this.renderer.setViewport(e, i, s, l), this.renderer.setScissor(e, i, s, l), this.renderer.setScissorTest(!0);
|
|
33194
|
+
}
|
|
33132
33195
|
dispose() {
|
|
33133
33196
|
var t, e, i, s, l, a, o, c, d, r, h;
|
|
33134
33197
|
this.stop(), k3(), this.event.removeAllListeners(), (t = this.resizeObserver) == null || t.unobserve(this.options.container), this.handeleResize(0, 0), this.installPlugins.forEach((u) => {
|
|
@@ -33163,7 +33226,7 @@ IG.options = {
|
|
|
33163
33226
|
css3DRendererParams: fn({}, Mb)
|
|
33164
33227
|
};
|
|
33165
33228
|
let JY = IG;
|
|
33166
|
-
const ti =
|
|
33229
|
+
const ti = Bs.ACTION;
|
|
33167
33230
|
class MG extends ye {
|
|
33168
33231
|
create() {
|
|
33169
33232
|
this.createGroup();
|
|
@@ -33193,7 +33256,7 @@ function FG(n, t, e, i, s) {
|
|
|
33193
33256
|
for (l = e - i; l >= t; l -= i) a = Fb(l, n[l], n[l + 1], a);
|
|
33194
33257
|
return a && Lh(a, a.next) && (Fo(a), a = a.next), a;
|
|
33195
33258
|
}
|
|
33196
|
-
function
|
|
33259
|
+
function tl(n, t) {
|
|
33197
33260
|
if (!n) return n;
|
|
33198
33261
|
t || (t = n);
|
|
33199
33262
|
var e = n, i;
|
|
@@ -33215,7 +33278,7 @@ function To(n, t, e, i, s, l, a) {
|
|
|
33215
33278
|
continue;
|
|
33216
33279
|
}
|
|
33217
33280
|
if (n = d, n === o) {
|
|
33218
|
-
a ? a === 1 ? (n = BY(
|
|
33281
|
+
a ? a === 1 ? (n = BY(tl(n), t, e), To(n, t, e, i, s, l, 2)) : a === 2 && EY(n, t, e, i, s, l) : To(tl(n), t, e, i, s, l, 1);
|
|
33219
33282
|
break;
|
|
33220
33283
|
}
|
|
33221
33284
|
}
|
|
@@ -33225,7 +33288,7 @@ function kY(n) {
|
|
|
33225
33288
|
var t = n.prev, e = n, i = n.next;
|
|
33226
33289
|
if (r0(t, e, i) >= 0) return !1;
|
|
33227
33290
|
for (var s = t.x, l = e.x, a = i.x, o = t.y, c = e.y, d = i.y, r = s < l ? s < a ? s : a : l < a ? l : a, h = o < c ? o < d ? o : d : c < d ? c : d, u = s > l ? s > a ? s : a : l > a ? l : a, m = o > c ? o > d ? o : d : c > d ? c : d, b = i.next; b !== t; ) {
|
|
33228
|
-
if (b.x >= r && b.x <= u && b.y >= h && b.y <= m &&
|
|
33291
|
+
if (b.x >= r && b.x <= u && b.y >= h && b.y <= m && Ql(s, o, l, c, a, d, b.x, b.y) && r0(b.prev, b, b.next) >= 0) return !1;
|
|
33229
33292
|
b = b.next;
|
|
33230
33293
|
}
|
|
33231
33294
|
return !0;
|
|
@@ -33234,15 +33297,15 @@ function UY(n, t, e, i) {
|
|
|
33234
33297
|
var s = n.prev, l = n, a = n.next;
|
|
33235
33298
|
if (r0(s, l, a) >= 0) return !1;
|
|
33236
33299
|
for (var o = s.x, c = l.x, d = a.x, r = s.y, h = l.y, u = a.y, m = o < c ? o < d ? o : d : c < d ? c : d, b = r < h ? r < u ? r : u : h < u ? h : u, G = o > c ? o > d ? o : d : c > d ? c : d, Z = r > h ? r > u ? r : u : h > u ? h : u, p = lm(m, b, t, e, i), W = lm(G, Z, t, e, i), X = n.prevZ, y = n.nextZ; X && X.z >= p && y && y.z <= W; ) {
|
|
33237
|
-
if (X.x >= m && X.x <= G && X.y >= b && X.y <= Z && X !== s && X !== a &&
|
|
33300
|
+
if (X.x >= m && X.x <= G && X.y >= b && X.y <= Z && X !== s && X !== a && Ql(o, r, c, h, d, u, X.x, X.y) && r0(X.prev, X, X.next) >= 0 || (X = X.prevZ, y.x >= m && y.x <= G && y.y >= b && y.y <= Z && y !== s && y !== a && Ql(o, r, c, h, d, u, y.x, y.y) && r0(y.prev, y, y.next) >= 0)) return !1;
|
|
33238
33301
|
y = y.nextZ;
|
|
33239
33302
|
}
|
|
33240
33303
|
for (; X && X.z >= p; ) {
|
|
33241
|
-
if (X.x >= m && X.x <= G && X.y >= b && X.y <= Z && X !== s && X !== a &&
|
|
33304
|
+
if (X.x >= m && X.x <= G && X.y >= b && X.y <= Z && X !== s && X !== a && Ql(o, r, c, h, d, u, X.x, X.y) && r0(X.prev, X, X.next) >= 0) return !1;
|
|
33242
33305
|
X = X.prevZ;
|
|
33243
33306
|
}
|
|
33244
33307
|
for (; y && y.z <= W; ) {
|
|
33245
|
-
if (y.x >= m && y.x <= G && y.y >= b && y.y <= Z && y !== s && y !== a &&
|
|
33308
|
+
if (y.x >= m && y.x <= G && y.y >= b && y.y <= Z && y !== s && y !== a && Ql(o, r, c, h, d, u, y.x, y.y) && r0(y.prev, y, y.next) >= 0) return !1;
|
|
33246
33309
|
y = y.nextZ;
|
|
33247
33310
|
}
|
|
33248
33311
|
return !0;
|
|
@@ -33253,7 +33316,7 @@ function BY(n, t, e) {
|
|
|
33253
33316
|
var s = i.prev, l = i.next.next;
|
|
33254
33317
|
!Lh(s, l) && vG(s, i, i.next, l) && Mo(s, l) && Mo(l, s) && (t.push(s.i / e | 0), t.push(i.i / e | 0), t.push(l.i / e | 0), Fo(i), Fo(i.next), i = n = l), i = i.next;
|
|
33255
33318
|
} while (i !== n);
|
|
33256
|
-
return
|
|
33319
|
+
return tl(i);
|
|
33257
33320
|
}
|
|
33258
33321
|
function EY(n, t, e, i, s, l) {
|
|
33259
33322
|
var a = n;
|
|
@@ -33261,7 +33324,7 @@ function EY(n, t, e, i, s, l) {
|
|
|
33261
33324
|
for (var o = a.next.next; o !== a.prev; ) {
|
|
33262
33325
|
if (a.i !== o.i && $Y(a, o)) {
|
|
33263
33326
|
var c = wG(a, o);
|
|
33264
|
-
a =
|
|
33327
|
+
a = tl(a, a.next), c = tl(c, c.next), To(a, t, e, i, s, l, 0), To(c, t, e, i, s, l, 0);
|
|
33265
33328
|
return;
|
|
33266
33329
|
}
|
|
33267
33330
|
o = o.next;
|
|
@@ -33285,7 +33348,7 @@ function AY(n, t) {
|
|
|
33285
33348
|
if (!e)
|
|
33286
33349
|
return t;
|
|
33287
33350
|
var i = wG(e, n);
|
|
33288
|
-
return
|
|
33351
|
+
return tl(i, i.next), tl(e, e.next);
|
|
33289
33352
|
}
|
|
33290
33353
|
function jY(n, t) {
|
|
33291
33354
|
var e = t, i = n.x, s = n.y, l = -1 / 0, a;
|
|
@@ -33301,7 +33364,7 @@ function jY(n, t) {
|
|
|
33301
33364
|
var c = a, d = a.x, r = a.y, h = 1 / 0, u;
|
|
33302
33365
|
e = a;
|
|
33303
33366
|
do
|
|
33304
|
-
i >= e.x && e.x >= d && i !== e.x &&
|
|
33367
|
+
i >= e.x && e.x >= d && i !== e.x && Ql(s < r ? i : l, s, d, r, s < r ? l : i, s, e.x, e.y) && (u = Math.abs(s - e.y) / (i - e.x), Mo(e, n) && (u < h || u === h && (e.x > a.x || e.x === a.x && DY(a, e))) && (a = e, h = u)), e = e.next;
|
|
33305
33368
|
while (e !== c);
|
|
33306
33369
|
return a;
|
|
33307
33370
|
}
|
|
@@ -33339,7 +33402,7 @@ function qY(n) {
|
|
|
33339
33402
|
while (t !== n);
|
|
33340
33403
|
return e;
|
|
33341
33404
|
}
|
|
33342
|
-
function
|
|
33405
|
+
function Ql(n, t, e, i, s, l, a, o) {
|
|
33343
33406
|
return (s - a) * (t - o) >= (n - a) * (l - o) && (n - a) * (i - o) >= (e - a) * (t - o) && (e - a) * (l - o) >= (s - a) * (i - o);
|
|
33344
33407
|
}
|
|
33345
33408
|
function $Y(n, t) {
|
|
@@ -33567,15 +33630,15 @@ function rN(n, t) {
|
|
|
33567
33630
|
function bc(n) {
|
|
33568
33631
|
return new Float64Array(n);
|
|
33569
33632
|
}
|
|
33570
|
-
const hN = (3 + 16 * Yn) * Yn, uN = (2 + 12 * Yn) * Yn, mN = (9 + 64 * Yn) * Yn * Yn,
|
|
33633
|
+
const hN = (3 + 16 * Yn) * Yn, uN = (2 + 12 * Yn) * Yn, mN = (9 + 64 * Yn) * Yn * Yn, Kl = bc(4), vb = bc(8), wb = bc(12), Hb = bc(16), A0 = bc(4);
|
|
33571
33634
|
function pN(n, t, e, i, s, l, a) {
|
|
33572
33635
|
let o, c, d, r, h, u, m, b, G, Z, p, W, X, y, g, x, C, N;
|
|
33573
33636
|
const L = n - s, R = e - s, I = t - l, K = i - l;
|
|
33574
|
-
y = L * K, u = U0 * L, m = u - (u - L), b = L - m, u = U0 * K, G = u - (u - K), Z = K - G, g = b * Z - (y - m * G - b * G - m * Z), x = I * R, u = U0 * I, m = u - (u - I), b = I - m, u = U0 * R, G = u - (u - R), Z = R - G, C = b * Z - (x - m * G - b * G - m * Z), p = g - C, h = g - p,
|
|
33575
|
-
let H = rN(4,
|
|
33637
|
+
y = L * K, u = U0 * L, m = u - (u - L), b = L - m, u = U0 * K, G = u - (u - K), Z = K - G, g = b * Z - (y - m * G - b * G - m * Z), x = I * R, u = U0 * I, m = u - (u - I), b = I - m, u = U0 * R, G = u - (u - R), Z = R - G, C = b * Z - (x - m * G - b * G - m * Z), p = g - C, h = g - p, Kl[0] = g - (p + h) + (h - C), W = y + p, h = W - y, X = y - (W - h) + (p - h), p = X - x, h = X - p, Kl[1] = X - (p + h) + (h - x), N = W + p, h = N - W, Kl[2] = W - (N - h) + (p - h), Kl[3] = N;
|
|
33638
|
+
let H = rN(4, Kl), z = uN * a;
|
|
33576
33639
|
if (H >= z || -H >= z || (h = n - L, o = n - (L + h) + (h - s), h = e - R, d = e - (R + h) + (h - s), h = t - I, c = t - (I + h) + (h - l), h = i - K, r = i - (K + h) + (h - l), o === 0 && c === 0 && d === 0 && r === 0) || (z = mN * a + dN * Math.abs(H), H += L * r + K * o - (I * d + R * c), H >= z || -H >= z)) return H;
|
|
33577
33640
|
y = o * K, u = U0 * o, m = u - (u - o), b = o - m, u = U0 * K, G = u - (u - K), Z = K - G, g = b * Z - (y - m * G - b * G - m * Z), x = c * R, u = U0 * c, m = u - (u - c), b = c - m, u = U0 * R, G = u - (u - R), Z = R - G, C = b * Z - (x - m * G - b * G - m * Z), p = g - C, h = g - p, A0[0] = g - (p + h) + (h - C), W = y + p, h = W - y, X = y - (W - h) + (p - h), p = X - x, h = X - p, A0[1] = X - (p + h) + (h - x), N = W + p, h = N - W, A0[2] = W - (N - h) + (p - h), A0[3] = N;
|
|
33578
|
-
const v = Hu(4,
|
|
33641
|
+
const v = Hu(4, Kl, 4, A0, vb);
|
|
33579
33642
|
y = L * r, u = U0 * L, m = u - (u - L), b = L - m, u = U0 * r, G = u - (u - r), Z = r - G, g = b * Z - (y - m * G - b * G - m * Z), x = I * d, u = U0 * I, m = u - (u - I), b = I - m, u = U0 * d, G = u - (u - d), Z = d - G, C = b * Z - (x - m * G - b * G - m * Z), p = g - C, h = g - p, A0[0] = g - (p + h) + (h - C), W = y + p, h = W - y, X = y - (W - h) + (p - h), p = X - x, h = X - p, A0[1] = X - (p + h) + (h - x), N = W + p, h = N - W, A0[2] = W - (N - h) + (p - h), A0[3] = N;
|
|
33580
33643
|
const J = Hu(v, vb, 4, A0, wb);
|
|
33581
33644
|
y = o * r, u = U0 * o, m = u - (u - o), b = o - m, u = U0 * r, G = u - (u - r), Z = r - G, g = b * Z - (y - m * G - b * G - m * Z), x = c * d, u = U0 * c, m = u - (u - c), b = c - m, u = U0 * d, G = u - (u - d), Z = d - G, C = b * Z - (x - m * G - b * G - m * Z), p = g - C, h = g - p, A0[0] = g - (p + h) + (h - C), W = y + p, h = W - y, X = y - (W - h) + (p - h), p = X - x, h = X - p, A0[1] = X - (p + h) + (h - x), N = W + p, h = N - W, A0[2] = W - (N - h) + (p - h), A0[3] = N;
|
|
@@ -33633,7 +33696,7 @@ class vo {
|
|
|
33633
33696
|
if (g === 1 / 0) {
|
|
33634
33697
|
for (let K = 0; K < a; K++)
|
|
33635
33698
|
this._dists[K] = t[2 * K] - t[0] || t[2 * K + 1] - t[1];
|
|
33636
|
-
|
|
33699
|
+
Al(this._ids, this._dists, 0, a - 1);
|
|
33637
33700
|
const R = new Uint32Array(a);
|
|
33638
33701
|
let I = 0;
|
|
33639
33702
|
for (let K = 0, H = -1 / 0; K < a; K++) {
|
|
@@ -33651,7 +33714,7 @@ class vo {
|
|
|
33651
33714
|
this._cx = N.x, this._cy = N.y;
|
|
33652
33715
|
for (let R = 0; R < a; R++)
|
|
33653
33716
|
this._dists[R] = zu(t[2 * R], t[2 * R + 1], N.x, N.y);
|
|
33654
|
-
|
|
33717
|
+
Al(this._ids, this._dists, 0, a - 1), this._hullStart = b;
|
|
33655
33718
|
let L = 3;
|
|
33656
33719
|
i[b] = e[Z] = G, i[G] = e[b] = Z, i[Z] = e[G] = b, s[b] = 0, s[G] = 1, s[Z] = 2, l.fill(-1), l[this._hashKey(p, W)] = b, l[this._hashKey(X, y)] = G, l[this._hashKey(x, C)] = Z, this.trianglesLen = 0, this._addTriangle(b, G, Z, -1, -1, -1);
|
|
33657
33720
|
for (let R = 0, I, K; R < this._ids.length; R++) {
|
|
@@ -33758,7 +33821,7 @@ function XN(n, t, e, i, s, l) {
|
|
|
33758
33821
|
const a = e - n, o = i - t, c = s - n, d = l - t, r = a * a + o * o, h = c * c + d * d, u = 0.5 / (a * d - o * c), m = n + (d * r - o * h) * u, b = t + (a * h - c * r) * u;
|
|
33759
33822
|
return { x: m, y: b };
|
|
33760
33823
|
}
|
|
33761
|
-
function
|
|
33824
|
+
function Al(n, t, e, i) {
|
|
33762
33825
|
if (i - e <= 20)
|
|
33763
33826
|
for (let s = e + 1; s <= i; s++) {
|
|
33764
33827
|
const l = n[s], a = t[l];
|
|
@@ -33781,7 +33844,7 @@ function Ql(n, t, e, i) {
|
|
|
33781
33844
|
if (a < l) break;
|
|
33782
33845
|
Qa(n, l, a);
|
|
33783
33846
|
}
|
|
33784
|
-
n[e + 1] = n[a], n[a] = o, i - l + 1 >= a - e ? (
|
|
33847
|
+
n[e + 1] = n[a], n[a] = o, i - l + 1 >= a - e ? (Al(n, t, l, i), Al(n, t, e, a - 1)) : (Al(n, t, e, a - 1), Al(n, t, l, i));
|
|
33785
33848
|
}
|
|
33786
33849
|
}
|
|
33787
33850
|
function Qa(n, t, e) {
|
|
@@ -34096,7 +34159,7 @@ class fN {
|
|
|
34096
34159
|
return t;
|
|
34097
34160
|
}
|
|
34098
34161
|
}
|
|
34099
|
-
const xN = 2 * Math.PI,
|
|
34162
|
+
const xN = 2 * Math.PI, Jl = Math.pow;
|
|
34100
34163
|
function RN(n) {
|
|
34101
34164
|
return n[0];
|
|
34102
34165
|
}
|
|
@@ -34177,15 +34240,15 @@ class M2 {
|
|
|
34177
34240
|
_step(t, e, i) {
|
|
34178
34241
|
const { inedges: s, hull: l, _hullIndex: a, halfedges: o, triangles: c, points: d } = this;
|
|
34179
34242
|
if (s[t] === -1 || !d.length) return (t + 1) % (d.length >> 1);
|
|
34180
|
-
let r = t, h =
|
|
34243
|
+
let r = t, h = Jl(e - d[t * 2], 2) + Jl(i - d[t * 2 + 1], 2);
|
|
34181
34244
|
const u = s[t];
|
|
34182
34245
|
let m = u;
|
|
34183
34246
|
do {
|
|
34184
34247
|
let b = c[m];
|
|
34185
|
-
const G =
|
|
34248
|
+
const G = Jl(e - d[b * 2], 2) + Jl(i - d[b * 2 + 1], 2);
|
|
34186
34249
|
if (G < h && (h = G, r = b), m = m % 3 === 2 ? m - 2 : m + 1, c[m] !== t) break;
|
|
34187
34250
|
if (m = o[m], m === -1) {
|
|
34188
|
-
if (m = l[(a[t] + 1) % l.length], m !== b &&
|
|
34251
|
+
if (m = l[(a[t] + 1) % l.length], m !== b && Jl(e - d[m * 2], 2) + Jl(i - d[m * 2 + 1], 2) < h)
|
|
34189
34252
|
return m;
|
|
34190
34253
|
break;
|
|
34191
34254
|
}
|
|
@@ -34332,7 +34395,7 @@ function zN(n) {
|
|
|
34332
34395
|
const s = [];
|
|
34333
34396
|
let l = 1;
|
|
34334
34397
|
for (let h = 0, u = n.length; h < u; h++) {
|
|
34335
|
-
let m =
|
|
34398
|
+
let m = hl(n[h][0], 2) + hl(n[h][1], 2);
|
|
34336
34399
|
!isFinite(m) || m > 1e32 ? s.push(h) : m > l && (l = m);
|
|
34337
34400
|
}
|
|
34338
34401
|
const a = 1e6 * HG(l);
|
|
@@ -34622,7 +34685,7 @@ function KG(n, t) {
|
|
|
34622
34685
|
}
|
|
34623
34686
|
function Zc() {
|
|
34624
34687
|
}
|
|
34625
|
-
var wo = 0.7, Nr = 1 / wo,
|
|
34688
|
+
var wo = 0.7, Nr = 1 / wo, ta = "\\s*([+-]?\\d+)\\s*", Ho = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", on = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", DN = /^#([0-9a-f]{3,8})$/, ON = new RegExp(`^rgb\\(${ta},${ta},${ta}\\)$`), _N = new RegExp(`^rgb\\(${on},${on},${on}\\)$`), qN = new RegExp(`^rgba\\(${ta},${ta},${ta},${Ho}\\)$`), $N = new RegExp(`^rgba\\(${on},${on},${on},${Ho}\\)$`), t7 = new RegExp(`^hsl\\(${Ho},${on},${on}\\)$`), e7 = new RegExp(`^hsla\\(${Ho},${on},${on},${Ho}\\)$`), Ab = {
|
|
34626
34689
|
aliceblue: 15792383,
|
|
34627
34690
|
antiquewhite: 16444375,
|
|
34628
34691
|
aqua: 65535,
|
|
@@ -34829,7 +34892,7 @@ H2(ci, rm, KG(Zc, {
|
|
|
34829
34892
|
return this;
|
|
34830
34893
|
},
|
|
34831
34894
|
clamp() {
|
|
34832
|
-
return new ci(
|
|
34895
|
+
return new ci(Es(this.r), Es(this.g), Es(this.b), Ir(this.opacity));
|
|
34833
34896
|
},
|
|
34834
34897
|
displayable() {
|
|
34835
34898
|
return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
@@ -34849,16 +34912,16 @@ function l7() {
|
|
|
34849
34912
|
}
|
|
34850
34913
|
function qb() {
|
|
34851
34914
|
const n = Ir(this.opacity);
|
|
34852
|
-
return `${n === 1 ? "rgb(" : "rgba("}${
|
|
34915
|
+
return `${n === 1 ? "rgb(" : "rgba("}${Es(this.r)}, ${Es(this.g)}, ${Es(this.b)}${n === 1 ? ")" : `, ${n})`}`;
|
|
34853
34916
|
}
|
|
34854
34917
|
function Ir(n) {
|
|
34855
34918
|
return isNaN(n) ? 1 : Math.max(0, Math.min(1, n));
|
|
34856
34919
|
}
|
|
34857
|
-
function
|
|
34920
|
+
function Es(n) {
|
|
34858
34921
|
return Math.max(0, Math.min(255, Math.round(n) || 0));
|
|
34859
34922
|
}
|
|
34860
34923
|
function Ks(n) {
|
|
34861
|
-
return n =
|
|
34924
|
+
return n = Es(n), (n < 16 ? "0" : "") + n.toString(16);
|
|
34862
34925
|
}
|
|
34863
34926
|
function $b(n, t, e, i) {
|
|
34864
34927
|
return i <= 0 ? n = t = e = NaN : e <= 0 || e >= 1 ? n = t = NaN : t <= 0 && (n = NaN), new ki(n, t, e, i);
|
|
@@ -35022,7 +35085,7 @@ function y7(n) {
|
|
|
35022
35085
|
return +n;
|
|
35023
35086
|
}
|
|
35024
35087
|
var i5 = [0, 1];
|
|
35025
|
-
function
|
|
35088
|
+
function jl(n) {
|
|
35026
35089
|
return n;
|
|
35027
35090
|
}
|
|
35028
35091
|
function um(n, t) {
|
|
@@ -35055,10 +35118,10 @@ function x7(n, t) {
|
|
|
35055
35118
|
return t.domain(n.domain()).range(n.range()).interpolate(n.interpolate()).clamp(n.clamp()).unknown(n.unknown());
|
|
35056
35119
|
}
|
|
35057
35120
|
function R7() {
|
|
35058
|
-
var n = i5, t = i5, e = K2, i, s, l, a =
|
|
35121
|
+
var n = i5, t = i5, e = K2, i, s, l, a = jl, o, c, d;
|
|
35059
35122
|
function r() {
|
|
35060
35123
|
var u = Math.min(n.length, t.length);
|
|
35061
|
-
return a !==
|
|
35124
|
+
return a !== jl && (a = V7(n[0], n[u - 1])), o = u > 2 ? f7 : g7, c = d = null, h;
|
|
35062
35125
|
}
|
|
35063
35126
|
function h(u) {
|
|
35064
35127
|
return u == null || isNaN(u = +u) ? l : (c || (c = o(n.map(i), t, e)))(i(a(u)));
|
|
@@ -35072,7 +35135,7 @@ function R7() {
|
|
|
35072
35135
|
}, h.rangeRound = function(u) {
|
|
35073
35136
|
return t = Array.from(u), e = X7, r();
|
|
35074
35137
|
}, h.clamp = function(u) {
|
|
35075
|
-
return arguments.length ? (a = u ? !0 :
|
|
35138
|
+
return arguments.length ? (a = u ? !0 : jl, r()) : a !== jl;
|
|
35076
35139
|
}, h.interpolate = function(u) {
|
|
35077
35140
|
return arguments.length ? (e = u, r()) : e;
|
|
35078
35141
|
}, h.unknown = function(u) {
|
|
@@ -35082,7 +35145,7 @@ function R7() {
|
|
|
35082
35145
|
};
|
|
35083
35146
|
}
|
|
35084
35147
|
function L7() {
|
|
35085
|
-
return R7()(
|
|
35148
|
+
return R7()(jl, jl);
|
|
35086
35149
|
}
|
|
35087
35150
|
function C7(n) {
|
|
35088
35151
|
return Math.abs(n = Math.round(n)) >= 1e21 ? n.toLocaleString("en").replace(/,/g, "") : n.toString(10);
|
|
@@ -35562,7 +35625,7 @@ class D7 extends Ot {
|
|
|
35562
35625
|
}
|
|
35563
35626
|
}
|
|
35564
35627
|
function d5(n, t) {
|
|
35565
|
-
const e = new Et(), i = new
|
|
35628
|
+
const e = new Et(), i = new sl(), s = new T0(), l = new Y(), a = this.geometry;
|
|
35566
35629
|
if (s.copy(a.boundingSphere), s.applyMatrix4(this.matrixWorld), !n.ray.intersectSphere(s, l)) return;
|
|
35567
35630
|
e.copy(this.matrixWorld).invert(), i.copy(n.ray).applyMatrix4(e);
|
|
35568
35631
|
const o = new Y(), c = new Y(), d = new Y(), r = this instanceof Yi ? 2 : 1, h = a.index, u = a.attributes;
|
|
@@ -35593,7 +35656,7 @@ function d5(n, t) {
|
|
|
35593
35656
|
}
|
|
35594
35657
|
}
|
|
35595
35658
|
}
|
|
35596
|
-
function
|
|
35659
|
+
function Ps(n, t = 0) {
|
|
35597
35660
|
const e = n[0].index !== null, i = new Set(Object.keys(n[0].attributes)), s = new Set(
|
|
35598
35661
|
Object.keys(n[0].morphAttributes)
|
|
35599
35662
|
), l = {}, a = {}, o = n[0].morphTargetsRelative, c = new Ot();
|
|
@@ -35783,7 +35846,7 @@ class _7 extends ye {
|
|
|
35783
35846
|
if (!h && r && (h = this.getMaterial(r)), !u && t ? u = Uu({
|
|
35784
35847
|
nodes: t,
|
|
35785
35848
|
setPointWidth: o
|
|
35786
|
-
}) : !u && e ? u =
|
|
35849
|
+
}) : !u && e ? u = Ps(
|
|
35787
35850
|
e.map((m, b) => {
|
|
35788
35851
|
let G = o;
|
|
35789
35852
|
return !G && c && (G = () => {
|
|
@@ -35795,7 +35858,7 @@ class _7 extends ye {
|
|
|
35795
35858
|
});
|
|
35796
35859
|
}),
|
|
35797
35860
|
a != null ? a : 0
|
|
35798
|
-
) : !u && s && s.length > 1 ? u =
|
|
35861
|
+
) : !u && s && s.length > 1 ? u = Ps(
|
|
35799
35862
|
s,
|
|
35800
35863
|
a != null ? a : 0
|
|
35801
35864
|
) : !u && s && s.length === 1 && ([u] = s), this.createMesh(u, h), d && u != null && u.userData.position) {
|
|
@@ -35819,7 +35882,7 @@ class _7 extends ye {
|
|
|
35819
35882
|
}, t));
|
|
35820
35883
|
}
|
|
35821
35884
|
addGeometries(t) {
|
|
35822
|
-
const e = this.object3d, i =
|
|
35885
|
+
const e = this.object3d, i = Ps([
|
|
35823
35886
|
e.geometry,
|
|
35824
35887
|
...t
|
|
35825
35888
|
]);
|
|
@@ -36151,7 +36214,7 @@ class lI extends ye {
|
|
|
36151
36214
|
coordinate: r
|
|
36152
36215
|
}, o))
|
|
36153
36216
|
);
|
|
36154
|
-
c =
|
|
36217
|
+
c = Ps(
|
|
36155
36218
|
d,
|
|
36156
36219
|
a != null ? a : 0
|
|
36157
36220
|
);
|
|
@@ -36463,7 +36526,7 @@ class cI extends ye {
|
|
|
36463
36526
|
hasTop: r,
|
|
36464
36527
|
hasBottom: h,
|
|
36465
36528
|
hasSide: u
|
|
36466
|
-
}) : !p && e ? p =
|
|
36529
|
+
}) : !p && e ? p = Ps(
|
|
36467
36530
|
e.map(
|
|
36468
36531
|
(W, X) => {
|
|
36469
36532
|
var y, g;
|
|
@@ -36479,7 +36542,7 @@ class cI extends ye {
|
|
|
36479
36542
|
}
|
|
36480
36543
|
),
|
|
36481
36544
|
i != null ? i : 0
|
|
36482
|
-
) : !p && a && a.length > 1 ? p =
|
|
36545
|
+
) : !p && a && a.length > 1 ? p = Ps(
|
|
36483
36546
|
a,
|
|
36484
36547
|
i != null ? i : 0
|
|
36485
36548
|
) : !p && a && a.length === 1 && ([p] = a), this.createMesh(p, Z), m && p != null && p.userData.position) {
|
|
@@ -36489,7 +36552,7 @@ class cI extends ye {
|
|
|
36489
36552
|
});
|
|
36490
36553
|
}
|
|
36491
36554
|
addGeometries(t) {
|
|
36492
|
-
const e = this.object3d, i =
|
|
36555
|
+
const e = this.object3d, i = Ps([
|
|
36493
36556
|
e.geometry,
|
|
36494
36557
|
...t
|
|
36495
36558
|
]);
|
|
@@ -36639,7 +36702,7 @@ const Bu = {}, Ko = (n) => {
|
|
|
36639
36702
|
let s = n.clone().add(t);
|
|
36640
36703
|
s = s.normalize().multiplyScalar(e);
|
|
36641
36704
|
let l;
|
|
36642
|
-
i <= 1 ? l = e / 5 * i : i > 1 && i < 2 ? l = e / 5 *
|
|
36705
|
+
i <= 1 ? l = e / 5 * i : i > 1 && i < 2 ? l = e / 5 * hl(i, 2) : l = e / 5 * hl(i, 1.5);
|
|
36643
36706
|
const a = n.clone().add(s).normalize().multiplyScalar(e + l), o = t.clone().add(s).normalize().multiplyScalar(e + l);
|
|
36644
36707
|
return new ic(n, a, o, t);
|
|
36645
36708
|
}, Z5 = (n, t, e = 40) => {
|
|
@@ -36830,7 +36893,7 @@ class VI extends ye {
|
|
|
36830
36893
|
const t = new Wa();
|
|
36831
36894
|
this.createMesh(
|
|
36832
36895
|
t,
|
|
36833
|
-
new
|
|
36896
|
+
new qe({ side: ze })
|
|
36834
36897
|
), this.scale.multiplyScalar(20);
|
|
36835
36898
|
}
|
|
36836
36899
|
}
|
|
@@ -36861,7 +36924,7 @@ class U2 extends ye {
|
|
|
36861
36924
|
}
|
|
36862
36925
|
create() {
|
|
36863
36926
|
this.options.radius && (this.radius = this.options.radius);
|
|
36864
|
-
const e = new
|
|
36927
|
+
const e = new ll(this.radius, 128, 90);
|
|
36865
36928
|
this.createMesh(e, this.material), this.object3d.rotation.y = Math.PI / 180 * 90;
|
|
36866
36929
|
}
|
|
36867
36930
|
}
|
|
@@ -37601,7 +37664,7 @@ class _I {
|
|
|
37601
37664
|
for (const y in c)
|
|
37602
37665
|
if (y === "_COLOR_0") {
|
|
37603
37666
|
const g = c[y];
|
|
37604
|
-
X.instanceColor = new
|
|
37667
|
+
X.instanceColor = new js(g.array, g.itemSize, g.normalized);
|
|
37605
37668
|
} else y !== "TRANSLATION" && y !== "ROTATION" && y !== "SCALE" && b.geometry.setAttribute(y, c[y]);
|
|
37606
37669
|
We.prototype.copy.call(X, b), this.parser.assignFinalMaterial(X), m.push(X);
|
|
37607
37670
|
}
|
|
@@ -37656,7 +37719,7 @@ class $I {
|
|
|
37656
37719
|
for (const r in t.attributes) {
|
|
37657
37720
|
const h = bm[r] || r.toLowerCase();
|
|
37658
37721
|
if (a[r] !== void 0) {
|
|
37659
|
-
const u = i.accessors[t.attributes[r]], m =
|
|
37722
|
+
const u = i.accessors[t.attributes[r]], m = ea[u.componentType];
|
|
37660
37723
|
d[h] = m.name, c[h] = u.normalized === !0;
|
|
37661
37724
|
}
|
|
37662
37725
|
}
|
|
@@ -37732,7 +37795,7 @@ const Ri = {
|
|
|
37732
37795
|
TRIANGLE_FAN: 6,
|
|
37733
37796
|
UNSIGNED_BYTE: 5121,
|
|
37734
37797
|
UNSIGNED_SHORT: 5123
|
|
37735
|
-
},
|
|
37798
|
+
}, ea = {
|
|
37736
37799
|
5120: Int8Array,
|
|
37737
37800
|
5121: Uint8Array,
|
|
37738
37801
|
5122: Int16Array,
|
|
@@ -37748,7 +37811,7 @@ const Ri = {
|
|
|
37748
37811
|
9987: li
|
|
37749
37812
|
}, V5 = {
|
|
37750
37813
|
33071: Z0,
|
|
37751
|
-
33648:
|
|
37814
|
+
33648: Qs,
|
|
37752
37815
|
10497: xe
|
|
37753
37816
|
}, Pu = {
|
|
37754
37817
|
SCALAR: 1,
|
|
@@ -37778,15 +37841,15 @@ const Ri = {
|
|
|
37778
37841
|
CUBICSPLINE: void 0,
|
|
37779
37842
|
// We use a custom interpolant (GLTFCubicSplineInterpolation) for CUBICSPLINE tracks. Each
|
|
37780
37843
|
// keyframe track will be initialized with a default interpolation type, then modified.
|
|
37781
|
-
LINEAR:
|
|
37782
|
-
STEP:
|
|
37844
|
+
LINEAR: aa,
|
|
37845
|
+
STEP: la
|
|
37783
37846
|
}, Qu = {
|
|
37784
37847
|
OPAQUE: "OPAQUE",
|
|
37785
37848
|
MASK: "MASK",
|
|
37786
37849
|
BLEND: "BLEND"
|
|
37787
37850
|
};
|
|
37788
37851
|
function lT(n) {
|
|
37789
|
-
return n.DefaultMaterial === void 0 && (n.DefaultMaterial = new
|
|
37852
|
+
return n.DefaultMaterial === void 0 && (n.DefaultMaterial = new qe({
|
|
37790
37853
|
color: 16777215,
|
|
37791
37854
|
emissive: 0,
|
|
37792
37855
|
metalness: 1,
|
|
@@ -38102,12 +38165,12 @@ class hT {
|
|
|
38102
38165
|
loadAccessor(t) {
|
|
38103
38166
|
const e = this, i = this.json, s = this.json.accessors[t];
|
|
38104
38167
|
if (s.bufferView === void 0 && s.sparse === void 0) {
|
|
38105
|
-
const a = Pu[s.type], o =
|
|
38168
|
+
const a = Pu[s.type], o = ea[s.componentType], c = s.normalized === !0, d = new o(s.count * a);
|
|
38106
38169
|
return Promise.resolve(new ee(d, a, c));
|
|
38107
38170
|
}
|
|
38108
38171
|
const l = [];
|
|
38109
38172
|
return s.bufferView !== void 0 ? l.push(this.getDependency("bufferView", s.bufferView)) : l.push(null), s.sparse !== void 0 && (l.push(this.getDependency("bufferView", s.sparse.indices.bufferView)), l.push(this.getDependency("bufferView", s.sparse.values.bufferView))), Promise.all(l).then(function(a) {
|
|
38110
|
-
const o = a[0], c = Pu[s.type], d =
|
|
38173
|
+
const o = a[0], c = Pu[s.type], d = ea[s.componentType], r = d.BYTES_PER_ELEMENT, h = r * c, u = s.byteOffset || 0, m = s.bufferView !== void 0 ? i.bufferViews[s.bufferView].byteStride : void 0, b = s.normalized === !0;
|
|
38111
38174
|
let G, Z;
|
|
38112
38175
|
if (m && m !== h) {
|
|
38113
38176
|
const p = Math.floor(u / m), W = "InterleavedBuffer:" + s.bufferView + ":" + s.componentType + ":" + p + ":" + s.count;
|
|
@@ -38116,7 +38179,7 @@ class hT {
|
|
|
38116
38179
|
} else
|
|
38117
38180
|
o === null ? G = new d(s.count * c) : G = new d(o, u, s.count * c), Z = new ee(G, c, b);
|
|
38118
38181
|
if (s.sparse !== void 0) {
|
|
38119
|
-
const p = Pu.SCALAR, W =
|
|
38182
|
+
const p = Pu.SCALAR, W = ea[s.sparse.indices.componentType], X = s.sparse.indices.byteOffset || 0, y = s.sparse.values.byteOffset || 0, g = new W(a[1], X, s.sparse.count * p), x = new d(a[2], y, s.sparse.count * c);
|
|
38120
38183
|
o !== null && (Z = new ee(Z.array.slice(), Z.itemSize, Z.normalized));
|
|
38121
38184
|
for (let C = 0, N = g.length; C < N; C++) {
|
|
38122
38185
|
const L = g[C];
|
|
@@ -38233,7 +38296,7 @@ class hT {
|
|
|
38233
38296
|
t.material = i;
|
|
38234
38297
|
}
|
|
38235
38298
|
getMaterialType() {
|
|
38236
|
-
return
|
|
38299
|
+
return qe;
|
|
38237
38300
|
}
|
|
38238
38301
|
/**
|
|
38239
38302
|
* Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#materials
|
|
@@ -38363,7 +38426,7 @@ class hT {
|
|
|
38363
38426
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
38364
38427
|
return;
|
|
38365
38428
|
}
|
|
38366
|
-
return i.type === "perspective" ? e = new
|
|
38429
|
+
return i.type === "perspective" ? e = new Oe(ca.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (e = new qo(-s.xmag, s.xmag, s.ymag, -s.ymag, s.znear, s.zfar)), i.name && (e.name = this.createUniqueName(i.name)), Xn(e, i), Promise.resolve(e);
|
|
38367
38430
|
}
|
|
38368
38431
|
/**
|
|
38369
38432
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -38416,7 +38479,7 @@ class hT {
|
|
|
38416
38479
|
for (let R = 0; R < L.length; R++)
|
|
38417
38480
|
p.push(L[R]);
|
|
38418
38481
|
}
|
|
38419
|
-
return new
|
|
38482
|
+
return new ra(l, void 0, p);
|
|
38420
38483
|
});
|
|
38421
38484
|
}
|
|
38422
38485
|
createNodeMesh(t) {
|
|
@@ -38516,29 +38579,29 @@ class hT {
|
|
|
38516
38579
|
let d;
|
|
38517
38580
|
switch (An[l.path]) {
|
|
38518
38581
|
case An.weights:
|
|
38519
|
-
d =
|
|
38582
|
+
d = Os;
|
|
38520
38583
|
break;
|
|
38521
38584
|
case An.rotation:
|
|
38522
|
-
d =
|
|
38585
|
+
d = _s;
|
|
38523
38586
|
break;
|
|
38524
38587
|
case An.position:
|
|
38525
38588
|
case An.scale:
|
|
38526
|
-
d =
|
|
38589
|
+
d = qs;
|
|
38527
38590
|
break;
|
|
38528
38591
|
default:
|
|
38529
38592
|
switch (i.itemSize) {
|
|
38530
38593
|
case 1:
|
|
38531
|
-
d =
|
|
38594
|
+
d = Os;
|
|
38532
38595
|
break;
|
|
38533
38596
|
case 2:
|
|
38534
38597
|
case 3:
|
|
38535
38598
|
default:
|
|
38536
|
-
d =
|
|
38599
|
+
d = qs;
|
|
38537
38600
|
break;
|
|
38538
38601
|
}
|
|
38539
38602
|
break;
|
|
38540
38603
|
}
|
|
38541
|
-
const r = s.interpolation !== void 0 ? sT[s.interpolation] :
|
|
38604
|
+
const r = s.interpolation !== void 0 ? sT[s.interpolation] : aa, h = this._getArrayFromAccessor(i);
|
|
38542
38605
|
for (let u = 0, m = c.length; u < m; u++) {
|
|
38543
38606
|
const b = new d(
|
|
38544
38607
|
c[u] + "." + An[l.path],
|
|
@@ -38562,7 +38625,7 @@ class hT {
|
|
|
38562
38625
|
}
|
|
38563
38626
|
_createCubicSplineTrackInterpolant(t) {
|
|
38564
38627
|
t.createInterpolant = function(i) {
|
|
38565
|
-
const s = this instanceof
|
|
38628
|
+
const s = this instanceof _s ? nT : DG;
|
|
38566
38629
|
return new s(this.times, this.values, this.getValueSize() / 3, i);
|
|
38567
38630
|
}, t.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0;
|
|
38568
38631
|
}
|
|
@@ -38576,7 +38639,7 @@ function uT(n, t, e) {
|
|
|
38576
38639
|
new Y(c[0], c[1], c[2]),
|
|
38577
38640
|
new Y(d[0], d[1], d[2])
|
|
38578
38641
|
), o.normalized) {
|
|
38579
|
-
const r = Zm(
|
|
38642
|
+
const r = Zm(ea[o.componentType]);
|
|
38580
38643
|
s.min.multiplyScalar(r), s.max.multiplyScalar(r);
|
|
38581
38644
|
}
|
|
38582
38645
|
} else {
|
|
@@ -38594,7 +38657,7 @@ function uT(n, t, e) {
|
|
|
38594
38657
|
const u = e.json.accessors[h.POSITION], m = u.min, b = u.max;
|
|
38595
38658
|
if (m !== void 0 && b !== void 0) {
|
|
38596
38659
|
if (c.setX(Math.max(Math.abs(m[0]), Math.abs(b[0]))), c.setY(Math.max(Math.abs(m[1]), Math.abs(b[1]))), c.setZ(Math.max(Math.abs(m[2]), Math.abs(b[2]))), u.normalized) {
|
|
38597
|
-
const G = Zm(
|
|
38660
|
+
const G = Zm(ea[u.componentType]);
|
|
38598
38661
|
c.multiplyScalar(G);
|
|
38599
38662
|
}
|
|
38600
38663
|
o.max(c);
|
|
@@ -38869,7 +38932,7 @@ fflate - fast JavaScript compression/decompression
|
|
|
38869
38932
|
Licensed under MIT. https://github.com/101arrowz/fflate/blob/master/LICENSE
|
|
38870
38933
|
version 0.8.2
|
|
38871
38934
|
*/
|
|
38872
|
-
var Li = Uint8Array,
|
|
38935
|
+
var Li = Uint8Array, Dl = Uint16Array, bT = Int32Array, OG = new Li([
|
|
38873
38936
|
0,
|
|
38874
38937
|
0,
|
|
38875
38938
|
0,
|
|
@@ -38939,7 +39002,7 @@ var Li = Uint8Array, jl = Uint16Array, bT = Int32Array, OG = new Li([
|
|
|
38939
39002
|
0,
|
|
38940
39003
|
0
|
|
38941
39004
|
]), ZT = new Li([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), qG = function(n, t) {
|
|
38942
|
-
for (var e = new
|
|
39005
|
+
for (var e = new Dl(31), i = 0; i < 31; ++i)
|
|
38943
39006
|
e[i] = t += 1 << n[i - 1];
|
|
38944
39007
|
for (var s = new bT(e[30]), i = 1; i < 30; ++i)
|
|
38945
39008
|
for (var l = e[i]; l < e[i + 1]; ++l)
|
|
@@ -38947,27 +39010,27 @@ var Li = Uint8Array, jl = Uint16Array, bT = Int32Array, OG = new Li([
|
|
|
38947
39010
|
return { b: e, r: s };
|
|
38948
39011
|
}, $G = qG(OG, 2), tX = $G.b, GT = $G.r;
|
|
38949
39012
|
tX[28] = 258, GT[258] = 28;
|
|
38950
|
-
var XT = qG(_G, 0), WT = XT.b, Gm = new
|
|
39013
|
+
var XT = qG(_G, 0), WT = XT.b, Gm = new Dl(32768);
|
|
38951
39014
|
for (var t0 = 0; t0 < 32768; ++t0) {
|
|
38952
39015
|
var jn = (t0 & 43690) >> 1 | (t0 & 21845) << 1;
|
|
38953
39016
|
jn = (jn & 52428) >> 2 | (jn & 13107) << 2, jn = (jn & 61680) >> 4 | (jn & 3855) << 4, Gm[t0] = ((jn & 65280) >> 8 | (jn & 255) << 8) >> 1;
|
|
38954
39017
|
}
|
|
38955
39018
|
var co = function(n, t, e) {
|
|
38956
|
-
for (var i = n.length, s = 0, l = new
|
|
39019
|
+
for (var i = n.length, s = 0, l = new Dl(t); s < i; ++s)
|
|
38957
39020
|
n[s] && ++l[n[s] - 1];
|
|
38958
|
-
var a = new
|
|
39021
|
+
var a = new Dl(t);
|
|
38959
39022
|
for (s = 1; s < t; ++s)
|
|
38960
39023
|
a[s] = a[s - 1] + l[s - 1] << 1;
|
|
38961
39024
|
var o;
|
|
38962
39025
|
if (e) {
|
|
38963
|
-
o = new
|
|
39026
|
+
o = new Dl(1 << t);
|
|
38964
39027
|
var c = 15 - t;
|
|
38965
39028
|
for (s = 0; s < i; ++s)
|
|
38966
39029
|
if (n[s])
|
|
38967
39030
|
for (var d = s << 4 | n[s], r = t - n[s], h = a[n[s] - 1]++ << r, u = h | (1 << r) - 1; h <= u; ++h)
|
|
38968
39031
|
o[Gm[h] >> c] = d;
|
|
38969
39032
|
} else
|
|
38970
|
-
for (o = new
|
|
39033
|
+
for (o = new Dl(i), s = 0; s < i; ++s)
|
|
38971
39034
|
n[s] && (o[s] = Gm[a[n[s] - 1]++] >> 15 - n[s]);
|
|
38972
39035
|
return o;
|
|
38973
39036
|
}, Gc = new Li(288);
|
|
@@ -39274,8 +39337,8 @@ class NT extends R3 {
|
|
|
39274
39337
|
let de = St;
|
|
39275
39338
|
const he = St + w * (T - ct);
|
|
39276
39339
|
for (; de <= he; de += It) {
|
|
39277
|
-
const l0 = de + wt,
|
|
39278
|
-
rt ? (Lt(V[de + f], V[
|
|
39340
|
+
const l0 = de + wt, $e = de + Ct, u0 = $e + wt;
|
|
39341
|
+
rt ? (Lt(V[de + f], V[$e + f]), _t = ft.a, Fe = ft.b, Lt(V[l0 + f], V[u0 + f]), Se = ft.a, w0 = ft.b, Lt(_t, Se), V[de + f] = ft.a, V[l0 + f] = ft.b, Lt(Fe, w0), V[$e + f] = ft.a, V[u0 + f] = ft.b) : (Dt(V[de + f], V[$e + f]), _t = ft.a, Fe = ft.b, Dt(V[l0 + f], V[u0 + f]), Se = ft.a, w0 = ft.b, Dt(_t, Se), V[de + f] = ft.a, V[l0 + f] = ft.b, Dt(Fe, w0), V[$e + f] = ft.a, V[u0 + f] = ft.b);
|
|
39279
39342
|
}
|
|
39280
39343
|
if (T & at) {
|
|
39281
39344
|
const l0 = de + Ct;
|
|
@@ -39388,9 +39451,9 @@ class NT extends R3 {
|
|
|
39388
39451
|
for (let he = 0; he < zt; ++he) {
|
|
39389
39452
|
let l0 = 8;
|
|
39390
39453
|
he == zt - 1 && (l0 = yt);
|
|
39391
|
-
let
|
|
39454
|
+
let $e = 8;
|
|
39392
39455
|
for (let ve = 0; ve < St; ++ve) {
|
|
39393
|
-
ve == St - 1 && (
|
|
39456
|
+
ve == St - 1 && ($e = Ct);
|
|
39394
39457
|
for (let ke = 0; ke < at; ++ke)
|
|
39395
39458
|
Se[ke].fill(0), Se[ke][0] = P[It[ke]++], it(wt, w, Se[ke]), nt(Se[ke], _t[ke]), Gt(_t[ke]);
|
|
39396
39459
|
F(_t);
|
|
@@ -39410,7 +39473,7 @@ class NT extends R3 {
|
|
|
39410
39473
|
if (ct != St)
|
|
39411
39474
|
for (let hn = 8 * he; hn < 8 * he + l0; ++hn) {
|
|
39412
39475
|
const xa = w0[ve][hn] + 8 * ct * 2 * ke, ji = ct * 64 + (hn & 7) * 8;
|
|
39413
|
-
for (let xc = 0; xc <
|
|
39476
|
+
for (let xc = 0; xc < $e; ++xc)
|
|
39414
39477
|
tt.setUint16(xa + xc * 2 * ke, Fe[ve][ji + xc], !0);
|
|
39415
39478
|
}
|
|
39416
39479
|
}
|
|
@@ -39421,8 +39484,8 @@ class NT extends R3 {
|
|
|
39421
39484
|
T[V.idx[he]].decoded = !0;
|
|
39422
39485
|
const l0 = T[V.idx[he]].type;
|
|
39423
39486
|
if (T[he].type == 2)
|
|
39424
|
-
for (let
|
|
39425
|
-
const u0 = w0[he][
|
|
39487
|
+
for (let $e = 0; $e < $; ++$e) {
|
|
39488
|
+
const u0 = w0[he][$e];
|
|
39426
39489
|
for (let ve = 0; ve < rt; ++ve)
|
|
39427
39490
|
de[ve] = tt.getUint16(u0 + ve * 2 * l0, !0);
|
|
39428
39491
|
for (let ve = 0; ve < rt; ++ve)
|
|
@@ -39807,7 +39870,7 @@ class NT extends R3 {
|
|
|
39807
39870
|
const T = Math.log2(V);
|
|
39808
39871
|
return f == "ROUND_DOWN" ? Math.floor(T) : Math.ceil(T);
|
|
39809
39872
|
}
|
|
39810
|
-
function
|
|
39873
|
+
function dl(V, f, T) {
|
|
39811
39874
|
let w = 0;
|
|
39812
39875
|
switch (V.levelMode) {
|
|
39813
39876
|
case "ONE_LEVEL":
|
|
@@ -39832,7 +39895,7 @@ class NT extends R3 {
|
|
|
39832
39895
|
}
|
|
39833
39896
|
return P;
|
|
39834
39897
|
}
|
|
39835
|
-
function
|
|
39898
|
+
function rl() {
|
|
39836
39899
|
const V = this, f = V.offset, T = { value: 0 };
|
|
39837
39900
|
for (let w = 0; w < V.tileCount; w++) {
|
|
39838
39901
|
const P = Qt(V.viewer, f), B = Qt(V.viewer, f);
|
|
@@ -40008,13 +40071,13 @@ class NT extends R3 {
|
|
|
40008
40071
|
B.decodeChannels[ct.name] !== void 0 && (B.channelByteOffsets[ct.name] = at), at += ct.pixelType * 2;
|
|
40009
40072
|
if (B.totalBytes = at, B.outLineWidth = B.width * B.outputChannels, V.lineOrder === "INCREASING_Y" ? B.scanOrder = (ct) => ct : B.scanOrder = (ct) => B.height - 1 - ct, B.outputChannels == 4 ? (B.format = R0, B.colorSpace = h0) : (B.format = jr, B.colorSpace = si), V.spec.singleTile) {
|
|
40010
40073
|
B.blockHeight = V.tiles.ySize, B.blockWidth = V.tiles.xSize;
|
|
40011
|
-
const ct =
|
|
40074
|
+
const ct = dl(V.tiles, B.width, B.height), St = fa(ct, B.width, V.tiles.xSize, V.tiles.roundingMode), zt = fa(ct, B.height, V.tiles.ySize, V.tiles.roundingMode);
|
|
40012
40075
|
B.tileCount = St[0] * zt[0];
|
|
40013
40076
|
for (let Ct = 0; Ct < ct; Ct++)
|
|
40014
40077
|
for (let yt = 0; yt < zt[Ct]; yt++)
|
|
40015
40078
|
for (let wt = 0; wt < St[Ct]; wt++)
|
|
40016
40079
|
fe(f, w);
|
|
40017
|
-
B.decode =
|
|
40080
|
+
B.decode = rl.bind(B);
|
|
40018
40081
|
} else {
|
|
40019
40082
|
B.blockWidth = B.width;
|
|
40020
40083
|
const ct = Math.ceil(B.height / B.blockHeight);
|
|
@@ -40076,7 +40139,7 @@ var IT = Object.defineProperty, TT = Object.defineProperties, MT = Object.getOwn
|
|
|
40076
40139
|
}, o = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(l, a);
|
|
40077
40140
|
o((e = e.apply(n, t)).next());
|
|
40078
40141
|
});
|
|
40079
|
-
class
|
|
40142
|
+
class cl {
|
|
40080
40143
|
constructor(t) {
|
|
40081
40144
|
this.pluginName = "draw", this.objMap = /* @__PURE__ */ new Map(), this.targetNullMap = /* @__PURE__ */ new Map(), this.nodeGroupVisible = !0, this.objectNamesToFactories = /* @__PURE__ */ new Map(), this.objects = /* @__PURE__ */ new Map(), this.objects_ = t;
|
|
40082
40145
|
}
|
|
@@ -40698,12 +40761,12 @@ class BT {
|
|
|
40698
40761
|
}), (t = this.dracoLoader) == null || t.dispose(), (e = this.cacheLoader) == null || e.dispose(), this.event.removeAllListeners(), this.delLoadObj = {}, (i = this.pm) == null || i.reject(), this.end = !1, this.loadCount = 0;
|
|
40699
40762
|
}
|
|
40700
40763
|
}
|
|
40701
|
-
class ET extends
|
|
40764
|
+
class ET extends As {
|
|
40702
40765
|
constructor(t = null) {
|
|
40703
40766
|
super();
|
|
40704
40767
|
const e = new n0();
|
|
40705
40768
|
e.deleteAttribute("uv");
|
|
40706
|
-
const i = new
|
|
40769
|
+
const i = new qe({ side: W0 }), s = new qe(), l = new hc(16777215, 900, 28, 2);
|
|
40707
40770
|
l.position.set(0.418, 16.199, 0.3), this.add(l);
|
|
40708
40771
|
const a = new Xt(e, i);
|
|
40709
40772
|
a.position.set(-0.757, 13.219, 0.717), a.scale.set(31.713, 28.305, 28.591), this.add(a);
|
|
@@ -40719,17 +40782,17 @@ class ET extends Qs {
|
|
|
40719
40782
|
h.position.set(2.291, -0.756, -2.621), h.rotation.set(0, -0.286, 0), h.scale.set(1.546, 1.552, 1.496), this.add(h);
|
|
40720
40783
|
const u = new Xt(e, s);
|
|
40721
40784
|
u.position.set(-2.193, -0.369, -5.547), u.rotation.set(0, 0.516, 0), u.scale.set(3.875, 3.487, 2.986), this.add(u);
|
|
40722
|
-
const m = new Xt(e,
|
|
40785
|
+
const m = new Xt(e, kl(50));
|
|
40723
40786
|
m.position.set(-16.116, 14.37, 8.208), m.scale.set(0.1, 2.428, 2.739), this.add(m);
|
|
40724
|
-
const b = new Xt(e,
|
|
40787
|
+
const b = new Xt(e, kl(50));
|
|
40725
40788
|
b.position.set(-16.109, 18.021, -8.207), b.scale.set(0.1, 2.425, 2.751), this.add(b);
|
|
40726
|
-
const G = new Xt(e,
|
|
40789
|
+
const G = new Xt(e, kl(17));
|
|
40727
40790
|
G.position.set(14.904, 12.198, -1.832), G.scale.set(0.15, 4.265, 6.331), this.add(G);
|
|
40728
|
-
const Z = new Xt(e,
|
|
40791
|
+
const Z = new Xt(e, kl(43));
|
|
40729
40792
|
Z.position.set(-0.462, 8.89, 14.52), Z.scale.set(4.38, 5.441, 0.088), this.add(Z);
|
|
40730
|
-
const p = new Xt(e,
|
|
40793
|
+
const p = new Xt(e, kl(20));
|
|
40731
40794
|
p.position.set(3.235, 11.486, -12.541), p.scale.set(2.5, 2, 0.1), this.add(p);
|
|
40732
|
-
const W = new Xt(e,
|
|
40795
|
+
const W = new Xt(e, kl(100));
|
|
40733
40796
|
W.position.set(0, 20, 0), W.scale.set(1, 0.1, 1), this.add(W);
|
|
40734
40797
|
}
|
|
40735
40798
|
dispose() {
|
|
@@ -40741,11 +40804,11 @@ class ET extends Qs {
|
|
|
40741
40804
|
e.dispose();
|
|
40742
40805
|
}
|
|
40743
40806
|
}
|
|
40744
|
-
function
|
|
40807
|
+
function kl(n) {
|
|
40745
40808
|
const t = new qt();
|
|
40746
40809
|
return t.color.setScalar(n), t;
|
|
40747
40810
|
}
|
|
40748
|
-
const aX = "0.14.
|
|
40811
|
+
const aX = "0.14.6", _u = !1;
|
|
40749
40812
|
class Va {
|
|
40750
40813
|
constructor(t, e = {}) {
|
|
40751
40814
|
D(this, "container");
|
|
@@ -40760,7 +40823,7 @@ class Va {
|
|
|
40760
40823
|
D(this, "delLoadObj");
|
|
40761
40824
|
D(this, "extendsOptions", {});
|
|
40762
40825
|
D(this, "pencil");
|
|
40763
|
-
D(this, "drawController", new
|
|
40826
|
+
D(this, "drawController", new cl(ds));
|
|
40764
40827
|
D(this, "mList");
|
|
40765
40828
|
D(this, "loader");
|
|
40766
40829
|
D(this, "worker");
|
|
@@ -41495,7 +41558,7 @@ const jT = Pe(kt({}, ds), {
|
|
|
41495
41558
|
}, n.initMaterial = function() {
|
|
41496
41559
|
return pt(this, null, function* () {
|
|
41497
41560
|
const t = n.loader, e = n.mList, i = (() => {
|
|
41498
|
-
const s = n.options.worldPacificCentre ? new
|
|
41561
|
+
const s = n.options.worldPacificCentre ? new qe({
|
|
41499
41562
|
// color: '#0d2425',
|
|
41500
41563
|
name: "顶面",
|
|
41501
41564
|
map: t.getAsset("/image/map/hp2.webp"),
|
|
@@ -41599,7 +41662,7 @@ const jT = Pe(kt({}, ds), {
|
|
|
41599
41662
|
bboxMap: a
|
|
41600
41663
|
}));
|
|
41601
41664
|
//@ts-ignore
|
|
41602
|
-
D(this, "drawController", new
|
|
41665
|
+
D(this, "drawController", new cl(jT));
|
|
41603
41666
|
D(this, "mapHistory", []);
|
|
41604
41667
|
D(this, "activePlaneMap", null);
|
|
41605
41668
|
D(this, "isAnimating", !1);
|
|
@@ -41744,7 +41807,7 @@ const jT = Pe(kt({}, ds), {
|
|
|
41744
41807
|
a.wrapS = xe, a.wrapT = xe;
|
|
41745
41808
|
const o = 150;
|
|
41746
41809
|
a.repeat.set(o, o);
|
|
41747
|
-
const c = new
|
|
41810
|
+
const c = new qe({
|
|
41748
41811
|
name: "顶面",
|
|
41749
41812
|
emissive: "#081417",
|
|
41750
41813
|
map: a
|
|
@@ -41770,7 +41833,7 @@ const jT = Pe(kt({}, ds), {
|
|
|
41770
41833
|
a.wrapS = xe, a.wrapT = xe;
|
|
41771
41834
|
const o = 50;
|
|
41772
41835
|
a.repeat.set(o, o);
|
|
41773
|
-
const c = new
|
|
41836
|
+
const c = new qe({
|
|
41774
41837
|
name: "顶面",
|
|
41775
41838
|
// color: '#214141',
|
|
41776
41839
|
// emissive: '#142c52',
|
|
@@ -41798,7 +41861,7 @@ const jT = Pe(kt({}, ds), {
|
|
|
41798
41861
|
]), this.mList.showMaterialList.set("continentsLine", "continents#lineMat"), this.mList.showMaterialListTitle.set("continentsArea", "大洲"), this.mList.showMaterialListTitle.set("continentsLine", "大洲线");
|
|
41799
41862
|
}
|
|
41800
41863
|
const s = (() => {
|
|
41801
|
-
const l = e === 1e5 ? new
|
|
41864
|
+
const l = e === 1e5 ? new qe({
|
|
41802
41865
|
name: "顶面",
|
|
41803
41866
|
map: i.getAsset("/image/map/hp.webp"),
|
|
41804
41867
|
normalMap: i.getAsset("/image/map/shuchu2.webp")
|
|
@@ -42174,7 +42237,7 @@ const jT = Pe(kt({}, ds), {
|
|
|
42174
42237
|
}
|
|
42175
42238
|
absoluteAngle(e, i) {
|
|
42176
42239
|
const s = Math.PI * 2, l = e - i;
|
|
42177
|
-
return
|
|
42240
|
+
return ca.euclideanModulo(l + Math.PI, s) - Math.PI;
|
|
42178
42241
|
}
|
|
42179
42242
|
fitTo(a) {
|
|
42180
42243
|
return pt(this, arguments, function* (e, {
|
|
@@ -42222,7 +42285,7 @@ const jT = Pe(kt({}, ds), {
|
|
|
42222
42285
|
});
|
|
42223
42286
|
}
|
|
42224
42287
|
paddingInCssPixel(e, i, s, l, a, o) {
|
|
42225
|
-
const { camera: c, cameraControls: d } = this.pencil, r = c.fov *
|
|
42288
|
+
const { camera: c, cameraControls: d } = this.pencil, r = c.fov * ca.DEG2RAD, h = this.pencil.getSize().height, { size: u } = e.getSize(), m = u.x, b = u.y, G = u.z;
|
|
42226
42289
|
let Z = d.getDistanceToFitBox(
|
|
42227
42290
|
m,
|
|
42228
42291
|
b,
|
|
@@ -42725,7 +42788,7 @@ class uX extends ye {
|
|
|
42725
42788
|
}
|
|
42726
42789
|
class ko extends Xt {
|
|
42727
42790
|
constructor(t, e = {}) {
|
|
42728
|
-
super(t), this.isReflector = !0, this.type = "Reflector", this.camera = new
|
|
42791
|
+
super(t), this.isReflector = !0, this.type = "Reflector", this.camera = new Oe();
|
|
42729
42792
|
const i = this, s = e.color !== void 0 ? new ot(e.color) : new ot(8355711), l = e.textureWidth || 512, a = e.textureHeight || 512, o = e.clipBias || 0, c = e.shader || ko.ReflectorShader, d = e.multisample !== void 0 ? e.multisample : 4, r = new zi(), h = new Y(), u = new Y(), m = new Y(), b = new Et(), G = new Y(0, 0, -1), Z = new ge(), p = new Y(), W = new Y(), X = new ge(), y = new Et(), g = this.camera, x = new e0(l, a, { samples: d, type: ai }), C = new Ae({
|
|
42730
42793
|
name: c.name !== void 0 ? c.name : "unspecified",
|
|
42731
42794
|
uniforms: Do.clone(c.uniforms),
|
|
@@ -42833,7 +42896,7 @@ ko.ReflectorShader = {
|
|
|
42833
42896
|
};
|
|
42834
42897
|
class Uo extends Xt {
|
|
42835
42898
|
constructor(t, e = {}) {
|
|
42836
|
-
super(t), this.isRefractor = !0, this.type = "Refractor", this.camera = new
|
|
42899
|
+
super(t), this.isRefractor = !0, this.type = "Refractor", this.camera = new Oe();
|
|
42837
42900
|
const i = this, s = e.color !== void 0 ? new ot(e.color) : new ot(8355711), l = e.textureWidth || 512, a = e.textureHeight || 512, o = e.clipBias || 0, c = e.shader || Uo.RefractorShader, d = e.multisample !== void 0 ? e.multisample : 4, r = this.camera;
|
|
42838
42901
|
r.matrixAutoUpdate = !1, r.userData.refractor = !0;
|
|
42839
42902
|
const h = new zi(), u = new Et(), m = new e0(l, a, { samples: d, type: ai });
|
|
@@ -43352,7 +43415,7 @@ const lM = Pe(kt({}, ds), {
|
|
|
43352
43415
|
showRiver: !0
|
|
43353
43416
|
}, i));
|
|
43354
43417
|
//@ts-ignore
|
|
43355
|
-
D(this, "drawController", new
|
|
43418
|
+
D(this, "drawController", new cl(lM));
|
|
43356
43419
|
D(this, "adcode", 0);
|
|
43357
43420
|
D(this, "pcenter", [104, 37.5]);
|
|
43358
43421
|
D(this, "pscale", 5e4);
|
|
@@ -43403,7 +43466,7 @@ const lM = Pe(kt({}, ds), {
|
|
|
43403
43466
|
name: "建筑顶面-板块内" + l + "高",
|
|
43404
43467
|
color: "#00a3bc"
|
|
43405
43468
|
}),
|
|
43406
|
-
new
|
|
43469
|
+
new qe({
|
|
43407
43470
|
name: "建筑侧面-板块内" + l + "高",
|
|
43408
43471
|
map: a,
|
|
43409
43472
|
normalMap: o,
|
|
@@ -43432,7 +43495,7 @@ const lM = Pe(kt({}, ds), {
|
|
|
43432
43495
|
name: "建筑顶面-板块外" + l + "高",
|
|
43433
43496
|
color: "#133144"
|
|
43434
43497
|
}),
|
|
43435
|
-
new
|
|
43498
|
+
new qe({
|
|
43436
43499
|
name: "建筑侧面-块外" + l + "高",
|
|
43437
43500
|
map: a,
|
|
43438
43501
|
normalMap: o,
|
|
@@ -43624,7 +43687,7 @@ const lM = Pe(kt({}, ds), {
|
|
|
43624
43687
|
}
|
|
43625
43688
|
absoluteAngle(e, i) {
|
|
43626
43689
|
const s = Math.PI * 2, l = e - i;
|
|
43627
|
-
return
|
|
43690
|
+
return ca.euclideanModulo(l + Math.PI, s) - Math.PI;
|
|
43628
43691
|
}
|
|
43629
43692
|
lookAtTarget(e, i, s, l = 0) {
|
|
43630
43693
|
return pt(this, null, function* () {
|
|
@@ -43978,7 +44041,7 @@ const cM = Pe(kt({}, ds), {
|
|
|
43978
44041
|
radius: 30
|
|
43979
44042
|
}, i));
|
|
43980
44043
|
//@ts-ignore
|
|
43981
|
-
D(this, "drawController", new
|
|
44044
|
+
D(this, "drawController", new cl(cM));
|
|
43982
44045
|
D(this, "leftTruck", !1);
|
|
43983
44046
|
D(this, "extendsOptions", {
|
|
43984
44047
|
mapDepth: () => this.options.mapDepth
|
|
@@ -44006,14 +44069,14 @@ const cM = Pe(kt({}, ds), {
|
|
|
44006
44069
|
}
|
|
44007
44070
|
initMaterial() {
|
|
44008
44071
|
return pt(this, null, function* () {
|
|
44009
|
-
const e = this.loader, i = new
|
|
44072
|
+
const e = this.loader, i = new qe({
|
|
44010
44073
|
side: ze,
|
|
44011
44074
|
name: "顶面",
|
|
44012
44075
|
color: new ot("#0d8a8c"),
|
|
44013
44076
|
metalness: 0.75,
|
|
44014
44077
|
roughness: 0.61,
|
|
44015
44078
|
normalMap: e.getAsset("/image/earth/chinaNormal.png")
|
|
44016
|
-
}), s = new
|
|
44079
|
+
}), s = new qe({
|
|
44017
44080
|
side: ze,
|
|
44018
44081
|
name: "侧面",
|
|
44019
44082
|
color: new ot("#999999"),
|
|
@@ -44026,7 +44089,7 @@ const cM = Pe(kt({}, ds), {
|
|
|
44026
44089
|
lineWidth: 0.2,
|
|
44027
44090
|
sizeAttenuation: 1,
|
|
44028
44091
|
color: new ot("#80abaf")
|
|
44029
|
-
}), o = e.getAsset("/image/earth/basic.png"), c = new
|
|
44092
|
+
}), o = e.getAsset("/image/earth/basic.png"), c = new qe({
|
|
44030
44093
|
name: "地球材质",
|
|
44031
44094
|
map: o,
|
|
44032
44095
|
color: new ot(2397309),
|
|
@@ -44160,7 +44223,7 @@ D(Er, "VisName", "earth");
|
|
|
44160
44223
|
let Eo = Er;
|
|
44161
44224
|
class rM extends U2 {
|
|
44162
44225
|
create() {
|
|
44163
|
-
const t = this.pencil.getPlugin("loader"), e = t.getAsset("/image/earth2/basic.jpg"), i = t.getAsset("/image/earth2/NormalMap.jpg"), s = new
|
|
44226
|
+
const t = this.pencil.getPlugin("loader"), e = t.getAsset("/image/earth2/basic.jpg"), i = t.getAsset("/image/earth2/NormalMap.jpg"), s = new qe({
|
|
44164
44227
|
map: e,
|
|
44165
44228
|
metalness: 0.1,
|
|
44166
44229
|
roughness: 0.8,
|
|
@@ -44272,7 +44335,7 @@ const pM = Pe(kt({}, ds), {
|
|
|
44272
44335
|
super(e, kt({}, i));
|
|
44273
44336
|
D(this, "leftTruck", !1);
|
|
44274
44337
|
//@ts-ignore
|
|
44275
|
-
D(this, "drawController", new
|
|
44338
|
+
D(this, "drawController", new cl(pM));
|
|
44276
44339
|
D(this, "autoRotateSpeed", 0);
|
|
44277
44340
|
D(this, "initSettingsObj", {
|
|
44278
44341
|
autoRotate: !1
|
|
@@ -44412,17 +44475,17 @@ class Xm extends Eo {
|
|
|
44412
44475
|
constructor() {
|
|
44413
44476
|
super(...arguments);
|
|
44414
44477
|
//@ts-ignore
|
|
44415
|
-
D(this, "drawController", new
|
|
44478
|
+
D(this, "drawController", new cl(GM));
|
|
44416
44479
|
}
|
|
44417
44480
|
loaderAdd() {
|
|
44418
44481
|
}
|
|
44419
44482
|
initMaterial() {
|
|
44420
44483
|
return pt(this, null, function* () {
|
|
44421
|
-
const e = new
|
|
44484
|
+
const e = new qe({
|
|
44422
44485
|
side: ze,
|
|
44423
44486
|
name: "侧面",
|
|
44424
44487
|
color: new ot("#999999")
|
|
44425
|
-
}), i = new
|
|
44488
|
+
}), i = new qe({
|
|
44426
44489
|
name: "顶面",
|
|
44427
44490
|
color: new ot("#0d8a8c")
|
|
44428
44491
|
}), s = new Ne({
|
|
@@ -44521,7 +44584,7 @@ class WM extends Jo {
|
|
|
44521
44584
|
parentBg: !0
|
|
44522
44585
|
}, i));
|
|
44523
44586
|
//@ts-ignore
|
|
44524
|
-
D(this, "drawController", new
|
|
44587
|
+
D(this, "drawController", new cl(GX));
|
|
44525
44588
|
D(this, "initSettingsObj", {
|
|
44526
44589
|
label: !1,
|
|
44527
44590
|
labelLite: !1,
|
|
@@ -44551,7 +44614,7 @@ class WM extends Jo {
|
|
|
44551
44614
|
if (this.loader, this.options.parentBg) {
|
|
44552
44615
|
if (this.options.adcode !== 1e5) {
|
|
44553
44616
|
const l = (() => {
|
|
44554
|
-
const a = new
|
|
44617
|
+
const a = new qe({
|
|
44555
44618
|
name: "父级板块顶面",
|
|
44556
44619
|
color: "#031529",
|
|
44557
44620
|
emissive: "#010f1f",
|
|
@@ -44576,7 +44639,7 @@ class WM extends Jo {
|
|
|
44576
44639
|
this.mList.setMaterialObj("parentPlane", l);
|
|
44577
44640
|
}
|
|
44578
44641
|
const s = (() => {
|
|
44579
|
-
const l = new
|
|
44642
|
+
const l = new qe({
|
|
44580
44643
|
name: "世界板块顶面",
|
|
44581
44644
|
color: "#031529",
|
|
44582
44645
|
emissive: "#010f1f",
|
|
@@ -44602,7 +44665,7 @@ class WM extends Jo {
|
|
|
44602
44665
|
}
|
|
44603
44666
|
if (this.options.continentsBg) {
|
|
44604
44667
|
const s = (() => {
|
|
44605
|
-
const l = new
|
|
44668
|
+
const l = new qe({
|
|
44606
44669
|
name: "大洲板块顶面",
|
|
44607
44670
|
emissive: "#235278"
|
|
44608
44671
|
}), a = new qt({
|
|
@@ -44812,7 +44875,7 @@ const yM = (n) => {
|
|
|
44812
44875
|
}, n.initMaterial = function() {
|
|
44813
44876
|
return pt(this, null, function* () {
|
|
44814
44877
|
const t = n.roomEnvMap, e = n.loader, i = (() => {
|
|
44815
|
-
const l = new
|
|
44878
|
+
const l = new qe({
|
|
44816
44879
|
name: "顶面",
|
|
44817
44880
|
color: "#005ec2",
|
|
44818
44881
|
emissive: "#010f1f",
|
|
@@ -44836,7 +44899,7 @@ const yM = (n) => {
|
|
|
44836
44899
|
})();
|
|
44837
44900
|
n.mList.setMaterialObj("parentPlane", i);
|
|
44838
44901
|
const s = (() => {
|
|
44839
|
-
const l = new
|
|
44902
|
+
const l = new qe({
|
|
44840
44903
|
name: "顶面",
|
|
44841
44904
|
map: e.getAsset("/image/map2/350000-2.webp"),
|
|
44842
44905
|
normalMap: e.getAsset("/image/map2/350000normal.webp"),
|
|
@@ -44966,7 +45029,7 @@ const yM = (n) => {
|
|
|
44966
45029
|
name: "顶面",
|
|
44967
45030
|
color: i === "max" ? "#10437a" : "#0b5285"
|
|
44968
45031
|
}),
|
|
44969
|
-
new
|
|
45032
|
+
new qe({
|
|
44970
45033
|
color: i === "max" ? "#8bb3d9" : "#3d6e99",
|
|
44971
45034
|
name: "侧面",
|
|
44972
45035
|
map: s,
|
|
@@ -45368,13 +45431,13 @@ const CM = {
|
|
|
45368
45431
|
UVMapping: Vn,
|
|
45369
45432
|
CubeReflectionMapping: cn,
|
|
45370
45433
|
CubeRefractionMapping: Nn,
|
|
45371
|
-
EquirectangularReflectionMapping:
|
|
45372
|
-
EquirectangularRefractionMapping:
|
|
45373
|
-
CubeUVReflectionMapping:
|
|
45434
|
+
EquirectangularReflectionMapping: na,
|
|
45435
|
+
EquirectangularRefractionMapping: sa,
|
|
45436
|
+
CubeUVReflectionMapping: nl
|
|
45374
45437
|
}, S5 = {
|
|
45375
45438
|
RepeatWrapping: xe,
|
|
45376
45439
|
ClampToEdgeWrapping: Z0,
|
|
45377
|
-
MirroredRepeatWrapping:
|
|
45440
|
+
MirroredRepeatWrapping: Qs
|
|
45378
45441
|
}, Y5 = {
|
|
45379
45442
|
NearestFilter: Je,
|
|
45380
45443
|
NearestMipmapNearestFilter: Ao,
|
|
@@ -46236,9 +46299,9 @@ function I5(n) {
|
|
|
46236
46299
|
}
|
|
46237
46300
|
return t;
|
|
46238
46301
|
}
|
|
46239
|
-
let
|
|
46240
|
-
|
|
46241
|
-
const kM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t =
|
|
46302
|
+
let el = "/";
|
|
46303
|
+
el === "/" && (el = "");
|
|
46304
|
+
const kM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = el) {
|
|
46242
46305
|
if (n === 0)
|
|
46243
46306
|
return {
|
|
46244
46307
|
mapDepth: 5,
|
|
@@ -46256,7 +46319,7 @@ const kM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = tl) {
|
|
|
46256
46319
|
t
|
|
46257
46320
|
);
|
|
46258
46321
|
}
|
|
46259
|
-
}), UM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t =
|
|
46322
|
+
}), UM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = el) {
|
|
46260
46323
|
const s = G0[n];
|
|
46261
46324
|
return Yh(
|
|
46262
46325
|
"map2",
|
|
@@ -46267,7 +46330,7 @@ const kM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = tl) {
|
|
|
46267
46330
|
},
|
|
46268
46331
|
t
|
|
46269
46332
|
);
|
|
46270
|
-
}), BM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t =
|
|
46333
|
+
}), BM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = el) {
|
|
46271
46334
|
const s = G0[n];
|
|
46272
46335
|
return Yh(
|
|
46273
46336
|
"map2",
|
|
@@ -46283,7 +46346,7 @@ const kM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = tl) {
|
|
|
46283
46346
|
},
|
|
46284
46347
|
t
|
|
46285
46348
|
);
|
|
46286
|
-
}), Yh = (i, s, ...l) => pt(void 0, [i, s, ...l], function* (n, t, e =
|
|
46349
|
+
}), Yh = (i, s, ...l) => pt(void 0, [i, s, ...l], function* (n, t, e = el) {
|
|
46287
46350
|
var a, o;
|
|
46288
46351
|
if (t.adcode !== 0 && t.adcode !== 1e5) {
|
|
46289
46352
|
const c = (a = t.fixGeojson) == null ? void 0 : a[t.adcode], d = (o = t.fixGeojson) == null ? void 0 : o[t.adcode + "-lite"];
|
|
@@ -46336,7 +46399,7 @@ const kM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = tl) {
|
|
|
46336
46399
|
return b;
|
|
46337
46400
|
}
|
|
46338
46401
|
return kt({}, t);
|
|
46339
|
-
}), EM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t =
|
|
46402
|
+
}), EM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = el) {
|
|
46340
46403
|
const s = G0[n], l = yield fetch(
|
|
46341
46404
|
t + `/geojson/json-lite/${n}.json`
|
|
46342
46405
|
).then((c) => c.json()), a = Kd(l), { name: o } = G0[n];
|
|
@@ -46346,7 +46409,7 @@ const kM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = tl) {
|
|
|
46346
46409
|
bbox: a,
|
|
46347
46410
|
jsonName: RX(o, `${n}`)
|
|
46348
46411
|
};
|
|
46349
|
-
}),
|
|
46412
|
+
}), XF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
46350
46413
|
__proto__: null,
|
|
46351
46414
|
extendMapConfig: Yh,
|
|
46352
46415
|
getCityConfig: EM,
|
|
@@ -46354,7 +46417,7 @@ const kM = (e, ...i) => pt(void 0, [e, ...i], function* (n, t = tl) {
|
|
|
46354
46417
|
getMap2WithCityConfig: BM,
|
|
46355
46418
|
getMapConfig: kM
|
|
46356
46419
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
46357
|
-
class
|
|
46420
|
+
class WF {
|
|
46358
46421
|
constructor(t = {}) {
|
|
46359
46422
|
D(this, "selected", null);
|
|
46360
46423
|
D(this, "isSDK", !0);
|
|
@@ -46533,6 +46596,6 @@ class W8 {
|
|
|
46533
46596
|
export {
|
|
46534
46597
|
Ne as MeshLineMaterial,
|
|
46535
46598
|
p2 as THREE,
|
|
46536
|
-
|
|
46537
|
-
|
|
46599
|
+
WF as default,
|
|
46600
|
+
XF as visConfig
|
|
46538
46601
|
};
|