vis-core 0.12.32 → 0.12.33
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 +32 -32
- package/dist/index.module.js +426 -415
- package/dist/version.d.ts +1 -1
- package/dist/vis/city/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var HX = Object.defineProperty, zX = Object.defineProperties;
|
|
3
3
|
var kX = Object.getOwnPropertyDescriptors;
|
|
4
4
|
var t9 = Object.getOwnPropertySymbols, JX = Object.getPrototypeOf, KX = Object.prototype.hasOwnProperty, UX = Object.prototype.propertyIsEnumerable, BX = Reflect.get;
|
|
5
|
-
var
|
|
5
|
+
var Ta = (n, t) => (t = Symbol[n]) ? t : Symbol.for("Symbol." + n), Zl = Math.pow, Uh = (n, t, e) => t in n ? HX(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, Bt = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
KX.call(t, e) && Uh(n, e, t[e]);
|
|
8
8
|
if (t9)
|
|
@@ -31,8 +31,8 @@ var Gt = (n, t, e) => new Promise((i, s) => {
|
|
|
31
31
|
this[0] = n, this[1] = t;
|
|
32
32
|
};
|
|
33
33
|
var e9 = (n) => {
|
|
34
|
-
var t = n[
|
|
35
|
-
return t == null ? (t = n[
|
|
34
|
+
var t = n[Ta("asyncIterator")], e = !1, i, s = {};
|
|
35
|
+
return t == null ? (t = n[Ta("iterator")](), i = (l) => s[l] = (a) => t[l](a)) : (t = t.call(n), i = (l) => s[l] = (a) => {
|
|
36
36
|
if (e) {
|
|
37
37
|
if (e = !1, l === "throw")
|
|
38
38
|
throw a;
|
|
@@ -47,16 +47,16 @@ var e9 = (n) => {
|
|
|
47
47
|
o(c);
|
|
48
48
|
}), 1)
|
|
49
49
|
};
|
|
50
|
-
}), s[
|
|
50
|
+
}), s[Ta("iterator")] = () => s, i("next"), "throw" in t ? i("throw") : s.throw = (l) => {
|
|
51
51
|
throw l;
|
|
52
52
|
}, "return" in t && i("return"), s;
|
|
53
|
-
}, Bh = (n, t, e) => (t = n[
|
|
53
|
+
}, Bh = (n, t, e) => (t = n[Ta("asyncIterator")]) ? t.call(n) : (n = n[Ta("iterator")](), t = {}, e = (i, s) => (s = n[i]) && (t[i] = (l) => new Promise((a, o, c) => (l = s.call(n, l), c = l.done, Promise.resolve(l.value).then((d) => a({ value: d, done: c }), o)))), e("next"), e("return"), t);
|
|
54
54
|
import { EventEmitter as U5 } from "events";
|
|
55
55
|
import { throttle as B5 } from "lodash-es";
|
|
56
|
-
import { makePromiseCreator as
|
|
56
|
+
import { makePromiseCreator as qo, WorkerPool as PX, generateUUID as i9, Timer as QX } from "esus-lite";
|
|
57
57
|
import n9 from "geojson-cn/json-lite/100000.json";
|
|
58
58
|
import ur from "geojson-cn/extra/countriesExclATA.json";
|
|
59
|
-
import { centroid as AX, booleanPointInPolygon as Mm, point as E5, polygon as
|
|
59
|
+
import { centroid as AX, booleanPointInPolygon as Mm, point as E5, polygon as $o, center as jX, flatten as s9, explode as DX, inside as OX, intersect as _X, booleanContains as Fm, lineString as P5, booleanCrosses as qX, bbox as _d } from "@turf/turf";
|
|
60
60
|
import l9 from "geojson-cn/extra/continents.json";
|
|
61
61
|
import { adcodeMap as Ze, findLevelJsonItem as $X, allArr as tW } from "geojson-cn";
|
|
62
62
|
import Q5 from "geojson-cn/json/100000.json";
|
|
@@ -66,7 +66,7 @@ import eW from "geojson-cn/extra/countries.json";
|
|
|
66
66
|
* Copyright 2010-2024 Three.js Authors
|
|
67
67
|
* SPDX-License-Identifier: MIT
|
|
68
68
|
*/
|
|
69
|
-
const rs = "164", iW = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, nW = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, A5 = 0, c1 = 1, j5 = 2, sW = 3, lW = 0, Tm = 1, D5 = 2, an = 3, Di = 0, Xe = 1, K0 = 2, ze = 0, ji = 1,
|
|
69
|
+
const rs = "164", iW = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, nW = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, A5 = 0, c1 = 1, j5 = 2, sW = 3, lW = 0, Tm = 1, D5 = 2, an = 3, Di = 0, Xe = 1, K0 = 2, ze = 0, ji = 1, yo = 2, d1 = 3, r1 = 4, O5 = 5, is = 100, _5 = 101, q5 = 102, $5 = 103, tZ = 104, eZ = 200, iZ = 201, nZ = 202, sZ = 203, mr = 204, pr = 205, lZ = 206, aZ = 207, oZ = 208, cZ = 209, dZ = 210, rZ = 211, hZ = 212, uZ = 213, mZ = 214, vm = 0, wm = 1, br = 2, oa = 3, Vo = 4, Hm = 5, zm = 6, lh = 7, tc = 0, pZ = 1, bZ = 2, Nn = 0, ZZ = 1, GZ = 2, XZ = 3, WZ = 4, yZ = 5, VZ = 6, gZ = 7, h1 = "attached", fZ = "detached", Ln = 300, bn = 301, Tn = 302, ca = 303, da = 304, ol = 306, g0 = 1e3, be = 1001, Os = 1002, J0 = 1003, ec = 1004, aW = 1004, ss = 1005, oW = 1005, Y0 = 1006, Ps = 1007, cW = 1007, oi = 1008, dW = 1008, Te = 1009, RZ = 1010, xZ = 1011, km = 1012, Jm = 1013, os = 1014, He = 1015, ci = 1016, Km = 1017, Um = 1018, cl = 1020, LZ = 35902, CZ = 1021, SZ = 1022, xe = 1023, YZ = 1024, NZ = 1025, Qs = 1026, _s = 1027, ah = 1028, Bm = 1029, IZ = 1030, Em = 1031, Pm = 1033, qd = 33776, $d = 33777, tr = 33778, er = 33779, u1 = 35840, m1 = 35841, p1 = 35842, b1 = 35843, Z1 = 36196, G1 = 37492, X1 = 37496, W1 = 37808, y1 = 37809, V1 = 37810, g1 = 37811, f1 = 37812, R1 = 37813, x1 = 37814, L1 = 37815, C1 = 37816, S1 = 37817, Y1 = 37818, N1 = 37819, I1 = 37820, M1 = 37821, ir = 36492, F1 = 36494, T1 = 36495, MZ = 36283, v1 = 36284, w1 = 36285, H1 = 36286, FZ = 2200, TZ = 2201, vZ = 2202, ra = 2300, qs = 2301, nr = 2302, zs = 2400, ks = 2401, go = 2402, oh = 2500, Qm = 2501, wZ = 0, Am = 1, Zr = 2, vn = 3200, ch = 3201, hs = 0, HZ = 1, ai = "", Z0 = "srgb", he = "srgb-linear", dh = "display-p3", ic = "display-p3-linear", fo = "linear", _0 = "srgb", Ro = "rec709", xo = "p3", rW = 0, Is = 7680, hW = 7681, uW = 7682, mW = 7683, pW = 34055, bW = 34056, ZW = 5386, GW = 512, XW = 513, WW = 514, yW = 515, VW = 516, gW = 517, fW = 518, z1 = 519, zZ = 512, kZ = 513, JZ = 514, jm = 515, KZ = 516, UZ = 517, BZ = 518, EZ = 519, Lo = 35044, PZ = 35048, RW = 35040, xW = 35045, LW = 35049, CW = 35041, SW = 35046, YW = 35050, NW = 35042, IW = "100", k1 = "300 es", dn = 2e3, Co = 2001;
|
|
70
70
|
let Fi = class {
|
|
71
71
|
addEventListener(t, e) {
|
|
72
72
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -120,11 +120,11 @@ function MW(n, t, e, i, s) {
|
|
|
120
120
|
function FW(n, t, e) {
|
|
121
121
|
return n !== t ? (e - n) / (t - n) : 0;
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function ro(n, t, e) {
|
|
124
124
|
return (1 - e) * n + e * t;
|
|
125
125
|
}
|
|
126
126
|
function TW(n, t, e, i) {
|
|
127
|
-
return
|
|
127
|
+
return ro(n, t, 1 - Math.exp(-e * i));
|
|
128
128
|
}
|
|
129
129
|
function vW(n, t = 1) {
|
|
130
130
|
return t - Math.abs(Dm(n, t * 2) - t);
|
|
@@ -229,7 +229,7 @@ function r0(n, t) {
|
|
|
229
229
|
throw new Error("Invalid component type.");
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const ga = {
|
|
233
233
|
DEG2RAD: As,
|
|
234
234
|
RAD2DEG: ha,
|
|
235
235
|
generateUUID: Vi,
|
|
@@ -237,7 +237,7 @@ const ic = {
|
|
|
237
237
|
euclideanModulo: Dm,
|
|
238
238
|
mapLinear: MW,
|
|
239
239
|
inverseLerp: FW,
|
|
240
|
-
lerp:
|
|
240
|
+
lerp: ro,
|
|
241
241
|
damp: TW,
|
|
242
242
|
pingpong: vW,
|
|
243
243
|
smoothstep: wW,
|
|
@@ -656,11 +656,11 @@ const jW = {
|
|
|
656
656
|
function Al(n, t) {
|
|
657
657
|
return new jW[n](t);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function So(n) {
|
|
660
660
|
return document.createElementNS("http://www.w3.org/1999/xhtml", n);
|
|
661
661
|
}
|
|
662
662
|
function AZ() {
|
|
663
|
-
const n =
|
|
663
|
+
const n = So("canvas");
|
|
664
664
|
return n.style.display = "block", n;
|
|
665
665
|
}
|
|
666
666
|
const o9 = {};
|
|
@@ -689,30 +689,30 @@ const c9 = /* @__PURE__ */ new d0().set(
|
|
|
689
689
|
1.0982735
|
|
690
690
|
), Hc = {
|
|
691
691
|
[he]: {
|
|
692
|
-
transfer:
|
|
693
|
-
primaries:
|
|
692
|
+
transfer: fo,
|
|
693
|
+
primaries: Ro,
|
|
694
694
|
toReference: (n) => n,
|
|
695
695
|
fromReference: (n) => n
|
|
696
696
|
},
|
|
697
697
|
[Z0]: {
|
|
698
698
|
transfer: _0,
|
|
699
|
-
primaries:
|
|
699
|
+
primaries: Ro,
|
|
700
700
|
toReference: (n) => n.convertSRGBToLinear(),
|
|
701
701
|
fromReference: (n) => n.convertLinearToSRGB()
|
|
702
702
|
},
|
|
703
|
-
[
|
|
704
|
-
transfer:
|
|
705
|
-
primaries:
|
|
703
|
+
[ic]: {
|
|
704
|
+
transfer: fo,
|
|
705
|
+
primaries: xo,
|
|
706
706
|
toReference: (n) => n.applyMatrix3(d9),
|
|
707
707
|
fromReference: (n) => n.applyMatrix3(c9)
|
|
708
708
|
},
|
|
709
709
|
[dh]: {
|
|
710
710
|
transfer: _0,
|
|
711
|
-
primaries:
|
|
711
|
+
primaries: xo,
|
|
712
712
|
toReference: (n) => n.convertSRGBToLinear().applyMatrix3(d9),
|
|
713
713
|
fromReference: (n) => n.applyMatrix3(c9).convertLinearToSRGB()
|
|
714
714
|
}
|
|
715
|
-
}, DW = /* @__PURE__ */ new Set([he,
|
|
715
|
+
}, DW = /* @__PURE__ */ new Set([he, ic]), v0 = {
|
|
716
716
|
enabled: !0,
|
|
717
717
|
_workingColorSpace: he,
|
|
718
718
|
get workingColorSpace() {
|
|
@@ -739,7 +739,7 @@ const c9 = /* @__PURE__ */ new d0().set(
|
|
|
739
739
|
return Hc[n].primaries;
|
|
740
740
|
},
|
|
741
741
|
getTransfer: function(n) {
|
|
742
|
-
return n === ai ?
|
|
742
|
+
return n === ai ? fo : Hc[n].transfer;
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
745
|
function ea(n) {
|
|
@@ -757,7 +757,7 @@ class DZ {
|
|
|
757
757
|
if (t instanceof HTMLCanvasElement)
|
|
758
758
|
e = t;
|
|
759
759
|
else {
|
|
760
|
-
Gl === void 0 && (Gl =
|
|
760
|
+
Gl === void 0 && (Gl = So("canvas")), Gl.width = t.width, Gl.height = t.height;
|
|
761
761
|
const i = Gl.getContext("2d");
|
|
762
762
|
t instanceof ImageData ? i.putImageData(t, 0, 0) : i.drawImage(t, 0, 0, t.width, t.height), e = Gl;
|
|
763
763
|
}
|
|
@@ -765,7 +765,7 @@ class DZ {
|
|
|
765
765
|
}
|
|
766
766
|
static sRGBToLinear(t) {
|
|
767
767
|
if (typeof HTMLImageElement != "undefined" && t instanceof HTMLImageElement || typeof HTMLCanvasElement != "undefined" && t instanceof HTMLCanvasElement || typeof ImageBitmap != "undefined" && t instanceof ImageBitmap) {
|
|
768
|
-
const e =
|
|
768
|
+
const e = So("canvas");
|
|
769
769
|
e.width = t.width, e.height = t.height;
|
|
770
770
|
const i = e.getContext("2d");
|
|
771
771
|
i.drawImage(t, 0, 0, t.width, t.height);
|
|
@@ -1779,7 +1779,7 @@ class Ve {
|
|
|
1779
1779
|
intersectsTriangle(t) {
|
|
1780
1780
|
if (this.isEmpty())
|
|
1781
1781
|
return !1;
|
|
1782
|
-
this.getCenter(
|
|
1782
|
+
this.getCenter(va), kc.subVectors(this.max, va), Xl.subVectors(t.a, va), Wl.subVectors(t.b, va), yl.subVectors(t.c, va), Jn.subVectors(Wl, Xl), Kn.subVectors(yl, Wl), bs.subVectors(Xl, yl);
|
|
1783
1783
|
let e = [
|
|
1784
1784
|
0,
|
|
1785
1785
|
-Jn.z,
|
|
@@ -1845,7 +1845,7 @@ const Xn = [
|
|
|
1845
1845
|
/* @__PURE__ */ new Y(),
|
|
1846
1846
|
/* @__PURE__ */ new Y(),
|
|
1847
1847
|
/* @__PURE__ */ new Y()
|
|
1848
|
-
], wi = /* @__PURE__ */ new Y(), zc = /* @__PURE__ */ new Ve(), Xl = /* @__PURE__ */ new Y(), Wl = /* @__PURE__ */ new Y(), yl = /* @__PURE__ */ new Y(), Jn = /* @__PURE__ */ new Y(), Kn = /* @__PURE__ */ new Y(), bs = /* @__PURE__ */ new Y(),
|
|
1848
|
+
], wi = /* @__PURE__ */ new Y(), zc = /* @__PURE__ */ new Ve(), Xl = /* @__PURE__ */ new Y(), Wl = /* @__PURE__ */ new Y(), yl = /* @__PURE__ */ new Y(), Jn = /* @__PURE__ */ new Y(), Kn = /* @__PURE__ */ new Y(), bs = /* @__PURE__ */ new Y(), va = /* @__PURE__ */ new Y(), kc = /* @__PURE__ */ new Y(), Jc = /* @__PURE__ */ new Y(), Zs = /* @__PURE__ */ new Y();
|
|
1849
1849
|
function jh(n, t, e, i, s) {
|
|
1850
1850
|
for (let l = 0, a = n.length - 3; l <= a; l += 3) {
|
|
1851
1851
|
Zs.fromArray(n, l);
|
|
@@ -1855,7 +1855,7 @@ function jh(n, t, e, i, s) {
|
|
|
1855
1855
|
}
|
|
1856
1856
|
return !0;
|
|
1857
1857
|
}
|
|
1858
|
-
const ty = /* @__PURE__ */ new Ve(),
|
|
1858
|
+
const ty = /* @__PURE__ */ new Ve(), wa = /* @__PURE__ */ new Y(), Dh = /* @__PURE__ */ new Y();
|
|
1859
1859
|
let Me = class {
|
|
1860
1860
|
constructor(t = new Y(), e = -1) {
|
|
1861
1861
|
this.isSphere = !0, this.center = t, this.radius = e;
|
|
@@ -1912,16 +1912,16 @@ let Me = class {
|
|
|
1912
1912
|
expandByPoint(t) {
|
|
1913
1913
|
if (this.isEmpty())
|
|
1914
1914
|
return this.center.copy(t), this.radius = 0, this;
|
|
1915
|
-
|
|
1916
|
-
const e =
|
|
1915
|
+
wa.subVectors(t, this.center);
|
|
1916
|
+
const e = wa.lengthSq();
|
|
1917
1917
|
if (e > this.radius * this.radius) {
|
|
1918
1918
|
const i = Math.sqrt(e), s = (i - this.radius) * 0.5;
|
|
1919
|
-
this.center.addScaledVector(
|
|
1919
|
+
this.center.addScaledVector(wa, s / i), this.radius += s;
|
|
1920
1920
|
}
|
|
1921
1921
|
return this;
|
|
1922
1922
|
}
|
|
1923
1923
|
union(t) {
|
|
1924
|
-
return t.isEmpty() ? this : this.isEmpty() ? (this.copy(t), this) : (this.center.equals(t.center) === !0 ? this.radius = Math.max(this.radius, t.radius) : (Dh.subVectors(t.center, this.center).setLength(t.radius), this.expandByPoint(
|
|
1924
|
+
return t.isEmpty() ? this : this.isEmpty() ? (this.copy(t), this) : (this.center.equals(t.center) === !0 ? this.radius = Math.max(this.radius, t.radius) : (Dh.subVectors(t.center, this.center).setLength(t.radius), this.expandByPoint(wa.copy(t.center).add(Dh)), this.expandByPoint(wa.copy(t.center).sub(Dh))), this);
|
|
1925
1925
|
}
|
|
1926
1926
|
equals(t) {
|
|
1927
1927
|
return t.center.equals(this.center) && t.radius === this.radius;
|
|
@@ -2401,7 +2401,7 @@ class Ut {
|
|
|
2401
2401
|
let m, p;
|
|
2402
2402
|
if (o === dn)
|
|
2403
2403
|
m = -(a + l) / (a - l), p = -2 * a * l / (a - l);
|
|
2404
|
-
else if (o ===
|
|
2404
|
+
else if (o === Co)
|
|
2405
2405
|
m = -a / (a - l), p = -a * l / (a - l);
|
|
2406
2406
|
else
|
|
2407
2407
|
throw new Error("THREE.Matrix4.makePerspective(): Invalid coordinate system: " + o);
|
|
@@ -2412,7 +2412,7 @@ class Ut {
|
|
|
2412
2412
|
let p, G;
|
|
2413
2413
|
if (o === dn)
|
|
2414
2414
|
p = (a + l) * r, G = -2 * r;
|
|
2415
|
-
else if (o ===
|
|
2415
|
+
else if (o === Co)
|
|
2416
2416
|
p = l * r, G = -1 * r;
|
|
2417
2417
|
else
|
|
2418
2418
|
throw new Error("THREE.Matrix4.makeOrthographic(): Invalid coordinate system: " + o);
|
|
@@ -2557,7 +2557,7 @@ class hh {
|
|
|
2557
2557
|
}
|
|
2558
2558
|
}
|
|
2559
2559
|
let ny = 0;
|
|
2560
|
-
const m9 = /* @__PURE__ */ new Y(), gl = /* @__PURE__ */ new B0(), yn = /* @__PURE__ */ new Ut(), Ec = /* @__PURE__ */ new Y(),
|
|
2560
|
+
const m9 = /* @__PURE__ */ new Y(), gl = /* @__PURE__ */ new B0(), yn = /* @__PURE__ */ new Ut(), Ec = /* @__PURE__ */ new Y(), Ha = /* @__PURE__ */ new Y(), sy = /* @__PURE__ */ new Y(), ly = /* @__PURE__ */ new B0(), p9 = /* @__PURE__ */ new Y(1, 0, 0), b9 = /* @__PURE__ */ new Y(0, 1, 0), Z9 = /* @__PURE__ */ new Y(0, 0, 1), G9 = { type: "added" }, ay = { type: "removed" }, fl = { type: "childadded", child: null }, $h = { type: "childremoved", child: null };
|
|
2561
2561
|
class G0 extends Fi {
|
|
2562
2562
|
constructor() {
|
|
2563
2563
|
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: ny++ }), this.uuid = Vi(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = G0.DEFAULT_UP.clone();
|
|
@@ -2659,7 +2659,7 @@ class G0 extends Fi {
|
|
|
2659
2659
|
lookAt(t, e, i) {
|
|
2660
2660
|
t.isVector3 ? Ec.copy(t) : Ec.set(t, e, i);
|
|
2661
2661
|
const s = this.parent;
|
|
2662
|
-
this.updateWorldMatrix(!0, !1),
|
|
2662
|
+
this.updateWorldMatrix(!0, !1), Ha.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? yn.lookAt(Ha, Ec, this.up) : yn.lookAt(Ec, Ha, this.up), this.quaternion.setFromRotationMatrix(yn), s && (yn.extractRotation(s.matrixWorld), gl.setFromRotationMatrix(yn), this.quaternion.premultiply(gl.invert()));
|
|
2663
2663
|
}
|
|
2664
2664
|
add(t) {
|
|
2665
2665
|
if (arguments.length > 1) {
|
|
@@ -2714,10 +2714,10 @@ class G0 extends Fi {
|
|
|
2714
2714
|
return this.updateWorldMatrix(!0, !1), t.setFromMatrixPosition(this.matrixWorld);
|
|
2715
2715
|
}
|
|
2716
2716
|
getWorldQuaternion(t) {
|
|
2717
|
-
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(
|
|
2717
|
+
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Ha, t, sy), t;
|
|
2718
2718
|
}
|
|
2719
2719
|
getWorldScale(t) {
|
|
2720
|
-
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(
|
|
2720
|
+
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(Ha, ly, t), t;
|
|
2721
2721
|
}
|
|
2722
2722
|
getWorldDirection(t) {
|
|
2723
2723
|
this.updateWorldMatrix(!0, !1);
|
|
@@ -3293,7 +3293,7 @@ let rt = class {
|
|
|
3293
3293
|
}
|
|
3294
3294
|
lerpHSL(t, e) {
|
|
3295
3295
|
this.getHSL(En), t.getHSL(Pc);
|
|
3296
|
-
const i =
|
|
3296
|
+
const i = ro(En.h, Pc.h, e), s = ro(En.s, Pc.s, e), l = ro(En.l, Pc.l, e);
|
|
3297
3297
|
return this.setHSL(i, s, l), this;
|
|
3298
3298
|
}
|
|
3299
3299
|
setFromVector3(t) {
|
|
@@ -3412,7 +3412,7 @@ class ge extends Fi {
|
|
|
3412
3412
|
}
|
|
3413
3413
|
class t0 extends ge {
|
|
3414
3414
|
constructor(t) {
|
|
3415
|
-
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new rt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ae(), this.combine =
|
|
3415
|
+
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new rt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ae(), this.combine = tc, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(t);
|
|
3416
3416
|
}
|
|
3417
3417
|
copy(t) {
|
|
3418
3418
|
return super.copy(t), this.color.copy(t.color), this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.fog = t.fog, this;
|
|
@@ -3457,19 +3457,19 @@ function ni(n) {
|
|
|
3457
3457
|
const t = xn.uint32View[0], e = t >> 23 & 511;
|
|
3458
3458
|
return xn.baseTable[e] + ((t & 8388607) >> xn.shiftTable[e]);
|
|
3459
3459
|
}
|
|
3460
|
-
function
|
|
3460
|
+
function no(n) {
|
|
3461
3461
|
const t = n >> 10;
|
|
3462
3462
|
return xn.uint32View[0] = xn.mantissaTable[xn.offsetTable[t] + (n & 1023)] + xn.exponentTable[t], xn.floatView[0];
|
|
3463
3463
|
}
|
|
3464
|
-
const
|
|
3464
|
+
const Yo = {
|
|
3465
3465
|
toHalfFloat: ni,
|
|
3466
|
-
fromHalfFloat:
|
|
3466
|
+
fromHalfFloat: no
|
|
3467
3467
|
}, Re = /* @__PURE__ */ new Y(), Qc = /* @__PURE__ */ new A();
|
|
3468
3468
|
class $t {
|
|
3469
3469
|
constructor(t, e, i = !1) {
|
|
3470
3470
|
if (Array.isArray(t))
|
|
3471
3471
|
throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
3472
|
-
this.isBufferAttribute = !0, this.name = "", this.array = t, this.itemSize = e, this.count = t !== void 0 ? t.length / e : 0, this.normalized = i, this.usage =
|
|
3472
|
+
this.isBufferAttribute = !0, this.name = "", this.array = t, this.itemSize = e, this.count = t !== void 0 ? t.length / e : 0, this.normalized = i, this.usage = Lo, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.gpuType = He, this.version = 0;
|
|
3473
3473
|
}
|
|
3474
3474
|
onUploadCallback() {
|
|
3475
3475
|
}
|
|
@@ -3584,7 +3584,7 @@ class $t {
|
|
|
3584
3584
|
array: Array.from(this.array),
|
|
3585
3585
|
normalized: this.normalized
|
|
3586
3586
|
};
|
|
3587
|
-
return this.name !== "" && (t.name = this.name), this.usage !==
|
|
3587
|
+
return this.name !== "" && (t.name = this.name), this.usage !== Lo && (t.usage = this.usage), t;
|
|
3588
3588
|
}
|
|
3589
3589
|
}
|
|
3590
3590
|
class dy extends $t {
|
|
@@ -3627,28 +3627,28 @@ class py extends $t {
|
|
|
3627
3627
|
super(new Uint16Array(t), e, i), this.isFloat16BufferAttribute = !0;
|
|
3628
3628
|
}
|
|
3629
3629
|
getX(t) {
|
|
3630
|
-
let e =
|
|
3630
|
+
let e = no(this.array[t * this.itemSize]);
|
|
3631
3631
|
return this.normalized && (e = ti(e, this.array)), e;
|
|
3632
3632
|
}
|
|
3633
3633
|
setX(t, e) {
|
|
3634
3634
|
return this.normalized && (e = r0(e, this.array)), this.array[t * this.itemSize] = ni(e), this;
|
|
3635
3635
|
}
|
|
3636
3636
|
getY(t) {
|
|
3637
|
-
let e =
|
|
3637
|
+
let e = no(this.array[t * this.itemSize + 1]);
|
|
3638
3638
|
return this.normalized && (e = ti(e, this.array)), e;
|
|
3639
3639
|
}
|
|
3640
3640
|
setY(t, e) {
|
|
3641
3641
|
return this.normalized && (e = r0(e, this.array)), this.array[t * this.itemSize + 1] = ni(e), this;
|
|
3642
3642
|
}
|
|
3643
3643
|
getZ(t) {
|
|
3644
|
-
let e =
|
|
3644
|
+
let e = no(this.array[t * this.itemSize + 2]);
|
|
3645
3645
|
return this.normalized && (e = ti(e, this.array)), e;
|
|
3646
3646
|
}
|
|
3647
3647
|
setZ(t, e) {
|
|
3648
3648
|
return this.normalized && (e = r0(e, this.array)), this.array[t * this.itemSize + 2] = ni(e), this;
|
|
3649
3649
|
}
|
|
3650
3650
|
getW(t) {
|
|
3651
|
-
let e =
|
|
3651
|
+
let e = no(this.array[t * this.itemSize + 3]);
|
|
3652
3652
|
return this.normalized && (e = ti(e, this.array)), e;
|
|
3653
3653
|
}
|
|
3654
3654
|
setW(t, e) {
|
|
@@ -3670,7 +3670,7 @@ class kt extends $t {
|
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
3672
|
let by = 0;
|
|
3673
|
-
const xi = /* @__PURE__ */ new Ut(), lu = /* @__PURE__ */ new G0(), Ll = /* @__PURE__ */ new Y(), pi = /* @__PURE__ */ new Ve(),
|
|
3673
|
+
const xi = /* @__PURE__ */ new Ut(), lu = /* @__PURE__ */ new G0(), Ll = /* @__PURE__ */ new Y(), pi = /* @__PURE__ */ new Ve(), za = /* @__PURE__ */ new Ve(), Ne = /* @__PURE__ */ new Y();
|
|
3674
3674
|
class At extends Fi {
|
|
3675
3675
|
constructor() {
|
|
3676
3676
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: by++ }), this.uuid = Vi(), 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 = {};
|
|
@@ -3781,7 +3781,7 @@ class At extends Fi {
|
|
|
3781
3781
|
if (pi.setFromBufferAttribute(t), e)
|
|
3782
3782
|
for (let l = 0, a = e.length; l < a; l++) {
|
|
3783
3783
|
const o = e[l];
|
|
3784
|
-
|
|
3784
|
+
za.setFromBufferAttribute(o), this.morphTargetsRelative ? (Ne.addVectors(pi.min, za.min), pi.expandByPoint(Ne), Ne.addVectors(pi.max, za.max), pi.expandByPoint(Ne)) : (pi.expandByPoint(za.min), pi.expandByPoint(za.max));
|
|
3785
3785
|
}
|
|
3786
3786
|
pi.getCenter(i);
|
|
3787
3787
|
let s = 0;
|
|
@@ -4216,7 +4216,7 @@ class j0 extends ge {
|
|
|
4216
4216
|
return Object.keys(i).length > 0 && (e.extensions = i), e;
|
|
4217
4217
|
}
|
|
4218
4218
|
}
|
|
4219
|
-
class
|
|
4219
|
+
class fa extends G0 {
|
|
4220
4220
|
constructor() {
|
|
4221
4221
|
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new Ut(), this.projectionMatrix = new Ut(), this.projectionMatrixInverse = new Ut(), this.coordinateSystem = dn;
|
|
4222
4222
|
}
|
|
@@ -4237,7 +4237,7 @@ class ga extends G0 {
|
|
|
4237
4237
|
}
|
|
4238
4238
|
}
|
|
4239
4239
|
const Pn = /* @__PURE__ */ new Y(), R9 = /* @__PURE__ */ new A(), x9 = /* @__PURE__ */ new A();
|
|
4240
|
-
class $0 extends
|
|
4240
|
+
class $0 extends fa {
|
|
4241
4241
|
constructor(t = 50, e = 1, i = 0.1, s = 2e3) {
|
|
4242
4242
|
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();
|
|
4243
4243
|
}
|
|
@@ -4376,7 +4376,7 @@ class $Z extends G0 {
|
|
|
4376
4376
|
this.remove(d);
|
|
4377
4377
|
if (t === dn)
|
|
4378
4378
|
i.up.set(0, 1, 0), i.lookAt(1, 0, 0), s.up.set(0, 1, 0), s.lookAt(-1, 0, 0), l.up.set(0, 0, -1), l.lookAt(0, 1, 0), a.up.set(0, 0, 1), a.lookAt(0, -1, 0), o.up.set(0, 1, 0), o.lookAt(0, 0, 1), c.up.set(0, 1, 0), c.lookAt(0, 0, -1);
|
|
4379
|
-
else if (t ===
|
|
4379
|
+
else if (t === Co)
|
|
4380
4380
|
i.up.set(0, -1, 0), i.lookAt(-1, 0, 0), s.up.set(0, -1, 0), s.lookAt(1, 0, 0), l.up.set(0, 0, 1), l.lookAt(0, 1, 0), a.up.set(0, 0, -1), a.lookAt(0, -1, 0), o.up.set(0, -1, 0), o.lookAt(0, 0, 1), c.up.set(0, -1, 0), c.lookAt(0, 0, -1);
|
|
4381
4381
|
else
|
|
4382
4382
|
throw new Error("THREE.CubeCamera.updateCoordinateSystem(): Invalid coordinate system: " + t);
|
|
@@ -4568,7 +4568,7 @@ class lc {
|
|
|
4568
4568
|
const i = this.planes, s = t.elements, l = s[0], a = s[1], o = s[2], c = s[3], d = s[4], h = s[5], r = s[6], u = s[7], m = s[8], p = s[9], G = s[10], b = s[11], Z = s[12], W = s[13], X = s[14], y = s[15];
|
|
4569
4569
|
if (i[0].setComponents(c - l, u - d, b - m, y - Z).normalize(), i[1].setComponents(c + l, u + d, b + m, y + Z).normalize(), i[2].setComponents(c + a, u + h, b + p, y + W).normalize(), i[3].setComponents(c - a, u - h, b - p, y - W).normalize(), i[4].setComponents(c - o, u - r, b - G, y - X).normalize(), e === dn)
|
|
4570
4570
|
i[5].setComponents(c + o, u + r, b + G, y + X).normalize();
|
|
4571
|
-
else if (e ===
|
|
4571
|
+
else if (e === Co)
|
|
4572
4572
|
i[5].setComponents(o, r, G, X).normalize();
|
|
4573
4573
|
else
|
|
4574
4574
|
throw new Error("THREE.Frustum.setFromProjectionMatrix(): Invalid coordinate system: " + e);
|
|
@@ -9331,7 +9331,7 @@ function df(n) {
|
|
|
9331
9331
|
dispose: l
|
|
9332
9332
|
};
|
|
9333
9333
|
}
|
|
9334
|
-
class ac extends
|
|
9334
|
+
class ac extends fa {
|
|
9335
9335
|
constructor(t = -1, e = 1, i = 1, s = -1, l = 0.1, a = 2e3) {
|
|
9336
9336
|
super(), this.isOrthographicCamera = !0, this.type = "OrthographicCamera", this.zoom = 1, this.view = null, this.left = t, this.right = e, this.top = i, this.bottom = s, this.near = l, this.far = a, this.updateProjectionMatrix();
|
|
9337
9337
|
}
|
|
@@ -10151,7 +10151,7 @@ class uh extends U0 {
|
|
|
10151
10151
|
const i3 = /* @__PURE__ */ new U0(), n3 = /* @__PURE__ */ new uh(1, 1);
|
|
10152
10152
|
n3.compareFunction = jm;
|
|
10153
10153
|
const s3 = /* @__PURE__ */ new rh(), l3 = /* @__PURE__ */ new Om(), a3 = /* @__PURE__ */ new sc(), M9 = [], F9 = [], T9 = new Float32Array(16), v9 = new Float32Array(9), w9 = new Float32Array(4);
|
|
10154
|
-
function
|
|
10154
|
+
function Ra(n, t, e) {
|
|
10155
10155
|
const i = n[0];
|
|
10156
10156
|
if (i <= 0 || i > 0)
|
|
10157
10157
|
return n;
|
|
@@ -10403,27 +10403,27 @@ function kf(n, t) {
|
|
|
10403
10403
|
n.uniform1fv(this.addr, t);
|
|
10404
10404
|
}
|
|
10405
10405
|
function Jf(n, t) {
|
|
10406
|
-
const e =
|
|
10406
|
+
const e = Ra(t, this.size, 2);
|
|
10407
10407
|
n.uniform2fv(this.addr, e);
|
|
10408
10408
|
}
|
|
10409
10409
|
function Kf(n, t) {
|
|
10410
|
-
const e =
|
|
10410
|
+
const e = Ra(t, this.size, 3);
|
|
10411
10411
|
n.uniform3fv(this.addr, e);
|
|
10412
10412
|
}
|
|
10413
10413
|
function Uf(n, t) {
|
|
10414
|
-
const e =
|
|
10414
|
+
const e = Ra(t, this.size, 4);
|
|
10415
10415
|
n.uniform4fv(this.addr, e);
|
|
10416
10416
|
}
|
|
10417
10417
|
function Bf(n, t) {
|
|
10418
|
-
const e =
|
|
10418
|
+
const e = Ra(t, this.size, 4);
|
|
10419
10419
|
n.uniformMatrix2fv(this.addr, !1, e);
|
|
10420
10420
|
}
|
|
10421
10421
|
function Ef(n, t) {
|
|
10422
|
-
const e =
|
|
10422
|
+
const e = Ra(t, this.size, 9);
|
|
10423
10423
|
n.uniformMatrix3fv(this.addr, !1, e);
|
|
10424
10424
|
}
|
|
10425
10425
|
function Pf(n, t) {
|
|
10426
|
-
const e =
|
|
10426
|
+
const e = Ra(t, this.size, 16);
|
|
10427
10427
|
n.uniformMatrix4fv(this.addr, !1, e);
|
|
10428
10428
|
}
|
|
10429
10429
|
function Qf(n, t) {
|
|
@@ -10624,9 +10624,9 @@ function h4(n, t) {
|
|
|
10624
10624
|
function u4(n) {
|
|
10625
10625
|
const t = v0.getPrimaries(v0.workingColorSpace), e = v0.getPrimaries(n);
|
|
10626
10626
|
let i;
|
|
10627
|
-
switch (t === e ? i = "" : t ===
|
|
10627
|
+
switch (t === e ? i = "" : t === xo && e === Ro ? i = "LinearDisplayP3ToLinearSRGB" : t === Ro && e === xo && (i = "LinearSRGBToLinearDisplayP3"), n) {
|
|
10628
10628
|
case he:
|
|
10629
|
-
case
|
|
10629
|
+
case ic:
|
|
10630
10630
|
return [i, "LinearTransferOETF"];
|
|
10631
10631
|
case Z0:
|
|
10632
10632
|
case dh:
|
|
@@ -10687,7 +10687,7 @@ function b4(n) {
|
|
|
10687
10687
|
return [
|
|
10688
10688
|
n.extensionClipCullDistance ? "#extension GL_ANGLE_clip_cull_distance : require" : "",
|
|
10689
10689
|
n.extensionMultiDraw ? "#extension GL_ANGLE_multi_draw : require" : ""
|
|
10690
|
-
].filter(
|
|
10690
|
+
].filter(so).join(`
|
|
10691
10691
|
`);
|
|
10692
10692
|
}
|
|
10693
10693
|
function Z4(n) {
|
|
@@ -10712,7 +10712,7 @@ function G4(n, t) {
|
|
|
10712
10712
|
}
|
|
10713
10713
|
return e;
|
|
10714
10714
|
}
|
|
10715
|
-
function
|
|
10715
|
+
function so(n) {
|
|
10716
10716
|
return n !== "";
|
|
10717
10717
|
}
|
|
10718
10718
|
function J9(n, t) {
|
|
@@ -10804,7 +10804,7 @@ function L4(n) {
|
|
|
10804
10804
|
let t = "ENVMAP_BLENDING_NONE";
|
|
10805
10805
|
if (n.envMap)
|
|
10806
10806
|
switch (n.combine) {
|
|
10807
|
-
case
|
|
10807
|
+
case tc:
|
|
10808
10808
|
t = "ENVMAP_BLENDING_MULTIPLY";
|
|
10809
10809
|
break;
|
|
10810
10810
|
case pZ:
|
|
@@ -10833,13 +10833,13 @@ function S4(n, t, e, i) {
|
|
|
10833
10833
|
"#define SHADER_TYPE " + e.shaderType,
|
|
10834
10834
|
"#define SHADER_NAME " + e.shaderName,
|
|
10835
10835
|
p
|
|
10836
|
-
].filter(
|
|
10836
|
+
].filter(so).join(`
|
|
10837
10837
|
`), b.length > 0 && (b += `
|
|
10838
10838
|
`), Z = [
|
|
10839
10839
|
"#define SHADER_TYPE " + e.shaderType,
|
|
10840
10840
|
"#define SHADER_NAME " + e.shaderName,
|
|
10841
10841
|
p
|
|
10842
|
-
].filter(
|
|
10842
|
+
].filter(so).join(`
|
|
10843
10843
|
`), Z.length > 0 && (Z += `
|
|
10844
10844
|
`)) : (b = [
|
|
10845
10845
|
B9(e),
|
|
@@ -10990,7 +10990,7 @@ function S4(n, t, e, i) {
|
|
|
10990
10990
|
"#endif",
|
|
10991
10991
|
`
|
|
10992
10992
|
`
|
|
10993
|
-
].filter(
|
|
10993
|
+
].filter(so).join(`
|
|
10994
10994
|
`), Z = [
|
|
10995
10995
|
B9(e),
|
|
10996
10996
|
"#define SHADER_TYPE " + e.shaderType,
|
|
@@ -11072,7 +11072,7 @@ function S4(n, t, e, i) {
|
|
|
11072
11072
|
e.useDepthPacking ? "#define DEPTH_PACKING " + e.depthPacking : "",
|
|
11073
11073
|
`
|
|
11074
11074
|
`
|
|
11075
|
-
].filter(
|
|
11075
|
+
].filter(so).join(`
|
|
11076
11076
|
`)), a = J1(a), a = J9(a, e), a = K9(a, e), o = J1(o), o = J9(o, e), o = K9(o, e), a = U9(a), o = U9(o), e.isRawShaderMaterial !== !0 && (W = `#version 300 es
|
|
11077
11077
|
`, b = [
|
|
11078
11078
|
m,
|
|
@@ -11981,7 +11981,7 @@ function P4(n) {
|
|
|
11981
11981
|
case oa:
|
|
11982
11982
|
n.depthFunc(n.LEQUAL);
|
|
11983
11983
|
break;
|
|
11984
|
-
case
|
|
11984
|
+
case Vo:
|
|
11985
11985
|
n.depthFunc(n.EQUAL);
|
|
11986
11986
|
break;
|
|
11987
11987
|
case Hm:
|
|
@@ -12114,7 +12114,7 @@ function P4(n) {
|
|
|
12114
12114
|
case ji:
|
|
12115
12115
|
n.blendFuncSeparate(n.ONE, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
|
|
12116
12116
|
break;
|
|
12117
|
-
case
|
|
12117
|
+
case yo:
|
|
12118
12118
|
n.blendFunc(n.ONE, n.ONE);
|
|
12119
12119
|
break;
|
|
12120
12120
|
case d1:
|
|
@@ -12132,7 +12132,7 @@ function P4(n) {
|
|
|
12132
12132
|
case ji:
|
|
12133
12133
|
n.blendFuncSeparate(n.SRC_ALPHA, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
|
|
12134
12134
|
break;
|
|
12135
|
-
case
|
|
12135
|
+
case yo:
|
|
12136
12136
|
n.blendFunc(n.SRC_ALPHA, n.ONE);
|
|
12137
12137
|
break;
|
|
12138
12138
|
case d1:
|
|
@@ -12325,7 +12325,7 @@ function Q4(n, t, e, i, s, l, a) {
|
|
|
12325
12325
|
return m ? (
|
|
12326
12326
|
// eslint-disable-next-line compat/compat
|
|
12327
12327
|
new OffscreenCanvas(M, S)
|
|
12328
|
-
) :
|
|
12328
|
+
) : So("canvas");
|
|
12329
12329
|
}
|
|
12330
12330
|
function G(M, S, J) {
|
|
12331
12331
|
let tt = 1;
|
|
@@ -12354,7 +12354,7 @@ function Q4(n, t, e, i, s, l, a) {
|
|
|
12354
12354
|
}
|
|
12355
12355
|
let ct = S;
|
|
12356
12356
|
if (S === n.RED && (J === n.FLOAT && (ct = n.R32F), J === n.HALF_FLOAT && (ct = n.R16F), J === n.UNSIGNED_BYTE && (ct = n.R8)), S === n.RED_INTEGER && (J === n.UNSIGNED_BYTE && (ct = n.R8UI), J === n.UNSIGNED_SHORT && (ct = n.R16UI), J === n.UNSIGNED_INT && (ct = n.R32UI), J === n.BYTE && (ct = n.R8I), J === n.SHORT && (ct = n.R16I), J === n.INT && (ct = n.R32I)), S === n.RG && (J === n.FLOAT && (ct = n.RG32F), J === n.HALF_FLOAT && (ct = n.RG16F), J === n.UNSIGNED_BYTE && (ct = n.RG8)), S === n.RG_INTEGER && (J === n.UNSIGNED_BYTE && (ct = n.RG8UI), J === n.UNSIGNED_SHORT && (ct = n.RG16UI), J === n.UNSIGNED_INT && (ct = n.RG32UI), J === n.BYTE && (ct = n.RG8I), J === n.SHORT && (ct = n.RG16I), J === n.INT && (ct = n.RG32I)), S === n.RGB && J === n.UNSIGNED_INT_5_9_9_9_REV && (ct = n.RGB9_E5), S === n.RGBA) {
|
|
12357
|
-
const Ht = at ?
|
|
12357
|
+
const Ht = at ? fo : v0.getTransfer(tt);
|
|
12358
12358
|
J === n.FLOAT && (ct = n.RGBA32F), J === n.HALF_FLOAT && (ct = n.RGBA16F), J === n.UNSIGNED_BYTE && (ct = Ht === _0 ? n.SRGB8_ALPHA8 : n.RGBA8), J === n.UNSIGNED_SHORT_4_4_4_4 && (ct = n.RGBA4), J === n.UNSIGNED_SHORT_5_5_5_1 && (ct = n.RGB5_A1);
|
|
12359
12359
|
}
|
|
12360
12360
|
return (ct === n.R16F || ct === n.R32F || ct === n.RG16F || ct === n.RG32F || ct === n.RGBA16F || ct === n.RGBA32F) && t.get("EXT_color_buffer_float"), ct;
|
|
@@ -12473,7 +12473,7 @@ function Q4(n, t, e, i, s, l, a) {
|
|
|
12473
12473
|
[Os]: n.MIRRORED_REPEAT
|
|
12474
12474
|
}, E = {
|
|
12475
12475
|
[J0]: n.NEAREST,
|
|
12476
|
-
[
|
|
12476
|
+
[ec]: n.NEAREST_MIPMAP_NEAREST,
|
|
12477
12477
|
[ss]: n.NEAREST_MIPMAP_LINEAR,
|
|
12478
12478
|
[Y0]: n.LINEAR,
|
|
12479
12479
|
[Ps]: n.LINEAR_MIPMAP_NEAREST,
|
|
@@ -14011,7 +14011,7 @@ class d3 {
|
|
|
14011
14011
|
set outputColorSpace(t) {
|
|
14012
14012
|
this._outputColorSpace = t;
|
|
14013
14013
|
const e = this.getContext();
|
|
14014
|
-
e.drawingBufferColorSpace = t === dh ? "display-p3" : "srgb", e.unpackColorSpace = v0.workingColorSpace ===
|
|
14014
|
+
e.drawingBufferColorSpace = t === dh ? "display-p3" : "srgb", e.unpackColorSpace = v0.workingColorSpace === ic ? "display-p3" : "srgb";
|
|
14015
14015
|
}
|
|
14016
14016
|
get useLegacyLights() {
|
|
14017
14017
|
return console.warn("THREE.WebGLRenderer: The property .useLegacyLights has been deprecated. Migrate your lighting according to the following guide: https://discourse.threejs.org/t/updates-to-lighting-in-three-js-r155/53733."), this._useLegacyLights;
|
|
@@ -14067,7 +14067,7 @@ class $s extends G0 {
|
|
|
14067
14067
|
}
|
|
14068
14068
|
class oc {
|
|
14069
14069
|
constructor(t, e) {
|
|
14070
|
-
this.isInterleavedBuffer = !0, this.array = t, this.stride = e, this.count = t !== void 0 ? t.length / e : 0, this.usage =
|
|
14070
|
+
this.isInterleavedBuffer = !0, this.array = t, this.stride = e, this.count = t !== void 0 ? t.length / e : 0, this.usage = Lo, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.version = 0, this.uuid = Vi();
|
|
14071
14071
|
}
|
|
14072
14072
|
onUploadCallback() {
|
|
14073
14073
|
}
|
|
@@ -14226,7 +14226,7 @@ class cs {
|
|
|
14226
14226
|
};
|
|
14227
14227
|
}
|
|
14228
14228
|
}
|
|
14229
|
-
class
|
|
14229
|
+
class xa extends ge {
|
|
14230
14230
|
constructor(t) {
|
|
14231
14231
|
super(), this.isSpriteMaterial = !0, this.type = "SpriteMaterial", this.color = new rt(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.fog = !0, this.setValues(t);
|
|
14232
14232
|
}
|
|
@@ -14235,9 +14235,9 @@ class Ra extends ge {
|
|
|
14235
14235
|
}
|
|
14236
14236
|
}
|
|
14237
14237
|
let Fl;
|
|
14238
|
-
const
|
|
14238
|
+
const ka = /* @__PURE__ */ new Y(), Tl = /* @__PURE__ */ new Y(), vl = /* @__PURE__ */ new Y(), wl = /* @__PURE__ */ new A(), Ja = /* @__PURE__ */ new A(), r3 = /* @__PURE__ */ new Ut(), sd = /* @__PURE__ */ new Y(), Ka = /* @__PURE__ */ new Y(), ld = /* @__PURE__ */ new Y(), A9 = /* @__PURE__ */ new A(), bu = /* @__PURE__ */ new A(), j9 = /* @__PURE__ */ new A();
|
|
14239
14239
|
let e2 = class extends G0 {
|
|
14240
|
-
constructor(t = new
|
|
14240
|
+
constructor(t = new xa()) {
|
|
14241
14241
|
if (super(), this.isSprite = !0, this.type = "Sprite", Fl === void 0) {
|
|
14242
14242
|
Fl = new At();
|
|
14243
14243
|
const e = new Float32Array([
|
|
@@ -14272,15 +14272,15 @@ let e2 = class extends G0 {
|
|
|
14272
14272
|
let s, l;
|
|
14273
14273
|
i !== 0 && (l = Math.cos(i), s = Math.sin(i));
|
|
14274
14274
|
const a = this.center;
|
|
14275
|
-
ad(sd.set(-0.5, -0.5, 0), vl, a, Tl, s, l), ad(
|
|
14276
|
-
let o = t.ray.intersectTriangle(sd,
|
|
14277
|
-
if (o === null && (ad(
|
|
14275
|
+
ad(sd.set(-0.5, -0.5, 0), vl, a, Tl, s, l), ad(Ka.set(0.5, -0.5, 0), vl, a, Tl, s, l), ad(ld.set(0.5, 0.5, 0), vl, a, Tl, s, l), A9.set(0, 0), bu.set(1, 0), j9.set(1, 1);
|
|
14276
|
+
let o = t.ray.intersectTriangle(sd, Ka, ld, !1, ka);
|
|
14277
|
+
if (o === null && (ad(Ka.set(-0.5, 0.5, 0), vl, a, Tl, s, l), bu.set(0, 1), o = t.ray.intersectTriangle(sd, ld, Ka, !1, ka), o === null))
|
|
14278
14278
|
return;
|
|
14279
|
-
const c = t.ray.origin.distanceTo(
|
|
14279
|
+
const c = t.ray.origin.distanceTo(ka);
|
|
14280
14280
|
c < t.near || c > t.far || e.push({
|
|
14281
14281
|
distance: c,
|
|
14282
|
-
point:
|
|
14283
|
-
uv: Wi.getInterpolation(
|
|
14282
|
+
point: ka.clone(),
|
|
14283
|
+
uv: Wi.getInterpolation(ka, sd, Ka, ld, A9, bu, j9, new A()),
|
|
14284
14284
|
face: null,
|
|
14285
14285
|
object: this
|
|
14286
14286
|
});
|
|
@@ -14290,7 +14290,7 @@ let e2 = class extends G0 {
|
|
|
14290
14290
|
}
|
|
14291
14291
|
};
|
|
14292
14292
|
function ad(n, t, e, i, s, l) {
|
|
14293
|
-
wl.subVectors(n, e).addScalar(0.5).multiply(i), s !== void 0 ? (
|
|
14293
|
+
wl.subVectors(n, e).addScalar(0.5).multiply(i), s !== void 0 ? (Ja.x = l * wl.x - s * wl.y, Ja.y = s * wl.x + l * wl.y) : Ja.copy(wl), n.copy(t), n.x += Ja.x, n.y += Ja.y, n.applyMatrix4(r3);
|
|
14294
14294
|
}
|
|
14295
14295
|
const od = /* @__PURE__ */ new Y(), D9 = /* @__PURE__ */ new Y();
|
|
14296
14296
|
class h3 extends G0 {
|
|
@@ -14550,8 +14550,8 @@ class tl extends $t {
|
|
|
14550
14550
|
return t.meshPerAttribute = this.meshPerAttribute, t.isInstancedBufferAttribute = !0, t;
|
|
14551
14551
|
}
|
|
14552
14552
|
}
|
|
14553
|
-
const Hl = /* @__PURE__ */ new Ut(), ip = /* @__PURE__ */ new Ut(), dd = [], np = /* @__PURE__ */ new Ve(), nR = /* @__PURE__ */ new Ut(),
|
|
14554
|
-
class
|
|
14553
|
+
const Hl = /* @__PURE__ */ new Ut(), ip = /* @__PURE__ */ new Ut(), dd = [], np = /* @__PURE__ */ new Ve(), nR = /* @__PURE__ */ new Ut(), Ua = /* @__PURE__ */ new yt(), Ba = /* @__PURE__ */ new Me();
|
|
14554
|
+
class No extends yt {
|
|
14555
14555
|
constructor(t, e, i) {
|
|
14556
14556
|
super(t, e), this.isInstancedMesh = !0, this.instanceMatrix = new tl(new Float32Array(i * 16), 16), this.instanceColor = null, this.morphTexture = null, this.count = i, this.boundingBox = null, this.boundingSphere = null;
|
|
14557
14557
|
for (let s = 0; s < i; s++)
|
|
@@ -14567,7 +14567,7 @@ class Yo extends yt {
|
|
|
14567
14567
|
const t = this.geometry, e = this.count;
|
|
14568
14568
|
this.boundingSphere === null && (this.boundingSphere = new Me()), t.boundingSphere === null && t.computeBoundingSphere(), this.boundingSphere.makeEmpty();
|
|
14569
14569
|
for (let i = 0; i < e; i++)
|
|
14570
|
-
this.getMatrixAt(i, Hl),
|
|
14570
|
+
this.getMatrixAt(i, Hl), Ba.copy(t.boundingSphere).applyMatrix4(Hl), this.boundingSphere.union(Ba);
|
|
14571
14571
|
}
|
|
14572
14572
|
copy(t, e) {
|
|
14573
14573
|
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;
|
|
@@ -14585,9 +14585,9 @@ class Yo extends yt {
|
|
|
14585
14585
|
}
|
|
14586
14586
|
raycast(t, e) {
|
|
14587
14587
|
const i = this.matrixWorld, s = this.count;
|
|
14588
|
-
if (
|
|
14588
|
+
if (Ua.geometry = this.geometry, Ua.material = this.material, Ua.material !== void 0 && (this.boundingSphere === null && this.computeBoundingSphere(), Ba.copy(this.boundingSphere), Ba.applyMatrix4(i), t.ray.intersectsSphere(Ba) !== !1))
|
|
14589
14589
|
for (let l = 0; l < s; l++) {
|
|
14590
|
-
this.getMatrixAt(l, Hl), ip.multiplyMatrices(i, Hl),
|
|
14590
|
+
this.getMatrixAt(l, Hl), ip.multiplyMatrices(i, Hl), Ua.matrixWorld = ip, Ua.raycast(t, dd);
|
|
14591
14591
|
for (let a = 0, o = dd.length; a < o; a++) {
|
|
14592
14592
|
const c = dd[a];
|
|
14593
14593
|
c.instanceId = l, c.object = this, e.push(c);
|
|
@@ -14641,7 +14641,7 @@ class aR {
|
|
|
14641
14641
|
this.list.length = 0, this.index = 0;
|
|
14642
14642
|
}
|
|
14643
14643
|
}
|
|
14644
|
-
const zl = "batchId", Qn = /* @__PURE__ */ new Ut(), sp = /* @__PURE__ */ new Ut(), oR = /* @__PURE__ */ new Ut(), lp = /* @__PURE__ */ new Ut(), Xu = /* @__PURE__ */ new lc(), rd = /* @__PURE__ */ new Ve(), Vs = /* @__PURE__ */ new Me(),
|
|
14644
|
+
const zl = "batchId", Qn = /* @__PURE__ */ new Ut(), sp = /* @__PURE__ */ new Ut(), oR = /* @__PURE__ */ new Ut(), lp = /* @__PURE__ */ new Ut(), Xu = /* @__PURE__ */ new lc(), rd = /* @__PURE__ */ new Ve(), Vs = /* @__PURE__ */ new Me(), Ea = /* @__PURE__ */ new Y(), Wu = /* @__PURE__ */ new aR(), Be = /* @__PURE__ */ new yt(), hd = [];
|
|
14645
14645
|
function cR(n, t, e = 0) {
|
|
14646
14646
|
const i = t.itemSize;
|
|
14647
14647
|
if (n.isInterleavedBufferAttribute || n.array.constructor !== t.array.constructor) {
|
|
@@ -14801,7 +14801,7 @@ class u3 extends yt {
|
|
|
14801
14801
|
const o = a.index, c = a.attributes.position, d = this._drawRanges[t];
|
|
14802
14802
|
for (let h = d.start, r = d.start + d.count; h < r; h++) {
|
|
14803
14803
|
let u = h;
|
|
14804
|
-
o && (u = o.getX(u)), l.expandByPoint(
|
|
14804
|
+
o && (u = o.getX(u)), l.expandByPoint(Ea.fromBufferAttribute(c, u));
|
|
14805
14805
|
}
|
|
14806
14806
|
s.boxInitialized = !0;
|
|
14807
14807
|
}
|
|
@@ -14818,7 +14818,7 @@ class u3 extends yt {
|
|
|
14818
14818
|
let h = 0;
|
|
14819
14819
|
for (let r = d.start, u = d.start + d.count; r < u; r++) {
|
|
14820
14820
|
let m = r;
|
|
14821
|
-
o && (m = o.getX(m)),
|
|
14821
|
+
o && (m = o.getX(m)), Ea.fromBufferAttribute(c, m), h = Math.max(h, l.center.distanceToSquared(Ea));
|
|
14822
14822
|
}
|
|
14823
14823
|
l.radius = Math.sqrt(h), s.sphereInitialized = !0;
|
|
14824
14824
|
}
|
|
@@ -14877,13 +14877,13 @@ class u3 extends yt {
|
|
|
14877
14877
|
));
|
|
14878
14878
|
let p = 0;
|
|
14879
14879
|
if (this.sortObjects) {
|
|
14880
|
-
sp.copy(this.matrixWorld).invert(),
|
|
14880
|
+
sp.copy(this.matrixWorld).invert(), Ea.setFromMatrixPosition(i.matrixWorld).applyMatrix4(sp);
|
|
14881
14881
|
for (let Z = 0, W = d.length; Z < W; Z++)
|
|
14882
14882
|
if (d[Z] && c[Z]) {
|
|
14883
14883
|
this.getMatrixAt(Z, Qn), this.getBoundingSphereAt(Z, Vs).applyMatrix4(Qn);
|
|
14884
14884
|
let X = !1;
|
|
14885
14885
|
if (m && (X = !Xu.intersectsSphere(Vs)), !X) {
|
|
14886
|
-
const y =
|
|
14886
|
+
const y = Ea.distanceTo(Vs.center);
|
|
14887
14887
|
Wu.push(u[Z], y);
|
|
14888
14888
|
}
|
|
14889
14889
|
}
|
|
@@ -14917,7 +14917,7 @@ class ve extends ge {
|
|
|
14917
14917
|
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;
|
|
14918
14918
|
}
|
|
14919
14919
|
}
|
|
14920
|
-
const Xr = /* @__PURE__ */ new Y(), Wr = /* @__PURE__ */ new Y(), ap = /* @__PURE__ */ new Ut(),
|
|
14920
|
+
const Xr = /* @__PURE__ */ new Y(), Wr = /* @__PURE__ */ new Y(), ap = /* @__PURE__ */ new Ut(), Pa = /* @__PURE__ */ new dl(), ud = /* @__PURE__ */ new Me(), yu = /* @__PURE__ */ new Y(), op = /* @__PURE__ */ new Y();
|
|
14921
14921
|
class Ie extends G0 {
|
|
14922
14922
|
constructor(t = new At(), e = new ve()) {
|
|
14923
14923
|
super(), this.isLine = !0, this.type = "Line", this.geometry = t, this.material = e, this.updateMorphTargets();
|
|
@@ -14940,26 +14940,26 @@ class Ie extends G0 {
|
|
|
14940
14940
|
const i = this.geometry, s = this.matrixWorld, l = t.params.Line.threshold, a = i.drawRange;
|
|
14941
14941
|
if (i.boundingSphere === null && i.computeBoundingSphere(), ud.copy(i.boundingSphere), ud.applyMatrix4(s), ud.radius += l, t.ray.intersectsSphere(ud) === !1)
|
|
14942
14942
|
return;
|
|
14943
|
-
ap.copy(s).invert(),
|
|
14943
|
+
ap.copy(s).invert(), Pa.copy(t.ray).applyMatrix4(ap);
|
|
14944
14944
|
const o = l / ((this.scale.x + this.scale.y + this.scale.z) / 3), c = o * o, d = this.isLineSegments ? 2 : 1, h = i.index, u = i.attributes.position;
|
|
14945
14945
|
if (h !== null) {
|
|
14946
14946
|
const m = Math.max(0, a.start), p = Math.min(h.count, a.start + a.count);
|
|
14947
14947
|
for (let G = m, b = p - 1; G < b; G += d) {
|
|
14948
|
-
const Z = h.getX(G), W = h.getX(G + 1), X = md(this, t,
|
|
14948
|
+
const Z = h.getX(G), W = h.getX(G + 1), X = md(this, t, Pa, c, Z, W);
|
|
14949
14949
|
X && e.push(X);
|
|
14950
14950
|
}
|
|
14951
14951
|
if (this.isLineLoop) {
|
|
14952
|
-
const G = h.getX(p - 1), b = h.getX(m), Z = md(this, t,
|
|
14952
|
+
const G = h.getX(p - 1), b = h.getX(m), Z = md(this, t, Pa, c, G, b);
|
|
14953
14953
|
Z && e.push(Z);
|
|
14954
14954
|
}
|
|
14955
14955
|
} else {
|
|
14956
14956
|
const m = Math.max(0, a.start), p = Math.min(u.count, a.start + a.count);
|
|
14957
14957
|
for (let G = m, b = p - 1; G < b; G += d) {
|
|
14958
|
-
const Z = md(this, t,
|
|
14958
|
+
const Z = md(this, t, Pa, c, G, G + 1);
|
|
14959
14959
|
Z && e.push(Z);
|
|
14960
14960
|
}
|
|
14961
14961
|
if (this.isLineLoop) {
|
|
14962
|
-
const G = md(this, t,
|
|
14962
|
+
const G = md(this, t, Pa, c, p - 1, m);
|
|
14963
14963
|
G && e.push(G);
|
|
14964
14964
|
}
|
|
14965
14965
|
}
|
|
@@ -15381,7 +15381,7 @@ function mR(n, t) {
|
|
|
15381
15381
|
function pR(n, t) {
|
|
15382
15382
|
return n * n * t;
|
|
15383
15383
|
}
|
|
15384
|
-
function
|
|
15384
|
+
function ho(n, t, e, i) {
|
|
15385
15385
|
return uR(n, t) + mR(n, e) + pR(n, i);
|
|
15386
15386
|
}
|
|
15387
15387
|
function bR(n, t) {
|
|
@@ -15398,7 +15398,7 @@ function GR(n, t) {
|
|
|
15398
15398
|
function XR(n, t) {
|
|
15399
15399
|
return n * n * n * t;
|
|
15400
15400
|
}
|
|
15401
|
-
function
|
|
15401
|
+
function uo(n, t, e, i, s) {
|
|
15402
15402
|
return bR(n, t) + ZR(n, e) + GR(n, i) + XR(n, s);
|
|
15403
15403
|
}
|
|
15404
15404
|
class a2 extends _i {
|
|
@@ -15408,8 +15408,8 @@ class a2 extends _i {
|
|
|
15408
15408
|
getPoint(t, e = new A()) {
|
|
15409
15409
|
const i = e, s = this.v0, l = this.v1, a = this.v2, o = this.v3;
|
|
15410
15410
|
return i.set(
|
|
15411
|
-
|
|
15412
|
-
|
|
15411
|
+
uo(t, s.x, l.x, a.x, o.x),
|
|
15412
|
+
uo(t, s.y, l.y, a.y, o.y)
|
|
15413
15413
|
), i;
|
|
15414
15414
|
}
|
|
15415
15415
|
copy(t) {
|
|
@@ -15430,9 +15430,9 @@ class rc extends _i {
|
|
|
15430
15430
|
getPoint(t, e = new Y()) {
|
|
15431
15431
|
const i = e, s = this.v0, l = this.v1, a = this.v2, o = this.v3;
|
|
15432
15432
|
return i.set(
|
|
15433
|
-
|
|
15434
|
-
|
|
15435
|
-
|
|
15433
|
+
uo(t, s.x, l.x, a.x, o.x),
|
|
15434
|
+
uo(t, s.y, l.y, a.y, o.y),
|
|
15435
|
+
uo(t, s.z, l.z, a.z, o.z)
|
|
15436
15436
|
), i;
|
|
15437
15437
|
}
|
|
15438
15438
|
copy(t) {
|
|
@@ -15511,8 +15511,8 @@ class c2 extends _i {
|
|
|
15511
15511
|
getPoint(t, e = new A()) {
|
|
15512
15512
|
const i = e, s = this.v0, l = this.v1, a = this.v2;
|
|
15513
15513
|
return i.set(
|
|
15514
|
-
|
|
15515
|
-
|
|
15514
|
+
ho(t, s.x, l.x, a.x),
|
|
15515
|
+
ho(t, s.y, l.y, a.y)
|
|
15516
15516
|
), i;
|
|
15517
15517
|
}
|
|
15518
15518
|
copy(t) {
|
|
@@ -15533,9 +15533,9 @@ class d2 extends _i {
|
|
|
15533
15533
|
getPoint(t, e = new Y()) {
|
|
15534
15534
|
const i = e, s = this.v0, l = this.v1, a = this.v2;
|
|
15535
15535
|
return i.set(
|
|
15536
|
-
|
|
15537
|
-
|
|
15538
|
-
|
|
15536
|
+
ho(t, s.x, l.x, a.x),
|
|
15537
|
+
ho(t, s.y, l.y, a.y),
|
|
15538
|
+
ho(t, s.z, l.z, a.z)
|
|
15539
15539
|
), i;
|
|
15540
15540
|
}
|
|
15541
15541
|
copy(t) {
|
|
@@ -15699,7 +15699,7 @@ class Z3 extends _i {
|
|
|
15699
15699
|
return this;
|
|
15700
15700
|
}
|
|
15701
15701
|
}
|
|
15702
|
-
let
|
|
15702
|
+
let Io = class extends Z3 {
|
|
15703
15703
|
constructor(t) {
|
|
15704
15704
|
super(), this.type = "Path", this.currentPoint = new A(), t && this.setFromPoints(t);
|
|
15705
15705
|
}
|
|
@@ -15776,7 +15776,7 @@ let No = class extends Z3 {
|
|
|
15776
15776
|
return super.fromJSON(t), this.currentPoint.fromArray(t.currentPoint), this;
|
|
15777
15777
|
}
|
|
15778
15778
|
};
|
|
15779
|
-
class
|
|
15779
|
+
class La extends At {
|
|
15780
15780
|
constructor(t = [new A(0, -0.5), new A(0.5, 0), new A(0, 0.5)], e = 12, i = 0, s = Math.PI * 2) {
|
|
15781
15781
|
super(), this.type = "LatheGeometry", this.parameters = {
|
|
15782
15782
|
points: t,
|
|
@@ -15816,12 +15816,12 @@ class xa extends At {
|
|
|
15816
15816
|
return super.copy(t), this.parameters = Object.assign({}, t.parameters), this;
|
|
15817
15817
|
}
|
|
15818
15818
|
static fromJSON(t) {
|
|
15819
|
-
return new
|
|
15819
|
+
return new La(t.points, t.segments, t.phiStart, t.phiLength);
|
|
15820
15820
|
}
|
|
15821
15821
|
}
|
|
15822
|
-
class hc extends
|
|
15822
|
+
class hc extends La {
|
|
15823
15823
|
constructor(t = 1, e = 1, i = 4, s = 8) {
|
|
15824
|
-
const l = new
|
|
15824
|
+
const l = new Io();
|
|
15825
15825
|
l.absarc(0, -e / 2, t, Math.PI * 1.5, 0), l.absarc(0, e / 2, t, 0, Math.PI * 0.5), super(l.getPoints(i), s), this.type = "CapsuleGeometry", this.parameters = {
|
|
15826
15826
|
radius: t,
|
|
15827
15827
|
length: e,
|
|
@@ -16237,7 +16237,7 @@ class G3 extends At {
|
|
|
16237
16237
|
return super.copy(t), this.parameters = Object.assign({}, t.parameters), this;
|
|
16238
16238
|
}
|
|
16239
16239
|
}
|
|
16240
|
-
class In extends
|
|
16240
|
+
class In extends Io {
|
|
16241
16241
|
constructor(t) {
|
|
16242
16242
|
super(t), this.uuid = Vi(), this.type = "Shape", this.holes = [];
|
|
16243
16243
|
}
|
|
@@ -16275,7 +16275,7 @@ class In extends No {
|
|
|
16275
16275
|
super.fromJSON(t), this.uuid = t.uuid, this.holes = [];
|
|
16276
16276
|
for (let e = 0, i = t.holes.length; e < i; e++) {
|
|
16277
16277
|
const s = t.holes[e];
|
|
16278
|
-
this.holes.push(new
|
|
16278
|
+
this.holes.push(new Io().fromJSON(s));
|
|
16279
16279
|
}
|
|
16280
16280
|
return this;
|
|
16281
16281
|
}
|
|
@@ -16294,7 +16294,7 @@ const WR = {
|
|
|
16294
16294
|
r = n[p], u = n[p + 1], r < o && (o = r), u < c && (c = u), r > d && (d = r), u > h && (h = u);
|
|
16295
16295
|
m = Math.max(d - o, h - c), m = m !== 0 ? 32767 / m : 0;
|
|
16296
16296
|
}
|
|
16297
|
-
return
|
|
16297
|
+
return Mo(l, a, e, o, c, m, 0), a;
|
|
16298
16298
|
}
|
|
16299
16299
|
};
|
|
16300
16300
|
function X3(n, t, e, i, s) {
|
|
@@ -16305,7 +16305,7 @@ function X3(n, t, e, i, s) {
|
|
|
16305
16305
|
else
|
|
16306
16306
|
for (l = e - i; l >= t; l -= i)
|
|
16307
16307
|
a = mp(l, n[l], n[l + 1], a);
|
|
16308
|
-
return a && fh(a, a.next) && (
|
|
16308
|
+
return a && fh(a, a.next) && (To(a), a = a.next), a;
|
|
16309
16309
|
}
|
|
16310
16310
|
function el(n, t) {
|
|
16311
16311
|
if (!n)
|
|
@@ -16314,7 +16314,7 @@ function el(n, t) {
|
|
|
16314
16314
|
let e = n, i;
|
|
16315
16315
|
do
|
|
16316
16316
|
if (i = !1, !e.steiner && (fh(e, e.next) || de(e.prev, e, e.next) === 0)) {
|
|
16317
|
-
if (
|
|
16317
|
+
if (To(e), e = t = e.prev, e === e.next)
|
|
16318
16318
|
break;
|
|
16319
16319
|
i = !0;
|
|
16320
16320
|
} else
|
|
@@ -16322,18 +16322,18 @@ function el(n, t) {
|
|
|
16322
16322
|
while (i || e !== t);
|
|
16323
16323
|
return t;
|
|
16324
16324
|
}
|
|
16325
|
-
function
|
|
16325
|
+
function Mo(n, t, e, i, s, l, a) {
|
|
16326
16326
|
if (!n)
|
|
16327
16327
|
return;
|
|
16328
16328
|
!a && l && YR(n, i, s, l);
|
|
16329
16329
|
let o = n, c, d;
|
|
16330
16330
|
for (; n.prev !== n.next; ) {
|
|
16331
16331
|
if (c = n.prev, d = n.next, l ? VR(n, i, s, l) : yR(n)) {
|
|
16332
|
-
t.push(c.i / e | 0), t.push(n.i / e | 0), t.push(d.i / e | 0),
|
|
16332
|
+
t.push(c.i / e | 0), t.push(n.i / e | 0), t.push(d.i / e | 0), To(n), n = d.next, o = d.next;
|
|
16333
16333
|
continue;
|
|
16334
16334
|
}
|
|
16335
16335
|
if (n = d, n === o) {
|
|
16336
|
-
a ? a === 1 ? (n = gR(el(n), t, e),
|
|
16336
|
+
a ? a === 1 ? (n = gR(el(n), t, e), Mo(n, t, e, i, s, l, 2)) : a === 2 && fR(n, t, e, i, s, l) : Mo(el(n), t, e, i, s, l, 1);
|
|
16337
16337
|
break;
|
|
16338
16338
|
}
|
|
16339
16339
|
}
|
|
@@ -16378,7 +16378,7 @@ function gR(n, t, e) {
|
|
|
16378
16378
|
let i = n;
|
|
16379
16379
|
do {
|
|
16380
16380
|
const s = i.prev, l = i.next.next;
|
|
16381
|
-
!fh(s, l) && W3(s, i, i.next, l) &&
|
|
16381
|
+
!fh(s, l) && W3(s, i, i.next, l) && Fo(s, l) && Fo(l, s) && (t.push(s.i / e | 0), t.push(i.i / e | 0), t.push(l.i / e | 0), To(i), To(i.next), i = n = l), i = i.next;
|
|
16382
16382
|
} while (i !== n);
|
|
16383
16383
|
return el(i);
|
|
16384
16384
|
}
|
|
@@ -16389,7 +16389,7 @@ function fR(n, t, e, i, s, l) {
|
|
|
16389
16389
|
for (; o !== a.prev; ) {
|
|
16390
16390
|
if (a.i !== o.i && MR(a, o)) {
|
|
16391
16391
|
let c = y3(a, o);
|
|
16392
|
-
a = el(a, a.next), c = el(c, c.next),
|
|
16392
|
+
a = el(a, a.next), c = el(c, c.next), Mo(a, t, e, i, s, l, 0), Mo(c, t, e, i, s, l, 0);
|
|
16393
16393
|
return;
|
|
16394
16394
|
}
|
|
16395
16395
|
o = o.next;
|
|
@@ -16433,7 +16433,7 @@ function CR(n, t) {
|
|
|
16433
16433
|
let h = 1 / 0, r;
|
|
16434
16434
|
e = s;
|
|
16435
16435
|
do
|
|
16436
|
-
l >= e.x && e.x >= c && l !== e.x && Dl(a < d ? l : i, a, c, d, a < d ? i : l, a, e.x, e.y) && (r = Math.abs(a - e.y) / (l - e.x),
|
|
16436
|
+
l >= e.x && e.x >= c && l !== e.x && Dl(a < d ? l : i, a, c, d, a < d ? i : l, a, e.x, e.y) && (r = Math.abs(a - e.y) / (l - e.x), Fo(e, n) && (r < h || r === h && (e.x > s.x || e.x === s.x && SR(s, e))) && (s = e, h = r)), e = e.next;
|
|
16437
16437
|
while (e !== o);
|
|
16438
16438
|
return s;
|
|
16439
16439
|
}
|
|
@@ -16476,7 +16476,7 @@ function Dl(n, t, e, i, s, l, a, o) {
|
|
|
16476
16476
|
}
|
|
16477
16477
|
function MR(n, t) {
|
|
16478
16478
|
return n.next.i !== t.i && n.prev.i !== t.i && !FR(n, t) && // dones't intersect other edges
|
|
16479
|
-
(
|
|
16479
|
+
(Fo(n, t) && Fo(t, n) && TR(n, t) && // locally visible
|
|
16480
16480
|
(de(n.prev, n, t.prev) || de(n, t.prev, t)) || // does not create opposite-facing sectors
|
|
16481
16481
|
fh(n, t) && de(n.prev, n, n.next) > 0 && de(t.prev, t, t.next) > 0);
|
|
16482
16482
|
}
|
|
@@ -16505,7 +16505,7 @@ function FR(n, t) {
|
|
|
16505
16505
|
} while (e !== n);
|
|
16506
16506
|
return !1;
|
|
16507
16507
|
}
|
|
16508
|
-
function
|
|
16508
|
+
function Fo(n, t) {
|
|
16509
16509
|
return de(n.prev, n, n.next) < 0 ? de(n, t, n.next) >= 0 && de(n, n.prev, t) >= 0 : de(n, t, n.prev) < 0 || de(n, n.next, t) < 0;
|
|
16510
16510
|
}
|
|
16511
16511
|
function TR(n, t) {
|
|
@@ -16524,7 +16524,7 @@ function mp(n, t, e, i) {
|
|
|
16524
16524
|
const s = new B1(n, t, e);
|
|
16525
16525
|
return i ? (s.next = i.next, s.prev = i, i.next.prev = s, i.next = s) : (s.prev = s, s.next = s), s;
|
|
16526
16526
|
}
|
|
16527
|
-
function
|
|
16527
|
+
function To(n) {
|
|
16528
16528
|
n.next.prev = n.prev, n.prev.next = n.next, n.prevZ && (n.prevZ.nextZ = n.nextZ), n.nextZ && (n.nextZ.prevZ = n.prevZ);
|
|
16529
16529
|
}
|
|
16530
16530
|
function B1(n, t, e) {
|
|
@@ -17308,7 +17308,7 @@ var Gp = /* @__PURE__ */ Object.freeze({
|
|
|
17308
17308
|
EdgesGeometry: G3,
|
|
17309
17309
|
ExtrudeGeometry: Rh,
|
|
17310
17310
|
IcosahedronGeometry: pc,
|
|
17311
|
-
LatheGeometry:
|
|
17311
|
+
LatheGeometry: La,
|
|
17312
17312
|
OctahedronGeometry: hn,
|
|
17313
17313
|
PlaneGeometry: Oi,
|
|
17314
17314
|
PolyhedronGeometry: us,
|
|
@@ -17401,7 +17401,7 @@ class vi extends le {
|
|
|
17401
17401
|
}
|
|
17402
17402
|
class f3 extends ge {
|
|
17403
17403
|
constructor(t) {
|
|
17404
|
-
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new rt(16777215), this.specular = new rt(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new rt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = hs, this.normalScale = new A(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ae(), this.combine =
|
|
17404
|
+
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new rt(16777215), this.specular = new rt(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new rt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = hs, this.normalScale = new A(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ae(), this.combine = tc, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(t);
|
|
17405
17405
|
}
|
|
17406
17406
|
copy(t) {
|
|
17407
17407
|
return super.copy(t), this.color.copy(t.color), this.specular.copy(t.specular), this.shininess = t.shininess, 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.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, 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;
|
|
@@ -17425,7 +17425,7 @@ class x3 extends ge {
|
|
|
17425
17425
|
}
|
|
17426
17426
|
class L3 extends ge {
|
|
17427
17427
|
constructor(t) {
|
|
17428
|
-
super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new rt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new rt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = hs, this.normalScale = new A(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ae(), this.combine =
|
|
17428
|
+
super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new rt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new rt(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = hs, this.normalScale = new A(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new Ae(), this.combine = tc, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(t);
|
|
17429
17429
|
}
|
|
17430
17430
|
copy(t) {
|
|
17431
17431
|
return super.copy(t), this.color.copy(t.color), 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.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, 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;
|
|
@@ -17578,7 +17578,7 @@ const KR = {
|
|
|
17578
17578
|
subclip: kR,
|
|
17579
17579
|
makeClipAdditive: JR
|
|
17580
17580
|
};
|
|
17581
|
-
class
|
|
17581
|
+
class Ca {
|
|
17582
17582
|
constructor(t, e, i, s) {
|
|
17583
17583
|
this.parameterPositions = t, this._cachedIndex = 0, this.resultBuffer = s !== void 0 ? s : new e.constructor(i), this.sampleValues = e, this.valueSize = i, this.settings = null, this.DefaultSettings_ = {};
|
|
17584
17584
|
}
|
|
@@ -17650,7 +17650,7 @@ class La {
|
|
|
17650
17650
|
intervalChanged_() {
|
|
17651
17651
|
}
|
|
17652
17652
|
}
|
|
17653
|
-
class I3 extends
|
|
17653
|
+
class I3 extends Ca {
|
|
17654
17654
|
constructor(t, e, i, s) {
|
|
17655
17655
|
super(t, e, i, s), this._weightPrev = -0, this._offsetPrev = -0, this._weightNext = -0, this._offsetNext = -0, this.DefaultSettings_ = {
|
|
17656
17656
|
endingStart: zs,
|
|
@@ -17665,7 +17665,7 @@ class I3 extends La {
|
|
|
17665
17665
|
case ks:
|
|
17666
17666
|
l = t, o = 2 * e - i;
|
|
17667
17667
|
break;
|
|
17668
|
-
case
|
|
17668
|
+
case go:
|
|
17669
17669
|
l = s.length - 2, o = e + s[l] - s[l + 1];
|
|
17670
17670
|
break;
|
|
17671
17671
|
default:
|
|
@@ -17676,7 +17676,7 @@ class I3 extends La {
|
|
|
17676
17676
|
case ks:
|
|
17677
17677
|
a = t, c = 2 * i - e;
|
|
17678
17678
|
break;
|
|
17679
|
-
case
|
|
17679
|
+
case go:
|
|
17680
17680
|
a = 1, c = i + s[1] - s[0];
|
|
17681
17681
|
break;
|
|
17682
17682
|
default:
|
|
@@ -17692,7 +17692,7 @@ class I3 extends La {
|
|
|
17692
17692
|
return l;
|
|
17693
17693
|
}
|
|
17694
17694
|
}
|
|
17695
|
-
class m2 extends
|
|
17695
|
+
class m2 extends Ca {
|
|
17696
17696
|
constructor(t, e, i, s) {
|
|
17697
17697
|
super(t, e, i, s);
|
|
17698
17698
|
}
|
|
@@ -17703,7 +17703,7 @@ class m2 extends La {
|
|
|
17703
17703
|
return l;
|
|
17704
17704
|
}
|
|
17705
17705
|
}
|
|
17706
|
-
class M3 extends
|
|
17706
|
+
class M3 extends Ca {
|
|
17707
17707
|
constructor(t, e, i, s) {
|
|
17708
17708
|
super(t, e, i, s);
|
|
17709
17709
|
}
|
|
@@ -17907,7 +17907,7 @@ p2.prototype.ValueTypeName = "color";
|
|
|
17907
17907
|
class il extends qi {
|
|
17908
17908
|
}
|
|
17909
17909
|
il.prototype.ValueTypeName = "number";
|
|
17910
|
-
class F3 extends
|
|
17910
|
+
class F3 extends Ca {
|
|
17911
17911
|
constructor(t, e, i, s) {
|
|
17912
17912
|
super(t, e, i, s);
|
|
17913
17913
|
}
|
|
@@ -18385,7 +18385,7 @@ class QR extends Se {
|
|
|
18385
18385
|
return o;
|
|
18386
18386
|
}
|
|
18387
18387
|
}
|
|
18388
|
-
class
|
|
18388
|
+
class vo extends Se {
|
|
18389
18389
|
constructor(t) {
|
|
18390
18390
|
super(t);
|
|
18391
18391
|
}
|
|
@@ -18396,7 +18396,7 @@ class To extends Se {
|
|
|
18396
18396
|
return l.manager.itemStart(t), setTimeout(function() {
|
|
18397
18397
|
e && e(a), l.manager.itemEnd(t);
|
|
18398
18398
|
}, 0), a;
|
|
18399
|
-
const o =
|
|
18399
|
+
const o = So("img");
|
|
18400
18400
|
function c() {
|
|
18401
18401
|
h(), Cn.add(t, this), e && e(this), l.manager.itemEnd(t);
|
|
18402
18402
|
}
|
|
@@ -18416,7 +18416,7 @@ class AR extends Se {
|
|
|
18416
18416
|
load(t, e, i, s) {
|
|
18417
18417
|
const l = new sc();
|
|
18418
18418
|
l.colorSpace = Z0;
|
|
18419
|
-
const a = new
|
|
18419
|
+
const a = new vo(this.manager);
|
|
18420
18420
|
a.setCrossOrigin(this.crossOrigin), a.setPath(this.path);
|
|
18421
18421
|
let o = 0;
|
|
18422
18422
|
function c(d) {
|
|
@@ -18456,7 +18456,7 @@ class b2 extends Se {
|
|
|
18456
18456
|
super(t);
|
|
18457
18457
|
}
|
|
18458
18458
|
load(t, e, i, s) {
|
|
18459
|
-
const l = new U0(), a = new
|
|
18459
|
+
const l = new U0(), a = new vo(this.manager);
|
|
18460
18460
|
return a.setCrossOrigin(this.crossOrigin), a.setPath(this.path), a.load(t, function(o) {
|
|
18461
18461
|
l.image = o, l.needsUpdate = !0, e !== void 0 && e(l);
|
|
18462
18462
|
}, i, s), l;
|
|
@@ -18567,7 +18567,7 @@ class Wc extends ms {
|
|
|
18567
18567
|
return super.copy(t, e), this.distance = t.distance, this.angle = t.angle, this.penumbra = t.penumbra, this.decay = t.decay, this.target = t.target.clone(), this.shadow = t.shadow.clone(), this;
|
|
18568
18568
|
}
|
|
18569
18569
|
}
|
|
18570
|
-
const yp = /* @__PURE__ */ new Ut(),
|
|
18570
|
+
const yp = /* @__PURE__ */ new Ut(), Qa = /* @__PURE__ */ new Y(), Lu = /* @__PURE__ */ new Y();
|
|
18571
18571
|
class DR extends G2 {
|
|
18572
18572
|
constructor() {
|
|
18573
18573
|
super(new $0(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new A(4, 2), this._viewportCount = 6, this._viewports = [
|
|
@@ -18613,7 +18613,7 @@ class DR extends G2 {
|
|
|
18613
18613
|
}
|
|
18614
18614
|
updateMatrices(t, e = 0) {
|
|
18615
18615
|
const i = this.camera, s = this.matrix, l = t.distance || i.far;
|
|
18616
|
-
l !== i.far && (i.far = l, i.updateProjectionMatrix()),
|
|
18616
|
+
l !== i.far && (i.far = l, i.updateProjectionMatrix()), Qa.setFromMatrixPosition(t.matrixWorld), i.position.copy(Qa), Lu.copy(i.position), Lu.add(this._cubeDirections[e]), i.up.copy(this._cubeUps[e]), i.lookAt(Lu), i.updateMatrixWorld(), s.makeTranslation(-Qa.x, -Qa.y, -Qa.z), yp.multiplyMatrices(i.projectionMatrix, i.matrixWorldInverse), this._frustum.setFromProjectionMatrix(yp);
|
|
18617
18617
|
}
|
|
18618
18618
|
}
|
|
18619
18619
|
class yc extends ms {
|
|
@@ -18831,7 +18831,7 @@ class Sh extends Se {
|
|
|
18831
18831
|
static createMaterialFromType(t) {
|
|
18832
18832
|
const e = {
|
|
18833
18833
|
ShadowMaterial: h2,
|
|
18834
|
-
SpriteMaterial:
|
|
18834
|
+
SpriteMaterial: xa,
|
|
18835
18835
|
RawShaderMaterial: g3,
|
|
18836
18836
|
ShaderMaterial: j0,
|
|
18837
18837
|
PointsMaterial: Xh,
|
|
@@ -19105,7 +19105,7 @@ class W2 extends Se {
|
|
|
19105
19105
|
}
|
|
19106
19106
|
if (t !== void 0 && t.length > 0) {
|
|
19107
19107
|
const c = new Lh(e);
|
|
19108
|
-
l = new
|
|
19108
|
+
l = new vo(c), l.setCrossOrigin(this.crossOrigin);
|
|
19109
19109
|
for (let d = 0, h = t.length; d < h; d++) {
|
|
19110
19110
|
const r = t[d], u = r.url;
|
|
19111
19111
|
if (Array.isArray(u)) {
|
|
@@ -19141,7 +19141,7 @@ class W2 extends Se {
|
|
|
19141
19141
|
});
|
|
19142
19142
|
}
|
|
19143
19143
|
if (t !== void 0 && t.length > 0) {
|
|
19144
|
-
s = new
|
|
19144
|
+
s = new vo(this.manager), s.setCrossOrigin(this.crossOrigin);
|
|
19145
19145
|
for (let a = 0, o = t.length; a < o; a++) {
|
|
19146
19146
|
const c = t[a], d = c.url;
|
|
19147
19147
|
if (Array.isArray(d)) {
|
|
@@ -19237,7 +19237,7 @@ class W2 extends Se {
|
|
|
19237
19237
|
case "InstancedMesh":
|
|
19238
19238
|
h = o(t.geometry), r = c(t.material);
|
|
19239
19239
|
const u = t.count, m = t.instanceMatrix, p = t.instanceColor;
|
|
19240
|
-
a = new
|
|
19240
|
+
a = new No(h, r, u), a.instanceMatrix = new tl(new Float32Array(m.array), 16), p !== void 0 && (a.instanceColor = new tl(new Float32Array(p.array), p.itemSize));
|
|
19241
19241
|
break;
|
|
19242
19242
|
case "BatchedMesh":
|
|
19243
19243
|
h = o(t.geometry), r = c(t.material), a = new u3(t.maxGeometryCount, t.maxVertexCount, t.maxIndexCount, r), a.geometry = h, 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) => {
|
|
@@ -19324,7 +19324,7 @@ const _R = {
|
|
|
19324
19324
|
MirroredRepeatWrapping: Os
|
|
19325
19325
|
}, gp = {
|
|
19326
19326
|
NearestFilter: J0,
|
|
19327
|
-
NearestMipmapNearestFilter:
|
|
19327
|
+
NearestMipmapNearestFilter: ec,
|
|
19328
19328
|
NearestMipmapLinearFilter: ss,
|
|
19329
19329
|
LinearFilter: Y0,
|
|
19330
19330
|
LinearMipmapNearestFilter: Ps,
|
|
@@ -20411,7 +20411,7 @@ class U3 {
|
|
|
20411
20411
|
}
|
|
20412
20412
|
_setEndings(t, e, i) {
|
|
20413
20413
|
const s = this._interpolantSettings;
|
|
20414
|
-
i ? (s.endingStart = ks, s.endingEnd = ks) : (t ? s.endingStart = this.zeroSlopeAtStart ? ks : zs : s.endingStart =
|
|
20414
|
+
i ? (s.endingStart = ks, s.endingEnd = ks) : (t ? s.endingStart = this.zeroSlopeAtStart ? ks : zs : s.endingStart = go, e ? s.endingEnd = this.zeroSlopeAtEnd ? ks : zs : s.endingEnd = go);
|
|
20415
20415
|
}
|
|
20416
20416
|
_scheduleFading(t, e, i) {
|
|
20417
20417
|
const s = this._mixer, l = s.time;
|
|
@@ -20681,7 +20681,7 @@ class l0 {
|
|
|
20681
20681
|
let Gx = 0;
|
|
20682
20682
|
class Xx extends Fi {
|
|
20683
20683
|
constructor() {
|
|
20684
|
-
super(), this.isUniformsGroup = !0, Object.defineProperty(this, "id", { value: Gx++ }), this.name = "", this.usage =
|
|
20684
|
+
super(), this.isUniformsGroup = !0, Object.defineProperty(this, "id", { value: Gx++ }), this.name = "", this.usage = Lo, this.uniforms = [];
|
|
20685
20685
|
}
|
|
20686
20686
|
add(t) {
|
|
20687
20687
|
return this.uniforms.push(t), this;
|
|
@@ -21167,7 +21167,7 @@ class A3 extends G0 {
|
|
|
21167
21167
|
this.light.updateWorldMatrix(!0, !1), this.light.target.updateWorldMatrix(!0, !1), vp.setFromMatrixPosition(this.light.matrixWorld), xd.setFromMatrixPosition(this.light.target.matrixWorld), wp.subVectors(xd, vp), this.lightPlane.lookAt(xd), this.color !== void 0 ? (this.lightPlane.material.color.set(this.color), this.targetLine.material.color.set(this.color)) : (this.lightPlane.material.color.copy(this.light.color), this.targetLine.material.color.copy(this.light.color)), this.targetLine.lookAt(xd), this.targetLine.scale.z = wp.length();
|
|
21168
21168
|
}
|
|
21169
21169
|
}
|
|
21170
|
-
const Ld = /* @__PURE__ */ new Y(), ue = /* @__PURE__ */ new
|
|
21170
|
+
const Ld = /* @__PURE__ */ new Y(), ue = /* @__PURE__ */ new fa();
|
|
21171
21171
|
class j3 extends Ti {
|
|
21172
21172
|
constructor(t) {
|
|
21173
21173
|
const e = new At(), i = new ve({ color: 16777215, vertexColors: !0, toneMapped: !1 }), s = [], l = [], a = {};
|
|
@@ -21341,7 +21341,7 @@ class Mx {
|
|
|
21341
21341
|
this.type = "ShapePath", this.color = new rt(), this.subPaths = [], this.currentPath = null;
|
|
21342
21342
|
}
|
|
21343
21343
|
moveTo(t, e) {
|
|
21344
|
-
return this.currentPath = new
|
|
21344
|
+
return this.currentPath = new Io(), this.subPaths.push(this.currentPath), this.currentPath.moveTo(t, e), this;
|
|
21345
21345
|
}
|
|
21346
21346
|
lineTo(t, e) {
|
|
21347
21347
|
return this.currentPath.lineTo(t, e), this;
|
|
@@ -21452,7 +21452,7 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21452
21452
|
AddEquation: is,
|
|
21453
21453
|
AddOperation: bZ,
|
|
21454
21454
|
AdditiveAnimationBlendMode: Qm,
|
|
21455
|
-
AdditiveBlending:
|
|
21455
|
+
AdditiveBlending: yo,
|
|
21456
21456
|
AgXToneMapping: VZ,
|
|
21457
21457
|
AlphaFormat: CZ,
|
|
21458
21458
|
AlwaysCompare: EZ,
|
|
@@ -21491,7 +21491,7 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21491
21491
|
BufferGeometryLoader: X2,
|
|
21492
21492
|
ByteType: RZ,
|
|
21493
21493
|
Cache: Cn,
|
|
21494
|
-
Camera:
|
|
21494
|
+
Camera: fa,
|
|
21495
21495
|
CameraHelper: j3,
|
|
21496
21496
|
CanvasTexture: m3,
|
|
21497
21497
|
CapsuleGeometry: hc,
|
|
@@ -21533,7 +21533,7 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21533
21533
|
DataArrayTexture: rh,
|
|
21534
21534
|
DataTexture: Ni,
|
|
21535
21535
|
DataTextureLoader: v3,
|
|
21536
|
-
DataUtils:
|
|
21536
|
+
DataUtils: Yo,
|
|
21537
21537
|
DecrementStencilOp: mW,
|
|
21538
21538
|
DecrementWrapStencilOp: bW,
|
|
21539
21539
|
DefaultLoadingManager: T3,
|
|
@@ -21555,7 +21555,7 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21555
21555
|
EdgesGeometry: G3,
|
|
21556
21556
|
EllipseCurve: Vh,
|
|
21557
21557
|
EqualCompare: JZ,
|
|
21558
|
-
EqualDepth:
|
|
21558
|
+
EqualDepth: Vo,
|
|
21559
21559
|
EqualStencilFunc: WW,
|
|
21560
21560
|
EquirectangularReflectionMapping: ca,
|
|
21561
21561
|
EquirectangularRefractionMapping: da,
|
|
@@ -21587,21 +21587,21 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21587
21587
|
HemisphereLightHelper: Q3,
|
|
21588
21588
|
IcosahedronGeometry: pc,
|
|
21589
21589
|
ImageBitmapLoader: k3,
|
|
21590
|
-
ImageLoader:
|
|
21590
|
+
ImageLoader: vo,
|
|
21591
21591
|
ImageUtils: DZ,
|
|
21592
21592
|
IncrementStencilOp: uW,
|
|
21593
21593
|
IncrementWrapStencilOp: pW,
|
|
21594
21594
|
InstancedBufferAttribute: tl,
|
|
21595
21595
|
InstancedBufferGeometry: z3,
|
|
21596
21596
|
InstancedInterleavedBuffer: Wx,
|
|
21597
|
-
InstancedMesh:
|
|
21597
|
+
InstancedMesh: No,
|
|
21598
21598
|
Int16BufferAttribute: uy,
|
|
21599
21599
|
Int32BufferAttribute: my,
|
|
21600
21600
|
Int8BufferAttribute: dy,
|
|
21601
21601
|
IntType: Jm,
|
|
21602
21602
|
InterleavedBuffer: oc,
|
|
21603
21603
|
InterleavedBufferAttribute: cs,
|
|
21604
|
-
Interpolant:
|
|
21604
|
+
Interpolant: Ca,
|
|
21605
21605
|
InterpolateDiscrete: ra,
|
|
21606
21606
|
InterpolateLinear: qs,
|
|
21607
21607
|
InterpolateSmooth: nr,
|
|
@@ -21609,7 +21609,7 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21609
21609
|
KeepStencilOp: Is,
|
|
21610
21610
|
KeyframeTrack: qi,
|
|
21611
21611
|
LOD: h3,
|
|
21612
|
-
LatheGeometry:
|
|
21612
|
+
LatheGeometry: La,
|
|
21613
21613
|
Layers: hh,
|
|
21614
21614
|
LessCompare: kZ,
|
|
21615
21615
|
LessDepth: br,
|
|
@@ -21627,7 +21627,7 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21627
21627
|
LineDashedMaterial: S3,
|
|
21628
21628
|
LineLoop: n2,
|
|
21629
21629
|
LineSegments: Ti,
|
|
21630
|
-
LinearDisplayP3ColorSpace:
|
|
21630
|
+
LinearDisplayP3ColorSpace: ic,
|
|
21631
21631
|
LinearFilter: Y0,
|
|
21632
21632
|
LinearInterpolant: m2,
|
|
21633
21633
|
LinearMipMapLinearFilter: dW,
|
|
@@ -21636,7 +21636,7 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21636
21636
|
LinearMipmapNearestFilter: Ps,
|
|
21637
21637
|
LinearSRGBColorSpace: he,
|
|
21638
21638
|
LinearToneMapping: ZZ,
|
|
21639
|
-
LinearTransfer:
|
|
21639
|
+
LinearTransfer: fo,
|
|
21640
21640
|
Loader: Se,
|
|
21641
21641
|
LoaderUtils: ls,
|
|
21642
21642
|
LoadingManager: Lh,
|
|
@@ -21648,7 +21648,7 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21648
21648
|
MOUSE: iW,
|
|
21649
21649
|
Material: ge,
|
|
21650
21650
|
MaterialLoader: Sh,
|
|
21651
|
-
MathUtils:
|
|
21651
|
+
MathUtils: ga,
|
|
21652
21652
|
Matrix3: d0,
|
|
21653
21653
|
Matrix4: Ut,
|
|
21654
21654
|
MaxEquation: tZ,
|
|
@@ -21667,12 +21667,12 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21667
21667
|
MirroredRepeatWrapping: Os,
|
|
21668
21668
|
MixOperation: pZ,
|
|
21669
21669
|
MultiplyBlending: r1,
|
|
21670
|
-
MultiplyOperation:
|
|
21670
|
+
MultiplyOperation: tc,
|
|
21671
21671
|
NearestFilter: J0,
|
|
21672
21672
|
NearestMipMapLinearFilter: oW,
|
|
21673
21673
|
NearestMipMapNearestFilter: aW,
|
|
21674
21674
|
NearestMipmapLinearFilter: ss,
|
|
21675
|
-
NearestMipmapNearestFilter:
|
|
21675
|
+
NearestMipmapNearestFilter: ec,
|
|
21676
21676
|
NeutralToneMapping: gZ,
|
|
21677
21677
|
NeverCompare: zZ,
|
|
21678
21678
|
NeverDepth: vm,
|
|
@@ -21698,11 +21698,11 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21698
21698
|
OneMinusSrcAlphaFactor: pr,
|
|
21699
21699
|
OneMinusSrcColorFactor: sZ,
|
|
21700
21700
|
OrthographicCamera: ac,
|
|
21701
|
-
P3Primaries:
|
|
21701
|
+
P3Primaries: xo,
|
|
21702
21702
|
PCFShadowMap: Tm,
|
|
21703
21703
|
PCFSoftShadowMap: D5,
|
|
21704
21704
|
PMREMGenerator: Gr,
|
|
21705
|
-
Path:
|
|
21705
|
+
Path: Io,
|
|
21706
21706
|
PerspectiveCamera: $0,
|
|
21707
21707
|
Plane: Bi,
|
|
21708
21708
|
PlaneGeometry: Oi,
|
|
@@ -21761,7 +21761,7 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21761
21761
|
RawShaderMaterial: g3,
|
|
21762
21762
|
Ray: dl,
|
|
21763
21763
|
Raycaster: f2,
|
|
21764
|
-
Rec709Primaries:
|
|
21764
|
+
Rec709Primaries: Ro,
|
|
21765
21765
|
RectAreaLight: Vr,
|
|
21766
21766
|
RedFormat: ah,
|
|
21767
21767
|
RedIntegerFormat: Bm,
|
|
@@ -21797,12 +21797,12 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21797
21797
|
SpotLight: Wc,
|
|
21798
21798
|
SpotLightHelper: B3,
|
|
21799
21799
|
Sprite: e2,
|
|
21800
|
-
SpriteMaterial:
|
|
21800
|
+
SpriteMaterial: xa,
|
|
21801
21801
|
SrcAlphaFactor: mr,
|
|
21802
21802
|
SrcAlphaSaturateFactor: dZ,
|
|
21803
21803
|
SrcColorFactor: nZ,
|
|
21804
21804
|
StaticCopyUsage: SW,
|
|
21805
|
-
StaticDrawUsage:
|
|
21805
|
+
StaticDrawUsage: Lo,
|
|
21806
21806
|
StaticReadUsage: xW,
|
|
21807
21807
|
StereoCamera: $R,
|
|
21808
21808
|
StreamCopyUsage: NW,
|
|
@@ -21853,9 +21853,9 @@ const Nh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21853
21853
|
WebGLRenderTarget: ee,
|
|
21854
21854
|
WebGLRenderer: d3,
|
|
21855
21855
|
WebGLUtils: o3,
|
|
21856
|
-
WebGPUCoordinateSystem:
|
|
21856
|
+
WebGPUCoordinateSystem: Co,
|
|
21857
21857
|
WireframeGeometry: V3,
|
|
21858
|
-
WrapAroundEnding:
|
|
21858
|
+
WrapAroundEnding: go,
|
|
21859
21859
|
ZeroCurvatureEnding: zs,
|
|
21860
21860
|
ZeroFactor: eZ,
|
|
21861
21861
|
ZeroSlopeEnding: ks,
|
|
@@ -21901,7 +21901,7 @@ function Cs(n) {
|
|
|
21901
21901
|
function $n(n) {
|
|
21902
21902
|
return n.isOrthographicCamera;
|
|
21903
21903
|
}
|
|
21904
|
-
const Jl = Math.PI * 2, zp = Math.PI / 2, D3 = 1e-5,
|
|
21904
|
+
const Jl = Math.PI * 2, zp = Math.PI / 2, D3 = 1e-5, Aa = Math.PI / 180;
|
|
21905
21905
|
function Ji(n, t, e) {
|
|
21906
21906
|
return Math.max(t, Math.min(e, n));
|
|
21907
21907
|
}
|
|
@@ -21914,10 +21914,10 @@ function H0(n, t, e = D3) {
|
|
|
21914
21914
|
function kp(n, t) {
|
|
21915
21915
|
return Math.round(n / t) * t;
|
|
21916
21916
|
}
|
|
21917
|
-
function
|
|
21917
|
+
function ja(n) {
|
|
21918
21918
|
return isFinite(n) ? n : n < 0 ? -Number.MAX_VALUE : Number.MAX_VALUE;
|
|
21919
21919
|
}
|
|
21920
|
-
function
|
|
21920
|
+
function Da(n) {
|
|
21921
21921
|
return Math.abs(n) < Number.MAX_VALUE ? n : n * (1 / 0);
|
|
21922
21922
|
}
|
|
21923
21923
|
function Yd(n, t, e, i, s = 1 / 0, l) {
|
|
@@ -22020,7 +22020,7 @@ class Tx {
|
|
|
22020
22020
|
}
|
|
22021
22021
|
var Iu;
|
|
22022
22022
|
const vx = "2.8.3", Nd = 1 / 8, wx = /Mac/.test((Iu = globalThis == null ? void 0 : globalThis.navigator) === null || Iu === void 0 ? void 0 : Iu.platform);
|
|
22023
|
-
let qt, Kp, Id, Mu, ei, m0, M0, Kl,
|
|
22023
|
+
let qt, Kp, Id, Mu, ei, m0, M0, Kl, Oa, tn, en, Ss, Up, Bp, Li, _a, Ul, Ep, Fu, Pp, Tu, vu, Md;
|
|
22024
22024
|
class pa extends Tx {
|
|
22025
22025
|
/**
|
|
22026
22026
|
* Injects THREE as the dependency. You can then proceed to use CameraControls.
|
|
@@ -22063,7 +22063,7 @@ class pa extends Tx {
|
|
|
22063
22063
|
* @category Statics
|
|
22064
22064
|
*/
|
|
22065
22065
|
static install(t) {
|
|
22066
|
-
qt = t.THREE, Kp = Object.freeze(new qt.Vector3(0, 0, 0)), Id = Object.freeze(new qt.Vector3(0, 1, 0)), Mu = Object.freeze(new qt.Vector3(0, 0, 1)), ei = new qt.Vector2(), m0 = new qt.Vector3(), M0 = new qt.Vector3(), Kl = new qt.Vector3(),
|
|
22066
|
+
qt = t.THREE, Kp = Object.freeze(new qt.Vector3(0, 0, 0)), Id = Object.freeze(new qt.Vector3(0, 1, 0)), Mu = Object.freeze(new qt.Vector3(0, 0, 1)), ei = new qt.Vector2(), m0 = new qt.Vector3(), M0 = new qt.Vector3(), Kl = new qt.Vector3(), Oa = new qt.Vector3(), tn = new qt.Vector3(), en = new qt.Vector3(), Ss = new qt.Vector3(), Up = new qt.Vector3(), Bp = new qt.Vector3(), Li = new qt.Spherical(), _a = new qt.Spherical(), Ul = new qt.Box3(), Ep = new qt.Box3(), Fu = new qt.Sphere(), Pp = new qt.Quaternion(), Tu = new qt.Quaternion(), vu = new qt.Matrix4(), Md = new qt.Raycaster();
|
|
22067
22067
|
}
|
|
22068
22068
|
/**
|
|
22069
22069
|
* list all ACTIONs
|
|
@@ -22094,7 +22094,7 @@ class pa extends Tx {
|
|
|
22094
22094
|
}, this._enabled = !0, this._state = dt.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 = kl.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new qt.Vector3(), this._focalOffsetVelocity = new qt.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (Z, W, X) => {
|
|
22095
22095
|
let y, f;
|
|
22096
22096
|
if (Cs(this._camera)) {
|
|
22097
|
-
const R = m0.copy(this._camera.position).sub(this._target), L = this._camera.getEffectiveFOV() *
|
|
22097
|
+
const R = m0.copy(this._camera.position).sub(this._target), L = this._camera.getEffectiveFOV() * Aa, N = R.length() * Math.tan(L * 0.5);
|
|
22098
22098
|
y = this.truckSpeed * Z * N / this._elementRect.height, f = this.truckSpeed * W * N / this._elementRect.height;
|
|
22099
22099
|
} else if ($n(this._camera)) {
|
|
22100
22100
|
const R = this._camera;
|
|
@@ -22563,7 +22563,7 @@ class pa extends Tx {
|
|
|
22563
22563
|
* @category Methods
|
|
22564
22564
|
*/
|
|
22565
22565
|
dollyInFixed(t, e = !1) {
|
|
22566
|
-
this._targetEnd.add(this._getCameraDirection(
|
|
22566
|
+
this._targetEnd.add(this._getCameraDirection(Oa).multiplyScalar(t)), e || this._target.copy(this._targetEnd);
|
|
22567
22567
|
const i = !e || H0(this._target.x, this._targetEnd.x, this.restThreshold) && H0(this._target.y, this._targetEnd.y, this.restThreshold) && H0(this._target.z, this._targetEnd.z, this.restThreshold);
|
|
22568
22568
|
return this._createOnRestPromise(i);
|
|
22569
22569
|
}
|
|
@@ -22746,8 +22746,8 @@ class pa extends Tx {
|
|
|
22746
22746
|
const G = m0.set(s, l, a), b = M0.set(t, e, i);
|
|
22747
22747
|
Li.setFromVector3(b.sub(G).applyQuaternion(this._yAxisUpSpace));
|
|
22748
22748
|
const Z = Kl.set(h, r, u), W = M0.set(o, c, d);
|
|
22749
|
-
|
|
22750
|
-
const X =
|
|
22749
|
+
_a.setFromVector3(W.sub(Z).applyQuaternion(this._yAxisUpSpace)), this._targetEnd.copy(G.lerp(Z, m));
|
|
22750
|
+
const X = _a.theta - Li.theta, y = _a.phi - Li.phi, f = _a.radius - Li.radius;
|
|
22751
22751
|
this._sphericalEnd.set(Li.radius + f * m, Li.phi + y * m, Li.theta + X * m), this.normalizeRotations(), this._needsUpdate = !0, p || (this._target.copy(this._targetEnd), this._spherical.copy(this._sphericalEnd));
|
|
22752
22752
|
const R = !p || H0(this._target.x, this._targetEnd.x, this.restThreshold) && H0(this._target.y, this._targetEnd.y, this.restThreshold) && H0(this._target.z, this._targetEnd.z, this.restThreshold) && H0(this._spherical.theta, this._sphericalEnd.theta, this.restThreshold) && H0(this._spherical.phi, this._sphericalEnd.phi, this.restThreshold) && H0(this._spherical.radius, this._sphericalEnd.radius, this.restThreshold);
|
|
22753
22753
|
return this._createOnRestPromise(R);
|
|
@@ -22842,7 +22842,7 @@ class pa extends Tx {
|
|
|
22842
22842
|
getDistanceToFitBox(t, e, i, s = !1) {
|
|
22843
22843
|
if (Nu(this._camera, "getDistanceToFitBox"))
|
|
22844
22844
|
return this._spherical.radius;
|
|
22845
|
-
const l = t / e, a = this._camera.getEffectiveFOV() *
|
|
22845
|
+
const l = t / e, a = this._camera.getEffectiveFOV() * Aa, o = this._camera.aspect;
|
|
22846
22846
|
return ((s ? l > o : l < o) ? e : t / o) * 0.5 / Math.tan(a * 0.5) + i * 0.5;
|
|
22847
22847
|
}
|
|
22848
22848
|
/**
|
|
@@ -22854,7 +22854,7 @@ class pa extends Tx {
|
|
|
22854
22854
|
getDistanceToFitSphere(t) {
|
|
22855
22855
|
if (Nu(this._camera, "getDistanceToFitSphere"))
|
|
22856
22856
|
return this._spherical.radius;
|
|
22857
|
-
const e = this._camera.getEffectiveFOV() *
|
|
22857
|
+
const e = this._camera.getEffectiveFOV() * Aa, i = Math.atan(Math.tan(e * 0.5) * this._camera.aspect) * 2, s = 1 < this._camera.aspect ? e : i;
|
|
22858
22858
|
return t / Math.sin(s * 0.5);
|
|
22859
22859
|
}
|
|
22860
22860
|
/**
|
|
@@ -22991,9 +22991,9 @@ class pa extends Tx {
|
|
|
22991
22991
|
}
|
|
22992
22992
|
if (this.dollyToCursor) {
|
|
22993
22993
|
if (Cs(this._camera) && this._changedDolly !== 0) {
|
|
22994
|
-
const r = this._spherical.radius - this._lastDistance, u = this._camera, m = this._getCameraDirection(
|
|
22994
|
+
const r = this._spherical.radius - this._lastDistance, u = this._camera, m = this._getCameraDirection(Oa), p = m0.copy(m).cross(u.up).normalize();
|
|
22995
22995
|
p.lengthSq() === 0 && (p.x = 1);
|
|
22996
|
-
const G = M0.crossVectors(p, m), b = this._sphericalEnd.radius * Math.tan(u.getEffectiveFOV() *
|
|
22996
|
+
const G = M0.crossVectors(p, m), b = this._sphericalEnd.radius * Math.tan(u.getEffectiveFOV() * Aa * 0.5), W = (this._sphericalEnd.radius - r - this._sphericalEnd.radius) / this._sphericalEnd.radius, X = Kl.copy(this._targetEnd).add(p.multiplyScalar(this._dollyControlCoord.x * b * u.aspect)).add(G.multiplyScalar(this._dollyControlCoord.y * b)), y = m0.copy(this._targetEnd).lerp(X, W), f = this._lastDollyDirection === kl.IN && this._spherical.radius <= this.minDistance, R = this._lastDollyDirection === kl.OUT && this.maxDistance <= this._spherical.radius;
|
|
22997
22997
|
if (this.infinityDolly && (f || R)) {
|
|
22998
22998
|
this._sphericalEnd.radius -= r, this._spherical.radius -= r;
|
|
22999
22999
|
const N = M0.copy(m).multiplyScalar(-r);
|
|
@@ -23003,7 +23003,7 @@ class pa extends Tx {
|
|
|
23003
23003
|
const L = M0.subVectors(y, this._targetEnd);
|
|
23004
23004
|
this._targetEnd.copy(y), this._target.add(L), this._changedDolly -= r, O0(this._changedDolly) && (this._changedDolly = 0);
|
|
23005
23005
|
} else if ($n(this._camera) && this._changedZoom !== 0) {
|
|
23006
|
-
const r = this._zoom - this._lastZoom, u = this._camera, m = m0.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (u.near + u.far) / (u.near - u.far)).unproject(u), p = M0.set(0, 0, -1).applyQuaternion(u.quaternion), G = Kl.copy(m).add(p.multiplyScalar(-m.dot(u.up))), Z = -(this._zoom - r - this._zoom) / this._zoom, W = this._getCameraDirection(
|
|
23006
|
+
const r = this._zoom - this._lastZoom, u = this._camera, m = m0.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (u.near + u.far) / (u.near - u.far)).unproject(u), p = M0.set(0, 0, -1).applyQuaternion(u.quaternion), G = Kl.copy(m).add(p.multiplyScalar(-m.dot(u.up))), Z = -(this._zoom - r - this._zoom) / this._zoom, W = this._getCameraDirection(Oa), X = this._targetEnd.dot(W), y = m0.copy(this._targetEnd).lerp(G, Z), f = y.dot(W), R = W.multiplyScalar(f - X);
|
|
23007
23007
|
y.sub(R), this._boundary.clampPoint(y, y);
|
|
23008
23008
|
const L = M0.subVectors(y, this._targetEnd);
|
|
23009
23009
|
this._targetEnd.copy(y), this._target.add(L), this._changedZoom -= r, O0(this._changedZoom) && (this._changedZoom = 0);
|
|
@@ -23023,13 +23023,13 @@ class pa extends Tx {
|
|
|
23023
23023
|
return JSON.stringify({
|
|
23024
23024
|
enabled: this._enabled,
|
|
23025
23025
|
minDistance: this.minDistance,
|
|
23026
|
-
maxDistance:
|
|
23026
|
+
maxDistance: ja(this.maxDistance),
|
|
23027
23027
|
minZoom: this.minZoom,
|
|
23028
|
-
maxZoom:
|
|
23028
|
+
maxZoom: ja(this.maxZoom),
|
|
23029
23029
|
minPolarAngle: this.minPolarAngle,
|
|
23030
|
-
maxPolarAngle:
|
|
23031
|
-
minAzimuthAngle:
|
|
23032
|
-
maxAzimuthAngle:
|
|
23030
|
+
maxPolarAngle: ja(this.maxPolarAngle),
|
|
23031
|
+
minAzimuthAngle: ja(this.minAzimuthAngle),
|
|
23032
|
+
maxAzimuthAngle: ja(this.maxAzimuthAngle),
|
|
23033
23033
|
smoothTime: this.smoothTime,
|
|
23034
23034
|
draggingSmoothTime: this.draggingSmoothTime,
|
|
23035
23035
|
dollySpeed: this.dollySpeed,
|
|
@@ -23054,7 +23054,7 @@ class pa extends Tx {
|
|
|
23054
23054
|
*/
|
|
23055
23055
|
fromJSON(t, e = !1) {
|
|
23056
23056
|
const i = JSON.parse(t);
|
|
23057
|
-
this.enabled = i.enabled, this.minDistance = i.minDistance, this.maxDistance =
|
|
23057
|
+
this.enabled = i.enabled, this.minDistance = i.minDistance, this.maxDistance = Da(i.maxDistance), this.minZoom = i.minZoom, this.maxZoom = Da(i.maxZoom), this.minPolarAngle = i.minPolarAngle, this.maxPolarAngle = Da(i.maxPolarAngle), this.minAzimuthAngle = Da(i.minAzimuthAngle), this.maxAzimuthAngle = Da(i.maxAzimuthAngle), this.smoothTime = i.smoothTime, this.draggingSmoothTime = i.draggingSmoothTime, this.dollySpeed = i.dollySpeed, this.truckSpeed = i.truckSpeed, this.dollyToCursor = i.dollyToCursor, this.verticalDragToForward = i.verticalDragToForward, this._target0.fromArray(i.target0), this._position0.fromArray(i.position0), this._zoom0 = i.zoom0, this._focalOffset0.fromArray(i.focalOffset0), this.moveTo(i.target[0], i.target[1], i.target[2], e), Li.setFromVector3(m0.fromArray(i.position).sub(this._targetEnd).applyQuaternion(this._yAxisUpSpace)), this.rotateTo(Li.theta, Li.phi, e), this.dollyTo(Li.radius, e), this.zoomTo(i.zoom, e), this.setFocalOffset(i.focalOffset[0], i.focalOffset[1], i.focalOffset[2], e), this._needsUpdate = !0;
|
|
23058
23058
|
}
|
|
23059
23059
|
/**
|
|
23060
23060
|
* Attach all internal event handlers to enable drag control.
|
|
@@ -23115,7 +23115,7 @@ class pa extends Tx {
|
|
|
23115
23115
|
}
|
|
23116
23116
|
_updateNearPlaneCorners() {
|
|
23117
23117
|
if (Cs(this._camera)) {
|
|
23118
|
-
const t = this._camera, e = t.near, i = t.getEffectiveFOV() *
|
|
23118
|
+
const t = this._camera, e = t.near, i = t.getEffectiveFOV() * Aa, s = Math.tan(i * 0.5) * e, l = s * t.aspect;
|
|
23119
23119
|
this._nearPlaneCorners[0].set(-l, -s, 0), this._nearPlaneCorners[1].set(l, -s, 0), this._nearPlaneCorners[2].set(l, s, 0), this._nearPlaneCorners[3].set(-l, s, 0);
|
|
23120
23120
|
} else if ($n(this._camera)) {
|
|
23121
23121
|
const t = this._camera, e = 1 / t.zoom, i = t.left * e, s = t.right * e, l = t.top * e, a = t.bottom * e;
|
|
@@ -23127,7 +23127,7 @@ class pa extends Tx {
|
|
|
23127
23127
|
let t = 1 / 0;
|
|
23128
23128
|
if (!(this.colliderMeshes.length >= 1) || Nu(this._camera, "_collisionTest"))
|
|
23129
23129
|
return t;
|
|
23130
|
-
const i = this._getTargetDirection(
|
|
23130
|
+
const i = this._getTargetDirection(Oa);
|
|
23131
23131
|
vu.lookAt(Kp, i, this._camera.up);
|
|
23132
23132
|
for (let s = 0; s < 4; s++) {
|
|
23133
23133
|
const l = M0.copy(this._nearPlaneCorners[s]);
|
|
@@ -23592,7 +23592,7 @@ var ia = Object.freeze({
|
|
|
23592
23592
|
typeof i == "string" ? this._valuesStartRepeat[t] = this._valuesStartRepeat[t] + parseFloat(i) : this._valuesStartRepeat[t] = this._valuesEnd[t], this._valuesEnd[t] = e;
|
|
23593
23593
|
}, n;
|
|
23594
23594
|
}()
|
|
23595
|
-
), Hx = "21.0.0", zx = R2.nextId, Zn = A1, kx = Zn.getAll.bind(Zn), _3 = Zn.removeAll.bind(Zn), Jx = Zn.add.bind(Zn), Kx = Zn.remove.bind(Zn), q3 = Zn.update.bind(Zn),
|
|
23595
|
+
), Hx = "21.0.0", zx = R2.nextId, Zn = A1, kx = Zn.getAll.bind(Zn), _3 = Zn.removeAll.bind(Zn), Jx = Zn.add.bind(Zn), Kx = Zn.remove.bind(Zn), q3 = Zn.update.bind(Zn), wo = {
|
|
23596
23596
|
Easing: ia,
|
|
23597
23597
|
Group: O3,
|
|
23598
23598
|
Interpolation: Us,
|
|
@@ -23851,12 +23851,12 @@ function $x(n) {
|
|
|
23851
23851
|
function tL(n) {
|
|
23852
23852
|
return Array.isArray(n) ? [] : {};
|
|
23853
23853
|
}
|
|
23854
|
-
function
|
|
23854
|
+
function Ho(n, t) {
|
|
23855
23855
|
return t.clone !== !1 && t.isMergeableObject(n) ? ba(tL(n), n, t) : n;
|
|
23856
23856
|
}
|
|
23857
23857
|
function eL(n, t, e) {
|
|
23858
23858
|
return n.concat(t).map(function(i) {
|
|
23859
|
-
return
|
|
23859
|
+
return Ho(i, e);
|
|
23860
23860
|
});
|
|
23861
23861
|
}
|
|
23862
23862
|
function iL(n, t) {
|
|
@@ -23886,15 +23886,15 @@ function sL(n, t) {
|
|
|
23886
23886
|
function lL(n, t, e) {
|
|
23887
23887
|
var i = {};
|
|
23888
23888
|
return e.isMergeableObject(n) && jp(n).forEach(function(s) {
|
|
23889
|
-
i[s] =
|
|
23889
|
+
i[s] = Ho(n[s], e);
|
|
23890
23890
|
}), jp(t).forEach(function(s) {
|
|
23891
|
-
sL(n, s) || (cG(n, s) && e.isMergeableObject(t[s]) ? i[s] = iL(s, e)(n[s], t[s], e) : i[s] =
|
|
23891
|
+
sL(n, s) || (cG(n, s) && e.isMergeableObject(t[s]) ? i[s] = iL(s, e)(n[s], t[s], e) : i[s] = Ho(t[s], e));
|
|
23892
23892
|
}), i;
|
|
23893
23893
|
}
|
|
23894
23894
|
function ba(n, t, e) {
|
|
23895
|
-
e = e || {}, e.arrayMerge = e.arrayMerge || eL, e.isMergeableObject = e.isMergeableObject || jx, e.cloneUnlessOtherwiseSpecified =
|
|
23895
|
+
e = e || {}, e.arrayMerge = e.arrayMerge || eL, e.isMergeableObject = e.isMergeableObject || jx, e.cloneUnlessOtherwiseSpecified = Ho;
|
|
23896
23896
|
var i = Array.isArray(t), s = Array.isArray(n), l = i === s;
|
|
23897
|
-
return l ? i ? e.arrayMerge(n, t, e) : lL(n, t, e) :
|
|
23897
|
+
return l ? i ? e.arrayMerge(n, t, e) : lL(n, t, e) : Ho(t, e);
|
|
23898
23898
|
}
|
|
23899
23899
|
ba.all = function(t, e) {
|
|
23900
23900
|
if (!Array.isArray(t))
|
|
@@ -23905,7 +23905,7 @@ ba.all = function(t, e) {
|
|
|
23905
23905
|
};
|
|
23906
23906
|
var aL = ba, oL = aL;
|
|
23907
23907
|
const cL = /* @__PURE__ */ oG(oL);
|
|
23908
|
-
var
|
|
23908
|
+
var mo = function() {
|
|
23909
23909
|
var n = 0, t = document.createElement("div");
|
|
23910
23910
|
t.style.cssText = "position:fixed;top:0;left:0;cursor:pointer;opacity:0.9;z-index:10000", t.addEventListener("click", function(h) {
|
|
23911
23911
|
h.preventDefault(), i(++n % t.children.length);
|
|
@@ -23918,9 +23918,9 @@ var uo = function() {
|
|
|
23918
23918
|
t.children[r].style.display = r === h ? "block" : "none";
|
|
23919
23919
|
n = h;
|
|
23920
23920
|
}
|
|
23921
|
-
var s = (performance || Date).now(), l = s, a = 0, o = e(new
|
|
23921
|
+
var s = (performance || Date).now(), l = s, a = 0, o = e(new mo.Panel("FPS", "#0ff", "#002")), c = e(new mo.Panel("MS", "#0f0", "#020"));
|
|
23922
23922
|
if (self.performance && self.performance.memory)
|
|
23923
|
-
var d = e(new
|
|
23923
|
+
var d = e(new mo.Panel("MB", "#f08", "#201"));
|
|
23924
23924
|
return i(0), {
|
|
23925
23925
|
REVISION: 16,
|
|
23926
23926
|
dom: t,
|
|
@@ -23946,7 +23946,7 @@ var uo = function() {
|
|
|
23946
23946
|
setMode: i
|
|
23947
23947
|
};
|
|
23948
23948
|
};
|
|
23949
|
-
|
|
23949
|
+
mo.Panel = function(n, t, e) {
|
|
23950
23950
|
var i = 1 / 0, s = 0, l = Math.round, a = l(window.devicePixelRatio || 1), o = 80 * a, c = 48 * a, d = 3 * a, h = 2 * a, r = 3 * a, u = 15 * a, m = 74 * a, p = 30 * a, G = document.createElement("canvas");
|
|
23951
23951
|
G.width = o, G.height = c, G.style.cssText = "width:80px;height:48px";
|
|
23952
23952
|
var b = G.getContext("2d");
|
|
@@ -24209,7 +24209,7 @@ const rL = {
|
|
|
24209
24209
|
match: (n) => typeof n == "string",
|
|
24210
24210
|
fromHexString: D1,
|
|
24211
24211
|
toHexString: D1
|
|
24212
|
-
},
|
|
24212
|
+
}, zo = {
|
|
24213
24213
|
isPrimitive: !0,
|
|
24214
24214
|
match: (n) => typeof n == "number",
|
|
24215
24215
|
fromHexString: (n) => parseInt(n.substring(1), 16),
|
|
@@ -24220,27 +24220,27 @@ const rL = {
|
|
|
24220
24220
|
// See https://esbuild.github.io/api/#tree-shaking
|
|
24221
24221
|
match: (n) => Array.isArray(n),
|
|
24222
24222
|
fromHexString(n, t, e = 1) {
|
|
24223
|
-
const i =
|
|
24223
|
+
const i = zo.fromHexString(n);
|
|
24224
24224
|
t[0] = (i >> 16 & 255) / 255 * e, t[1] = (i >> 8 & 255) / 255 * e, t[2] = (i & 255) / 255 * e;
|
|
24225
24225
|
},
|
|
24226
24226
|
toHexString([n, t, e], i = 1) {
|
|
24227
24227
|
i = 255 / i;
|
|
24228
24228
|
const s = n * i << 16 ^ t * i << 8 ^ e * i << 0;
|
|
24229
|
-
return
|
|
24229
|
+
return zo.toHexString(s);
|
|
24230
24230
|
}
|
|
24231
24231
|
}, uL = {
|
|
24232
24232
|
isPrimitive: !1,
|
|
24233
24233
|
match: (n) => Object(n) === n,
|
|
24234
24234
|
fromHexString(n, t, e = 1) {
|
|
24235
|
-
const i =
|
|
24235
|
+
const i = zo.fromHexString(n);
|
|
24236
24236
|
t.r = (i >> 16 & 255) / 255 * e, t.g = (i >> 8 & 255) / 255 * e, t.b = (i & 255) / 255 * e;
|
|
24237
24237
|
},
|
|
24238
24238
|
toHexString({ r: n, g: t, b: e }, i = 1) {
|
|
24239
24239
|
i = 255 / i;
|
|
24240
24240
|
const s = n * i << 16 ^ t * i << 8 ^ e * i << 0;
|
|
24241
|
-
return
|
|
24241
|
+
return zo.toHexString(s);
|
|
24242
24242
|
}
|
|
24243
|
-
}, mL = [rL,
|
|
24243
|
+
}, mL = [rL, zo, hL, uL];
|
|
24244
24244
|
function pL(n) {
|
|
24245
24245
|
return mL.find((t) => t.match(n));
|
|
24246
24246
|
}
|
|
@@ -25531,15 +25531,15 @@ function Nr(n) {
|
|
|
25531
25531
|
var t = wn(n[0] * n[0] + n[1] * n[1] + n[2] * n[2]);
|
|
25532
25532
|
n[0] /= t, n[1] /= t, n[2] /= t;
|
|
25533
25533
|
}
|
|
25534
|
-
var ce, li, me, Xi, Fs, pG, bG, sa,
|
|
25534
|
+
var ce, li, me, Xi, Fs, pG, bG, sa, po, ts, kn, Rn = {
|
|
25535
25535
|
point: im,
|
|
25536
25536
|
lineStart: eb,
|
|
25537
25537
|
lineEnd: ib,
|
|
25538
25538
|
polygonStart: function() {
|
|
25539
|
-
Rn.point = GG, Rn.lineStart = EL, Rn.lineEnd = PL,
|
|
25539
|
+
Rn.point = GG, Rn.lineStart = EL, Rn.lineEnd = PL, po = new Mn(), zn.polygonStart();
|
|
25540
25540
|
},
|
|
25541
25541
|
polygonEnd: function() {
|
|
25542
|
-
zn.polygonEnd(), Rn.point = im, Rn.lineStart = eb, Rn.lineEnd = ib, Sr < 0 ? (ce = -(me = 180), li = -(Xi = 90)) :
|
|
25542
|
+
zn.polygonEnd(), Rn.point = im, Rn.lineStart = eb, Rn.lineEnd = ib, Sr < 0 ? (ce = -(me = 180), li = -(Xi = 90)) : po > k0 ? Xi = 90 : po < -k0 && (li = -90), kn[0] = ce, kn[1] = me;
|
|
25543
25543
|
},
|
|
25544
25544
|
sphere: function() {
|
|
25545
25545
|
ce = -(me = 180), li = -(Xi = 90);
|
|
@@ -25568,7 +25568,7 @@ function ib() {
|
|
|
25568
25568
|
function GG(n, t) {
|
|
25569
25569
|
if (sa) {
|
|
25570
25570
|
var e = n - Fs;
|
|
25571
|
-
|
|
25571
|
+
po.add(q0(e) > 180 ? e + (e > 0 ? 360 : -360) : e);
|
|
25572
25572
|
} else
|
|
25573
25573
|
pG = n, bG = t;
|
|
25574
25574
|
zn.point(n, t), ZG(n, t);
|
|
@@ -25577,7 +25577,7 @@ function EL() {
|
|
|
25577
25577
|
zn.lineStart();
|
|
25578
25578
|
}
|
|
25579
25579
|
function PL() {
|
|
25580
|
-
GG(pG, bG), zn.lineEnd(), q0(
|
|
25580
|
+
GG(pG, bG), zn.lineEnd(), q0(po) > k0 && (ce = -(me = 180)), kn[0] = ce, kn[1] = me, sa = null;
|
|
25581
25581
|
}
|
|
25582
25582
|
function Zi(n, t) {
|
|
25583
25583
|
return (t -= n) < 0 ? t + 360 : t;
|
|
@@ -25598,7 +25598,7 @@ function XG(n) {
|
|
|
25598
25598
|
}
|
|
25599
25599
|
return ts = kn = null, ce === 1 / 0 || li === 1 / 0 ? [[NaN, NaN], [NaN, NaN]] : [[ce, li], [me, Xi]];
|
|
25600
25600
|
}
|
|
25601
|
-
var
|
|
25601
|
+
var lo, Ir, Mr, Fr, Tr, vr, wr, Hr, nm, sm, lm, WG, yG, _e, qe, $e, Ai = {
|
|
25602
25602
|
sphere: Qe,
|
|
25603
25603
|
point: I2,
|
|
25604
25604
|
lineStart: sb,
|
|
@@ -25616,7 +25616,7 @@ function I2(n, t) {
|
|
|
25616
25616
|
fc(e * c0(n), e * i0(n), i0(t));
|
|
25617
25617
|
}
|
|
25618
25618
|
function fc(n, t, e) {
|
|
25619
|
-
++
|
|
25619
|
+
++lo, Mr += (n - Mr) / lo, Fr += (t - Fr) / lo, Tr += (e - Tr) / lo;
|
|
25620
25620
|
}
|
|
25621
25621
|
function sb() {
|
|
25622
25622
|
Ai.point = AL;
|
|
@@ -25651,7 +25651,7 @@ function VG(n, t) {
|
|
|
25651
25651
|
nm.add(r * a), sm.add(r * o), lm.add(r * c), Ir += h, vr += h * (_e + (_e = i)), wr += h * (qe + (qe = s)), Hr += h * ($e + ($e = l)), fc(_e, qe, $e);
|
|
25652
25652
|
}
|
|
25653
25653
|
function ab(n) {
|
|
25654
|
-
|
|
25654
|
+
lo = Ir = Mr = Fr = Tr = vr = wr = Hr = 0, nm = new Mn(), sm = new Mn(), lm = new Mn(), Th(n, Ai);
|
|
25655
25655
|
var t = +nm, e = +sm, i = +lm, s = _1(t, e, i);
|
|
25656
25656
|
return s < xr && (t = vr, e = wr, i = Hr, Ir < k0 && (t = Mr, e = Fr, i = Tr), s = _1(t, e, i), s < xr) ? [NaN, NaN] : [Mi(e, t) * pe, Hn(i / s) * pe];
|
|
25657
25657
|
}
|
|
@@ -26025,7 +26025,7 @@ function lC(n, t, e, i, s, l) {
|
|
|
26025
26025
|
}
|
|
26026
26026
|
}
|
|
26027
26027
|
}
|
|
26028
|
-
var
|
|
26028
|
+
var ao = 1e9, wd = -ao;
|
|
26029
26029
|
function aC(n, t, e, i) {
|
|
26030
26030
|
function s(d, h) {
|
|
26031
26031
|
return n <= d && d <= e && t <= h && h <= i;
|
|
@@ -26086,7 +26086,7 @@ function aC(n, t, e, i) {
|
|
|
26086
26086
|
else if (O && y)
|
|
26087
26087
|
h.point(w, B);
|
|
26088
26088
|
else {
|
|
26089
|
-
var E = [W = Math.max(wd, Math.min(
|
|
26089
|
+
var E = [W = Math.max(wd, Math.min(ao, W)), X = Math.max(wd, Math.min(ao, X))], q = [w = Math.max(wd, Math.min(ao, w)), B = Math.max(wd, Math.min(ao, B))];
|
|
26090
26090
|
lC(E, q, n, t, e, i) ? (y || (h.lineStart(), h.point(E[0], E[1])), h.point(q[0], q[1]), O || h.lineEnd(), R = !1) : O && (h.lineStart(), h.point(w, B), R = !1);
|
|
26091
26091
|
}
|
|
26092
26092
|
W = w, X = B, y = O;
|
|
@@ -26210,19 +26210,19 @@ function bC(n, t) {
|
|
|
26210
26210
|
return b.distance = p, b;
|
|
26211
26211
|
}
|
|
26212
26212
|
const Xb = (n) => n;
|
|
26213
|
-
var Wa = 1 / 0, kr = Wa,
|
|
26213
|
+
var Wa = 1 / 0, kr = Wa, ko = -Wa, Jr = ko, ZC = {
|
|
26214
26214
|
point: GC,
|
|
26215
26215
|
lineStart: Qe,
|
|
26216
26216
|
lineEnd: Qe,
|
|
26217
26217
|
polygonStart: Qe,
|
|
26218
26218
|
polygonEnd: Qe,
|
|
26219
26219
|
result: function() {
|
|
26220
|
-
var n = [[Wa, kr], [
|
|
26221
|
-
return
|
|
26220
|
+
var n = [[Wa, kr], [ko, Jr]];
|
|
26221
|
+
return ko = Jr = -(kr = Wa = 1 / 0), n;
|
|
26222
26222
|
}
|
|
26223
26223
|
};
|
|
26224
26224
|
function GC(n, t) {
|
|
26225
|
-
n < Wa && (Wa = n), n >
|
|
26225
|
+
n < Wa && (Wa = n), n > ko && (ko = n), t < kr && (kr = t), t > Jr && (Jr = t);
|
|
26226
26226
|
}
|
|
26227
26227
|
const Wb = ZC;
|
|
26228
26228
|
function M2(n) {
|
|
@@ -26639,7 +26639,7 @@ const JC = ["encodings_fragment", "colorspace_fragment"], KC = (
|
|
|
26639
26639
|
#include <${JC[1]}>
|
|
26640
26640
|
}
|
|
26641
26641
|
`
|
|
26642
|
-
),
|
|
26642
|
+
), bo = [];
|
|
26643
26643
|
let z0 = class extends j0 {
|
|
26644
26644
|
constructor(t) {
|
|
26645
26645
|
super({
|
|
@@ -26673,7 +26673,7 @@ let z0 = class extends j0 {
|
|
|
26673
26673
|
}),
|
|
26674
26674
|
vertexShader: KC,
|
|
26675
26675
|
fragmentShader: UC
|
|
26676
|
-
}),
|
|
26676
|
+
}), bo.push(this), this.type = "MeshLineMaterial", Object.defineProperties(this, {
|
|
26677
26677
|
lineWidth: {
|
|
26678
26678
|
enumerable: !0,
|
|
26679
26679
|
get() {
|
|
@@ -26897,8 +26897,8 @@ let z0 = class extends j0 {
|
|
|
26897
26897
|
}
|
|
26898
26898
|
dispose() {
|
|
26899
26899
|
super.dispose();
|
|
26900
|
-
const t =
|
|
26901
|
-
t > -1 &&
|
|
26900
|
+
const t = bo.indexOf(this);
|
|
26901
|
+
t > -1 && bo.splice(t, 1);
|
|
26902
26902
|
}
|
|
26903
26903
|
};
|
|
26904
26904
|
class BC extends Ie {
|
|
@@ -27082,7 +27082,7 @@ function Uu(n, t, e) {
|
|
|
27082
27082
|
return i[s];
|
|
27083
27083
|
return !1;
|
|
27084
27084
|
}
|
|
27085
|
-
const Hd = new Ae(), A0 = new Y(0, 1, 0), Yb = new Y(0, 0, 0), Nb = new Ut(), zd = new B0(), hr = new B0(), nn = new Y(), Ib = new Ut(),
|
|
27085
|
+
const Hd = new Ae(), A0 = new Y(0, 1, 0), Yb = new Y(0, 0, 0), Nb = new Ut(), zd = new B0(), hr = new B0(), nn = new Y(), Ib = new Ut(), oo = new Y(1, 0, 0), Ts = new Y(0, 1, 0), co = new Y(0, 0, 1), kd = new Y(), qa = new Y(), $a = new Y();
|
|
27086
27086
|
class OC extends G0 {
|
|
27087
27087
|
constructor() {
|
|
27088
27088
|
super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
|
|
@@ -27332,10 +27332,10 @@ class OC extends G0 {
|
|
|
27332
27332
|
a.visible = !0, a.rotation.set(0, 0, 0), a.position.copy(this.worldPosition);
|
|
27333
27333
|
let o;
|
|
27334
27334
|
if (this.camera.isOrthographicCamera ? o = (this.camera.top - this.camera.bottom) / this.camera.zoom : o = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), a.scale.set(1, 1, 1).multiplyScalar(o * this.size / 4), a.tag === "helper") {
|
|
27335
|
-
a.visible = !1, a.name === "AXIS" ? (a.visible = !!this.axis, this.axis === "X" && (ne.setFromEuler(Hd.set(0, 0, 0)), a.quaternion.copy(i).multiply(ne), Math.abs(A0.copy(
|
|
27335
|
+
a.visible = !1, a.name === "AXIS" ? (a.visible = !!this.axis, this.axis === "X" && (ne.setFromEuler(Hd.set(0, 0, 0)), a.quaternion.copy(i).multiply(ne), Math.abs(A0.copy(oo).applyQuaternion(i).dot(this.eye)) > 0.9 && (a.visible = !1)), this.axis === "Y" && (ne.setFromEuler(Hd.set(0, 0, Math.PI / 2)), a.quaternion.copy(i).multiply(ne), Math.abs(A0.copy(Ts).applyQuaternion(i).dot(this.eye)) > 0.9 && (a.visible = !1)), this.axis === "Z" && (ne.setFromEuler(Hd.set(0, Math.PI / 2, 0)), a.quaternion.copy(i).multiply(ne), Math.abs(A0.copy(co).applyQuaternion(i).dot(this.eye)) > 0.9 && (a.visible = !1)), this.axis === "XYZE" && (ne.setFromEuler(Hd.set(0, Math.PI / 2, 0)), A0.copy(this.rotationAxis), a.quaternion.setFromRotationMatrix(Nb.lookAt(Yb, A0, Ts)), a.quaternion.multiply(ne), a.visible = this.dragging), this.axis === "E" && (a.visible = !1)) : a.name === "START" ? (a.position.copy(this.worldPositionStart), a.visible = this.dragging) : a.name === "END" ? (a.position.copy(this.worldPosition), a.visible = this.dragging) : a.name === "DELTA" ? (a.position.copy(this.worldPositionStart), a.quaternion.copy(this.worldQuaternionStart), Pe.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), Pe.applyQuaternion(this.worldQuaternionStart.clone().invert()), a.scale.copy(Pe), a.visible = this.dragging) : (a.quaternion.copy(i), this.dragging ? a.position.copy(this.worldPositionStart) : a.position.copy(this.worldPosition), this.axis && (a.visible = this.axis.search(a.name) !== -1));
|
|
27336
27336
|
continue;
|
|
27337
27337
|
}
|
|
27338
|
-
a.quaternion.copy(i), this.mode === "translate" || this.mode === "scale" ? (a.name === "X" && Math.abs(A0.copy(
|
|
27338
|
+
a.quaternion.copy(i), this.mode === "translate" || this.mode === "scale" ? (a.name === "X" && Math.abs(A0.copy(oo).applyQuaternion(i).dot(this.eye)) > 0.99 && (a.scale.set(1e-10, 1e-10, 1e-10), a.visible = !1), a.name === "Y" && Math.abs(A0.copy(Ts).applyQuaternion(i).dot(this.eye)) > 0.99 && (a.scale.set(1e-10, 1e-10, 1e-10), a.visible = !1), a.name === "Z" && Math.abs(A0.copy(co).applyQuaternion(i).dot(this.eye)) > 0.99 && (a.scale.set(1e-10, 1e-10, 1e-10), a.visible = !1), a.name === "XY" && Math.abs(A0.copy(co).applyQuaternion(i).dot(this.eye)) < 0.2 && (a.scale.set(1e-10, 1e-10, 1e-10), a.visible = !1), a.name === "YZ" && Math.abs(A0.copy(oo).applyQuaternion(i).dot(this.eye)) < 0.2 && (a.scale.set(1e-10, 1e-10, 1e-10), a.visible = !1), a.name === "XZ" && Math.abs(A0.copy(Ts).applyQuaternion(i).dot(this.eye)) < 0.2 && (a.scale.set(1e-10, 1e-10, 1e-10), a.visible = !1)) : this.mode === "rotate" && (zd.copy(i), A0.copy(this.eye).applyQuaternion(ne.copy(i).invert()), a.name.search("E") !== -1 && a.quaternion.setFromRotationMatrix(Nb.lookAt(this.eye, Yb, Ts)), a.name === "X" && (ne.setFromAxisAngle(oo, Math.atan2(-A0.y, A0.z)), ne.multiplyQuaternions(zd, ne), a.quaternion.copy(ne)), a.name === "Y" && (ne.setFromAxisAngle(Ts, Math.atan2(A0.x, A0.z)), ne.multiplyQuaternions(zd, ne), a.quaternion.copy(ne)), a.name === "Z" && (ne.setFromAxisAngle(co, Math.atan2(A0.y, A0.x)), ne.multiplyQuaternions(zd, ne), a.quaternion.copy(ne))), a.visible = a.visible && (a.name.indexOf("X") === -1 || this.showX), a.visible = a.visible && (a.name.indexOf("Y") === -1 || this.showY), a.visible = a.visible && (a.name.indexOf("Z") === -1 || this.showZ), a.visible = a.visible && (a.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), a.material._color = a.material._color || a.material.color.clone(), a.material._opacity = a.material._opacity || a.material.opacity, a.material.color.copy(a.material._color), a.material.opacity = a.material._opacity, this.enabled && this.axis && (a.name === this.axis || this.axis.split("").some(function(c) {
|
|
27339
27339
|
return a.name === c;
|
|
27340
27340
|
})) && (a.material.color.setHex(16776960), a.material.opacity = 1);
|
|
27341
27341
|
}
|
|
@@ -27351,7 +27351,7 @@ class _C extends yt {
|
|
|
27351
27351
|
}
|
|
27352
27352
|
updateMatrixWorld(t) {
|
|
27353
27353
|
let e = this.space;
|
|
27354
|
-
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (e = "local"), kd.copy(
|
|
27354
|
+
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (e = "local"), kd.copy(oo).applyQuaternion(e === "local" ? this.worldQuaternion : hr), qa.copy(Ts).applyQuaternion(e === "local" ? this.worldQuaternion : hr), $a.copy(co).applyQuaternion(e === "local" ? this.worldQuaternion : hr), A0.copy(qa), this.mode) {
|
|
27355
27355
|
case "translate":
|
|
27356
27356
|
case "scale":
|
|
27357
27357
|
switch (this.axis) {
|
|
@@ -27359,19 +27359,19 @@ class _C extends yt {
|
|
|
27359
27359
|
A0.copy(this.eye).cross(kd), nn.copy(kd).cross(A0);
|
|
27360
27360
|
break;
|
|
27361
27361
|
case "Y":
|
|
27362
|
-
A0.copy(this.eye).cross(
|
|
27362
|
+
A0.copy(this.eye).cross(qa), nn.copy(qa).cross(A0);
|
|
27363
27363
|
break;
|
|
27364
27364
|
case "Z":
|
|
27365
|
-
A0.copy(this.eye).cross(
|
|
27365
|
+
A0.copy(this.eye).cross($a), nn.copy($a).cross(A0);
|
|
27366
27366
|
break;
|
|
27367
27367
|
case "XY":
|
|
27368
|
-
nn.copy(
|
|
27368
|
+
nn.copy($a);
|
|
27369
27369
|
break;
|
|
27370
27370
|
case "YZ":
|
|
27371
27371
|
nn.copy(kd);
|
|
27372
27372
|
break;
|
|
27373
27373
|
case "XZ":
|
|
27374
|
-
A0.copy(
|
|
27374
|
+
A0.copy($a), nn.copy(qa);
|
|
27375
27375
|
break;
|
|
27376
27376
|
case "XYZ":
|
|
27377
27377
|
case "E":
|
|
@@ -27601,7 +27601,7 @@ var Bu = 1 / 1e3, sS = 1e3, lS = class {
|
|
|
27601
27601
|
dispose() {
|
|
27602
27602
|
this.autoReset = !1;
|
|
27603
27603
|
}
|
|
27604
|
-
}, aS = /* @__PURE__ */ new
|
|
27604
|
+
}, aS = /* @__PURE__ */ new fa(), Dn = null;
|
|
27605
27605
|
function oS() {
|
|
27606
27606
|
if (Dn === null) {
|
|
27607
27607
|
const n = new Float32Array([-1, -1, 0, 3, -1, 0, -1, 3, 0]), t = new Float32Array([0, 0, 2, 0, 0, 2]);
|
|
@@ -30528,7 +30528,7 @@ varying vec2 vUvDown;varying vec2 vUvUp;varying vec2 vUvLeft;varying vec2 vUvRig
|
|
|
30528
30528
|
set samples(n) {
|
|
30529
30529
|
this.defines.set("SAMPLES", n.toFixed(0)), this.setChanged();
|
|
30530
30530
|
}
|
|
30531
|
-
},
|
|
30531
|
+
}, Zo = {
|
|
30532
30532
|
DEFAULT: 0,
|
|
30533
30533
|
KEEP_MAX_DEPTH: 1,
|
|
30534
30534
|
DISCARD_MAX_DEPTH: 2
|
|
@@ -30584,7 +30584,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, ZY = class e
|
|
|
30584
30584
|
DEPTH_EPSILON: "0.0001",
|
|
30585
30585
|
DEPTH_PACKING_0: "0",
|
|
30586
30586
|
DEPTH_PACKING_1: "0",
|
|
30587
|
-
DEPTH_TEST_STRATEGY:
|
|
30587
|
+
DEPTH_TEST_STRATEGY: Zo.KEEP_MAX_DEPTH
|
|
30588
30588
|
},
|
|
30589
30589
|
uniforms: {
|
|
30590
30590
|
inputBuffer: new l0(null),
|
|
@@ -30673,7 +30673,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, ZY = class e
|
|
|
30673
30673
|
return this.maxDepthStrategy;
|
|
30674
30674
|
}
|
|
30675
30675
|
set keepFar(n) {
|
|
30676
|
-
this.maxDepthStrategy = n ?
|
|
30676
|
+
this.maxDepthStrategy = n ? Zo.KEEP_MAX_DEPTH : Zo.DISCARD_MAX_DEPTH;
|
|
30677
30677
|
}
|
|
30678
30678
|
/**
|
|
30679
30679
|
* Returns the strategy for dealing with maximum depth values.
|
|
@@ -30740,7 +30740,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, ZY = class e
|
|
|
30740
30740
|
case wm:
|
|
30741
30741
|
t = "true";
|
|
30742
30742
|
break;
|
|
30743
|
-
case
|
|
30743
|
+
case Vo:
|
|
30744
30744
|
t = "abs(d1 - d0) <= DEPTH_EPSILON";
|
|
30745
30745
|
break;
|
|
30746
30746
|
case lh:
|
|
@@ -31068,7 +31068,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, ZY = class e
|
|
|
31068
31068
|
constructor(n, t, e) {
|
|
31069
31069
|
super(e), this.setAttributes(this.getAttributes() | as.DEPTH), this.camera = t, this.depthPass = new GY(n, t), this.clearPass = new H2(!0, !1, !1), this.clearPass.overrideClearColor = new rt(0), this.depthMaskPass = new hY(new ZY());
|
|
31070
31070
|
const i = this.depthMaskMaterial;
|
|
31071
|
-
i.copyCameraSettings(t), i.depthBuffer1 = this.depthPass.texture, i.depthPacking1 = ch, i.depthMode =
|
|
31071
|
+
i.copyCameraSettings(t), i.depthBuffer1 = this.depthPass.texture, i.depthPacking1 = ch, i.depthMode = Vo, this.renderTargetMasked = new ee(1, 1, { depthBuffer: !1 }), this.renderTargetMasked.texture.name = "Bloom.Masked", this.selection = new pS(), this.selection.layer = 11, this._inverted = !1, this._ignoreBackground = !1;
|
|
31072
31072
|
}
|
|
31073
31073
|
set mainScene(n) {
|
|
31074
31074
|
this.depthPass.mainScene = n;
|
|
@@ -31103,7 +31103,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, ZY = class e
|
|
|
31103
31103
|
return this._inverted;
|
|
31104
31104
|
}
|
|
31105
31105
|
set inverted(n) {
|
|
31106
|
-
this._inverted = n, this.depthMaskMaterial.depthMode = n ? lh :
|
|
31106
|
+
this._inverted = n, this.depthMaskMaterial.depthMode = n ? lh : Vo;
|
|
31107
31107
|
}
|
|
31108
31108
|
/**
|
|
31109
31109
|
* Indicates whether the mask is inverted.
|
|
@@ -31132,7 +31132,7 @@ if(keep){gl_FragColor=texture2D(inputBuffer,vUv);}else{discard;}}`, ZY = class e
|
|
|
31132
31132
|
return this._ignoreBackground;
|
|
31133
31133
|
}
|
|
31134
31134
|
set ignoreBackground(n) {
|
|
31135
|
-
this._ignoreBackground = n, this.depthMaskMaterial.maxDepthStrategy = n ?
|
|
31135
|
+
this._ignoreBackground = n, this.depthMaskMaterial.maxDepthStrategy = n ? Zo.DISCARD_MAX_DEPTH : Zo.KEEP_MAX_DEPTH;
|
|
31136
31136
|
}
|
|
31137
31137
|
/**
|
|
31138
31138
|
* Indicates whether the background is disabled.
|
|
@@ -32236,7 +32236,7 @@ const wG = (n, t, e) => {
|
|
|
32236
32236
|
};
|
|
32237
32237
|
let X0 = class {
|
|
32238
32238
|
constructor() {
|
|
32239
|
-
this.objectType = "BaseObject", this.userData = {}, this.prefab = !1, this.pm =
|
|
32239
|
+
this.objectType = "BaseObject", this.userData = {}, this.prefab = !1, this.pm = qo(), this.materialList = {}, this.useMaterialType = "origin";
|
|
32240
32240
|
}
|
|
32241
32241
|
get parent() {
|
|
32242
32242
|
const t = this.object3d.parent;
|
|
@@ -32327,7 +32327,7 @@ let X0 = class {
|
|
|
32327
32327
|
instantiate(t) {
|
|
32328
32328
|
return this.drawController.instantiate(this, {
|
|
32329
32329
|
create: (e) => {
|
|
32330
|
-
this.object3d && (e.object3d = this.object3d.clone(!0)), typeof t == "number" && t > 1 && (e.object3d = new
|
|
32330
|
+
this.object3d && (e.object3d = this.object3d.clone(!0)), typeof t == "number" && t > 1 && (e.object3d = new No(
|
|
32331
32331
|
e.object3d.geometry,
|
|
32332
32332
|
e.object3d.material,
|
|
32333
32333
|
t
|
|
@@ -32336,7 +32336,7 @@ let X0 = class {
|
|
|
32336
32336
|
});
|
|
32337
32337
|
}
|
|
32338
32338
|
setInstancedMatrix(t) {
|
|
32339
|
-
this.object3d instanceof
|
|
32339
|
+
this.object3d instanceof No && (Object.keys(t).forEach((e) => {
|
|
32340
32340
|
this.object3d.setMatrixAt(
|
|
32341
32341
|
Number(e),
|
|
32342
32342
|
t[e]
|
|
@@ -32533,7 +32533,7 @@ class wY {
|
|
|
32533
32533
|
constructor(t) {
|
|
32534
32534
|
this.customCamera = !1, this.options = t;
|
|
32535
32535
|
const { width: e, height: i, cameraParams: s } = t;
|
|
32536
|
-
if (s instanceof
|
|
32536
|
+
if (s instanceof fa)
|
|
32537
32537
|
this.camera = s, this.customCamera = !0;
|
|
32538
32538
|
else {
|
|
32539
32539
|
const { fov: l, far: a, near: o, up: c } = s, d = new $0(
|
|
@@ -32613,7 +32613,7 @@ let zY = class {
|
|
|
32613
32613
|
get: (o, c) => {
|
|
32614
32614
|
if (c === "overrideMaterial") {
|
|
32615
32615
|
const d = Reflect.get(o, c);
|
|
32616
|
-
return this.overrideMaterial = !!d,
|
|
32616
|
+
return this.overrideMaterial = !!d, bo.forEach((h) => {
|
|
32617
32617
|
this.overrideMaterial ? h.useDepth = 1 : h.useDepth = 0;
|
|
32618
32618
|
}), null;
|
|
32619
32619
|
}
|
|
@@ -32626,7 +32626,7 @@ let zY = class {
|
|
|
32626
32626
|
var t;
|
|
32627
32627
|
(t = this.scene) == null || t.traverse((e) => {
|
|
32628
32628
|
Mh(e);
|
|
32629
|
-
}),
|
|
32629
|
+
}), bo.length = 0;
|
|
32630
32630
|
}
|
|
32631
32631
|
}, kY = class {
|
|
32632
32632
|
constructor(t) {
|
|
@@ -32712,7 +32712,7 @@ let zY = class {
|
|
|
32712
32712
|
}
|
|
32713
32713
|
update(t) {
|
|
32714
32714
|
var e, i;
|
|
32715
|
-
(e = this.controls) == null || e.update(), (i = this.cameraControls) == null || i.update(t), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * t *
|
|
32715
|
+
(e = this.controls) == null || e.update(), (i = this.cameraControls) == null || i.update(t), this.autoRotateSpeed && this.cameraControls && (this.cameraControls.azimuthAngle += this.autoRotateSpeed * t * ga.DEG2RAD);
|
|
32716
32716
|
}
|
|
32717
32717
|
dispose() {
|
|
32718
32718
|
var t, e;
|
|
@@ -33026,7 +33026,7 @@ const jY = () => {
|
|
|
33026
33026
|
} catch (n) {
|
|
33027
33027
|
return !1;
|
|
33028
33028
|
}
|
|
33029
|
-
},
|
|
33029
|
+
}, to = !1, JG = jY() !== !1, KG = class UG {
|
|
33030
33030
|
constructor(t, e) {
|
|
33031
33031
|
this.raycaster = new f2(), this.installPlugins = /* @__PURE__ */ new Map(), this.event = new L2.EventEmitter(), this.clock = new Yh(), this.userData = {}, this.options = cL(UG.options, t, {
|
|
33032
33032
|
isMergeableObject: SY
|
|
@@ -33042,7 +33042,7 @@ const jY = () => {
|
|
|
33042
33042
|
o.open(!1), this.gui = o;
|
|
33043
33043
|
}
|
|
33044
33044
|
if (s) {
|
|
33045
|
-
const o = new
|
|
33045
|
+
const o = new mo();
|
|
33046
33046
|
o.showPanel(0), o.dom.style.position = "absolute", i.appendChild(o.dom), this.stats = o;
|
|
33047
33047
|
}
|
|
33048
33048
|
this.init(), this.initComposer(), this.initCSSRenderer(), this.initControls(), a && this.initResizeObserver(), this.clock.getDelta(), this.clock.getElapsedTime(), e && (Array.isArray(e) || (e = [e]), e.forEach((o) => {
|
|
@@ -33267,12 +33267,12 @@ const jY = () => {
|
|
|
33267
33267
|
}
|
|
33268
33268
|
};
|
|
33269
33269
|
KG.options = {
|
|
33270
|
-
isdev:
|
|
33271
|
-
stats:
|
|
33272
|
-
gui:
|
|
33273
|
-
helper:
|
|
33270
|
+
isdev: to,
|
|
33271
|
+
stats: to,
|
|
33272
|
+
gui: to,
|
|
33273
|
+
helper: to,
|
|
33274
33274
|
control: !0,
|
|
33275
|
-
transformControls:
|
|
33275
|
+
transformControls: to,
|
|
33276
33276
|
resizeObserver: !0,
|
|
33277
33277
|
renderer: J2(Sn({}, FY), {
|
|
33278
33278
|
antialias: JG ? "msaa" : "fxaa"
|
|
@@ -33897,7 +33897,7 @@ class pN {
|
|
|
33897
33897
|
return o.length < 1 ? null : (o.push(this.parser.createNodeMesh(t)), Promise.all(o).then((d) => {
|
|
33898
33898
|
const h = d.pop(), r = h.isGroup ? h.children : [h], u = d[0].count, m = [];
|
|
33899
33899
|
for (const p of r) {
|
|
33900
|
-
const G = new Ut(), b = new Y(), Z = new B0(), W = new Y(1, 1, 1), X = new
|
|
33900
|
+
const G = new Ut(), b = new Y(), Z = new B0(), W = new Y(1, 1, 1), X = new No(p.geometry, p.material, u);
|
|
33901
33901
|
for (let y = 0; y < u; y++)
|
|
33902
33902
|
c.TRANSLATION && b.fromBufferAttribute(c.TRANSLATION, y), c.ROTATION && Z.fromBufferAttribute(c.ROTATION, y), c.SCALE && W.fromBufferAttribute(c.SCALE, y), X.setMatrixAt(y, G.compose(b, Z, W));
|
|
33903
33903
|
for (const y in c)
|
|
@@ -33912,11 +33912,11 @@ class pN {
|
|
|
33912
33912
|
}));
|
|
33913
33913
|
}
|
|
33914
33914
|
}
|
|
33915
|
-
const BG = "glTF",
|
|
33915
|
+
const BG = "glTF", eo = 12, Qb = { JSON: 1313821514, BIN: 5130562 };
|
|
33916
33916
|
class bN {
|
|
33917
33917
|
constructor(t) {
|
|
33918
33918
|
this.name = y0.KHR_BINARY_GLTF, this.content = null, this.body = null;
|
|
33919
|
-
const e = new DataView(t, 0,
|
|
33919
|
+
const e = new DataView(t, 0, eo), i = new TextDecoder();
|
|
33920
33920
|
if (this.header = {
|
|
33921
33921
|
magic: i.decode(new Uint8Array(t.slice(0, 4))),
|
|
33922
33922
|
version: e.getUint32(4, !0),
|
|
@@ -33925,17 +33925,17 @@ class bN {
|
|
|
33925
33925
|
throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
|
|
33926
33926
|
if (this.header.version < 2)
|
|
33927
33927
|
throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
|
|
33928
|
-
const s = this.header.length -
|
|
33928
|
+
const s = this.header.length - eo, l = new DataView(t, eo);
|
|
33929
33929
|
let a = 0;
|
|
33930
33930
|
for (; a < s; ) {
|
|
33931
33931
|
const o = l.getUint32(a, !0);
|
|
33932
33932
|
a += 4;
|
|
33933
33933
|
const c = l.getUint32(a, !0);
|
|
33934
33934
|
if (a += 4, c === Qb.JSON) {
|
|
33935
|
-
const d = new Uint8Array(t,
|
|
33935
|
+
const d = new Uint8Array(t, eo + a, o);
|
|
33936
33936
|
this.content = i.decode(d);
|
|
33937
33937
|
} else if (c === Qb.BIN) {
|
|
33938
|
-
const d =
|
|
33938
|
+
const d = eo + a;
|
|
33939
33939
|
this.body = t.slice(d, d + o);
|
|
33940
33940
|
}
|
|
33941
33941
|
a += o;
|
|
@@ -33989,7 +33989,7 @@ class XN {
|
|
|
33989
33989
|
this.name = y0.KHR_MESH_QUANTIZATION;
|
|
33990
33990
|
}
|
|
33991
33991
|
}
|
|
33992
|
-
class EG extends
|
|
33992
|
+
class EG extends Ca {
|
|
33993
33993
|
constructor(t, e, i, s) {
|
|
33994
33994
|
super(t, e, i, s);
|
|
33995
33995
|
}
|
|
@@ -34045,7 +34045,7 @@ const Ci = {
|
|
|
34045
34045
|
}, Ab = {
|
|
34046
34046
|
9728: J0,
|
|
34047
34047
|
9729: Y0,
|
|
34048
|
-
9984:
|
|
34048
|
+
9984: ec,
|
|
34049
34049
|
9985: Ps,
|
|
34050
34050
|
9986: ss,
|
|
34051
34051
|
9987: oi
|
|
@@ -34672,7 +34672,7 @@ class SN {
|
|
|
34672
34672
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
34673
34673
|
return;
|
|
34674
34674
|
}
|
|
34675
|
-
return i.type === "perspective" ? e = new $0(
|
|
34675
|
+
return i.type === "perspective" ? e = new $0(ga.radToDeg(s.yfov), s.aspectRatio || 1, s.znear || 1, s.zfar || 2e6) : i.type === "orthographic" && (e = new ac(-s.xmag, s.xmag, s.ymag, -s.ymag, s.znear, s.zfar)), i.name && (e.name = this.createUniqueName(i.name)), es(e, i), Promise.resolve(e);
|
|
34676
34676
|
}
|
|
34677
34677
|
/**
|
|
34678
34678
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -35265,7 +35265,7 @@ for (var te = 0; te < 32768; ++te) {
|
|
|
35265
35265
|
var qn = (te & 43690) >> 1 | (te & 21845) << 1;
|
|
35266
35266
|
qn = (qn & 52428) >> 2 | (qn & 13107) << 2, qn = (qn & 61680) >> 4 | (qn & 3855) << 4, Zm[te] = ((qn & 65280) >> 8 | (qn & 255) << 8) >> 1;
|
|
35267
35267
|
}
|
|
35268
|
-
var
|
|
35268
|
+
var Go = function(n, t, e) {
|
|
35269
35269
|
for (var i = n.length, s = 0, l = new _l(t); s < i; ++s)
|
|
35270
35270
|
n[s] && ++l[n[s] - 1];
|
|
35271
35271
|
var a = new _l(t);
|
|
@@ -35295,7 +35295,7 @@ for (var te = 280; te < 288; ++te)
|
|
|
35295
35295
|
var OG = new Yi(32);
|
|
35296
35296
|
for (var te = 0; te < 32; ++te)
|
|
35297
35297
|
OG[te] = 5;
|
|
35298
|
-
var HN = /* @__PURE__ */
|
|
35298
|
+
var HN = /* @__PURE__ */ Go(xc, 9, 1), zN = /* @__PURE__ */ Go(OG, 5, 1), _u = function(n) {
|
|
35299
35299
|
for (var t = n[0], e = 1; e < n.length; ++e)
|
|
35300
35300
|
n[e] > t && (t = n[e]);
|
|
35301
35301
|
return t;
|
|
@@ -35356,7 +35356,7 @@ var HN = /* @__PURE__ */ Zo(xc, 9, 1), zN = /* @__PURE__ */ Zo(OG, 5, 1), _u = f
|
|
|
35356
35356
|
for (var x = new Yi(N), g = new Yi(19), I = 0; I < L; ++I)
|
|
35357
35357
|
g[FN[I]] = ki(n, r + I * 3, 7);
|
|
35358
35358
|
r += L * 3;
|
|
35359
|
-
for (var k = _u(g), v = (1 << k) - 1, H =
|
|
35359
|
+
for (var k = _u(g), v = (1 << k) - 1, H = Go(g, k, 1), I = 0; I < N; ) {
|
|
35360
35360
|
var w = H[ki(n, r, v)];
|
|
35361
35361
|
r += w & 15;
|
|
35362
35362
|
var X = w >> 4;
|
|
@@ -35369,7 +35369,7 @@ var HN = /* @__PURE__ */ Zo(xc, 9, 1), zN = /* @__PURE__ */ Zo(OG, 5, 1), _u = f
|
|
|
35369
35369
|
}
|
|
35370
35370
|
}
|
|
35371
35371
|
var E = x.subarray(0, R), q = x.subarray(R);
|
|
35372
|
-
G = _u(E), b = _u(q), m =
|
|
35372
|
+
G = _u(E), b = _u(q), m = Go(E, G, 1), p = Go(q, b, 1);
|
|
35373
35373
|
} else
|
|
35374
35374
|
Ui(1);
|
|
35375
35375
|
else {
|
|
@@ -35722,16 +35722,16 @@ class AN extends v3 {
|
|
|
35722
35722
|
const D0 = F[V.idx[I0]].type;
|
|
35723
35723
|
for (let Gn = 8 * W0; Gn < 8 * W0 + N0; ++Gn) {
|
|
35724
35724
|
fe = w0[I0][Gn];
|
|
35725
|
-
for (let
|
|
35726
|
-
const $i =
|
|
35725
|
+
for (let Fa = 0; Fa < mt; ++Fa) {
|
|
35726
|
+
const $i = Fa * 64 + (Gn & 7) * 8;
|
|
35727
35727
|
it.setUint16(fe + 0 * 2 * D0, Q0[I0][$i + 0], !0), it.setUint16(fe + 1 * 2 * D0, Q0[I0][$i + 1], !0), it.setUint16(fe + 2 * 2 * D0, Q0[I0][$i + 2], !0), it.setUint16(fe + 3 * 2 * D0, Q0[I0][$i + 3], !0), it.setUint16(fe + 4 * 2 * D0, Q0[I0][$i + 4], !0), it.setUint16(fe + 5 * 2 * D0, Q0[I0][$i + 5], !0), it.setUint16(fe + 6 * 2 * D0, Q0[I0][$i + 6], !0), it.setUint16(fe + 7 * 2 * D0, Q0[I0][$i + 7], !0), fe += 8 * 2 * D0;
|
|
35728
35728
|
}
|
|
35729
35729
|
}
|
|
35730
35730
|
if (mt != Tt)
|
|
35731
35731
|
for (let Gn = 8 * W0; Gn < 8 * W0 + N0; ++Gn) {
|
|
35732
|
-
const
|
|
35732
|
+
const Fa = w0[I0][Gn] + 8 * mt * 2 * D0, $i = mt * 64 + (Gn & 7) * 8;
|
|
35733
35733
|
for (let wc = 0; wc < Je; ++wc)
|
|
35734
|
-
it.setUint16(
|
|
35734
|
+
it.setUint16(Fa + wc * 2 * D0, Q0[I0][$i + wc], !0);
|
|
35735
35735
|
}
|
|
35736
35736
|
}
|
|
35737
35737
|
}
|
|
@@ -35775,7 +35775,7 @@ class AN extends v3 {
|
|
|
35775
35775
|
}
|
|
35776
35776
|
function J(V, C, F) {
|
|
35777
35777
|
for (let z = 0; z < 64; ++z)
|
|
35778
|
-
C[F + z] =
|
|
35778
|
+
C[F + z] = Yo.toHalfFloat(tt(V[z]));
|
|
35779
35779
|
}
|
|
35780
35780
|
function tt(V) {
|
|
35781
35781
|
return V <= 1 ? Math.sign(V) * Math.pow(Math.abs(V), 2.2) : Math.sign(V) * Math.pow(x, Math.abs(V) - 1);
|
|
@@ -35999,7 +35999,7 @@ class AN extends v3 {
|
|
|
35999
35999
|
return C.value += 4, F;
|
|
36000
36000
|
}
|
|
36001
36001
|
function ft(V, C) {
|
|
36002
|
-
return
|
|
36002
|
+
return Yo.toHalfFloat(K(V, C));
|
|
36003
36003
|
}
|
|
36004
36004
|
function Q(V) {
|
|
36005
36005
|
const C = (V & 31744) >> 10, F = V & 1023;
|
|
@@ -36398,7 +36398,7 @@ var jN = Object.defineProperty, DN = Object.defineProperties, ON = Object.getOwn
|
|
|
36398
36398
|
}, o = (c) => c.done ? i(c.value) : Promise.resolve(c.value).then(l, a);
|
|
36399
36399
|
o((e = e.apply(n, t)).next());
|
|
36400
36400
|
});
|
|
36401
|
-
class
|
|
36401
|
+
class Sa {
|
|
36402
36402
|
constructor(t) {
|
|
36403
36403
|
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;
|
|
36404
36404
|
}
|
|
@@ -36928,7 +36928,7 @@ class a7 {
|
|
|
36928
36928
|
}
|
|
36929
36929
|
}), t && (this.prefix = t), this.prefix && Object.values(this.loadObj).flat().forEach((s) => {
|
|
36930
36930
|
s.src = this.prefix + s.src;
|
|
36931
|
-
}), this.pm =
|
|
36931
|
+
}), this.pm = qo(!0), this.assetsLength === 0 ? (console.log("load end", {
|
|
36932
36932
|
assetsLength: this.assetsLength,
|
|
36933
36933
|
loaded: this.loaded,
|
|
36934
36934
|
total: this.total,
|
|
@@ -37038,7 +37038,7 @@ function wh(n, t, e) {
|
|
|
37038
37038
|
r = n[p], u = n[p + 1], r < o && (o = r), u < c && (c = u), r > d && (d = r), u > h && (h = u);
|
|
37039
37039
|
m = Math.max(d - o, h - c), m = m !== 0 ? 32767 / m : 0;
|
|
37040
37040
|
}
|
|
37041
|
-
return
|
|
37041
|
+
return Jo(l, a, e, o, c, m, 0), a;
|
|
37042
37042
|
}
|
|
37043
37043
|
function eX(n, t, e, i, s) {
|
|
37044
37044
|
var l, a;
|
|
@@ -37048,7 +37048,7 @@ function eX(n, t, e, i, s) {
|
|
|
37048
37048
|
else
|
|
37049
37049
|
for (l = e - i; l >= t; l -= i)
|
|
37050
37050
|
a = $b(l, n[l], n[l + 1], a);
|
|
37051
|
-
return a && Hh(a, a.next) && (
|
|
37051
|
+
return a && Hh(a, a.next) && (Uo(a), a = a.next), a;
|
|
37052
37052
|
}
|
|
37053
37053
|
function ll(n, t) {
|
|
37054
37054
|
if (!n)
|
|
@@ -37057,7 +37057,7 @@ function ll(n, t) {
|
|
|
37057
37057
|
var e = n, i;
|
|
37058
37058
|
do
|
|
37059
37059
|
if (i = !1, !e.steiner && (Hh(e, e.next) || re(e.prev, e, e.next) === 0)) {
|
|
37060
|
-
if (
|
|
37060
|
+
if (Uo(e), e = t = e.prev, e === e.next)
|
|
37061
37061
|
break;
|
|
37062
37062
|
i = !0;
|
|
37063
37063
|
} else
|
|
@@ -37065,16 +37065,16 @@ function ll(n, t) {
|
|
|
37065
37065
|
while (i || e !== t);
|
|
37066
37066
|
return t;
|
|
37067
37067
|
}
|
|
37068
|
-
function
|
|
37068
|
+
function Jo(n, t, e, i, s, l, a) {
|
|
37069
37069
|
if (n) {
|
|
37070
37070
|
!a && l && Z7(n, i, s, l);
|
|
37071
37071
|
for (var o = n, c, d; n.prev !== n.next; ) {
|
|
37072
37072
|
if (c = n.prev, d = n.next, l ? c7(n, i, s, l) : o7(n)) {
|
|
37073
|
-
t.push(c.i / e | 0), t.push(n.i / e | 0), t.push(d.i / e | 0),
|
|
37073
|
+
t.push(c.i / e | 0), t.push(n.i / e | 0), t.push(d.i / e | 0), Uo(n), n = d.next, o = d.next;
|
|
37074
37074
|
continue;
|
|
37075
37075
|
}
|
|
37076
37076
|
if (n = d, n === o) {
|
|
37077
|
-
a ? a === 1 ? (n = d7(ll(n), t, e),
|
|
37077
|
+
a ? a === 1 ? (n = d7(ll(n), t, e), Jo(n, t, e, i, s, l, 2)) : a === 2 && r7(n, t, e, i, s, l) : Jo(ll(n), t, e, i, s, l, 1);
|
|
37078
37078
|
break;
|
|
37079
37079
|
}
|
|
37080
37080
|
}
|
|
@@ -37116,7 +37116,7 @@ function d7(n, t, e) {
|
|
|
37116
37116
|
var i = n;
|
|
37117
37117
|
do {
|
|
37118
37118
|
var s = i.prev, l = i.next.next;
|
|
37119
|
-
!Hh(s, l) && iX(s, i, i.next, l) &&
|
|
37119
|
+
!Hh(s, l) && iX(s, i, i.next, l) && Ko(s, l) && Ko(l, s) && (t.push(s.i / e | 0), t.push(i.i / e | 0), t.push(l.i / e | 0), Uo(i), Uo(i.next), i = n = l), i = i.next;
|
|
37120
37120
|
} while (i !== n);
|
|
37121
37121
|
return ll(i);
|
|
37122
37122
|
}
|
|
@@ -37126,7 +37126,7 @@ function r7(n, t, e, i, s, l) {
|
|
|
37126
37126
|
for (var o = a.next.next; o !== a.prev; ) {
|
|
37127
37127
|
if (a.i !== o.i && W7(a, o)) {
|
|
37128
37128
|
var c = nX(a, o);
|
|
37129
|
-
a = ll(a, a.next), c = ll(c, c.next),
|
|
37129
|
+
a = ll(a, a.next), c = ll(c, c.next), Jo(a, t, e, i, s, l, 0), Jo(c, t, e, i, s, l, 0);
|
|
37130
37130
|
return;
|
|
37131
37131
|
}
|
|
37132
37132
|
o = o.next;
|
|
@@ -37167,7 +37167,7 @@ function p7(n, t) {
|
|
|
37167
37167
|
var c = a, d = a.x, h = a.y, r = 1 / 0, u;
|
|
37168
37168
|
e = a;
|
|
37169
37169
|
do
|
|
37170
|
-
i >= e.x && e.x >= d && i !== e.x && ql(s < h ? i : l, s, d, h, s < h ? l : i, s, e.x, e.y) && (u = Math.abs(s - e.y) / (i - e.x),
|
|
37170
|
+
i >= e.x && e.x >= d && i !== e.x && ql(s < h ? i : l, s, d, h, s < h ? l : i, s, e.x, e.y) && (u = Math.abs(s - e.y) / (i - e.x), Ko(e, n) && (u < r || u === r && (e.x > a.x || e.x === a.x && b7(a, e))) && (a = e, r = u)), e = e.next;
|
|
37171
37171
|
while (e !== c);
|
|
37172
37172
|
return a;
|
|
37173
37173
|
}
|
|
@@ -37210,7 +37210,7 @@ function ql(n, t, e, i, s, l, a, o) {
|
|
|
37210
37210
|
}
|
|
37211
37211
|
function W7(n, t) {
|
|
37212
37212
|
return n.next.i !== t.i && n.prev.i !== t.i && !y7(n, t) && // dones't intersect other edges
|
|
37213
|
-
(
|
|
37213
|
+
(Ko(n, t) && Ko(t, n) && V7(n, t) && // locally visible
|
|
37214
37214
|
(re(n.prev, n, t.prev) || re(n, t.prev, t)) || // does not create opposite-facing sectors
|
|
37215
37215
|
Hh(n, t) && re(n.prev, n, n.next) > 0 && re(t.prev, t, t.next) > 0);
|
|
37216
37216
|
}
|
|
@@ -37239,7 +37239,7 @@ function y7(n, t) {
|
|
|
37239
37239
|
} while (e !== n);
|
|
37240
37240
|
return !1;
|
|
37241
37241
|
}
|
|
37242
|
-
function
|
|
37242
|
+
function Ko(n, t) {
|
|
37243
37243
|
return re(n.prev, n, n.next) < 0 ? re(n, t, n.next) >= 0 && re(n, n.prev, t) >= 0 : re(n, t, n.prev) < 0 || re(n, n.next, t) < 0;
|
|
37244
37244
|
}
|
|
37245
37245
|
function V7(n, t) {
|
|
@@ -37257,7 +37257,7 @@ function $b(n, t, e, i) {
|
|
|
37257
37257
|
var s = new Xm(n, t, e);
|
|
37258
37258
|
return i ? (s.next = i.next, s.prev = i, i.next.prev = s, i.next = s) : (s.prev = s, s.next = s), s;
|
|
37259
37259
|
}
|
|
37260
|
-
function
|
|
37260
|
+
function Uo(n) {
|
|
37261
37261
|
n.next.prev = n.prev, n.prev.next = n.next, n.prevZ && (n.prevZ.nextZ = n.nextZ), n.nextZ && (n.nextZ.prevZ = n.prevZ);
|
|
37262
37262
|
}
|
|
37263
37263
|
function Xm(n, t, e) {
|
|
@@ -37457,14 +37457,14 @@ function Bd(n, t, e, i, s, l) {
|
|
|
37457
37457
|
return Math.abs(c) >= I7 * d ? c : -T7(n, t, e, i, s, l, d);
|
|
37458
37458
|
}
|
|
37459
37459
|
const n5 = Math.pow(2, -52), Ed = new Uint32Array(512);
|
|
37460
|
-
class
|
|
37460
|
+
class Bo {
|
|
37461
37461
|
static from(t, e = k7, i = J7) {
|
|
37462
37462
|
const s = t.length, l = new Float64Array(s * 2);
|
|
37463
37463
|
for (let a = 0; a < s; a++) {
|
|
37464
37464
|
const o = t[a];
|
|
37465
37465
|
l[2 * a] = e(o), l[2 * a + 1] = i(o);
|
|
37466
37466
|
}
|
|
37467
|
-
return new
|
|
37467
|
+
return new Bo(l);
|
|
37468
37468
|
}
|
|
37469
37469
|
constructor(t) {
|
|
37470
37470
|
const e = t.length >> 1;
|
|
@@ -37647,7 +37647,7 @@ function $l(n, t, e, i) {
|
|
|
37647
37647
|
else {
|
|
37648
37648
|
const s = e + i >> 1;
|
|
37649
37649
|
let l = e + 1, a = i;
|
|
37650
|
-
|
|
37650
|
+
io(n, s, l), t[n[e]] > t[n[i]] && io(n, e, i), t[n[l]] > t[n[i]] && io(n, l, i), t[n[e]] > t[n[l]] && io(n, e, l);
|
|
37651
37651
|
const o = n[l], c = t[o];
|
|
37652
37652
|
for (; ; ) {
|
|
37653
37653
|
do
|
|
@@ -37658,12 +37658,12 @@ function $l(n, t, e, i) {
|
|
|
37658
37658
|
while (t[n[a]] > c);
|
|
37659
37659
|
if (a < l)
|
|
37660
37660
|
break;
|
|
37661
|
-
|
|
37661
|
+
io(n, l, a);
|
|
37662
37662
|
}
|
|
37663
37663
|
n[e + 1] = n[a], n[a] = o, i - l + 1 >= a - e ? ($l(n, t, l, i), $l(n, t, e, a - 1)) : ($l(n, t, e, a - 1), $l(n, t, l, i));
|
|
37664
37664
|
}
|
|
37665
37665
|
}
|
|
37666
|
-
function
|
|
37666
|
+
function io(n, t, e) {
|
|
37667
37667
|
const i = n[t];
|
|
37668
37668
|
n[t] = n[e], n[e] = i;
|
|
37669
37669
|
}
|
|
@@ -38020,7 +38020,7 @@ class U2 {
|
|
|
38020
38020
|
return new U2("length" in t ? D7(t, e, i, s) : Float64Array.from(O7(t, e, i, s)));
|
|
38021
38021
|
}
|
|
38022
38022
|
constructor(t) {
|
|
38023
|
-
this._delaunator = new
|
|
38023
|
+
this._delaunator = new Bo(t), this.inedges = new Int32Array(t.length / 2), this._hullIndex = new Int32Array(t.length / 2), this.points = this._delaunator.coords, this._init();
|
|
38024
38024
|
}
|
|
38025
38025
|
update() {
|
|
38026
38026
|
return this._delaunator.update(), this._init(), this;
|
|
@@ -38034,7 +38034,7 @@ class U2 {
|
|
|
38034
38034
|
const p = j7(e[2 * u], e[2 * u + 1], r);
|
|
38035
38035
|
e[2 * u] = p[0], e[2 * u + 1] = p[1];
|
|
38036
38036
|
}
|
|
38037
|
-
this._delaunator = new
|
|
38037
|
+
this._delaunator = new Bo(e);
|
|
38038
38038
|
} else
|
|
38039
38039
|
delete this.collinear;
|
|
38040
38040
|
const i = this.halfedges = this._delaunator.halfedges, s = this.hull = this._delaunator.hull, l = this.triangles = this._delaunator.triangles, a = this.inedges.fill(-1), o = this._hullIndex.fill(-1);
|
|
@@ -38543,7 +38543,7 @@ function oX(n, t) {
|
|
|
38543
38543
|
}
|
|
38544
38544
|
function Cc() {
|
|
38545
38545
|
}
|
|
38546
|
-
var
|
|
38546
|
+
var Eo = 0.7, Pr = 1 / Eo, aa = "\\s*([+-]?\\d+)\\s*", Po = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", pn = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", bI = /^#([0-9a-f]{3,8})$/, ZI = new RegExp(`^rgb\\(${aa},${aa},${aa}\\)$`), GI = new RegExp(`^rgb\\(${pn},${pn},${pn}\\)$`), XI = new RegExp(`^rgba\\(${aa},${aa},${aa},${Po}\\)$`), WI = new RegExp(`^rgba\\(${pn},${pn},${pn},${Po}\\)$`), yI = new RegExp(`^hsl\\(${Po},${pn},${pn}\\)$`), VI = new RegExp(`^hsla\\(${Po},${pn},${pn},${Po}\\)$`), u5 = {
|
|
38547
38547
|
aliceblue: 15792383,
|
|
38548
38548
|
antiquewhite: 16444375,
|
|
38549
38549
|
aqua: 65535,
|
|
@@ -38693,7 +38693,7 @@ var Bo = 0.7, Pr = 1 / Bo, aa = "\\s*([+-]?\\d+)\\s*", Eo = "\\s*([+-]?(?:\\d*\\
|
|
|
38693
38693
|
yellow: 16776960,
|
|
38694
38694
|
yellowgreen: 10145074
|
|
38695
38695
|
};
|
|
38696
|
-
Q2(Cc,
|
|
38696
|
+
Q2(Cc, Qo, {
|
|
38697
38697
|
copy(n) {
|
|
38698
38698
|
return Object.assign(new this.constructor(), this, n);
|
|
38699
38699
|
},
|
|
@@ -38720,7 +38720,7 @@ function fI() {
|
|
|
38720
38720
|
function p5() {
|
|
38721
38721
|
return this.rgb().formatRgb();
|
|
38722
38722
|
}
|
|
38723
|
-
function
|
|
38723
|
+
function Qo(n) {
|
|
38724
38724
|
var t, e;
|
|
38725
38725
|
return n = (n + "").trim().toLowerCase(), (t = bI.exec(n)) ? (e = t[1].length, t = parseInt(t[1], 16), e === 6 ? b5(t) : e === 3 ? new ri(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : e === 8 ? Pd(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : e === 4 ? Pd(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = ZI.exec(n)) ? new ri(t[1], t[2], t[3], 1) : (t = GI.exec(n)) ? new ri(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = XI.exec(n)) ? Pd(t[1], t[2], t[3], t[4]) : (t = WI.exec(n)) ? Pd(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = yI.exec(n)) ? X5(t[1], t[2] / 100, t[3] / 100, 1) : (t = VI.exec(n)) ? X5(t[1], t[2] / 100, t[3] / 100, t[4]) : u5.hasOwnProperty(n) ? b5(u5[n]) : n === "transparent" ? new ri(NaN, NaN, NaN, 0) : null;
|
|
38726
38726
|
}
|
|
@@ -38731,7 +38731,7 @@ function Pd(n, t, e, i) {
|
|
|
38731
38731
|
return i <= 0 && (n = t = e = NaN), new ri(n, t, e, i);
|
|
38732
38732
|
}
|
|
38733
38733
|
function RI(n) {
|
|
38734
|
-
return n instanceof Cc || (n =
|
|
38734
|
+
return n instanceof Cc || (n = Qo(n)), n ? (n = n.rgb(), new ri(n.r, n.g, n.b, n.opacity)) : new ri();
|
|
38735
38735
|
}
|
|
38736
38736
|
function gm(n, t, e, i) {
|
|
38737
38737
|
return arguments.length === 1 ? RI(n) : new ri(n, t, e, i == null ? 1 : i);
|
|
@@ -38744,7 +38744,7 @@ Q2(ri, gm, oX(Cc, {
|
|
|
38744
38744
|
return n = n == null ? Pr : Math.pow(Pr, n), new ri(this.r * n, this.g * n, this.b * n, this.opacity);
|
|
38745
38745
|
},
|
|
38746
38746
|
darker(n) {
|
|
38747
|
-
return n = n == null ?
|
|
38747
|
+
return n = n == null ? Eo : Math.pow(Eo, n), new ri(this.r * n, this.g * n, this.b * n, this.opacity);
|
|
38748
38748
|
},
|
|
38749
38749
|
rgb() {
|
|
38750
38750
|
return this;
|
|
@@ -38787,7 +38787,7 @@ function X5(n, t, e, i) {
|
|
|
38787
38787
|
function cX(n) {
|
|
38788
38788
|
if (n instanceof Qi)
|
|
38789
38789
|
return new Qi(n.h, n.s, n.l, n.opacity);
|
|
38790
|
-
if (n instanceof Cc || (n =
|
|
38790
|
+
if (n instanceof Cc || (n = Qo(n)), !n)
|
|
38791
38791
|
return new Qi();
|
|
38792
38792
|
if (n instanceof Qi)
|
|
38793
38793
|
return n;
|
|
@@ -38806,7 +38806,7 @@ Q2(Qi, LI, oX(Cc, {
|
|
|
38806
38806
|
return n = n == null ? Pr : Math.pow(Pr, n), new Qi(this.h, this.s, this.l * n, this.opacity);
|
|
38807
38807
|
},
|
|
38808
38808
|
darker(n) {
|
|
38809
|
-
return n = n == null ?
|
|
38809
|
+
return n = n == null ? Eo : Math.pow(Eo, n), new Qi(this.h, this.s, this.l * n, this.opacity);
|
|
38810
38810
|
},
|
|
38811
38811
|
rgb() {
|
|
38812
38812
|
var n = this.h % 360 + (this.h < 0) * 360, t = isNaN(n) || isNaN(this.s) ? 0 : this.s, e = this.l, i = e + (e < 0.5 ? e : 1 - e) * t, s = 2 * e - i;
|
|
@@ -38936,7 +38936,7 @@ function HI(n, t) {
|
|
|
38936
38936
|
}
|
|
38937
38937
|
function j2(n, t) {
|
|
38938
38938
|
var e = typeof t, i;
|
|
38939
|
-
return t == null || e === "boolean" ? A2(t) : (e === "number" ? Ar : e === "string" ? (i =
|
|
38939
|
+
return t == null || e === "boolean" ? A2(t) : (e === "number" ? Ar : e === "string" ? (i = Qo(t)) ? (t = i, y5) : HI : t instanceof Qo ? y5 : t instanceof Date ? FI : II(t) ? NI : Array.isArray(t) ? MI : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? TI : Ar)(n, t);
|
|
38940
38940
|
}
|
|
38941
38941
|
function zI(n, t) {
|
|
38942
38942
|
return n = +n, t = +t, function(e) {
|
|
@@ -39263,7 +39263,7 @@ var aM = Object.defineProperty, oM = Object.defineProperties, cM = Object.getOwn
|
|
|
39263
39263
|
for (var i of Or(n))
|
|
39264
39264
|
t.indexOf(i) < 0 && pX.call(n, i) && (e[i] = n[i]);
|
|
39265
39265
|
return e;
|
|
39266
|
-
},
|
|
39266
|
+
}, Ao = (n, t, e) => new Promise((i, s) => {
|
|
39267
39267
|
var l = (c) => {
|
|
39268
39268
|
try {
|
|
39269
39269
|
o(e.next(c));
|
|
@@ -39280,7 +39280,7 @@ var aM = Object.defineProperty, oM = Object.defineProperties, cM = Object.getOwn
|
|
|
39280
39280
|
o((e = e.apply(n, t)).next());
|
|
39281
39281
|
});
|
|
39282
39282
|
const ZX = "PlaneGeometry";
|
|
39283
|
-
class
|
|
39283
|
+
class Ya extends X0 {
|
|
39284
39284
|
constructor(t) {
|
|
39285
39285
|
super(), this.scaleValue = 1, this.options = Ii({
|
|
39286
39286
|
scale: 1
|
|
@@ -39291,7 +39291,7 @@ class Sa extends X0 {
|
|
|
39291
39291
|
return (t = this.object3d) == null ? void 0 : t.material;
|
|
39292
39292
|
}
|
|
39293
39293
|
getMaterial() {
|
|
39294
|
-
return
|
|
39294
|
+
return Ao(this, null, function* () {
|
|
39295
39295
|
const {
|
|
39296
39296
|
src: t,
|
|
39297
39297
|
texture: e,
|
|
@@ -39305,7 +39305,7 @@ class Sa extends X0 {
|
|
|
39305
39305
|
sizeAttenuation: h,
|
|
39306
39306
|
color: r
|
|
39307
39307
|
} = this.options, u = e || (yield new b2().loadAsync(t));
|
|
39308
|
-
return d ? new
|
|
39308
|
+
return d ? new xa({
|
|
39309
39309
|
map: u,
|
|
39310
39310
|
transparent: i != null ? i : !1,
|
|
39311
39311
|
blending: l != null ? l : ji,
|
|
@@ -39327,7 +39327,7 @@ class Sa extends X0 {
|
|
|
39327
39327
|
});
|
|
39328
39328
|
}
|
|
39329
39329
|
create() {
|
|
39330
|
-
return
|
|
39330
|
+
return Ao(this, null, function* () {
|
|
39331
39331
|
const { position: t, material: e, sprite: i } = this.options, s = e || (yield this.getMaterial());
|
|
39332
39332
|
i ? this.createSprite(s) : this.createMesh(new Nh[ZX](1, 1), s), t && this.object3d.position.copy(t);
|
|
39333
39333
|
});
|
|
@@ -39370,7 +39370,7 @@ class hM extends X0 {
|
|
|
39370
39370
|
loop: c,
|
|
39371
39371
|
alphaTest: d,
|
|
39372
39372
|
sprite: h
|
|
39373
|
-
} = this.options, r =
|
|
39373
|
+
} = this.options, r = qo();
|
|
39374
39374
|
if (!t)
|
|
39375
39375
|
return Promise.reject("src is required");
|
|
39376
39376
|
const u = document.createElement("video");
|
|
@@ -39379,7 +39379,7 @@ class hM extends X0 {
|
|
|
39379
39379
|
() => {
|
|
39380
39380
|
const m = new dc(u);
|
|
39381
39381
|
m.format = a != null ? a : xe, m.needsUpdate = !0;
|
|
39382
|
-
const p = h ? new
|
|
39382
|
+
const p = h ? new xa({
|
|
39383
39383
|
map: m,
|
|
39384
39384
|
transparent: e != null ? e : !1,
|
|
39385
39385
|
blending: i != null ? i : ji,
|
|
@@ -39400,7 +39400,7 @@ class hM extends X0 {
|
|
|
39400
39400
|
), u.src = t, u.muted = !0, u.autoplay = o, u.loop = c, u.preload = "auto", r.promise;
|
|
39401
39401
|
}
|
|
39402
39402
|
create() {
|
|
39403
|
-
return
|
|
39403
|
+
return Ao(this, null, function* () {
|
|
39404
39404
|
const { scale: t, position: e, src: i, cache: s, sprite: l } = this.options, a = i && (s ? yield s.get(i, () => this.getMaterial()) : yield this.getMaterial());
|
|
39405
39405
|
this.video = a.map.image, l ? this.createSprite(a) : this.createMesh(new Nh[ZX](1, 1), a), this.setScale(t), e && this.object3d.position.copy(e);
|
|
39406
39406
|
});
|
|
@@ -39420,7 +39420,7 @@ class hM extends X0 {
|
|
|
39420
39420
|
this.video.pause(), this.video.src = "", super.dispose();
|
|
39421
39421
|
}
|
|
39422
39422
|
}
|
|
39423
|
-
class
|
|
39423
|
+
class Na extends X0 {
|
|
39424
39424
|
constructor(t) {
|
|
39425
39425
|
super(), this.objectType = "BaseObject#Node", this.drawGroupShow = !0, this.visibleCache = !0, this.options = Ii({
|
|
39426
39426
|
event: "click"
|
|
@@ -39766,7 +39766,7 @@ const s1 = (n) => {
|
|
|
39766
39766
|
const { setPointWidth: t, nodes: e } = n, i = new mM();
|
|
39767
39767
|
return i.setPoints(e, t), i;
|
|
39768
39768
|
};
|
|
39769
|
-
class
|
|
39769
|
+
class Ia extends X0 {
|
|
39770
39770
|
constructor(t = {}) {
|
|
39771
39771
|
super(), this.options = Ii({}, t);
|
|
39772
39772
|
}
|
|
@@ -39775,7 +39775,7 @@ class Na extends X0 {
|
|
|
39775
39775
|
return (t = this.object3d) == null ? void 0 : t.material;
|
|
39776
39776
|
}
|
|
39777
39777
|
create() {
|
|
39778
|
-
return
|
|
39778
|
+
return Ao(this, null, function* () {
|
|
39779
39779
|
const {
|
|
39780
39780
|
nodes: t,
|
|
39781
39781
|
nodesArr: e,
|
|
@@ -39952,7 +39952,7 @@ function XM(n, { resolution: t = 1 / 0, bbox: e } = {}) {
|
|
|
39952
39952
|
}
|
|
39953
39953
|
});
|
|
39954
39954
|
} else if (l.length) {
|
|
39955
|
-
const Z =
|
|
39955
|
+
const Z = Bo.from(a);
|
|
39956
39956
|
for (let W = 0, X = Z.triangles.length; W < X; W += 3) {
|
|
39957
39957
|
const y = [2, 1, 0].map((R) => Z.triangles[W + R]), f = y.map((R) => a[R]);
|
|
39958
39958
|
if (y.some((R) => R < s.length)) {
|
|
@@ -40441,14 +40441,14 @@ const F5 = (n) => {
|
|
|
40441
40441
|
});
|
|
40442
40442
|
return S7(), d;
|
|
40443
40443
|
};
|
|
40444
|
-
class
|
|
40444
|
+
class Ma extends X0 {
|
|
40445
40445
|
constructor(t) {
|
|
40446
40446
|
super(), this.options = Ii({
|
|
40447
40447
|
depth: 1
|
|
40448
40448
|
}, t);
|
|
40449
40449
|
}
|
|
40450
40450
|
create() {
|
|
40451
|
-
return
|
|
40451
|
+
return Ao(this, null, function* () {
|
|
40452
40452
|
const {
|
|
40453
40453
|
points: t,
|
|
40454
40454
|
pointsArr: e,
|
|
@@ -40712,7 +40712,7 @@ class CM extends X0 {
|
|
|
40712
40712
|
this.line && (this.line.material.uniforms.color.value = new rt(e));
|
|
40713
40713
|
}
|
|
40714
40714
|
animateIn(e) {
|
|
40715
|
-
this.line && new
|
|
40715
|
+
this.line && new wo.Tween(this.line.material.uniforms.visibility).to({ value: 1 }, 500).onComplete(() => {
|
|
40716
40716
|
this.line.material.uniforms.offset.value.x = 1, this.options.offsetLoop ? this.line.animate(e) : this.line.animate2({ duration: e, repeat: 1 / 0 });
|
|
40717
40717
|
}).start();
|
|
40718
40718
|
}
|
|
@@ -40805,7 +40805,7 @@ class FM extends X0 {
|
|
|
40805
40805
|
}
|
|
40806
40806
|
class TM extends X0 {
|
|
40807
40807
|
create() {
|
|
40808
|
-
const t = new
|
|
40808
|
+
const t = new La();
|
|
40809
40809
|
this.createMesh(
|
|
40810
40810
|
t,
|
|
40811
40811
|
new le({ side: K0 })
|
|
@@ -40843,7 +40843,7 @@ class q2 extends X0 {
|
|
|
40843
40843
|
}
|
|
40844
40844
|
class zM extends X0 {
|
|
40845
40845
|
create() {
|
|
40846
|
-
this.createSprite(new
|
|
40846
|
+
this.createSprite(new xa()), this.scale.multiplyScalar(20);
|
|
40847
40847
|
}
|
|
40848
40848
|
}
|
|
40849
40849
|
class kM extends X0 {
|
|
@@ -40876,10 +40876,10 @@ class UM extends X0 {
|
|
|
40876
40876
|
}
|
|
40877
40877
|
}
|
|
40878
40878
|
const BM = {
|
|
40879
|
-
Node:
|
|
40880
|
-
Image:
|
|
40881
|
-
Line:
|
|
40882
|
-
ExtrudePolygon:
|
|
40879
|
+
Node: Na,
|
|
40880
|
+
Image: Ya,
|
|
40881
|
+
Line: Ia,
|
|
40882
|
+
ExtrudePolygon: Ma,
|
|
40883
40883
|
Group: ml,
|
|
40884
40884
|
Light: Sc,
|
|
40885
40885
|
Point: RM,
|
|
@@ -40901,7 +40901,7 @@ const BM = {
|
|
|
40901
40901
|
Icosahedron: FM,
|
|
40902
40902
|
Lathe: TM,
|
|
40903
40903
|
Octahedron: vM
|
|
40904
|
-
}, cn = new
|
|
40904
|
+
}, cn = new Sa(Bt(Bt({}, BM), EM));
|
|
40905
40905
|
cn.pluginName += "_all";
|
|
40906
40906
|
class PM {
|
|
40907
40907
|
constructor() {
|
|
@@ -41033,7 +41033,7 @@ function Ql(n) {
|
|
|
41033
41033
|
const t = new t0();
|
|
41034
41034
|
return t.color.setScalar(n), t;
|
|
41035
41035
|
}
|
|
41036
|
-
const GX = "0.12.
|
|
41036
|
+
const GX = "0.12.33", a1 = !1;
|
|
41037
41037
|
class pl {
|
|
41038
41038
|
constructor(t, e = {}) {
|
|
41039
41039
|
P(this, "container");
|
|
@@ -41237,7 +41237,7 @@ class pl {
|
|
|
41237
41237
|
});
|
|
41238
41238
|
}
|
|
41239
41239
|
tween(t) {
|
|
41240
|
-
return new
|
|
41240
|
+
return new wo.Tween(t);
|
|
41241
41241
|
}
|
|
41242
41242
|
lookAt(t, e, i, s, l, a, o = !1) {
|
|
41243
41243
|
this.pencil.cameraControls.setLookAt(
|
|
@@ -41725,7 +41725,7 @@ class yX extends X0 {
|
|
|
41725
41725
|
});
|
|
41726
41726
|
}
|
|
41727
41727
|
getPointInContinentInfo(e) {
|
|
41728
|
-
return l9.features.find((i) => i.geometry.coordinates.some((s) => s.length ? Mm(E5(e),
|
|
41728
|
+
return l9.features.find((i) => i.geometry.coordinates.some((s) => s.length ? Mm(E5(e), $o(s)) : !1));
|
|
41729
41729
|
}
|
|
41730
41730
|
getPointInContinent(e) {
|
|
41731
41731
|
return !!this.getPointInContinentInfo(e);
|
|
@@ -41768,17 +41768,17 @@ class VX extends X0 {
|
|
|
41768
41768
|
}
|
|
41769
41769
|
}
|
|
41770
41770
|
const jM = {
|
|
41771
|
-
Node:
|
|
41772
|
-
Image:
|
|
41773
|
-
Line:
|
|
41771
|
+
Node: Na,
|
|
41772
|
+
Image: Ya,
|
|
41773
|
+
Line: Ia,
|
|
41774
41774
|
PlaneMap: WX,
|
|
41775
41775
|
ContinentsBg: yX,
|
|
41776
|
-
ExtrudePolygon:
|
|
41776
|
+
ExtrudePolygon: Ma,
|
|
41777
41777
|
Group: ml,
|
|
41778
41778
|
Light: Sc,
|
|
41779
41779
|
PlaneShadow: VX
|
|
41780
|
-
}, ln = new
|
|
41781
|
-
const t =
|
|
41780
|
+
}, ln = new Sa(jM), ns = (n) => {
|
|
41781
|
+
const t = qo(!0);
|
|
41782
41782
|
return fetch(n).then((e) => {
|
|
41783
41783
|
if (e.ok)
|
|
41784
41784
|
return e.json();
|
|
@@ -42231,7 +42231,7 @@ const jM = {
|
|
|
42231
42231
|
}
|
|
42232
42232
|
}
|
|
42233
42233
|
booleanPointInCn(e) {
|
|
42234
|
-
return n9.features[0].geometry.coordinates.some((i) => Mm(E5(e),
|
|
42234
|
+
return n9.features[0].geometry.coordinates.some((i) => Mm(E5(e), $o(i)));
|
|
42235
42235
|
}
|
|
42236
42236
|
handleDrillDown(s) {
|
|
42237
42237
|
return Gt(this, arguments, function* ({
|
|
@@ -42351,7 +42351,7 @@ const jM = {
|
|
|
42351
42351
|
});
|
|
42352
42352
|
}
|
|
42353
42353
|
paddingInCssPixel(e, i, s, l, a, o) {
|
|
42354
|
-
const { camera: c, cameraControls: d } = this.pencil, h = c.fov *
|
|
42354
|
+
const { camera: c, cameraControls: d } = this.pencil, h = c.fov * ga.DEG2RAD, r = this.pencil.getSize().height, { size: u } = e.getSize(), m = u.x, p = u.y, G = u.z;
|
|
42355
42355
|
let b = d.getDistanceToFitBox(
|
|
42356
42356
|
m,
|
|
42357
42357
|
p,
|
|
@@ -42517,8 +42517,8 @@ const jM = {
|
|
|
42517
42517
|
}
|
|
42518
42518
|
};
|
|
42519
42519
|
P(Hs, "VisName", "map");
|
|
42520
|
-
let
|
|
42521
|
-
const
|
|
42520
|
+
let jo = Hs;
|
|
42521
|
+
const Xo = class Xo extends pl {
|
|
42522
42522
|
constructor(e, i) {
|
|
42523
42523
|
super(e, Bt({
|
|
42524
42524
|
mapDepth: 1,
|
|
@@ -42547,7 +42547,7 @@ const Go = class Go extends pl {
|
|
|
42547
42547
|
}
|
|
42548
42548
|
handleSetting(e, i) {
|
|
42549
42549
|
return Gt(this, null, function* () {
|
|
42550
|
-
return yield Ri(
|
|
42550
|
+
return yield Ri(Xo.prototype, this, "handleSetting").call(this, e, i), e === "label" && (i === !1 ? this.eraseLabels() : yield this.drawLabels()), i;
|
|
42551
42551
|
});
|
|
42552
42552
|
}
|
|
42553
42553
|
drawLabels() {
|
|
@@ -42572,7 +42572,7 @@ const Go = class Go extends pl {
|
|
|
42572
42572
|
}
|
|
42573
42573
|
init() {
|
|
42574
42574
|
return Gt(this, null, function* () {
|
|
42575
|
-
yield Ri(
|
|
42575
|
+
yield Ri(Xo.prototype, this, "init").call(this), this.pencil.camera.near = Cm.camera.near * 100, this.pencil.camera.updateProjectionMatrix(), this.loaderAdd(), yield this.loader.load(), this.projection = ya({
|
|
42576
42576
|
center: [0, 0],
|
|
42577
42577
|
scale: this.pscale,
|
|
42578
42578
|
rotate: [-160, 0],
|
|
@@ -42672,7 +42672,7 @@ const Go = class Go extends pl {
|
|
|
42672
42672
|
});
|
|
42673
42673
|
}
|
|
42674
42674
|
paddingInCssPixel(e, i, s, l, a, o) {
|
|
42675
|
-
const { camera: c, cameraControls: d } = this.pencil, h = c.fov *
|
|
42675
|
+
const { camera: c, cameraControls: d } = this.pencil, h = c.fov * ga.DEG2RAD, r = this.pencil.getSize().height, { size: u } = e.getSize(), m = u.x, p = u.y, G = u.z;
|
|
42676
42676
|
let b = d.getDistanceToFitBox(
|
|
42677
42677
|
m,
|
|
42678
42678
|
p,
|
|
@@ -42698,8 +42698,8 @@ const Go = class Go extends pl {
|
|
|
42698
42698
|
(e = this.world) == null || e.dispose(), this.world = void 0, super.dispose();
|
|
42699
42699
|
}
|
|
42700
42700
|
};
|
|
42701
|
-
P(
|
|
42702
|
-
let qr =
|
|
42701
|
+
P(Xo, "VisName", "world");
|
|
42702
|
+
let qr = Xo;
|
|
42703
42703
|
const DM = {
|
|
42704
42704
|
camera: {
|
|
42705
42705
|
near: 0.01,
|
|
@@ -42753,7 +42753,7 @@ function w5(n, t) {
|
|
|
42753
42753
|
}
|
|
42754
42754
|
const $2 = (n) => {
|
|
42755
42755
|
const t = n.features.map((e) => e.geometry.type === "Polygon" ? [e.geometry.coordinates] : e.geometry.coordinates).flat();
|
|
42756
|
-
return Array.from({ length: t.length }, (e, i) =>
|
|
42756
|
+
return Array.from({ length: t.length }, (e, i) => $o(t[i]));
|
|
42757
42757
|
};
|
|
42758
42758
|
class fX extends X0 {
|
|
42759
42759
|
constructor(e) {
|
|
@@ -42781,7 +42781,7 @@ class fX extends X0 {
|
|
|
42781
42781
|
const W = typeof Z.properties.h == "string" ? Z.properties.h.split(".")[1] : 0, X = Number(Z.properties.h) | 0;
|
|
42782
42782
|
G[W] || (G[W] = {}), G[W][X] || (G[W][X] = []), p ? p.some((f) => {
|
|
42783
42783
|
Z.geometry.coordinates[1] && console.log(Z.geometry.coordinates[1]);
|
|
42784
|
-
const R =
|
|
42784
|
+
const R = $o(Z.geometry.coordinates[0]);
|
|
42785
42785
|
return Fm(f, R) ? (G[W][X].push(Z), !0) : !1;
|
|
42786
42786
|
}) || this.outJson.set(Z, !1) : G[W][X].push(Z);
|
|
42787
42787
|
});
|
|
@@ -42956,7 +42956,7 @@ class xX extends X0 {
|
|
|
42956
42956
|
c && (m = $2(c)), (e.features || e).forEach((G) => {
|
|
42957
42957
|
const b = G.properties.o;
|
|
42958
42958
|
u[b] || (u[b] = []), m ? m.some((W) => {
|
|
42959
|
-
const X =
|
|
42959
|
+
const X = $o(G.geometry.coordinates);
|
|
42960
42960
|
if (Fm(W, X))
|
|
42961
42961
|
return u[b].push(G), !0;
|
|
42962
42962
|
{
|
|
@@ -43021,10 +43021,10 @@ class xX extends X0 {
|
|
|
43021
43021
|
super.dispose(e), this.outJson.clear();
|
|
43022
43022
|
}
|
|
43023
43023
|
}
|
|
43024
|
-
class
|
|
43024
|
+
class Do extends yt {
|
|
43025
43025
|
constructor(t, e = {}) {
|
|
43026
43026
|
super(t), this.isReflector = !0, this.type = "Reflector", this.camera = new $0();
|
|
43027
|
-
const i = this, s = e.color !== void 0 ? new rt(e.color) : new rt(8355711), l = e.textureWidth || 512, a = e.textureHeight || 512, o = e.clipBias || 0, c = e.shader ||
|
|
43027
|
+
const i = this, s = e.color !== void 0 ? new rt(e.color) : new rt(8355711), l = e.textureWidth || 512, a = e.textureHeight || 512, o = e.clipBias || 0, c = e.shader || Do.ReflectorShader, d = e.multisample !== void 0 ? e.multisample : 4, h = new Bi(), r = new Y(), u = new Y(), m = new Y(), p = new Ut(), G = new Y(0, 0, -1), b = new V0(), Z = new Y(), W = new Y(), X = new V0(), y = new Ut(), f = this.camera, R = new ee(l, a, { samples: d, type: ci }), L = new j0({
|
|
43028
43028
|
name: c.name !== void 0 ? c.name : "unspecified",
|
|
43029
43029
|
uniforms: nc.clone(c.uniforms),
|
|
43030
43030
|
fragmentShader: c.fragmentShader,
|
|
@@ -43064,7 +43064,7 @@ class jo extends yt {
|
|
|
43064
43064
|
};
|
|
43065
43065
|
}
|
|
43066
43066
|
}
|
|
43067
|
-
|
|
43067
|
+
Do.ReflectorShader = {
|
|
43068
43068
|
name: "ReflectorShader",
|
|
43069
43069
|
uniforms: {
|
|
43070
43070
|
color: {
|
|
@@ -43130,10 +43130,10 @@ jo.ReflectorShader = {
|
|
|
43130
43130
|
}`
|
|
43131
43131
|
)
|
|
43132
43132
|
};
|
|
43133
|
-
class
|
|
43133
|
+
class Oo extends yt {
|
|
43134
43134
|
constructor(t, e = {}) {
|
|
43135
43135
|
super(t), this.isRefractor = !0, this.type = "Refractor", this.camera = new $0();
|
|
43136
|
-
const i = this, s = e.color !== void 0 ? new rt(e.color) : new rt(8355711), l = e.textureWidth || 512, a = e.textureHeight || 512, o = e.clipBias || 0, c = e.shader ||
|
|
43136
|
+
const i = this, s = e.color !== void 0 ? new rt(e.color) : new rt(8355711), l = e.textureWidth || 512, a = e.textureHeight || 512, o = e.clipBias || 0, c = e.shader || Oo.RefractorShader, d = e.multisample !== void 0 ? e.multisample : 4, h = this.camera;
|
|
43137
43137
|
h.matrixAutoUpdate = !1, h.userData.refractor = !0;
|
|
43138
43138
|
const r = new Bi(), u = new Ut(), m = new ee(l, a, { samples: d, type: ci });
|
|
43139
43139
|
this.material = new j0({
|
|
@@ -43198,7 +43198,7 @@ class Do extends yt {
|
|
|
43198
43198
|
};
|
|
43199
43199
|
}
|
|
43200
43200
|
}
|
|
43201
|
-
|
|
43201
|
+
Oo.RefractorShader = {
|
|
43202
43202
|
name: "RefractorShader",
|
|
43203
43203
|
uniforms: {
|
|
43204
43204
|
color: {
|
|
@@ -43264,19 +43264,19 @@ class zh extends yt {
|
|
|
43264
43264
|
const i = this, s = e.color !== void 0 ? new rt(e.color) : new rt(16777215), l = e.textureWidth !== void 0 ? e.textureWidth : 512, a = e.textureHeight !== void 0 ? e.textureHeight : 512, o = e.clipBias !== void 0 ? e.clipBias : 0, c = e.flowDirection !== void 0 ? e.flowDirection : new A(1, 0), d = e.flowSpeed !== void 0 ? e.flowSpeed : 0.03, h = e.reflectivity !== void 0 ? e.reflectivity : 0.02, r = e.scale !== void 0 ? e.scale : 1, u = e.shader !== void 0 ? e.shader : zh.WaterShader, m = e.flowMap || void 0, p = e.normalMap0, G = e.normalMap1;
|
|
43265
43265
|
p.colorSpace = ai, G.colorSpace = ai;
|
|
43266
43266
|
const b = 0.15, Z = b * 0.5, W = new Ut(), X = new Yh();
|
|
43267
|
-
if (
|
|
43267
|
+
if (Do === void 0) {
|
|
43268
43268
|
console.error("THREE.Water: Required component Reflector not found.");
|
|
43269
43269
|
return;
|
|
43270
43270
|
}
|
|
43271
|
-
if (
|
|
43271
|
+
if (Oo === void 0) {
|
|
43272
43272
|
console.error("THREE.Water: Required component Refractor not found.");
|
|
43273
43273
|
return;
|
|
43274
43274
|
}
|
|
43275
|
-
const y = new
|
|
43275
|
+
const y = new Do(t, {
|
|
43276
43276
|
textureWidth: l,
|
|
43277
43277
|
textureHeight: a,
|
|
43278
43278
|
clipBias: o
|
|
43279
|
-
}), f = new
|
|
43279
|
+
}), f = new Oo(t, {
|
|
43280
43280
|
textureWidth: l,
|
|
43281
43281
|
textureHeight: a,
|
|
43282
43282
|
clipBias: o
|
|
@@ -43545,7 +43545,7 @@ class CX extends X0 {
|
|
|
43545
43545
|
uRadius: { value: i / 2 },
|
|
43546
43546
|
time: this.time
|
|
43547
43547
|
},
|
|
43548
|
-
blending:
|
|
43548
|
+
blending: yo,
|
|
43549
43549
|
depthWrite: !1,
|
|
43550
43550
|
transparent: !0,
|
|
43551
43551
|
vertexShader: $M,
|
|
@@ -43573,7 +43573,7 @@ class CX extends X0 {
|
|
|
43573
43573
|
vertexShader: eF,
|
|
43574
43574
|
transparent: !0,
|
|
43575
43575
|
depthWrite: !1,
|
|
43576
|
-
blending:
|
|
43576
|
+
blending: yo,
|
|
43577
43577
|
side: K0
|
|
43578
43578
|
}), s = Dd, l = o1 * 1.5, a = new oe(
|
|
43579
43579
|
s,
|
|
@@ -43631,10 +43631,10 @@ class CX extends X0 {
|
|
|
43631
43631
|
}
|
|
43632
43632
|
}
|
|
43633
43633
|
const nF = {
|
|
43634
|
-
Node:
|
|
43635
|
-
Image:
|
|
43636
|
-
Line:
|
|
43637
|
-
ExtrudePolygon:
|
|
43634
|
+
Node: Na,
|
|
43635
|
+
Image: Ya,
|
|
43636
|
+
Line: Ia,
|
|
43637
|
+
ExtrudePolygon: Ma,
|
|
43638
43638
|
Building: fX,
|
|
43639
43639
|
Road: RX,
|
|
43640
43640
|
Area: xX,
|
|
@@ -43643,7 +43643,7 @@ const nF = {
|
|
|
43643
43643
|
Light: Sc,
|
|
43644
43644
|
Plane: LX,
|
|
43645
43645
|
Target: CX
|
|
43646
|
-
}, SX = new
|
|
43646
|
+
}, SX = new Sa(nF), ih = class ih extends pl {
|
|
43647
43647
|
constructor(e, i) {
|
|
43648
43648
|
super(e, Bt({
|
|
43649
43649
|
fitTo: !0,
|
|
@@ -43932,13 +43932,24 @@ const nF = {
|
|
|
43932
43932
|
}
|
|
43933
43933
|
});
|
|
43934
43934
|
}
|
|
43935
|
+
absoluteAngle(e, i) {
|
|
43936
|
+
const s = Math.PI * 2, l = e - i;
|
|
43937
|
+
return ga.euclideanModulo(l + Math.PI, s) - Math.PI;
|
|
43938
|
+
}
|
|
43935
43939
|
lookAtTarget(e, i, s, l = 0) {
|
|
43936
43940
|
return Gt(this, null, function* () {
|
|
43937
|
-
|
|
43938
|
-
|
|
43939
|
-
|
|
43940
|
-
|
|
43941
|
-
|
|
43941
|
+
const a = this.pencil.cameraControls.azimuthAngle, o = this.pencil.cameraControls.polarAngle, c = a !== l || o !== s;
|
|
43942
|
+
yield Promise.all(
|
|
43943
|
+
[
|
|
43944
|
+
this.pencil.cameraControls.setTarget(e.x, e.y, e.z, !0),
|
|
43945
|
+
this.pencil.cameraControls.dollyTo(i, !0),
|
|
43946
|
+
c && this.pencil.cameraControls.rotate(
|
|
43947
|
+
this.absoluteAngle(l, a),
|
|
43948
|
+
this.absoluteAngle(s, o),
|
|
43949
|
+
!0
|
|
43950
|
+
)
|
|
43951
|
+
].filter(Boolean)
|
|
43952
|
+
);
|
|
43942
43953
|
});
|
|
43943
43954
|
}
|
|
43944
43955
|
drawBuilding() {
|
|
@@ -44065,7 +44076,7 @@ const nF = {
|
|
|
44065
44076
|
}
|
|
44066
44077
|
};
|
|
44067
44078
|
P(ih, "VisName", "city");
|
|
44068
|
-
let
|
|
44079
|
+
let _o = ih;
|
|
44069
44080
|
class sF extends q2 {
|
|
44070
44081
|
constructor() {
|
|
44071
44082
|
super(...arguments);
|
|
@@ -44181,11 +44192,11 @@ class aF {
|
|
|
44181
44192
|
Mt.LTC_FLOAT_1 = new Ni(i, 64, 64, xe, He, Ln, be, be, Y0, J0, 1), Mt.LTC_FLOAT_2 = new Ni(s, 64, 64, xe, He, Ln, be, be, Y0, J0, 1), Mt.LTC_FLOAT_1.needsUpdate = !0, Mt.LTC_FLOAT_2.needsUpdate = !0;
|
|
44182
44193
|
const l = new Uint16Array(t.length);
|
|
44183
44194
|
t.forEach(function(o, c) {
|
|
44184
|
-
l[c] =
|
|
44195
|
+
l[c] = Yo.toHalfFloat(o);
|
|
44185
44196
|
});
|
|
44186
44197
|
const a = new Uint16Array(e.length);
|
|
44187
44198
|
e.forEach(function(o, c) {
|
|
44188
|
-
a[c] =
|
|
44199
|
+
a[c] = Yo.toHalfFloat(o);
|
|
44189
44200
|
}), Mt.LTC_HALF_1 = new Ni(l, 64, 64, xe, ci, Ln, be, be, Y0, J0, 1), Mt.LTC_HALF_2 = new Ni(a, 64, 64, xe, ci, Ln, be, be, Y0, J0, 1), Mt.LTC_HALF_1.needsUpdate = !0, Mt.LTC_HALF_2.needsUpdate = !0;
|
|
44190
44201
|
}
|
|
44191
44202
|
}
|
|
@@ -44319,8 +44330,8 @@ class oF extends X0 {
|
|
|
44319
44330
|
this.add(i, s, l, a), (c = this.pencil.helperController) == null || c.add(s), (d = this.pencil.helperController) == null || d.add(l), (h = this.pencil.helperController) == null || h.add(a), (r = this.pencil.helperController) == null || r.add(o);
|
|
44320
44331
|
}
|
|
44321
44332
|
}
|
|
44322
|
-
const Od = (n, t, e = 1e3, i =
|
|
44323
|
-
(s) => new
|
|
44333
|
+
const Od = (n, t, e = 1e3, i = wo.Easing.Sinusoidal.InOut) => new Promise(
|
|
44334
|
+
(s) => new wo.Tween(n).to(t, e).onComplete(() => {
|
|
44324
44335
|
s(0);
|
|
44325
44336
|
}).easing(i).start()
|
|
44326
44337
|
), cF = {
|
|
@@ -44413,17 +44424,17 @@ class dF extends X0 {
|
|
|
44413
44424
|
}
|
|
44414
44425
|
}
|
|
44415
44426
|
const rF = {
|
|
44416
|
-
Node:
|
|
44417
|
-
Image:
|
|
44418
|
-
Line:
|
|
44419
|
-
ExtrudePolygon:
|
|
44427
|
+
Node: Na,
|
|
44428
|
+
Image: Ya,
|
|
44429
|
+
Line: Ia,
|
|
44430
|
+
ExtrudePolygon: Ma,
|
|
44420
44431
|
Group: ml,
|
|
44421
44432
|
Light: oF,
|
|
44422
44433
|
ConicPolygon: O2,
|
|
44423
44434
|
Earth: sF,
|
|
44424
44435
|
Countries: lF,
|
|
44425
44436
|
China: dF
|
|
44426
|
-
}, Si = new
|
|
44437
|
+
}, Si = new Sa(rF), hF = {
|
|
44427
44438
|
camera: {
|
|
44428
44439
|
near: 10,
|
|
44429
44440
|
far: 1e3,
|
|
@@ -44561,7 +44572,7 @@ class bF extends X0 {
|
|
|
44561
44572
|
render() {
|
|
44562
44573
|
this.prefab && this.pencil.installPlugins.get("materialList").setObject3d(this.object3d, "point", {
|
|
44563
44574
|
baseObject: this
|
|
44564
|
-
}), this.icon.setScale(0), new
|
|
44575
|
+
}), this.icon.setScale(0), new wo.Tween({ s: 0 }).to({ s: 0.3 }, 1e3).repeat(1 / 0).onUpdate((e) => {
|
|
44565
44576
|
this.icon.setScale(e.s);
|
|
44566
44577
|
}).start();
|
|
44567
44578
|
}
|
|
@@ -44583,10 +44594,10 @@ class bF extends X0 {
|
|
|
44583
44594
|
}
|
|
44584
44595
|
}
|
|
44585
44596
|
const ZF = {
|
|
44586
|
-
Node:
|
|
44587
|
-
Image:
|
|
44588
|
-
Line:
|
|
44589
|
-
ExtrudePolygon:
|
|
44597
|
+
Node: Na,
|
|
44598
|
+
Image: Ya,
|
|
44599
|
+
Line: Ia,
|
|
44600
|
+
ExtrudePolygon: Ma,
|
|
44590
44601
|
Group: ml,
|
|
44591
44602
|
Light: Sc,
|
|
44592
44603
|
ConicPolygon: O2,
|
|
@@ -44594,13 +44605,13 @@ const ZF = {
|
|
|
44594
44605
|
Bg: mF,
|
|
44595
44606
|
Label: pF,
|
|
44596
44607
|
Point: bF
|
|
44597
|
-
}, bi = new
|
|
44608
|
+
}, bi = new Sa(ZF), GF = {
|
|
44598
44609
|
camera: {
|
|
44599
44610
|
near: 1,
|
|
44600
44611
|
far: 3e3,
|
|
44601
44612
|
fov: 12
|
|
44602
44613
|
}
|
|
44603
|
-
},
|
|
44614
|
+
}, Wo = class Wo extends pl {
|
|
44604
44615
|
constructor(e, i) {
|
|
44605
44616
|
super(e, Bt({}, i));
|
|
44606
44617
|
P(this, "leftTruck", !1);
|
|
@@ -44623,7 +44634,7 @@ const ZF = {
|
|
|
44623
44634
|
}
|
|
44624
44635
|
init() {
|
|
44625
44636
|
return Gt(this, null, function* () {
|
|
44626
|
-
yield Ri(
|
|
44637
|
+
yield Ri(Wo.prototype, this, "init").call(this), this.loaderAdd(), yield this.loader.load(), yield this.initEarth(), yield Promise.all(bi.objectsPromise);
|
|
44627
44638
|
});
|
|
44628
44639
|
}
|
|
44629
44640
|
initEarth() {
|
|
@@ -44652,7 +44663,7 @@ const ZF = {
|
|
|
44652
44663
|
}
|
|
44653
44664
|
handleSetting(e, i) {
|
|
44654
44665
|
return Gt(this, null, function* () {
|
|
44655
|
-
return yield Ri(
|
|
44666
|
+
return yield Ri(Wo.prototype, this, "handleSetting").call(this, e, i), e === "autoRotate" && this.playing && (i ? this.autoRotateSpeed = -20 : this.autoRotateSpeed = 0, this.pencil.autoRotate(this.autoRotateSpeed)), i;
|
|
44656
44667
|
});
|
|
44657
44668
|
}
|
|
44658
44669
|
animationIn() {
|
|
@@ -44677,15 +44688,15 @@ const ZF = {
|
|
|
44677
44688
|
super.dispose(), this.pencil.dispose();
|
|
44678
44689
|
}
|
|
44679
44690
|
};
|
|
44680
|
-
P(
|
|
44681
|
-
let th =
|
|
44691
|
+
P(Wo, "VisName", "earth2");
|
|
44692
|
+
let th = Wo;
|
|
44682
44693
|
const XF = {
|
|
44683
|
-
Node:
|
|
44684
|
-
Image:
|
|
44685
|
-
Line:
|
|
44694
|
+
Node: Na,
|
|
44695
|
+
Image: Ya,
|
|
44696
|
+
Line: Ia,
|
|
44686
44697
|
PlaneMap: WX,
|
|
44687
44698
|
ContinentsBg: yX,
|
|
44688
|
-
ExtrudePolygon:
|
|
44699
|
+
ExtrudePolygon: Ma,
|
|
44689
44700
|
Group: ml,
|
|
44690
44701
|
Light: Sc,
|
|
44691
44702
|
PlaneShadow: VX,
|
|
@@ -44695,7 +44706,7 @@ const XF = {
|
|
|
44695
44706
|
Road: RX,
|
|
44696
44707
|
Target: CX,
|
|
44697
44708
|
ConicPolygon: O2
|
|
44698
|
-
}, on = new
|
|
44709
|
+
}, on = new Sa(XF), WF = {
|
|
44699
44710
|
camera: {
|
|
44700
44711
|
near: 0.01,
|
|
44701
44712
|
far: 100,
|
|
@@ -44715,7 +44726,7 @@ const XF = {
|
|
|
44715
44726
|
om: !1
|
|
44716
44727
|
}
|
|
44717
44728
|
};
|
|
44718
|
-
class yF extends
|
|
44729
|
+
class yF extends jo {
|
|
44719
44730
|
constructor(e, i) {
|
|
44720
44731
|
super(e, Bt({
|
|
44721
44732
|
polarAngle: 0.6690037180091797,
|
|
@@ -45251,7 +45262,7 @@ const VF = (n) => {
|
|
|
45251
45262
|
});
|
|
45252
45263
|
};
|
|
45253
45264
|
};
|
|
45254
|
-
class RF extends
|
|
45265
|
+
class RF extends _o {
|
|
45255
45266
|
constructor() {
|
|
45256
45267
|
super(...arguments);
|
|
45257
45268
|
//@ts-ignore
|
|
@@ -45354,7 +45365,7 @@ const sh = class sh extends yF {
|
|
|
45354
45365
|
), this.cityVisObj[e])
|
|
45355
45366
|
return;
|
|
45356
45367
|
this.cityVisObj[e] = {
|
|
45357
|
-
state:
|
|
45368
|
+
state: qo(!0)
|
|
45358
45369
|
};
|
|
45359
45370
|
const o = this.options.jsonNameObj[e], c = new RF(this.container, {
|
|
45360
45371
|
center: l,
|
|
@@ -45449,7 +45460,7 @@ const sh = class sh extends yF {
|
|
|
45449
45460
|
return Gt(this, null, function* () {
|
|
45450
45461
|
if (this.isAnimating)
|
|
45451
45462
|
return;
|
|
45452
|
-
e || (e = this.adcodes), this.showGroup === "city" && !this.options.cityOnMap && (this.fixNear(this.mapInfo.adcode), this.cityVis.group.hide(), this.group.show(), this.verticalDragToForward = !1), this.showGroup = "map", JSON.stringify(e) === JSON.stringify(this.adcodes) ? (this.emit("beforeDrillDown", [...this.adcodes]), this.options.cityOnMap ? this.handleLookBack() : yield this.fitTo(this.map), this.emit("afterDrillDown", [...this.adcodes])) : yield this.clickArea({
|
|
45463
|
+
e || (e = this.adcodes), this.showGroup === "city" && !this.options.cityOnMap && (this.fixNear(this.mapInfo.adcode), this.cityVis.group.hide(), this.group.show(), this.verticalDragToForward = !1), this.showGroup = "map", JSON.stringify(e) === JSON.stringify(this.adcodes) ? (this.emit("beforeDrillDown", [...this.adcodes]), this.options.cityOnMap ? yield this.handleLookBack() : yield this.fitTo(this.map), this.emit("afterDrillDown", [...this.adcodes])) : yield this.clickArea({
|
|
45453
45464
|
adcodes: e
|
|
45454
45465
|
});
|
|
45455
45466
|
});
|
|
@@ -45586,7 +45597,7 @@ const SF = {
|
|
|
45586
45597
|
MirroredRepeatWrapping: Os
|
|
45587
45598
|
}, k5 = {
|
|
45588
45599
|
NearestFilter: J0,
|
|
45589
|
-
NearestMipmapNearestFilter:
|
|
45600
|
+
NearestMipmapNearestFilter: ec,
|
|
45590
45601
|
NearestMipmapLinearFilter: ss,
|
|
45591
45602
|
LinearFilter: Y0,
|
|
45592
45603
|
LinearMipmapNearestFilter: Ps,
|
|
@@ -46585,10 +46596,10 @@ class gT {
|
|
|
46585
46596
|
{ leading: !1 }
|
|
46586
46597
|
));
|
|
46587
46598
|
this.events.setMaxListeners(9999999), this.viewport = new kF(this), this.history = new zF(this), this.script = new JF(this), this.fixBufferGeometry = new At(), t.container && this.viewport.initContainer(t.container), t.assetsPrefix && (this.assetsPrefix = t.assetsPrefix), t.css2DContainer && (this.css2DContainer = t.css2DContainer), this.use({
|
|
46588
|
-
[
|
|
46599
|
+
[jo.VisName]: jo,
|
|
46589
46600
|
[eh.VisName]: eh,
|
|
46590
46601
|
[qr.VisName]: qr,
|
|
46591
|
-
[
|
|
46602
|
+
[_o.VisName]: _o,
|
|
46592
46603
|
[$r.VisName]: $r,
|
|
46593
46604
|
[th.VisName]: th
|
|
46594
46605
|
});
|