@realsee/dnalogel 3.50.15 → 3.50.16
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/CHANGELOG.md +3 -0
- package/dist/index.cjs.js +26 -26
- package/dist/index.js +515 -515
- package/dist/index.umd.js +25 -25
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector/index.js +17 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var uE = Object.defineProperty, dE = Object.defineProperties;
|
|
2
2
|
var fE = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var lh = Object.getOwnPropertySymbols;
|
|
4
4
|
var pv = Object.prototype.hasOwnProperty, mv = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var mf = (e, n, t) => n in e ? uE(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, R = (e, n) => {
|
|
6
6
|
for (var t in n || (n = {}))
|
|
7
7
|
pv.call(n, t) && mf(e, t, n[t]);
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
8
|
+
if (lh)
|
|
9
|
+
for (var t of lh(n))
|
|
10
10
|
mv.call(n, t) && mf(e, t, n[t]);
|
|
11
11
|
return e;
|
|
12
12
|
}, Me = (e, n) => dE(e, fE(n));
|
|
@@ -14,8 +14,8 @@ var _s = (e, n) => {
|
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var i in e)
|
|
16
16
|
pv.call(e, i) && n.indexOf(i) < 0 && (t[i] = e[i]);
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var i of
|
|
17
|
+
if (e != null && lh)
|
|
18
|
+
for (var i of lh(e))
|
|
19
19
|
n.indexOf(i) < 0 && mv.call(e, i) && (t[i] = e[i]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
@@ -42,13 +42,13 @@ import { Vector3 as Se, Matrix4 as Dl, Object3D as mE, LineSegments as gE, Group
|
|
|
42
42
|
import { CSS3DSprite as SE, CSS3DObject as Sp } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
43
43
|
import $m from "hammerjs";
|
|
44
44
|
import { Line as TE, THREE_Line2 as DE, LineMaterial as LE } from "@realsee/five/line";
|
|
45
|
-
import
|
|
45
|
+
import vu from "animejs";
|
|
46
46
|
import { FBXLoader as X1 } from "three/examples/jsm/loaders/FBXLoader";
|
|
47
47
|
import kE from "earcut";
|
|
48
48
|
import { GLTFLoader as RE } from "@realsee/five/gltf-loader";
|
|
49
49
|
function OE() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.50.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.50.16",
|
|
52
52
|
[
|
|
53
53
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
54
54
|
"background-repeat: no-repeat",
|
|
@@ -76,7 +76,7 @@ const vv = () => Promise.resolve(), yv = {
|
|
|
76
76
|
function BE(e = vv) {
|
|
77
77
|
yv.__queue = yv.__queue.then(e).catch(vv);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function ch(e, n, t) {
|
|
80
80
|
const i = e.x, r = e.y, s = Math.floor(i / n * 1e4) / 1e4, o = Math.floor(r / t * 1e4) / 1e4;
|
|
81
81
|
return { x: s, y: o };
|
|
82
82
|
}
|
|
@@ -84,7 +84,7 @@ function gf(e, n, t) {
|
|
|
84
84
|
const { x: i, y: r } = e, s = i * n, o = r * t;
|
|
85
85
|
return { x: s, y: o };
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function hh(e) {
|
|
88
88
|
if (e.length < 2)
|
|
89
89
|
return {};
|
|
90
90
|
const n = e.slice(-2), t = n[0], i = {
|
|
@@ -101,8 +101,8 @@ function NE(e, n, t = Z1) {
|
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
const FE = window, bv = window.requestAnimationFrame || FE.webkitRequestAnimationFrame || ((e) => setTimeout(e, 16));
|
|
104
|
-
function
|
|
105
|
-
n <= 0 ? bv(e) : bv(() =>
|
|
104
|
+
function hu(e, n = 0) {
|
|
105
|
+
n <= 0 ? bv(e) : bv(() => hu(e, n - 1));
|
|
106
106
|
}
|
|
107
107
|
var Ki = Object.freeze({
|
|
108
108
|
Linear: Object.freeze({
|
|
@@ -519,7 +519,7 @@ function QE(e, n, t, i = Ki.Linear.None) {
|
|
|
519
519
|
}
|
|
520
520
|
var qr = /* @__PURE__ */ ((e) => (e.Drawline = "Drawline", e.Undo = "Undo", e.Exit = "Exit", e))(qr || {});
|
|
521
521
|
const kl = Symbol("$$PAINT_BRUSH_EVENT$$");
|
|
522
|
-
function
|
|
522
|
+
function uh(e) {
|
|
523
523
|
return e[kl] || (e[kl] = {}), e[kl];
|
|
524
524
|
}
|
|
525
525
|
function YE(e) {
|
|
@@ -531,7 +531,7 @@ let XE = class {
|
|
|
531
531
|
* @param name 事件类型
|
|
532
532
|
*/
|
|
533
533
|
hasListener(n) {
|
|
534
|
-
const t =
|
|
534
|
+
const t = uh(this);
|
|
535
535
|
return t && t[n] && t[n].length > 0;
|
|
536
536
|
}
|
|
537
537
|
/**
|
|
@@ -544,7 +544,7 @@ let XE = class {
|
|
|
544
544
|
* @template C 回调函数函数上下文
|
|
545
545
|
*/
|
|
546
546
|
on(n, t, i) {
|
|
547
|
-
const r =
|
|
547
|
+
const r = uh(this);
|
|
548
548
|
return r[n] || (r[n] = []), r[n].push([t, i || !1]), () => this.off(n, t);
|
|
549
549
|
}
|
|
550
550
|
/**
|
|
@@ -572,7 +572,7 @@ let XE = class {
|
|
|
572
572
|
YE(this);
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
|
-
const i =
|
|
575
|
+
const i = uh(this);
|
|
576
576
|
if (i[n] || (i[n] = []), t === void 0) {
|
|
577
577
|
i[n].length = 0;
|
|
578
578
|
return;
|
|
@@ -591,7 +591,7 @@ let XE = class {
|
|
|
591
591
|
*/
|
|
592
592
|
emit(n, ...t) {
|
|
593
593
|
let i = !1;
|
|
594
|
-
const s =
|
|
594
|
+
const s = uh(this)[n] || [];
|
|
595
595
|
for (let o of s.slice()) {
|
|
596
596
|
const [a, l = !1] = o, c = a(...t);
|
|
597
597
|
l && this.off(n, a), c === !1 && (i = !0);
|
|
@@ -837,14 +837,14 @@ let qE = class extends XE {
|
|
|
837
837
|
t.onmousedown = (u) => {
|
|
838
838
|
u.preventDefault(), c = Date.now();
|
|
839
839
|
const d = u.clientX, f = u.clientY;
|
|
840
|
-
o = [], o.push({ x: d, y: f }), s = { x: d, y: f }, a =
|
|
840
|
+
o = [], o.push({ x: d, y: f }), s = { x: d, y: f }, a = ch({ x: d, y: f }, this.clientWidth, this.clientHeight), l = [];
|
|
841
841
|
}, t.onmousemove = (u) => {
|
|
842
842
|
if (u.preventDefault(), !s)
|
|
843
843
|
return;
|
|
844
844
|
const d = Number(u.clientX), f = Number(u.clientY);
|
|
845
|
-
if (Math.abs(d - s.x) < 5 && Math.abs(f - s.y) < 5 || (o.push({ x: d, y: f }), l.push(
|
|
845
|
+
if (Math.abs(d - s.x) < 5 && Math.abs(f - s.y) < 5 || (o.push({ x: d, y: f }), l.push(ch({ x: d, y: f }, this.clientWidth, this.clientHeight)), o.length < 3))
|
|
846
846
|
return;
|
|
847
|
-
const { control: m, end: p } =
|
|
847
|
+
const { control: m, end: p } = hh(o);
|
|
848
848
|
!m || !p || (h(s, m, p), s = p);
|
|
849
849
|
}, t.onmouseup = (u) => {
|
|
850
850
|
if (u.preventDefault(), s = null, o.length < 3)
|
|
@@ -858,7 +858,7 @@ let qE = class extends XE {
|
|
|
858
858
|
duration: d < 1280 ? d : d < 2e3 ? 1280 : 0
|
|
859
859
|
// 单次笔迹时长超过2000ms不加动画
|
|
860
860
|
};
|
|
861
|
-
this.data[this.uuid].push(f),
|
|
861
|
+
this.data[this.uuid].push(f), hu(() => {
|
|
862
862
|
this.emitStateChange({
|
|
863
863
|
type: qr.Drawline,
|
|
864
864
|
color: this.color,
|
|
@@ -870,14 +870,14 @@ let qE = class extends XE {
|
|
|
870
870
|
}, t.ontouchstart = (u) => {
|
|
871
871
|
u.preventDefault(), c = Date.now();
|
|
872
872
|
const d = u.touches[0].clientX, f = u.touches[0].clientY;
|
|
873
|
-
o = [], o.push({ x: d, y: f }), s = { x: d, y: f }, a =
|
|
873
|
+
o = [], o.push({ x: d, y: f }), s = { x: d, y: f }, a = ch({ x: d, y: f }, this.clientWidth, this.clientHeight), l = [];
|
|
874
874
|
}, t.ontouchmove = (u) => {
|
|
875
875
|
if (u.preventDefault(), !s)
|
|
876
876
|
return;
|
|
877
877
|
const d = Number(u.touches[0].clientX), f = Number(u.touches[0].clientY);
|
|
878
|
-
if (Math.abs(d - s.x) < 5 && Math.abs(f - s.y) < 5 || (o.push({ x: d, y: f }), l.push(
|
|
878
|
+
if (Math.abs(d - s.x) < 5 && Math.abs(f - s.y) < 5 || (o.push({ x: d, y: f }), l.push(ch({ x: d, y: f }, this.clientWidth, this.clientHeight)), o.length < 3))
|
|
879
879
|
return;
|
|
880
|
-
const { control: m, end: p } =
|
|
880
|
+
const { control: m, end: p } = hh(o);
|
|
881
881
|
!m || !p || (h(s, m, p), s = p);
|
|
882
882
|
}, t.ontouchend = t.ontouchcancel = (u) => {
|
|
883
883
|
if (u.preventDefault(), s = null, o.length < 3)
|
|
@@ -891,7 +891,7 @@ let qE = class extends XE {
|
|
|
891
891
|
duration: d < 1280 ? d : d < 2e3 ? 1280 : 0
|
|
892
892
|
// 单次笔迹时长超过2000ms不加动画
|
|
893
893
|
};
|
|
894
|
-
this.data[this.uuid].push(f),
|
|
894
|
+
this.data[this.uuid].push(f), hu(() => {
|
|
895
895
|
this.emitStateChange({
|
|
896
896
|
type: qr.Drawline,
|
|
897
897
|
color: this.color,
|
|
@@ -975,7 +975,7 @@ let qE = class extends XE {
|
|
|
975
975
|
if (!m.find((A) => A === y)) {
|
|
976
976
|
if (m.push(y), f.push(gf(l[y], p.clientWidth, p.clientHeight)), f.length < 3)
|
|
977
977
|
return;
|
|
978
|
-
const { control: A, end: w } =
|
|
978
|
+
const { control: A, end: w } = hh(f);
|
|
979
979
|
if (!A || !w)
|
|
980
980
|
return;
|
|
981
981
|
a.quadraticCurveTo(A.x, A.y, w.x, w.y), a.stroke();
|
|
@@ -987,7 +987,7 @@ let qE = class extends XE {
|
|
|
987
987
|
for (let m = 0; m < l.length; m++) {
|
|
988
988
|
if (f.push(gf(l[m], this.clientWidth, this.clientHeight)), f.length < 3)
|
|
989
989
|
continue;
|
|
990
|
-
const { control: p, end: g } =
|
|
990
|
+
const { control: p, end: g } = hh(f);
|
|
991
991
|
!p || !g || a.quadraticCurveTo(p.x, p.y, g.x, g.y);
|
|
992
992
|
}
|
|
993
993
|
a.stroke(), f = [], s && s(), o();
|
|
@@ -1004,7 +1004,7 @@ let qE = class extends XE {
|
|
|
1004
1004
|
r && r.clearRect(0, 0, this.canvas[t].width, this.canvas[t].height), this.data[t].forEach((o) => this.handleDrawLine(t, o, { withUndo: !0 }));
|
|
1005
1005
|
};
|
|
1006
1006
|
if (this.tween && this.tweening) {
|
|
1007
|
-
this.tween.stop(),
|
|
1007
|
+
this.tween.stop(), hu(i, 60);
|
|
1008
1008
|
return;
|
|
1009
1009
|
}
|
|
1010
1010
|
i();
|
|
@@ -1233,7 +1233,7 @@ let $E = function() {
|
|
|
1233
1233
|
o.camera.style !== w && (l.style.WebkitTransform = w, l.style.transform = w, o.camera.style = w), f(m, m, p);
|
|
1234
1234
|
};
|
|
1235
1235
|
};
|
|
1236
|
-
function
|
|
1236
|
+
function yu(e, n) {
|
|
1237
1237
|
const t = Math.round(e);
|
|
1238
1238
|
return t % 2 === 0 ? t : t + (n != null && n.floor ? -1 : 1);
|
|
1239
1239
|
}
|
|
@@ -1243,7 +1243,7 @@ function eC(e, n, t = !0) {
|
|
|
1243
1243
|
}, unobserve: () => {
|
|
1244
1244
|
} };
|
|
1245
1245
|
const i = () => {
|
|
1246
|
-
const s =
|
|
1246
|
+
const s = yu(e.clientWidth, { floor: !0 }), o = yu(e.clientHeight, { floor: !0 });
|
|
1247
1247
|
n(s, o);
|
|
1248
1248
|
};
|
|
1249
1249
|
if (typeof ResizeObserver == "undefined" || !ResizeObserver)
|
|
@@ -1303,7 +1303,7 @@ function nC(e) {
|
|
|
1303
1303
|
return typeof Symbol == "undefined" ? `$Symbol<${e}>$` : Symbol(e);
|
|
1304
1304
|
}
|
|
1305
1305
|
const Rl = nC("$$EVENT$$");
|
|
1306
|
-
function
|
|
1306
|
+
function dh(e) {
|
|
1307
1307
|
return e[Rl] || (e[Rl] = {}), e[Rl];
|
|
1308
1308
|
}
|
|
1309
1309
|
function iC(e) {
|
|
@@ -1315,7 +1315,7 @@ class En {
|
|
|
1315
1315
|
* @param name - 事件类型
|
|
1316
1316
|
*/
|
|
1317
1317
|
hasListener(n) {
|
|
1318
|
-
const t =
|
|
1318
|
+
const t = dh(this);
|
|
1319
1319
|
return !!(t != null && t[n] && t[n].length > 0);
|
|
1320
1320
|
}
|
|
1321
1321
|
/**
|
|
@@ -1328,7 +1328,7 @@ class En {
|
|
|
1328
1328
|
* @template C - 回调函数函数上下文
|
|
1329
1329
|
*/
|
|
1330
1330
|
on(n, t, i) {
|
|
1331
|
-
const r =
|
|
1331
|
+
const r = dh(this);
|
|
1332
1332
|
return r[n] || (r[n] = []), r[n].push([t, i || !1]), () => this.off(n, t);
|
|
1333
1333
|
}
|
|
1334
1334
|
/**
|
|
@@ -1356,7 +1356,7 @@ class En {
|
|
|
1356
1356
|
iC(this);
|
|
1357
1357
|
return;
|
|
1358
1358
|
}
|
|
1359
|
-
const i =
|
|
1359
|
+
const i = dh(this);
|
|
1360
1360
|
if (i[n] || (i[n] = []), t === void 0) {
|
|
1361
1361
|
i[n].length = 0;
|
|
1362
1362
|
return;
|
|
@@ -1375,7 +1375,7 @@ class En {
|
|
|
1375
1375
|
*/
|
|
1376
1376
|
emit(n, ...t) {
|
|
1377
1377
|
let i = !1;
|
|
1378
|
-
const s =
|
|
1378
|
+
const s = dh(this)[n] || [];
|
|
1379
1379
|
for (let o of s.slice()) {
|
|
1380
1380
|
const [a, l = !1] = o, c = a(...t);
|
|
1381
1381
|
l && this.off(n, a), c === !1 && (i = !0);
|
|
@@ -1578,7 +1578,7 @@ class Md extends K1 {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
const ts = new E.Raycaster();
|
|
1580
1580
|
ts.params.Points.threshold = 0.02;
|
|
1581
|
-
function
|
|
1581
|
+
function bu(e, n) {
|
|
1582
1582
|
if (!n || typeof ResizeObserver == "undefined" || !ResizeObserver)
|
|
1583
1583
|
return {
|
|
1584
1584
|
observe: () => window.addEventListener("resize", e),
|
|
@@ -1722,7 +1722,7 @@ class ns {
|
|
|
1722
1722
|
addResizeListener() {
|
|
1723
1723
|
const n = this.five.getElement();
|
|
1724
1724
|
if (n) {
|
|
1725
|
-
const { observe: t, unobserve: i } =
|
|
1725
|
+
const { observe: t, unobserve: i } = bu(this.onCameraUpdate, n);
|
|
1726
1726
|
t(), this.disposers.push(i);
|
|
1727
1727
|
}
|
|
1728
1728
|
}
|
|
@@ -1871,7 +1871,7 @@ class ng {
|
|
|
1871
1871
|
return { translateX: c, translateY: h };
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
function
|
|
1874
|
+
function fh(e, n, t) {
|
|
1875
1875
|
const i = e[n], r = e[t];
|
|
1876
1876
|
i === void 0 || r === void 0 || (e[n] = r, e[t] = i);
|
|
1877
1877
|
}
|
|
@@ -1881,7 +1881,7 @@ function hC(e, n, t) {
|
|
|
1881
1881
|
const s = t - (r - 1);
|
|
1882
1882
|
for (let o = 1; o <= n; o++) {
|
|
1883
1883
|
const a = (r - 1) * n + o - 1, l = (s - 1) * n + o - 1;
|
|
1884
|
-
|
|
1884
|
+
fh(e, a * 4 + 0, l * 4 + 0), fh(e, a * 4 + 1, l * 4 + 1), fh(e, a * 4 + 2, l * 4 + 2), fh(e, a * 4 + 3, l * 4 + 3);
|
|
1885
1885
|
}
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
@@ -1964,7 +1964,7 @@ Object.assign === void 0 && (Object.assign = function(e) {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
return n;
|
|
1966
1966
|
});
|
|
1967
|
-
const vC = "117", yC = 0, Ev = 1, bC = 2, nw = 1, AC = 2, Cl = 3,
|
|
1967
|
+
const vC = "117", yC = 0, Ev = 1, bC = 2, nw = 1, AC = 2, Cl = 3, Fc = 0, xn = 1, Ed = 2, iw = 1, is = 0, Ol = 1, Cv = 2, Pv = 3, _v = 4, wC = 5, Bo = 100, xC = 101, MC = 102, Iv = 103, Sv = 104, EC = 200, CC = 201, PC = 202, _C = 203, rw = 204, sw = 205, IC = 206, SC = 207, TC = 208, DC = 209, LC = 210, kC = 0, RC = 1, OC = 2, kp = 3, zC = 4, BC = 5, NC = 6, FC = 7, Cd = 0, VC = 1, GC = 2, zl = 0, ow = 1, HC = 2, jC = 3, UC = 4, WC = 5, ig = 300, rg = 301, sg = 302, aw = 303, og = 304, lw = 305, Vc = 306, ag = 307, Au = 1e3, Kn = 1001, wu = 1002, mn = 1003, Rp = 1004, Op = 1005, Bn = 1006, cw = 1007, Pd = 1008, Gc = 1009, QC = 1010, YC = 1011, xu = 1012, XC = 1013, uu = 1014, Jr = 1015, Mu = 1016, ZC = 1017, qC = 1018, JC = 1019, Bl = 1020, KC = 1021, Vs = 1022, Ti = 1023, $C = 1024, eP = 1025, tP = Ti, Ko = 1026, Zl = 1027, nP = 1028, iP = 1029, rP = 1030, sP = 1031, oP = 1032, aP = 1033, Tv = 33776, Dv = 33777, Lv = 33778, kv = 33779, Rv = 35840, Ov = 35841, zv = 35842, Bv = 35843, lP = 36196, Nv = 37492, Fv = 37496, cP = 37808, hP = 37809, uP = 37810, dP = 37811, fP = 37812, pP = 37813, mP = 37814, gP = 37815, vP = 37816, yP = 37817, bP = 37818, AP = 37819, wP = 37820, xP = 37821, MP = 36492, EP = 37840, CP = 37841, PP = 37842, _P = 37843, IP = 37844, SP = 37845, TP = 37846, DP = 37847, LP = 37848, kP = 37849, RP = 37850, OP = 37851, zP = 37852, BP = 37853, NP = 2200, FP = 2201, VP = 2202, Eu = 2300, du = 2301, bf = 2302, oa = 2400, Go = 2401, Cu = 2402, lg = 2500, hw = 2501, GP = 0, $n = 3e3, _d = 3001, cg = 3007, hg = 3002, HP = 3003, uw = 3004, dw = 3005, fw = 3006, jP = 3200, UP = 3201, Ha = 0, WP = 1, Af = 7680, QP = 519, Id = 35044, ql = 35048;
|
|
1968
1968
|
function Or() {
|
|
1969
1969
|
}
|
|
1970
1970
|
Object.assign(Or.prototype, {
|
|
@@ -2431,7 +2431,7 @@ var po, Ys = {
|
|
|
2431
2431
|
}
|
|
2432
2432
|
}, YP = 0;
|
|
2433
2433
|
function Wt(e, n, t, i, r, s, o, a, l, c) {
|
|
2434
|
-
Object.defineProperty(this, "id", { value: YP++ }), this.uuid = wt.generateUUID(), this.name = "", this.image = e !== void 0 ? e : Wt.DEFAULT_IMAGE, this.mipmaps = [], this.mapping = n !== void 0 ? n : Wt.DEFAULT_MAPPING, this.wrapS = t !== void 0 ? t : Kn, this.wrapT = i !== void 0 ? i : Kn, this.magFilter = r !== void 0 ? r : Bn, this.minFilter = s !== void 0 ? s : Pd, this.anisotropy = l !== void 0 ? l : 1, this.format = o !== void 0 ? o : Ti, this.internalFormat = null, this.type = a !== void 0 ? a :
|
|
2434
|
+
Object.defineProperty(this, "id", { value: YP++ }), this.uuid = wt.generateUUID(), this.name = "", this.image = e !== void 0 ? e : Wt.DEFAULT_IMAGE, this.mipmaps = [], this.mapping = n !== void 0 ? n : Wt.DEFAULT_MAPPING, this.wrapS = t !== void 0 ? t : Kn, this.wrapT = i !== void 0 ? i : Kn, this.magFilter = r !== void 0 ? r : Bn, this.minFilter = s !== void 0 ? s : Pd, this.anisotropy = l !== void 0 ? l : 1, this.format = o !== void 0 ? o : Ti, this.internalFormat = null, this.type = a !== void 0 ? a : Gc, this.offset = new pe(0, 0), this.repeat = new pe(1, 1), this.center = new pe(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Qn(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.encoding = c !== void 0 ? c : $n, this.version = 0, this.onUpdate = null;
|
|
2435
2435
|
}
|
|
2436
2436
|
Wt.DEFAULT_IMAGE = void 0;
|
|
2437
2437
|
Wt.DEFAULT_MAPPING = ig;
|
|
@@ -2502,25 +2502,25 @@ Wt.prototype = Object.assign(Object.create(Or.prototype), {
|
|
|
2502
2502
|
return e;
|
|
2503
2503
|
if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
|
|
2504
2504
|
switch (this.wrapS) {
|
|
2505
|
-
case
|
|
2505
|
+
case Au:
|
|
2506
2506
|
e.x = e.x - Math.floor(e.x);
|
|
2507
2507
|
break;
|
|
2508
2508
|
case Kn:
|
|
2509
2509
|
e.x = e.x < 0 ? 0 : 1;
|
|
2510
2510
|
break;
|
|
2511
|
-
case
|
|
2511
|
+
case wu:
|
|
2512
2512
|
Math.abs(Math.floor(e.x) % 2) === 1 ? e.x = Math.ceil(e.x) - e.x : e.x = e.x - Math.floor(e.x);
|
|
2513
2513
|
break;
|
|
2514
2514
|
}
|
|
2515
2515
|
if (e.y < 0 || e.y > 1)
|
|
2516
2516
|
switch (this.wrapT) {
|
|
2517
|
-
case
|
|
2517
|
+
case Au:
|
|
2518
2518
|
e.y = e.y - Math.floor(e.y);
|
|
2519
2519
|
break;
|
|
2520
2520
|
case Kn:
|
|
2521
2521
|
e.y = e.y < 0 ? 0 : 1;
|
|
2522
2522
|
break;
|
|
2523
|
-
case
|
|
2523
|
+
case wu:
|
|
2524
2524
|
Math.abs(Math.floor(e.y) % 2) === 1 ? e.y = Math.ceil(e.y) - e.y : e.y = e.y - Math.floor(e.y);
|
|
2525
2525
|
break;
|
|
2526
2526
|
}
|
|
@@ -3204,7 +3204,7 @@ Object.assign(B.prototype, {
|
|
|
3204
3204
|
return this.x = Math.random(), this.y = Math.random(), this.z = Math.random(), this;
|
|
3205
3205
|
}
|
|
3206
3206
|
});
|
|
3207
|
-
var mo = new B(), xi = new Mt(), XP = new B(0, 0, 0), ZP = new B(1, 1, 1), Gr = new B(),
|
|
3207
|
+
var mo = new B(), xi = new Mt(), XP = new B(0, 0, 0), ZP = new B(1, 1, 1), Gr = new B(), ph = new B(), ni = new B();
|
|
3208
3208
|
function Mt() {
|
|
3209
3209
|
this.elements = [
|
|
3210
3210
|
1,
|
|
@@ -3318,7 +3318,7 @@ Object.assign(Mt.prototype, {
|
|
|
3318
3318
|
},
|
|
3319
3319
|
lookAt: function(e, n, t) {
|
|
3320
3320
|
var i = this.elements;
|
|
3321
|
-
return ni.subVectors(e, n), ni.lengthSq() === 0 && (ni.z = 1), ni.normalize(), Gr.crossVectors(t, ni), Gr.lengthSq() === 0 && (Math.abs(t.z) === 1 ? ni.x += 1e-4 : ni.z += 1e-4, ni.normalize(), Gr.crossVectors(t, ni)), Gr.normalize(),
|
|
3321
|
+
return ni.subVectors(e, n), ni.lengthSq() === 0 && (ni.z = 1), ni.normalize(), Gr.crossVectors(t, ni), Gr.lengthSq() === 0 && (Math.abs(t.z) === 1 ? ni.x += 1e-4 : ni.z += 1e-4, ni.normalize(), Gr.crossVectors(t, ni)), Gr.normalize(), ph.crossVectors(ni, Gr), i[0] = Gr.x, i[4] = ph.x, i[8] = ni.x, i[1] = Gr.y, i[5] = ph.y, i[9] = ni.y, i[2] = Gr.z, i[6] = ph.z, i[10] = ni.z, this;
|
|
3322
3322
|
},
|
|
3323
3323
|
multiply: function(e, n) {
|
|
3324
3324
|
return n !== void 0 ? (console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."), this.multiplyMatrices(e, n)) : this.multiplyMatrices(this, e);
|
|
@@ -3674,7 +3674,7 @@ Object.assign(ug.prototype, {
|
|
|
3674
3674
|
}
|
|
3675
3675
|
});
|
|
3676
3676
|
let qP = 0;
|
|
3677
|
-
const Uv = new B(), go = new Mn(), gr = new Mt(),
|
|
3677
|
+
const Uv = new B(), go = new Mn(), gr = new Mt(), mh = new B(), cl = new B(), JP = new B(), KP = new Mn(), Wv = new B(1, 0, 0), Qv = new B(0, 1, 0), Yv = new B(0, 0, 1), $P = { type: "added" }, e2 = { type: "removed" };
|
|
3678
3678
|
function He() {
|
|
3679
3679
|
Object.defineProperty(this, "id", { value: qP++ }), this.uuid = wt.generateUUID(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = He.DefaultUp.clone();
|
|
3680
3680
|
var e = new B(), n = new ja(), t = new Mn(), i = new B(1, 1, 1);
|
|
@@ -3774,9 +3774,9 @@ He.prototype = Object.assign(Object.create(Or.prototype), {
|
|
|
3774
3774
|
return e.applyMatrix4(gr.getInverse(this.matrixWorld));
|
|
3775
3775
|
},
|
|
3776
3776
|
lookAt: function(e, n, t) {
|
|
3777
|
-
e.isVector3 ?
|
|
3777
|
+
e.isVector3 ? mh.copy(e) : mh.set(e, n, t);
|
|
3778
3778
|
var i = this.parent;
|
|
3779
|
-
this.updateWorldMatrix(!0, !1), cl.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? gr.lookAt(cl,
|
|
3779
|
+
this.updateWorldMatrix(!0, !1), cl.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? gr.lookAt(cl, mh, this.up) : gr.lookAt(mh, cl, this.up), this.quaternion.setFromRotationMatrix(gr), i && (gr.extractRotation(i.matrixWorld), go.setFromRotationMatrix(gr), this.quaternion.premultiply(go.inverse()));
|
|
3780
3780
|
},
|
|
3781
3781
|
add: function(e) {
|
|
3782
3782
|
if (arguments.length > 1) {
|
|
@@ -3955,7 +3955,7 @@ var vr = [
|
|
|
3955
3955
|
new B(),
|
|
3956
3956
|
new B(),
|
|
3957
3957
|
new B()
|
|
3958
|
-
], hl = new B(), xf = new mi(), vo = new B(), yo = new B(), bo = new B(), Hr = new B(), jr = new B(), Is = new B(), ul = new B(),
|
|
3958
|
+
], hl = new B(), xf = new mi(), vo = new B(), yo = new B(), bo = new B(), Hr = new B(), jr = new B(), Is = new B(), ul = new B(), gh = new B(), vh = new B(), Ss = new B();
|
|
3959
3959
|
function mi(e, n) {
|
|
3960
3960
|
this.min = e !== void 0 ? e : new B(1 / 0, 1 / 0, 1 / 0), this.max = n !== void 0 ? n : new B(-1 / 0, -1 / 0, -1 / 0);
|
|
3961
3961
|
}
|
|
@@ -4052,7 +4052,7 @@ Object.assign(mi.prototype, {
|
|
|
4052
4052
|
intersectsTriangle: function(e) {
|
|
4053
4053
|
if (this.isEmpty())
|
|
4054
4054
|
return !1;
|
|
4055
|
-
this.getCenter(ul),
|
|
4055
|
+
this.getCenter(ul), gh.subVectors(this.max, ul), vo.subVectors(e.a, ul), yo.subVectors(e.b, ul), bo.subVectors(e.c, ul), Hr.subVectors(yo, vo), jr.subVectors(bo, yo), Is.subVectors(vo, bo);
|
|
4056
4056
|
var n = [
|
|
4057
4057
|
0,
|
|
4058
4058
|
-Hr.z,
|
|
@@ -4082,7 +4082,7 @@ Object.assign(mi.prototype, {
|
|
|
4082
4082
|
Is.x,
|
|
4083
4083
|
0
|
|
4084
4084
|
];
|
|
4085
|
-
return !Mf(n, vo, yo, bo,
|
|
4085
|
+
return !Mf(n, vo, yo, bo, gh) || (n = [1, 0, 0, 0, 1, 0, 0, 0, 1], !Mf(n, vo, yo, bo, gh)) ? !1 : (vh.crossVectors(Hr, jr), n = [vh.x, vh.y, vh.z], Mf(n, vo, yo, bo, gh));
|
|
4086
4086
|
},
|
|
4087
4087
|
clampPoint: function(e, n) {
|
|
4088
4088
|
return n === void 0 && (console.warn("THREE.Box3: .clampPoint() target is now required"), n = new B()), n.copy(e).clamp(this.min, this.max);
|
|
@@ -4180,7 +4180,7 @@ Object.assign(cr.prototype, {
|
|
|
4180
4180
|
return e.center.equals(this.center) && e.radius === this.radius;
|
|
4181
4181
|
}
|
|
4182
4182
|
});
|
|
4183
|
-
var yr = new B(), Ef = new B(),
|
|
4183
|
+
var yr = new B(), Ef = new B(), yh = new B(), Ur = new B(), Cf = new B(), bh = new B(), Pf = new B();
|
|
4184
4184
|
function Ua(e, n) {
|
|
4185
4185
|
this.origin = e !== void 0 ? e : new B(), this.direction = n !== void 0 ? n : new B(0, 0, -1);
|
|
4186
4186
|
}
|
|
@@ -4216,8 +4216,8 @@ Object.assign(Ua.prototype, {
|
|
|
4216
4216
|
return n < 0 ? this.origin.distanceToSquared(e) : (yr.copy(this.direction).multiplyScalar(n).add(this.origin), yr.distanceToSquared(e));
|
|
4217
4217
|
},
|
|
4218
4218
|
distanceSqToSegment: function(e, n, t, i) {
|
|
4219
|
-
Ef.copy(e).add(n).multiplyScalar(0.5),
|
|
4220
|
-
var r = e.distanceTo(n) * 0.5, s = -this.direction.dot(
|
|
4219
|
+
Ef.copy(e).add(n).multiplyScalar(0.5), yh.copy(n).sub(e).normalize(), Ur.copy(this.origin).sub(Ef);
|
|
4220
|
+
var r = e.distanceTo(n) * 0.5, s = -this.direction.dot(yh), o = Ur.dot(this.direction), a = -Ur.dot(yh), l = Ur.lengthSq(), c = Math.abs(1 - s * s), h, u, d, f;
|
|
4221
4221
|
if (c > 0)
|
|
4222
4222
|
if (h = s * a - o, u = s * o - a, f = r * c, h >= 0)
|
|
4223
4223
|
if (u >= -f)
|
|
@@ -4232,7 +4232,7 @@ Object.assign(Ua.prototype, {
|
|
|
4232
4232
|
u <= -f ? (h = Math.max(0, -(-s * r + o)), u = h > 0 ? -r : Math.min(Math.max(-r, -a), r), d = -h * h + u * (u + 2 * a) + l) : u <= f ? (h = 0, u = Math.min(Math.max(-r, -a), r), d = u * (u + 2 * a) + l) : (h = Math.max(0, -(s * r + o)), u = h > 0 ? r : Math.min(Math.max(-r, -a), r), d = -h * h + u * (u + 2 * a) + l);
|
|
4233
4233
|
else
|
|
4234
4234
|
u = s > 0 ? -r : r, h = Math.max(0, -(s * u + o)), d = -h * h + u * (u + 2 * a) + l;
|
|
4235
|
-
return t && t.copy(this.direction).multiplyScalar(h).add(this.origin), i && i.copy(
|
|
4235
|
+
return t && t.copy(this.direction).multiplyScalar(h).add(this.origin), i && i.copy(yh).multiplyScalar(u).add(Ef), d;
|
|
4236
4236
|
},
|
|
4237
4237
|
intersectSphere: function(e, n) {
|
|
4238
4238
|
yr.subVectors(e.center, this.origin);
|
|
@@ -4271,7 +4271,7 @@ Object.assign(Ua.prototype, {
|
|
|
4271
4271
|
return this.intersectBox(e, yr) !== null;
|
|
4272
4272
|
},
|
|
4273
4273
|
intersectTriangle: function(e, n, t, i, r) {
|
|
4274
|
-
Cf.subVectors(n, e),
|
|
4274
|
+
Cf.subVectors(n, e), bh.subVectors(t, e), Pf.crossVectors(Cf, bh);
|
|
4275
4275
|
var s = this.direction.dot(Pf), o;
|
|
4276
4276
|
if (s > 0) {
|
|
4277
4277
|
if (i)
|
|
@@ -4282,7 +4282,7 @@ Object.assign(Ua.prototype, {
|
|
|
4282
4282
|
else
|
|
4283
4283
|
return null;
|
|
4284
4284
|
Ur.subVectors(this.origin, e);
|
|
4285
|
-
var a = o * this.direction.dot(
|
|
4285
|
+
var a = o * this.direction.dot(bh.crossVectors(Ur, bh));
|
|
4286
4286
|
if (a < 0)
|
|
4287
4287
|
return null;
|
|
4288
4288
|
var l = o * this.direction.dot(Cf.cross(Ur));
|
|
@@ -4622,7 +4622,7 @@ var pw = {
|
|
|
4622
4622
|
whitesmoke: 16119285,
|
|
4623
4623
|
yellow: 16776960,
|
|
4624
4624
|
yellowgreen: 10145074
|
|
4625
|
-
}, Mi = { h: 0, s: 0, l: 0 },
|
|
4625
|
+
}, Mi = { h: 0, s: 0, l: 0 }, Ah = { h: 0, s: 0, l: 0 };
|
|
4626
4626
|
function Qe(e, n, t) {
|
|
4627
4627
|
return n === void 0 && t === void 0 ? this.set(e) : this.setRGB(e, n, t);
|
|
4628
4628
|
}
|
|
@@ -4785,8 +4785,8 @@ Object.assign(Qe.prototype, {
|
|
|
4785
4785
|
return this.r += (e.r - this.r) * n, this.g += (e.g - this.g) * n, this.b += (e.b - this.b) * n, this;
|
|
4786
4786
|
},
|
|
4787
4787
|
lerpHSL: function(e, n) {
|
|
4788
|
-
this.getHSL(Mi), e.getHSL(
|
|
4789
|
-
var t = wt.lerp(Mi.h,
|
|
4788
|
+
this.getHSL(Mi), e.getHSL(Ah);
|
|
4789
|
+
var t = wt.lerp(Mi.h, Ah.h, n), i = wt.lerp(Mi.s, Ah.s, n), r = wt.lerp(Mi.l, Ah.l, n);
|
|
4790
4790
|
return this.setHSL(t, i, r), this;
|
|
4791
4791
|
},
|
|
4792
4792
|
equals: function(e) {
|
|
@@ -4803,10 +4803,10 @@ Object.assign(Qe.prototype, {
|
|
|
4803
4803
|
}
|
|
4804
4804
|
});
|
|
4805
4805
|
Qe.NAMES = pw;
|
|
4806
|
-
function
|
|
4806
|
+
function Pu(e, n, t, i, r, s) {
|
|
4807
4807
|
this.a = e, this.b = n, this.c = t, this.normal = i && i.isVector3 ? i : new B(), this.vertexNormals = Array.isArray(i) ? i : [], this.color = r && r.isColor ? r : new Qe(), this.vertexColors = Array.isArray(r) ? r : [], this.materialIndex = s !== void 0 ? s : 0;
|
|
4808
4808
|
}
|
|
4809
|
-
Object.assign(
|
|
4809
|
+
Object.assign(Pu.prototype, {
|
|
4810
4810
|
clone: function() {
|
|
4811
4811
|
return new this.constructor().copy(this);
|
|
4812
4812
|
},
|
|
@@ -4821,7 +4821,7 @@ Object.assign(_u.prototype, {
|
|
|
4821
4821
|
});
|
|
4822
4822
|
var r2 = 0;
|
|
4823
4823
|
function dt() {
|
|
4824
|
-
Object.defineProperty(this, "id", { value: r2++ }), this.uuid = wt.generateUUID(), this.name = "", this.type = "Material", this.fog = !0, this.blending = Ol, this.side =
|
|
4824
|
+
Object.defineProperty(this, "id", { value: r2++ }), this.uuid = wt.generateUUID(), this.name = "", this.type = "Material", this.fog = !0, this.blending = Ol, this.side = Fc, this.flatShading = !1, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.blendSrc = rw, this.blendDst = sw, this.blendEquation = Bo, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = kp, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = QP, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Af, this.stencilZFail = Af, this.stencilZPass = Af, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaTest = 0, this.premultipliedAlpha = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0;
|
|
4825
4825
|
}
|
|
4826
4826
|
dt.prototype = Object.assign(Object.create(Or.prototype), {
|
|
4827
4827
|
constructor: dt,
|
|
@@ -4861,7 +4861,7 @@ dt.prototype = Object.assign(Object.create(Or.prototype), {
|
|
|
4861
4861
|
generator: "Material.toJSON"
|
|
4862
4862
|
}
|
|
4863
4863
|
};
|
|
4864
|
-
t.uuid = this.uuid, t.type = this.type, this.name !== "" && (t.name = this.name), this.color && this.color.isColor && (t.color = this.color.getHex()), this.roughness !== void 0 && (t.roughness = this.roughness), this.metalness !== void 0 && (t.metalness = this.metalness), this.sheen && this.sheen.isColor && (t.sheen = this.sheen.getHex()), this.emissive && this.emissive.isColor && (t.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (t.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (t.specular = this.specular.getHex()), this.shininess !== void 0 && (t.shininess = this.shininess), this.clearcoat !== void 0 && (t.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (t.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (t.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (t.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (t.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, t.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.map && this.map.isTexture && (t.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (t.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (t.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (t.lightMap = this.lightMap.toJSON(e).uuid), this.aoMap && this.aoMap.isTexture && (t.aoMap = this.aoMap.toJSON(e).uuid, t.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (t.bumpMap = this.bumpMap.toJSON(e).uuid, t.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (t.normalMap = this.normalMap.toJSON(e).uuid, t.normalMapType = this.normalMapType, t.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (t.displacementMap = this.displacementMap.toJSON(e).uuid, t.displacementScale = this.displacementScale, t.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (t.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (t.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (t.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (t.specularMap = this.specularMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (t.envMap = this.envMap.toJSON(e).uuid, t.reflectivity = this.reflectivity, t.refractionRatio = this.refractionRatio, this.combine !== void 0 && (t.combine = this.combine), this.envMapIntensity !== void 0 && (t.envMapIntensity = this.envMapIntensity)), this.gradientMap && this.gradientMap.isTexture && (t.gradientMap = this.gradientMap.toJSON(e).uuid), this.size !== void 0 && (t.size = this.size), this.sizeAttenuation !== void 0 && (t.sizeAttenuation = this.sizeAttenuation), this.blending !== Ol && (t.blending = this.blending), this.flatShading === !0 && (t.flatShading = this.flatShading), this.side !==
|
|
4864
|
+
t.uuid = this.uuid, t.type = this.type, this.name !== "" && (t.name = this.name), this.color && this.color.isColor && (t.color = this.color.getHex()), this.roughness !== void 0 && (t.roughness = this.roughness), this.metalness !== void 0 && (t.metalness = this.metalness), this.sheen && this.sheen.isColor && (t.sheen = this.sheen.getHex()), this.emissive && this.emissive.isColor && (t.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (t.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (t.specular = this.specular.getHex()), this.shininess !== void 0 && (t.shininess = this.shininess), this.clearcoat !== void 0 && (t.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (t.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (t.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (t.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (t.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, t.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.map && this.map.isTexture && (t.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (t.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (t.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (t.lightMap = this.lightMap.toJSON(e).uuid), this.aoMap && this.aoMap.isTexture && (t.aoMap = this.aoMap.toJSON(e).uuid, t.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (t.bumpMap = this.bumpMap.toJSON(e).uuid, t.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (t.normalMap = this.normalMap.toJSON(e).uuid, t.normalMapType = this.normalMapType, t.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (t.displacementMap = this.displacementMap.toJSON(e).uuid, t.displacementScale = this.displacementScale, t.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (t.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (t.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (t.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (t.specularMap = this.specularMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (t.envMap = this.envMap.toJSON(e).uuid, t.reflectivity = this.reflectivity, t.refractionRatio = this.refractionRatio, this.combine !== void 0 && (t.combine = this.combine), this.envMapIntensity !== void 0 && (t.envMapIntensity = this.envMapIntensity)), this.gradientMap && this.gradientMap.isTexture && (t.gradientMap = this.gradientMap.toJSON(e).uuid), this.size !== void 0 && (t.size = this.size), this.sizeAttenuation !== void 0 && (t.sizeAttenuation = this.sizeAttenuation), this.blending !== Ol && (t.blending = this.blending), this.flatShading === !0 && (t.flatShading = this.flatShading), this.side !== Fc && (t.side = this.side), this.vertexColors && (t.vertexColors = !0), this.opacity < 1 && (t.opacity = this.opacity), this.transparent === !0 && (t.transparent = this.transparent), t.depthFunc = this.depthFunc, t.depthTest = this.depthTest, t.depthWrite = this.depthWrite, t.stencilWrite = this.stencilWrite, t.stencilWriteMask = this.stencilWriteMask, t.stencilFunc = this.stencilFunc, t.stencilRef = this.stencilRef, t.stencilFuncMask = this.stencilFuncMask, t.stencilFail = this.stencilFail, t.stencilZFail = this.stencilZFail, t.stencilZPass = this.stencilZPass, this.rotation && this.rotation !== 0 && (t.rotation = this.rotation), this.polygonOffset === !0 && (t.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (t.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (t.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth && this.linewidth !== 1 && (t.linewidth = this.linewidth), this.dashSize !== void 0 && (t.dashSize = this.dashSize), this.gapSize !== void 0 && (t.gapSize = this.gapSize), this.scale !== void 0 && (t.scale = this.scale), this.dithering === !0 && (t.dithering = !0), this.alphaTest > 0 && (t.alphaTest = this.alphaTest), this.premultipliedAlpha === !0 && (t.premultipliedAlpha = this.premultipliedAlpha), this.wireframe === !0 && (t.wireframe = this.wireframe), this.wireframeLinewidth > 1 && (t.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (t.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (t.wireframeLinejoin = this.wireframeLinejoin), this.morphTargets === !0 && (t.morphTargets = !0), this.morphNormals === !0 && (t.morphNormals = !0), this.skinning === !0 && (t.skinning = !0), this.visible === !1 && (t.visible = !1), this.toneMapped === !1 && (t.toneMapped = !1), JSON.stringify(this.userData) !== "{}" && (t.userData = this.userData);
|
|
4865
4865
|
function i(o) {
|
|
4866
4866
|
var a = [];
|
|
4867
4867
|
for (var l in o) {
|
|
@@ -5483,7 +5483,7 @@ Xe.prototype = Object.assign(Object.create(Or.prototype), {
|
|
|
5483
5483
|
this.dispatchEvent({ type: "dispose" });
|
|
5484
5484
|
}
|
|
5485
5485
|
});
|
|
5486
|
-
var Zv = new Mt(), Ts = new Ua(), zf = new cr(), Wr = new B(), Qr = new B(), Yr = new B(), Bf = new B(), Nf = new B(), Ff = new B(),
|
|
5486
|
+
var Zv = new Mt(), Ts = new Ua(), zf = new cr(), Wr = new B(), Qr = new B(), Yr = new B(), Bf = new B(), Nf = new B(), Ff = new B(), wh = new B(), xh = new B(), Mh = new B(), Ho = new pe(), jo = new pe(), Uo = new pe(), Nl = new B(), Eh = new B();
|
|
5487
5487
|
function en(e, n) {
|
|
5488
5488
|
He.call(this), this.type = "Mesh", this.geometry = e !== void 0 ? e : new Xe(), this.material = n !== void 0 ? n : new Ri(), this.updateMorphTargets();
|
|
5489
5489
|
}
|
|
@@ -5518,18 +5518,18 @@ en.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
5518
5518
|
if (Array.isArray(i))
|
|
5519
5519
|
for (y = 0, A = p.length; y < A; y++)
|
|
5520
5520
|
for (x = p[y], M = i[x.materialIndex], P = Math.max(x.start, g.start), I = Math.min(x.start + x.count, g.start + g.count), b = P, w = I; b < w; b += 3)
|
|
5521
|
-
o = c.getX(b), a = c.getX(b + 1), l = c.getX(b + 2), s =
|
|
5521
|
+
o = c.getX(b), a = c.getX(b + 1), l = c.getX(b + 2), s = Ch(this, M, e, Ts, h, u, d, f, m, o, a, l), s && (s.faceIndex = Math.floor(b / 3), s.face.materialIndex = x.materialIndex, n.push(s));
|
|
5522
5522
|
else
|
|
5523
5523
|
for (P = Math.max(0, g.start), I = Math.min(c.count, g.start + g.count), y = P, A = I; y < A; y += 3)
|
|
5524
|
-
o = c.getX(y), a = c.getX(y + 1), l = c.getX(y + 2), s =
|
|
5524
|
+
o = c.getX(y), a = c.getX(y + 1), l = c.getX(y + 2), s = Ch(this, i, e, Ts, h, u, d, f, m, o, a, l), s && (s.faceIndex = Math.floor(y / 3), n.push(s));
|
|
5525
5525
|
else if (h !== void 0)
|
|
5526
5526
|
if (Array.isArray(i))
|
|
5527
5527
|
for (y = 0, A = p.length; y < A; y++)
|
|
5528
5528
|
for (x = p[y], M = i[x.materialIndex], P = Math.max(x.start, g.start), I = Math.min(x.start + x.count, g.start + g.count), b = P, w = I; b < w; b += 3)
|
|
5529
|
-
o = b, a = b + 1, l = b + 2, s =
|
|
5529
|
+
o = b, a = b + 1, l = b + 2, s = Ch(this, M, e, Ts, h, u, d, f, m, o, a, l), s && (s.faceIndex = Math.floor(b / 3), s.face.materialIndex = x.materialIndex, n.push(s));
|
|
5530
5530
|
else
|
|
5531
5531
|
for (P = Math.max(0, g.start), I = Math.min(h.count, g.start + g.count), y = P, A = I; y < A; y += 3)
|
|
5532
|
-
o = y, a = y + 1, l = y + 2, s =
|
|
5532
|
+
o = y, a = y + 1, l = y + 2, s = Ch(this, i, e, Ts, h, u, d, f, m, o, a, l), s && (s.faceIndex = Math.floor(y / 3), n.push(s));
|
|
5533
5533
|
} else if (t.isGeometry) {
|
|
5534
5534
|
var T, z, D, k = Array.isArray(i), O = t.vertices, G = t.faces, S, U = t.faceVertexUvs[0];
|
|
5535
5535
|
U.length > 0 && (S = U);
|
|
@@ -5554,35 +5554,35 @@ function vw(e, n, t, i, r, s, o, a) {
|
|
|
5554
5554
|
var l;
|
|
5555
5555
|
if (n.side === xn ? l = i.intersectTriangle(o, s, r, !0, a) : l = i.intersectTriangle(r, s, o, n.side !== Ed, a), l === null)
|
|
5556
5556
|
return null;
|
|
5557
|
-
|
|
5558
|
-
var c = t.ray.origin.distanceTo(
|
|
5557
|
+
Eh.copy(a), Eh.applyMatrix4(e.matrixWorld);
|
|
5558
|
+
var c = t.ray.origin.distanceTo(Eh);
|
|
5559
5559
|
return c < t.near || c > t.far ? null : {
|
|
5560
5560
|
distance: c,
|
|
5561
|
-
point:
|
|
5561
|
+
point: Eh.clone(),
|
|
5562
5562
|
object: e
|
|
5563
5563
|
};
|
|
5564
5564
|
}
|
|
5565
|
-
function
|
|
5565
|
+
function Ch(e, n, t, i, r, s, o, a, l, c, h, u) {
|
|
5566
5566
|
Wr.fromBufferAttribute(r, c), Qr.fromBufferAttribute(r, h), Yr.fromBufferAttribute(r, u);
|
|
5567
5567
|
var d = e.morphTargetInfluences;
|
|
5568
5568
|
if (n.morphTargets && s && d) {
|
|
5569
|
-
|
|
5569
|
+
wh.set(0, 0, 0), xh.set(0, 0, 0), Mh.set(0, 0, 0);
|
|
5570
5570
|
for (var f = 0, m = s.length; f < m; f++) {
|
|
5571
5571
|
var p = d[f], g = s[f];
|
|
5572
|
-
p !== 0 && (Bf.fromBufferAttribute(g, c), Nf.fromBufferAttribute(g, h), Ff.fromBufferAttribute(g, u), o ? (
|
|
5572
|
+
p !== 0 && (Bf.fromBufferAttribute(g, c), Nf.fromBufferAttribute(g, h), Ff.fromBufferAttribute(g, u), o ? (wh.addScaledVector(Bf, p), xh.addScaledVector(Nf, p), Mh.addScaledVector(Ff, p)) : (wh.addScaledVector(Bf.sub(Wr), p), xh.addScaledVector(Nf.sub(Qr), p), Mh.addScaledVector(Ff.sub(Yr), p)));
|
|
5573
5573
|
}
|
|
5574
|
-
Wr.add(
|
|
5574
|
+
Wr.add(wh), Qr.add(xh), Yr.add(Mh);
|
|
5575
5575
|
}
|
|
5576
5576
|
e.isSkinnedMesh && (e.boneTransform(c, Wr), e.boneTransform(h, Qr), e.boneTransform(u, Yr));
|
|
5577
5577
|
var y = vw(e, n, t, i, Wr, Qr, Yr, Nl);
|
|
5578
5578
|
if (y) {
|
|
5579
5579
|
a && (Ho.fromBufferAttribute(a, c), jo.fromBufferAttribute(a, h), Uo.fromBufferAttribute(a, u), y.uv = Ln.getUV(Nl, Wr, Qr, Yr, Ho, jo, Uo, new pe())), l && (Ho.fromBufferAttribute(l, c), jo.fromBufferAttribute(l, h), Uo.fromBufferAttribute(l, u), y.uv2 = Ln.getUV(Nl, Wr, Qr, Yr, Ho, jo, Uo, new pe()));
|
|
5580
|
-
var b = new
|
|
5580
|
+
var b = new Pu(c, h, u);
|
|
5581
5581
|
Ln.getNormal(Wr, Qr, Yr, b.normal), y.face = b;
|
|
5582
5582
|
}
|
|
5583
5583
|
return y;
|
|
5584
5584
|
}
|
|
5585
|
-
var o2 = 0, Wi = new Mt(), Vf = new He(),
|
|
5585
|
+
var o2 = 0, Wi = new Mt(), Vf = new He(), Ph = new B();
|
|
5586
5586
|
function pt() {
|
|
5587
5587
|
Object.defineProperty(this, "id", { value: o2 += 2 }), this.uuid = wt.generateUUID(), this.name = "", this.type = "Geometry", this.vertices = [], this.colors = [], this.faces = [], this.faceVertexUvs = [[]], this.morphTargets = [], this.morphNormals = [], this.skinWeights = [], this.skinIndices = [], this.lineDistances = [], this.boundingBox = null, this.boundingSphere = null, this.elementsNeedUpdate = !1, this.verticesNeedUpdate = !1, this.uvsNeedUpdate = !1, this.normalsNeedUpdate = !1, this.colorsNeedUpdate = !1, this.lineDistancesNeedUpdate = !1, this.groupsNeedUpdate = !1;
|
|
5588
5588
|
}
|
|
@@ -5637,7 +5637,7 @@ pt.prototype = Object.assign(Object.create(Or.prototype), {
|
|
|
5637
5637
|
new B().fromArray(s, y * 3),
|
|
5638
5638
|
new B().fromArray(s, b * 3),
|
|
5639
5639
|
new B().fromArray(s, A * 3)
|
|
5640
|
-
], P = new
|
|
5640
|
+
], P = new Pu(y, b, A, M, x, w);
|
|
5641
5641
|
n.faces.push(P), a !== void 0 && n.faceVertexUvs[0].push([
|
|
5642
5642
|
new pe().fromArray(a, y * 2),
|
|
5643
5643
|
new pe().fromArray(a, b * 2),
|
|
@@ -5662,7 +5662,7 @@ pt.prototype = Object.assign(Object.create(Or.prototype), {
|
|
|
5662
5662
|
return this.computeFaceNormals(), e.boundingBox !== null && (this.boundingBox = e.boundingBox.clone()), e.boundingSphere !== null && (this.boundingSphere = e.boundingSphere.clone()), this;
|
|
5663
5663
|
},
|
|
5664
5664
|
center: function() {
|
|
5665
|
-
return this.computeBoundingBox(), this.boundingBox.getCenter(
|
|
5665
|
+
return this.computeBoundingBox(), this.boundingBox.getCenter(Ph).negate(), this.translate(Ph.x, Ph.y, Ph.z), this;
|
|
5666
5666
|
},
|
|
5667
5667
|
normalize: function() {
|
|
5668
5668
|
this.computeBoundingSphere();
|
|
@@ -5765,7 +5765,7 @@ pt.prototype = Object.assign(Object.create(Or.prototype), {
|
|
|
5765
5765
|
c.push(h[u].clone());
|
|
5766
5766
|
for (u = 0, d = l.length; u < d; u++) {
|
|
5767
5767
|
var p = l[u], g, y, b, A = p.vertexNormals, w = p.vertexColors;
|
|
5768
|
-
g = new
|
|
5768
|
+
g = new Pu(p.a + r, p.b + r, p.c + r), g.normal.copy(p.normal), i !== void 0 && g.normal.applyMatrix3(i).normalize();
|
|
5769
5769
|
for (var x = 0, M = A.length; x < M; x++)
|
|
5770
5770
|
y = A[x].clone(), i !== void 0 && y.applyMatrix3(i).normalize(), g.vertexNormals.push(y);
|
|
5771
5771
|
g.color.copy(p.color);
|
|
@@ -6311,8 +6311,8 @@ function la(e, n, t, i, r, s, o, a, l, c, h, u) {
|
|
|
6311
6311
|
la.prototype = Object.create(Wt.prototype);
|
|
6312
6312
|
la.prototype.constructor = la;
|
|
6313
6313
|
la.prototype.isDataTexture = !0;
|
|
6314
|
-
var Co = new cr(),
|
|
6315
|
-
function
|
|
6314
|
+
var Co = new cr(), _h = new B();
|
|
6315
|
+
function Hc(e, n, t, i, r, s) {
|
|
6316
6316
|
this.planes = [
|
|
6317
6317
|
e !== void 0 ? e : new Yi(),
|
|
6318
6318
|
n !== void 0 ? n : new Yi(),
|
|
@@ -6322,7 +6322,7 @@ function jc(e, n, t, i, r, s) {
|
|
|
6322
6322
|
s !== void 0 ? s : new Yi()
|
|
6323
6323
|
];
|
|
6324
6324
|
}
|
|
6325
|
-
Object.assign(
|
|
6325
|
+
Object.assign(Hc.prototype, {
|
|
6326
6326
|
set: function(e, n, t, i, r, s) {
|
|
6327
6327
|
var o = this.planes;
|
|
6328
6328
|
return o[0].copy(e), o[1].copy(n), o[2].copy(t), o[3].copy(i), o[4].copy(r), o[5].copy(s), this;
|
|
@@ -6357,7 +6357,7 @@ Object.assign(jc.prototype, {
|
|
|
6357
6357
|
intersectsBox: function(e) {
|
|
6358
6358
|
for (var n = this.planes, t = 0; t < 6; t++) {
|
|
6359
6359
|
var i = n[t];
|
|
6360
|
-
if (
|
|
6360
|
+
if (_h.x = i.normal.x > 0 ? e.max.x : e.min.x, _h.y = i.normal.y > 0 ? e.max.y : e.min.y, _h.z = i.normal.z > 0 ? e.max.z : e.min.z, i.distanceToPoint(_h) < 0)
|
|
6361
6361
|
return !1;
|
|
6362
6362
|
}
|
|
6363
6363
|
return !0;
|
|
@@ -6570,7 +6570,7 @@ function u2(e, n) {
|
|
|
6570
6570
|
update: l
|
|
6571
6571
|
};
|
|
6572
6572
|
}
|
|
6573
|
-
function
|
|
6573
|
+
function _u(e, n, t, i) {
|
|
6574
6574
|
pt.call(this), this.type = "PlaneGeometry", this.parameters = {
|
|
6575
6575
|
width: e,
|
|
6576
6576
|
height: n,
|
|
@@ -6578,8 +6578,8 @@ function Iu(e, n, t, i) {
|
|
|
6578
6578
|
heightSegments: i
|
|
6579
6579
|
}, this.fromBufferGeometry(new ca(e, n, t, i)), this.mergeVertices();
|
|
6580
6580
|
}
|
|
6581
|
-
|
|
6582
|
-
|
|
6581
|
+
_u.prototype = Object.create(pt.prototype);
|
|
6582
|
+
_u.prototype.constructor = _u;
|
|
6583
6583
|
function ca(e, n, t, i) {
|
|
6584
6584
|
Xe.call(this), this.type = "PlaneBufferGeometry", this.parameters = {
|
|
6585
6585
|
width: e,
|
|
@@ -9672,7 +9672,7 @@ function DI(e, n, t, i) {
|
|
|
9672
9672
|
var r = new Qe(0), s = 0, o, a, l = null, c = 0, h = null;
|
|
9673
9673
|
function u(f, m, p, g) {
|
|
9674
9674
|
var y = m.background, b = e.xr, A = b.getSession && b.getSession();
|
|
9675
|
-
if (A && A.environmentBlendMode === "additive" && (y = null), y === null ? d(r, s) : y && y.isColor && (d(y, 1), g = !0), (e.autoClear || g) && e.clear(e.autoClearColor, e.autoClearDepth, e.autoClearStencil), y && (y.isCubeTexture || y.isWebGLCubeRenderTarget || y.mapping ===
|
|
9675
|
+
if (A && A.environmentBlendMode === "additive" && (y = null), y === null ? d(r, s) : y && y.isColor && (d(y, 1), g = !0), (e.autoClear || g) && e.clear(e.autoClearColor, e.autoClearDepth, e.autoClearStencil), y && (y.isCubeTexture || y.isWebGLCubeRenderTarget || y.mapping === Vc)) {
|
|
9676
9676
|
a === void 0 && (a = new en(
|
|
9677
9677
|
new Sd(1, 1, 1),
|
|
9678
9678
|
new ei({
|
|
@@ -9702,7 +9702,7 @@ function DI(e, n, t, i) {
|
|
|
9702
9702
|
uniforms: aa(Mr.background.uniforms),
|
|
9703
9703
|
vertexShader: Mr.background.vertexShader,
|
|
9704
9704
|
fragmentShader: Mr.background.fragmentShader,
|
|
9705
|
-
side:
|
|
9705
|
+
side: Fc,
|
|
9706
9706
|
depthTest: !1,
|
|
9707
9707
|
depthWrite: !1,
|
|
9708
9708
|
fog: !1
|
|
@@ -10570,7 +10570,7 @@ function zS(e) {
|
|
|
10570
10570
|
case sg:
|
|
10571
10571
|
n = "ENVMAP_TYPE_CUBE";
|
|
10572
10572
|
break;
|
|
10573
|
-
case
|
|
10573
|
+
case Vc:
|
|
10574
10574
|
case ag:
|
|
10575
10575
|
n = "ENVMAP_TYPE_CUBE_UV";
|
|
10576
10576
|
break;
|
|
@@ -10984,7 +10984,7 @@ function VS(e, n, t) {
|
|
|
10984
10984
|
envMap: !!I,
|
|
10985
10985
|
envMapMode: I && I.mapping,
|
|
10986
10986
|
envMapEncoding: m(I),
|
|
10987
|
-
envMapCubeUV: !!I && (I.mapping ===
|
|
10987
|
+
envMapCubeUV: !!I && (I.mapping === Vc || I.mapping === ag),
|
|
10988
10988
|
lightMap: !!p.lightMap,
|
|
10989
10989
|
lightMapEncoding: m(p.lightMap),
|
|
10990
10990
|
aoMap: !!p.aoMap,
|
|
@@ -11439,7 +11439,7 @@ void main() {
|
|
|
11439
11439
|
gl_Position = vec4( position, 1.0 );
|
|
11440
11440
|
}`;
|
|
11441
11441
|
function Pw(e, n, t) {
|
|
11442
|
-
var i = new
|
|
11442
|
+
var i = new Hc(), r = new pe(), s = new pe(), o = new Ft(), a = [], l = [], c = {}, h = { 0: xn, 1: Fc, 2: Ed }, u = new ei({
|
|
11443
11443
|
defines: {
|
|
11444
11444
|
SAMPLE_RATE: 2 / 8,
|
|
11445
11445
|
HALF_SAMPLE_RATE: 1 / 8
|
|
@@ -12031,9 +12031,9 @@ function e3(e, n, t, i, r, s, o) {
|
|
|
12031
12031
|
t.activeTexture(33984 + H), t.bindTexture(34067, i.get(N).__webglTexture);
|
|
12032
12032
|
}
|
|
12033
12033
|
var te = {
|
|
12034
|
-
[
|
|
12034
|
+
[Au]: 10497,
|
|
12035
12035
|
[Kn]: 33071,
|
|
12036
|
-
[
|
|
12036
|
+
[wu]: 33648
|
|
12037
12037
|
}, ne = {
|
|
12038
12038
|
[mn]: 9728,
|
|
12039
12039
|
[Rp]: 9984,
|
|
@@ -12046,7 +12046,7 @@ function e3(e, n, t, i, r, s, o) {
|
|
|
12046
12046
|
Ce ? (e.texParameteri(N, 10242, te[H.wrapS]), e.texParameteri(N, 10243, te[H.wrapT]), (N === 32879 || N === 35866) && e.texParameteri(N, 32882, te[H.wrapR]), e.texParameteri(N, 10240, ne[H.magFilter]), e.texParameteri(N, 10241, ne[H.minFilter])) : (e.texParameteri(N, 10242, 33071), e.texParameteri(N, 10243, 33071), (N === 32879 || N === 35866) && e.texParameteri(N, 32882, 33071), (H.wrapS !== Kn || H.wrapT !== Kn) && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), e.texParameteri(N, 10240, M(H.magFilter)), e.texParameteri(N, 10241, M(H.minFilter)), H.minFilter !== mn && H.minFilter !== Bn && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter."));
|
|
12047
12047
|
var me = n.get("EXT_texture_filter_anisotropic");
|
|
12048
12048
|
if (me) {
|
|
12049
|
-
if (H.type === Jr && n.get("OES_texture_float_linear") === null || H.type ===
|
|
12049
|
+
if (H.type === Jr && n.get("OES_texture_float_linear") === null || H.type === Mu && (a || n.get("OES_texture_half_float_linear")) === null)
|
|
12050
12050
|
return;
|
|
12051
12051
|
(H.anisotropy > 1 || i.get(H).__currentAnisotropy) && (e.texParameterf(N, me.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(H.anisotropy, r.getMaxAnisotropy())), i.get(H).__currentAnisotropy = H.anisotropy);
|
|
12052
12052
|
}
|
|
@@ -12061,7 +12061,7 @@ function e3(e, n, t, i, r, s, o) {
|
|
|
12061
12061
|
de(me, H, he);
|
|
12062
12062
|
var Re, tt = H.mipmaps;
|
|
12063
12063
|
if (H.isDepthTexture)
|
|
12064
|
-
lt = 6402, a ? H.type === Jr ? lt = 36012 : H.type ===
|
|
12064
|
+
lt = 6402, a ? H.type === Jr ? lt = 36012 : H.type === uu ? lt = 33190 : H.type === Bl ? lt = 35056 : lt = 33189 : H.type === Jr && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), H.format === Ko && lt === 6402 && H.type !== xu && H.type !== uu && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), H.type = xu, et = s.convert(H.type)), H.format === Zl && lt === 6402 && (lt = 34041, H.type !== Bl && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), H.type = Bl, et = s.convert(H.type))), t.texImage2D(3553, 0, lt, Ae.width, Ae.height, 0, st, et, null);
|
|
12065
12065
|
else if (H.isDataTexture)
|
|
12066
12066
|
if (tt.length > 0 && he) {
|
|
12067
12067
|
for (var Ze = 0, Ke = tt.length; Ze < Ke; Ze++)
|
|
@@ -12094,7 +12094,7 @@ function e3(e, n, t, i, r, s, o) {
|
|
|
12094
12094
|
var me = 33189;
|
|
12095
12095
|
if (Ce) {
|
|
12096
12096
|
var Je = H.depthTexture;
|
|
12097
|
-
Je && Je.isDepthTexture && (Je.type === Jr ? me = 36012 : Je.type ===
|
|
12097
|
+
Je && Je.isDepthTexture && (Je.type === Jr ? me = 36012 : Je.type === uu && (me = 33190));
|
|
12098
12098
|
var Ae = fe(H);
|
|
12099
12099
|
e.renderbufferStorageMultisample(36161, Ae, me, H.width, H.height);
|
|
12100
12100
|
} else
|
|
@@ -12150,7 +12150,7 @@ function e3(e, n, t, i, r, s, o) {
|
|
|
12150
12150
|
var H = i.get(N), Ce = i.get(N.texture);
|
|
12151
12151
|
N.addEventListener("dispose", I), Ce.__webglTexture = e.createTexture(), o.memory.textures++;
|
|
12152
12152
|
var me = N.isWebGLCubeRenderTarget === !0, Je = N.isWebGLMultisampleRenderTarget === !0, Ae = y(N) || a;
|
|
12153
|
-
if (a && N.texture.format === Vs && (N.texture.type === Jr || N.texture.type ===
|
|
12153
|
+
if (a && N.texture.format === Vs && (N.texture.type === Jr || N.texture.type === Mu) && (N.texture.format = Ti, console.warn("THREE.WebGLRenderer: Rendering to textures with RGB format is not supported. Using RGBA format instead.")), me) {
|
|
12154
12154
|
H.__webglFramebuffer = [];
|
|
12155
12155
|
for (var he = 0; he < 6; he++)
|
|
12156
12156
|
H.__webglFramebuffer[he] = e.createFramebuffer();
|
|
@@ -12207,7 +12207,7 @@ function t3(e, n, t) {
|
|
|
12207
12207
|
var i = t.isWebGL2;
|
|
12208
12208
|
function r(s) {
|
|
12209
12209
|
var o;
|
|
12210
|
-
if (s ===
|
|
12210
|
+
if (s === Gc)
|
|
12211
12211
|
return 5121;
|
|
12212
12212
|
if (s === ZC)
|
|
12213
12213
|
return 32819;
|
|
@@ -12219,15 +12219,15 @@ function t3(e, n, t) {
|
|
|
12219
12219
|
return 5120;
|
|
12220
12220
|
if (s === YC)
|
|
12221
12221
|
return 5122;
|
|
12222
|
-
if (s ===
|
|
12222
|
+
if (s === xu)
|
|
12223
12223
|
return 5123;
|
|
12224
12224
|
if (s === XC)
|
|
12225
12225
|
return 5124;
|
|
12226
|
-
if (s ===
|
|
12226
|
+
if (s === uu)
|
|
12227
12227
|
return 5125;
|
|
12228
12228
|
if (s === Jr)
|
|
12229
12229
|
return 5126;
|
|
12230
|
-
if (s ===
|
|
12230
|
+
if (s === Mu)
|
|
12231
12231
|
return i ? 5131 : (o = n.get("OES_texture_half_float"), o !== null ? o.HALF_FLOAT_OES : null);
|
|
12232
12232
|
if (s === KC)
|
|
12233
12233
|
return 6406;
|
|
@@ -12310,11 +12310,11 @@ rc.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
12310
12310
|
constructor: rc,
|
|
12311
12311
|
isGroup: !0
|
|
12312
12312
|
});
|
|
12313
|
-
function
|
|
12313
|
+
function Iu() {
|
|
12314
12314
|
this._targetRay = null, this._grip = null;
|
|
12315
12315
|
}
|
|
12316
|
-
Object.assign(
|
|
12317
|
-
constructor:
|
|
12316
|
+
Object.assign(Iu.prototype, {
|
|
12317
|
+
constructor: Iu,
|
|
12318
12318
|
getTargetRaySpace: function() {
|
|
12319
12319
|
return this._targetRay === null && (this._targetRay = new rc(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1), this._targetRay;
|
|
12320
12320
|
},
|
|
@@ -12342,10 +12342,10 @@ function _w(e, n) {
|
|
|
12342
12342
|
var m = null, p = null;
|
|
12343
12343
|
this.enabled = !1, this.isPresenting = !1, this.getController = function(D) {
|
|
12344
12344
|
var k = l[D];
|
|
12345
|
-
return k === void 0 && (k = new
|
|
12345
|
+
return k === void 0 && (k = new Iu(), l[D] = k), k.getTargetRaySpace();
|
|
12346
12346
|
}, this.getControllerGrip = function(D) {
|
|
12347
12347
|
var k = l[D];
|
|
12348
|
-
return k === void 0 && (k = new
|
|
12348
|
+
return k === void 0 && (k = new Iu(), l[D] = k), k.getGripSpace();
|
|
12349
12349
|
};
|
|
12350
12350
|
function g(D) {
|
|
12351
12351
|
var k = c.get(D.inputSource);
|
|
@@ -12522,7 +12522,7 @@ function Iw(e) {
|
|
|
12522
12522
|
geometry: null,
|
|
12523
12523
|
program: null,
|
|
12524
12524
|
wireframe: !1
|
|
12525
|
-
}, M = null, P = null, I = new Ft(), T = new Ft(), z = null, D = n.width, k = n.height, O = 1, G = null, S = null, U = new Ft(0, 0, D, k), J = new Ft(0, 0, D, k), K = !1, te = new
|
|
12525
|
+
}, M = null, P = null, I = new Ft(), T = new Ft(), z = null, D = n.width, k = n.height, O = 1, G = null, S = null, U = new Ft(0, 0, D, k), J = new Ft(0, 0, D, k), K = !1, te = new Hc(), ne = new RI(), de = !1, ve = !1, ye = new Mt(), qe = new B();
|
|
12526
12526
|
function be() {
|
|
12527
12527
|
return b === null ? O : 1;
|
|
12528
12528
|
}
|
|
@@ -12948,9 +12948,9 @@ function Iw(e) {
|
|
|
12948
12948
|
console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");
|
|
12949
12949
|
return;
|
|
12950
12950
|
}
|
|
12951
|
-
if (Tt !==
|
|
12951
|
+
if (Tt !== Gc && et.convert(Tt) !== ae.getParameter(35738) && // IE11, Edge and Chrome Mac < 52 (#9513)
|
|
12952
12952
|
!(Tt === Jr && (Be.isWebGL2 || we.get("OES_texture_float") || we.get("WEBGL_color_buffer_float"))) && // Chrome Mac >= 52 and Firefox
|
|
12953
|
-
!(Tt ===
|
|
12953
|
+
!(Tt === Mu && (Be.isWebGL2 ? we.get("EXT_color_buffer_float") : we.get("EXT_color_buffer_half_float")))) {
|
|
12954
12954
|
console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");
|
|
12955
12955
|
return;
|
|
12956
12956
|
}
|
|
@@ -13123,7 +13123,7 @@ qs.prototype.isSpriteMaterial = !0;
|
|
|
13123
13123
|
qs.prototype.copy = function(e) {
|
|
13124
13124
|
return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.rotation = e.rotation, this.sizeAttenuation = e.sizeAttenuation, this;
|
|
13125
13125
|
};
|
|
13126
|
-
var Po, pl = new B(), _o = new B(), Io = new B(), So = new pe(), ml = new pe(), Sw = new Mt(),
|
|
13126
|
+
var Po, pl = new B(), _o = new B(), Io = new B(), So = new pe(), ml = new pe(), Sw = new Mt(), Ih = new B(), gl = new B(), Sh = new B(), h0 = new pe(), Hf = new pe(), u0 = new pe();
|
|
13127
13127
|
function Qp(e) {
|
|
13128
13128
|
if (He.call(this), this.type = "Sprite", Po === void 0) {
|
|
13129
13129
|
Po = new Xe();
|
|
@@ -13161,14 +13161,14 @@ Qp.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13161
13161
|
var t = this.material.rotation, i, r;
|
|
13162
13162
|
t !== 0 && (r = Math.cos(t), i = Math.sin(t));
|
|
13163
13163
|
var s = this.center;
|
|
13164
|
-
|
|
13165
|
-
var o = e.ray.intersectTriangle(
|
|
13166
|
-
if (!(o === null && (
|
|
13164
|
+
Th(Ih.set(-0.5, -0.5, 0), Io, s, _o, i, r), Th(gl.set(0.5, -0.5, 0), Io, s, _o, i, r), Th(Sh.set(0.5, 0.5, 0), Io, s, _o, i, r), h0.set(0, 0), Hf.set(1, 0), u0.set(1, 1);
|
|
13165
|
+
var o = e.ray.intersectTriangle(Ih, gl, Sh, !1, pl);
|
|
13166
|
+
if (!(o === null && (Th(gl.set(-0.5, 0.5, 0), Io, s, _o, i, r), Hf.set(0, 1), o = e.ray.intersectTriangle(Ih, Sh, gl, !1, pl), o === null))) {
|
|
13167
13167
|
var a = e.ray.origin.distanceTo(pl);
|
|
13168
13168
|
a < e.near || a > e.far || n.push({
|
|
13169
13169
|
distance: a,
|
|
13170
13170
|
point: pl.clone(),
|
|
13171
|
-
uv: Ln.getUV(pl,
|
|
13171
|
+
uv: Ln.getUV(pl, Ih, gl, Sh, h0, Hf, u0, new pe()),
|
|
13172
13172
|
face: null,
|
|
13173
13173
|
object: this
|
|
13174
13174
|
});
|
|
@@ -13181,11 +13181,11 @@ Qp.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13181
13181
|
return He.prototype.copy.call(this, e), e.center !== void 0 && this.center.copy(e.center), this;
|
|
13182
13182
|
}
|
|
13183
13183
|
});
|
|
13184
|
-
function
|
|
13184
|
+
function Th(e, n, t, i, r, s) {
|
|
13185
13185
|
So.subVectors(e, t).addScalar(0.5).multiply(i), r !== void 0 ? (ml.x = s * So.x - r * So.y, ml.y = r * So.x + s * So.y) : ml.copy(So), e.copy(n), e.x += ml.x, e.y += ml.y, e.applyMatrix4(Sw);
|
|
13186
13186
|
}
|
|
13187
|
-
var
|
|
13188
|
-
function
|
|
13187
|
+
var Dh = new B(), d0 = new B();
|
|
13188
|
+
function Su() {
|
|
13189
13189
|
He.call(this), this._currentLevel = 0, this.type = "LOD", Object.defineProperties(this, {
|
|
13190
13190
|
levels: {
|
|
13191
13191
|
enumerable: !0,
|
|
@@ -13193,8 +13193,8 @@ function Tu() {
|
|
|
13193
13193
|
}
|
|
13194
13194
|
}), this.autoUpdate = !0;
|
|
13195
13195
|
}
|
|
13196
|
-
|
|
13197
|
-
constructor:
|
|
13196
|
+
Su.prototype = Object.assign(Object.create(He.prototype), {
|
|
13197
|
+
constructor: Su,
|
|
13198
13198
|
isLOD: !0,
|
|
13199
13199
|
copy: function(e) {
|
|
13200
13200
|
He.prototype.copy.call(this, e, !1);
|
|
@@ -13225,16 +13225,16 @@ Tu.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13225
13225
|
raycast: function(e, n) {
|
|
13226
13226
|
var t = this.levels;
|
|
13227
13227
|
if (t.length > 0) {
|
|
13228
|
-
|
|
13229
|
-
var i = e.ray.origin.distanceTo(
|
|
13228
|
+
Dh.setFromMatrixPosition(this.matrixWorld);
|
|
13229
|
+
var i = e.ray.origin.distanceTo(Dh);
|
|
13230
13230
|
this.getObjectForDistance(i).raycast(e, n);
|
|
13231
13231
|
}
|
|
13232
13232
|
},
|
|
13233
13233
|
update: function(e) {
|
|
13234
13234
|
var n = this.levels;
|
|
13235
13235
|
if (n.length > 1) {
|
|
13236
|
-
|
|
13237
|
-
var t =
|
|
13236
|
+
Dh.setFromMatrixPosition(e.matrixWorld), d0.setFromMatrixPosition(this.matrixWorld);
|
|
13237
|
+
var t = Dh.distanceTo(d0) / e.zoom;
|
|
13238
13238
|
n[0].object.visible = !0;
|
|
13239
13239
|
for (var i = 1, r = n.length; i < r && t >= n[i].distance; i++)
|
|
13240
13240
|
n[i - 1].object.visible = !1, n[i].object.visible = !0;
|
|
@@ -13351,7 +13351,7 @@ p0.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13351
13351
|
constructor: p0,
|
|
13352
13352
|
isBone: !0
|
|
13353
13353
|
});
|
|
13354
|
-
var m0 = new Mt(), g0 = new Mt(),
|
|
13354
|
+
var m0 = new Mt(), g0 = new Mt(), Lh = [], vl = new en();
|
|
13355
13355
|
function Zp(e, n, t) {
|
|
13356
13356
|
en.call(this, e, n), this.instanceMatrix = new ut(new Float32Array(t * 16), 16), this.count = t, this.frustumCulled = !1;
|
|
13357
13357
|
}
|
|
@@ -13365,12 +13365,12 @@ Zp.prototype = Object.assign(Object.create(en.prototype), {
|
|
|
13365
13365
|
var t = this.matrixWorld, i = this.count;
|
|
13366
13366
|
if (vl.geometry = this.geometry, vl.material = this.material, vl.material !== void 0)
|
|
13367
13367
|
for (var r = 0; r < i; r++) {
|
|
13368
|
-
this.getMatrixAt(r, m0), g0.multiplyMatrices(t, m0), vl.matrixWorld = g0, vl.raycast(e,
|
|
13369
|
-
for (var s = 0, o =
|
|
13370
|
-
var a =
|
|
13368
|
+
this.getMatrixAt(r, m0), g0.multiplyMatrices(t, m0), vl.matrixWorld = g0, vl.raycast(e, Lh);
|
|
13369
|
+
for (var s = 0, o = Lh.length; s < o; s++) {
|
|
13370
|
+
var a = Lh[s];
|
|
13371
13371
|
a.instanceId = r, a.object = this, n.push(a);
|
|
13372
13372
|
}
|
|
13373
|
-
|
|
13373
|
+
Lh.length = 0;
|
|
13374
13374
|
}
|
|
13375
13375
|
},
|
|
13376
13376
|
setMatrixAt: function(e, n) {
|
|
@@ -13388,7 +13388,7 @@ un.prototype.isLineBasicMaterial = !0;
|
|
|
13388
13388
|
un.prototype.copy = function(e) {
|
|
13389
13389
|
return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.morphTargets = e.morphTargets, this;
|
|
13390
13390
|
};
|
|
13391
|
-
var v0 = new B(), y0 = new B(), b0 = new Mt(),
|
|
13391
|
+
var v0 = new B(), y0 = new B(), b0 = new Mt(), kh = new Ua(), Rh = new cr();
|
|
13392
13392
|
function vi(e, n, t) {
|
|
13393
13393
|
t === 1 && console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."), He.call(this), this.type = "Line", this.geometry = e !== void 0 ? e : new Xe(), this.material = n !== void 0 ? n : new un(), this.updateMorphTargets();
|
|
13394
13394
|
}
|
|
@@ -13414,8 +13414,8 @@ vi.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13414
13414
|
},
|
|
13415
13415
|
raycast: function(e, n) {
|
|
13416
13416
|
var t = this.geometry, i = this.matrixWorld, r = e.params.Line.threshold;
|
|
13417
|
-
if (t.boundingSphere === null && t.computeBoundingSphere(),
|
|
13418
|
-
b0.getInverse(i),
|
|
13417
|
+
if (t.boundingSphere === null && t.computeBoundingSphere(), Rh.copy(t.boundingSphere), Rh.applyMatrix4(i), Rh.radius += r, e.ray.intersectsSphere(Rh) !== !1) {
|
|
13418
|
+
b0.getInverse(i), kh.copy(e.ray).applyMatrix4(b0);
|
|
13419
13419
|
var s = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), o = s * s, a = new B(), l = new B(), c = new B(), h = new B(), u = this && this.isLineSegments ? 2 : 1;
|
|
13420
13420
|
if (t.isBufferGeometry) {
|
|
13421
13421
|
var d = t.index, f = t.attributes, m = f.position.array;
|
|
@@ -13423,7 +13423,7 @@ vi.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13423
13423
|
for (var p = d.array, g = 0, y = p.length - 1; g < y; g += u) {
|
|
13424
13424
|
var b = p[g], A = p[g + 1];
|
|
13425
13425
|
a.fromArray(m, b * 3), l.fromArray(m, A * 3);
|
|
13426
|
-
var w =
|
|
13426
|
+
var w = kh.distanceSqToSegment(a, l, h, c);
|
|
13427
13427
|
if (!(w > o)) {
|
|
13428
13428
|
h.applyMatrix4(this.matrixWorld);
|
|
13429
13429
|
var x = e.ray.origin.distanceTo(h);
|
|
@@ -13442,7 +13442,7 @@ vi.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13442
13442
|
else
|
|
13443
13443
|
for (var g = 0, y = m.length / 3 - 1; g < y; g += u) {
|
|
13444
13444
|
a.fromArray(m, 3 * g), l.fromArray(m, 3 * g + 3);
|
|
13445
|
-
var w =
|
|
13445
|
+
var w = kh.distanceSqToSegment(a, l, h, c);
|
|
13446
13446
|
if (!(w > o)) {
|
|
13447
13447
|
h.applyMatrix4(this.matrixWorld);
|
|
13448
13448
|
var x = e.ray.origin.distanceTo(h);
|
|
@@ -13460,7 +13460,7 @@ vi.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13460
13460
|
}
|
|
13461
13461
|
} else if (t.isGeometry)
|
|
13462
13462
|
for (var M = t.vertices, P = M.length, g = 0; g < P - 1; g += u) {
|
|
13463
|
-
var w =
|
|
13463
|
+
var w = kh.distanceSqToSegment(M[g], M[g + 1], h, c);
|
|
13464
13464
|
if (!(w > o)) {
|
|
13465
13465
|
h.applyMatrix4(this.matrixWorld);
|
|
13466
13466
|
var x = e.ray.origin.distanceTo(h);
|
|
@@ -13497,7 +13497,7 @@ vi.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13497
13497
|
return new this.constructor(this.geometry, this.material).copy(this);
|
|
13498
13498
|
}
|
|
13499
13499
|
});
|
|
13500
|
-
var
|
|
13500
|
+
var Oh = new B(), zh = new B();
|
|
13501
13501
|
function gn(e, n) {
|
|
13502
13502
|
vi.call(this, e, n), this.type = "LineSegments";
|
|
13503
13503
|
}
|
|
@@ -13509,13 +13509,13 @@ gn.prototype = Object.assign(Object.create(vi.prototype), {
|
|
|
13509
13509
|
if (e.isBufferGeometry)
|
|
13510
13510
|
if (e.index === null) {
|
|
13511
13511
|
for (var n = e.attributes.position, t = [], i = 0, r = n.count; i < r; i += 2)
|
|
13512
|
-
|
|
13512
|
+
Oh.fromBufferAttribute(n, i), zh.fromBufferAttribute(n, i + 1), t[i] = i === 0 ? 0 : t[i - 1], t[i + 1] = t[i] + Oh.distanceTo(zh);
|
|
13513
13513
|
e.setAttribute("lineDistance", new ze(t, 1));
|
|
13514
13514
|
} else
|
|
13515
13515
|
console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");
|
|
13516
13516
|
else if (e.isGeometry)
|
|
13517
13517
|
for (var s = e.vertices, t = e.lineDistances, i = 0, r = s.length; i < r; i += 2)
|
|
13518
|
-
|
|
13518
|
+
Oh.copy(s[i]), zh.copy(s[i + 1]), t[i] = i === 0 ? 0 : t[i - 1], t[i + 1] = t[i] + Oh.distanceTo(zh);
|
|
13519
13519
|
return this;
|
|
13520
13520
|
}
|
|
13521
13521
|
});
|
|
@@ -13535,7 +13535,7 @@ Js.prototype.isPointsMaterial = !0;
|
|
|
13535
13535
|
Js.prototype.copy = function(e) {
|
|
13536
13536
|
return dt.prototype.copy.call(this, e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.morphTargets = e.morphTargets, this;
|
|
13537
13537
|
};
|
|
13538
|
-
var A0 = new Mt(), Jp = new Ua(),
|
|
13538
|
+
var A0 = new Mt(), Jp = new Ua(), Bh = new cr(), Nh = new B();
|
|
13539
13539
|
function Kp(e, n) {
|
|
13540
13540
|
He.call(this), this.type = "Points", this.geometry = e !== void 0 ? e : new Xe(), this.material = n !== void 0 ? n : new Js(), this.updateMorphTargets();
|
|
13541
13541
|
}
|
|
@@ -13544,7 +13544,7 @@ Kp.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13544
13544
|
isPoints: !0,
|
|
13545
13545
|
raycast: function(e, n) {
|
|
13546
13546
|
var t = this.geometry, i = this.matrixWorld, r = e.params.Points.threshold;
|
|
13547
|
-
if (t.boundingSphere === null && t.computeBoundingSphere(),
|
|
13547
|
+
if (t.boundingSphere === null && t.computeBoundingSphere(), Bh.copy(t.boundingSphere), Bh.applyMatrix4(i), Bh.radius += r, e.ray.intersectsSphere(Bh) !== !1) {
|
|
13548
13548
|
A0.getInverse(i), Jp.copy(e.ray).applyMatrix4(A0);
|
|
13549
13549
|
var s = r / ((this.scale.x + this.scale.y + this.scale.z) / 3), o = s * s;
|
|
13550
13550
|
if (t.isBufferGeometry) {
|
|
@@ -13552,11 +13552,11 @@ Kp.prototype = Object.assign(Object.create(He.prototype), {
|
|
|
13552
13552
|
if (a !== null)
|
|
13553
13553
|
for (var h = a.array, u = 0, d = h.length; u < d; u++) {
|
|
13554
13554
|
var f = h[u];
|
|
13555
|
-
|
|
13555
|
+
Nh.fromArray(c, f * 3), jf(Nh, f, o, i, e, n, this);
|
|
13556
13556
|
}
|
|
13557
13557
|
else
|
|
13558
13558
|
for (var u = 0, m = c.length / 3; u < m; u++)
|
|
13559
|
-
|
|
13559
|
+
Nh.fromArray(c, u * 3), jf(Nh, u, o, i, e, n, this);
|
|
13560
13560
|
} else
|
|
13561
13561
|
for (var p = t.vertices, u = 0, m = p.length; u < m; u++)
|
|
13562
13562
|
jf(p[u], u, o, i, e, n, this);
|
|
@@ -13616,20 +13616,20 @@ function sc(e, n, t, i, r, s, o, a, l, c, h, u) {
|
|
|
13616
13616
|
sc.prototype = Object.create(Wt.prototype);
|
|
13617
13617
|
sc.prototype.constructor = sc;
|
|
13618
13618
|
sc.prototype.isCompressedTexture = !0;
|
|
13619
|
-
function
|
|
13619
|
+
function Tu(e, n, t, i, r, s, o, a, l) {
|
|
13620
13620
|
Wt.call(this, e, n, t, i, r, s, o, a, l), this.needsUpdate = !0;
|
|
13621
13621
|
}
|
|
13622
|
-
|
|
13623
|
-
|
|
13624
|
-
|
|
13625
|
-
function
|
|
13622
|
+
Tu.prototype = Object.create(Wt.prototype);
|
|
13623
|
+
Tu.prototype.constructor = Tu;
|
|
13624
|
+
Tu.prototype.isCanvasTexture = !0;
|
|
13625
|
+
function Du(e, n, t, i, r, s, o, a, l, c) {
|
|
13626
13626
|
if (c = c !== void 0 ? c : Ko, c !== Ko && c !== Zl)
|
|
13627
13627
|
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
13628
|
-
t === void 0 && c === Ko && (t =
|
|
13628
|
+
t === void 0 && c === Ko && (t = xu), t === void 0 && c === Zl && (t = Bl), Wt.call(this, null, i, r, s, o, a, c, t, l), this.image = { width: e, height: n }, this.magFilter = o !== void 0 ? o : mn, this.minFilter = a !== void 0 ? a : mn, this.flipY = !1, this.generateMipmaps = !1;
|
|
13629
13629
|
}
|
|
13630
|
-
|
|
13631
|
-
|
|
13632
|
-
|
|
13630
|
+
Du.prototype = Object.create(Wt.prototype);
|
|
13631
|
+
Du.prototype.constructor = Du;
|
|
13632
|
+
Du.prototype.isDepthTexture = !0;
|
|
13633
13633
|
function oc(e) {
|
|
13634
13634
|
Xe.call(this), this.type = "WireframeGeometry";
|
|
13635
13635
|
var n = [], t, i, r, s, o, a = [0, 0], l = {}, c, h, u, d, f = ["a", "b", "c"], m;
|
|
@@ -13660,15 +13660,15 @@ function oc(e) {
|
|
|
13660
13660
|
}
|
|
13661
13661
|
oc.prototype = Object.create(Xe.prototype);
|
|
13662
13662
|
oc.prototype.constructor = oc;
|
|
13663
|
-
function
|
|
13663
|
+
function Lu(e, n, t) {
|
|
13664
13664
|
pt.call(this), this.type = "ParametricGeometry", this.parameters = {
|
|
13665
13665
|
func: e,
|
|
13666
13666
|
slices: n,
|
|
13667
13667
|
stacks: t
|
|
13668
13668
|
}, this.fromBufferGeometry(new ac(e, n, t)), this.mergeVertices();
|
|
13669
13669
|
}
|
|
13670
|
-
|
|
13671
|
-
|
|
13670
|
+
Lu.prototype = Object.create(pt.prototype);
|
|
13671
|
+
Lu.prototype.constructor = Lu;
|
|
13672
13672
|
function ac(e, n, t) {
|
|
13673
13673
|
Xe.call(this), this.type = "ParametricBufferGeometry", this.parameters = {
|
|
13674
13674
|
func: e,
|
|
@@ -13694,7 +13694,7 @@ function ac(e, n, t) {
|
|
|
13694
13694
|
}
|
|
13695
13695
|
ac.prototype = Object.create(Xe.prototype);
|
|
13696
13696
|
ac.prototype.constructor = ac;
|
|
13697
|
-
function
|
|
13697
|
+
function ku(e, n, t, i) {
|
|
13698
13698
|
pt.call(this), this.type = "PolyhedronGeometry", this.parameters = {
|
|
13699
13699
|
vertices: e,
|
|
13700
13700
|
indices: n,
|
|
@@ -13702,8 +13702,8 @@ function Ru(e, n, t, i) {
|
|
|
13702
13702
|
detail: i
|
|
13703
13703
|
}, this.fromBufferGeometry(new oi(e, n, t, i)), this.mergeVertices();
|
|
13704
13704
|
}
|
|
13705
|
-
|
|
13706
|
-
|
|
13705
|
+
ku.prototype = Object.create(pt.prototype);
|
|
13706
|
+
ku.prototype.constructor = ku;
|
|
13707
13707
|
function oi(e, n, t, i) {
|
|
13708
13708
|
Xe.call(this), this.type = "PolyhedronBufferGeometry", this.parameters = {
|
|
13709
13709
|
vertices: e,
|
|
@@ -13775,14 +13775,14 @@ function oi(e, n, t, i) {
|
|
|
13775
13775
|
}
|
|
13776
13776
|
oi.prototype = Object.create(Xe.prototype);
|
|
13777
13777
|
oi.prototype.constructor = oi;
|
|
13778
|
-
function
|
|
13778
|
+
function Ru(e, n) {
|
|
13779
13779
|
pt.call(this), this.type = "TetrahedronGeometry", this.parameters = {
|
|
13780
13780
|
radius: e,
|
|
13781
13781
|
detail: n
|
|
13782
13782
|
}, this.fromBufferGeometry(new lc(e, n)), this.mergeVertices();
|
|
13783
13783
|
}
|
|
13784
|
-
|
|
13785
|
-
|
|
13784
|
+
Ru.prototype = Object.create(pt.prototype);
|
|
13785
|
+
Ru.prototype.constructor = Ru;
|
|
13786
13786
|
function lc(e, n) {
|
|
13787
13787
|
var t = [
|
|
13788
13788
|
1,
|
|
@@ -13818,14 +13818,14 @@ function lc(e, n) {
|
|
|
13818
13818
|
}
|
|
13819
13819
|
lc.prototype = Object.create(oi.prototype);
|
|
13820
13820
|
lc.prototype.constructor = lc;
|
|
13821
|
-
function
|
|
13821
|
+
function Ou(e, n) {
|
|
13822
13822
|
pt.call(this), this.type = "OctahedronGeometry", this.parameters = {
|
|
13823
13823
|
radius: e,
|
|
13824
13824
|
detail: n
|
|
13825
13825
|
}, this.fromBufferGeometry(new ha(e, n)), this.mergeVertices();
|
|
13826
13826
|
}
|
|
13827
|
-
|
|
13828
|
-
|
|
13827
|
+
Ou.prototype = Object.create(pt.prototype);
|
|
13828
|
+
Ou.prototype.constructor = Ou;
|
|
13829
13829
|
function ha(e, n) {
|
|
13830
13830
|
var t = [
|
|
13831
13831
|
1,
|
|
@@ -13879,14 +13879,14 @@ function ha(e, n) {
|
|
|
13879
13879
|
}
|
|
13880
13880
|
ha.prototype = Object.create(oi.prototype);
|
|
13881
13881
|
ha.prototype.constructor = ha;
|
|
13882
|
-
function
|
|
13882
|
+
function zu(e, n) {
|
|
13883
13883
|
pt.call(this), this.type = "IcosahedronGeometry", this.parameters = {
|
|
13884
13884
|
radius: e,
|
|
13885
13885
|
detail: n
|
|
13886
13886
|
}, this.fromBufferGeometry(new cc(e, n)), this.mergeVertices();
|
|
13887
13887
|
}
|
|
13888
|
-
|
|
13889
|
-
|
|
13888
|
+
zu.prototype = Object.create(pt.prototype);
|
|
13889
|
+
zu.prototype.constructor = zu;
|
|
13890
13890
|
function cc(e, n) {
|
|
13891
13891
|
var t = (1 + Math.sqrt(5)) / 2, i = [
|
|
13892
13892
|
-1,
|
|
@@ -13994,14 +13994,14 @@ function cc(e, n) {
|
|
|
13994
13994
|
}
|
|
13995
13995
|
cc.prototype = Object.create(oi.prototype);
|
|
13996
13996
|
cc.prototype.constructor = cc;
|
|
13997
|
-
function
|
|
13997
|
+
function Bu(e, n) {
|
|
13998
13998
|
pt.call(this), this.type = "DodecahedronGeometry", this.parameters = {
|
|
13999
13999
|
radius: e,
|
|
14000
14000
|
detail: n
|
|
14001
14001
|
}, this.fromBufferGeometry(new hc(e, n)), this.mergeVertices();
|
|
14002
14002
|
}
|
|
14003
|
-
|
|
14004
|
-
|
|
14003
|
+
Bu.prototype = Object.create(pt.prototype);
|
|
14004
|
+
Bu.prototype.constructor = Bu;
|
|
14005
14005
|
function hc(e, n) {
|
|
14006
14006
|
var t = (1 + Math.sqrt(5)) / 2, i = 1 / t, r = [
|
|
14007
14007
|
// (±1, ±1, ±1)
|
|
@@ -14185,7 +14185,7 @@ function hc(e, n) {
|
|
|
14185
14185
|
}
|
|
14186
14186
|
hc.prototype = Object.create(oi.prototype);
|
|
14187
14187
|
hc.prototype.constructor = hc;
|
|
14188
|
-
function
|
|
14188
|
+
function Nu(e, n, t, i, r, s) {
|
|
14189
14189
|
pt.call(this), this.type = "TubeGeometry", this.parameters = {
|
|
14190
14190
|
path: e,
|
|
14191
14191
|
tubularSegments: n,
|
|
@@ -14196,8 +14196,8 @@ function Fu(e, n, t, i, r, s) {
|
|
|
14196
14196
|
var o = new ua(e, n, t, i, r);
|
|
14197
14197
|
this.tangents = o.tangents, this.normals = o.normals, this.binormals = o.binormals, this.fromBufferGeometry(o), this.mergeVertices();
|
|
14198
14198
|
}
|
|
14199
|
-
|
|
14200
|
-
|
|
14199
|
+
Nu.prototype = Object.create(pt.prototype);
|
|
14200
|
+
Nu.prototype.constructor = Nu;
|
|
14201
14201
|
function ua(e, n, t, i, r) {
|
|
14202
14202
|
Xe.call(this), this.type = "TubeBufferGeometry", this.parameters = {
|
|
14203
14203
|
path: e,
|
|
@@ -14242,7 +14242,7 @@ ua.prototype.toJSON = function() {
|
|
|
14242
14242
|
var e = Xe.prototype.toJSON.call(this);
|
|
14243
14243
|
return e.path = this.parameters.path.toJSON(), e;
|
|
14244
14244
|
};
|
|
14245
|
-
function
|
|
14245
|
+
function Fu(e, n, t, i, r, s, o) {
|
|
14246
14246
|
pt.call(this), this.type = "TorusKnotGeometry", this.parameters = {
|
|
14247
14247
|
radius: e,
|
|
14248
14248
|
tube: n,
|
|
@@ -14252,8 +14252,8 @@ function Vu(e, n, t, i, r, s, o) {
|
|
|
14252
14252
|
q: s
|
|
14253
14253
|
}, o !== void 0 && console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."), this.fromBufferGeometry(new uc(e, n, t, i, r, s)), this.mergeVertices();
|
|
14254
14254
|
}
|
|
14255
|
-
|
|
14256
|
-
|
|
14255
|
+
Fu.prototype = Object.create(pt.prototype);
|
|
14256
|
+
Fu.prototype.constructor = Fu;
|
|
14257
14257
|
function uc(e, n, t, i, r, s) {
|
|
14258
14258
|
Xe.call(this), this.type = "TorusKnotBufferGeometry", this.parameters = {
|
|
14259
14259
|
radius: e,
|
|
@@ -14284,7 +14284,7 @@ function uc(e, n, t, i, r, s) {
|
|
|
14284
14284
|
}
|
|
14285
14285
|
uc.prototype = Object.create(Xe.prototype);
|
|
14286
14286
|
uc.prototype.constructor = uc;
|
|
14287
|
-
function
|
|
14287
|
+
function Vu(e, n, t, i, r) {
|
|
14288
14288
|
pt.call(this), this.type = "TorusGeometry", this.parameters = {
|
|
14289
14289
|
radius: e,
|
|
14290
14290
|
tube: n,
|
|
@@ -14293,8 +14293,8 @@ function Gu(e, n, t, i, r) {
|
|
|
14293
14293
|
arc: r
|
|
14294
14294
|
}, this.fromBufferGeometry(new dc(e, n, t, i, r)), this.mergeVertices();
|
|
14295
14295
|
}
|
|
14296
|
-
|
|
14297
|
-
|
|
14296
|
+
Vu.prototype = Object.create(pt.prototype);
|
|
14297
|
+
Vu.prototype.constructor = Vu;
|
|
14298
14298
|
function dc(e, n, t, i, r) {
|
|
14299
14299
|
Xe.call(this), this.type = "TorusBufferGeometry", this.parameters = {
|
|
14300
14300
|
radius: e,
|
|
@@ -14523,13 +14523,13 @@ function Td(e, n) {
|
|
|
14523
14523
|
return e.x === n.x && e.y === n.y;
|
|
14524
14524
|
}
|
|
14525
14525
|
function Dw(e, n, t, i) {
|
|
14526
|
-
var r =
|
|
14527
|
-
return !!(r !== s && o !== a || r === 0 &&
|
|
14526
|
+
var r = Vh(Kt(e, n, t)), s = Vh(Kt(e, n, i)), o = Vh(Kt(t, i, e)), a = Vh(Kt(t, i, n));
|
|
14527
|
+
return !!(r !== s && o !== a || r === 0 && Fh(e, t, n) || s === 0 && Fh(e, i, n) || o === 0 && Fh(t, e, i) || a === 0 && Fh(t, n, i));
|
|
14528
14528
|
}
|
|
14529
|
-
function
|
|
14529
|
+
function Fh(e, n, t) {
|
|
14530
14530
|
return n.x <= Math.max(e.x, t.x) && n.x >= Math.min(e.x, t.x) && n.y <= Math.max(e.y, t.y) && n.y >= Math.min(e.y, t.y);
|
|
14531
14531
|
}
|
|
14532
|
-
function
|
|
14532
|
+
function Vh(e) {
|
|
14533
14533
|
return e > 0 ? 1 : e < 0 ? -1 : 0;
|
|
14534
14534
|
}
|
|
14535
14535
|
function y3(e, n) {
|
|
@@ -14776,14 +14776,14 @@ function kw(e, n, t) {
|
|
|
14776
14776
|
t.shapes.push(e.uuid);
|
|
14777
14777
|
return n.extrudePath !== void 0 && (t.options.extrudePath = n.extrudePath.toJSON()), t;
|
|
14778
14778
|
}
|
|
14779
|
-
function
|
|
14779
|
+
function Gu(e, n) {
|
|
14780
14780
|
pt.call(this), this.type = "TextGeometry", this.parameters = {
|
|
14781
14781
|
text: e,
|
|
14782
14782
|
parameters: n
|
|
14783
14783
|
}, this.fromBufferGeometry(new gc(e, n)), this.mergeVertices();
|
|
14784
14784
|
}
|
|
14785
|
-
|
|
14786
|
-
|
|
14785
|
+
Gu.prototype = Object.create(pt.prototype);
|
|
14786
|
+
Gu.prototype.constructor = Gu;
|
|
14787
14787
|
function gc(e, n) {
|
|
14788
14788
|
n = n || {};
|
|
14789
14789
|
var t = n.font;
|
|
@@ -14794,7 +14794,7 @@ function gc(e, n) {
|
|
|
14794
14794
|
}
|
|
14795
14795
|
gc.prototype = Object.create(Ir.prototype);
|
|
14796
14796
|
gc.prototype.constructor = gc;
|
|
14797
|
-
function
|
|
14797
|
+
function Hu(e, n, t, i, r, s, o) {
|
|
14798
14798
|
pt.call(this), this.type = "SphereGeometry", this.parameters = {
|
|
14799
14799
|
radius: e,
|
|
14800
14800
|
widthSegments: n,
|
|
@@ -14805,8 +14805,8 @@ function ju(e, n, t, i, r, s, o) {
|
|
|
14805
14805
|
thetaLength: o
|
|
14806
14806
|
}, this.fromBufferGeometry(new fa(e, n, t, i, r, s, o)), this.mergeVertices();
|
|
14807
14807
|
}
|
|
14808
|
-
|
|
14809
|
-
|
|
14808
|
+
Hu.prototype = Object.create(pt.prototype);
|
|
14809
|
+
Hu.prototype.constructor = Hu;
|
|
14810
14810
|
function fa(e, n, t, i, r, s, o) {
|
|
14811
14811
|
Xe.call(this), this.type = "SphereBufferGeometry", this.parameters = {
|
|
14812
14812
|
radius: e,
|
|
@@ -14835,7 +14835,7 @@ function fa(e, n, t, i, r, s, o) {
|
|
|
14835
14835
|
}
|
|
14836
14836
|
fa.prototype = Object.create(Xe.prototype);
|
|
14837
14837
|
fa.prototype.constructor = fa;
|
|
14838
|
-
function
|
|
14838
|
+
function ju(e, n, t, i, r, s) {
|
|
14839
14839
|
pt.call(this), this.type = "RingGeometry", this.parameters = {
|
|
14840
14840
|
innerRadius: e,
|
|
14841
14841
|
outerRadius: n,
|
|
@@ -14845,8 +14845,8 @@ function Uu(e, n, t, i, r, s) {
|
|
|
14845
14845
|
thetaLength: s
|
|
14846
14846
|
}, this.fromBufferGeometry(new vc(e, n, t, i, r, s)), this.mergeVertices();
|
|
14847
14847
|
}
|
|
14848
|
-
|
|
14849
|
-
|
|
14848
|
+
ju.prototype = Object.create(pt.prototype);
|
|
14849
|
+
ju.prototype.constructor = ju;
|
|
14850
14850
|
function vc(e, n, t, i, r, s) {
|
|
14851
14851
|
Xe.call(this), this.type = "RingBufferGeometry", this.parameters = {
|
|
14852
14852
|
innerRadius: e,
|
|
@@ -14874,7 +14874,7 @@ function vc(e, n, t, i, r, s) {
|
|
|
14874
14874
|
}
|
|
14875
14875
|
vc.prototype = Object.create(Xe.prototype);
|
|
14876
14876
|
vc.prototype.constructor = vc;
|
|
14877
|
-
function
|
|
14877
|
+
function Uu(e, n, t, i) {
|
|
14878
14878
|
pt.call(this), this.type = "LatheGeometry", this.parameters = {
|
|
14879
14879
|
points: e,
|
|
14880
14880
|
segments: n,
|
|
@@ -14882,8 +14882,8 @@ function Wu(e, n, t, i) {
|
|
|
14882
14882
|
phiLength: i
|
|
14883
14883
|
}, this.fromBufferGeometry(new yc(e, n, t, i)), this.mergeVertices();
|
|
14884
14884
|
}
|
|
14885
|
-
|
|
14886
|
-
|
|
14885
|
+
Uu.prototype = Object.create(pt.prototype);
|
|
14886
|
+
Uu.prototype.constructor = Uu;
|
|
14887
14887
|
function yc(e, n, t, i) {
|
|
14888
14888
|
Xe.call(this), this.type = "LatheBufferGeometry", this.parameters = {
|
|
14889
14889
|
points: e,
|
|
@@ -14968,7 +14968,7 @@ function Rw(e, n) {
|
|
|
14968
14968
|
n.shapes.push(e.uuid);
|
|
14969
14969
|
return n;
|
|
14970
14970
|
}
|
|
14971
|
-
function
|
|
14971
|
+
function Wu(e, n) {
|
|
14972
14972
|
Xe.call(this), this.type = "EdgesGeometry", this.parameters = {
|
|
14973
14973
|
thresholdAngle: n
|
|
14974
14974
|
}, n = n !== void 0 ? n : 1;
|
|
@@ -14986,8 +14986,8 @@ function Qu(e, n) {
|
|
|
14986
14986
|
}
|
|
14987
14987
|
this.setAttribute("position", new ze(t, 3));
|
|
14988
14988
|
}
|
|
14989
|
-
|
|
14990
|
-
|
|
14989
|
+
Wu.prototype = Object.create(Xe.prototype);
|
|
14990
|
+
Wu.prototype.constructor = Wu;
|
|
14991
14991
|
function ga(e, n, t, i, r, s, o, a) {
|
|
14992
14992
|
pt.call(this), this.type = "CylinderGeometry", this.parameters = {
|
|
14993
14993
|
radiusTop: e,
|
|
@@ -15051,7 +15051,7 @@ function us(e, n, t, i, r, s, o, a) {
|
|
|
15051
15051
|
}
|
|
15052
15052
|
us.prototype = Object.create(Xe.prototype);
|
|
15053
15053
|
us.prototype.constructor = us;
|
|
15054
|
-
function
|
|
15054
|
+
function Qu(e, n, t, i, r, s, o) {
|
|
15055
15055
|
ga.call(this, 0, e, n, t, i, r, s, o), this.type = "ConeGeometry", this.parameters = {
|
|
15056
15056
|
radius: e,
|
|
15057
15057
|
height: n,
|
|
@@ -15062,9 +15062,9 @@ function Yu(e, n, t, i, r, s, o) {
|
|
|
15062
15062
|
thetaLength: o
|
|
15063
15063
|
};
|
|
15064
15064
|
}
|
|
15065
|
-
|
|
15066
|
-
|
|
15067
|
-
function
|
|
15065
|
+
Qu.prototype = Object.create(ga.prototype);
|
|
15066
|
+
Qu.prototype.constructor = Qu;
|
|
15067
|
+
function Yu(e, n, t, i, r, s, o) {
|
|
15068
15068
|
us.call(this, 0, e, n, t, i, r, s, o), this.type = "ConeBufferGeometry", this.parameters = {
|
|
15069
15069
|
radius: e,
|
|
15070
15070
|
height: n,
|
|
@@ -15075,9 +15075,9 @@ function Xu(e, n, t, i, r, s, o) {
|
|
|
15075
15075
|
thetaLength: o
|
|
15076
15076
|
};
|
|
15077
15077
|
}
|
|
15078
|
-
|
|
15079
|
-
|
|
15080
|
-
function
|
|
15078
|
+
Yu.prototype = Object.create(us.prototype);
|
|
15079
|
+
Yu.prototype.constructor = Yu;
|
|
15080
|
+
function Xu(e, n, t, i) {
|
|
15081
15081
|
pt.call(this), this.type = "CircleGeometry", this.parameters = {
|
|
15082
15082
|
radius: e,
|
|
15083
15083
|
segments: n,
|
|
@@ -15085,8 +15085,8 @@ function Zu(e, n, t, i) {
|
|
|
15085
15085
|
thetaLength: i
|
|
15086
15086
|
}, this.fromBufferGeometry(new bc(e, n, t, i)), this.mergeVertices();
|
|
15087
15087
|
}
|
|
15088
|
-
|
|
15089
|
-
|
|
15088
|
+
Xu.prototype = Object.create(pt.prototype);
|
|
15089
|
+
Xu.prototype.constructor = Xu;
|
|
15090
15090
|
function bc(e, n, t, i) {
|
|
15091
15091
|
Xe.call(this), this.type = "CircleBufferGeometry", this.parameters = {
|
|
15092
15092
|
radius: e,
|
|
@@ -15108,44 +15108,44 @@ bc.prototype.constructor = bc;
|
|
|
15108
15108
|
var Un = /* @__PURE__ */ Object.freeze({
|
|
15109
15109
|
__proto__: null,
|
|
15110
15110
|
WireframeGeometry: oc,
|
|
15111
|
-
ParametricGeometry:
|
|
15111
|
+
ParametricGeometry: Lu,
|
|
15112
15112
|
ParametricBufferGeometry: ac,
|
|
15113
|
-
TetrahedronGeometry:
|
|
15113
|
+
TetrahedronGeometry: Ru,
|
|
15114
15114
|
TetrahedronBufferGeometry: lc,
|
|
15115
|
-
OctahedronGeometry:
|
|
15115
|
+
OctahedronGeometry: Ou,
|
|
15116
15116
|
OctahedronBufferGeometry: ha,
|
|
15117
|
-
IcosahedronGeometry:
|
|
15117
|
+
IcosahedronGeometry: zu,
|
|
15118
15118
|
IcosahedronBufferGeometry: cc,
|
|
15119
|
-
DodecahedronGeometry:
|
|
15119
|
+
DodecahedronGeometry: Bu,
|
|
15120
15120
|
DodecahedronBufferGeometry: hc,
|
|
15121
|
-
PolyhedronGeometry:
|
|
15121
|
+
PolyhedronGeometry: ku,
|
|
15122
15122
|
PolyhedronBufferGeometry: oi,
|
|
15123
|
-
TubeGeometry:
|
|
15123
|
+
TubeGeometry: Nu,
|
|
15124
15124
|
TubeBufferGeometry: ua,
|
|
15125
|
-
TorusKnotGeometry:
|
|
15125
|
+
TorusKnotGeometry: Fu,
|
|
15126
15126
|
TorusKnotBufferGeometry: uc,
|
|
15127
|
-
TorusGeometry:
|
|
15127
|
+
TorusGeometry: Vu,
|
|
15128
15128
|
TorusBufferGeometry: dc,
|
|
15129
|
-
TextGeometry:
|
|
15129
|
+
TextGeometry: Gu,
|
|
15130
15130
|
TextBufferGeometry: gc,
|
|
15131
|
-
SphereGeometry:
|
|
15131
|
+
SphereGeometry: Hu,
|
|
15132
15132
|
SphereBufferGeometry: fa,
|
|
15133
|
-
RingGeometry:
|
|
15133
|
+
RingGeometry: ju,
|
|
15134
15134
|
RingBufferGeometry: vc,
|
|
15135
|
-
PlaneGeometry:
|
|
15135
|
+
PlaneGeometry: _u,
|
|
15136
15136
|
PlaneBufferGeometry: ca,
|
|
15137
|
-
LatheGeometry:
|
|
15137
|
+
LatheGeometry: Uu,
|
|
15138
15138
|
LatheBufferGeometry: yc,
|
|
15139
15139
|
ShapeGeometry: pa,
|
|
15140
15140
|
ShapeBufferGeometry: ma,
|
|
15141
15141
|
ExtrudeGeometry: da,
|
|
15142
15142
|
ExtrudeBufferGeometry: Ir,
|
|
15143
|
-
EdgesGeometry:
|
|
15144
|
-
ConeGeometry:
|
|
15145
|
-
ConeBufferGeometry:
|
|
15143
|
+
EdgesGeometry: Wu,
|
|
15144
|
+
ConeGeometry: Qu,
|
|
15145
|
+
ConeBufferGeometry: Yu,
|
|
15146
15146
|
CylinderGeometry: ga,
|
|
15147
15147
|
CylinderBufferGeometry: us,
|
|
15148
|
-
CircleGeometry:
|
|
15148
|
+
CircleGeometry: Xu,
|
|
15149
15149
|
CircleBufferGeometry: bc,
|
|
15150
15150
|
BoxGeometry: a2,
|
|
15151
15151
|
BoxBufferGeometry: Sd
|
|
@@ -15481,7 +15481,7 @@ tm.prototype = Object.assign(Object.create(pi.prototype), {
|
|
|
15481
15481
|
case Go:
|
|
15482
15482
|
r = e, o = 2 * n - t;
|
|
15483
15483
|
break;
|
|
15484
|
-
case
|
|
15484
|
+
case Cu:
|
|
15485
15485
|
r = i.length - 2, o = n + i[r] - i[r + 1];
|
|
15486
15486
|
break;
|
|
15487
15487
|
default:
|
|
@@ -15492,7 +15492,7 @@ tm.prototype = Object.assign(Object.create(pi.prototype), {
|
|
|
15492
15492
|
case Go:
|
|
15493
15493
|
s = e, a = 2 * t - n;
|
|
15494
15494
|
break;
|
|
15495
|
-
case
|
|
15495
|
+
case Cu:
|
|
15496
15496
|
s = 1, a = t + i[1] - i[0];
|
|
15497
15497
|
break;
|
|
15498
15498
|
default:
|
|
@@ -15507,11 +15507,11 @@ tm.prototype = Object.assign(Object.create(pi.prototype), {
|
|
|
15507
15507
|
return r;
|
|
15508
15508
|
}
|
|
15509
15509
|
});
|
|
15510
|
-
function
|
|
15510
|
+
function Zu(e, n, t, i) {
|
|
15511
15511
|
pi.call(this, e, n, t, i);
|
|
15512
15512
|
}
|
|
15513
|
-
|
|
15514
|
-
constructor:
|
|
15513
|
+
Zu.prototype = Object.assign(Object.create(pi.prototype), {
|
|
15514
|
+
constructor: Zu,
|
|
15515
15515
|
interpolate_: function(e, n, t, i) {
|
|
15516
15516
|
for (var r = this.resultBuffer, s = this.sampleValues, o = this.valueSize, a = e * o, l = a - o, c = (t - n) / (i - n), h = 1 - c, u = 0; u !== o; ++u)
|
|
15517
15517
|
r[u] = s[l + u] * h + s[a + u] * c;
|
|
@@ -15557,12 +15557,12 @@ Object.assign(Vn.prototype, {
|
|
|
15557
15557
|
constructor: Vn,
|
|
15558
15558
|
TimeBufferType: Float32Array,
|
|
15559
15559
|
ValueBufferType: Float32Array,
|
|
15560
|
-
DefaultInterpolation:
|
|
15560
|
+
DefaultInterpolation: du,
|
|
15561
15561
|
InterpolantFactoryMethodDiscrete: function(e) {
|
|
15562
15562
|
return new nm(this.times, this.values, this.getValueSize(), e);
|
|
15563
15563
|
},
|
|
15564
15564
|
InterpolantFactoryMethodLinear: function(e) {
|
|
15565
|
-
return new
|
|
15565
|
+
return new Zu(this.times, this.values, this.getValueSize(), e);
|
|
15566
15566
|
},
|
|
15567
15567
|
InterpolantFactoryMethodSmooth: function(e) {
|
|
15568
15568
|
return new tm(this.times, this.values, this.getValueSize(), e);
|
|
@@ -15570,10 +15570,10 @@ Object.assign(Vn.prototype, {
|
|
|
15570
15570
|
setInterpolation: function(e) {
|
|
15571
15571
|
var n;
|
|
15572
15572
|
switch (e) {
|
|
15573
|
-
case
|
|
15573
|
+
case Eu:
|
|
15574
15574
|
n = this.InterpolantFactoryMethodDiscrete;
|
|
15575
15575
|
break;
|
|
15576
|
-
case
|
|
15576
|
+
case du:
|
|
15577
15577
|
n = this.InterpolantFactoryMethodLinear;
|
|
15578
15578
|
break;
|
|
15579
15579
|
case bf:
|
|
@@ -15594,9 +15594,9 @@ Object.assign(Vn.prototype, {
|
|
|
15594
15594
|
getInterpolation: function() {
|
|
15595
15595
|
switch (this.createInterpolant) {
|
|
15596
15596
|
case this.InterpolantFactoryMethodDiscrete:
|
|
15597
|
-
return
|
|
15597
|
+
return Eu;
|
|
15598
15598
|
case this.InterpolantFactoryMethodLinear:
|
|
15599
|
-
return
|
|
15599
|
+
return du;
|
|
15600
15600
|
case this.InterpolantFactoryMethodSmooth:
|
|
15601
15601
|
return bf;
|
|
15602
15602
|
}
|
|
@@ -15705,7 +15705,7 @@ im.prototype = Object.assign(Object.create(Vn.prototype), {
|
|
|
15705
15705
|
constructor: im,
|
|
15706
15706
|
ValueTypeName: "bool",
|
|
15707
15707
|
ValueBufferType: Array,
|
|
15708
|
-
DefaultInterpolation:
|
|
15708
|
+
DefaultInterpolation: Eu,
|
|
15709
15709
|
InterpolantFactoryMethodLinear: void 0,
|
|
15710
15710
|
InterpolantFactoryMethodSmooth: void 0
|
|
15711
15711
|
// Note: Actually this track could have a optimized / compressed
|
|
@@ -15743,14 +15743,14 @@ sm.prototype = Object.assign(Object.create(pi.prototype), {
|
|
|
15743
15743
|
return r;
|
|
15744
15744
|
}
|
|
15745
15745
|
});
|
|
15746
|
-
function
|
|
15746
|
+
function qu(e, n, t, i) {
|
|
15747
15747
|
Vn.call(this, e, n, t, i);
|
|
15748
15748
|
}
|
|
15749
|
-
|
|
15750
|
-
constructor:
|
|
15749
|
+
qu.prototype = Object.assign(Object.create(Vn.prototype), {
|
|
15750
|
+
constructor: qu,
|
|
15751
15751
|
ValueTypeName: "quaternion",
|
|
15752
15752
|
// ValueBufferType is inherited
|
|
15753
|
-
DefaultInterpolation:
|
|
15753
|
+
DefaultInterpolation: du,
|
|
15754
15754
|
InterpolantFactoryMethodLinear: function(e) {
|
|
15755
15755
|
return new sm(this.times, this.values, this.getValueSize(), e);
|
|
15756
15756
|
},
|
|
@@ -15764,7 +15764,7 @@ om.prototype = Object.assign(Object.create(Vn.prototype), {
|
|
|
15764
15764
|
constructor: om,
|
|
15765
15765
|
ValueTypeName: "string",
|
|
15766
15766
|
ValueBufferType: Array,
|
|
15767
|
-
DefaultInterpolation:
|
|
15767
|
+
DefaultInterpolation: Eu,
|
|
15768
15768
|
InterpolantFactoryMethodLinear: void 0,
|
|
15769
15769
|
InterpolantFactoryMethodSmooth: void 0
|
|
15770
15770
|
});
|
|
@@ -15796,7 +15796,7 @@ function M3(e) {
|
|
|
15796
15796
|
case "color":
|
|
15797
15797
|
return rm;
|
|
15798
15798
|
case "quaternion":
|
|
15799
|
-
return
|
|
15799
|
+
return qu;
|
|
15800
15800
|
case "bool":
|
|
15801
15801
|
case "boolean":
|
|
15802
15802
|
return im;
|
|
@@ -15909,7 +15909,7 @@ Object.assign(Pi, {
|
|
|
15909
15909
|
"pos",
|
|
15910
15910
|
i
|
|
15911
15911
|
), t(
|
|
15912
|
-
|
|
15912
|
+
qu,
|
|
15913
15913
|
b + ".quaternion",
|
|
15914
15914
|
h,
|
|
15915
15915
|
"rot",
|
|
@@ -16444,7 +16444,7 @@ function dg() {
|
|
|
16444
16444
|
}
|
|
16445
16445
|
};
|
|
16446
16446
|
}
|
|
16447
|
-
var
|
|
16447
|
+
var Gh = new B(), Uf = new dg(), Wf = new dg(), Qf = new dg();
|
|
16448
16448
|
function ai(e, n, t, i) {
|
|
16449
16449
|
at.call(this), this.type = "CatmullRomCurve3", this.points = e || [], this.closed = n || !1, this.curveType = t || "centripetal", this.tension = i || 0.5;
|
|
16450
16450
|
}
|
|
@@ -16455,7 +16455,7 @@ ai.prototype.getPoint = function(e, n) {
|
|
|
16455
16455
|
var t = n || new B(), i = this.points, r = i.length, s = (r - (this.closed ? 0 : 1)) * e, o = Math.floor(s), a = s - o;
|
|
16456
16456
|
this.closed ? o += o > 0 ? 0 : (Math.floor(Math.abs(o) / r) + 1) * r : a === 0 && o === r - 1 && (o = r - 2, a = 1);
|
|
16457
16457
|
var l, c, h, u;
|
|
16458
|
-
if (this.closed || o > 0 ? l = i[(o - 1) % r] : (
|
|
16458
|
+
if (this.closed || o > 0 ? l = i[(o - 1) % r] : (Gh.subVectors(i[0], i[1]).add(i[0]), l = Gh), c = i[o % r], h = i[(o + 1) % r], this.closed || o + 2 < r ? u = i[(o + 2) % r] : (Gh.subVectors(i[r - 1], i[r - 2]).add(i[r - 1]), u = Gh), this.curveType === "centripetal" || this.curveType === "chordal") {
|
|
16459
16459
|
var d = this.curveType === "chordal" ? 0.5 : 0.25, f = Math.pow(l.distanceToSquared(c), d), m = Math.pow(c.distanceToSquared(h), d), p = Math.pow(h.distanceToSquared(u), d);
|
|
16460
16460
|
m < 1e-4 && (m = 1), f < 1e-4 && (f = m), p < 1e-4 && (p = m), Uf.initNonuniformCatmullRom(l.x, c.x, h.x, u.x, f, m, p), Wf.initNonuniformCatmullRom(l.y, c.y, h.y, u.y, f, m, p), Qf.initNonuniformCatmullRom(l.z, c.z, h.z, u.z, f, m, p);
|
|
16461
16461
|
} else
|
|
@@ -16956,7 +16956,7 @@ hm.prototype = Object.assign(Object.create(qt.prototype), {
|
|
|
16956
16956
|
}
|
|
16957
16957
|
});
|
|
16958
16958
|
function Lr(e) {
|
|
16959
|
-
this.camera = e, this.bias = 0, this.radius = 1, this.mapSize = new pe(512, 512), this.map = null, this.mapPass = null, this.matrix = new Mt(), this._frustum = new
|
|
16959
|
+
this.camera = e, this.bias = 0, this.radius = 1, this.mapSize = new pe(512, 512), this.map = null, this.mapPass = null, this.matrix = new Mt(), this._frustum = new Hc(), this._frameExtents = new pe(1, 1), this._viewportCount = 1, this._viewports = [
|
|
16960
16960
|
new Ft(0, 0, 1, 1)
|
|
16961
16961
|
];
|
|
16962
16962
|
}
|
|
@@ -17805,7 +17805,7 @@ xm.prototype = Object.assign(Object.create(Vt.prototype), {
|
|
|
17805
17805
|
i = new Zp(o, a, l), i.instanceMatrix = new ut(new Float32Array(c.array), 16);
|
|
17806
17806
|
break;
|
|
17807
17807
|
case "LOD":
|
|
17808
|
-
i = new
|
|
17808
|
+
i = new Su();
|
|
17809
17809
|
break;
|
|
17810
17810
|
case "Line":
|
|
17811
17811
|
i = new vi(r(e.geometry), s(e.material), e.mode);
|
|
@@ -17849,12 +17849,12 @@ var k3 = {
|
|
|
17849
17849
|
EquirectangularReflectionMapping: aw,
|
|
17850
17850
|
EquirectangularRefractionMapping: og,
|
|
17851
17851
|
SphericalReflectionMapping: lw,
|
|
17852
|
-
CubeUVReflectionMapping:
|
|
17852
|
+
CubeUVReflectionMapping: Vc,
|
|
17853
17853
|
CubeUVRefractionMapping: ag
|
|
17854
17854
|
}, S0 = {
|
|
17855
|
-
RepeatWrapping:
|
|
17855
|
+
RepeatWrapping: Au,
|
|
17856
17856
|
ClampToEdgeWrapping: Kn,
|
|
17857
|
-
MirroredRepeatWrapping:
|
|
17857
|
+
MirroredRepeatWrapping: wu
|
|
17858
17858
|
}, T0 = {
|
|
17859
17859
|
NearestFilter: mn,
|
|
17860
17860
|
NearestMipmapNearestFilter: Rp,
|
|
@@ -18051,12 +18051,12 @@ L0.prototype = Object.assign(Object.create(Vt.prototype), {
|
|
|
18051
18051
|
return new Nw(e);
|
|
18052
18052
|
}
|
|
18053
18053
|
});
|
|
18054
|
-
var
|
|
18054
|
+
var Hh, Fw = {
|
|
18055
18055
|
getContext: function() {
|
|
18056
|
-
return
|
|
18056
|
+
return Hh === void 0 && (Hh = new (window.AudioContext || window.webkitAudioContext)()), Hh;
|
|
18057
18057
|
},
|
|
18058
18058
|
setContext: function(e) {
|
|
18059
|
-
|
|
18059
|
+
Hh = e;
|
|
18060
18060
|
}
|
|
18061
18061
|
};
|
|
18062
18062
|
function Mm(e) {
|
|
@@ -19067,7 +19067,7 @@ Object.assign(Uw.prototype, {
|
|
|
19067
19067
|
},
|
|
19068
19068
|
_setEndings: function(e, n, t) {
|
|
19069
19069
|
var i = this._interpolantSettings;
|
|
19070
|
-
t ? (i.endingStart = Go, i.endingEnd = Go) : (e ? i.endingStart = this.zeroSlopeAtStart ? Go : oa : i.endingStart =
|
|
19070
|
+
t ? (i.endingStart = Go, i.endingEnd = Go) : (e ? i.endingStart = this.zeroSlopeAtStart ? Go : oa : i.endingStart = Cu, n ? i.endingEnd = this.zeroSlopeAtEnd ? Go : oa : i.endingEnd = Cu);
|
|
19071
19071
|
},
|
|
19072
19072
|
_scheduleFading: function(e, n, t) {
|
|
19073
19073
|
var i = this._mixer, r = i.time, s = this._weightInterpolant;
|
|
@@ -19219,7 +19219,7 @@ G0.prototype = Object.assign(Object.create(Or.prototype), {
|
|
|
19219
19219
|
// Memory management of Interpolants for weight and time scale
|
|
19220
19220
|
_lendControlInterpolant: function() {
|
|
19221
19221
|
var e = this._controlInterpolants, n = this._nActiveControlInterpolants++, t = e[n];
|
|
19222
|
-
return t === void 0 && (t = new
|
|
19222
|
+
return t === void 0 && (t = new Zu(
|
|
19223
19223
|
new Float32Array(2),
|
|
19224
19224
|
new Float32Array(2),
|
|
19225
19225
|
1,
|
|
@@ -19319,11 +19319,11 @@ function Em(e) {
|
|
|
19319
19319
|
Em.prototype.clone = function() {
|
|
19320
19320
|
return new Em(this.value.clone === void 0 ? this.value : this.value.clone());
|
|
19321
19321
|
};
|
|
19322
|
-
function
|
|
19322
|
+
function Ju(e, n, t) {
|
|
19323
19323
|
cs.call(this, e, n), this.meshPerAttribute = t || 1;
|
|
19324
19324
|
}
|
|
19325
|
-
|
|
19326
|
-
constructor:
|
|
19325
|
+
Ju.prototype = Object.assign(Object.create(cs.prototype), {
|
|
19326
|
+
constructor: Ju,
|
|
19327
19327
|
isInstancedInterleavedBuffer: !0,
|
|
19328
19328
|
copy: function(e) {
|
|
19329
19329
|
return cs.prototype.copy.call(this, e), this.meshPerAttribute = e.meshPerAttribute, this;
|
|
@@ -19497,7 +19497,7 @@ Object.assign(Qw.prototype, {
|
|
|
19497
19497
|
return e.min.equals(this.min) && e.max.equals(this.max);
|
|
19498
19498
|
}
|
|
19499
19499
|
});
|
|
19500
|
-
var U0 = new B(),
|
|
19500
|
+
var U0 = new B(), jh = new B();
|
|
19501
19501
|
function Yw(e, n) {
|
|
19502
19502
|
this.start = e !== void 0 ? e : new B(), this.end = n !== void 0 ? n : new B();
|
|
19503
19503
|
}
|
|
@@ -19527,8 +19527,8 @@ Object.assign(Yw.prototype, {
|
|
|
19527
19527
|
return n === void 0 && (console.warn("THREE.Line3: .at() target is now required"), n = new B()), this.delta(n).multiplyScalar(e).add(this.start);
|
|
19528
19528
|
},
|
|
19529
19529
|
closestPointToPointParameter: function(e, n) {
|
|
19530
|
-
U0.subVectors(e, this.start),
|
|
19531
|
-
var t =
|
|
19530
|
+
U0.subVectors(e, this.start), jh.subVectors(this.end, this.start);
|
|
19531
|
+
var t = jh.dot(jh), i = jh.dot(U0), r = i / t;
|
|
19532
19532
|
return n && (r = wt.clamp(r, 0, 1)), r;
|
|
19533
19533
|
},
|
|
19534
19534
|
closestPointToPoint: function(e, n, t) {
|
|
@@ -19542,13 +19542,13 @@ Object.assign(Yw.prototype, {
|
|
|
19542
19542
|
return e.start.equals(this.start) && e.end.equals(this.end);
|
|
19543
19543
|
}
|
|
19544
19544
|
});
|
|
19545
|
-
function
|
|
19545
|
+
function Ku(e) {
|
|
19546
19546
|
He.call(this), this.material = e, this.render = function() {
|
|
19547
19547
|
}, this.hasPositions = !1, this.hasNormals = !1, this.hasColors = !1, this.hasUvs = !1, this.positionArray = null, this.normalArray = null, this.colorArray = null, this.uvArray = null, this.count = 0;
|
|
19548
19548
|
}
|
|
19549
|
-
|
|
19550
|
-
|
|
19551
|
-
|
|
19549
|
+
Ku.prototype = Object.create(He.prototype);
|
|
19550
|
+
Ku.prototype.constructor = Ku;
|
|
19551
|
+
Ku.prototype.isImmediateRenderObject = !0;
|
|
19552
19552
|
var W0 = new B();
|
|
19553
19553
|
function Pc(e, n) {
|
|
19554
19554
|
He.call(this), this.light = e, this.light.updateMatrixWorld(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.color = n;
|
|
@@ -19608,7 +19608,7 @@ Pc.prototype.update = function() {
|
|
|
19608
19608
|
var e = this.light.distance ? this.light.distance : 1e3, n = e * Math.tan(this.light.angle);
|
|
19609
19609
|
this.cone.scale.set(n, n, e), W0.setFromMatrixPosition(this.light.target.matrixWorld), this.cone.lookAt(W0), this.color !== void 0 ? this.cone.material.color.set(this.color) : this.cone.material.color.copy(this.light.color);
|
|
19610
19610
|
};
|
|
19611
|
-
var Xr = new B(),
|
|
19611
|
+
var Xr = new B(), Uh = new Mt(), Xf = new Mt();
|
|
19612
19612
|
function Xw(e) {
|
|
19613
19613
|
var n = [];
|
|
19614
19614
|
e && e.isBone && n.push(e);
|
|
@@ -19633,7 +19633,7 @@ Pa.prototype.updateMatrixWorld = function(e) {
|
|
|
19633
19633
|
Xf.getInverse(this.root.matrixWorld);
|
|
19634
19634
|
for (var r = 0, s = 0; r < n.length; r++) {
|
|
19635
19635
|
var o = n[r];
|
|
19636
|
-
o.parent && o.parent.isBone && (
|
|
19636
|
+
o.parent && o.parent.isBone && (Uh.multiplyMatrices(Xf, o.matrixWorld), Xr.setFromMatrixPosition(Uh), i.setXYZ(s, Xr.x, Xr.y, Xr.z), Uh.multiplyMatrices(Xf, o.parent.matrixWorld), Xr.setFromMatrixPosition(Uh), i.setXYZ(s + 1, Xr.x, Xr.y, Xr.z), s += 2);
|
|
19637
19637
|
}
|
|
19638
19638
|
t.getAttribute("position").needsUpdate = !0, He.prototype.updateMatrixWorld.call(this, e);
|
|
19639
19639
|
};
|
|
@@ -19714,7 +19714,7 @@ function _m(e, n, t, i, r, s) {
|
|
|
19714
19714
|
}
|
|
19715
19715
|
_m.prototype = Object.create(gn.prototype);
|
|
19716
19716
|
_m.prototype.constructor = _m;
|
|
19717
|
-
var X0 = new B(),
|
|
19717
|
+
var X0 = new B(), Wh = new B(), Z0 = new B();
|
|
19718
19718
|
function Sc(e, n, t) {
|
|
19719
19719
|
He.call(this), this.light = e, this.light.updateMatrixWorld(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.color = t, n === void 0 && (n = 1);
|
|
19720
19720
|
var i = new Xe();
|
|
@@ -19744,10 +19744,10 @@ Sc.prototype.dispose = function() {
|
|
|
19744
19744
|
this.lightPlane.geometry.dispose(), this.lightPlane.material.dispose(), this.targetLine.geometry.dispose(), this.targetLine.material.dispose();
|
|
19745
19745
|
};
|
|
19746
19746
|
Sc.prototype.update = function() {
|
|
19747
|
-
X0.setFromMatrixPosition(this.light.matrixWorld),
|
|
19747
|
+
X0.setFromMatrixPosition(this.light.matrixWorld), Wh.setFromMatrixPosition(this.light.target.matrixWorld), Z0.subVectors(Wh, X0), this.lightPlane.lookAt(Wh), 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(Wh), this.targetLine.scale.z = Z0.length();
|
|
19748
19748
|
};
|
|
19749
|
-
var
|
|
19750
|
-
function
|
|
19749
|
+
var Qh = new B(), nn = new _r();
|
|
19750
|
+
function $u(e) {
|
|
19751
19751
|
var n = new Xe(), t = new un({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], r = [], s = {}, o = new Qe(16755200), a = new Qe(16711680), l = new Qe(43775), c = new Qe(16777215), h = new Qe(3355443);
|
|
19752
19752
|
u("n1", "n2", o), u("n2", "n4", o), u("n4", "n3", o), u("n3", "n1", o), u("f1", "f2", o), u("f2", "f4", o), u("f4", "f3", o), u("f3", "f1", o), u("n1", "f1", o), u("n2", "f2", o), u("n3", "f3", o), u("n4", "f4", o), u("p", "n1", a), u("p", "n2", a), u("p", "n3", a), u("p", "n4", a), u("u1", "u2", l), u("u2", "u3", l), u("u3", "u1", l), u("c", "t", c), u("p", "c", h), u("cn1", "cn2", h), u("cn3", "cn4", h), u("cf1", "cf2", h), u("cf3", "cf4", h);
|
|
19753
19753
|
function u(f, m, p) {
|
|
@@ -19758,20 +19758,20 @@ function ed(e) {
|
|
|
19758
19758
|
}
|
|
19759
19759
|
n.setAttribute("position", new ze(i, 3)), n.setAttribute("color", new ze(r, 3)), gn.call(this, n, t), this.type = "CameraHelper", this.camera = e, this.camera.updateProjectionMatrix && this.camera.updateProjectionMatrix(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.pointMap = s, this.update();
|
|
19760
19760
|
}
|
|
19761
|
-
|
|
19762
|
-
|
|
19763
|
-
|
|
19761
|
+
$u.prototype = Object.create(gn.prototype);
|
|
19762
|
+
$u.prototype.constructor = $u;
|
|
19763
|
+
$u.prototype.update = function() {
|
|
19764
19764
|
var e = this.geometry, n = this.pointMap, t = 1, i = 1;
|
|
19765
19765
|
nn.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), cn("c", n, e, nn, 0, 0, -1), cn("t", n, e, nn, 0, 0, 1), cn("n1", n, e, nn, -t, -i, -1), cn("n2", n, e, nn, t, -i, -1), cn("n3", n, e, nn, -t, i, -1), cn("n4", n, e, nn, t, i, -1), cn("f1", n, e, nn, -t, -i, 1), cn("f2", n, e, nn, t, -i, 1), cn("f3", n, e, nn, -t, i, 1), cn("f4", n, e, nn, t, i, 1), cn("u1", n, e, nn, t * 0.7, i * 1.1, -1), cn("u2", n, e, nn, -t * 0.7, i * 1.1, -1), cn("u3", n, e, nn, 0, i * 2, -1), cn("cf1", n, e, nn, -t, 0, 1), cn("cf2", n, e, nn, t, 0, 1), cn("cf3", n, e, nn, 0, -i, 1), cn("cf4", n, e, nn, 0, i, 1), cn("cn1", n, e, nn, -t, 0, -1), cn("cn2", n, e, nn, t, 0, -1), cn("cn3", n, e, nn, 0, -i, -1), cn("cn4", n, e, nn, 0, i, -1), e.getAttribute("position").needsUpdate = !0;
|
|
19766
19766
|
};
|
|
19767
19767
|
function cn(e, n, t, i, r, s, o) {
|
|
19768
|
-
|
|
19768
|
+
Qh.set(r, s, o).unproject(i);
|
|
19769
19769
|
var a = n[e];
|
|
19770
19770
|
if (a !== void 0)
|
|
19771
19771
|
for (var l = t.getAttribute("position"), c = 0, h = a.length; c < h; c++)
|
|
19772
|
-
l.setXYZ(a[c],
|
|
19772
|
+
l.setXYZ(a[c], Qh.x, Qh.y, Qh.z);
|
|
19773
19773
|
}
|
|
19774
|
-
var
|
|
19774
|
+
var Yh = new mi();
|
|
19775
19775
|
function $s(e, n) {
|
|
19776
19776
|
this.object = e, n === void 0 && (n = 16776960);
|
|
19777
19777
|
var t = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = new Float32Array(8 * 3), r = new Xe();
|
|
@@ -19780,8 +19780,8 @@ function $s(e, n) {
|
|
|
19780
19780
|
$s.prototype = Object.create(gn.prototype);
|
|
19781
19781
|
$s.prototype.constructor = $s;
|
|
19782
19782
|
$s.prototype.update = function(e) {
|
|
19783
|
-
if (e !== void 0 && console.warn("THREE.BoxHelper: .update() has no longer arguments."), this.object !== void 0 &&
|
|
19784
|
-
var n =
|
|
19783
|
+
if (e !== void 0 && console.warn("THREE.BoxHelper: .update() has no longer arguments."), this.object !== void 0 && Yh.setFromObject(this.object), !Yh.isEmpty()) {
|
|
19784
|
+
var n = Yh.min, t = Yh.max, i = this.geometry.attributes.position, r = i.array;
|
|
19785
19785
|
r[0] = t.x, r[1] = t.y, r[2] = t.z, r[3] = n.x, r[4] = t.y, r[5] = t.z, r[6] = n.x, r[7] = n.y, r[8] = t.z, r[9] = t.x, r[10] = n.y, r[11] = t.z, r[12] = t.x, r[13] = t.y, r[14] = n.z, r[15] = n.x, r[16] = t.y, r[17] = n.z, r[18] = n.x, r[19] = n.y, r[20] = n.z, r[21] = t.x, r[22] = n.y, r[23] = n.z, i.needsUpdate = !0, this.geometry.computeBoundingSphere();
|
|
19786
19786
|
}
|
|
19787
19787
|
};
|
|
@@ -19794,33 +19794,33 @@ $s.prototype.copy = function(e) {
|
|
|
19794
19794
|
$s.prototype.clone = function() {
|
|
19795
19795
|
return new this.constructor().copy(this);
|
|
19796
19796
|
};
|
|
19797
|
-
function
|
|
19797
|
+
function ed(e, n) {
|
|
19798
19798
|
this.type = "Box3Helper", this.box = e, n = n || 16776960;
|
|
19799
19799
|
var t = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), i = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], r = new Xe();
|
|
19800
19800
|
r.setIndex(new ut(t, 1)), r.setAttribute("position", new ze(i, 3)), gn.call(this, r, new un({ color: n, toneMapped: !1 })), this.type = "Box3Helper", this.geometry.computeBoundingSphere();
|
|
19801
19801
|
}
|
|
19802
|
-
|
|
19803
|
-
|
|
19804
|
-
|
|
19802
|
+
ed.prototype = Object.create(gn.prototype);
|
|
19803
|
+
ed.prototype.constructor = ed;
|
|
19804
|
+
ed.prototype.updateMatrixWorld = function(e) {
|
|
19805
19805
|
var n = this.box;
|
|
19806
19806
|
n.isEmpty() || (n.getCenter(this.position), n.getSize(this.scale), this.scale.multiplyScalar(0.5), He.prototype.updateMatrixWorld.call(this, e));
|
|
19807
19807
|
};
|
|
19808
|
-
function
|
|
19808
|
+
function td(e, n, t) {
|
|
19809
19809
|
this.plane = e, this.size = n === void 0 ? 1 : n;
|
|
19810
19810
|
var i = t !== void 0 ? t : 16776960, r = [1, -1, 1, -1, 1, 1, -1, -1, 1, 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0], s = new Xe();
|
|
19811
19811
|
s.setAttribute("position", new ze(r, 3)), s.computeBoundingSphere(), vi.call(this, s, new un({ color: i, toneMapped: !1 })), this.type = "PlaneHelper";
|
|
19812
19812
|
var o = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, 1, 1, -1, -1, 1, 1, -1, 1], a = new Xe();
|
|
19813
19813
|
a.setAttribute("position", new ze(o, 3)), a.computeBoundingSphere(), this.add(new en(a, new Ri({ color: i, opacity: 0.2, transparent: !0, depthWrite: !1, toneMapped: !1 })));
|
|
19814
19814
|
}
|
|
19815
|
-
|
|
19816
|
-
|
|
19817
|
-
|
|
19815
|
+
td.prototype = Object.create(vi.prototype);
|
|
19816
|
+
td.prototype.constructor = td;
|
|
19817
|
+
td.prototype.updateMatrixWorld = function(e) {
|
|
19818
19818
|
var n = -this.plane.constant;
|
|
19819
|
-
Math.abs(n) < 1e-8 && (n = 1e-8), this.scale.set(0.5 * this.size, 0.5 * this.size, n), this.children[0].material.side = n < 0 ? xn :
|
|
19819
|
+
Math.abs(n) < 1e-8 && (n = 1e-8), this.scale.set(0.5 * this.size, 0.5 * this.size, n), this.children[0].material.side = n < 0 ? xn : Fc, this.lookAt(this.plane.normal), He.prototype.updateMatrixWorld.call(this, e);
|
|
19820
19820
|
};
|
|
19821
|
-
var q0 = new B(),
|
|
19821
|
+
var q0 = new B(), Xh, Zf;
|
|
19822
19822
|
function fs(e, n, t, i, r, s) {
|
|
19823
|
-
He.call(this), this.type = "ArrowHelper", e === void 0 && (e = new B(0, 0, 1)), n === void 0 && (n = new B(0, 0, 0)), t === void 0 && (t = 1), i === void 0 && (i = 16776960), r === void 0 && (r = 0.2 * t), s === void 0 && (s = 0.2 * r),
|
|
19823
|
+
He.call(this), this.type = "ArrowHelper", e === void 0 && (e = new B(0, 0, 1)), n === void 0 && (n = new B(0, 0, 0)), t === void 0 && (t = 1), i === void 0 && (i = 16776960), r === void 0 && (r = 0.2 * t), s === void 0 && (s = 0.2 * r), Xh === void 0 && (Xh = new Xe(), Xh.setAttribute("position", new ze([0, 0, 0, 0, 1, 0], 3)), Zf = new us(0, 0.5, 1, 5, 1), Zf.translate(0, -0.5, 0)), this.position.copy(n), this.line = new vi(Xh, new un({ color: i, toneMapped: !1 })), this.line.matrixAutoUpdate = !1, this.add(this.line), this.cone = new en(Zf, new Ri({ color: i, toneMapped: !1 })), this.cone.matrixAutoUpdate = !1, this.add(this.cone), this.setDirection(e), this.setLength(t, r, s);
|
|
19824
19824
|
}
|
|
19825
19825
|
fs.prototype = Object.create(He.prototype);
|
|
19826
19826
|
fs.prototype.constructor = fs;
|
|
@@ -19902,7 +19902,7 @@ var $o = 4, os = 8, Qi = Math.pow(2, os), Zw = [0.125, 0.215, 0.35, 0.446, 0.526
|
|
|
19902
19902
|
[dw]: 4,
|
|
19903
19903
|
[fw]: 5,
|
|
19904
19904
|
[cg]: 6
|
|
19905
|
-
}, qf = new Ec(), { _lodPlanes: yl, _sizeLods: J0, _sigmas:
|
|
19905
|
+
}, qf = new Ec(), { _lodPlanes: yl, _sizeLods: J0, _sigmas: Zh } = K3(), Jf = null, Bs = (1 + Math.sqrt(5)) / 2, To = 1 / Bs, K0 = [
|
|
19906
19906
|
new B(1, 1, 1),
|
|
19907
19907
|
new B(-1, 1, 1),
|
|
19908
19908
|
new B(1, 1, -1),
|
|
@@ -19982,7 +19982,7 @@ $0.prototype = {
|
|
|
19982
19982
|
magFilter: mn,
|
|
19983
19983
|
minFilter: mn,
|
|
19984
19984
|
generateMipmaps: !1,
|
|
19985
|
-
type:
|
|
19985
|
+
type: Gc,
|
|
19986
19986
|
format: tP,
|
|
19987
19987
|
encoding: J3(e) ? e.encoding : hg,
|
|
19988
19988
|
depthBuffer: !1,
|
|
@@ -20027,7 +20027,7 @@ $0.prototype = {
|
|
|
20027
20027
|
var n = this._renderer, t = n.autoClear;
|
|
20028
20028
|
n.autoClear = !1;
|
|
20029
20029
|
for (var i = 1; i < qw; i++) {
|
|
20030
|
-
var r = Math.sqrt(
|
|
20030
|
+
var r = Math.sqrt(Zh[i] * Zh[i] - Zh[i - 1] * Zh[i - 1]), s = K0[(i - 1) % K0.length];
|
|
20031
20031
|
this._blur(e, i - 1, i, r, s);
|
|
20032
20032
|
}
|
|
20033
20033
|
n.autoClear = t;
|
|
@@ -20078,7 +20078,7 @@ $0.prototype = {
|
|
|
20078
20078
|
}
|
|
20079
20079
|
};
|
|
20080
20080
|
function J3(e) {
|
|
20081
|
-
return e === void 0 || e.type !==
|
|
20081
|
+
return e === void 0 || e.type !== Gc ? !1 : e.encoding === $n || e.encoding === _d || e.encoding === cg;
|
|
20082
20082
|
}
|
|
20083
20083
|
function K3() {
|
|
20084
20084
|
for (var e = [], n = [], t = [], i = os, r = 0; r < qw; r++) {
|
|
@@ -20118,7 +20118,7 @@ function K3() {
|
|
|
20118
20118
|
}
|
|
20119
20119
|
function ey(e) {
|
|
20120
20120
|
var n = new fi(3 * Qi, 3 * Qi, e);
|
|
20121
|
-
return n.texture.mapping =
|
|
20121
|
+
return n.texture.mapping = Vc, n.texture.name = "PMREM.cubeUv", n.scissorTest = !0, n;
|
|
20122
20122
|
}
|
|
20123
20123
|
function Kf(e, n, t, i, r) {
|
|
20124
20124
|
e.viewport.set(n, t, i, r), e.scissor.set(n, t, i, r);
|
|
@@ -20451,7 +20451,7 @@ Object.assign(cr.prototype, {
|
|
|
20451
20451
|
return console.warn("THREE.Sphere: .empty() has been renamed to .isEmpty()."), this.isEmpty();
|
|
20452
20452
|
}
|
|
20453
20453
|
});
|
|
20454
|
-
|
|
20454
|
+
Hc.prototype.setFromMatrix = function(e) {
|
|
20455
20455
|
return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."), this.setFromProjectionMatrix(e);
|
|
20456
20456
|
};
|
|
20457
20457
|
Yw.prototype.center = function(e) {
|
|
@@ -20703,7 +20703,7 @@ Object.defineProperties(en.prototype, {
|
|
|
20703
20703
|
}
|
|
20704
20704
|
}
|
|
20705
20705
|
});
|
|
20706
|
-
Object.defineProperties(
|
|
20706
|
+
Object.defineProperties(Su.prototype, {
|
|
20707
20707
|
objects: {
|
|
20708
20708
|
get: function() {
|
|
20709
20709
|
return console.warn("THREE.LOD: .objects has been renamed to .levels."), this.levels;
|
|
@@ -21281,13 +21281,13 @@ ea.prototype = Object.assign(Object.create(Ca.prototype), {
|
|
|
21281
21281
|
setPositions: function(e) {
|
|
21282
21282
|
var n;
|
|
21283
21283
|
e instanceof Float32Array ? n = e : Array.isArray(e) && (n = new Float32Array(e));
|
|
21284
|
-
var t = new
|
|
21284
|
+
var t = new Ju(n, 6, 1);
|
|
21285
21285
|
return this.setAttribute("instanceStart", new $r(t, 3, 0)), this.setAttribute("instanceEnd", new $r(t, 3, 3)), this.computeBoundingBox(), this.computeBoundingSphere(), this;
|
|
21286
21286
|
},
|
|
21287
21287
|
setColors: function(e) {
|
|
21288
21288
|
var n;
|
|
21289
21289
|
e instanceof Float32Array ? n = e : Array.isArray(e) && (n = new Float32Array(e));
|
|
21290
|
-
var t = new
|
|
21290
|
+
var t = new Ju(n, 6, 1);
|
|
21291
21291
|
return this.setAttribute("instanceColorStart", new $r(t, 3, 0)), this.setAttribute("instanceColorEnd", new $r(t, 3, 3)), this;
|
|
21292
21292
|
},
|
|
21293
21293
|
fromWireframeGeometry: function(e) {
|
|
@@ -21793,12 +21793,12 @@ class Kw {
|
|
|
21793
21793
|
this.hooks.off(), this.disable(), this.magnifier = null, this.pointHelper = null;
|
|
21794
21794
|
}
|
|
21795
21795
|
}
|
|
21796
|
-
const
|
|
21796
|
+
const nd = "ontouchstart" in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0;
|
|
21797
21797
|
function hT(e, n) {
|
|
21798
21798
|
const { x: t, y: i } = n, r = t * 2 - 1, s = i * 2 - 1, o = new E.Raycaster();
|
|
21799
21799
|
return o.setFromCamera({ x: r, y: s }, e.camera), o.params.Points.threshold = 0.02, o;
|
|
21800
21800
|
}
|
|
21801
|
-
function
|
|
21801
|
+
function jc(e, n, t) {
|
|
21802
21802
|
const i = uT(e, n);
|
|
21803
21803
|
return t != null && t.virtualPoint ? i != null ? i : $w(n) : i;
|
|
21804
21804
|
}
|
|
@@ -21921,7 +21921,7 @@ class bg extends En {
|
|
|
21921
21921
|
*/
|
|
21922
21922
|
v(this, "updateByNdcPosition", (t) => {
|
|
21923
21923
|
var s, o;
|
|
21924
|
-
const i = hT(this.five, t), r =
|
|
21924
|
+
const i = hT(this.five, t), r = jc(this.five, i);
|
|
21925
21925
|
if (r)
|
|
21926
21926
|
return this.updatePointSelectorHelperIntersect(r), this.lastIntersection = r, !0;
|
|
21927
21927
|
if (this.plane) {
|
|
@@ -21988,7 +21988,7 @@ class bg extends En {
|
|
|
21988
21988
|
});
|
|
21989
21989
|
this.five = t, this.config = R(R({}, this.config), i), this.actionIfNoModelUnderMouse = (o = i == null ? void 0 : i.actionIfNoModelUnderMouse) != null ? o : "virtualPoint";
|
|
21990
21990
|
const r = (a = i == null ? void 0 : i.mode) != null ? a : "auto";
|
|
21991
|
-
r === "auto" ? this.mode =
|
|
21991
|
+
r === "auto" ? this.mode = nd ? "fixed" : "cursor" : this.mode = r;
|
|
21992
21992
|
const s = {
|
|
21993
21993
|
autoFixPCPosition: this.mode === "cursor",
|
|
21994
21994
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
@@ -22031,7 +22031,7 @@ class bg extends En {
|
|
|
22031
22031
|
const t = this.five.getElement();
|
|
22032
22032
|
if (!t)
|
|
22033
22033
|
throw new Error("five element not found");
|
|
22034
|
-
this.mode === "cursor" ? (this.five.on("wantsMoveToPano", Do), this.five.on("wantsChangeMode", Do), this.five.on("wantsTapGesture", Do),
|
|
22034
|
+
this.mode === "cursor" ? (this.five.on("wantsMoveToPano", Do), this.five.on("wantsChangeMode", Do), this.five.on("wantsTapGesture", Do), t.addEventListener("touchstart", this.onTouchStart, { passive: !0 }), t.addEventListener("touchmove", this.onTouchMove), t.addEventListener("touchend", this.onTouchEnd), t.addEventListener("click", this.onClick), t.addEventListener("mousemove", this.updateByMousePosition), t.addEventListener("wheel", this.onMouseWheel), t.addEventListener("mouseenter", this.onEnter), t.addEventListener("mouseout", this.onLeave), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture)) : this.mode === "fixed" && (this.five.on("panoArrived", this.renderScreenCenter), this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter(), this.pointSelectorHelper.show()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate), this.lastFiveHelperVisible = this.five.helperVisible, this.five.helperVisible = !1, this.emit("enable");
|
|
22035
22035
|
}
|
|
22036
22036
|
disable() {
|
|
22037
22037
|
if (!this.enabled)
|
|
@@ -22346,7 +22346,7 @@ function kd(e, n) {
|
|
|
22346
22346
|
c && r.push(c);
|
|
22347
22347
|
})) : r.push(l)));
|
|
22348
22348
|
}), i = [...new Set(r.filter(Boolean))], PT(i);
|
|
22349
|
-
const s =
|
|
22349
|
+
const s = vu(R({
|
|
22350
22350
|
targets: i,
|
|
22351
22351
|
duration: 300,
|
|
22352
22352
|
easing: "linear",
|
|
@@ -22397,7 +22397,7 @@ const ep = Math.PI * 2;
|
|
|
22397
22397
|
function _T(e) {
|
|
22398
22398
|
return (e % ep + ep) % ep;
|
|
22399
22399
|
}
|
|
22400
|
-
function
|
|
22400
|
+
function Uc(e) {
|
|
22401
22401
|
return {
|
|
22402
22402
|
longitude: _T(-Math.atan2(e.x, -e.z)),
|
|
22403
22403
|
latitude: -Math.asin(e.y / 1)
|
|
@@ -22435,7 +22435,7 @@ function IT(e, n, t) {
|
|
|
22435
22435
|
break;
|
|
22436
22436
|
d += 30;
|
|
22437
22437
|
}
|
|
22438
|
-
const p = m((w = (A = f[2]) != null ? A : f[1]) != null ? w : 0), g = p.distanceTo(o), y =
|
|
22438
|
+
const p = m((w = (A = f[2]) != null ? A : f[1]) != null ? w : 0), g = p.distanceTo(o), y = Uc(o.clone().sub(p).normalize());
|
|
22439
22439
|
if (e.state.mode === "Mapview")
|
|
22440
22440
|
return e.updateCamera(
|
|
22441
22441
|
R({
|
|
@@ -22472,7 +22472,7 @@ function ax(e, n, t) {
|
|
|
22472
22472
|
break;
|
|
22473
22473
|
h += 30;
|
|
22474
22474
|
}
|
|
22475
|
-
const f = d((g = u[1]) != null ? g : 0), m =
|
|
22475
|
+
const f = d((g = u[1]) != null ? g : 0), m = Uc(n.clone().sub(f).normalize());
|
|
22476
22476
|
if (e.state.mode === "Mapview")
|
|
22477
22477
|
return e.updateCamera(
|
|
22478
22478
|
R({
|
|
@@ -22564,7 +22564,7 @@ class Rd {
|
|
|
22564
22564
|
if (i) {
|
|
22565
22565
|
if (n === "mouseMove" && this.onDomEvent("hover", i), n === "tap") {
|
|
22566
22566
|
let r;
|
|
22567
|
-
!r && !
|
|
22567
|
+
!r && !nd && (r = this.lastMouseDownEvent), !r && nd && (r = this.lastTouchEvent), r || (r = new MouseEvent("click", { clientX: i.x, clientY: i.y }));
|
|
22568
22568
|
const s = this.onDomEvent("click", i, r), o = this.onDomEvent("wantDblclick", i, r, this.boundObject.dblclick);
|
|
22569
22569
|
if (s === !1 || o === !1)
|
|
22570
22570
|
return !1;
|
|
@@ -22787,13 +22787,13 @@ class _a extends xd {
|
|
|
22787
22787
|
});
|
|
22788
22788
|
}
|
|
22789
22789
|
}
|
|
22790
|
-
function
|
|
22790
|
+
function Dc(e, n = Ki.Linear.None) {
|
|
22791
22791
|
const t = new _a({ progress: 0 }).to({ progress: 1 });
|
|
22792
22792
|
return e !== void 0 && t.duration(e), n !== void 0 && t.easing(n), t;
|
|
22793
22793
|
}
|
|
22794
22794
|
const Ia = window.requestAnimationFrame || ((e) => setTimeout(e, 16)), TT = window.cancelAnimationFrame || clearTimeout;
|
|
22795
|
-
function
|
|
22796
|
-
n <= 0 ? Ia(e) : Ia(() =>
|
|
22795
|
+
function Wc(e, n = 0) {
|
|
22796
|
+
n <= 0 ? Ia(e) : Ia(() => Wc(e, n - 1));
|
|
22797
22797
|
}
|
|
22798
22798
|
function DT() {
|
|
22799
22799
|
return ee(this, null, function* () {
|
|
@@ -22909,13 +22909,13 @@ const D6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22909
22909
|
isPanoramaLike: Fs,
|
|
22910
22910
|
lookObject: IT,
|
|
22911
22911
|
lookPoint: ax,
|
|
22912
|
-
nextFrame:
|
|
22912
|
+
nextFrame: Wc,
|
|
22913
22913
|
notNil: bt,
|
|
22914
22914
|
pointInPolygon: wv,
|
|
22915
22915
|
reblink: ox,
|
|
22916
22916
|
requestAnimationFrameInterval: Ya,
|
|
22917
22917
|
tag: $1,
|
|
22918
|
-
tweenProgress:
|
|
22918
|
+
tweenProgress: Dc,
|
|
22919
22919
|
uuid: wn,
|
|
22920
22920
|
waitFiveModelLoaded: oo,
|
|
22921
22921
|
worldBounding: Ld,
|
|
@@ -22935,7 +22935,7 @@ class dx extends Sp {
|
|
|
22935
22935
|
new Se(z, -z, 0),
|
|
22936
22936
|
new Se(z, z, 0)
|
|
22937
22937
|
];
|
|
22938
|
-
})(), s = (P = t.ratio) != null ? P : FT, o = (I = t.dpr) != null ? I : 1, a = (T = t.pointerEvents) != null ? T : "auto", l = Math.max(NT, s), c = r[0].distanceTo(r[1]), h = r[1].distanceTo(r[2]), u =
|
|
22938
|
+
})(), s = (P = t.ratio) != null ? P : FT, o = (I = t.dpr) != null ? I : 1, a = (T = t.pointerEvents) != null ? T : "auto", l = Math.max(NT, s), c = r[0].distanceTo(r[1]), h = r[1].distanceTo(r[2]), u = yu(c / s * o), d = yu(h / s * o), f = lr(...r);
|
|
22939
22939
|
let m;
|
|
22940
22940
|
if (l === s)
|
|
22941
22941
|
i.style.width = `${u}px`, i.style.height = `${d}px`, m = i;
|
|
@@ -23129,7 +23129,7 @@ function WT(e) {
|
|
|
23129
23129
|
function QT(e) {
|
|
23130
23130
|
pn.behindModeStore.css3DRenderer.setWrapper(e);
|
|
23131
23131
|
}
|
|
23132
|
-
class
|
|
23132
|
+
class Lc {
|
|
23133
23133
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
23134
23134
|
constructor(n) {
|
|
23135
23135
|
v(this, "hooks", new En());
|
|
@@ -23374,7 +23374,7 @@ class kc {
|
|
|
23374
23374
|
this.handleDisable();
|
|
23375
23375
|
}
|
|
23376
23376
|
}
|
|
23377
|
-
v(
|
|
23377
|
+
v(Lc, "setFrontModeContainer", WT), v(Lc, "setBehindModeContainer", QT);
|
|
23378
23378
|
const Si = document.createElement("div");
|
|
23379
23379
|
Si.classList.add("behindFiveElement");
|
|
23380
23380
|
Si.style.position = "absolute";
|
|
@@ -23404,7 +23404,7 @@ function tp(e) {
|
|
|
23404
23404
|
return e;
|
|
23405
23405
|
}
|
|
23406
23406
|
const mx = "v2.0.1", dy = `CSS3DRenderPlugin@${mx}`;
|
|
23407
|
-
let YT = class extends
|
|
23407
|
+
let YT = class extends Lc {
|
|
23408
23408
|
constructor(t) {
|
|
23409
23409
|
super();
|
|
23410
23410
|
v(this, "five");
|
|
@@ -23599,9 +23599,9 @@ function hr(e) {
|
|
|
23599
23599
|
function De(e, n) {
|
|
23600
23600
|
return e != e ? n == n : e !== n || e && typeof e == "object" || typeof e == "function";
|
|
23601
23601
|
}
|
|
23602
|
-
let
|
|
23602
|
+
let qh;
|
|
23603
23603
|
function Cn(e, n) {
|
|
23604
|
-
return
|
|
23604
|
+
return qh || (qh = document.createElement("a")), qh.href = n, e === qh.href;
|
|
23605
23605
|
}
|
|
23606
23606
|
function ZT(e) {
|
|
23607
23607
|
return Object.keys(e).length === 0;
|
|
@@ -23742,17 +23742,17 @@ function Ct(e, n) {
|
|
|
23742
23742
|
function W(e, n, t, i) {
|
|
23743
23743
|
t === null ? e.style.removeProperty(n) : e.style.setProperty(n, t, i ? "important" : "");
|
|
23744
23744
|
}
|
|
23745
|
-
let
|
|
23745
|
+
let Jh;
|
|
23746
23746
|
function $T() {
|
|
23747
|
-
if (
|
|
23748
|
-
|
|
23747
|
+
if (Jh === void 0) {
|
|
23748
|
+
Jh = !1;
|
|
23749
23749
|
try {
|
|
23750
23750
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
23751
23751
|
} catch (e) {
|
|
23752
|
-
|
|
23752
|
+
Jh = !0;
|
|
23753
23753
|
}
|
|
23754
23754
|
}
|
|
23755
|
-
return
|
|
23755
|
+
return Jh;
|
|
23756
23756
|
}
|
|
23757
23757
|
function Ig(e, n) {
|
|
23758
23758
|
getComputedStyle(e).position === "static" && (e.style.position = "relative");
|
|
@@ -23841,14 +23841,14 @@ function nD() {
|
|
|
23841
23841
|
}), sd.clear());
|
|
23842
23842
|
});
|
|
23843
23843
|
}
|
|
23844
|
-
let
|
|
23844
|
+
let kc;
|
|
23845
23845
|
function Pr(e) {
|
|
23846
|
-
|
|
23846
|
+
kc = e;
|
|
23847
23847
|
}
|
|
23848
23848
|
function ys() {
|
|
23849
|
-
if (!
|
|
23849
|
+
if (!kc)
|
|
23850
23850
|
throw new Error("Function called outside component initialization");
|
|
23851
|
-
return
|
|
23851
|
+
return kc;
|
|
23852
23852
|
}
|
|
23853
23853
|
function xx(e) {
|
|
23854
23854
|
ys().$$.before_update.push(e);
|
|
@@ -23906,7 +23906,7 @@ let ko = 0;
|
|
|
23906
23906
|
function Tg() {
|
|
23907
23907
|
if (ko !== 0)
|
|
23908
23908
|
return;
|
|
23909
|
-
const e =
|
|
23909
|
+
const e = kc;
|
|
23910
23910
|
do {
|
|
23911
23911
|
try {
|
|
23912
23912
|
for (; ko < Fo.length; ) {
|
|
@@ -23948,7 +23948,7 @@ function Dg() {
|
|
|
23948
23948
|
function Hs(e, n, t) {
|
|
23949
23949
|
e.dispatchEvent(wx(`${n ? "intro" : "outro"}${t}`));
|
|
23950
23950
|
}
|
|
23951
|
-
const
|
|
23951
|
+
const fu = /* @__PURE__ */ new Set();
|
|
23952
23952
|
let qi;
|
|
23953
23953
|
function Ve() {
|
|
23954
23954
|
qi = {
|
|
@@ -23962,14 +23962,14 @@ function Ge() {
|
|
|
23962
23962
|
qi.r || vn(qi.c), qi = qi.p;
|
|
23963
23963
|
}
|
|
23964
23964
|
function F(e, n) {
|
|
23965
|
-
e && e.i && (
|
|
23965
|
+
e && e.i && (fu.delete(e), e.i(n));
|
|
23966
23966
|
}
|
|
23967
23967
|
function X(e, n, t, i) {
|
|
23968
23968
|
if (e && e.o) {
|
|
23969
|
-
if (
|
|
23969
|
+
if (fu.has(e))
|
|
23970
23970
|
return;
|
|
23971
|
-
|
|
23972
|
-
|
|
23971
|
+
fu.add(e), qi.c.push(() => {
|
|
23972
|
+
fu.delete(e), i && (t && e.d(1), i());
|
|
23973
23973
|
}), e.o(n);
|
|
23974
23974
|
} else
|
|
23975
23975
|
i && i();
|
|
@@ -24200,7 +24200,7 @@ function oD(e, n) {
|
|
|
24200
24200
|
e.$$.dirty[0] === -1 && (Fo.push(e), Cx(), e.$$.dirty.fill(0)), e.$$.dirty[n / 31 | 0] |= 1 << n % 31;
|
|
24201
24201
|
}
|
|
24202
24202
|
function Le(e, n, t, i, r, s, o, a = [-1]) {
|
|
24203
|
-
const l =
|
|
24203
|
+
const l = kc;
|
|
24204
24204
|
Pr(e);
|
|
24205
24205
|
const c = e.$$ = {
|
|
24206
24206
|
fragment: null,
|
|
@@ -28345,7 +28345,7 @@ let xs = class {
|
|
|
28345
28345
|
/**
|
|
28346
28346
|
* @realsee/dnalogel 版本号
|
|
28347
28347
|
*/
|
|
28348
|
-
v(this, "VERSION", "3.50.
|
|
28348
|
+
v(this, "VERSION", "3.50.16");
|
|
28349
28349
|
v(this, "NAME");
|
|
28350
28350
|
v(this, "five");
|
|
28351
28351
|
v(this, "workUtil");
|
|
@@ -30575,7 +30575,7 @@ const Jk = ({ x: e, y: n, z: t }) => new Se(e, n, t), $6 = (e, n) => {
|
|
|
30575
30575
|
}, Kk = Ki;
|
|
30576
30576
|
function $k(e, n, t, i = Kk.Linear.None) {
|
|
30577
30577
|
const r = new xd(e).to(n, t).easing(i);
|
|
30578
|
-
|
|
30578
|
+
Wc(() => r.start(0));
|
|
30579
30579
|
const s = Ya((a) => {
|
|
30580
30580
|
r.update(a) === !1 && s();
|
|
30581
30581
|
}), o = [];
|
|
@@ -30596,12 +30596,12 @@ function e5(e, n) {
|
|
|
30596
30596
|
return $k({ progress: 0 }, { progress: 1 }, e, n);
|
|
30597
30597
|
}
|
|
30598
30598
|
var t5 = /* @__PURE__ */ ((e) => (e.Move = "Move", e.Rotate = "Rotate", e))(t5 || {}), Cr = /* @__PURE__ */ ((e) => (e.Clockwise = "Clockwise", e.Anticlockwise = "Anticlockwise", e.Loop = "Loop", e))(Cr || {});
|
|
30599
|
-
const
|
|
30599
|
+
const pu = Math.PI * 2;
|
|
30600
30600
|
function eb(e) {
|
|
30601
|
-
return (e %
|
|
30601
|
+
return (e % pu + pu) % pu;
|
|
30602
30602
|
}
|
|
30603
30603
|
function tb(e) {
|
|
30604
|
-
return e %
|
|
30604
|
+
return e % pu;
|
|
30605
30605
|
}
|
|
30606
30606
|
function op(e, n, t) {
|
|
30607
30607
|
return e + (n - e) * t;
|
|
@@ -30680,13 +30680,13 @@ function Hx(e, n, t) {
|
|
|
30680
30680
|
const i = fd(e[1], e[0]), r = fd(n[1], n[0]);
|
|
30681
30681
|
if (isNaN(i) || isNaN(r) || Gx(i, r))
|
|
30682
30682
|
return !1;
|
|
30683
|
-
if (
|
|
30683
|
+
if (Kh(e[0], n))
|
|
30684
30684
|
return e[0];
|
|
30685
|
-
if (
|
|
30685
|
+
if (Kh(e[1], n))
|
|
30686
30686
|
return e[1];
|
|
30687
|
-
if (
|
|
30687
|
+
if (Kh(n[0], e))
|
|
30688
30688
|
return n[0];
|
|
30689
|
-
if (
|
|
30689
|
+
if (Kh(n[1], e))
|
|
30690
30690
|
return n[1];
|
|
30691
30691
|
if (t && !i5(e, n))
|
|
30692
30692
|
return !1;
|
|
@@ -30698,7 +30698,7 @@ function Hx(e, n, t) {
|
|
|
30698
30698
|
const a = (o.y - s.y + i * s.x - r * o.x) / (i - r), l = i * a - i * s.x + s.y;
|
|
30699
30699
|
return { x: a, y: l };
|
|
30700
30700
|
}
|
|
30701
|
-
function
|
|
30701
|
+
function Kh(e, n) {
|
|
30702
30702
|
return nb(e, n[0]) || nb(e, n[1]) ? !0 : (n[0].x - e.x) * (e.x - n[1].x) >= 0 && (n[0].y - e.y) * (e.y - n[1].y) >= 0 && Gx(fd(n[0], e), fd(e, n[1]));
|
|
30703
30703
|
}
|
|
30704
30704
|
function n5(e) {
|
|
@@ -30707,11 +30707,11 @@ function n5(e) {
|
|
|
30707
30707
|
n = Math.min(n, s.x), t = Math.max(t, s.x), i = Math.min(i, s.y), r = Math.max(r, s.y);
|
|
30708
30708
|
}), { x: (n + t) / 2, y: (i + r) / 2 };
|
|
30709
30709
|
}
|
|
30710
|
-
function
|
|
30710
|
+
function $h(e, n, t) {
|
|
30711
30711
|
return (e.x - t.x) * (n.y - t.y) - (n.x - t.x) * (e.y - t.y);
|
|
30712
30712
|
}
|
|
30713
30713
|
function i5(e, n) {
|
|
30714
|
-
return Math.max(e[0].x, e[1].x) >= Math.min(n[0].x, n[1].x) && Math.max(n[0].x, n[1].x) >= Math.min(e[0].x, e[1].x) && Math.max(e[0].y, e[1].y) >= Math.min(n[0].y, n[1].y) &&
|
|
30714
|
+
return Math.max(e[0].x, e[1].x) >= Math.min(n[0].x, n[1].x) && Math.max(n[0].x, n[1].x) >= Math.min(e[0].x, e[1].x) && Math.max(e[0].y, e[1].y) >= Math.min(n[0].y, n[1].y) && $h(n[0], e[1], e[0]) * $h(e[1], n[1], e[0]) > 0 && $h(e[0], n[1], n[0]) * $h(n[1], e[1], n[0]) > 0 ? 1 : 0;
|
|
30715
30715
|
}
|
|
30716
30716
|
function jx(e, n = 0) {
|
|
30717
30717
|
n <= 0 ? requestAnimationFrame(e) : requestAnimationFrame(() => jx(e, n - 1));
|
|
@@ -31406,7 +31406,7 @@ function p5(e, n, t) {
|
|
|
31406
31406
|
};
|
|
31407
31407
|
});
|
|
31408
31408
|
t(0, o = z);
|
|
31409
|
-
}, f = () =>
|
|
31409
|
+
}, f = () => Wc(d), m = Gg(d, 80);
|
|
31410
31410
|
return Xn(() => {
|
|
31411
31411
|
d(), i.on("panoArrived", d), i.on("modeChange", d), i.on("cameraDirectionUpdate", f), i.on("movingToPano", f), i.on("mouseWheel", () => m()), i.on("pinchGesture", () => m());
|
|
31412
31412
|
}), Ai(() => {
|
|
@@ -31519,7 +31519,7 @@ function Ux(e) {
|
|
|
31519
31519
|
});
|
|
31520
31520
|
});
|
|
31521
31521
|
}
|
|
31522
|
-
const
|
|
31522
|
+
const eu = { userAction: !0 };
|
|
31523
31523
|
class A5 extends Br {
|
|
31524
31524
|
constructor(t, i) {
|
|
31525
31525
|
super(t, i);
|
|
@@ -31603,10 +31603,10 @@ class A5 extends Br {
|
|
|
31603
31603
|
v(this, "onFivePanoArrived", (t) => {
|
|
31604
31604
|
var r, s, o, a, l, c, h, u;
|
|
31605
31605
|
const i = (o = (s = (r = this.five.work) == null ? void 0 : r.observers) == null ? void 0 : s[t]) == null ? void 0 : o.standingPosition;
|
|
31606
|
-
if (this.compassMesh && i && (this.compassMesh.position.copy(i.clone().setY(i.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween =
|
|
31606
|
+
if (this.compassMesh && i && (this.compassMesh.position.copy(i.clone().setY(i.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween = Dc(1e3).onUpdate(({ progress: d }) => {
|
|
31607
31607
|
var f;
|
|
31608
31608
|
(f = this.compassMesh) == null || f.material.setValues({ opacity: d }), this.five.needsRender = !0;
|
|
31609
|
-
}).play())), this.logoMesh && i && (this.logoMesh.position.copy(i.clone().setY(i.y + 0.011)), this.logoMesh.material.opacity === 0 && ((l = this.logoMeshTween) == null || l.dispose(), this.logoMeshTween =
|
|
31609
|
+
}).play())), this.logoMesh && i && (this.logoMesh.position.copy(i.clone().setY(i.y + 0.011)), this.logoMesh.material.opacity === 0 && ((l = this.logoMeshTween) == null || l.dispose(), this.logoMeshTween = Dc(1e3).onUpdate(({ progress: d }) => {
|
|
31610
31610
|
var f;
|
|
31611
31611
|
(f = this.logoMesh) == null || f.material.setValues({ opacity: d }), this.five.needsRender = !0;
|
|
31612
31612
|
}).play())), this.entryDoorMesh) {
|
|
@@ -31642,7 +31642,7 @@ class A5 extends Br {
|
|
|
31642
31642
|
* 启用插件,响应用户操作并展示UI
|
|
31643
31643
|
* @param options
|
|
31644
31644
|
*/
|
|
31645
|
-
enable(t =
|
|
31645
|
+
enable(t = eu) {
|
|
31646
31646
|
this.setState(
|
|
31647
31647
|
{
|
|
31648
31648
|
enabled: !0
|
|
@@ -31654,7 +31654,7 @@ class A5 extends Br {
|
|
|
31654
31654
|
* 禁用插件,禁止响应用户操作并隐藏UI
|
|
31655
31655
|
* @param options
|
|
31656
31656
|
*/
|
|
31657
|
-
disable(t =
|
|
31657
|
+
disable(t = eu) {
|
|
31658
31658
|
this.setState(
|
|
31659
31659
|
{
|
|
31660
31660
|
enabled: !1
|
|
@@ -31668,7 +31668,7 @@ class A5 extends Br {
|
|
|
31668
31668
|
* @returns
|
|
31669
31669
|
* @todo 需要考虑动画
|
|
31670
31670
|
*/
|
|
31671
|
-
show(t =
|
|
31671
|
+
show(t = eu) {
|
|
31672
31672
|
if (this.state.enabled)
|
|
31673
31673
|
return this.setState(
|
|
31674
31674
|
{
|
|
@@ -31683,7 +31683,7 @@ class A5 extends Br {
|
|
|
31683
31683
|
* @returns
|
|
31684
31684
|
* @todo 需要考虑动画
|
|
31685
31685
|
*/
|
|
31686
|
-
hide(t =
|
|
31686
|
+
hide(t = eu) {
|
|
31687
31687
|
if (this.state.enabled)
|
|
31688
31688
|
return this.setState(
|
|
31689
31689
|
{
|
|
@@ -31806,7 +31806,7 @@ function to(e) {
|
|
|
31806
31806
|
const { x: n, y: t, z: i } = e;
|
|
31807
31807
|
return !(Math.abs(n) > 1 || Math.abs(t) > 1 || Math.abs(i) > 1);
|
|
31808
31808
|
}
|
|
31809
|
-
function
|
|
31809
|
+
function mu(e) {
|
|
31810
31810
|
const { z: n } = e;
|
|
31811
31811
|
return !(Math.abs(n) > 1);
|
|
31812
31812
|
}
|
|
@@ -31873,7 +31873,7 @@ class Qx {
|
|
|
31873
31873
|
if (!t)
|
|
31874
31874
|
return;
|
|
31875
31875
|
const i = t.clientWidth, r = t.clientHeight, s = this.ndcPosition.clone().project(n.camera);
|
|
31876
|
-
if (!
|
|
31876
|
+
if (!mu(s)) {
|
|
31877
31877
|
this.tempHide();
|
|
31878
31878
|
return;
|
|
31879
31879
|
}
|
|
@@ -31906,7 +31906,7 @@ class O5 extends Qx {
|
|
|
31906
31906
|
if (this.line.points.length < 2)
|
|
31907
31907
|
return;
|
|
31908
31908
|
const [l, c] = this.line.points.map((I) => I.position.clone().applyMatrix4(this.line.mesh.matrixWorld)), h = l.clone().project(t.camera), u = c.clone().project(t.camera), d = lr(l, c).clone().project(t.camera), f = new Fn(h.x * o, h.y * a), m = new Fn(u.x * o, u.y * a), p = f.distanceTo(m);
|
|
31909
|
-
if ((() => !(Math.abs(h.z) > 1 || Math.abs(u.z) > 1 || !
|
|
31909
|
+
if ((() => !(Math.abs(h.z) > 1 || Math.abs(u.z) > 1 || !mu(h) && !mu(u) || !mu(d) || p === 0))() === !1) {
|
|
31910
31910
|
this.hide();
|
|
31911
31911
|
return;
|
|
31912
31912
|
}
|
|
@@ -32007,7 +32007,7 @@ let Ra = class Yx {
|
|
|
32007
32007
|
return new Xx(this.position);
|
|
32008
32008
|
}
|
|
32009
32009
|
};
|
|
32010
|
-
const
|
|
32010
|
+
const tu = (e) => e.preventDefault();
|
|
32011
32011
|
let Vd = class {
|
|
32012
32012
|
constructor(n) {
|
|
32013
32013
|
v(this, "model");
|
|
@@ -32043,7 +32043,7 @@ let Vd = class {
|
|
|
32043
32043
|
helper: R({ magnifierParams: n.magnifierParams }, (i = n.pointSelectorConfig) == null ? void 0 : i.helper)
|
|
32044
32044
|
}), this.container = n.container, this.isMobile = (s = (r = n.openParams) == null ? void 0 : r.isMobile) != null ? s : !1, this.workUtil = n.workUtil, this.userDistanceItemCreator = n.userDistanceItemCreator, this.group = n.group, this.mouseGroup = n.mouseGroup, this.dashed = new Ra(new ui([0, 0, 0]), new ui([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new Ra(new ui([0, 0, 0]), new ui([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new Ga(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
32045
32045
|
const t = this.five.getElement();
|
|
32046
|
-
t && (t.addEventListener("touchstart",
|
|
32046
|
+
t && (t.addEventListener("touchstart", tu), t.addEventListener("contextmenu", tu));
|
|
32047
32047
|
}
|
|
32048
32048
|
get currentMeasureType() {
|
|
32049
32049
|
return this.getMeasureType();
|
|
@@ -32066,7 +32066,7 @@ let Vd = class {
|
|
|
32066
32066
|
var t;
|
|
32067
32067
|
this.disposed = !0, (t = this.magnifier) == null || t.disable(), this.model.getAllLines().forEach((i) => this.removeLine(i)), this.model.areas.forEach((i) => i.remove());
|
|
32068
32068
|
const n = this.five.getElement();
|
|
32069
|
-
n && (n.removeEventListener("touchstart",
|
|
32069
|
+
n && (n.removeEventListener("touchstart", tu), n.removeEventListener("contextmenu", tu));
|
|
32070
32070
|
}
|
|
32071
32071
|
}, Oa = class {
|
|
32072
32072
|
constructor(n) {
|
|
@@ -32180,7 +32180,7 @@ let Vd = class {
|
|
|
32180
32180
|
this.id = n.id, this.clear(), this.lines.push(...n.lines);
|
|
32181
32181
|
}
|
|
32182
32182
|
};
|
|
32183
|
-
function
|
|
32183
|
+
function Qc(e, n) {
|
|
32184
32184
|
if (e.length < 3) {
|
|
32185
32185
|
console.error("points.length < 3");
|
|
32186
32186
|
return;
|
|
@@ -32191,7 +32191,7 @@ function Yc(e, n) {
|
|
|
32191
32191
|
function z5(e) {
|
|
32192
32192
|
if (e.length < 3)
|
|
32193
32193
|
return [];
|
|
32194
|
-
const n =
|
|
32194
|
+
const n = Qc([e[0].clone(), e[1].clone(), e[2].clone()]), t = new E.Quaternion().setFromUnitVectors(new E.Vector3(0, 1, 0), n), r = e.map((o) => o.clone().applyQuaternion(t)).flatMap((o) => [o.x, o.z]);
|
|
32195
32195
|
return kE(r);
|
|
32196
32196
|
}
|
|
32197
32197
|
function zm(e, n) {
|
|
@@ -35359,7 +35359,7 @@ class qR extends xs {
|
|
|
35359
35359
|
t,
|
|
35360
35360
|
(u = (h = i.magnifierParams) != null ? h : (c = (l = i.pointSelectorConfig) == null ? void 0 : l.helper) == null ? void 0 : c.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }
|
|
35361
35361
|
), this.allowMeasureType = Array.from(new Set((f = (d = i.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (m = this.allowMeasureType[0]) != null ? m : "line", this.group = new Jo(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.zIndex = "1";
|
|
35362
|
-
const r = (g = (p = i.editParams) == null ? void 0 : p.pointSelectorMode) != null ? g :
|
|
35362
|
+
const r = (g = (p = i.editParams) == null ? void 0 : p.pointSelectorMode) != null ? g : nd ? "fixed" : "cursor", s = (y = this.params.openParams) != null ? y : {};
|
|
35363
35363
|
if (this.params.useUIController !== !1) {
|
|
35364
35364
|
const b = R({
|
|
35365
35365
|
container: this.container,
|
|
@@ -37804,7 +37804,7 @@ Hd.normal = function(n, t) {
|
|
|
37804
37804
|
Hd.direction = function(n, t, i) {
|
|
37805
37805
|
return cO(n, t, i), hM(n, n), n;
|
|
37806
37806
|
};
|
|
37807
|
-
var Ar = Hd, zs = [0, 0],
|
|
37807
|
+
var Ar = Hd, zs = [0, 0], nu = [0, 0], qb = [0, 0], xl = [0, 0], uO = function(e, n) {
|
|
37808
37808
|
var t = null, i = [];
|
|
37809
37809
|
n && (e = e.slice(), e.push(e[0]));
|
|
37810
37810
|
for (var r = e.length, s = 1; s < r; s++) {
|
|
@@ -37812,15 +37812,15 @@ var Ar = Hd, zs = [0, 0], iu = [0, 0], qb = [0, 0], xl = [0, 0], uO = function(e
|
|
|
37812
37812
|
if (Ar.direction(zs, a, o), t || (t = [0, 0], Ar.normal(t, zs)), s === 1 && lp(i, t, 1), !l)
|
|
37813
37813
|
Ar.normal(t, zs), lp(i, t, 1);
|
|
37814
37814
|
else {
|
|
37815
|
-
Ar.direction(
|
|
37816
|
-
var c = Ar.computeMiter(qb, xl, zs,
|
|
37815
|
+
Ar.direction(nu, l, a);
|
|
37816
|
+
var c = Ar.computeMiter(qb, xl, zs, nu, 1);
|
|
37817
37817
|
lp(i, xl, c);
|
|
37818
37818
|
}
|
|
37819
37819
|
}
|
|
37820
37820
|
if (e.length > 2 && n) {
|
|
37821
37821
|
var h = e[r - 2], u = e[0], d = e[1];
|
|
37822
|
-
Ar.direction(zs, u, h), Ar.direction(
|
|
37823
|
-
var f = Ar.computeMiter(qb, xl, zs,
|
|
37822
|
+
Ar.direction(zs, u, h), Ar.direction(nu, d, u), Ar.normal(t, zs);
|
|
37823
|
+
var f = Ar.computeMiter(qb, xl, zs, nu, 1);
|
|
37824
37824
|
i[0][0] = xl.slice(), i[r - 1][0] = xl.slice(), i[0][1] = f, i[r - 1][1] = f, i.pop();
|
|
37825
37825
|
}
|
|
37826
37826
|
return i;
|
|
@@ -38049,7 +38049,7 @@ function Jb(e) {
|
|
|
38049
38049
|
const n = jm(e);
|
|
38050
38050
|
return lr(...Array.isArray(n) ? n : [n]);
|
|
38051
38051
|
}
|
|
38052
|
-
function
|
|
38052
|
+
function iu(e, n) {
|
|
38053
38053
|
if (e === void 0)
|
|
38054
38054
|
return;
|
|
38055
38055
|
const { min: t, max: i } = n != null ? n : {};
|
|
@@ -38610,7 +38610,7 @@ class Ni extends ke {
|
|
|
38610
38610
|
function NO() {
|
|
38611
38611
|
return Math.random().toString(36).slice(-6);
|
|
38612
38612
|
}
|
|
38613
|
-
const
|
|
38613
|
+
const ru = NO();
|
|
38614
38614
|
function FO(e) {
|
|
38615
38615
|
Ue(e, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
38616
38616
|
}
|
|
@@ -38767,7 +38767,7 @@ function jO(e) {
|
|
|
38767
38767
|
}
|
|
38768
38768
|
function UO(e, n, t) {
|
|
38769
38769
|
let i, { inDelay: r = 0 } = n, { outDelay: s = 0 } = n, { content: o } = n, { unfolded: a } = n, { isFistUnfoldedUpdate: l = !0 } = n;
|
|
38770
|
-
const c = `__EMOJI_SPLIT_${
|
|
38770
|
+
const c = `__EMOJI_SPLIT_${ru}__`, h = `__EMOJI_${ru}__`, u = `__SPACE_${ru}__`, d = `__NEW_LINE_${ru}__`;
|
|
38771
38771
|
let f, m, p = [];
|
|
38772
38772
|
function g(M) {
|
|
38773
38773
|
const P = [], I = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
|
|
@@ -38796,7 +38796,7 @@ function UO(e, n, t) {
|
|
|
38796
38796
|
if (I > 0)
|
|
38797
38797
|
return I;
|
|
38798
38798
|
}();
|
|
38799
|
-
m =
|
|
38799
|
+
m = vu({
|
|
38800
38800
|
targets: M.slice(0, P).filter(bt),
|
|
38801
38801
|
autoplay: !1,
|
|
38802
38802
|
duration: 400,
|
|
@@ -38805,7 +38805,7 @@ function UO(e, n, t) {
|
|
|
38805
38805
|
opacity: [0, 1],
|
|
38806
38806
|
translateX: [4, 0],
|
|
38807
38807
|
translateY: [10, 0],
|
|
38808
|
-
delay:
|
|
38808
|
+
delay: vu.stagger(50),
|
|
38809
38809
|
easing: "easeInOutCubic"
|
|
38810
38810
|
}), a && m.seek(m.duration);
|
|
38811
38811
|
}
|
|
@@ -40687,7 +40687,7 @@ var IB = Array.prototype, SB = Function.prototype, wM = Object.prototype, up = J
|
|
|
40687
40687
|
return e ? "Symbol(src)_1." + e : "";
|
|
40688
40688
|
}(), xM = SB.toString, Kg = wM.hasOwnProperty, MM = wM.toString, TB = RegExp(
|
|
40689
40689
|
"^" + xM.call(Kg).replace(wB, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
40690
|
-
), wA = Jg.Symbol, DB = IB.splice, LB = EM(Jg, "Map"),
|
|
40690
|
+
), wA = Jg.Symbol, DB = IB.splice, LB = EM(Jg, "Map"), Rc = EM(Object, "create"), xA = wA ? wA.prototype : void 0, MA = xA ? xA.toString : void 0;
|
|
40691
40691
|
function io(e) {
|
|
40692
40692
|
var n = -1, t = e ? e.length : 0;
|
|
40693
40693
|
for (this.clear(); ++n < t; ) {
|
|
@@ -40696,14 +40696,14 @@ function io(e) {
|
|
|
40696
40696
|
}
|
|
40697
40697
|
}
|
|
40698
40698
|
function kB() {
|
|
40699
|
-
this.__data__ =
|
|
40699
|
+
this.__data__ = Rc ? Rc(null) : {};
|
|
40700
40700
|
}
|
|
40701
40701
|
function RB(e) {
|
|
40702
40702
|
return this.has(e) && delete this.__data__[e];
|
|
40703
40703
|
}
|
|
40704
40704
|
function OB(e) {
|
|
40705
40705
|
var n = this.__data__;
|
|
40706
|
-
if (
|
|
40706
|
+
if (Rc) {
|
|
40707
40707
|
var t = n[e];
|
|
40708
40708
|
return t === bM ? void 0 : t;
|
|
40709
40709
|
}
|
|
@@ -40711,11 +40711,11 @@ function OB(e) {
|
|
|
40711
40711
|
}
|
|
40712
40712
|
function zB(e) {
|
|
40713
40713
|
var n = this.__data__;
|
|
40714
|
-
return
|
|
40714
|
+
return Rc ? n[e] !== void 0 : Kg.call(n, e);
|
|
40715
40715
|
}
|
|
40716
40716
|
function BB(e, n) {
|
|
40717
40717
|
var t = this.__data__;
|
|
40718
|
-
return t[e] =
|
|
40718
|
+
return t[e] = Rc && n === void 0 ? bM : n, this;
|
|
40719
40719
|
}
|
|
40720
40720
|
io.prototype.clear = kB;
|
|
40721
40721
|
io.prototype.delete = RB;
|
|
@@ -40900,7 +40900,7 @@ function l9(e, n, t) {
|
|
|
40900
40900
|
var i = e == null ? void 0 : XB(e, n);
|
|
40901
40901
|
return i === void 0 ? t : i;
|
|
40902
40902
|
}
|
|
40903
|
-
var
|
|
40903
|
+
var su = l9, gd = {}, c9 = {
|
|
40904
40904
|
get exports() {
|
|
40905
40905
|
return gd;
|
|
40906
40906
|
},
|
|
@@ -41092,13 +41092,13 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41092
41092
|
(L || st.call(C, rt)) && !(At && (rt == "length" || cf(rt, le))) && q.push(rt);
|
|
41093
41093
|
return q;
|
|
41094
41094
|
}
|
|
41095
|
-
function
|
|
41095
|
+
function Jc(C, L, q) {
|
|
41096
41096
|
var le = C[L];
|
|
41097
|
-
(!(st.call(C, L) &&
|
|
41097
|
+
(!(st.call(C, L) && nh(le, q)) || q === void 0 && !(L in C)) && (C[L] = q);
|
|
41098
41098
|
}
|
|
41099
41099
|
function co(C, L) {
|
|
41100
41100
|
for (var q = C.length; q--; )
|
|
41101
|
-
if (
|
|
41101
|
+
if (nh(C[q][0], L))
|
|
41102
41102
|
return q;
|
|
41103
41103
|
return -1;
|
|
41104
41104
|
}
|
|
@@ -41117,7 +41117,7 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41117
41117
|
return rf(C, Lt);
|
|
41118
41118
|
} else {
|
|
41119
41119
|
var Bt = pr(C), Rn = Bt == h || Bt == u;
|
|
41120
|
-
if (
|
|
41120
|
+
if (ih(C))
|
|
41121
41121
|
return ho(C, L);
|
|
41122
41122
|
if (Bt == m || Bt == s || Rn && !rt) {
|
|
41123
41123
|
if (mt(C))
|
|
@@ -41137,7 +41137,7 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41137
41137
|
if (St.set(C, Lt), !dn)
|
|
41138
41138
|
var bn = q ? of(C) : al(C);
|
|
41139
41139
|
return Be(bn || C, function(On, In) {
|
|
41140
|
-
bn && (In = On, On = C[In]),
|
|
41140
|
+
bn && (In = On, On = C[In]), Jc(Lt, In, nl(On, L, q, le, In, C, St));
|
|
41141
41141
|
}), Lt;
|
|
41142
41142
|
}
|
|
41143
41143
|
function Zd(C) {
|
|
@@ -41157,7 +41157,7 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41157
41157
|
return L.test(jn(C));
|
|
41158
41158
|
}
|
|
41159
41159
|
function $d(C) {
|
|
41160
|
-
if (!
|
|
41160
|
+
if (!eh(C))
|
|
41161
41161
|
return Pt(C);
|
|
41162
41162
|
var L = [];
|
|
41163
41163
|
for (var q in Object(C))
|
|
@@ -41178,11 +41178,11 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41178
41178
|
var q = L ? il(C.buffer) : C.buffer;
|
|
41179
41179
|
return new C.constructor(q, C.byteOffset, C.byteLength);
|
|
41180
41180
|
}
|
|
41181
|
-
function
|
|
41181
|
+
function Kc(C, L, q) {
|
|
41182
41182
|
var le = L ? q(xe(C), !0) : xe(C);
|
|
41183
41183
|
return fe(le, re, new C.constructor());
|
|
41184
41184
|
}
|
|
41185
|
-
function
|
|
41185
|
+
function $c(C) {
|
|
41186
41186
|
var L = new C.constructor(C.source, J.exec(C));
|
|
41187
41187
|
return L.lastIndex = C.lastIndex, L;
|
|
41188
41188
|
}
|
|
@@ -41207,7 +41207,7 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41207
41207
|
q || (q = {});
|
|
41208
41208
|
for (var At = -1, rt = L.length; ++At < rt; ) {
|
|
41209
41209
|
var St = L[At], Lt = le ? le(q[St], C[St], St, q, C) : void 0;
|
|
41210
|
-
|
|
41210
|
+
Jc(q, St, Lt === void 0 ? C[St] : Lt);
|
|
41211
41211
|
}
|
|
41212
41212
|
return q;
|
|
41213
41213
|
}
|
|
@@ -41248,7 +41248,7 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41248
41248
|
return L && typeof C[0] == "string" && st.call(C, "index") && (q.index = C.index, q.input = C.input), q;
|
|
41249
41249
|
}
|
|
41250
41250
|
function Hi(C) {
|
|
41251
|
-
return typeof C.constructor == "function" && !
|
|
41251
|
+
return typeof C.constructor == "function" && !eh(C) ? Zd(Ke(C)) : {};
|
|
41252
41252
|
}
|
|
41253
41253
|
function lf(C, L, q, le) {
|
|
41254
41254
|
var At = C.constructor;
|
|
@@ -41271,12 +41271,12 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41271
41271
|
case S:
|
|
41272
41272
|
return nf(C, le);
|
|
41273
41273
|
case d:
|
|
41274
|
-
return
|
|
41274
|
+
return Kc(C, le, q);
|
|
41275
41275
|
case f:
|
|
41276
41276
|
case b:
|
|
41277
41277
|
return new At(C);
|
|
41278
41278
|
case g:
|
|
41279
|
-
return
|
|
41279
|
+
return $c(C);
|
|
41280
41280
|
case y:
|
|
41281
41281
|
return ef(C, le, q);
|
|
41282
41282
|
case A:
|
|
@@ -41293,7 +41293,7 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41293
41293
|
function uf(C) {
|
|
41294
41294
|
return !!Ae && Ae in C;
|
|
41295
41295
|
}
|
|
41296
|
-
function
|
|
41296
|
+
function eh(C) {
|
|
41297
41297
|
var L = C && C.constructor, q = typeof L == "function" && L.prototype || me;
|
|
41298
41298
|
return C === q;
|
|
41299
41299
|
}
|
|
@@ -41310,10 +41310,10 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41310
41310
|
}
|
|
41311
41311
|
return "";
|
|
41312
41312
|
}
|
|
41313
|
-
function
|
|
41313
|
+
function th(C) {
|
|
41314
41314
|
return nl(C, !0, !0);
|
|
41315
41315
|
}
|
|
41316
|
-
function
|
|
41316
|
+
function nh(C, L) {
|
|
41317
41317
|
return C === L || C !== C && L !== L;
|
|
41318
41318
|
}
|
|
41319
41319
|
function uo(C) {
|
|
@@ -41321,24 +41321,24 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41321
41321
|
}
|
|
41322
41322
|
var sl = Array.isArray;
|
|
41323
41323
|
function fo(C) {
|
|
41324
|
-
return C != null &&
|
|
41324
|
+
return C != null && rh(C.length) && !ol(C);
|
|
41325
41325
|
}
|
|
41326
41326
|
function df(C) {
|
|
41327
|
-
return
|
|
41327
|
+
return sh(C) && fo(C);
|
|
41328
41328
|
}
|
|
41329
|
-
var
|
|
41329
|
+
var ih = Ye || pf;
|
|
41330
41330
|
function ol(C) {
|
|
41331
41331
|
var L = ji(C) ? et.call(C) : "";
|
|
41332
41332
|
return L == h || L == u;
|
|
41333
41333
|
}
|
|
41334
|
-
function
|
|
41334
|
+
function rh(C) {
|
|
41335
41335
|
return typeof C == "number" && C > -1 && C % 1 == 0 && C <= r;
|
|
41336
41336
|
}
|
|
41337
41337
|
function ji(C) {
|
|
41338
41338
|
var L = typeof C;
|
|
41339
41339
|
return !!C && (L == "object" || L == "function");
|
|
41340
41340
|
}
|
|
41341
|
-
function
|
|
41341
|
+
function sh(C) {
|
|
41342
41342
|
return !!C && typeof C == "object";
|
|
41343
41343
|
}
|
|
41344
41344
|
function al(C) {
|
|
@@ -41350,7 +41350,7 @@ var ou = l9, gd = {}, c9 = {
|
|
|
41350
41350
|
function pf() {
|
|
41351
41351
|
return !1;
|
|
41352
41352
|
}
|
|
41353
|
-
e.exports =
|
|
41353
|
+
e.exports = th;
|
|
41354
41354
|
})(c9, gd);
|
|
41355
41355
|
const h9 = gd;
|
|
41356
41356
|
var vd = {}, u9 = {
|
|
@@ -41521,13 +41521,13 @@ var vd = {}, u9 = {
|
|
|
41521
41521
|
for (this.__data__ = new ln(); ++L < q; )
|
|
41522
41522
|
this.add(C[L]);
|
|
41523
41523
|
}
|
|
41524
|
-
function
|
|
41524
|
+
function Jc(C) {
|
|
41525
41525
|
return this.__data__.set(C, i), this;
|
|
41526
41526
|
}
|
|
41527
41527
|
function co(C) {
|
|
41528
41528
|
return this.__data__.has(C);
|
|
41529
41529
|
}
|
|
41530
|
-
lo.prototype.add = lo.prototype.push =
|
|
41530
|
+
lo.prototype.add = lo.prototype.push = Jc, lo.prototype.has = co;
|
|
41531
41531
|
function Gi(C) {
|
|
41532
41532
|
var L = this.__data__ = new Dt(C);
|
|
41533
41533
|
this.size = L.size;
|
|
@@ -41557,7 +41557,7 @@ var vd = {}, u9 = {
|
|
|
41557
41557
|
}
|
|
41558
41558
|
Gi.prototype.clear = nl, Gi.prototype.delete = Zd, Gi.prototype.get = qd, Gi.prototype.has = Jd, Gi.prototype.set = Kd;
|
|
41559
41559
|
function $d(C, L) {
|
|
41560
|
-
var q = uo(C), le = !q &&
|
|
41560
|
+
var q = uo(C), le = !q && nh(C), At = !q && !le && fo(C), rt = !q && !le && !At && sh(C), St = q || le || At || rt, Lt = St ? H(C.length, String) : [], dn = Lt.length;
|
|
41561
41561
|
for (var Bt in C)
|
|
41562
41562
|
(L || Ke.call(C, Bt)) && !(St && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
41563
41563
|
(Bt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -41568,7 +41568,7 @@ var vd = {}, u9 = {
|
|
|
41568
41568
|
}
|
|
41569
41569
|
function ho(C, L) {
|
|
41570
41570
|
for (var q = C.length; q--; )
|
|
41571
|
-
if (
|
|
41571
|
+
if (th(C[q][0], L))
|
|
41572
41572
|
return q;
|
|
41573
41573
|
return -1;
|
|
41574
41574
|
}
|
|
@@ -41577,13 +41577,13 @@ var vd = {}, u9 = {
|
|
|
41577
41577
|
return uo(C) ? le : Ne(le, q(C));
|
|
41578
41578
|
}
|
|
41579
41579
|
function Es(C) {
|
|
41580
|
-
return C == null ? C === void 0 ? T : y : Xt && Xt in Object(C) ? pr(C) :
|
|
41580
|
+
return C == null ? C === void 0 ? T : y : Xt && Xt in Object(C) ? pr(C) : eh(C);
|
|
41581
41581
|
}
|
|
41582
|
-
function
|
|
41582
|
+
function Kc(C) {
|
|
41583
41583
|
return ji(C) && Es(C) == a;
|
|
41584
41584
|
}
|
|
41585
|
-
function
|
|
41586
|
-
return C === L ? !0 : C == null || L == null || !ji(C) && !ji(L) ? C !== C && L !== L : ef(C, L, q, le,
|
|
41585
|
+
function $c(C, L, q, le, At) {
|
|
41586
|
+
return C === L ? !0 : C == null || L == null || !ji(C) && !ji(L) ? C !== C && L !== L : ef(C, L, q, le, $c, At);
|
|
41587
41587
|
}
|
|
41588
41588
|
function ef(C, L, q, le, At, rt) {
|
|
41589
41589
|
var St = uo(C), Lt = uo(L), dn = St ? l : Hi(C), Bt = Lt ? l : Hi(L);
|
|
@@ -41595,7 +41595,7 @@ var vd = {}, u9 = {
|
|
|
41595
41595
|
St = !0, Rn = !1;
|
|
41596
41596
|
}
|
|
41597
41597
|
if (bn && !Rn)
|
|
41598
|
-
return rt || (rt = new Gi()), St ||
|
|
41598
|
+
return rt || (rt = new Gi()), St || sh(C) ? rl(C, L, q, le, At, rt) : sf(C, L, dn, q, le, At, rt);
|
|
41599
41599
|
if (!(q & r)) {
|
|
41600
41600
|
var On = Rn && Ke.call(C, "__wrapped__"), In = Zn && Ke.call(L, "__wrapped__");
|
|
41601
41601
|
if (On || In) {
|
|
@@ -41606,9 +41606,9 @@ var vd = {}, u9 = {
|
|
|
41606
41606
|
return bn ? (rt || (rt = new Gi()), of(C, L, q, le, At, rt)) : !1;
|
|
41607
41607
|
}
|
|
41608
41608
|
function tf(C) {
|
|
41609
|
-
if (!
|
|
41609
|
+
if (!rh(C) || hf(C))
|
|
41610
41610
|
return !1;
|
|
41611
|
-
var L =
|
|
41611
|
+
var L = ih(C) ? $e : ye;
|
|
41612
41612
|
return L.test(jn(C));
|
|
41613
41613
|
}
|
|
41614
41614
|
function nf(C) {
|
|
@@ -41666,7 +41666,7 @@ var vd = {}, u9 = {
|
|
|
41666
41666
|
case h:
|
|
41667
41667
|
case u:
|
|
41668
41668
|
case g:
|
|
41669
|
-
return
|
|
41669
|
+
return th(+C, +L);
|
|
41670
41670
|
case d:
|
|
41671
41671
|
return C.name == L.name && C.message == L.message;
|
|
41672
41672
|
case x:
|
|
@@ -41716,8 +41716,8 @@ var vd = {}, u9 = {
|
|
|
41716
41716
|
Fr || (Fr = bn == "constructor");
|
|
41717
41717
|
}
|
|
41718
41718
|
if (In && !Fr) {
|
|
41719
|
-
var
|
|
41720
|
-
|
|
41719
|
+
var oh = C.constructor, ah = L.constructor;
|
|
41720
|
+
oh != ah && "constructor" in C && "constructor" in L && !(typeof oh == "function" && oh instanceof oh && typeof ah == "function" && ah instanceof ah) && (In = !1);
|
|
41721
41721
|
}
|
|
41722
41722
|
return rt.delete(C), rt.delete(L), In;
|
|
41723
41723
|
}
|
|
@@ -41778,7 +41778,7 @@ var vd = {}, u9 = {
|
|
|
41778
41778
|
var L = C && C.constructor, q = typeof L == "function" && L.prototype || Re;
|
|
41779
41779
|
return C === q;
|
|
41780
41780
|
}
|
|
41781
|
-
function
|
|
41781
|
+
function eh(C) {
|
|
41782
41782
|
return We.call(C);
|
|
41783
41783
|
}
|
|
41784
41784
|
function jn(C) {
|
|
@@ -41794,23 +41794,23 @@ var vd = {}, u9 = {
|
|
|
41794
41794
|
}
|
|
41795
41795
|
return "";
|
|
41796
41796
|
}
|
|
41797
|
-
function
|
|
41797
|
+
function th(C, L) {
|
|
41798
41798
|
return C === L || C !== C && L !== L;
|
|
41799
41799
|
}
|
|
41800
|
-
var
|
|
41800
|
+
var nh = Kc(function() {
|
|
41801
41801
|
return arguments;
|
|
41802
|
-
}()) ?
|
|
41802
|
+
}()) ? Kc : function(C) {
|
|
41803
41803
|
return ji(C) && Ke.call(C, "callee") && !zt.call(C, "callee");
|
|
41804
41804
|
}, uo = Array.isArray;
|
|
41805
41805
|
function sl(C) {
|
|
41806
|
-
return C != null && ol(C.length) && !
|
|
41806
|
+
return C != null && ol(C.length) && !ih(C);
|
|
41807
41807
|
}
|
|
41808
41808
|
var fo = on || pf;
|
|
41809
41809
|
function df(C, L) {
|
|
41810
|
-
return
|
|
41810
|
+
return $c(C, L);
|
|
41811
41811
|
}
|
|
41812
|
-
function
|
|
41813
|
-
if (!
|
|
41812
|
+
function ih(C) {
|
|
41813
|
+
if (!rh(C))
|
|
41814
41814
|
return !1;
|
|
41815
41815
|
var L = Es(C);
|
|
41816
41816
|
return L == f || L == m || L == c || L == w;
|
|
@@ -41818,14 +41818,14 @@ var vd = {}, u9 = {
|
|
|
41818
41818
|
function ol(C) {
|
|
41819
41819
|
return typeof C == "number" && C > -1 && C % 1 == 0 && C <= o;
|
|
41820
41820
|
}
|
|
41821
|
-
function
|
|
41821
|
+
function rh(C) {
|
|
41822
41822
|
var L = typeof C;
|
|
41823
41823
|
return C != null && (L == "object" || L == "function");
|
|
41824
41824
|
}
|
|
41825
41825
|
function ji(C) {
|
|
41826
41826
|
return C != null && typeof C == "object";
|
|
41827
41827
|
}
|
|
41828
|
-
var
|
|
41828
|
+
var sh = mt ? Ce(mt) : nf;
|
|
41829
41829
|
function al(C) {
|
|
41830
41830
|
return sl(C) ? $d(C) : rf(C);
|
|
41831
41831
|
}
|
|
@@ -41880,7 +41880,7 @@ const d9 = vd, f9 = (e, n) => d9(e, n), p9 = (e) => Object.keys(e || {}), m9 = (
|
|
|
41880
41880
|
};
|
|
41881
41881
|
};
|
|
41882
41882
|
function y9(e, n) {
|
|
41883
|
-
const t =
|
|
41883
|
+
const t = su(e, "data", {}), i = su(e, "watch", {}), r = su(e, "methods", {}), s = su(n, "onChange", () => {
|
|
41884
41884
|
}), { subscribe: o, notify: a, subscribers: l } = g9(), { targetWatcher: c, getTarget: h } = v9();
|
|
41885
41885
|
let u;
|
|
41886
41886
|
const d = {}, f = () => ({
|
|
@@ -44361,7 +44361,7 @@ function eN(e) {
|
|
|
44361
44361
|
r,
|
|
44362
44362
|
"transition-delay",
|
|
44363
44363
|
/*unfolded*/
|
|
44364
|
-
e[4] ?
|
|
44364
|
+
e[4] ? ou + "ms" : au + JA - qA - 40 + "ms"
|
|
44365
44365
|
), _(h, "class", "text svelte-sezqcq"), _(c, "class", "title svelte-sezqcq"), _(l, "class", "title-wrapper svelte-sezqcq"), _(o, "class", "content svelte-sezqcq"), W(o, "max-width", Ji(
|
|
44366
44366
|
/*maxWidth*/
|
|
44367
44367
|
e[9]
|
|
@@ -44369,7 +44369,7 @@ function eN(e) {
|
|
|
44369
44369
|
o,
|
|
44370
44370
|
"transition-delay",
|
|
44371
44371
|
/*unfolded*/
|
|
44372
|
-
e[4] ?
|
|
44372
|
+
e[4] ? ou + au + "ms" : "0ms"
|
|
44373
44373
|
), _(n, "class", p = rn(`marketing ${/*theme*/
|
|
44374
44374
|
e[6]}`) + " svelte-sezqcq"), Ee(
|
|
44375
44375
|
n,
|
|
@@ -44396,7 +44396,7 @@ function eN(e) {
|
|
|
44396
44396
|
r,
|
|
44397
44397
|
"transition-delay",
|
|
44398
44398
|
/*unfolded*/
|
|
44399
|
-
M[4] ?
|
|
44399
|
+
M[4] ? ou + "ms" : au + JA - qA - 40 + "ms"
|
|
44400
44400
|
), /*data*/
|
|
44401
44401
|
M[3].headerPictureUrl ? y ? y.p(M, P) : (y = HA(M), y.c(), y.m(o, a)) : y && (y.d(1), y = null), (!g || P & /*data*/
|
|
44402
44402
|
8) && u !== (u = /*data*/
|
|
@@ -44409,7 +44409,7 @@ function eN(e) {
|
|
|
44409
44409
|
o,
|
|
44410
44410
|
"transition-delay",
|
|
44411
44411
|
/*unfolded*/
|
|
44412
|
-
M[4] ?
|
|
44412
|
+
M[4] ? ou + au + "ms" : "0ms"
|
|
44413
44413
|
), (!g || P & /*theme*/
|
|
44414
44414
|
64 && p !== (p = rn(`marketing ${/*theme*/
|
|
44415
44415
|
M[6]}`) + " svelte-sezqcq")) && _(n, "class", p), (!g || P & /*theme, unfolded*/
|
|
@@ -44437,7 +44437,7 @@ function eN(e) {
|
|
|
44437
44437
|
}
|
|
44438
44438
|
};
|
|
44439
44439
|
}
|
|
44440
|
-
const tv = 40,
|
|
44440
|
+
const tv = 40, ou = 400, qA = 500, au = 180, JA = 500;
|
|
44441
44441
|
function tN(e, n, t) {
|
|
44442
44442
|
let i, r, s, o, a, l, c, h, { tag: u } = n, d, f = (() => {
|
|
44443
44443
|
var g;
|
|
@@ -46629,9 +46629,9 @@ class kM extends E.BufferGeometry {
|
|
|
46629
46629
|
}
|
|
46630
46630
|
const s8 = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1;
|
|
46631
46631
|
navigator.userAgent.toLowerCase().indexOf("android");
|
|
46632
|
-
const
|
|
46632
|
+
const gu = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, o8 = s8 && gu;
|
|
46633
46633
|
function a8(e, n) {
|
|
46634
|
-
let t = !
|
|
46634
|
+
let t = !gu;
|
|
46635
46635
|
const i = n != null ? n : document.createElement("video");
|
|
46636
46636
|
i.preload = "metadata", i.crossOrigin = "anonymous", i.muted = !0, i.loop = !0, i.playsInline = !0, i.autoplay = !0;
|
|
46637
46637
|
const r = new E.VideoTexture(i);
|
|
@@ -46639,9 +46639,9 @@ function a8(e, n) {
|
|
|
46639
46639
|
const s = () => {
|
|
46640
46640
|
r.metadataLoaded || (r.dispatchEvent({ type: "videoLoaded" }), r.metadataLoaded = !0);
|
|
46641
46641
|
};
|
|
46642
|
-
if (
|
|
46642
|
+
if (gu || (i.onloadedmetadata = () => {
|
|
46643
46643
|
s();
|
|
46644
|
-
}),
|
|
46644
|
+
}), gu) {
|
|
46645
46645
|
const o = () => {
|
|
46646
46646
|
if (!t) {
|
|
46647
46647
|
if (!i.paused) {
|
|
@@ -46744,7 +46744,7 @@ class OM extends RM {
|
|
|
46744
46744
|
const s = (a = r == null ? void 0 : r.resolveZFighting) != null ? a : !0;
|
|
46745
46745
|
let o = i;
|
|
46746
46746
|
if (s) {
|
|
46747
|
-
const l =
|
|
46747
|
+
const l = Qc(i, 5e-4);
|
|
46748
46748
|
o = i.map((c) => c.clone().add(l));
|
|
46749
46749
|
}
|
|
46750
46750
|
Ux(t).then(({ texture: l, transparent: c }) => {
|
|
@@ -46893,7 +46893,7 @@ class zM extends RM {
|
|
|
46893
46893
|
},
|
|
46894
46894
|
{ noEmitWhenHide: !0 }
|
|
46895
46895
|
);
|
|
46896
|
-
const d =
|
|
46896
|
+
const d = Qc(h, 5e-4);
|
|
46897
46897
|
return u.position.add(d), u;
|
|
46898
46898
|
}))();
|
|
46899
46899
|
return this.children.includes(this.buttonMesh) || (this.add(t), this.buttonMesh = t), t;
|
|
@@ -47006,7 +47006,7 @@ function f8(e, n) {
|
|
|
47006
47006
|
return s;
|
|
47007
47007
|
return 0;
|
|
47008
47008
|
}
|
|
47009
|
-
class
|
|
47009
|
+
class Oc {
|
|
47010
47010
|
constructor() {
|
|
47011
47011
|
/**
|
|
47012
47012
|
* @description 射线碰撞检测的距离缓存
|
|
@@ -47031,12 +47031,12 @@ class zc {
|
|
|
47031
47031
|
].join(",") : void 0;
|
|
47032
47032
|
}
|
|
47033
47033
|
getVisible(n, t, i = 1) {
|
|
47034
|
-
const r =
|
|
47034
|
+
const r = Oc.generateCameraTagKey(t, n, i);
|
|
47035
47035
|
if (r)
|
|
47036
47036
|
return this.cache_visible.get(r);
|
|
47037
47037
|
}
|
|
47038
47038
|
setVisible(n, t, i, r = 1) {
|
|
47039
|
-
const s =
|
|
47039
|
+
const s = Oc.generateCameraTagKey(t, n, r);
|
|
47040
47040
|
s && this.cache_visible.set(s, i);
|
|
47041
47041
|
}
|
|
47042
47042
|
}
|
|
@@ -47089,7 +47089,7 @@ class nv {
|
|
|
47089
47089
|
})(), this.matrix = t.matrix ? (() => {
|
|
47090
47090
|
const d = new E.Matrix4().fromArray(t.matrix);
|
|
47091
47091
|
return d.premultiply(n.workUtil.transform), d.elements;
|
|
47092
|
-
})() : t.matrix, this.initialConfig = s, this.computedConfig = o, this.stickType = i, this.config = t.config, this.fiveState = t.fiveState, this.normal = t.normal, this.cache = new
|
|
47092
|
+
})() : t.matrix, this.initialConfig = s, this.computedConfig = o, this.stickType = i, this.config = t.config, this.fiveState = t.fiveState, this.normal = t.normal, this.cache = new Oc(), this.hooks = new En(), Object.keys(t).forEach((d) => {
|
|
47093
47093
|
this[d] === void 0 && t[d] !== void 0 && (this[d] = t[d]);
|
|
47094
47094
|
});
|
|
47095
47095
|
}
|
|
@@ -47142,7 +47142,7 @@ class nv {
|
|
|
47142
47142
|
mode: "Panorama",
|
|
47143
47143
|
workCode: this.workUtil.workCode,
|
|
47144
47144
|
panoIndex: s
|
|
47145
|
-
},
|
|
47145
|
+
}, Uc(a))), yield this.five.ready();
|
|
47146
47146
|
} else
|
|
47147
47147
|
i === "Mapview" && (yield ax(this.five, this.centerPosition, n == null ? void 0 : n.pointConfig));
|
|
47148
47148
|
});
|
|
@@ -47374,7 +47374,7 @@ class nv {
|
|
|
47374
47374
|
}
|
|
47375
47375
|
if (l.visibleDistance !== void 0 && (s.push("visibleDistance"), l.visibleDistance !== "unLimited")) {
|
|
47376
47376
|
const m = this.getDistance(t, 1);
|
|
47377
|
-
if (
|
|
47377
|
+
if (iu(m, l.visibleDistance) === !1)
|
|
47378
47378
|
return {
|
|
47379
47379
|
value: !1,
|
|
47380
47380
|
checkedList: s,
|
|
@@ -47508,7 +47508,7 @@ class nv {
|
|
|
47508
47508
|
return !1;
|
|
47509
47509
|
if (t.keep === "unfolded")
|
|
47510
47510
|
return !0;
|
|
47511
|
-
if (t.unfoldDistance &&
|
|
47511
|
+
if (t.unfoldDistance && iu(this.getDistance({ panoIndex: n }), t.unfoldDistance) === !1)
|
|
47512
47512
|
return !1;
|
|
47513
47513
|
}
|
|
47514
47514
|
}
|
|
@@ -47528,7 +47528,7 @@ class nv {
|
|
|
47528
47528
|
return;
|
|
47529
47529
|
if (n.autoUnfold.strategy === "ScreenPostion") {
|
|
47530
47530
|
const i = this.computeTagProject();
|
|
47531
|
-
if (i &&
|
|
47531
|
+
if (i && iu(i.x, n.autoUnfold.autoUnfoldProjectX) === !1)
|
|
47532
47532
|
return !1;
|
|
47533
47533
|
}
|
|
47534
47534
|
if (n.autoUnfold.strategy === "MinimumDistance") {
|
|
@@ -47543,7 +47543,7 @@ class nv {
|
|
|
47543
47543
|
return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((l = a.autoUnfold) == null ? void 0 : l.enable) === !1 || ((c = a.autoUnfold) == null ? void 0 : c.strategy) !== "MinimumDistance");
|
|
47544
47544
|
}).map((a) => Me(R({}, a), { distance: a.tag.getDistance() })).filter(({ distance: a, tagConfig: l }) => {
|
|
47545
47545
|
const c = l.autoUnfold.distance;
|
|
47546
|
-
return !(c &&
|
|
47546
|
+
return !(c && iu(a, c) === !1);
|
|
47547
47547
|
}).sort((a, l) => a.distance - l.distance).findIndex((a) => a.id === this.id);
|
|
47548
47548
|
if (s === -1 || s <= ((t = n.autoUnfold.maxNumber) != null ? t : 1) - 1 === !1)
|
|
47549
47549
|
return !1;
|
|
@@ -48395,7 +48395,7 @@ class I8 extends xs {
|
|
|
48395
48395
|
constructor(t) {
|
|
48396
48396
|
super(t);
|
|
48397
48397
|
v(this, "tags", []);
|
|
48398
|
-
v(this, "cache", new
|
|
48398
|
+
v(this, "cache", new Oc());
|
|
48399
48399
|
v(this, "config", _8);
|
|
48400
48400
|
v(this, "renderQueue", /* @__PURE__ */ new Map());
|
|
48401
48401
|
/** 插件参数 */
|
|
@@ -49670,7 +49670,7 @@ class Wm extends S8 {
|
|
|
49670
49670
|
i.position.copy(r.position), i.quaternion.copy(r.quaternion);
|
|
49671
49671
|
const s = this.five.camera.position;
|
|
49672
49672
|
i.lookAt(s.clone().setY(i.position.y));
|
|
49673
|
-
const o = r.quaternion.clone(), a = i.quaternion.clone(), l =
|
|
49673
|
+
const o = r.quaternion.clone(), a = i.quaternion.clone(), l = Dc();
|
|
49674
49674
|
l.onUpdate(({ progress: h }) => {
|
|
49675
49675
|
r.quaternion.copy(o.clone().slerp(a, h));
|
|
49676
49676
|
}), l.play();
|
|
@@ -49711,7 +49711,7 @@ class Wm extends S8 {
|
|
|
49711
49711
|
this.TagContainerSvelte = new J8({
|
|
49712
49712
|
target: this.container,
|
|
49713
49713
|
props: Me(R({}, a), { state: Me(R({}, this.state), { enabled: !1 }) })
|
|
49714
|
-
}),
|
|
49714
|
+
}), Wc(() => {
|
|
49715
49715
|
var l;
|
|
49716
49716
|
(l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
|
|
49717
49717
|
});
|
|
@@ -49983,12 +49983,12 @@ class Wm extends S8 {
|
|
|
49983
49983
|
this.state.enabled && (this.filterPointTag.forEach((c) => c.updateScreenPosition({ force: !0 })), this.temporaryState.visible = !0, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
|
|
49984
49984
|
}, r = () => {
|
|
49985
49985
|
this.state.enabled && (this.temporaryState.visible = !1, this.addRenderQueue({ type: "TagContainerSvelte", keys: ["temporaryState"] }));
|
|
49986
|
-
}, { observe: s, unobserve: o } =
|
|
49986
|
+
}, { observe: s, unobserve: o } = bu(
|
|
49987
49987
|
Kb(() => {
|
|
49988
49988
|
this.store.resizeObserverDisposer && r();
|
|
49989
49989
|
}, 500),
|
|
49990
49990
|
t
|
|
49991
|
-
), { observe: a, unobserve: l } =
|
|
49991
|
+
), { observe: a, unobserve: l } = bu(
|
|
49992
49992
|
PO(() => i(), 400),
|
|
49993
49993
|
t
|
|
49994
49994
|
);
|
|
@@ -50924,7 +50924,7 @@ class GM extends xs {
|
|
|
50924
50924
|
}
|
|
50925
50925
|
function gp(e, n, t) {
|
|
50926
50926
|
var l, c, h;
|
|
50927
|
-
const i = new E.Vector3().fromArray([(l = t.x) != null ? l : 0, (c = t.y) != null ? c : 0, (h = t.z) != null ? h : 0]), r = e.getPointAt(n).clone().add(i), s = e.getTangentAt(n), { longitude: o, latitude: a } =
|
|
50927
|
+
const i = new E.Vector3().fromArray([(l = t.x) != null ? l : 0, (c = t.y) != null ? c : 0, (h = t.z) != null ? h : 0]), r = e.getPointAt(n).clone().add(i), s = e.getTangentAt(n), { longitude: o, latitude: a } = Uc(s);
|
|
50928
50928
|
return { offset: r.clone(), longitude: o, latitude: a, distance: 0 };
|
|
50929
50929
|
}
|
|
50930
50930
|
let HM = class extends GM {
|
|
@@ -51179,7 +51179,7 @@ class iv extends GM {
|
|
|
51179
51179
|
if (!f || !d || ((p = this.workUtil.getObserver(l)) == null ? void 0 : p.floorIndex) !== ((g = this.workUtil.getObserver(u)) == null ? void 0 : g.floorIndex))
|
|
51180
51180
|
return;
|
|
51181
51181
|
const m = new E.Vector3().subVectors(f, d);
|
|
51182
|
-
return
|
|
51182
|
+
return Uc(m.normalize());
|
|
51183
51183
|
})();
|
|
51184
51184
|
i.moveType === void 0 || i.moveType === "justMove" ? r.push({
|
|
51185
51185
|
moveIndex: c,
|
|
@@ -51716,7 +51716,7 @@ function WM(e, n, t) {
|
|
|
51716
51716
|
}
|
|
51717
51717
|
e.quaternion.copy(n);
|
|
51718
51718
|
}
|
|
51719
|
-
class
|
|
51719
|
+
class Yc extends ti {
|
|
51720
51720
|
constructor(t, i) {
|
|
51721
51721
|
var r, s;
|
|
51722
51722
|
super();
|
|
@@ -51773,15 +51773,15 @@ class Xc extends ti {
|
|
|
51773
51773
|
this.removeFromParent();
|
|
51774
51774
|
}
|
|
51775
51775
|
}
|
|
51776
|
-
class pF extends
|
|
51776
|
+
class pF extends Yc {
|
|
51777
51777
|
}
|
|
51778
|
-
class mF extends
|
|
51778
|
+
class mF extends Yc {
|
|
51779
51779
|
}
|
|
51780
|
-
class gF extends
|
|
51780
|
+
class gF extends Yc {
|
|
51781
51781
|
}
|
|
51782
|
-
class vF extends
|
|
51782
|
+
class vF extends Yc {
|
|
51783
51783
|
}
|
|
51784
|
-
class yF extends
|
|
51784
|
+
class yF extends Yc {
|
|
51785
51785
|
}
|
|
51786
51786
|
class bF extends E.Group {
|
|
51787
51787
|
constructor(t) {
|
|
@@ -52115,7 +52115,7 @@ class TF extends yF {
|
|
|
52115
52115
|
v(this, "cornerPositions", []);
|
|
52116
52116
|
v(this, "css3DInstance");
|
|
52117
52117
|
v(this, "plane");
|
|
52118
|
-
v(this, "css3DRenderer", new
|
|
52118
|
+
v(this, "css3DRenderer", new Lc());
|
|
52119
52119
|
v(this, "camera");
|
|
52120
52120
|
v(this, "scene");
|
|
52121
52121
|
v(this, "container");
|
|
@@ -52483,7 +52483,7 @@ Rt.prototype._onTouchEvent = function(e, n) {
|
|
|
52483
52483
|
this._onEvent(e, i, r, n);
|
|
52484
52484
|
}
|
|
52485
52485
|
};
|
|
52486
|
-
class
|
|
52486
|
+
class Xc {
|
|
52487
52487
|
constructor(n, t) {
|
|
52488
52488
|
v(this, "originObject3D");
|
|
52489
52489
|
v(this, "hooks");
|
|
@@ -52706,7 +52706,7 @@ function ro(e) {
|
|
|
52706
52706
|
return new E.Vector3().lerpVectors(t.start, t.end, f);
|
|
52707
52707
|
}
|
|
52708
52708
|
}
|
|
52709
|
-
class kF extends
|
|
52709
|
+
class kF extends Xc {
|
|
52710
52710
|
constructor(...t) {
|
|
52711
52711
|
super(...t);
|
|
52712
52712
|
v(this, "name", "MoveController");
|
|
@@ -52981,7 +52981,7 @@ function Ap(e) {
|
|
|
52981
52981
|
return e * Math.PI / 180;
|
|
52982
52982
|
}
|
|
52983
52983
|
const wp = new E.Quaternion();
|
|
52984
|
-
class VF extends
|
|
52984
|
+
class VF extends Xc {
|
|
52985
52985
|
constructor(...t) {
|
|
52986
52986
|
var c, h, u;
|
|
52987
52987
|
super(...t);
|
|
@@ -53117,7 +53117,7 @@ class VF extends Zc {
|
|
|
53117
53117
|
i.setLeftTop(l, c);
|
|
53118
53118
|
}
|
|
53119
53119
|
}
|
|
53120
|
-
class GF extends
|
|
53120
|
+
class GF extends Xc {
|
|
53121
53121
|
constructor(...t) {
|
|
53122
53122
|
super(...t);
|
|
53123
53123
|
v(this, "startInfo");
|
|
@@ -53237,7 +53237,7 @@ class HF extends GF {
|
|
|
53237
53237
|
});
|
|
53238
53238
|
}
|
|
53239
53239
|
}
|
|
53240
|
-
class jF extends
|
|
53240
|
+
class jF extends Xc {
|
|
53241
53241
|
constructor(...t) {
|
|
53242
53242
|
super(...t);
|
|
53243
53243
|
v(this, "name", "BoundingBoxController");
|
|
@@ -53276,7 +53276,7 @@ function WF() {
|
|
|
53276
53276
|
}), i = new E.Mesh(n, t);
|
|
53277
53277
|
return i.renderOrder = 10, i;
|
|
53278
53278
|
}
|
|
53279
|
-
class QF extends
|
|
53279
|
+
class QF extends Xc {
|
|
53280
53280
|
constructor(...t) {
|
|
53281
53281
|
super(...t);
|
|
53282
53282
|
v(this, "name", "ScaleController");
|
|
@@ -53350,7 +53350,7 @@ class QM extends xs {
|
|
|
53350
53350
|
v(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
53351
53351
|
v(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
53352
53352
|
v(this, "css3DRender");
|
|
53353
|
-
this.five = t, this.css3DRender = new
|
|
53353
|
+
this.five = t, this.css3DRender = new Lc(this.five.scene), console.warn("Object3DHelper: 使用此插件,需要在初始化five时,设置five参数: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${Xm.toUpperCase()}_DEBUG__`]: this });
|
|
53354
53354
|
}
|
|
53355
53355
|
/**
|
|
53356
53356
|
* @description Show guide line
|
|
@@ -53683,7 +53683,7 @@ class M1 {
|
|
|
53683
53683
|
const n = {
|
|
53684
53684
|
value: 0
|
|
53685
53685
|
};
|
|
53686
|
-
|
|
53686
|
+
vu({
|
|
53687
53687
|
targets: n,
|
|
53688
53688
|
value: 1,
|
|
53689
53689
|
duration: 300,
|
|
@@ -54928,7 +54928,7 @@ class wV {
|
|
|
54928
54928
|
transform: `translate(${this.tagTransform.left}px, ${this.tagTransform.top}px)`,
|
|
54929
54929
|
onClick: (i) => this.hooks.emit("tagClick", { target: this, nativeEvent: i })
|
|
54930
54930
|
}
|
|
54931
|
-
}), this.updateTag()), this.plugin.five.needsRender = !0, this.plugin.hooks.on("stateChange", this.onPluginStateChange), this.plugin.hooks.on("configChange", this.onPluginConfigChange), this.plugin.five.on("modeChange", this.updateVisible), this.plugin.five.on("modelShownFloorChange", this.updateVisible), this.plugin.five.on("cameraUpdate", this.onFiveCameraUpdate), this.resizeObserver =
|
|
54931
|
+
}), this.updateTag()), this.plugin.five.needsRender = !0, this.plugin.hooks.on("stateChange", this.onPluginStateChange), this.plugin.hooks.on("configChange", this.onPluginConfigChange), this.plugin.five.on("modeChange", this.updateVisible), this.plugin.five.on("modelShownFloorChange", this.updateVisible), this.plugin.five.on("cameraUpdate", this.onFiveCameraUpdate), this.resizeObserver = bu(this.onContainerResize, t), this.resizeObserver.observe();
|
|
54932
54932
|
}
|
|
54933
54933
|
/** 卸载标注 */
|
|
54934
54934
|
unmount() {
|
|
@@ -55325,7 +55325,7 @@ class EV extends xs {
|
|
|
55325
55325
|
this.mesh.visible = !1;
|
|
55326
55326
|
return;
|
|
55327
55327
|
}
|
|
55328
|
-
this.mesh.material.setValues({ opacity: 0 }), this.mesh.visible = !0, this.opacityAnimeTween =
|
|
55328
|
+
this.mesh.material.setValues({ opacity: 0 }), this.mesh.visible = !0, this.opacityAnimeTween = Dc(1e3).onUpdate(({ progress: r }) => {
|
|
55329
55329
|
var s;
|
|
55330
55330
|
(s = this.mesh) == null || s.material.setValues({ opacity: r }), this.five.needsRender = !0;
|
|
55331
55331
|
}).play();
|
|
@@ -55577,7 +55577,7 @@ function qM(e, n) {
|
|
|
55577
55577
|
}
|
|
55578
55578
|
const IV = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
|
|
55579
55579
|
let _1 = null;
|
|
55580
|
-
class
|
|
55580
|
+
class zc extends ti {
|
|
55581
55581
|
constructor(t) {
|
|
55582
55582
|
var d, f;
|
|
55583
55583
|
super();
|
|
@@ -55702,7 +55702,7 @@ class qm extends Oi {
|
|
|
55702
55702
|
const i = t.map(Ot).filter(bt);
|
|
55703
55703
|
this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), i.forEach((r) => {
|
|
55704
55704
|
var o;
|
|
55705
|
-
const s = new
|
|
55705
|
+
const s = new zc(Me(R({}, this.style), { color: (o = this._paramsStyle) == null ? void 0 : o.lineColor, tip: void 0 }));
|
|
55706
55706
|
s.position.copy(r), this.pointGroup.add(s);
|
|
55707
55707
|
}), this.updateEdgePointsVisibility(), this.needsRender = !0;
|
|
55708
55708
|
}
|
|
@@ -55832,7 +55832,7 @@ function TV(e, n) {
|
|
|
55832
55832
|
i.indexOf(t[s]) === -1 && (r = !1);
|
|
55833
55833
|
return r;
|
|
55834
55834
|
}
|
|
55835
|
-
const
|
|
55835
|
+
const Bc = {
|
|
55836
55836
|
backspace: 8,
|
|
55837
55837
|
"⌫": 8,
|
|
55838
55838
|
tab: 9,
|
|
@@ -55916,13 +55916,13 @@ const Nc = {
|
|
|
55916
55916
|
91: !1
|
|
55917
55917
|
}, $t = {};
|
|
55918
55918
|
for (let e = 1; e < 20; e++)
|
|
55919
|
-
|
|
55919
|
+
Bc["f".concat(e)] = 111 + e;
|
|
55920
55920
|
let Yt = [], Wl = null, eE = "all";
|
|
55921
|
-
const xr = /* @__PURE__ */ new Map(),
|
|
55921
|
+
const xr = /* @__PURE__ */ new Map(), Zc = (e) => Bc[e.toLowerCase()] || ar[e.toLowerCase()] || e.toUpperCase().charCodeAt(0), DV = (e) => Object.keys(Bc).find((n) => Bc[n] === e), LV = (e) => Object.keys(ar).find((n) => ar[n] === e);
|
|
55922
55922
|
function tE(e) {
|
|
55923
55923
|
eE = e || "all";
|
|
55924
55924
|
}
|
|
55925
|
-
function
|
|
55925
|
+
function Nc() {
|
|
55926
55926
|
return eE || "all";
|
|
55927
55927
|
}
|
|
55928
55928
|
function kV() {
|
|
@@ -55945,7 +55945,7 @@ function OV() {
|
|
|
55945
55945
|
scope: r,
|
|
55946
55946
|
shortcut: o,
|
|
55947
55947
|
mods: s,
|
|
55948
|
-
keys: i.split("+").map((a) =>
|
|
55948
|
+
keys: i.split("+").map((a) => Zc(a))
|
|
55949
55949
|
});
|
|
55950
55950
|
});
|
|
55951
55951
|
}), e;
|
|
@@ -55959,11 +55959,11 @@ function zV(e) {
|
|
|
55959
55959
|
return (n.isContentEditable || (r || t === "TEXTAREA" || t === "SELECT") && !n.readOnly) && (i = !1), i;
|
|
55960
55960
|
}
|
|
55961
55961
|
function BV(e) {
|
|
55962
|
-
return typeof e == "string" && (e =
|
|
55962
|
+
return typeof e == "string" && (e = Zc(e)), Yt.indexOf(e) !== -1;
|
|
55963
55963
|
}
|
|
55964
55964
|
function NV(e, n) {
|
|
55965
55965
|
let t, i;
|
|
55966
|
-
e || (e =
|
|
55966
|
+
e || (e = Nc());
|
|
55967
55967
|
for (const r in $t)
|
|
55968
55968
|
if (Object.prototype.hasOwnProperty.call($t, r))
|
|
55969
55969
|
for (t = $t[r], i = 0; i < t.length; )
|
|
@@ -55973,7 +55973,7 @@ function NV(e, n) {
|
|
|
55973
55973
|
} = o;
|
|
55974
55974
|
return av(a);
|
|
55975
55975
|
}) : i++;
|
|
55976
|
-
|
|
55976
|
+
Nc() === e && tE(n || "all");
|
|
55977
55977
|
}
|
|
55978
55978
|
function FV(e) {
|
|
55979
55979
|
let n = e.keyCode || e.which || e.charCode;
|
|
@@ -55987,19 +55987,19 @@ function FV(e) {
|
|
|
55987
55987
|
function nE(e) {
|
|
55988
55988
|
if (typeof e == "undefined")
|
|
55989
55989
|
Object.keys($t).forEach((r) => {
|
|
55990
|
-
Array.isArray($t[r]) && $t[r].forEach((s) =>
|
|
55990
|
+
Array.isArray($t[r]) && $t[r].forEach((s) => lu(s)), delete $t[r];
|
|
55991
55991
|
}), av(null);
|
|
55992
55992
|
else if (Array.isArray(e))
|
|
55993
55993
|
e.forEach((r) => {
|
|
55994
|
-
r.key &&
|
|
55994
|
+
r.key && lu(r);
|
|
55995
55995
|
});
|
|
55996
55996
|
else if (typeof e == "object")
|
|
55997
|
-
e.key &&
|
|
55997
|
+
e.key && lu(e);
|
|
55998
55998
|
else if (typeof e == "string") {
|
|
55999
55999
|
for (var n = arguments.length, t = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
|
|
56000
56000
|
t[i - 1] = arguments[i];
|
|
56001
56001
|
let [r, s] = t;
|
|
56002
|
-
typeof r == "function" && (s = r, r = ""),
|
|
56002
|
+
typeof r == "function" && (s = r, r = ""), lu({
|
|
56003
56003
|
key: e,
|
|
56004
56004
|
scope: r,
|
|
56005
56005
|
method: s,
|
|
@@ -56007,7 +56007,7 @@ function nE(e) {
|
|
|
56007
56007
|
});
|
|
56008
56008
|
}
|
|
56009
56009
|
}
|
|
56010
|
-
const
|
|
56010
|
+
const lu = (e) => {
|
|
56011
56011
|
let {
|
|
56012
56012
|
key: n,
|
|
56013
56013
|
scope: t,
|
|
@@ -56015,10 +56015,10 @@ const cu = (e) => {
|
|
|
56015
56015
|
splitKey: r = "+"
|
|
56016
56016
|
} = e;
|
|
56017
56017
|
$M(n).forEach((o) => {
|
|
56018
|
-
const a = o.split(r), l = a.length, c = a[l - 1], h = c === "*" ? "*" :
|
|
56018
|
+
const a = o.split(r), l = a.length, c = a[l - 1], h = c === "*" ? "*" : Zc(c);
|
|
56019
56019
|
if (!$t[h])
|
|
56020
56020
|
return;
|
|
56021
|
-
t || (t =
|
|
56021
|
+
t || (t = Nc());
|
|
56022
56022
|
const u = l > 1 ? KM(ar, a) : [], d = [];
|
|
56023
56023
|
$t[h] = $t[h].filter((f) => {
|
|
56024
56024
|
const p = (i ? f.method === i : !0) && f.scope === t && TV(f.mods, u);
|
|
@@ -56055,7 +56055,7 @@ function S1(e, n) {
|
|
|
56055
56055
|
for (const a in Tn)
|
|
56056
56056
|
Object.prototype.hasOwnProperty.call(Tn, a) && (Tn[a] = e[Jm[a]]);
|
|
56057
56057
|
e.getModifierState && !(e.altKey && !e.ctrlKey) && e.getModifierState("AltGraph") && (Yt.indexOf(17) === -1 && Yt.push(17), Yt.indexOf(18) === -1 && Yt.push(18), Tn[17] = !0, Tn[18] = !0);
|
|
56058
|
-
const r =
|
|
56058
|
+
const r = Nc();
|
|
56059
56059
|
if (t)
|
|
56060
56060
|
for (let a = 0; a < t.length; a++)
|
|
56061
56061
|
t[a].scope === r && (e.type === "keydown" && t[a].keydown || e.type === "keyup" && t[a].keyup) && I1(e, t[a], r, n);
|
|
@@ -56068,7 +56068,7 @@ function S1(e, n) {
|
|
|
56068
56068
|
splitKey: c
|
|
56069
56069
|
} = l, h = l.key.split(c), u = [];
|
|
56070
56070
|
for (let d = 0; d < h.length; d++)
|
|
56071
|
-
u.push(
|
|
56071
|
+
u.push(Zc(h[d]));
|
|
56072
56072
|
u.sort().join("") === Yt.sort().join("") && I1(e, l, r, n);
|
|
56073
56073
|
}
|
|
56074
56074
|
}
|
|
@@ -56077,7 +56077,7 @@ function ri(e, n, t) {
|
|
|
56077
56077
|
const i = $M(e);
|
|
56078
56078
|
let r = [], s = "all", o = document, a = 0, l = !1, c = !0, h = "+", u = !1, d = !1;
|
|
56079
56079
|
for (t === void 0 && typeof n == "function" && (t = n), Object.prototype.toString.call(n) === "[object Object]" && (n.scope && (s = n.scope), n.element && (o = n.element), n.keyup && (l = n.keyup), n.keydown !== void 0 && (c = n.keydown), n.capture !== void 0 && (u = n.capture), typeof n.splitKey == "string" && (h = n.splitKey), n.single === !0 && (d = !0)), typeof n == "string" && (s = n), d && nE(e, s); a < i.length; a++)
|
|
56080
|
-
e = i[a].split(h), r = [], e.length > 1 && (r = KM(ar, e)), e = e[e.length - 1], e = e === "*" ? "*" :
|
|
56080
|
+
e = i[a].split(h), r = [], e.length > 1 && (r = KM(ar, e)), e = e[e.length - 1], e = e === "*" ? "*" : Zc(e), e in $t || ($t[e] = []), $t[e].push({
|
|
56081
56081
|
keyup: l,
|
|
56082
56082
|
keydown: c,
|
|
56083
56083
|
scope: s,
|
|
@@ -56155,7 +56155,7 @@ function av(e) {
|
|
|
56155
56155
|
const _p = {
|
|
56156
56156
|
getPressedKeyString: RV,
|
|
56157
56157
|
setScope: tE,
|
|
56158
|
-
getScope:
|
|
56158
|
+
getScope: Nc,
|
|
56159
56159
|
deleteScope: NV,
|
|
56160
56160
|
getPressedKeyCodes: kV,
|
|
56161
56161
|
getAllKeyCodes: OV,
|
|
@@ -56163,7 +56163,7 @@ const _p = {
|
|
|
56163
56163
|
filter: zV,
|
|
56164
56164
|
trigger: VV,
|
|
56165
56165
|
unbind: nE,
|
|
56166
|
-
keyMap:
|
|
56166
|
+
keyMap: Bc,
|
|
56167
56167
|
modifier: ar,
|
|
56168
56168
|
modifierMap: Jm
|
|
56169
56169
|
};
|
|
@@ -56302,7 +56302,7 @@ class lv extends ti {
|
|
|
56302
56302
|
this.originObject.remove(this);
|
|
56303
56303
|
}
|
|
56304
56304
|
}
|
|
56305
|
-
class
|
|
56305
|
+
class qc extends lv {
|
|
56306
56306
|
constructor(t, i) {
|
|
56307
56307
|
super(t);
|
|
56308
56308
|
v(this, "objectHelperConfig");
|
|
@@ -56330,14 +56330,14 @@ class cv extends lv {
|
|
|
56330
56330
|
});
|
|
56331
56331
|
}
|
|
56332
56332
|
get pointMeshes() {
|
|
56333
|
-
return this.children.filter((t) => t instanceof
|
|
56333
|
+
return this.children.filter((t) => t instanceof zc);
|
|
56334
56334
|
}
|
|
56335
56335
|
get pointHandles() {
|
|
56336
56336
|
return this.children;
|
|
56337
56337
|
}
|
|
56338
56338
|
enable() {
|
|
56339
56339
|
super.enable(), this.points.filter(bt).forEach((t) => {
|
|
56340
|
-
const i = new
|
|
56340
|
+
const i = new zc();
|
|
56341
56341
|
i.visible = !1, i.position.copy(t), i.draggable = !0, hn.modules.fiveDomEvents.addEventListener(i, "drag", this.onDrag), hn.modules.fiveDomEvents.addEventListener(i, "dragstart", this.onDragstart), hn.modules.fiveDomEvents.addEventListener(i, "dragend", this.onDragend), this.add(i);
|
|
56342
56342
|
});
|
|
56343
56343
|
}
|
|
@@ -56351,7 +56351,7 @@ class GV extends cv {
|
|
|
56351
56351
|
v(this, "onDrag", (t) => {
|
|
56352
56352
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
56353
56353
|
return;
|
|
56354
|
-
const i =
|
|
56354
|
+
const i = jc(hn.modules.five, t.raycaster);
|
|
56355
56355
|
this.draggingPoints.forEach((r) => r.position.copy(i.point)), this.originObject.lineMesh.setPoints(this.pointMeshes.map((r) => r.position));
|
|
56356
56356
|
});
|
|
56357
56357
|
}
|
|
@@ -56365,7 +56365,7 @@ class HV extends cv {
|
|
|
56365
56365
|
v(this, "onDrag", (t) => {
|
|
56366
56366
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
56367
56367
|
return;
|
|
56368
|
-
const i =
|
|
56368
|
+
const i = jc(hn.modules.five, t.raycaster);
|
|
56369
56369
|
this.draggingPoints.forEach((r) => r.position.copy(i.point)), this.originObject.polyLineMesh.setPoints(this.pointMeshes.map((r) => r.position));
|
|
56370
56370
|
});
|
|
56371
56371
|
}
|
|
@@ -56481,7 +56481,7 @@ class UV extends lv {
|
|
|
56481
56481
|
super(t);
|
|
56482
56482
|
v(this, "onDrag", (t) => {
|
|
56483
56483
|
var r;
|
|
56484
|
-
const i =
|
|
56484
|
+
const i = jc(hn.modules.five, t.raycaster);
|
|
56485
56485
|
(r = this.originObject.pointMesh) == null || r.position.copy(i.point);
|
|
56486
56486
|
});
|
|
56487
56487
|
}
|
|
@@ -56497,7 +56497,7 @@ class L1 extends Nr {
|
|
|
56497
56497
|
super(t, i);
|
|
56498
56498
|
v(this, "type", "Point");
|
|
56499
56499
|
v(this, "pointMesh");
|
|
56500
|
-
this.editor = new UV(this), t && (this.pointMesh = new
|
|
56500
|
+
this.editor = new UV(this), t && (this.pointMesh = new zc(R(R({}, t.style), t)), this.add(this.pointMesh));
|
|
56501
56501
|
}
|
|
56502
56502
|
get data() {
|
|
56503
56503
|
return Me(R({}, this.baseData), {
|
|
@@ -56529,7 +56529,7 @@ class L1 extends Nr {
|
|
|
56529
56529
|
*/
|
|
56530
56530
|
create(t) {
|
|
56531
56531
|
return ee(this, null, function* () {
|
|
56532
|
-
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new
|
|
56532
|
+
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new zc(t)), yield WV(this.pointMesh, this.pointSelector);
|
|
56533
56533
|
});
|
|
56534
56534
|
}
|
|
56535
56535
|
}
|
|
@@ -56744,7 +56744,7 @@ class QV extends cv {
|
|
|
56744
56744
|
v(this, "onDrag", (t) => {
|
|
56745
56745
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
56746
56746
|
return;
|
|
56747
|
-
const i =
|
|
56747
|
+
const i = jc(hn.modules.five, t.raycaster), r = this.originObject.areaMesh.projectPoint(i.point);
|
|
56748
56748
|
this.draggingPoints.forEach((s) => s.position.copy(r)), this.originObject.areaMesh.setPoints(this.pointMeshes.map((s) => s.position));
|
|
56749
56749
|
});
|
|
56750
56750
|
}
|
|
@@ -56931,7 +56931,7 @@ class Ad extends ti {
|
|
|
56931
56931
|
});
|
|
56932
56932
|
}
|
|
56933
56933
|
}
|
|
56934
|
-
class YV extends
|
|
56934
|
+
class YV extends qc {
|
|
56935
56935
|
constructor(n) {
|
|
56936
56936
|
super(n, () => {
|
|
56937
56937
|
const t = () => {
|
|
@@ -57008,7 +57008,7 @@ function XV(e, n) {
|
|
|
57008
57008
|
yield iE(e.bottomPolygon, n).finished;
|
|
57009
57009
|
const i = new Oi();
|
|
57010
57010
|
i.name = "LineHelper", t.add(i);
|
|
57011
|
-
const r = e.bottomPolygon.points.at(-1), s =
|
|
57011
|
+
const r = e.bottomPolygon.points.at(-1), s = Qc(e.bottomPolygon.points).normalize(), o = r.clone().add(s.clone().multiplyScalar(10)), a = r.clone().sub(s.clone().multiplyScalar(10));
|
|
57012
57012
|
return i.setPoints([o, a]), n.enable(), new Promise((l, c) => {
|
|
57013
57013
|
const h = (m) => {
|
|
57014
57014
|
d(), l();
|
|
@@ -57029,7 +57029,7 @@ function XV(e, n) {
|
|
|
57029
57029
|
});
|
|
57030
57030
|
});
|
|
57031
57031
|
}
|
|
57032
|
-
class ZV extends
|
|
57032
|
+
class ZV extends qc {
|
|
57033
57033
|
constructor(n) {
|
|
57034
57034
|
super(n, () => ({ yAxis: n.rectangleMesh.up }));
|
|
57035
57035
|
}
|
|
@@ -57194,7 +57194,7 @@ function sE(e, n, t) {
|
|
|
57194
57194
|
n.on("select", p), n.on("intersectionUpdate", g), n.on("disable", b);
|
|
57195
57195
|
});
|
|
57196
57196
|
}
|
|
57197
|
-
class KV extends
|
|
57197
|
+
class KV extends qc {
|
|
57198
57198
|
constructor(n) {
|
|
57199
57199
|
super(n, () => ({ yAxis: n.circleMesh.normal }));
|
|
57200
57200
|
}
|
|
@@ -57387,7 +57387,7 @@ class N1 extends ti {
|
|
|
57387
57387
|
this.edgeMesh.position.copy(new E.Vector3().lerpVectors(i, t, 0.5)), this.edgeMesh.quaternion.copy(r);
|
|
57388
57388
|
}
|
|
57389
57389
|
}
|
|
57390
|
-
class e6 extends
|
|
57390
|
+
class e6 extends qc {
|
|
57391
57391
|
constructor(n) {
|
|
57392
57392
|
super(n, () => {
|
|
57393
57393
|
const t = () => {
|
|
@@ -57481,7 +57481,7 @@ function t6(e, n) {
|
|
|
57481
57481
|
});
|
|
57482
57482
|
});
|
|
57483
57483
|
}
|
|
57484
|
-
class n6 extends
|
|
57484
|
+
class n6 extends qc {
|
|
57485
57485
|
constructor(n) {
|
|
57486
57486
|
super(n, () => {
|
|
57487
57487
|
const t = () => {
|
|
@@ -57636,7 +57636,7 @@ function i6(e, n) {
|
|
|
57636
57636
|
i(new Error("No container"));
|
|
57637
57637
|
return;
|
|
57638
57638
|
}
|
|
57639
|
-
const s = new Oi(), o =
|
|
57639
|
+
const s = new Oi(), o = Qc(e.bottomPlane.points).normalize(), a = e.bottomPlane.builtPoints.at(-1), l = a.clone().add(o.clone().multiplyScalar(10)), c = a.clone().sub(o.clone().multiplyScalar(10));
|
|
57640
57640
|
s.setPoints([l, c]), r.add(s), n.enable();
|
|
57641
57641
|
const h = (m) => {
|
|
57642
57642
|
d(), t();
|
|
@@ -57950,11 +57950,11 @@ function o6(e, ...n) {
|
|
|
57950
57950
|
e.children.includes(t) || t && e.add(t);
|
|
57951
57951
|
});
|
|
57952
57952
|
}
|
|
57953
|
-
let
|
|
57954
|
-
const lE = (e) => ((!
|
|
57953
|
+
let cu;
|
|
57954
|
+
const lE = (e) => ((!cu || e !== cu.five) && (cu = {
|
|
57955
57955
|
instance: new Rd(e, { noEmitWhenHide: !0, noEmitWhenNotInScene: !0 }),
|
|
57956
57956
|
five: e
|
|
57957
|
-
}),
|
|
57957
|
+
}), cu.instance);
|
|
57958
57958
|
class cE extends En {
|
|
57959
57959
|
constructor(t) {
|
|
57960
57960
|
var r, s;
|
|
@@ -58275,7 +58275,7 @@ zE();
|
|
|
58275
58275
|
OE();
|
|
58276
58276
|
export {
|
|
58277
58277
|
GG as AreaMakerPlugin,
|
|
58278
|
-
|
|
58278
|
+
Lc as CSS3DRender,
|
|
58279
58279
|
zd as CSS3DRenderPlugin,
|
|
58280
58280
|
t5 as CameraMovementEffect,
|
|
58281
58281
|
eG as CameraMovementPlugin,
|