mxdraw 0.0.9 → 0.0.13
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/README.md +257 -13
- package/dist/lib/MxModule/McEdGetPointWorldDrawObjectClass/McEdGetPointWorldDrawObjectClass.js +1 -2
- package/dist/lib/MxModule/McEdGetPointWorldDrawObjectClass/McEdGetPointWorldDrawObjectClass.js.map +1 -1
- package/dist/lib/MxModule/MrxDbgUiPrBaseReturn/MrxDbgUiPrBaseReturn.js.map +1 -1
- package/dist/lib/MxModule/MrxDbgUiPrPointClass/MrxDbgUiPrPointClass.js +1 -2
- package/dist/lib/MxModule/MrxDbgUiPrPointClass/MrxDbgUiPrPointClass.js.map +1 -1
- package/dist/lib/MxModule/MxDrawObject/MxDrawObject.js +5 -1
- package/dist/lib/MxModule/MxDrawObject/MxDrawObject.js.map +1 -1
- package/dist/lib/MxModule/MxFun/MxFun.js +26 -1
- package/dist/lib/MxModule/MxFun/MxFun.js.map +1 -1
- package/dist/lib/MxModule/MxThreeJS/MxThreeJS.js.map +1 -1
- package/dist/lib/MxModule/MxThreeJS/MxThreeJS.mixin.js +7 -6
- package/dist/lib/MxModule/MxThreeJS/MxThreeJS.mixin.js.map +1 -1
- package/dist/lib/MxModule/MxThreeJS/SVGLoader.js +1863 -0
- package/dist/lib/MxModule/MxThreeJS/SVGLoader.js.map +1 -0
- package/dist/lib/MxModule/store/store.js.map +1 -1
- package/dist/lib/MxModule/useCanvasResizeListener/useCanvasResizeListener.js.map +1 -1
- package/dist/lib/MxModule/useCoreCode/mxfun.es5.js +171 -163
- package/dist/lib/MxModule/useCoreCode/mxfun.es5.js.map +1 -1
- package/dist/lib/MxModule/useCoreCode/useCoreCode.js +0 -1
- package/dist/lib/MxModule/useCoreCode/useCoreCode.js.map +1 -1
- package/dist/lib/tools/three/index.js +0 -5
- package/dist/lib/tools/three/index.js.map +1 -1
- package/dist/mxdraw.es5.js +2 -2
- package/dist/mxdraw.es5.js.map +1 -1
- package/dist/mxdraw.umd.js +2 -2
- package/dist/mxdraw.umd.js.map +1 -1
- package/dist/types/MxModule/MrxDbgUiPrPointClass/MrxDbgUiPrPointClass.d.ts +2 -0
- package/dist/types/MxModule/MxDrawObject/MxDrawObject.d.ts +6 -1
- package/dist/types/MxModule/MxFun/MxFun.d.ts +21 -0
- package/dist/types/MxModule/MxThreeJS/MxThreeJS.d.ts +1 -1
- package/dist/types/MxModule/MxThreeJS/SVGLoader.d.ts +22 -0
- package/dist/types/MxModule/store/store.d.ts +1 -0
- package/dist/types/MxModule/useCanvasResizeListener/useCanvasResizeListener.d.ts +1 -0
- package/package.json +5 -3
|
@@ -149,7 +149,7 @@ function mxfun() {
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
} while ((e = h[e & u]) > l && 0 != --r); return o <= t.lookahead ? o : t.lookahead; }
|
|
152
|
-
function
|
|
152
|
+
function U(t) { var e, n, i, r, a, o, s, l, c, u, h = t.w_size; do {
|
|
153
153
|
if (r = t.window_size - t.lookahead - t.strstart, t.strstart >= h + (h - C)) {
|
|
154
154
|
for (d.arraySet(t.window, t.window, h, h, 0), t.match_start -= h, t.strstart -= h, t.block_start -= h, e = n = t.hash_size; i = t.head[--e], t.head[e] = h <= i ? i - h : 0, --n;)
|
|
155
155
|
;
|
|
@@ -163,9 +163,9 @@ function mxfun() {
|
|
|
163
163
|
for (a = t.strstart - t.insert, t.ins_h = t.window[a], t.ins_h = (t.ins_h << t.hash_shift ^ t.window[a + 1]) & t.hash_mask; t.insert && (t.ins_h = (t.ins_h << t.hash_shift ^ t.window[a + M - 1]) & t.hash_mask, t.prev[a & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = a, a++, t.insert--, !(t.lookahead + t.insert < M));)
|
|
164
164
|
;
|
|
165
165
|
} while (t.lookahead < C && 0 !== t.strm.avail_in); }
|
|
166
|
-
function
|
|
166
|
+
function V(t, e) { for (var n, i;;) {
|
|
167
167
|
if (t.lookahead < C) {
|
|
168
|
-
if (
|
|
168
|
+
if (U(t), t.lookahead < C && e === u)
|
|
169
169
|
return A;
|
|
170
170
|
if (0 === t.lookahead)
|
|
171
171
|
break;
|
|
@@ -185,7 +185,7 @@ function mxfun() {
|
|
|
185
185
|
} return t.insert = t.strstart < M - 1 ? t.strstart : M - 1, e === h ? (N(t, !0), 0 === t.strm.avail_out ? L : O) : t.last_lit && (N(t, !1), 0 === t.strm.avail_out) ? A : D; }
|
|
186
186
|
function j(t, e) { for (var n, i, r;;) {
|
|
187
187
|
if (t.lookahead < C) {
|
|
188
|
-
if (
|
|
188
|
+
if (U(t), t.lookahead < C && e === u)
|
|
189
189
|
return A;
|
|
190
190
|
if (0 === t.lookahead)
|
|
191
191
|
break;
|
|
@@ -212,7 +212,7 @@ function mxfun() {
|
|
|
212
212
|
return I(t, g); 8 === i && (i = 9); var s = new H; return (t.state = s).strm = t, s.wrap = o, s.gzhead = null, s.w_bits = i, s.w_size = 1 << s.w_bits, s.w_mask = s.w_size - 1, s.hash_bits = r + 7, s.hash_size = 1 << s.hash_bits, s.hash_mask = s.hash_size - 1, s.hash_shift = ~~((s.hash_bits + M - 1) / M), s.window = new d.Buf8(2 * s.w_size), s.head = new d.Buf16(s.hash_size), s.prev = new d.Buf16(s.w_size), s.lit_bufsize = 1 << r + 6, s.pending_buf_size = 4 * s.lit_bufsize, s.pending_buf = new d.Buf8(s.pending_buf_size), s.d_buf = +s.lit_bufsize, s.l_buf = 3 * s.lit_bufsize, s.level = e, s.strategy = a, s.method = n, J(t); }
|
|
213
213
|
l = [new G(0, 0, 0, 0, function (t, e) { var n = 65535; for (n > t.pending_buf_size - 5 && (n = t.pending_buf_size - 5);;) {
|
|
214
214
|
if (t.lookahead <= 1) {
|
|
215
|
-
if (
|
|
215
|
+
if (U(t), 0 === t.lookahead && e === u)
|
|
216
216
|
return A;
|
|
217
217
|
if (0 === t.lookahead)
|
|
218
218
|
break;
|
|
@@ -223,7 +223,7 @@ function mxfun() {
|
|
|
223
223
|
return A;
|
|
224
224
|
if (t.strstart - t.block_start >= t.w_size - C && (N(t, !1), 0 === t.strm.avail_out))
|
|
225
225
|
return A;
|
|
226
|
-
} return t.insert = 0, e === h ? (N(t, !0), 0 === t.strm.avail_out ? L : O) : (t.strstart > t.block_start && (N(t, !1), t.strm.avail_out), A); }), new G(4, 4, 8, 4,
|
|
226
|
+
} return t.insert = 0, e === h ? (N(t, !0), 0 === t.strm.avail_out ? L : O) : (t.strstart > t.block_start && (N(t, !1), t.strm.avail_out), A); }), new G(4, 4, 8, 4, V), new G(4, 5, 16, 8, V), new G(4, 6, 32, 32, V), new G(4, 4, 16, 16, j), new G(8, 16, 32, 32, j), new G(8, 16, 128, 128, j), new G(8, 32, 128, 256, j), new G(32, 128, 258, 1024, j), new G(32, 258, 258, 4096, j)], n.deflateInit = function (t, e) { return q(t, e, x, 15, 8, 0); }, n.deflateInit2 = q, n.deflateReset = J, n.deflateResetKeep = W, n.deflateSetHeader = function (t, e) { return !t || !t.state || 2 !== t.state.wrap ? g : (t.state.gzhead = e, m); }, n.deflate = function (t, e) { var n, i, r, a; if (!t || !t.state || 5 < e || e < 0)
|
|
227
227
|
return t ? I(t, g) : g; if (i = t.state, !t.output || !t.input && 0 !== t.avail_in || 666 === i.status && e !== h)
|
|
228
228
|
return I(t, 0 === t.avail_out ? -5 : g); if (i.strm = t, n = i.last_flush, i.last_flush = e, i.status === T)
|
|
229
229
|
if (2 === i.wrap)
|
|
@@ -272,7 +272,7 @@ function mxfun() {
|
|
|
272
272
|
return I(t, -5); if (666 === i.status && 0 !== t.avail_in)
|
|
273
273
|
return I(t, -5); if (0 !== t.avail_in || 0 !== i.lookahead || e !== u && 666 !== i.status) {
|
|
274
274
|
var s = 2 === i.strategy ? function (t, e) { for (var n;;) {
|
|
275
|
-
if (0 === t.lookahead && (
|
|
275
|
+
if (0 === t.lookahead && (U(t), 0 === t.lookahead)) {
|
|
276
276
|
if (e === u)
|
|
277
277
|
return A;
|
|
278
278
|
break;
|
|
@@ -281,7 +281,7 @@ function mxfun() {
|
|
|
281
281
|
return A;
|
|
282
282
|
} return t.insert = 0, e === h ? (N(t, !0), 0 === t.strm.avail_out ? L : O) : t.last_lit && (N(t, !1), 0 === t.strm.avail_out) ? A : D; }(i, e) : 3 === i.strategy ? function (t, e) { for (var n, i, r, a, o = t.window;;) {
|
|
283
283
|
if (t.lookahead <= S) {
|
|
284
|
-
if (
|
|
284
|
+
if (U(t), t.lookahead <= S && e === u)
|
|
285
285
|
return A;
|
|
286
286
|
if (0 === t.lookahead)
|
|
287
287
|
break;
|
|
@@ -300,10 +300,10 @@ function mxfun() {
|
|
|
300
300
|
return i.last_flush = -1, m;
|
|
301
301
|
} return e !== h ? m : i.wrap <= 0 ? 1 : (2 === i.wrap ? (B(i, 255 & t.adler), B(i, t.adler >> 8 & 255), B(i, t.adler >> 16 & 255), B(i, t.adler >> 24 & 255), B(i, 255 & t.total_in), B(i, t.total_in >> 8 & 255), B(i, t.total_in >> 16 & 255), B(i, t.total_in >> 24 & 255)) : (F(i, t.adler >>> 16), F(i, 65535 & t.adler)), k(t), 0 < i.wrap && (i.wrap = -i.wrap), 0 !== i.pending ? m : 1); }, n.deflateEnd = function (t) { var e; return t && t.state ? (e = t.state.status) !== T && 69 !== e && 73 !== e && 91 !== e && 103 !== e && e !== E && 666 !== e ? I(t, g) : (t.state = null, e === E ? I(t, -3) : m) : g; }, n.deflateSetDictionary = function (t, e) { var n, i, r, a, o, s, l, c, u = e.length; if (!t || !t.state)
|
|
302
302
|
return g; if (2 === (a = (n = t.state).wrap) || 1 === a && n.status !== T || n.lookahead)
|
|
303
|
-
return g; for (1 === a && (t.adler = p(t.adler, e, u, 0)), n.wrap = 0, u >= n.w_size && (0 === a && (R(n.head), n.strstart = 0, n.block_start = 0, n.insert = 0), c = new d.Buf8(n.w_size), d.arraySet(c, e, u - n.w_size, n.w_size, 0), e = c, u = n.w_size), o = t.avail_in, s = t.next_in, l = t.input, t.avail_in = u, t.next_in = 0, t.input = e,
|
|
303
|
+
return g; for (1 === a && (t.adler = p(t.adler, e, u, 0)), n.wrap = 0, u >= n.w_size && (0 === a && (R(n.head), n.strstart = 0, n.block_start = 0, n.insert = 0), c = new d.Buf8(n.w_size), d.arraySet(c, e, u - n.w_size, n.w_size, 0), e = c, u = n.w_size), o = t.avail_in, s = t.next_in, l = t.input, t.avail_in = u, t.next_in = 0, t.input = e, U(n); n.lookahead >= M;) {
|
|
304
304
|
for (i = n.strstart, r = n.lookahead - (M - 1); n.ins_h = (n.ins_h << n.hash_shift ^ n.window[i + M - 1]) & n.hash_mask, n.prev[i & n.w_mask] = n.head[n.ins_h], n.head[n.ins_h] = i, i++, --r;)
|
|
305
305
|
;
|
|
306
|
-
n.strstart = i, n.lookahead = M - 1,
|
|
306
|
+
n.strstart = i, n.lookahead = M - 1, U(n);
|
|
307
307
|
} return n.strstart += n.lookahead, n.block_start = n.strstart, n.insert = n.lookahead, n.lookahead = 0, n.match_length = n.prev_length = M - 1, n.match_available = 0, t.next_in = s, t.input = l, t.avail_in = o, n.wrap = a, m; }, n.deflateInfo = "pako deflate (from Nodeca project)";
|
|
308
308
|
}, { "../utils/common": 4, "./adler32": 6, "./crc32": 8, "./messages": 14, "./trees": 15 }], 10: [function (t, e, n) {
|
|
309
309
|
"use strict";
|
|
@@ -395,7 +395,7 @@ function mxfun() {
|
|
|
395
395
|
function l(t, e) { var n, i; return t && t.state ? (i = t.state, e < 0 ? (n = 0, e = -e) : (n = 1 + (e >> 4), e < 48 && (e &= 15)), e && (e < 8 || 15 < e) ? B : (null !== i.window && i.wbits !== e && (i.window = null), i.wrap = n, i.wbits = e, s(t))) : B; }
|
|
396
396
|
function c(t, e) { var n, i; return t ? (i = new a, (t.state = i).window = null, (n = l(t, e)) !== N && (t.state = null), n) : B; }
|
|
397
397
|
var u, h, d = !0;
|
|
398
|
-
function
|
|
398
|
+
function U(t) { if (d) {
|
|
399
399
|
var e;
|
|
400
400
|
for (u = new D.Buf32(512), h = new D.Buf32(32), e = 0; e < 144;)
|
|
401
401
|
t.lens[e++] = 8;
|
|
@@ -409,7 +409,7 @@ function mxfun() {
|
|
|
409
409
|
t.lens[e++] = 5;
|
|
410
410
|
P(k, t.lens, 0, 32, h, 0, t.work, { bits: 5 }), d = !1;
|
|
411
411
|
} t.lencode = u, t.lenbits = 9, t.distcode = h, t.distbits = 5; }
|
|
412
|
-
function
|
|
412
|
+
function V(t, e, n, i) { var r, a = t.state; return null === a.window && (a.wsize = 1 << a.wbits, a.wnext = 0, a.whave = 0, a.window = new D.Buf8(a.wsize)), i >= a.wsize ? (D.arraySet(a.window, e, n - a.wsize, a.wsize, 0), a.wnext = 0, a.whave = a.wsize) : (i < (r = a.wsize - a.wnext) && (r = i), D.arraySet(a.window, e, n - i, r, a.wnext), (i -= r) ? (D.arraySet(a.window, e, n - i, i, 0), a.wnext = i, a.whave = a.wsize) : (a.wnext += r, a.wnext === a.wsize && (a.wnext = 0), a.whave < a.wsize && (a.whave += r))), 0; }
|
|
413
413
|
n.inflateReset = s, n.inflateReset2 = l, n.inflateResetKeep = o, n.inflateInit = function (t) { return c(t, 15); }, n.inflateInit2 = c, n.inflate = function (t, e) { var n, i, r, a, o, s, l, c, u, h, d, p, f, m, g, v, y, x, _, w, b, M, S, C, T = 0, E = new D.Buf8(4), A = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; if (!t || !t.state || !t.output || !t.input && 0 !== t.avail_in)
|
|
414
414
|
return B; 12 === (n = t.state).mode && (n.mode = 13), o = t.next_out, r = t.output, l = t.avail_out, a = t.next_in, i = t.input, s = t.avail_in, c = n.hold, u = n.bits, h = s, d = l, M = N; t: for (;;)
|
|
415
415
|
switch (n.mode) {
|
|
@@ -555,7 +555,7 @@ function mxfun() {
|
|
|
555
555
|
n.mode = 14;
|
|
556
556
|
break;
|
|
557
557
|
case 1:
|
|
558
|
-
if (
|
|
558
|
+
if (U(n), n.mode = 20, 6 !== e)
|
|
559
559
|
break;
|
|
560
560
|
c >>>= 2, u -= 2;
|
|
561
561
|
break t;
|
|
@@ -810,8 +810,8 @@ function mxfun() {
|
|
|
810
810
|
case 31: return -4;
|
|
811
811
|
case 32:
|
|
812
812
|
default: return B;
|
|
813
|
-
} return t.next_out = o, t.avail_out = l, t.next_in = a, t.avail_in = s, n.hold = c, n.bits = u, (n.wsize || d !== t.avail_out && n.mode < 30 && (n.mode < 27 || 4 !== e)) &&
|
|
814
|
-
return B; var e = t.state; return e.window && (e.window = null), t.state = null, N; }, n.inflateGetHeader = function (t, e) { var n; return !t || !t.state || 0 == (2 & (n = t.state).wrap) ? B : ((n.head = e).done = !1, N); }, n.inflateSetDictionary = function (t, e) { var n, i = e.length; return !t || !t.state || 0 !== (n = t.state).wrap && 11 !== n.mode ? B : 11 === n.mode && L(1, e, i, 0) !== n.check ? -3 :
|
|
813
|
+
} return t.next_out = o, t.avail_out = l, t.next_in = a, t.avail_in = s, n.hold = c, n.bits = u, (n.wsize || d !== t.avail_out && n.mode < 30 && (n.mode < 27 || 4 !== e)) && V(t, t.output, t.next_out, d - t.avail_out) ? (n.mode = 31, -4) : (h -= t.avail_in, d -= t.avail_out, t.total_in += h, t.total_out += d, n.total += d, n.wrap && d && (t.adler = n.check = (n.flags ? O : L)(n.check, r, d, t.next_out - d)), t.data_type = n.bits + (n.last ? 64 : 0) + (12 === n.mode ? 128 : 0) + (20 === n.mode || 15 === n.mode ? 256 : 0), (0 == h && 0 === d || 4 === e) && M === N && (M = -5), M); }, n.inflateEnd = function (t) { if (!t || !t.state)
|
|
814
|
+
return B; var e = t.state; return e.window && (e.window = null), t.state = null, N; }, n.inflateGetHeader = function (t, e) { var n; return !t || !t.state || 0 == (2 & (n = t.state).wrap) ? B : ((n.head = e).done = !1, N); }, n.inflateSetDictionary = function (t, e) { var n, i = e.length; return !t || !t.state || 0 !== (n = t.state).wrap && 11 !== n.mode ? B : 11 === n.mode && L(1, e, i, 0) !== n.check ? -3 : V(t, e, i, i) ? (n.mode = 31, -4) : (n.havedict = 1, N); }, n.inflateInfo = "pako inflate (from Nodeca project)";
|
|
815
815
|
}, { "../utils/common": 4, "./adler32": 6, "./crc32": 8, "./inffast": 11, "./inftrees": 13 }], 13: [function (t, e, n) {
|
|
816
816
|
"use strict";
|
|
817
817
|
var R = t("../utils/common"), k = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], B = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], F = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
@@ -869,12 +869,12 @@ function mxfun() {
|
|
|
869
869
|
function B(t, e) { t.pending_buf[t.pending++] = 255 & e, t.pending_buf[t.pending++] = e >>> 8 & 255; }
|
|
870
870
|
function F(t, e, n) { t.bi_valid > r - n ? (t.bi_buf |= e << t.bi_valid & 65535, B(t, t.bi_buf), t.bi_buf = e >> r - t.bi_valid, t.bi_valid += n - r) : (t.bi_buf |= e << t.bi_valid & 65535, t.bi_valid += n); }
|
|
871
871
|
function z(t, e, n) { F(t, n[2 * e], n[2 * e + 1]); }
|
|
872
|
-
function
|
|
872
|
+
function U(t, e) { for (var n = 0; n |= 1 & t, t >>>= 1, n <<= 1, 0 < --e;)
|
|
873
873
|
; return n >>> 1; }
|
|
874
|
-
function
|
|
874
|
+
function V(t, e, n) { var i, r, a = new Array(v + 1), o = 0; for (i = 1; i <= v; i++)
|
|
875
875
|
a[i] = o = o + n[i - 1] << 1; for (r = 0; r <= e; r++) {
|
|
876
876
|
var s = t[2 * r + 1];
|
|
877
|
-
0 !== s && (t[2 * r] =
|
|
877
|
+
0 !== s && (t[2 * r] = U(a[s]++, s));
|
|
878
878
|
} }
|
|
879
879
|
function j(t) { var e; for (e = 0; e < d; e++)
|
|
880
880
|
t.dyn_ltree[2 * e] = 0; for (e = 0; e < p; e++)
|
|
@@ -902,7 +902,7 @@ function mxfun() {
|
|
|
902
902
|
for (a = f; 0 !== a; a--)
|
|
903
903
|
for (i = t.bl_count[a]; 0 !== i;)
|
|
904
904
|
c < (r = t.heap[--n]) || (l[2 * r + 1] !== a && (t.opt_len += (a - l[2 * r + 1]) * l[2 * r], l[2 * r + 1] = a), i--);
|
|
905
|
-
} }(t, e),
|
|
905
|
+
} }(t, e), V(a, c, t.bl_count); }
|
|
906
906
|
function X(t, e, n) { var i, r, a = -1, o = e[1], s = 0, l = 7, c = 4; for (0 === o && (l = 138, c = 3), e[2 * (n + 1) + 1] = 65535, i = 0; i <= n; i++)
|
|
907
907
|
r = o, o = e[2 * (i + 1) + 1], ++s < l && r === o || (s < c ? t.bl_tree[2 * r] += s : 0 !== r ? (r !== a && t.bl_tree[2 * r]++, t.bl_tree[2 * x]++) : s <= 10 ? t.bl_tree[2 * _]++ : t.bl_tree[2 * w]++, a = r, c = (s = 0) === o ? (l = 138, 3) : r === o ? (l = 6, 3) : (l = 7, 4)); }
|
|
908
908
|
function Y(t, e, n) { var i, r, a = -1, o = e[1], s = 0, l = 7, c = 4; for (0 === o && (l = 138, c = 3), i = 0; i <= n; i++)
|
|
@@ -928,8 +928,8 @@ function mxfun() {
|
|
|
928
928
|
T[2 * t + 1] = 8, t++, a[8]++; for (; t <= 255;)
|
|
929
929
|
T[2 * t + 1] = 9, t++, a[9]++; for (; t <= 279;)
|
|
930
930
|
T[2 * t + 1] = 7, t++, a[7]++; for (; t <= 287;)
|
|
931
|
-
T[2 * t + 1] = 8, t++, a[8]++; for (
|
|
932
|
-
E[2 * t + 1] = 5, E[2 * t] =
|
|
931
|
+
T[2 * t + 1] = 8, t++, a[8]++; for (V(T, d + 1, a), t = 0; t < p; t++)
|
|
932
|
+
E[2 * t + 1] = 5, E[2 * t] = U(t, 5); O = new k(T, b, h + 1, d, v), I = new k(E, M, 0, p, v), P = new k(new Array(0), S, 0, f, m); }(), Z = !0), t.l_desc = new a(t.dyn_ltree, O), t.d_desc = new a(t.dyn_dtree, I), t.bl_desc = new a(t.bl_tree, P), t.bi_buf = 0, t.bi_valid = 0, j(t); }, n._tr_stored_block = $, n._tr_flush_block = function (t, e, n, i) { var r, a, o = 0; 0 < t.level ? (2 === t.strm.data_type && (t.strm.data_type = function (t) { var e, n = 4093624447; for (e = 0; e <= 31; e++, n >>>= 1)
|
|
933
933
|
if (1 & n && 0 !== t.dyn_ltree[2 * e])
|
|
934
934
|
return s; if (0 !== t.dyn_ltree[18] || 0 !== t.dyn_ltree[20] || 0 !== t.dyn_ltree[26])
|
|
935
935
|
return c; for (e = 32; e < h; e++)
|
|
@@ -947,7 +947,7 @@ function mxfun() {
|
|
|
947
947
|
r *= Math.tan(s.object.fov / 2 * Math.PI / 180), R(2 * t * r / n.clientHeight, s.object.matrix), k(2 * e * r / n.clientHeight, s.object.matrix);
|
|
948
948
|
}
|
|
949
949
|
else
|
|
950
|
-
s.object.isOrthographicCamera ? (R(t * (s.object.right - s.object.left) / s.object.zoom / n.clientWidth, s.object.matrix), k(e * (s.object.top - s.object.bottom) / s.object.zoom / n.clientHeight, s.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), s.enablePan = !1); }); function B(t) { s.object.isPerspectiveCamera ? g /= t : s.object.isOrthographicCamera ? (s.object.zoom = Math.max(s.minZoom, Math.min(s.maxZoom, s.object.zoom * t)), s.object.updateProjectionMatrix(), y = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), s.enableZoom = !1); } function F(t) { s.object.isPerspectiveCamera ? g *= t : s.object.isOrthographicCamera ? (s.object.zoom = Math.max(s.minZoom, Math.min(s.maxZoom, s.object.zoom / t)), s.object.updateProjectionMatrix(), y = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), s.enableZoom = !1); } function z(t) { x.set(t.clientX, t.clientY); } function
|
|
950
|
+
s.object.isOrthographicCamera ? (R(t * (s.object.right - s.object.left) / s.object.zoom / n.clientWidth, s.object.matrix), k(e * (s.object.top - s.object.bottom) / s.object.zoom / n.clientHeight, s.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), s.enablePan = !1); }); function B(t) { s.object.isPerspectiveCamera ? g /= t : s.object.isOrthographicCamera ? (s.object.zoom = Math.max(s.minZoom, Math.min(s.maxZoom, s.object.zoom * t)), s.object.updateProjectionMatrix(), y = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), s.enableZoom = !1); } function F(t) { s.object.isPerspectiveCamera ? g *= t : s.object.isOrthographicCamera ? (s.object.zoom = Math.max(s.minZoom, Math.min(s.maxZoom, s.object.zoom / t)), s.object.updateProjectionMatrix(), y = !0) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), s.enableZoom = !1); } function z(t) { x.set(t.clientX, t.clientY); } function U(t) { b.set(t.clientX, t.clientY); } function V(t) { if (1 == t.touches.length)
|
|
951
951
|
x.set(t.touches[0].pageX, t.touches[0].pageY);
|
|
952
952
|
else {
|
|
953
953
|
var e = .5 * (t.touches[0].pageX + t.touches[1].pageX), n = .5 * (t.touches[0].pageY + t.touches[1].pageY);
|
|
@@ -975,7 +975,7 @@ function mxfun() {
|
|
|
975
975
|
if (t.ctrlKey || t.metaKey || t.shiftKey) {
|
|
976
976
|
if (!1 === s.enablePan)
|
|
977
977
|
return;
|
|
978
|
-
|
|
978
|
+
U(t), d = h.PAN;
|
|
979
979
|
}
|
|
980
980
|
else {
|
|
981
981
|
if (!1 === s.enableRotate)
|
|
@@ -992,7 +992,7 @@ function mxfun() {
|
|
|
992
992
|
else {
|
|
993
993
|
if (!1 === s.enablePan)
|
|
994
994
|
return;
|
|
995
|
-
|
|
995
|
+
U(t), d = h.PAN;
|
|
996
996
|
}
|
|
997
997
|
break;
|
|
998
998
|
default: d = h.NONE;
|
|
@@ -1008,7 +1008,7 @@ function mxfun() {
|
|
|
1008
1008
|
case nt.MOUSE.PAN:
|
|
1009
1009
|
if (!1 === s.enablePan)
|
|
1010
1010
|
return;
|
|
1011
|
-
|
|
1011
|
+
U(t), d = h.PAN;
|
|
1012
1012
|
break;
|
|
1013
1013
|
default: d = h.NONE;
|
|
1014
1014
|
}
|
|
@@ -1022,7 +1022,7 @@ function mxfun() {
|
|
|
1022
1022
|
case nt.MOUSE.PAN:
|
|
1023
1023
|
if (!1 === s.enablePan)
|
|
1024
1024
|
return;
|
|
1025
|
-
|
|
1025
|
+
U(t), d = h.PAN;
|
|
1026
1026
|
break;
|
|
1027
1027
|
default: d = h.NONE;
|
|
1028
1028
|
}
|
|
@@ -1063,7 +1063,7 @@ function mxfun() {
|
|
|
1063
1063
|
case nt.TOUCH.ROTATE:
|
|
1064
1064
|
if (!1 === s.enableRotate)
|
|
1065
1065
|
return;
|
|
1066
|
-
|
|
1066
|
+
V(t), d = h.TOUCH_ROTATE;
|
|
1067
1067
|
break;
|
|
1068
1068
|
case nt.TOUCH.PAN:
|
|
1069
1069
|
if (!1 === s.enablePan)
|
|
@@ -1083,7 +1083,7 @@ function mxfun() {
|
|
|
1083
1083
|
case nt.TOUCH.DOLLY_ROTATE:
|
|
1084
1084
|
if (!1 === s.enableZoom && !1 === s.enableRotate)
|
|
1085
1085
|
return;
|
|
1086
|
-
e = t, s.enableZoom && G(e), s.enableRotate &&
|
|
1086
|
+
e = t, s.enableZoom && G(e), s.enableRotate && V(e), d = h.TOUCH_DOLLY_ROTATE;
|
|
1087
1087
|
break;
|
|
1088
1088
|
default: d = h.NONE;
|
|
1089
1089
|
}
|
|
@@ -1175,7 +1175,7 @@ function mxfun() {
|
|
|
1175
1175
|
for (var r in i)
|
|
1176
1176
|
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
1177
1177
|
} return e; });
|
|
1178
|
-
var X = 0, Y = 1, Z = 2, F = 1, z = 2,
|
|
1178
|
+
var X = 0, Y = 1, Z = 2, F = 1, z = 2, U = 3, O = 0, St = 1, $ = 2, o = 0, v = 2, K = 0, Q = 1, tt = 2, et = 3, nt = 4, it = 5, rt = 100, at = 101, ot = 102, st = 103, lt = 104, ct = 200, ut = 201, ht = 202, dt = 203, pt = 204, ft = 205, mt = 206, gt = 207, vt = 208, yt = 209, xt = 210, _t = 0, wt = 1, bt = 2, Mt = 3, Ct = 4, Tt = 5, Et = 6, At = 7, V = 0, j = 1, G = 2, H = 0, Dt = 1, W = 2, J = 3, q = 4, Lt = 5, Ot = 301, It = 302, Pt = 303, Rt = 304, kt = 305, Nt = 306, Bt = 307, Ft = 1e3, zt = 1001, Ut = 1002, Vt = 1003, jt = 1004, Gt = 1005, Ht = 1006, Wt = 1007, Jt = 1008, qt = 1009, r = 1010, a = 1011, Xt = 1012, s = 1013, Yt = 1014, Zt = 1015, $t = 1016, l = 1017, c = 1018, u = 1019, Kt = 1020, h = 1021, Qt = 1022, te = 1023, d = 1024, p = 1025, i = te, ee = 1026, ne = 1027, f = 1028, m = 1029, g = 1030, y = 1031, x = 1032, _ = 1033, w = 33776, b = 33777, M = 33778, S = 33779, C = 35840, T = 35841, E = 35842, A = 35843, D = 36196, L = 37808, I = 37809, P = 37810, R = 37811, k = 37812, N = 37813, B = 37814, ie = 37815, re = 37816, ae = 37817, oe = 37818, se = 37819, le = 37820, ce = 37821, ue = 2300, he = 2301, de = 2400, pe = 2401, fe = 2402, me = 3e3, e = 3001, n = 3007, ge = 3002, ve = 3003, ye = 3004, xe = 3005, _e = 3006, we = 3200, be = 3201, Me = 0, Se = 1, Ce = 7680, Te = 519, Ee = 35044, Ae = 35048;
|
|
1179
1179
|
function De() { }
|
|
1180
1180
|
Object.assign(De.prototype, { addEventListener: function (t, e) { void 0 === this._listeners && (this._listeners = {}); var n = this._listeners; void 0 === n[t] && (n[t] = []), -1 === n[t].indexOf(e) && n[t].push(e); }, hasEventListener: function (t, e) { if (void 0 === this._listeners)
|
|
1181
1181
|
return !1; var n = this._listeners; return void 0 !== n[t] && -1 !== n[t].indexOf(e); }, removeEventListener: function (t, e) { if (void 0 !== this._listeners) {
|
|
@@ -1228,8 +1228,8 @@ function mxfun() {
|
|
|
1228
1228
|
} return 2048 < e.width || 2048 < e.height ? e.toDataURL("image/jpeg", .6) : e.toDataURL("image/png"); } }, Be = 0;
|
|
1229
1229
|
function Fe(t, e, n, i, r, a, o, s, l, c) { Object.defineProperty(this, "id", { value: Be++ }), this.uuid = Pe.generateUUID(), this.name = "", this.image = void 0 !== t ? t : Fe.DEFAULT_IMAGE, this.mipmaps = [], this.mapping = void 0 !== e ? e : Fe.DEFAULT_MAPPING, this.wrapS = void 0 !== n ? n : zt, this.wrapT = void 0 !== i ? i : zt, this.magFilter = void 0 !== r ? r : Ht, this.minFilter = void 0 !== a ? a : Jt, this.anisotropy = void 0 !== l ? l : 1, this.format = void 0 !== o ? o : te, this.internalFormat = null, this.type = void 0 !== s ? s : qt, this.offset = new Re(0, 0), this.repeat = new Re(1, 1), this.center = new Re(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new ke, this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.encoding = void 0 !== c ? c : me, this.version = 0, this.onUpdate = null; }
|
|
1230
1230
|
function ze(t, e, n, i) { this.x = t || 0, this.y = e || 0, this.z = n || 0, this.w = void 0 !== i ? i : 1; }
|
|
1231
|
-
function
|
|
1232
|
-
function
|
|
1231
|
+
function Ue(t, e, n) { this.width = t, this.height = e, this.scissor = new ze(0, 0, t, e), this.scissorTest = !1, this.viewport = new ze(0, 0, t, e), n = n || {}, this.texture = new Fe(void 0, n.mapping, n.wrapS, n.wrapT, n.magFilter, n.minFilter, n.format, n.type, n.anisotropy, n.encoding), this.texture.image = {}, this.texture.image.width = t, this.texture.image.height = e, this.texture.generateMipmaps = void 0 !== n.generateMipmaps && n.generateMipmaps, this.texture.minFilter = void 0 !== n.minFilter ? n.minFilter : Ht, this.depthBuffer = void 0 === n.depthBuffer || n.depthBuffer, this.stencilBuffer = void 0 === n.stencilBuffer || n.stencilBuffer, this.depthTexture = void 0 !== n.depthTexture ? n.depthTexture : null; }
|
|
1232
|
+
function Ve(t, e, n) { Ue.call(this, t, e, n), this.samples = 4; }
|
|
1233
1233
|
function je(t, e, n, i) { this._x = t || 0, this._y = e || 0, this._z = n || 0, this._w = void 0 !== i ? i : 1; }
|
|
1234
1234
|
Fe.DEFAULT_IMAGE = void 0, Fe.DEFAULT_MAPPING = 300, Fe.prototype = Object.assign(Object.create(De.prototype), { constructor: Fe, isTexture: !0, updateMatrix: function () { this.matrix.setUvTransform(this.offset.x, this.offset.y, this.repeat.x, this.repeat.y, this.rotation, this.center.x, this.center.y); }, clone: function () { return (new this.constructor).copy(this); }, copy: function (t) { return this.name = t.name, this.image = t.image, this.mipmaps = t.mipmaps.slice(0), this.mapping = t.mapping, this.wrapS = t.wrapS, this.wrapT = t.wrapT, this.magFilter = t.magFilter, this.minFilter = t.minFilter, this.anisotropy = t.anisotropy, this.format = t.format, this.internalFormat = t.internalFormat, this.type = t.type, this.offset.copy(t.offset), this.repeat.copy(t.repeat), this.center.copy(t.center), this.rotation = t.rotation, this.matrixAutoUpdate = t.matrixAutoUpdate, this.matrix.copy(t.matrix), this.generateMipmaps = t.generateMipmaps, this.premultiplyAlpha = t.premultiplyAlpha, this.flipY = t.flipY, this.unpackAlignment = t.unpackAlignment, this.encoding = t.encoding, this; }, toJSON: function (t) { var e = void 0 === t || "string" == typeof t; if (!e && void 0 !== t.textures[this.uuid])
|
|
1235
1235
|
return t.textures[this.uuid]; var n = { metadata: { version: 4.5, type: "Texture", generator: "Texture.toJSON" }, uuid: this.uuid, name: this.name, mapping: this.mapping, repeat: [this.repeat.x, this.repeat.y], offset: [this.offset.x, this.offset.y], center: [this.center.x, this.center.y], rotation: this.rotation, wrap: [this.wrapS, this.wrapT], format: this.format, type: this.type, encoding: this.encoding, minFilter: this.minFilter, magFilter: this.magFilter, anisotropy: this.anisotropy, flipY: this.flipY, premultiplyAlpha: this.premultiplyAlpha, unpackAlignment: this.unpackAlignment }; if (void 0 !== this.image) {
|
|
@@ -1255,7 +1255,7 @@ function mxfun() {
|
|
|
1255
1255
|
case zt:
|
|
1256
1256
|
t.x = t.x < 0 ? 0 : 1;
|
|
1257
1257
|
break;
|
|
1258
|
-
case
|
|
1258
|
+
case Ut: 1 === Math.abs(Math.floor(t.x) % 2) ? t.x = Math.ceil(t.x) - t.x : t.x = t.x - Math.floor(t.x);
|
|
1259
1259
|
} if (t.y < 0 || 1 < t.y)
|
|
1260
1260
|
switch (this.wrapT) {
|
|
1261
1261
|
case Ft:
|
|
@@ -1264,7 +1264,7 @@ function mxfun() {
|
|
|
1264
1264
|
case zt:
|
|
1265
1265
|
t.y = t.y < 0 ? 0 : 1;
|
|
1266
1266
|
break;
|
|
1267
|
-
case
|
|
1267
|
+
case Ut: 1 === Math.abs(Math.floor(t.y) % 2) ? t.y = Math.ceil(t.y) - t.y : t.y = t.y - Math.floor(t.y);
|
|
1268
1268
|
} return this.flipY && (t.y = 1 - t.y), t; } }), Object.defineProperty(Fe.prototype, "needsUpdate", { set: function (t) { !0 === t && this.version++; } }), Object.defineProperties(ze.prototype, { width: { get: function () { return this.z; }, set: function (t) { this.z = t; } }, height: { get: function () { return this.w; }, set: function (t) { this.w = t; } } }), Object.assign(ze.prototype, { isVector4: !0, set: function (t, e, n, i) { return this.x = t, this.y = e, this.z = n, this.w = i, this; }, setScalar: function (t) { return this.x = t, this.y = t, this.z = t, this.w = t, this; }, setX: function (t) { return this.x = t, this; }, setY: function (t) { return this.y = t, this; }, setZ: function (t) { return this.z = t, this; }, setW: function (t) { return this.w = t, this; }, setComponent: function (t, e) { switch (t) {
|
|
1269
1269
|
case 0:
|
|
1270
1270
|
this.x = e;
|
|
@@ -1291,7 +1291,7 @@ function mxfun() {
|
|
|
1291
1291
|
e = Math.PI;
|
|
1292
1292
|
var m = (o + 1) / 2, g = (u + 1) / 2, v = (f + 1) / 2, y = (s + c) / 4, x = (l + d) / 4, _ = (h + p) / 4;
|
|
1293
1293
|
return g < m && v < m ? r = m < .01 ? (n = 0, i = .707106781) : (i = y / (n = Math.sqrt(m)), x / n) : v < g ? r = g < .01 ? (i = 0, n = .707106781) : (n = y / (i = Math.sqrt(g)), _ / i) : v < .01 ? (i = n = .707106781, r = 0) : (n = x / (r = Math.sqrt(v)), i = _ / r), this.set(n, i, r, e), this;
|
|
1294
|
-
} var w = Math.sqrt((p - h) * (p - h) + (l - d) * (l - d) + (c - s) * (c - s)); return Math.abs(w) < .001 && (w = 1), this.x = (p - h) / w, this.y = (l - d) / w, this.z = (c - s) / w, this.w = Math.acos((o + u + f - 1) / 2), this; }, min: function (t) { return this.x = Math.min(this.x, t.x), this.y = Math.min(this.y, t.y), this.z = Math.min(this.z, t.z), this.w = Math.min(this.w, t.w), this; }, max: function (t) { return this.x = Math.max(this.x, t.x), this.y = Math.max(this.y, t.y), this.z = Math.max(this.z, t.z), this.w = Math.max(this.w, t.w), this; }, clamp: function (t, e) { return this.x = Math.max(t.x, Math.min(e.x, this.x)), this.y = Math.max(t.y, Math.min(e.y, this.y)), this.z = Math.max(t.z, Math.min(e.z, this.z)), this.w = Math.max(t.w, Math.min(e.w, this.w)), this; }, clampScalar: function (t, e) { return this.x = Math.max(t, Math.min(e, this.x)), this.y = Math.max(t, Math.min(e, this.y)), this.z = Math.max(t, Math.min(e, this.z)), this.w = Math.max(t, Math.min(e, this.w)), this; }, clampLength: function (t, e) { var n = this.length(); return this.divideScalar(n || 1).multiplyScalar(Math.max(t, Math.min(e, n))); }, floor: function () { return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this.z = Math.floor(this.z), this.w = Math.floor(this.w), this; }, ceil: function () { return this.x = Math.ceil(this.x), this.y = Math.ceil(this.y), this.z = Math.ceil(this.z), this.w = Math.ceil(this.w), this; }, round: function () { return this.x = Math.round(this.x), this.y = Math.round(this.y), this.z = Math.round(this.z), this.w = Math.round(this.w), this; }, roundToZero: function () { return this.x = this.x < 0 ? Math.ceil(this.x) : Math.floor(this.x), this.y = this.y < 0 ? Math.ceil(this.y) : Math.floor(this.y), this.z = this.z < 0 ? Math.ceil(this.z) : Math.floor(this.z), this.w = this.w < 0 ? Math.ceil(this.w) : Math.floor(this.w), this; }, negate: function () { return this.x = -this.x, this.y = -this.y, this.z = -this.z, this.w = -this.w, this; }, dot: function (t) { return this.x * t.x + this.y * t.y + this.z * t.z + this.w * t.w; }, lengthSq: function () { return this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w; }, length: function () { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w); }, manhattanLength: function () { return Math.abs(this.x) + Math.abs(this.y) + Math.abs(this.z) + Math.abs(this.w); }, normalize: function () { return this.divideScalar(this.length() || 1); }, setLength: function (t) { return this.normalize().multiplyScalar(t); }, lerp: function (t, e) { return this.x += (t.x - this.x) * e, this.y += (t.y - this.y) * e, this.z += (t.z - this.z) * e, this.w += (t.w - this.w) * e, this; }, lerpVectors: function (t, e, n) { return this.subVectors(e, t).multiplyScalar(n).add(t); }, equals: function (t) { return t.x === this.x && t.y === this.y && t.z === this.z && t.w === this.w; }, fromArray: function (t, e) { return void 0 === e && (e = 0), this.x = t[e], this.y = t[e + 1], this.z = t[e + 2], this.w = t[e + 3], this; }, toArray: function (t, e) { return void 0 === t && (t = []), void 0 === e && (e = 0), t[e] = this.x, t[e + 1] = this.y, t[e + 2] = this.z, t[e + 3] = this.w, t; }, fromBufferAttribute: function (t, e, n) { return void 0 !== n && console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."), this.x = t.getX(e), this.y = t.getY(e), this.z = t.getZ(e), this.w = t.getW(e), this; } }),
|
|
1294
|
+
} var w = Math.sqrt((p - h) * (p - h) + (l - d) * (l - d) + (c - s) * (c - s)); return Math.abs(w) < .001 && (w = 1), this.x = (p - h) / w, this.y = (l - d) / w, this.z = (c - s) / w, this.w = Math.acos((o + u + f - 1) / 2), this; }, min: function (t) { return this.x = Math.min(this.x, t.x), this.y = Math.min(this.y, t.y), this.z = Math.min(this.z, t.z), this.w = Math.min(this.w, t.w), this; }, max: function (t) { return this.x = Math.max(this.x, t.x), this.y = Math.max(this.y, t.y), this.z = Math.max(this.z, t.z), this.w = Math.max(this.w, t.w), this; }, clamp: function (t, e) { return this.x = Math.max(t.x, Math.min(e.x, this.x)), this.y = Math.max(t.y, Math.min(e.y, this.y)), this.z = Math.max(t.z, Math.min(e.z, this.z)), this.w = Math.max(t.w, Math.min(e.w, this.w)), this; }, clampScalar: function (t, e) { return this.x = Math.max(t, Math.min(e, this.x)), this.y = Math.max(t, Math.min(e, this.y)), this.z = Math.max(t, Math.min(e, this.z)), this.w = Math.max(t, Math.min(e, this.w)), this; }, clampLength: function (t, e) { var n = this.length(); return this.divideScalar(n || 1).multiplyScalar(Math.max(t, Math.min(e, n))); }, floor: function () { return this.x = Math.floor(this.x), this.y = Math.floor(this.y), this.z = Math.floor(this.z), this.w = Math.floor(this.w), this; }, ceil: function () { return this.x = Math.ceil(this.x), this.y = Math.ceil(this.y), this.z = Math.ceil(this.z), this.w = Math.ceil(this.w), this; }, round: function () { return this.x = Math.round(this.x), this.y = Math.round(this.y), this.z = Math.round(this.z), this.w = Math.round(this.w), this; }, roundToZero: function () { return this.x = this.x < 0 ? Math.ceil(this.x) : Math.floor(this.x), this.y = this.y < 0 ? Math.ceil(this.y) : Math.floor(this.y), this.z = this.z < 0 ? Math.ceil(this.z) : Math.floor(this.z), this.w = this.w < 0 ? Math.ceil(this.w) : Math.floor(this.w), this; }, negate: function () { return this.x = -this.x, this.y = -this.y, this.z = -this.z, this.w = -this.w, this; }, dot: function (t) { return this.x * t.x + this.y * t.y + this.z * t.z + this.w * t.w; }, lengthSq: function () { return this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w; }, length: function () { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z + this.w * this.w); }, manhattanLength: function () { return Math.abs(this.x) + Math.abs(this.y) + Math.abs(this.z) + Math.abs(this.w); }, normalize: function () { return this.divideScalar(this.length() || 1); }, setLength: function (t) { return this.normalize().multiplyScalar(t); }, lerp: function (t, e) { return this.x += (t.x - this.x) * e, this.y += (t.y - this.y) * e, this.z += (t.z - this.z) * e, this.w += (t.w - this.w) * e, this; }, lerpVectors: function (t, e, n) { return this.subVectors(e, t).multiplyScalar(n).add(t); }, equals: function (t) { return t.x === this.x && t.y === this.y && t.z === this.z && t.w === this.w; }, fromArray: function (t, e) { return void 0 === e && (e = 0), this.x = t[e], this.y = t[e + 1], this.z = t[e + 2], this.w = t[e + 3], this; }, toArray: function (t, e) { return void 0 === t && (t = []), void 0 === e && (e = 0), t[e] = this.x, t[e + 1] = this.y, t[e + 2] = this.z, t[e + 3] = this.w, t; }, fromBufferAttribute: function (t, e, n) { return void 0 !== n && console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."), this.x = t.getX(e), this.y = t.getY(e), this.z = t.getZ(e), this.w = t.getW(e), this; } }), Ue.prototype = Object.assign(Object.create(De.prototype), { constructor: Ue, isWebGLRenderTarget: !0, setSize: function (t, e) { this.width === t && this.height === e || (this.width = t, this.height = e, this.texture.image.width = t, this.texture.image.height = e, this.dispose()), this.viewport.set(0, 0, t, e), this.scissor.set(0, 0, t, e); }, clone: function () { return (new this.constructor).copy(this); }, copy: function (t) { return this.width = t.width, this.height = t.height, this.viewport.copy(t.viewport), this.texture = t.texture.clone(), this.depthBuffer = t.depthBuffer, this.stencilBuffer = t.stencilBuffer, this.depthTexture = t.depthTexture, this; }, dispose: function () { this.dispatchEvent({ type: "dispose" }); } }), Ve.prototype = Object.assign(Object.create(Ue.prototype), { constructor: Ve, isWebGLMultisampleRenderTarget: !0, copy: function (t) { return Ue.prototype.copy.call(this, t), this.samples = t.samples, this; } }), Object.assign(je, { slerp: function (t, e, n, i) { return n.copy(t).slerp(e, i); }, slerpFlat: function (t, e, n, i, r, a, o) { var s = n[i + 0], l = n[i + 1], c = n[i + 2], u = n[i + 3], h = r[a + 0], d = r[a + 1], p = r[a + 2], f = r[a + 3]; if (u !== f || s !== h || l !== d || c !== p) {
|
|
1295
1295
|
var m = 1 - o, g = s * h + l * d + c * p + u * f, v = 0 <= g ? 1 : -1, y = 1 - g * g;
|
|
1296
1296
|
if (y > Number.EPSILON) {
|
|
1297
1297
|
var x = Math.sqrt(y), _ = Math.atan2(x, g * v);
|
|
@@ -1453,9 +1453,9 @@ function mxfun() {
|
|
|
1453
1453
|
function Nn(t, e) { this.center = void 0 !== t ? t : new We, this.radius = void 0 !== e ? e : 0; }
|
|
1454
1454
|
Object.assign(Nn.prototype, { set: function (t, e) { return this.center.copy(t), this.radius = e, this; }, setFromPoints: function (t, e) { var n = this.center; void 0 !== e ? n.copy(e) : kn.setFromPoints(t).getCenter(n); for (var i = 0, r = 0, a = t.length; r < a; r++)
|
|
1455
1455
|
i = Math.max(i, n.distanceToSquared(t[r])); return this.radius = Math.sqrt(i), this; }, clone: function () { return (new this.constructor).copy(this); }, copy: function (t) { return this.center.copy(t.center), this.radius = t.radius, this; }, empty: function () { return this.radius <= 0; }, containsPoint: function (t) { return t.distanceToSquared(this.center) <= this.radius * this.radius; }, distanceToPoint: function (t) { return t.distanceTo(this.center) - this.radius; }, intersectsSphere: function (t) { var e = this.radius + t.radius; return t.center.distanceToSquared(this.center) <= e * e; }, intersectsBox: function (t) { return t.intersectsSphere(this); }, intersectsPlane: function (t) { return Math.abs(t.distanceToPoint(this.center)) <= this.radius; }, clampPoint: function (t, e) { var n = this.center.distanceToSquared(t); return void 0 === e && (console.warn("THREE.Sphere: .clampPoint() target is now required"), e = new We), e.copy(t), n > this.radius * this.radius && (e.sub(this.center).normalize(), e.multiplyScalar(this.radius).add(this.center)), e; }, getBoundingBox: function (t) { return void 0 === t && (console.warn("THREE.Sphere: .getBoundingBox() target is now required"), t = new Pn), t.set(this.center, this.center), t.expandByScalar(this.radius), t; }, applyMatrix4: function (t) { return this.center.applyMatrix4(t), this.radius = this.radius * t.getMaxScaleOnAxis(), this; }, translate: function (t) { return this.center.add(t), this; }, equals: function (t) { return t.center.equals(this.center) && t.radius === this.radius; } });
|
|
1456
|
-
var Bn = new We, Fn = new We, zn = new We,
|
|
1456
|
+
var Bn = new We, Fn = new We, zn = new We, Un = new We, Vn = new We, jn = new We, Gn = new We;
|
|
1457
1457
|
function Hn(t, e) { this.origin = void 0 !== t ? t : new We, this.direction = void 0 !== e ? e : new We(0, 0, -1); }
|
|
1458
|
-
Object.assign(Hn.prototype, { set: function (t, e) { return this.origin.copy(t), this.direction.copy(e), this; }, clone: function () { return (new this.constructor).copy(this); }, copy: function (t) { return this.origin.copy(t.origin), this.direction.copy(t.direction), this; }, at: function (t, e) { return void 0 === e && (console.warn("THREE.Ray: .at() target is now required"), e = new We), e.copy(this.direction).multiplyScalar(t).add(this.origin); }, lookAt: function (t) { return this.direction.copy(t).sub(this.origin).normalize(), this; }, recast: function (t) { return this.origin.copy(this.at(t, Bn)), this; }, closestPointToPoint: function (t, e) { void 0 === e && (console.warn("THREE.Ray: .closestPointToPoint() target is now required"), e = new We), e.subVectors(t, this.origin); var n = e.dot(this.direction); return n < 0 ? e.copy(this.origin) : e.copy(this.direction).multiplyScalar(n).add(this.origin); }, distanceToPoint: function (t) { return Math.sqrt(this.distanceSqToPoint(t)); }, distanceSqToPoint: function (t) { var e = Bn.subVectors(t, this.origin).dot(this.direction); return e < 0 ? this.origin.distanceToSquared(t) : (Bn.copy(this.direction).multiplyScalar(e).add(this.origin), Bn.distanceToSquared(t)); }, distanceSqToSegment: function (t, e, n, i) { Fn.copy(t).add(e).multiplyScalar(.5), zn.copy(e).sub(t).normalize(),
|
|
1458
|
+
Object.assign(Hn.prototype, { set: function (t, e) { return this.origin.copy(t), this.direction.copy(e), this; }, clone: function () { return (new this.constructor).copy(this); }, copy: function (t) { return this.origin.copy(t.origin), this.direction.copy(t.direction), this; }, at: function (t, e) { return void 0 === e && (console.warn("THREE.Ray: .at() target is now required"), e = new We), e.copy(this.direction).multiplyScalar(t).add(this.origin); }, lookAt: function (t) { return this.direction.copy(t).sub(this.origin).normalize(), this; }, recast: function (t) { return this.origin.copy(this.at(t, Bn)), this; }, closestPointToPoint: function (t, e) { void 0 === e && (console.warn("THREE.Ray: .closestPointToPoint() target is now required"), e = new We), e.subVectors(t, this.origin); var n = e.dot(this.direction); return n < 0 ? e.copy(this.origin) : e.copy(this.direction).multiplyScalar(n).add(this.origin); }, distanceToPoint: function (t) { return Math.sqrt(this.distanceSqToPoint(t)); }, distanceSqToPoint: function (t) { var e = Bn.subVectors(t, this.origin).dot(this.direction); return e < 0 ? this.origin.distanceToSquared(t) : (Bn.copy(this.direction).multiplyScalar(e).add(this.origin), Bn.distanceToSquared(t)); }, distanceSqToSegment: function (t, e, n, i) { Fn.copy(t).add(e).multiplyScalar(.5), zn.copy(e).sub(t).normalize(), Un.copy(this.origin).sub(Fn); var r, a, o, s, l = .5 * t.distanceTo(e), c = -this.direction.dot(zn), u = Un.dot(this.direction), h = -Un.dot(zn), d = Un.lengthSq(), p = Math.abs(1 - c * c); if (0 < p)
|
|
1459
1459
|
if (a = c * u - h, s = l * p, 0 <= (r = c * h - u))
|
|
1460
1460
|
if (-s <= a)
|
|
1461
1461
|
if (a <= s) {
|
|
@@ -1471,7 +1471,7 @@ function mxfun() {
|
|
|
1471
1471
|
else
|
|
1472
1472
|
a = 0 < c ? -l : l, o = -(r = Math.max(0, -(c * a + u))) * r + a * (a + 2 * h) + d; return n && n.copy(this.direction).multiplyScalar(r).add(this.origin), i && i.copy(zn).multiplyScalar(a).add(Fn), o; }, intersectSphere: function (t, e) { Bn.subVectors(t.center, this.origin); var n = Bn.dot(this.direction), i = Bn.dot(Bn) - n * n, r = t.radius * t.radius; if (r < i)
|
|
1473
1473
|
return null; var a = Math.sqrt(r - i), o = n - a, s = n + a; return o < 0 && s < 0 ? null : o < 0 ? this.at(s, e) : this.at(o, e); }, intersectsSphere: function (t) { return this.distanceSqToPoint(t.center) <= t.radius * t.radius; }, distanceToPlane: function (t) { var e = t.normal.dot(this.direction); if (0 === e)
|
|
1474
|
-
return 0 === t.distanceToPoint(this.origin) ? 0 : null; var n = -(this.origin.dot(t.normal) + t.constant) / e; return 0 <= n ? n : null; }, intersectPlane: function (t, e) { var n = this.distanceToPlane(t); return null === n ? null : this.at(n, e); }, intersectsPlane: function (t) { var e = t.distanceToPoint(this.origin); return 0 === e || t.normal.dot(this.direction) * e < 0; }, intersectBox: function (t, e) { var n, i, r, a, o, s, l = 1 / this.direction.x, c = 1 / this.direction.y, u = 1 / this.direction.z, h = this.origin; return i = 0 <= l ? (n = (t.min.x - h.x) * l, (t.max.x - h.x) * l) : (n = (t.max.x - h.x) * l, (t.min.x - h.x) * l), (a = 0 <= c ? (r = (t.min.y - h.y) * c, (t.max.y - h.y) * c) : (r = (t.max.y - h.y) * c, (t.min.y - h.y) * c)) < n || i < r ? null : ((n < r || n != n) && (n = r), (a < i || i != i) && (i = a), (s = 0 <= u ? (o = (t.min.z - h.z) * u, (t.max.z - h.z) * u) : (o = (t.max.z - h.z) * u, (t.min.z - h.z) * u)) < n || i < o ? null : ((n < o || n != n) && (n = o), (s < i || i != i) && (i = s), i < 0 ? null : this.at(0 <= n ? n : i, e))); }, intersectsBox: function (t) { return null !== this.intersectBox(t, Bn); }, intersectTriangle: function (t, e, n, i, r) {
|
|
1474
|
+
return 0 === t.distanceToPoint(this.origin) ? 0 : null; var n = -(this.origin.dot(t.normal) + t.constant) / e; return 0 <= n ? n : null; }, intersectPlane: function (t, e) { var n = this.distanceToPlane(t); return null === n ? null : this.at(n, e); }, intersectsPlane: function (t) { var e = t.distanceToPoint(this.origin); return 0 === e || t.normal.dot(this.direction) * e < 0; }, intersectBox: function (t, e) { var n, i, r, a, o, s, l = 1 / this.direction.x, c = 1 / this.direction.y, u = 1 / this.direction.z, h = this.origin; return i = 0 <= l ? (n = (t.min.x - h.x) * l, (t.max.x - h.x) * l) : (n = (t.max.x - h.x) * l, (t.min.x - h.x) * l), (a = 0 <= c ? (r = (t.min.y - h.y) * c, (t.max.y - h.y) * c) : (r = (t.max.y - h.y) * c, (t.min.y - h.y) * c)) < n || i < r ? null : ((n < r || n != n) && (n = r), (a < i || i != i) && (i = a), (s = 0 <= u ? (o = (t.min.z - h.z) * u, (t.max.z - h.z) * u) : (o = (t.max.z - h.z) * u, (t.min.z - h.z) * u)) < n || i < o ? null : ((n < o || n != n) && (n = o), (s < i || i != i) && (i = s), i < 0 ? null : this.at(0 <= n ? n : i, e))); }, intersectsBox: function (t) { return null !== this.intersectBox(t, Bn); }, intersectTriangle: function (t, e, n, i, r) { Vn.subVectors(e, t), jn.subVectors(n, t), Gn.crossVectors(Vn, jn); var a, o = this.direction.dot(Gn); if (0 < o) {
|
|
1475
1475
|
if (i)
|
|
1476
1476
|
return null;
|
|
1477
1477
|
a = 1;
|
|
@@ -1480,10 +1480,10 @@ function mxfun() {
|
|
|
1480
1480
|
if (!(o < 0))
|
|
1481
1481
|
return null;
|
|
1482
1482
|
a = -1, o = -o;
|
|
1483
|
-
}
|
|
1484
|
-
return null; var l = a * this.direction.dot(
|
|
1483
|
+
} Un.subVectors(this.origin, t); var s = a * this.direction.dot(jn.crossVectors(Un, jn)); if (s < 0)
|
|
1484
|
+
return null; var l = a * this.direction.dot(Vn.cross(Un)); if (l < 0)
|
|
1485
1485
|
return null; if (o < s + l)
|
|
1486
|
-
return null; var c = -a *
|
|
1486
|
+
return null; var c = -a * Un.dot(Gn); return c < 0 ? null : this.at(c / o, r); }, applyMatrix4: function (t) { return this.origin.applyMatrix4(t), this.direction.transformDirection(t), this; }, equals: function (t) { return t.origin.equals(this.origin) && t.direction.equals(this.direction); } });
|
|
1487
1487
|
var Wn = new We, Jn = new We, qn = new ke;
|
|
1488
1488
|
function Xn(t, e) { this.normal = void 0 !== t ? t : new We(1, 0, 0), this.constant = void 0 !== e ? e : 0; }
|
|
1489
1489
|
Object.assign(Xn.prototype, { isPlane: !0, set: function (t, e) { return this.normal.copy(t), this.constant = e, this; }, setComponents: function (t, e, n, i) { return this.normal.set(t, e, n), this.constant = i, this; }, setFromNormalAndCoplanarPoint: function (t, e) { return this.normal.copy(t), this.constant = -e.dot(this.normal), this; }, setFromCoplanarPoints: function (t, e, n) { var i = Wn.subVectors(n, e).cross(Jn.subVectors(t, e)).normalize(); return this.setFromNormalAndCoplanarPoint(i, t), this; }, clone: function () { return (new this.constructor).copy(this); }, copy: function (t) { return this.normal.copy(t.normal), this.constant = t.constant, this; }, normalize: function () { var t = 1 / this.normal.length(); return this.normal.multiplyScalar(t), this.constant *= t, this; }, negate: function () { return this.constant *= -1, this.normal.negate(), this; }, distanceToPoint: function (t) { return this.normal.dot(t) + this.constant; }, distanceToSphere: function (t) { return this.distanceToPoint(t.center) - t.radius; }, projectPoint: function (t, e) { return void 0 === e && (console.warn("THREE.Plane: .projectPoint() target is now required"), e = new We), e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t); }, intersectLine: function (t, e) { void 0 === e && (console.warn("THREE.Plane: .intersectLine() target is now required"), e = new We); var n = t.delta(Wn), i = this.normal.dot(n); if (0 === i)
|
|
@@ -1551,7 +1551,7 @@ function mxfun() {
|
|
|
1551
1551
|
this.vertexColors[e] = t.vertexColors[e].clone(); return this; } });
|
|
1552
1552
|
var fi = 0;
|
|
1553
1553
|
function mi() { Object.defineProperty(this, "id", { value: fi++ }), this.uuid = Pe.generateUUID(), this.name = "", this.type = "Material", this.fog = !0, this.blending = Q, this.side = O, this.flatShading = !1, this.vertexTangents = !1, this.vertexColors = o, this.opacity = 1, this.transparent = !1, this.blendSrc = pt, this.blendDst = ft, this.blendEquation = rt, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = Mt, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Te, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Ce, this.stencilZFail = Ce, this.stencilZPass = Ce, 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; }
|
|
1554
|
-
function gi(t) { mi.call(this), this.type = "MeshBasicMaterial", this.color = new ci(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine =
|
|
1554
|
+
function gi(t) { mi.call(this), this.type = "MeshBasicMaterial", this.color = new ci(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = V, this.reflectivity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.setValues(t); }
|
|
1555
1555
|
mi.prototype = Object.assign(Object.create(De.prototype), { constructor: mi, isMaterial: !0, onBeforeCompile: function () { }, setValues: function (t) { if (void 0 !== t)
|
|
1556
1556
|
for (var e in t) {
|
|
1557
1557
|
var n = t[e];
|
|
@@ -1795,21 +1795,21 @@ function mxfun() {
|
|
|
1795
1795
|
var h = u[n];
|
|
1796
1796
|
this.addGroup(h.start, h.count, h.materialIndex);
|
|
1797
1797
|
} var d = t.boundingBox; null !== d && (this.boundingBox = d.clone()); var p = t.boundingSphere; return null !== p && (this.boundingSphere = p.clone()), this.drawRange.start = t.drawRange.start, this.drawRange.count = t.drawRange.count, this.userData = t.userData, this; }, dispose: function () { this.dispatchEvent({ type: "dispose" }); } });
|
|
1798
|
-
var Fi = new Qe, zi = new Hn,
|
|
1798
|
+
var Fi = new Qe, zi = new Hn, Ui = new Nn, Vi = new We, ji = new We, Gi = new We, Hi = new We, Wi = new We, Ji = new We, qi = new We, Xi = new We, Yi = new We, Zi = new Re, $i = new Re, Ki = new Re, Qi = new We, tr = new We;
|
|
1799
1799
|
function er(t, e) { yn.call(this), this.type = "Mesh", this.geometry = void 0 !== t ? t : new Bi, this.material = void 0 !== e ? e : new gi, this.updateMorphTargets(); }
|
|
1800
1800
|
function nr(t, e, n, i, r, a, o, s) { if (null === (e.side === St ? i.intersectTriangle(o, a, r, !0, s) : i.intersectTriangle(r, a, o, e.side !== $, s)))
|
|
1801
1801
|
return null; tr.copy(s), tr.applyMatrix4(t.matrixWorld); var l = n.ray.origin.distanceTo(tr); return l < n.near || l > n.far ? null : { distance: l, point: tr.clone(), object: t }; }
|
|
1802
|
-
function ir(t, e, n, i, r, a, o, s, l, c, u, h) {
|
|
1802
|
+
function ir(t, e, n, i, r, a, o, s, l, c, u, h) { Vi.fromBufferAttribute(r, c), ji.fromBufferAttribute(r, u), Gi.fromBufferAttribute(r, h); var d = t.morphTargetInfluences; if (e.morphTargets && a && d) {
|
|
1803
1803
|
qi.set(0, 0, 0), Xi.set(0, 0, 0), Yi.set(0, 0, 0);
|
|
1804
1804
|
for (var p = 0, f = a.length; p < f; p++) {
|
|
1805
1805
|
var m = d[p], g = a[p];
|
|
1806
|
-
0 !== m && (Hi.fromBufferAttribute(g, c), Wi.fromBufferAttribute(g, u), Ji.fromBufferAttribute(g, h), o ? (qi.addScaledVector(Hi, m), Xi.addScaledVector(Wi, m), Yi.addScaledVector(Ji, m)) : (qi.addScaledVector(Hi.sub(
|
|
1806
|
+
0 !== m && (Hi.fromBufferAttribute(g, c), Wi.fromBufferAttribute(g, u), Ji.fromBufferAttribute(g, h), o ? (qi.addScaledVector(Hi, m), Xi.addScaledVector(Wi, m), Yi.addScaledVector(Ji, m)) : (qi.addScaledVector(Hi.sub(Vi), m), Xi.addScaledVector(Wi.sub(ji), m), Yi.addScaledVector(Ji.sub(Gi), m)));
|
|
1807
1807
|
}
|
|
1808
|
-
|
|
1809
|
-
} var v = nr(t, e, n, i,
|
|
1810
|
-
s && (Zi.fromBufferAttribute(s, c), $i.fromBufferAttribute(s, u), Ki.fromBufferAttribute(s, h), v.uv = ai.getUV(Qi,
|
|
1808
|
+
Vi.add(qi), ji.add(Xi), Gi.add(Yi);
|
|
1809
|
+
} var v = nr(t, e, n, i, Vi, ji, Gi, Qi); if (v) {
|
|
1810
|
+
s && (Zi.fromBufferAttribute(s, c), $i.fromBufferAttribute(s, u), Ki.fromBufferAttribute(s, h), v.uv = ai.getUV(Qi, Vi, ji, Gi, Zi, $i, Ki, new Re)), l && (Zi.fromBufferAttribute(l, c), $i.fromBufferAttribute(l, u), Ki.fromBufferAttribute(l, h), v.uv2 = ai.getUV(Qi, Vi, ji, Gi, Zi, $i, Ki, new Re));
|
|
1811
1811
|
var y = new pi(c, u, h);
|
|
1812
|
-
ai.getNormal(
|
|
1812
|
+
ai.getNormal(Vi, ji, Gi, y.normal), v.face = y;
|
|
1813
1813
|
} return v; }
|
|
1814
1814
|
er.prototype = Object.assign(Object.create(yn.prototype), { constructor: er, isMesh: !0, copy: function (t) { return yn.prototype.copy.call(this, t), void 0 !== t.morphTargetInfluences && (this.morphTargetInfluences = t.morphTargetInfluences.slice()), void 0 !== t.morphTargetDictionary && (this.morphTargetDictionary = Object.assign({}, t.morphTargetDictionary)), this; }, updateMorphTargets: function () { var t, e, n, i = this.geometry; if (i.isBufferGeometry) {
|
|
1815
1815
|
var r = i.morphAttributes, a = Object.keys(r);
|
|
@@ -1823,7 +1823,7 @@ function mxfun() {
|
|
|
1823
1823
|
else {
|
|
1824
1824
|
var s = i.morphTargets;
|
|
1825
1825
|
void 0 !== s && 0 < s.length && console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.");
|
|
1826
|
-
} }, raycast: function (t, e) { var n, i = this.geometry, r = this.material, a = this.matrixWorld; if (void 0 !== r && (null === i.boundingSphere && i.computeBoundingSphere(),
|
|
1826
|
+
} }, raycast: function (t, e) { var n, i = this.geometry, r = this.material, a = this.matrixWorld; if (void 0 !== r && (null === i.boundingSphere && i.computeBoundingSphere(), Ui.copy(i.boundingSphere), Ui.applyMatrix4(a), !1 !== t.ray.intersectsSphere(Ui) && (Fi.getInverse(a), zi.copy(t.ray).applyMatrix4(Fi), null === i.boundingBox || !1 !== zi.intersectsBox(i.boundingBox))))
|
|
1827
1827
|
if (i.isBufferGeometry) {
|
|
1828
1828
|
var o, s, l, c, u, h, d, p, f, m = i.index, g = i.attributes.position, v = i.morphAttributes.position, y = i.morphTargetsRelative, x = i.attributes.uv, _ = i.attributes.uv2, w = i.groups, b = i.drawRange;
|
|
1829
1829
|
if (null !== m)
|
|
@@ -2051,9 +2051,9 @@ function mxfun() {
|
|
|
2051
2051
|
} var l = this.filmOffset; 0 !== l && (r += t * l / this.getFilmWidth()), this.projectionMatrix.makePerspective(r, r + i, e, e - n, t, this.far), this.projectionMatrixInverse.getInverse(this.projectionMatrix); }, toJSON: function (t) { var e = yn.prototype.toJSON.call(this, t); return e.object.fov = this.fov, e.object.zoom = this.zoom, e.object.near = this.near, e.object.far = this.far, e.object.focus = this.focus, e.object.aspect = this.aspect, null !== this.view && (e.object.view = Object.assign({}, this.view)), e.object.filmGauge = this.filmGauge, e.object.filmOffset = this.filmOffset, e; } });
|
|
2052
2052
|
function xr(t, e, n, i) { yn.call(this), this.type = "CubeCamera"; var a = new yr(90, 1, t, e); a.up.set(0, -1, 0), a.lookAt(new We(1, 0, 0)), this.add(a); var o = new yr(90, 1, t, e); o.up.set(0, -1, 0), o.lookAt(new We(-1, 0, 0)), this.add(o); var s = new yr(90, 1, t, e); s.up.set(0, 0, 1), s.lookAt(new We(0, 1, 0)), this.add(s); var l = new yr(90, 1, t, e); l.up.set(0, 0, -1), l.lookAt(new We(0, -1, 0)), this.add(l); var c = new yr(90, 1, t, e); c.up.set(0, -1, 0), c.lookAt(new We(0, 0, 1)), this.add(c); var u = new yr(90, 1, t, e); u.up.set(0, -1, 0), u.lookAt(new We(0, 0, -1)), this.add(u), i = i || { format: Qt, magFilter: Ht, minFilter: Ht }, this.renderTarget = new _r(n, i), this.renderTarget.texture.name = "CubeCamera", this.update = function (t, e) { null === this.parent && this.updateMatrixWorld(); var n = t.getRenderTarget(), i = this.renderTarget, r = i.texture.generateMipmaps; i.texture.generateMipmaps = !1, t.setRenderTarget(i, 0), t.render(e, a), t.setRenderTarget(i, 1), t.render(e, o), t.setRenderTarget(i, 2), t.render(e, s), t.setRenderTarget(i, 3), t.render(e, l), t.setRenderTarget(i, 4), t.render(e, c), i.texture.generateMipmaps = r, t.setRenderTarget(i, 5), t.render(e, u), t.setRenderTarget(n); }, this.clear = function (t, e, n, i) { for (var r = t.getRenderTarget(), a = this.renderTarget, o = 0; o < 6; o++)
|
|
2053
2053
|
t.setRenderTarget(a, o), t.clear(e, n, i); t.setRenderTarget(r); }; }
|
|
2054
|
-
function _r(t, e, n) { Number.isInteger(e) && (console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"), e = n),
|
|
2055
|
-
function wr(t, e, n, i, r, a, o, s, l, c, u, h) { Fe.call(this, null, a, o, s, l, c, i, r, u, h), this.image = { data: t || null, width: e || 1, height: n || 1 }, this.magFilter = void 0 !== l ? l :
|
|
2056
|
-
(xr.prototype = Object.create(yn.prototype)).constructor = xr, ((_r.prototype = Object.create(
|
|
2054
|
+
function _r(t, e, n) { Number.isInteger(e) && (console.warn("THREE.WebGLCubeRenderTarget: constructor signature is now WebGLCubeRenderTarget( size, options )"), e = n), Ue.call(this, t, t, e); }
|
|
2055
|
+
function wr(t, e, n, i, r, a, o, s, l, c, u, h) { Fe.call(this, null, a, o, s, l, c, i, r, u, h), this.image = { data: t || null, width: e || 1, height: n || 1 }, this.magFilter = void 0 !== l ? l : Vt, this.minFilter = void 0 !== c ? c : Vt, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1, this.needsUpdate = !0; }
|
|
2056
|
+
(xr.prototype = Object.create(yn.prototype)).constructor = xr, ((_r.prototype = Object.create(Ue.prototype)).constructor = _r).prototype.isWebGLCubeRenderTarget = !0, _r.prototype.fromEquirectangularTexture = function (t, e) { this.texture.type = e.type, this.texture.format = e.format, this.texture.encoding = e.encoding; var n = new xn, i = { uniforms: { tEquirect: { value: null } }, vertexShader: ["varying vec3 vWorldDirection;", "vec3 transformDirection( in vec3 dir, in mat4 matrix ) {", "\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );", "}", "void main() {", "\tvWorldDirection = transformDirection( position, modelMatrix );", "\t#include <begin_vertex>", "\t#include <project_vertex>", "}"].join("\n"), fragmentShader: ["uniform sampler2D tEquirect;", "varying vec3 vWorldDirection;", "#define RECIPROCAL_PI 0.31830988618", "#define RECIPROCAL_PI2 0.15915494", "void main() {", "\tvec3 direction = normalize( vWorldDirection );", "\tvec2 sampleUV;", "\tsampleUV.y = asin( clamp( direction.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;", "\tsampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;", "\tgl_FragColor = texture2D( tEquirect, sampleUV );", "}"].join("\n") }, r = new gr({ type: "CubemapFromEquirect", uniforms: hr(i.uniforms), vertexShader: i.vertexShader, fragmentShader: i.fragmentShader, side: St, blending: K }); r.uniforms.tEquirect.value = e; var a = new er(new ur(5, 5, 5), r); n.add(a); var o = new xr(1, 10, 1); return o.renderTarget = this, o.renderTarget.texture.name = "CubeCameraTexture", o.update(t, n), a.geometry.dispose(), a.material.dispose(), this; }, ((wr.prototype = Object.create(Fe.prototype)).constructor = wr).prototype.isDataTexture = !0;
|
|
2057
2057
|
var br = new Nn, Mr = new We;
|
|
2058
2058
|
function Sr(t, e, n, i, r, a) { this.planes = [void 0 !== t ? t : new Xn, void 0 !== e ? e : new Xn, void 0 !== n ? n : new Xn, void 0 !== i ? i : new Xn, void 0 !== r ? r : new Xn, void 0 !== a ? a : new Xn]; }
|
|
2059
2059
|
Object.assign(Sr.prototype, { set: function (t, e, n, i, r, a) { var o = this.planes; return o[0].copy(t), o[1].copy(e), o[2].copy(n), o[3].copy(i), o[4].copy(r), o[5].copy(a), this; }, clone: function () { return (new this.constructor).copy(this); }, copy: function (t) { for (var e = this.planes, n = 0; n < 6; n++)
|
|
@@ -2189,8 +2189,8 @@ function mxfun() {
|
|
|
2189
2189
|
break;
|
|
2190
2190
|
default: console.error("THREE.WebGLInfo: Unknown draw mode:", e);
|
|
2191
2191
|
} } }; }
|
|
2192
|
-
function
|
|
2193
|
-
function
|
|
2192
|
+
function Ur(t, e) { return Math.abs(e[1]) - Math.abs(t[1]); }
|
|
2193
|
+
function Vr(m) { var g = {}, v = new Float32Array(8); return { update: function (t, e, n, i) { var r = t.morphTargetInfluences, a = void 0 === r ? 0 : r.length, o = g[e.id]; if (void 0 === o) {
|
|
2194
2194
|
o = [];
|
|
2195
2195
|
for (var s = 0; s < a; s++)
|
|
2196
2196
|
o[s] = [s, 0];
|
|
@@ -2199,7 +2199,7 @@ function mxfun() {
|
|
|
2199
2199
|
0 !== (h = o[s])[1] && (l && e.deleteAttribute("morphTarget" + s), c && e.deleteAttribute("morphNormal" + s));
|
|
2200
2200
|
} for (s = 0; s < a; s++) {
|
|
2201
2201
|
(h = o[s])[0] = s, h[1] = r[s];
|
|
2202
|
-
} o.sort(
|
|
2202
|
+
} o.sort(Ur); var u = 0; for (s = 0; s < 8; s++) {
|
|
2203
2203
|
var h;
|
|
2204
2204
|
if (h = o[s]) {
|
|
2205
2205
|
var d = h[0], p = h[1];
|
|
@@ -2212,8 +2212,8 @@ function mxfun() {
|
|
|
2212
2212
|
} var f = e.morphTargetsRelative ? 1 : 1 - u; i.getUniforms().setValue(m, "morphTargetBaseInfluence", f), i.getUniforms().setValue(m, "morphTargetInfluences", v); } }; }
|
|
2213
2213
|
function jr(t, r, a, o) { var s = {}; return { update: function (t) { var e = o.render.frame, n = t.geometry, i = r.get(t, n); return s[i.id] !== e && (n.isGeometry && i.updateFromObject(t), r.update(i), s[i.id] = e), t.isInstancedMesh && a.update(t.instanceMatrix, 34962), i; }, dispose: function () { s = {}; } }; }
|
|
2214
2214
|
function Gr(t, e, n, i, r, a, o, s, l, c) { Fe.call(this, t = void 0 !== t ? t : [], e = void 0 !== e ? e : Ot, n, i, r, a, o = void 0 !== o ? o : Qt, s, l, c), this.flipY = !1; }
|
|
2215
|
-
function Hr(t, e, n, i) { Fe.call(this, null), this.image = { data: t || null, width: e || 1, height: n || 1, depth: i || 1 }, this.magFilter =
|
|
2216
|
-
function Wr(t, e, n, i) { Fe.call(this, null), this.image = { data: t || null, width: e || 1, height: n || 1, depth: i || 1 }, this.magFilter =
|
|
2215
|
+
function Hr(t, e, n, i) { Fe.call(this, null), this.image = { data: t || null, width: e || 1, height: n || 1, depth: i || 1 }, this.magFilter = Vt, this.minFilter = Vt, this.wrapR = zt, this.generateMipmaps = !1, this.flipY = !1, this.needsUpdate = !0; }
|
|
2216
|
+
function Wr(t, e, n, i) { Fe.call(this, null), this.image = { data: t || null, width: e || 1, height: n || 1, depth: i || 1 }, this.magFilter = Vt, this.minFilter = Vt, this.wrapR = zt, this.generateMipmaps = !1, this.flipY = !1, this.needsUpdate = !0; }
|
|
2217
2217
|
Or.physical = { uniforms: dr([Or.standard.uniforms, { transparency: { value: 0 }, clearcoat: { value: 0 }, clearcoatRoughness: { value: 0 }, sheen: { value: new ci(0) }, clearcoatNormalScale: { value: new Re(1, 1) }, clearcoatNormalMap: { value: null } }]), vertexShader: Lr.meshphysical_vert, fragmentShader: Lr.meshphysical_frag }, ((Gr.prototype = Object.create(Fe.prototype)).constructor = Gr).prototype.isCubeTexture = !0, Object.defineProperty(Gr.prototype, "images", { get: function () { return this.image; }, set: function (t) { this.image = t; } }), ((Hr.prototype = Object.create(Fe.prototype)).constructor = Hr).prototype.isDataTexture2DArray = !0, ((Wr.prototype = Object.create(Fe.prototype)).constructor = Wr).prototype.isDataTexture3D = !0;
|
|
2218
2218
|
var Jr = new Fe, qr = new Hr, Xr = new Wr, Yr = new Gr, Zr = [], $r = [], Kr = new Float32Array(16), Qr = new Float32Array(9), ta = new Float32Array(4);
|
|
2219
2219
|
function ea(t, e, n) { var i = t[0]; if (i <= 0 || 0 < i)
|
|
@@ -2386,15 +2386,15 @@ function mxfun() {
|
|
|
2386
2386
|
var u = n.map[s];
|
|
2387
2387
|
void 0 === u && Fa(n, u = new Na(s)), n = u;
|
|
2388
2388
|
} }
|
|
2389
|
-
function
|
|
2389
|
+
function Ua(t, e) { this.seq = [], this.map = {}; for (var n = t.getProgramParameter(e, 35718), i = 0; i < n; ++i) {
|
|
2390
2390
|
var r = t.getActiveUniform(e, i);
|
|
2391
2391
|
za(r, t.getUniformLocation(e, r.name), this);
|
|
2392
2392
|
} }
|
|
2393
|
-
function
|
|
2394
|
-
|
|
2393
|
+
function Va(t, e, n) { var i = t.createShader(e); return t.shaderSource(i, n), t.compileShader(i), i; }
|
|
2394
|
+
Ua.prototype.setValue = function (t, e, n, i) { var r = this.map[e]; void 0 !== r && r.setValue(t, n, i); }, Ua.prototype.setOptional = function (t, e, n) { var i = e[n]; void 0 !== i && this.setValue(t, n, i); }, Ua.upload = function (t, e, n, i) { for (var r = 0, a = e.length; r !== a; ++r) {
|
|
2395
2395
|
var o = e[r], s = n[o.id];
|
|
2396
2396
|
!1 !== s.needsUpdate && o.setValue(t, s.value, i);
|
|
2397
|
-
} },
|
|
2397
|
+
} }, Ua.seqWithValue = function (t, e) { for (var n = [], i = 0, r = t.length; i !== r; ++i) {
|
|
2398
2398
|
var a = t[i];
|
|
2399
2399
|
a.id in e && n.push(a);
|
|
2400
2400
|
} return n; };
|
|
@@ -2425,7 +2425,7 @@ function mxfun() {
|
|
|
2425
2425
|
function to(t, e, n, i) { for (var r = "", a = parseInt(e); a < parseInt(n); a++)
|
|
2426
2426
|
r += i.replace(/\[ i \]/g, "[ " + a + " ]").replace(/UNROLLED_LOOP_INDEX/g, a); return r; }
|
|
2427
2427
|
function eo(t) { var e = "precision " + t.precision + " float;\nprecision " + t.precision + " int;"; return "highp" === t.precision ? e += "\n#define HIGH_PRECISION" : "mediump" === t.precision ? e += "\n#define MEDIUM_PRECISION" : "lowp" === t.precision && (e += "\n#define LOW_PRECISION"), e; }
|
|
2428
|
-
function no(t, e, n) { var i, r, a, o, s, l, c, u, h = t.getContext(), d = n.defines, p = n.vertexShader, f = n.fragmentShader, m = (r = "SHADOWMAP_TYPE_BASIC", (i = n).shadowMapType === F ? r = "SHADOWMAP_TYPE_PCF" : i.shadowMapType === z ? r = "SHADOWMAP_TYPE_PCF_SOFT" : i.shadowMapType ===
|
|
2428
|
+
function no(t, e, n) { var i, r, a, o, s, l, c, u, h = t.getContext(), d = n.defines, p = n.vertexShader, f = n.fragmentShader, m = (r = "SHADOWMAP_TYPE_BASIC", (i = n).shadowMapType === F ? r = "SHADOWMAP_TYPE_PCF" : i.shadowMapType === z ? r = "SHADOWMAP_TYPE_PCF_SOFT" : i.shadowMapType === U && (r = "SHADOWMAP_TYPE_VSM"), r), g = function (t) { var e = "ENVMAP_TYPE_CUBE"; if (t.envMap)
|
|
2429
2429
|
switch (t.envMapMode) {
|
|
2430
2430
|
case Ot:
|
|
2431
2431
|
case It:
|
|
@@ -2446,7 +2446,7 @@ function mxfun() {
|
|
|
2446
2446
|
case Rt: e = "ENVMAP_MODE_REFRACTION";
|
|
2447
2447
|
} return e; }(n), y = function (t) { var e = "ENVMAP_BLENDING_NONE"; if (t.envMap)
|
|
2448
2448
|
switch (t.combine) {
|
|
2449
|
-
case
|
|
2449
|
+
case V:
|
|
2450
2450
|
e = "ENVMAP_BLENDING_MULTIPLY";
|
|
2451
2451
|
break;
|
|
2452
2452
|
case j:
|
|
@@ -2476,7 +2476,7 @@ function mxfun() {
|
|
|
2476
2476
|
} return "vec3 " + t + "( vec3 color ) { return " + n + "ToneMapping( color ); }"; }("toneMapping", n.toneMapping) : "", n.dithering ? "#define DITHERING" : "", n.outputEncoding || n.mapEncoding || n.matcapEncoding || n.envMapEncoding || n.emissiveMapEncoding || n.lightMapEncoding ? Lr.encodings_pars_fragment : "", n.mapEncoding ? Wa("mapTexelToLinear", n.mapEncoding) : "", n.matcapEncoding ? Wa("matcapTexelToLinear", n.matcapEncoding) : "", n.envMapEncoding ? Wa("envMapTexelToLinear", n.envMapEncoding) : "", n.emissiveMapEncoding ? Wa("emissiveMapTexelToLinear", n.emissiveMapEncoding) : "", n.lightMapEncoding ? Wa("lightMapTexelToLinear", n.lightMapEncoding) : "", n.outputEncoding ? (l = "linearToOutputTexel", c = n.outputEncoding, u = Ga(c), "vec4 " + l + "( vec4 value ) { return LinearTo" + u[0] + u[1] + "; }") : "", n.depthPacking ? "#define DEPTH_PACKING " + n.depthPacking : "", "\n"].filter(Ja).join("\n")), p = Xa(p = qa(p = Za(p), n), n), f = Xa(f = qa(f = Za(f), n), n), p = Qa(p), f = Qa(f), n.isWebGL2 && !n.isRawShaderMaterial) {
|
|
2477
2477
|
var S = !1, C = /^\s*#version\s+300\s+es\s*\n/;
|
|
2478
2478
|
n.isShaderMaterial && null !== p.match(C) && null !== f.match(C) && (S = !0, p = p.replace(C, ""), f = f.replace(C, "")), o = ["#version 300 es\n", "#define attribute in", "#define varying out", "#define texture2D texture"].join("\n") + "\n" + o, s = ["#version 300 es\n", "#define varying in", S ? "" : "out highp vec4 pc_fragColor;", S ? "" : "#define gl_FragColor pc_fragColor", "#define gl_FragDepthEXT gl_FragDepth", "#define texture2D texture", "#define textureCube texture", "#define texture2DProj textureProj", "#define texture2DLodEXT textureLod", "#define texture2DProjLodEXT textureProjLod", "#define textureCubeLodEXT textureLod", "#define texture2DGradEXT textureGrad", "#define texture2DProjGradEXT textureProjGrad", "#define textureCubeGradEXT textureGrad"].join("\n") + "\n" + s, 0 < M && (o = (o = o.replace("#version 300 es\n", ["#version 300 es\n", "#extension GL_OVR_multiview2 : require", "layout(num_views = " + M + ") in;", "#define VIEW_ID gl_ViewID_OVR"].join("\n"))).replace(["uniform mat4 modelViewMatrix;", "uniform mat4 projectionMatrix;", "uniform mat4 viewMatrix;", "uniform mat3 normalMatrix;"].join("\n"), ["uniform mat4 modelViewMatrices[" + M + "];", "uniform mat4 projectionMatrices[" + M + "];", "uniform mat4 viewMatrices[" + M + "];", "uniform mat3 normalMatrices[" + M + "];", "#define modelViewMatrix modelViewMatrices[VIEW_ID]", "#define projectionMatrix projectionMatrices[VIEW_ID]", "#define viewMatrix viewMatrices[VIEW_ID]", "#define normalMatrix normalMatrices[VIEW_ID]"].join("\n")), s = (s = s.replace("#version 300 es\n", ["#version 300 es\n", "#extension GL_OVR_multiview2 : require", "#define VIEW_ID gl_ViewID_OVR"].join("\n"))).replace("uniform mat4 viewMatrix;", ["uniform mat4 viewMatrices[" + M + "];", "#define viewMatrix viewMatrices[VIEW_ID]"].join("\n")));
|
|
2479
|
-
} var T, E, A = s + f, D =
|
|
2479
|
+
} var T, E, A = s + f, D = Va(h, 35633, o + p), L = Va(h, 35632, A); if (h.attachShader(b, D), h.attachShader(b, L), void 0 !== n.index0AttributeName ? h.bindAttribLocation(b, 0, n.index0AttributeName) : !0 === n.morphTargets && h.bindAttribLocation(b, 0, "position"), h.linkProgram(b), t.debug.checkShaderErrors) {
|
|
2480
2480
|
var O = h.getProgramInfoLog(b).trim(), I = h.getShaderInfoLog(D).trim(), P = h.getShaderInfoLog(L).trim(), R = !0, k = !0;
|
|
2481
2481
|
if (!1 === h.getProgramParameter(b, 35714)) {
|
|
2482
2482
|
R = !1;
|
|
@@ -2486,7 +2486,7 @@ function mxfun() {
|
|
|
2486
2486
|
else
|
|
2487
2487
|
"" !== O ? console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()", O) : "" !== I && "" !== P || (k = !1);
|
|
2488
2488
|
k && (this.diagnostics = { runnable: R, programLog: O, vertexShader: { log: I, prefix: o }, fragmentShader: { log: P, prefix: s } });
|
|
2489
|
-
} return h.deleteShader(D), h.deleteShader(L), this.getUniforms = function () { return void 0 === T && (T = new
|
|
2489
|
+
} return h.deleteShader(D), h.deleteShader(L), this.getUniforms = function () { return void 0 === T && (T = new Ua(h, b)), T; }, this.getAttributes = function () { return void 0 === E && (E = function (t, e) { for (var n = {}, i = t.getProgramParameter(e, 35721), r = 0; r < i; r++) {
|
|
2490
2490
|
var a = t.getActiveAttrib(e, r).name;
|
|
2491
2491
|
n[a] = t.getAttribLocation(e, a);
|
|
2492
2492
|
} return n; }(h, b)), E; }, this.destroy = function () { h.deleteProgram(b), this.program = void 0; }, this.name = n.shaderName, this.id = ja++, this.cacheKey = e, this.usedTimes = 1, this.program = b, this.vertexShader = D, this.fragmentShader = L, this.numMultiviewViews = M, this; }
|
|
@@ -2591,8 +2591,8 @@ function mxfun() {
|
|
|
2591
2591
|
void 0 === f && (f = {}, M[d] = f);
|
|
2592
2592
|
var m = f[p];
|
|
2593
2593
|
void 0 === m && (m = s.clone(), f[p] = m), s = m;
|
|
2594
|
-
} return s.visible = e.visible, s.wireframe = e.wireframe, s.side = a ===
|
|
2595
|
-
if (t.layers.test(e.layers) && (t.isMesh || t.isLine || t.isPoints) && (t.castShadow || t.receiveShadow && r ===
|
|
2594
|
+
} return s.visible = e.visible, s.wireframe = e.wireframe, s.side = a === U ? null !== e.shadowSide ? e.shadowSide : e.side : null !== e.shadowSide ? e.shadowSide : S[e.side], s.clipShadows = e.clipShadows, s.clippingPlanes = e.clippingPlanes, s.clipIntersection = e.clipIntersection, s.wireframeLinewidth = e.wireframeLinewidth, s.linewidth = e.linewidth, !0 === n.isPointLight && !0 === s.isMeshDistanceMaterial && (s.referencePosition.setFromMatrixPosition(n.matrixWorld), s.nearDistance = i, s.farDistance = r), s; } function L(t, e, n, i, r) { if (!1 !== t.visible) {
|
|
2595
|
+
if (t.layers.test(e.layers) && (t.isMesh || t.isLine || t.isPoints) && (t.castShadow || t.receiveShadow && r === U) && (!t.frustumCulled || x.intersectsObject(t))) {
|
|
2596
2596
|
t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse, t.matrixWorld);
|
|
2597
2597
|
var a = v.update(t), o = t.material;
|
|
2598
2598
|
if (Array.isArray(o))
|
|
@@ -2618,20 +2618,20 @@ function mxfun() {
|
|
|
2618
2618
|
if (void 0 !== u) {
|
|
2619
2619
|
_.copy(u.mapSize);
|
|
2620
2620
|
var h = u.getFrameExtents();
|
|
2621
|
-
if (_.multiply(h), w.copy(u.mapSize), (_.x > y || _.y > y) && (console.warn("THREE.WebGLShadowMap:", c, "has shadow exceeding max texture size, reducing"), _.x > y && (w.x = Math.floor(y / h.x), _.x = w.x * h.x, u.mapSize.x = w.x), _.y > y && (w.y = Math.floor(y / h.y), _.y = w.y * h.y, u.mapSize.y = w.y)), null === u.map && !u.isPointLightShadow && this.type ===
|
|
2621
|
+
if (_.multiply(h), w.copy(u.mapSize), (_.x > y || _.y > y) && (console.warn("THREE.WebGLShadowMap:", c, "has shadow exceeding max texture size, reducing"), _.x > y && (w.x = Math.floor(y / h.x), _.x = w.x * h.x, u.mapSize.x = w.x), _.y > y && (w.y = Math.floor(y / h.y), _.y = w.y * h.y, u.mapSize.y = w.y)), null === u.map && !u.isPointLightShadow && this.type === U) {
|
|
2622
2622
|
var d = { minFilter: Ht, magFilter: Ht, format: te };
|
|
2623
|
-
u.map = new
|
|
2623
|
+
u.map = new Ue(_.x, _.y, d), u.map.texture.name = c.name + ".shadowMap", u.mapPass = new Ue(_.x, _.y, d), u.camera.updateProjectionMatrix();
|
|
2624
2624
|
}
|
|
2625
2625
|
if (null === u.map) {
|
|
2626
|
-
d = { minFilter:
|
|
2627
|
-
u.map = new
|
|
2626
|
+
d = { minFilter: Vt, magFilter: Vt, format: te };
|
|
2627
|
+
u.map = new Ue(_.x, _.y, d), u.map.texture.name = c.name + ".shadowMap", u.camera.updateProjectionMatrix();
|
|
2628
2628
|
}
|
|
2629
2629
|
g.setRenderTarget(u.map), g.clear();
|
|
2630
2630
|
for (var p = u.getViewportCount(), f = 0; f < p; f++) {
|
|
2631
2631
|
var m = u.getViewport(f);
|
|
2632
2632
|
b.set(w.x * m.x, w.y * m.y, w.x * m.z, w.y * m.w), o.viewport(b), u.updateMatrices(c, f), x = u.getFrustum(), L(e, n, u.camera, c, this.type);
|
|
2633
2633
|
}
|
|
2634
|
-
u.isPointLightShadow || this.type !==
|
|
2634
|
+
u.isPointLightShadow || this.type !== U || T(u, n);
|
|
2635
2635
|
}
|
|
2636
2636
|
else
|
|
2637
2637
|
console.warn("THREE.WebGLShadowMap:", c, "has no shadow.");
|
|
@@ -2671,14 +2671,14 @@ function mxfun() {
|
|
|
2671
2671
|
u.depthFunc(515);
|
|
2672
2672
|
i = t;
|
|
2673
2673
|
} }, setLocked: function (t) { e = t; }, setClear: function (t) { r !== t && (u.clearDepth(t), r = t); }, reset: function () { e = !1, r = i = n = null; } }; }, o = new function () { var e = !1, n = null, i = null, r = null, a = null, o = null, s = null, l = null, c = null; return { setTest: function (t) { e || (t ? F : z)(2960); }, setMask: function (t) { n === t || e || (u.stencilMask(t), n = t); }, setFunc: function (t, e, n) { i === t && r === e && a === n || (u.stencilFunc(t, e, n), i = t, r = e, a = n); }, setOp: function (t, e, n) { o === t && s === e && l === n || (u.stencilOp(t, e, n), o = t, s = e, l = n); }, setLocked: function (t) { e = t; }, setClear: function (t) { c !== t && (u.clearStencil(t), c = t); }, reset: function () { e = !1, c = l = s = o = a = r = i = n = null; } }; }, e = u.getParameter(34921), s = new Uint8Array(e), l = new Uint8Array(e), c = new Uint8Array(e), h = {}, d = null, p = null, f = null, m = null, g = null, v = null, y = null, x = null, _ = null, w = !1, b = null, M = null, S = null, C = null, T = null, E = u.getParameter(35661), A = !1, D = 0, L = u.getParameter(7938); -1 !== L.indexOf("WebGL") ? (D = parseFloat(/^WebGL\ ([0-9])/.exec(L)[1]), A = 1 <= D) : -1 !== L.indexOf("OpenGL ES") && (D = parseFloat(/^OpenGL\ ES\ ([0-9])/.exec(L)[1]), A = 2 <= D); var O = null, I = {}, P = new ze, R = new ze; function k(t, e, n) { var i = new Uint8Array(4), r = u.createTexture(); u.bindTexture(t, r), u.texParameteri(t, 10241, 9728), u.texParameteri(t, 10240, 9728); for (var a = 0; a < n; a++)
|
|
2674
|
-
u.texImage2D(e + a, 0, 6408, 1, 1, 0, 6408, 5121, i); return r; } var N = {}; function B(t, e) { s[t] = 1, 0 === l[t] && (u.enableVertexAttribArray(t), l[t] = 1), c[t] !== e && ((i ? u : n.get("ANGLE_instanced_arrays"))[i ? "vertexAttribDivisor" : "vertexAttribDivisorANGLE"](t, e), c[t] = e); } function F(t) { !0 !== h[t] && (u.enable(t), h[t] = !0); } function z(t) { !1 !== h[t] && (u.disable(t), h[t] = !1); } N[3553] = k(3553, 3553, 1), N[34067] = k(34067, 34069, 6), r.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), F(2929), a.setFunc(Mt), H(!1), W(Y), F(2884), G(K); var
|
|
2675
|
-
|
|
2674
|
+
u.texImage2D(e + a, 0, 6408, 1, 1, 0, 6408, 5121, i); return r; } var N = {}; function B(t, e) { s[t] = 1, 0 === l[t] && (u.enableVertexAttribArray(t), l[t] = 1), c[t] !== e && ((i ? u : n.get("ANGLE_instanced_arrays"))[i ? "vertexAttribDivisor" : "vertexAttribDivisorANGLE"](t, e), c[t] = e); } function F(t) { !0 !== h[t] && (u.enable(t), h[t] = !0); } function z(t) { !1 !== h[t] && (u.disable(t), h[t] = !1); } N[3553] = k(3553, 3553, 1), N[34067] = k(34067, 34069, 6), r.setClear(0, 0, 0, 1), a.setClear(1), o.setClear(0), F(2929), a.setFunc(Mt), H(!1), W(Y), F(2884), G(K); var U = {}; if (U[rt] = 32774, U[at] = 32778, U[ot] = 32779, i)
|
|
2675
|
+
U[st] = 32775, U[lt] = 32776;
|
|
2676
2676
|
else {
|
|
2677
|
-
var
|
|
2678
|
-
null !==
|
|
2677
|
+
var V = n.get("EXT_blend_minmax");
|
|
2678
|
+
null !== V && (U[st] = V.MIN_EXT, U[lt] = V.MAX_EXT);
|
|
2679
2679
|
} var j = {}; function G(t, e, n, i, r, a, o, s) { if (t !== K) {
|
|
2680
2680
|
if (p || (F(3042), p = !0), t === it)
|
|
2681
|
-
r = r || e, a = a || n, o = o || i, e === m && r === y || (u.blendEquationSeparate(
|
|
2681
|
+
r = r || e, a = a || n, o = o || i, e === m && r === y || (u.blendEquationSeparate(U[e], U[r]), m = e, y = r), n === g && i === v && a === x && o === _ || (u.blendFuncSeparate(j[n], j[i], j[a], j[o]), g = n, v = i, x = a, _ = o), f = t, w = null;
|
|
2682
2682
|
else if (t !== f || s !== w) {
|
|
2683
2683
|
if (m === rt && y === rt || (u.blendEquation(32774), y = m = rt), s)
|
|
2684
2684
|
switch (t) {
|
|
@@ -2746,12 +2746,12 @@ function mxfun() {
|
|
|
2746
2746
|
return l.width = o, l.height = s, l.getContext("2d").drawImage(t, 0, 0, o, s), console.warn("THREE.WebGLRenderer: Texture has been resized from (" + t.width + "x" + t.height + ") to (" + o + "x" + s + ")."), l;
|
|
2747
2747
|
}
|
|
2748
2748
|
return "data" in t && console.warn("THREE.WebGLRenderer: Image in DataTexture is too big (" + t.width + "x" + t.height + ")."), t;
|
|
2749
|
-
} return t; } function T(t) { return Pe.isPowerOfTwo(t.width) && Pe.isPowerOfTwo(t.height); } function E(t, e) { return t.generateMipmaps && e && t.minFilter !==
|
|
2749
|
+
} return t; } function T(t) { return Pe.isPowerOfTwo(t.width) && Pe.isPowerOfTwo(t.height); } function E(t, e) { return t.generateMipmaps && e && t.minFilter !== Vt && t.minFilter !== Ht; } function A(t, e, n, i) { x.generateMipmap(t), b.get(e).__maxMipLevel = Math.log(Math.max(n, i)) * Math.LOG2E; } function D(t, e, n) { if (!1 === C)
|
|
2750
2750
|
return e; if (null !== t) {
|
|
2751
2751
|
if (void 0 !== x[t])
|
|
2752
2752
|
return x[t];
|
|
2753
2753
|
console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '" + t + "'");
|
|
2754
|
-
} var i = e; return 6403 === e && (5126 === n && (i = 33326), 5131 === n && (i = 33325), 5121 === n && (i = 33321)), 6407 === e && (5126 === n && (i = 34837), 5131 === n && (i = 34843), 5121 === n && (i = 32849)), 6408 === e && (5126 === n && (i = 34836), 5131 === n && (i = 34842), 5121 === n && (i = 32856)), 33325 === i || 33326 === i || 34842 === i || 34836 === i ? _.get("EXT_color_buffer_float") : 34843 !== i && 34837 !== i || console.warn("THREE.WebGLRenderer: Floating point textures with RGB format not supported. Please use RGBA instead."), i; } function a(t) { return t ===
|
|
2754
|
+
} var i = e; return 6403 === e && (5126 === n && (i = 33326), 5131 === n && (i = 33325), 5121 === n && (i = 33321)), 6407 === e && (5126 === n && (i = 34837), 5131 === n && (i = 34843), 5121 === n && (i = 32849)), 6408 === e && (5126 === n && (i = 34836), 5131 === n && (i = 34842), 5121 === n && (i = 32856)), 33325 === i || 33326 === i || 34842 === i || 34836 === i ? _.get("EXT_color_buffer_float") : 34843 !== i && 34837 !== i || console.warn("THREE.WebGLRenderer: Floating point textures with RGB format not supported. Please use RGBA instead."), i; } function a(t) { return t === Vt || t === jt || t === Gt ? 9728 : 9729; } function s(t) { var e = t.target; e.removeEventListener("dispose", s), function (t) { var e = b.get(t); if (void 0 === e.__webglInit)
|
|
2755
2755
|
return; x.deleteTexture(e.__webglTexture), b.remove(t); }(e), e.isVideoTexture && o.delete(e), S.memory.textures--; } function L(t) { var e = t.target; e.removeEventListener("dispose", L), function (t) { var e = b.get(t), n = b.get(t.texture); if (!t)
|
|
2756
2756
|
return; void 0 !== n.__webglTexture && x.deleteTexture(n.__webglTexture); t.depthTexture && t.depthTexture.dispose(); if (t.isWebGLCubeRenderTarget)
|
|
2757
2757
|
for (var i = 0; i < 6; i++)
|
|
@@ -2811,13 +2811,13 @@ function mxfun() {
|
|
|
2811
2811
|
}
|
|
2812
2812
|
else
|
|
2813
2813
|
w.activeTexture(33984 + e), w.bindTexture(34067, n.__webglTexture);
|
|
2814
|
-
} } function p(t, e) { w.activeTexture(33984 + e), w.bindTexture(34067, b.get(t).__webglTexture); } var f = {}; f[Ft] = 10497, f[zt] = 33071, f[
|
|
2814
|
+
} } function p(t, e) { w.activeTexture(33984 + e), w.bindTexture(34067, b.get(t).__webglTexture); } var f = {}; f[Ft] = 10497, f[zt] = 33071, f[Ut] = 33648; var y = {}; function O(t, e, n) { n ? (x.texParameteri(t, 10242, f[e.wrapS]), x.texParameteri(t, 10243, f[e.wrapT]), 32879 !== t && 35866 !== t || x.texParameteri(t, 32882, f[e.wrapR]), x.texParameteri(t, 10240, y[e.magFilter]), x.texParameteri(t, 10241, y[e.minFilter])) : (x.texParameteri(t, 10242, 33071), x.texParameteri(t, 10243, 33071), 32879 !== t && 35866 !== t || x.texParameteri(t, 32882, 33071), e.wrapS === zt && e.wrapT === zt || console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), x.texParameteri(t, 10240, a(e.magFilter)), x.texParameteri(t, 10241, a(e.minFilter)), e.minFilter !== Vt && e.minFilter !== Ht && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")); var i = _.get("EXT_texture_filter_anisotropic"); if (i) {
|
|
2815
2815
|
if (e.type === Zt && null === _.get("OES_texture_float_linear"))
|
|
2816
2816
|
return;
|
|
2817
2817
|
if (e.type === $t && null === (C || _.get("OES_texture_half_float_linear")))
|
|
2818
2818
|
return;
|
|
2819
2819
|
(1 < e.anisotropy || b.get(e).__currentAnisotropy) && (x.texParameterf(t, i.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(e.anisotropy, r.getMaxAnisotropy())), b.get(e).__currentAnisotropy = e.anisotropy);
|
|
2820
|
-
} } function I(t, e) { void 0 === t.__webglInit && (t.__webglInit = !0, e.addEventListener("dispose", s), t.__webglTexture = x.createTexture(), S.memory.textures++); } function P(t, e, n) { var i = 3553; e.isDataTexture2DArray && (i = 35866), e.isDataTexture3D && (i = 32879), I(t, e), w.activeTexture(33984 + n), w.bindTexture(i, t.__webglTexture), x.pixelStorei(37440, e.flipY), x.pixelStorei(37441, e.premultiplyAlpha), x.pixelStorei(3317, e.unpackAlignment); var r, a = (r = e, !C && (r.wrapS !== zt || r.wrapT !== zt || r.minFilter !==
|
|
2820
|
+
} } function I(t, e) { void 0 === t.__webglInit && (t.__webglInit = !0, e.addEventListener("dispose", s), t.__webglTexture = x.createTexture(), S.memory.textures++); } function P(t, e, n) { var i = 3553; e.isDataTexture2DArray && (i = 35866), e.isDataTexture3D && (i = 32879), I(t, e), w.activeTexture(33984 + n), w.bindTexture(i, t.__webglTexture), x.pixelStorei(37440, e.flipY), x.pixelStorei(37441, e.premultiplyAlpha), x.pixelStorei(3317, e.unpackAlignment); var r, a = (r = e, !C && (r.wrapS !== zt || r.wrapT !== zt || r.minFilter !== Vt && r.minFilter !== Ht) && !1 === T(e.image)), o = v(e.image, a, !1, m), s = T(o) || C, l = M.convert(e.format), c = M.convert(e.type), u = D(e.internalFormat, l, c); O(i, e, s); var h, d = e.mipmaps; if (e.isDepthTexture) {
|
|
2821
2821
|
if (u = 6402, e.type === Zt) {
|
|
2822
2822
|
if (!1 === C)
|
|
2823
2823
|
throw new Error("Float Depth Texture only supported in WebGL2.0");
|
|
@@ -2895,7 +2895,7 @@ function mxfun() {
|
|
|
2895
2895
|
x.bindFramebuffer(36160, e.__webglFramebuffer[i]), e.__webglDepthbuffer[i] = x.createRenderbuffer(), k(e.__webglDepthbuffer[i], t);
|
|
2896
2896
|
}
|
|
2897
2897
|
else
|
|
2898
|
-
x.bindFramebuffer(36160, e.__webglFramebuffer), e.__webglDepthbuffer = x.createRenderbuffer(), k(e.__webglDepthbuffer, t); x.bindFramebuffer(36160, null); } function B(t) { return C && t.isWebGLMultisampleRenderTarget ? Math.min(n, t.samples) : 0; } y[
|
|
2898
|
+
x.bindFramebuffer(36160, e.__webglFramebuffer), e.__webglDepthbuffer = x.createRenderbuffer(), k(e.__webglDepthbuffer, t); x.bindFramebuffer(36160, null); } function B(t) { return C && t.isWebGLMultisampleRenderTarget ? Math.min(n, t.samples) : 0; } y[Vt] = 9728, y[jt] = 9984, y[Gt] = 9986, y[Ht] = 9729, y[Wt] = 9985; var F = !(y[Jt] = 9987), z = !1; this.allocateTextureUnit = function () { var t = l; return e <= t && console.warn("THREE.WebGLTextures: Trying to use " + t + " texture units while this GPU supports only " + e), l += 1, t; }, this.resetTextureUnits = function () { l = 0; }, this.setTexture2D = h, this.setTexture2DArray = function (t, e) { var n = b.get(t); 0 < t.version && n.__version !== t.version ? P(n, t, e) : (w.activeTexture(33984 + e), w.bindTexture(35866, n.__webglTexture)); }, this.setTexture3D = function (t, e) { var n = b.get(t); 0 < t.version && n.__version !== t.version ? P(n, t, e) : (w.activeTexture(33984 + e), w.bindTexture(32879, n.__webglTexture)); }, this.setTextureCube = d, this.setTextureCubeDynamic = p, this.setupRenderTarget = function (t) { var e = b.get(t), n = b.get(t.texture); t.addEventListener("dispose", L), n.__webglTexture = x.createTexture(), S.memory.textures++; var i = !0 === t.isWebGLCubeRenderTarget, r = !0 === t.isWebGLMultisampleRenderTarget, a = !0 === t.isWebGLMultiviewRenderTarget, o = T(t) || C; if (i) {
|
|
2899
2899
|
e.__webglFramebuffer = [];
|
|
2900
2900
|
for (var s = 0; s < 6; s++)
|
|
2901
2901
|
e.__webglFramebuffer[s] = x.createFramebuffer();
|
|
@@ -2987,7 +2987,7 @@ function mxfun() {
|
|
|
2987
2987
|
if (t === A)
|
|
2988
2988
|
return e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
|
|
2989
2989
|
} return t === D ? null !== (e = n.get("WEBGL_compressed_texture_etc1")) ? e.COMPRESSED_RGB_ETC1_WEBGL : null : t === L || t === I || t === P || t === R || t === k || t === N || t === B || t === ie || t === re || t === ae || t === oe || t === se || t === le || t === ce ? null !== (e = n.get("WEBGL_compressed_texture_astc")) ? t : null : t === Kt ? i ? 34042 : null !== (e = n.get("WEBGL_depth_texture")) ? e.UNSIGNED_INT_24_8_WEBGL : null : void 0; } }; }
|
|
2990
|
-
function So(t, e, n, i) {
|
|
2990
|
+
function So(t, e, n, i) { Ue.call(this, t, e, i), this.depthBuffer = !1, this.stencilBuffer = !1, this.numViews = n; }
|
|
2991
2991
|
function Co(n, d) { var p, i, a, o, r, f, s, l = 2, c = n.extensions, m = n.properties, u = 0; function h(t) { return t.isArrayCamera ? t.cameras : (r[0] = t, r); } this.isAvailable = function () { if (void 0 === s) {
|
|
2992
2992
|
var t = c.get("OVR_multiview2");
|
|
2993
2993
|
if (s = null !== t && !1 === d.getContextAttributes().antialias) {
|
|
@@ -3041,7 +3041,7 @@ function mxfun() {
|
|
|
3041
3041
|
var c = v[r], u = l[r], h = null, d = null;
|
|
3042
3042
|
u && (c.targetRay && null !== (h = e.getPose(u.targetRaySpace, m)) && (c.targetRay.matrix.fromArray(h.transform.matrix), c.targetRay.matrix.decompose(c.targetRay.position, c.targetRay.rotation, c.targetRay.scale)), c.grip && u.gripSpace && null !== (d = e.getPose(u.gripSpace, m)) && (c.grip.matrix.fromArray(d.transform.matrix), c.grip.matrix.decompose(c.grip.position, c.grip.rotation, c.grip.scale))), c.targetRay && (c.targetRay.visible = null !== h), c.grip && (c.grip.visible = null !== d);
|
|
3043
3043
|
} S && S(t, e); }), this.setAnimationLoop = function (t) { S = t; }, this.dispose = function () { }; }
|
|
3044
|
-
function Do(t) { var i = void 0 !== (t = t || {}).canvas ? t.canvas : document.createElementNS("http://www.w3.org/1999/xhtml", "canvas"), e = void 0 !== t.context ? t.context : null, n = void 0 !== t.alpha && t.alpha, r = void 0 === t.depth || t.depth, a = void 0 === t.stencil || t.stencil, o = void 0 !== t.antialias && t.antialias, s = void 0 === t.premultipliedAlpha || t.premultipliedAlpha, l = void 0 !== t.preserveDrawingBuffer && t.preserveDrawingBuffer, c = void 0 !== t.powerPreference ? t.powerPreference : "default", u = void 0 !== t.failIfMajorPerformanceCaveat && t.failIfMajorPerformanceCaveat, f = null, P = null; this.domElement = i, this.debug = { checkShaderErrors: !0 }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.gammaFactor = 2, this.outputEncoding = me, this.physicallyCorrectLights = !1, this.toneMapping = Dt, this.toneMappingExposure = 1, this.toneMappingWhitePoint = 1, this.maxMorphTargets = 8, this.maxMorphNormals = 4; var R, M, k, N, m, B, F, S, C, g, v, h, d, p, T, E, A, y, z = this, x = !1, _ = null, w = 0, b = 0, D = null, L = null,
|
|
3044
|
+
function Do(t) { var i = void 0 !== (t = t || {}).canvas ? t.canvas : document.createElementNS("http://www.w3.org/1999/xhtml", "canvas"), e = void 0 !== t.context ? t.context : null, n = void 0 !== t.alpha && t.alpha, r = void 0 === t.depth || t.depth, a = void 0 === t.stencil || t.stencil, o = void 0 !== t.antialias && t.antialias, s = void 0 === t.premultipliedAlpha || t.premultipliedAlpha, l = void 0 !== t.preserveDrawingBuffer && t.preserveDrawingBuffer, c = void 0 !== t.powerPreference ? t.powerPreference : "default", u = void 0 !== t.failIfMajorPerformanceCaveat && t.failIfMajorPerformanceCaveat, f = null, P = null; this.domElement = i, this.debug = { checkShaderErrors: !0 }, this.autoClear = !0, this.autoClearColor = !0, this.autoClearDepth = !0, this.autoClearStencil = !0, this.sortObjects = !0, this.clippingPlanes = [], this.localClippingEnabled = !1, this.gammaFactor = 2, this.outputEncoding = me, this.physicallyCorrectLights = !1, this.toneMapping = Dt, this.toneMappingExposure = 1, this.toneMappingWhitePoint = 1, this.maxMorphTargets = 8, this.maxMorphNormals = 4; var R, M, k, N, m, B, F, S, C, g, v, h, d, p, T, E, A, y, z = this, x = !1, _ = null, w = 0, b = 0, D = null, L = null, U = -1, O = { geometry: null, program: null, wireframe: !1 }, V = null, I = null, j = new ze, G = new ze, H = null, W = i.width, J = i.height, q = 1, X = null, Y = null, Z = new ze(0, 0, W, J), $ = new ze(0, 0, W, J), K = !1, Q = new Sr, tt = new kr, et = !1, nt = !1, it = new Qe, rt = new We; function at() { return null === D ? q : 1; } try {
|
|
3045
3045
|
var ot = { alpha: n, depth: r, stencil: a, antialias: o, premultipliedAlpha: s, preserveDrawingBuffer: l, powerPreference: c, failIfMajorPerformanceCaveat: u, xrCompatible: !0 };
|
|
3046
3046
|
if (i.addEventListener("webglcontextlost", ht, !1), i.addEventListener("webglcontextrestored", dt, !1), null === (R = e || i.getContext("webgl", ot) || i.getContext("experimental-webgl", ot)))
|
|
3047
3047
|
throw null !== i.getContext("webgl") ? new Error("Error creating WebGL context with your selected attributes.") : new Error("Error creating WebGL context.");
|
|
@@ -3049,7 +3049,7 @@ function mxfun() {
|
|
|
3049
3049
|
}
|
|
3050
3050
|
catch (t) {
|
|
3051
3051
|
throw console.error("THREE.WebGLRenderer: " + t.message), t;
|
|
3052
|
-
} function st() { M = new Nr(R), !1 === (k = new Rr(R, M, t)).isWebGL2 && (M.get("WEBGL_depth_texture"), M.get("OES_texture_float"), M.get("OES_texture_half_float"), M.get("OES_texture_half_float_linear"), M.get("OES_standard_derivatives"), M.get("OES_element_index_uint"), M.get("ANGLE_instanced_arrays")), M.get("OES_texture_float_linear"), y = new Mo(0, M, k), (N = new wo(R, M, k)).scissor(G.copy($).multiplyScalar(q).floor()), N.viewport(j.copy(Z).multiplyScalar(q).floor()), m = new zr, B = new ro, F = new bo(R, M, N, B, k, y, m), S = new Er(R, k), C = new Br(0, S, m), g = new jr(0, C, S, m), T = new
|
|
3052
|
+
} function st() { M = new Nr(R), !1 === (k = new Rr(R, M, t)).isWebGL2 && (M.get("WEBGL_depth_texture"), M.get("OES_texture_float"), M.get("OES_texture_half_float"), M.get("OES_texture_half_float_linear"), M.get("OES_standard_derivatives"), M.get("OES_element_index_uint"), M.get("ANGLE_instanced_arrays")), M.get("OES_texture_float_linear"), y = new Mo(0, M, k), (N = new wo(R, M, k)).scissor(G.copy($).multiplyScalar(q).floor()), N.viewport(j.copy(Z).multiplyScalar(q).floor()), m = new zr, B = new ro, F = new bo(R, M, N, B, k, y, m), S = new Er(R, k), C = new Br(0, S, m), g = new jr(0, C, S, m), T = new Vr(R), v = new io(z, M, k), h = new lo, d = new mo, p = new Ir(z, N, g, s), E = new Pr(R, M, m, k), A = new Fr(R, M, m, k), m.programs = v.programs, z.capabilities = k, z.extensions = M, z.properties = B, z.renderLists = h, z.state = N, z.info = m; } st(); var lt = new Ao(z, R); this.xr = lt; var ct = new Co(z, R), ut = new _o(z, g, k.maxTextureSize); function ht(t) { t.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), x = !0; } function dt() { console.log("THREE.WebGLRenderer: Context Restored."), x = !1, st(); } function pt(t) { var e, n = t.target; n.removeEventListener("dispose", pt), ft(e = n), B.remove(e); } function ft(t) { var e = B.get(t).program; (t.program = void 0) !== e && v.releaseProgram(e); } this.shadowMap = ut, this.getContext = function () { return R; }, this.getContextAttributes = function () { return R.getContextAttributes(); }, this.forceContextLoss = function () { var t = M.get("WEBGL_lose_context"); t && t.loseContext(); }, this.forceContextRestore = function () { var t = M.get("WEBGL_lose_context"); t && t.restoreContext(); }, this.getPixelRatio = function () { return q; }, this.setPixelRatio = function (t) { void 0 !== t && (q = t, this.setSize(W, J, !1)); }, this.getSize = function (t) { return void 0 === t && (console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"), t = new Re), t.set(W, J); }, this.setSize = function (t, e, n) { lt.isPresenting ? console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.") : (W = t, J = e, i.width = Math.floor(t * q), i.height = Math.floor(e * q), !1 !== n && (i.style.width = t + "px", i.style.height = e + "px"), this.setViewport(0, 0, t, e)); }, this.getDrawingBufferSize = function (t) { return void 0 === t && (console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"), t = new Re), t.set(W * q, J * q).floor(); }, this.setDrawingBufferSize = function (t, e, n) { W = t, J = e, q = n, i.width = Math.floor(t * n), i.height = Math.floor(e * n), this.setViewport(0, 0, t, e); }, this.getCurrentViewport = function (t) { return void 0 === t && (console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"), t = new ze), t.copy(j); }, this.getViewport = function (t) { return t.copy(Z); }, this.setViewport = function (t, e, n, i) { t.isVector4 ? Z.set(t.x, t.y, t.z, t.w) : Z.set(t, e, n, i), N.viewport(j.copy(Z).multiplyScalar(q).floor()); }, this.getScissor = function (t) { return t.copy($); }, this.setScissor = function (t, e, n, i) { t.isVector4 ? $.set(t.x, t.y, t.z, t.w) : $.set(t, e, n, i), N.scissor(G.copy($).multiplyScalar(q).floor()); }, this.getScissorTest = function () { return K; }, this.setScissorTest = function (t) { N.setScissorTest(K = t); }, this.setOpaqueSort = function (t) { X = t; }, this.setTransparentSort = function (t) { Y = t; }, this.getClearColor = function () { return p.getClearColor(); }, this.setClearColor = function () { p.setClearColor.apply(p, arguments); }, this.getClearAlpha = function () { return p.getClearAlpha(); }, this.setClearAlpha = function () { p.setClearAlpha.apply(p, arguments); }, this.clear = function (t, e, n) { var i = 0; void 0 !== t && !t || (i |= 16384), void 0 !== e && !e || (i |= 256), void 0 !== n && !n || (i |= 1024), R.clear(i); }, this.clearColor = function () { this.clear(!0, !1, !1); }, this.clearDepth = function () { this.clear(!1, !0, !1); }, this.clearStencil = function () { this.clear(!1, !1, !0); }, this.dispose = function () { i.removeEventListener("webglcontextlost", ht, !1), i.removeEventListener("webglcontextrestored", dt, !1), h.dispose(), d.dispose(), B.dispose(), g.dispose(), lt.dispose(), vt.stop(); }, this.renderBufferImmediate = function (t, e) { N.initAttributes(); var n = B.get(t); t.hasPositions && !n.position && (n.position = R.createBuffer()), t.hasNormals && !n.normal && (n.normal = R.createBuffer()), t.hasUvs && !n.uv && (n.uv = R.createBuffer()), t.hasColors && !n.color && (n.color = R.createBuffer()); var i = e.getAttributes(); t.hasPositions && (R.bindBuffer(34962, n.position), R.bufferData(34962, t.positionArray, 35048), N.enableAttribute(i.position), R.vertexAttribPointer(i.position, 3, 5126, !1, 0, 0)), t.hasNormals && (R.bindBuffer(34962, n.normal), R.bufferData(34962, t.normalArray, 35048), N.enableAttribute(i.normal), R.vertexAttribPointer(i.normal, 3, 5126, !1, 0, 0)), t.hasUvs && (R.bindBuffer(34962, n.uv), R.bufferData(34962, t.uvArray, 35048), N.enableAttribute(i.uv), R.vertexAttribPointer(i.uv, 2, 5126, !1, 0, 0)), t.hasColors && (R.bindBuffer(34962, n.color), R.bufferData(34962, t.colorArray, 35048), N.enableAttribute(i.color), R.vertexAttribPointer(i.color, 3, 5126, !1, 0, 0)), N.disableUnusedAttributes(), R.drawArrays(4, 0, t.count), t.count = 0; }; var mt = new xn; this.renderBufferDirect = function (t, e, n, i, r, a) { null === e && (e = mt); var o = r.isMesh && r.matrixWorld.determinant() < 0, s = wt(t, e, i, r); N.setMaterial(i, o); var l = !1; O.geometry === n.id && O.program === s.id && O.wireframe === (!0 === i.wireframe) || (O.geometry = n.id, O.program = s.id, O.wireframe = !0 === i.wireframe, l = !0), (i.morphTargets || i.morphNormals) && (T.update(r, n, i, s), l = !0); var c = n.index, u = n.attributes.position; if (null === c) {
|
|
3053
3053
|
if (void 0 === u || 0 === u.count)
|
|
3054
3054
|
return;
|
|
3055
3055
|
}
|
|
@@ -3141,11 +3141,11 @@ function mxfun() {
|
|
|
3141
3141
|
for (var d = t.numSupportedMorphTargets = 0; d < z.maxMorphTargets; d++)
|
|
3142
3142
|
0 <= h["morphTarget" + d] && t.numSupportedMorphTargets++; if (t.morphNormals)
|
|
3143
3143
|
for (d = t.numSupportedMorphNormals = 0; d < z.maxMorphNormals; d++)
|
|
3144
|
-
0 <= h["morphNormal" + d] && t.numSupportedMorphNormals++; var p, f = i.uniforms; (t.isShaderMaterial || t.isRawShaderMaterial) && !0 !== t.clipping || (i.numClippingPlanes = tt.numPlanes, i.numIntersection = tt.numIntersection, f.clippingPlanes = tt.uniform), i.fog = e.fog, i.needsLights = (p = t).isMeshLambertMaterial || p.isMeshToonMaterial || p.isMeshPhongMaterial || p.isMeshStandardMaterial || p.isShadowMaterial || p.isShaderMaterial && !0 === p.lights, i.lightsStateVersion = o, i.needsLights && (f.ambientLightColor.value = r.state.ambient, f.lightProbe.value = r.state.probe, f.directionalLights.value = r.state.directional, f.spotLights.value = r.state.spot, f.rectAreaLights.value = r.state.rectArea, f.pointLights.value = r.state.point, f.hemisphereLights.value = r.state.hemi, f.directionalShadowMap.value = r.state.directionalShadowMap, f.directionalShadowMatrix.value = r.state.directionalShadowMatrix, f.spotShadowMap.value = r.state.spotShadowMap, f.spotShadowMatrix.value = r.state.spotShadowMatrix, f.pointShadowMap.value = r.state.pointShadowMap, f.pointShadowMatrix.value = r.state.pointShadowMatrix); var m = i.program.getUniforms(), g =
|
|
3145
|
-
var l = t ===
|
|
3144
|
+
0 <= h["morphNormal" + d] && t.numSupportedMorphNormals++; var p, f = i.uniforms; (t.isShaderMaterial || t.isRawShaderMaterial) && !0 !== t.clipping || (i.numClippingPlanes = tt.numPlanes, i.numIntersection = tt.numIntersection, f.clippingPlanes = tt.uniform), i.fog = e.fog, i.needsLights = (p = t).isMeshLambertMaterial || p.isMeshToonMaterial || p.isMeshPhongMaterial || p.isMeshStandardMaterial || p.isShadowMaterial || p.isShaderMaterial && !0 === p.lights, i.lightsStateVersion = o, i.needsLights && (f.ambientLightColor.value = r.state.ambient, f.lightProbe.value = r.state.probe, f.directionalLights.value = r.state.directional, f.spotLights.value = r.state.spot, f.rectAreaLights.value = r.state.rectArea, f.pointLights.value = r.state.point, f.hemisphereLights.value = r.state.hemi, f.directionalShadowMap.value = r.state.directionalShadowMap, f.directionalShadowMatrix.value = r.state.directionalShadowMatrix, f.spotShadowMap.value = r.state.spotShadowMap, f.spotShadowMatrix.value = r.state.spotShadowMatrix, f.pointShadowMap.value = r.state.pointShadowMap, f.pointShadowMatrix.value = r.state.pointShadowMatrix); var m = i.program.getUniforms(), g = Ua.seqWithValue(m.seq, f); i.uniformsList = g; } function wt(t, e, n, i) { F.resetTextureUnits(); var r = e.fog, a = n.isMeshStandardMaterial ? e.environment : null, o = B.get(n), s = P.state.lights; if (et && (nt || t !== V)) {
|
|
3145
|
+
var l = t === V && n.id === U;
|
|
3146
3146
|
tt.setState(n.clippingPlanes, n.clipIntersection, n.clipShadows, t, o, l);
|
|
3147
|
-
} n.version === o.__version ? (void 0 === o.program || n.fog && o.fog !== r || o.environment !== a || o.needsLights && o.lightsStateVersion !== s.state.version || void 0 !== o.numClippingPlanes && (o.numClippingPlanes !== tt.numPlanes || o.numIntersection !== tt.numIntersection) || o.outputEncoding !== z.outputEncoding) && _t(n, e, i) : (B.update(n, "uniforms", n.uniforms), _t(n, e, i), o.__version = n.version); var c, u, h, d, p, f, m, g, v, y, x, _, w = !1, b = !1, M = !1, S = o.program, C = S.getUniforms(), T = o.uniforms; if (N.useProgram(S.program) && (M = b = w = !0), n.id !==
|
|
3148
|
-
if (0 < S.numMultiviewViews ? ct.updateCameraProjectionMatricesUniform(t, C) : C.setValue(R, "projectionMatrix", t.projectionMatrix), k.logarithmicDepthBuffer && C.setValue(R, "logDepthBufFC", 2 / (Math.log(t.far + 1) / Math.LN2)),
|
|
3147
|
+
} n.version === o.__version ? (void 0 === o.program || n.fog && o.fog !== r || o.environment !== a || o.needsLights && o.lightsStateVersion !== s.state.version || void 0 !== o.numClippingPlanes && (o.numClippingPlanes !== tt.numPlanes || o.numIntersection !== tt.numIntersection) || o.outputEncoding !== z.outputEncoding) && _t(n, e, i) : (B.update(n, "uniforms", n.uniforms), _t(n, e, i), o.__version = n.version); var c, u, h, d, p, f, m, g, v, y, x, _, w = !1, b = !1, M = !1, S = o.program, C = S.getUniforms(), T = o.uniforms; if (N.useProgram(S.program) && (M = b = w = !0), n.id !== U && (U = n.id, b = !0), w || V !== t) {
|
|
3148
|
+
if (0 < S.numMultiviewViews ? ct.updateCameraProjectionMatricesUniform(t, C) : C.setValue(R, "projectionMatrix", t.projectionMatrix), k.logarithmicDepthBuffer && C.setValue(R, "logDepthBufFC", 2 / (Math.log(t.far + 1) / Math.LN2)), V !== t && (V = t, M = b = !0), n.isShaderMaterial || n.isMeshPhongMaterial || n.isMeshToonMaterial || n.isMeshStandardMaterial || n.envMap) {
|
|
3149
3149
|
var E = C.map.cameraPosition;
|
|
3150
3150
|
void 0 !== E && E.setValue(R, rt.setFromMatrixPosition(t.matrixWorld));
|
|
3151
3151
|
}
|
|
@@ -3169,9 +3169,9 @@ function mxfun() {
|
|
|
3169
3169
|
else
|
|
3170
3170
|
C.setOptional(R, A, "boneMatrices");
|
|
3171
3171
|
}
|
|
3172
|
-
} return !b && o.receiveShadow === i.receiveShadow || (o.receiveShadow = i.receiveShadow, C.setValue(R, "receiveShadow", i.receiveShadow)), b && (C.setValue(R, "toneMappingExposure", z.toneMappingExposure), C.setValue(R, "toneMappingWhitePoint", z.toneMappingWhitePoint), o.needsLights && (_ = M, (x = T).ambientLightColor.needsUpdate = _, x.lightProbe.needsUpdate = _, x.directionalLights.needsUpdate = _, x.pointLights.needsUpdate = _, x.spotLights.needsUpdate = _, x.rectAreaLights.needsUpdate = _, x.hemisphereLights.needsUpdate = _), r && n.fog && (y = r, (v = T).fogColor.value.copy(y.color), y.isFog ? (v.fogNear.value = y.near, v.fogFar.value = y.far) : y.isFogExp2 && (v.fogDensity.value = y.density)), n.isMeshBasicMaterial ? bt(T, n) : n.isMeshLambertMaterial ? (bt(T, n), m = T, (g = n).emissiveMap && (m.emissiveMap.value = g.emissiveMap)) : n.isMeshToonMaterial ? (bt(T, n), function (t, e) { t.specular.value.copy(e.specular), t.shininess.value = Math.max(e.shininess, 1e-4), e.gradientMap && (t.gradientMap.value = e.gradientMap); e.emissiveMap && (t.emissiveMap.value = e.emissiveMap); e.bumpMap && (t.bumpMap.value = e.bumpMap, t.bumpScale.value = e.bumpScale, e.side === St && (t.bumpScale.value *= -1)); e.normalMap && (t.normalMap.value = e.normalMap, t.normalScale.value.copy(e.normalScale), e.side === St && t.normalScale.value.negate()); e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); }(T, n)) : n.isMeshPhongMaterial ? (bt(T, n), function (t, e) { t.specular.value.copy(e.specular), t.shininess.value = Math.max(e.shininess, 1e-4), e.emissiveMap && (t.emissiveMap.value = e.emissiveMap); e.bumpMap && (t.bumpMap.value = e.bumpMap, t.bumpScale.value = e.bumpScale, e.side === St && (t.bumpScale.value *= -1)); e.normalMap && (t.normalMap.value = e.normalMap, t.normalScale.value.copy(e.normalScale), e.side === St && t.normalScale.value.negate()); e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); }(T, n)) : n.isMeshStandardMaterial ? (bt(T, n, a), (n.isMeshPhysicalMaterial ? function (t, e, n) { Mt(t, e, n), t.reflectivity.value = e.reflectivity, t.clearcoat.value = e.clearcoat, t.clearcoatRoughness.value = e.clearcoatRoughness, e.sheen && t.sheen.value.copy(e.sheen); e.clearcoatNormalMap && (t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale), t.clearcoatNormalMap.value = e.clearcoatNormalMap, e.side === St && t.clearcoatNormalScale.value.negate()); t.transparency.value = e.transparency; } : Mt)(T, n, a)) : n.isMeshMatcapMaterial ? (bt(T, n), function (t, e) { e.matcap && (t.matcap.value = e.matcap); e.bumpMap && (t.bumpMap.value = e.bumpMap, t.bumpScale.value = e.bumpScale, e.side === St && (t.bumpScale.value *= -1)); e.normalMap && (t.normalMap.value = e.normalMap, t.normalScale.value.copy(e.normalScale), e.side === St && t.normalScale.value.negate()); e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); }(T, n)) : n.isMeshDepthMaterial ? (bt(T, n), p = T, (f = n).displacementMap && (p.displacementMap.value = f.displacementMap, p.displacementScale.value = f.displacementScale, p.displacementBias.value = f.displacementBias)) : n.isMeshDistanceMaterial ? (bt(T, n), function (t, e) { e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); t.referencePosition.value.copy(e.referencePosition), t.nearDistance.value = e.nearDistance, t.farDistance.value = e.farDistance; }(T, n)) : n.isMeshNormalMaterial ? (bt(T, n), function (t, e) { e.bumpMap && (t.bumpMap.value = e.bumpMap, t.bumpScale.value = e.bumpScale, e.side === St && (t.bumpScale.value *= -1)); e.normalMap && (t.normalMap.value = e.normalMap, t.normalScale.value.copy(e.normalScale), e.side === St && t.normalScale.value.negate()); e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); }(T, n)) : n.isLineBasicMaterial ? (d = n, (h = T).diffuse.value.copy(d.color), h.opacity.value = d.opacity, n.isLineDashedMaterial && (u = n, (c = T).dashSize.value = u.dashSize, c.totalSize.value = u.dashSize + u.gapSize, c.scale.value = u.scale)) : n.isPointsMaterial ? function (t, e) { t.diffuse.value.copy(e.color), t.opacity.value = e.opacity, t.size.value = e.size * q, t.scale.value = .5 * J, e.map && (t.map.value = e.map); e.alphaMap && (t.alphaMap.value = e.alphaMap); var n; e.map ? n = e.map : e.alphaMap && (n = e.alphaMap); void 0 !== n && (!0 === n.matrixAutoUpdate && n.updateMatrix(), t.uvTransform.value.copy(n.matrix)); }(T, n) : n.isSpriteMaterial ? function (t, e) { t.diffuse.value.copy(e.color), t.opacity.value = e.opacity, t.rotation.value = e.rotation, e.map && (t.map.value = e.map); e.alphaMap && (t.alphaMap.value = e.alphaMap); var n; e.map ? n = e.map : e.alphaMap && (n = e.alphaMap); void 0 !== n && (!0 === n.matrixAutoUpdate && n.updateMatrix(), t.uvTransform.value.copy(n.matrix)); }(T, n) : n.isShadowMaterial && (T.color.value.copy(n.color), T.opacity.value = n.opacity), void 0 !== T.ltc_1 && (T.ltc_1.value = Cr.LTC_1), void 0 !== T.ltc_2 && (T.ltc_2.value = Cr.LTC_2),
|
|
3172
|
+
} return !b && o.receiveShadow === i.receiveShadow || (o.receiveShadow = i.receiveShadow, C.setValue(R, "receiveShadow", i.receiveShadow)), b && (C.setValue(R, "toneMappingExposure", z.toneMappingExposure), C.setValue(R, "toneMappingWhitePoint", z.toneMappingWhitePoint), o.needsLights && (_ = M, (x = T).ambientLightColor.needsUpdate = _, x.lightProbe.needsUpdate = _, x.directionalLights.needsUpdate = _, x.pointLights.needsUpdate = _, x.spotLights.needsUpdate = _, x.rectAreaLights.needsUpdate = _, x.hemisphereLights.needsUpdate = _), r && n.fog && (y = r, (v = T).fogColor.value.copy(y.color), y.isFog ? (v.fogNear.value = y.near, v.fogFar.value = y.far) : y.isFogExp2 && (v.fogDensity.value = y.density)), n.isMeshBasicMaterial ? bt(T, n) : n.isMeshLambertMaterial ? (bt(T, n), m = T, (g = n).emissiveMap && (m.emissiveMap.value = g.emissiveMap)) : n.isMeshToonMaterial ? (bt(T, n), function (t, e) { t.specular.value.copy(e.specular), t.shininess.value = Math.max(e.shininess, 1e-4), e.gradientMap && (t.gradientMap.value = e.gradientMap); e.emissiveMap && (t.emissiveMap.value = e.emissiveMap); e.bumpMap && (t.bumpMap.value = e.bumpMap, t.bumpScale.value = e.bumpScale, e.side === St && (t.bumpScale.value *= -1)); e.normalMap && (t.normalMap.value = e.normalMap, t.normalScale.value.copy(e.normalScale), e.side === St && t.normalScale.value.negate()); e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); }(T, n)) : n.isMeshPhongMaterial ? (bt(T, n), function (t, e) { t.specular.value.copy(e.specular), t.shininess.value = Math.max(e.shininess, 1e-4), e.emissiveMap && (t.emissiveMap.value = e.emissiveMap); e.bumpMap && (t.bumpMap.value = e.bumpMap, t.bumpScale.value = e.bumpScale, e.side === St && (t.bumpScale.value *= -1)); e.normalMap && (t.normalMap.value = e.normalMap, t.normalScale.value.copy(e.normalScale), e.side === St && t.normalScale.value.negate()); e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); }(T, n)) : n.isMeshStandardMaterial ? (bt(T, n, a), (n.isMeshPhysicalMaterial ? function (t, e, n) { Mt(t, e, n), t.reflectivity.value = e.reflectivity, t.clearcoat.value = e.clearcoat, t.clearcoatRoughness.value = e.clearcoatRoughness, e.sheen && t.sheen.value.copy(e.sheen); e.clearcoatNormalMap && (t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale), t.clearcoatNormalMap.value = e.clearcoatNormalMap, e.side === St && t.clearcoatNormalScale.value.negate()); t.transparency.value = e.transparency; } : Mt)(T, n, a)) : n.isMeshMatcapMaterial ? (bt(T, n), function (t, e) { e.matcap && (t.matcap.value = e.matcap); e.bumpMap && (t.bumpMap.value = e.bumpMap, t.bumpScale.value = e.bumpScale, e.side === St && (t.bumpScale.value *= -1)); e.normalMap && (t.normalMap.value = e.normalMap, t.normalScale.value.copy(e.normalScale), e.side === St && t.normalScale.value.negate()); e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); }(T, n)) : n.isMeshDepthMaterial ? (bt(T, n), p = T, (f = n).displacementMap && (p.displacementMap.value = f.displacementMap, p.displacementScale.value = f.displacementScale, p.displacementBias.value = f.displacementBias)) : n.isMeshDistanceMaterial ? (bt(T, n), function (t, e) { e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); t.referencePosition.value.copy(e.referencePosition), t.nearDistance.value = e.nearDistance, t.farDistance.value = e.farDistance; }(T, n)) : n.isMeshNormalMaterial ? (bt(T, n), function (t, e) { e.bumpMap && (t.bumpMap.value = e.bumpMap, t.bumpScale.value = e.bumpScale, e.side === St && (t.bumpScale.value *= -1)); e.normalMap && (t.normalMap.value = e.normalMap, t.normalScale.value.copy(e.normalScale), e.side === St && t.normalScale.value.negate()); e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias); }(T, n)) : n.isLineBasicMaterial ? (d = n, (h = T).diffuse.value.copy(d.color), h.opacity.value = d.opacity, n.isLineDashedMaterial && (u = n, (c = T).dashSize.value = u.dashSize, c.totalSize.value = u.dashSize + u.gapSize, c.scale.value = u.scale)) : n.isPointsMaterial ? function (t, e) { t.diffuse.value.copy(e.color), t.opacity.value = e.opacity, t.size.value = e.size * q, t.scale.value = .5 * J, e.map && (t.map.value = e.map); e.alphaMap && (t.alphaMap.value = e.alphaMap); var n; e.map ? n = e.map : e.alphaMap && (n = e.alphaMap); void 0 !== n && (!0 === n.matrixAutoUpdate && n.updateMatrix(), t.uvTransform.value.copy(n.matrix)); }(T, n) : n.isSpriteMaterial ? function (t, e) { t.diffuse.value.copy(e.color), t.opacity.value = e.opacity, t.rotation.value = e.rotation, e.map && (t.map.value = e.map); e.alphaMap && (t.alphaMap.value = e.alphaMap); var n; e.map ? n = e.map : e.alphaMap && (n = e.alphaMap); void 0 !== n && (!0 === n.matrixAutoUpdate && n.updateMatrix(), t.uvTransform.value.copy(n.matrix)); }(T, n) : n.isShadowMaterial && (T.color.value.copy(n.color), T.opacity.value = n.opacity), void 0 !== T.ltc_1 && (T.ltc_1.value = Cr.LTC_1), void 0 !== T.ltc_2 && (T.ltc_2.value = Cr.LTC_2), Ua.upload(R, o.uniformsList, T, F), n.isShaderMaterial && (n.uniformsNeedUpdate = !1)), n.isShaderMaterial && !0 === n.uniformsNeedUpdate && (Ua.upload(R, o.uniformsList, T, F), n.uniformsNeedUpdate = !1), n.isSpriteMaterial && C.setValue(R, "center", i.center), 0 < S.numMultiviewViews ? ct.updateObjectMatricesUniforms(i, t, C) : (C.setValue(R, "modelViewMatrix", i.modelViewMatrix), C.setValue(R, "normalMatrix", i.normalMatrix)), C.setValue(R, "modelMatrix", i.matrixWorld), S; } function bt(t, e, n) { t.opacity.value = e.opacity, e.color && t.diffuse.value.copy(e.color), e.emissive && t.emissive.value.copy(e.emissive).multiplyScalar(e.emissiveIntensity), e.map && (t.map.value = e.map), e.alphaMap && (t.alphaMap.value = e.alphaMap), e.specularMap && (t.specularMap.value = e.specularMap); var i, r, a = e.envMap || n; a && (t.envMap.value = a, t.flipEnvMap.value = a.isCubeTexture ? -1 : 1, t.reflectivity.value = e.reflectivity, t.refractionRatio.value = e.refractionRatio, t.maxMipLevel.value = B.get(a).__maxMipLevel), e.lightMap && (t.lightMap.value = e.lightMap, t.lightMapIntensity.value = e.lightMapIntensity), e.aoMap && (t.aoMap.value = e.aoMap, t.aoMapIntensity.value = e.aoMapIntensity), e.map ? i = e.map : e.specularMap ? i = e.specularMap : e.displacementMap ? i = e.displacementMap : e.normalMap ? i = e.normalMap : e.bumpMap ? i = e.bumpMap : e.roughnessMap ? i = e.roughnessMap : e.metalnessMap ? i = e.metalnessMap : e.alphaMap ? i = e.alphaMap : e.emissiveMap && (i = e.emissiveMap), void 0 !== i && (i.isWebGLRenderTarget && (i = i.texture), !0 === i.matrixAutoUpdate && i.updateMatrix(), t.uvTransform.value.copy(i.matrix)), e.aoMap ? r = e.aoMap : e.lightMap && (r = e.lightMap), void 0 !== r && (r.isWebGLRenderTarget && (r = r.texture), !0 === r.matrixAutoUpdate && r.updateMatrix(), t.uv2Transform.value.copy(r.matrix)); } function Mt(t, e, n) { t.roughness.value = e.roughness, t.metalness.value = e.metalness, e.roughnessMap && (t.roughnessMap.value = e.roughnessMap), e.metalnessMap && (t.metalnessMap.value = e.metalnessMap), e.emissiveMap && (t.emissiveMap.value = e.emissiveMap), e.bumpMap && (t.bumpMap.value = e.bumpMap, t.bumpScale.value = e.bumpScale, e.side === St && (t.bumpScale.value *= -1)), e.normalMap && (t.normalMap.value = e.normalMap, t.normalScale.value.copy(e.normalScale), e.side === St && t.normalScale.value.negate()), e.displacementMap && (t.displacementMap.value = e.displacementMap, t.displacementScale.value = e.displacementScale, t.displacementBias.value = e.displacementBias), (e.envMap || n) && (t.envMapIntensity.value = e.envMapIntensity); } vt.setAnimationLoop(function (t) { lt.isPresenting || gt && gt(t); }), "undefined" != typeof window && vt.setContext(window), this.setAnimationLoop = function (t) { gt = t, lt.setAnimationLoop(t), vt.start(); }, this.render = function (t, e) { var n, i; if (void 0 !== arguments[2] && (console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead."), n = arguments[2]), void 0 !== arguments[3] && (console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead."), i = arguments[3]), e && e.isCamera) {
|
|
3173
3173
|
if (!x) {
|
|
3174
|
-
O.geometry = null, O.program = null, O.wireframe = !1,
|
|
3174
|
+
O.geometry = null, O.program = null, O.wireframe = !1, U = -1, !(V = null) === t.autoUpdate && t.updateMatrixWorld(), null === e.parent && e.updateMatrixWorld(), lt.enabled && lt.isPresenting && (e = lt.getCamera(e)), (P = d.get(t, e)).init(), t.onBeforeRender(z, t, e, n || D), it.multiplyMatrices(e.projectionMatrix, e.matrixWorldInverse), Q.setFromProjectionMatrix(it), nt = this.localClippingEnabled, et = tt.init(this.clippingPlanes, nt, e), (f = h.get(t, e)).init(), function t(e, n, i, r) { if (!1 === e.visible)
|
|
3175
3175
|
return; var a = e.layers.test(n.layers); if (a)
|
|
3176
3176
|
if (e.isGroup)
|
|
3177
3177
|
i = e.renderOrder;
|
|
@@ -3244,20 +3244,20 @@ function mxfun() {
|
|
|
3244
3244
|
function Lo(t, e) { this.name = "", this.color = new ci(t), this.density = void 0 !== e ? e : 25e-5; }
|
|
3245
3245
|
function Oo(t, e, n) { this.name = "", this.color = new ci(t), this.near = void 0 !== e ? e : 1, this.far = void 0 !== n ? n : 1e3; }
|
|
3246
3246
|
function Io(t, e) { this.array = t, this.stride = e, this.count = void 0 !== t ? t.length / e : 0, this.usage = Ee, this.updateRange = { offset: 0, count: -1 }, this.version = 0; }
|
|
3247
|
-
So.prototype = Object.assign(Object.create(
|
|
3247
|
+
So.prototype = Object.assign(Object.create(Ue.prototype), { constructor: So, isWebGLMultiviewRenderTarget: !0, copy: function (t) { return Ue.prototype.copy.call(this, t), this.numViews = t.numViews, this; }, setNumViews: function (t) { return this.numViews !== t && (this.numViews = t, this.dispose()), this; } }), To.prototype = Object.assign(Object.create(yr.prototype), { constructor: To, isArrayCamera: !0 }), Eo.prototype = Object.assign(Object.create(yn.prototype), { constructor: Eo, isGroup: !0 }), Object.assign(Ao.prototype, De.prototype), Object.assign(Lo.prototype, { isFogExp2: !0, clone: function () { return new Lo(this.color, this.density); }, toJSON: function () { return { type: "FogExp2", color: this.color.getHex(), density: this.density }; } }), Object.assign(Oo.prototype, { isFog: !0, clone: function () { return new Oo(this.color, this.near, this.far); }, toJSON: function () { return { type: "Fog", color: this.color.getHex(), near: this.near, far: this.far }; } }), Object.defineProperty(Io.prototype, "needsUpdate", { set: function (t) { !0 === t && this.version++; } }), Object.assign(Io.prototype, { isInterleavedBuffer: !0, onUploadCallback: function () { }, setUsage: function (t) { return this.usage = t, this; }, copy: function (t) { return this.array = new t.array.constructor(t.array), this.count = t.count, this.stride = t.stride, this.usage = t.usage, this; }, copyAt: function (t, e, n) { t *= this.stride, n *= e.stride; for (var i = 0, r = this.stride; i < r; i++)
|
|
3248
3248
|
this.array[t + i] = e.array[n + i]; return this; }, set: function (t, e) { return void 0 === e && (e = 0), this.array.set(t, e), this; }, clone: function () { return (new this.constructor).copy(this); }, onUpload: function (t) { return this.onUploadCallback = t, this; } });
|
|
3249
3249
|
var Po, Ro = new We;
|
|
3250
3250
|
function ko(t, e, n, i) { this.data = t, this.itemSize = e, this.offset = n, this.normalized = !0 === i; }
|
|
3251
3251
|
function No(t) { mi.call(this), this.type = "SpriteMaterial", this.color = new ci(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.setValues(t); }
|
|
3252
3252
|
Object.defineProperties(ko.prototype, { count: { get: function () { return this.data.count; } }, array: { get: function () { return this.data.array; } } }), Object.assign(ko.prototype, { isInterleavedBufferAttribute: !0, applyMatrix4: function (t) { for (var e = 0, n = this.data.count; e < n; e++)
|
|
3253
3253
|
Ro.x = this.getX(e), Ro.y = this.getY(e), Ro.z = this.getZ(e), Ro.applyMatrix4(t), this.setXYZ(e, Ro.x, Ro.y, Ro.z); return this; }, setX: function (t, e) { return this.data.array[t * this.data.stride + this.offset] = e, this; }, setY: function (t, e) { return this.data.array[t * this.data.stride + this.offset + 1] = e, this; }, setZ: function (t, e) { return this.data.array[t * this.data.stride + this.offset + 2] = e, this; }, setW: function (t, e) { return this.data.array[t * this.data.stride + this.offset + 3] = e, this; }, getX: function (t) { return this.data.array[t * this.data.stride + this.offset]; }, getY: function (t) { return this.data.array[t * this.data.stride + this.offset + 1]; }, getZ: function (t) { return this.data.array[t * this.data.stride + this.offset + 2]; }, getW: function (t) { return this.data.array[t * this.data.stride + this.offset + 3]; }, setXY: function (t, e, n) { return t = t * this.data.stride + this.offset, this.data.array[t + 0] = e, this.data.array[t + 1] = n, this; }, setXYZ: function (t, e, n, i) { return t = t * this.data.stride + this.offset, this.data.array[t + 0] = e, this.data.array[t + 1] = n, this.data.array[t + 2] = i, this; }, setXYZW: function (t, e, n, i, r) { return t = t * this.data.stride + this.offset, this.data.array[t + 0] = e, this.data.array[t + 1] = n, this.data.array[t + 2] = i, this.data.array[t + 3] = r, this; } }), ((No.prototype = Object.create(mi.prototype)).constructor = No).prototype.isSpriteMaterial = !0, No.prototype.copy = function (t) { return mi.prototype.copy.call(this, t), this.color.copy(t.color), this.map = t.map, this.alphaMap = t.alphaMap, this.rotation = t.rotation, this.sizeAttenuation = t.sizeAttenuation, this; };
|
|
3254
|
-
var Bo = new We, Fo = new We, zo = new We,
|
|
3254
|
+
var Bo = new We, Fo = new We, zo = new We, Uo = new Re, Vo = new Re, jo = new Qe, Go = new We, Ho = new We, Wo = new We, Jo = new Re, qo = new Re, Xo = new Re;
|
|
3255
3255
|
function Yo(t) { if (yn.call(this), this.type = "Sprite", void 0 === Po) {
|
|
3256
3256
|
Po = new Bi;
|
|
3257
3257
|
var e = new Io(new Float32Array([-.5, -.5, 0, 0, 0, .5, -.5, 0, 1, 0, .5, .5, 0, 1, 1, -.5, .5, 0, 0, 1]), 5);
|
|
3258
3258
|
Po.setIndex([0, 1, 2, 0, 2, 3]), Po.setAttribute("position", new ko(e, 3, 0, !1)), Po.setAttribute("uv", new ko(e, 2, 3, !1));
|
|
3259
3259
|
} this.geometry = Po, this.material = void 0 !== t ? t : new No, this.center = new Re(.5, .5); }
|
|
3260
|
-
function Zo(t, e, n, i, r, a) {
|
|
3260
|
+
function Zo(t, e, n, i, r, a) { Uo.subVectors(t, n).addScalar(.5).multiply(i), void 0 !== r ? (Vo.x = a * Uo.x - r * Uo.y, Vo.y = r * Uo.x + a * Uo.y) : Vo.copy(Uo), t.copy(e), t.x += Vo.x, t.y += Vo.y, t.applyMatrix4(jo); }
|
|
3261
3261
|
Yo.prototype = Object.assign(Object.create(yn.prototype), { constructor: Yo, isSprite: !0, raycast: function (t, e) { null === t.camera && console.error('THREE.Sprite: "Raycaster.camera" needs to be set in order to raycast against sprites.'), Fo.setFromMatrixScale(this.matrixWorld), jo.copy(t.camera.matrixWorld), this.modelViewMatrix.multiplyMatrices(t.camera.matrixWorldInverse, this.matrixWorld), zo.setFromMatrixPosition(this.modelViewMatrix), t.camera.isPerspectiveCamera && !1 === this.material.sizeAttenuation && Fo.multiplyScalar(-zo.z); var n, i, r = this.material.rotation; 0 !== r && (i = Math.cos(r), n = Math.sin(r)); var a = this.center; Zo(Go.set(-.5, -.5, 0), zo, a, Fo, n, i), Zo(Ho.set(.5, -.5, 0), zo, a, Fo, n, i), Zo(Wo.set(.5, .5, 0), zo, a, Fo, n, i), Jo.set(0, 0), qo.set(1, 0), Xo.set(1, 1); var o = t.ray.intersectTriangle(Go, Ho, Wo, !1, Bo); if (null !== o || (Zo(Ho.set(-.5, .5, 0), zo, a, Fo, n, i), qo.set(0, 1), null !== (o = t.ray.intersectTriangle(Go, Wo, Ho, !1, Bo)))) {
|
|
3262
3262
|
var s = t.ray.origin.distanceTo(Bo);
|
|
3263
3263
|
s < t.near || s > t.far || e.push({ distance: s, point: Bo.clone(), uv: ai.getUV(Bo, Go, Ho, Wo, Jo, qo, Xo, new Re), face: null, object: this });
|
|
@@ -3395,7 +3395,7 @@ function mxfun() {
|
|
|
3395
3395
|
function Ds(t, e, n, i, r, a, o, s, l, c, u, h) { Fe.call(this, null, a, o, s, l, c, i, r, u, h), this.image = { width: e, height: n }, this.mipmaps = t, this.flipY = !1, this.generateMipmaps = !1; }
|
|
3396
3396
|
function Ls(t, e, n, i, r, a, o, s, l) { Fe.call(this, t, e, n, i, r, a, o, s, l), this.needsUpdate = !0; }
|
|
3397
3397
|
function Os(t, e, n, i, r, a, o, s, l, c) { if ((c = void 0 !== c ? c : ee) !== ee && c !== ne)
|
|
3398
|
-
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat"); void 0 === n && c === ee && (n = Xt), void 0 === n && c === ne && (n = Kt), Fe.call(this, null, i, r, a, o, s, c, n, l), this.image = { width: t, height: e }, this.magFilter = void 0 !== o ? o :
|
|
3398
|
+
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat"); void 0 === n && c === ee && (n = Xt), void 0 === n && c === ne && (n = Kt), Fe.call(this, null, i, r, a, o, s, c, n, l), this.image = { width: t, height: e }, this.magFilter = void 0 !== o ? o : Vt, this.minFilter = void 0 !== s ? s : Vt, this.flipY = !1, this.generateMipmaps = !1; }
|
|
3399
3399
|
function Is(t) { Bi.call(this), this.type = "WireframeGeometry"; var e, n, i, r, a, o, s, l, c, u, h = [], d = [0, 0], p = {}, f = ["a", "b", "c"]; if (t && t.isGeometry) {
|
|
3400
3400
|
var m = t.faces;
|
|
3401
3401
|
for (e = 0, i = m.length; e < i; e++) {
|
|
@@ -3459,9 +3459,9 @@ function mxfun() {
|
|
|
3459
3459
|
} }(); }(), this.setAttribute("position", new Ti(u, 3)), this.setAttribute("normal", new Ti(u.slice(), 3)), this.setAttribute("uv", new Ti(h, 2)), 0 === e ? this.computeVertexNormals() : this.normalizeNormals(); }
|
|
3460
3460
|
function Bs(t, e) { lr.call(this), this.type = "TetrahedronGeometry", this.parameters = { radius: t, detail: e }, this.fromBufferGeometry(new Fs(t, e)), this.mergeVertices(); }
|
|
3461
3461
|
function Fs(t, e) { Ns.call(this, [1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1], [2, 1, 0, 0, 3, 2, 1, 3, 0, 2, 3, 1], t, e), this.type = "TetrahedronBufferGeometry", this.parameters = { radius: t, detail: e }; }
|
|
3462
|
-
function zs(t, e) { lr.call(this), this.type = "OctahedronGeometry", this.parameters = { radius: t, detail: e }, this.fromBufferGeometry(new
|
|
3463
|
-
function
|
|
3464
|
-
function
|
|
3462
|
+
function zs(t, e) { lr.call(this), this.type = "OctahedronGeometry", this.parameters = { radius: t, detail: e }, this.fromBufferGeometry(new Us(t, e)), this.mergeVertices(); }
|
|
3463
|
+
function Us(t, e) { Ns.call(this, [1, 0, 0, -1, 0, 0, 0, 1, 0, 0, -1, 0, 0, 0, 1, 0, 0, -1], [0, 2, 4, 0, 4, 3, 0, 3, 5, 0, 5, 2, 1, 2, 5, 1, 5, 3, 1, 3, 4, 1, 4, 2], t, e), this.type = "OctahedronBufferGeometry", this.parameters = { radius: t, detail: e }; }
|
|
3464
|
+
function Vs(t, e) { lr.call(this), this.type = "IcosahedronGeometry", this.parameters = { radius: t, detail: e }, this.fromBufferGeometry(new js(t, e)), this.mergeVertices(); }
|
|
3465
3465
|
function js(t, e) { var n = (1 + Math.sqrt(5)) / 2; Ns.call(this, [-1, n, 0, 1, n, 0, -1, -n, 0, 1, -n, 0, 0, -1, n, 0, 1, n, 0, -1, -n, 0, 1, -n, n, 0, -1, n, 0, 1, -n, 0, -1, -n, 0, 1], [0, 11, 5, 0, 5, 1, 0, 1, 7, 0, 7, 10, 0, 10, 11, 1, 5, 9, 5, 11, 4, 11, 10, 2, 10, 7, 6, 7, 1, 8, 3, 9, 4, 3, 4, 2, 3, 2, 6, 3, 6, 8, 3, 8, 9, 4, 9, 5, 2, 4, 11, 6, 2, 10, 8, 6, 7, 9, 8, 1], t, e), this.type = "IcosahedronBufferGeometry", this.parameters = { radius: t, detail: e }; }
|
|
3466
3466
|
function Gs(t, e) { lr.call(this), this.type = "DodecahedronGeometry", this.parameters = { radius: t, detail: e }, this.fromBufferGeometry(new Hs(t, e)), this.mergeVertices(); }
|
|
3467
3467
|
function Hs(t, e) { var n = (1 + Math.sqrt(5)) / 2, i = 1 / n; Ns.call(this, [-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, -i, -n, 0, -i, n, 0, i, -n, 0, i, n, -i, -n, 0, -i, n, 0, i, -n, 0, i, n, 0, -n, 0, -i, n, 0, -i, -n, 0, i, n, 0, i], [3, 11, 7, 3, 7, 15, 3, 15, 13, 7, 19, 17, 7, 17, 6, 7, 6, 15, 17, 4, 8, 17, 8, 10, 17, 10, 6, 8, 0, 16, 8, 16, 2, 8, 2, 10, 0, 12, 1, 0, 1, 18, 0, 18, 16, 6, 10, 2, 6, 2, 13, 6, 13, 15, 2, 16, 18, 2, 18, 3, 2, 3, 13, 18, 1, 9, 18, 9, 11, 18, 11, 3, 4, 14, 12, 4, 12, 0, 4, 0, 8, 11, 9, 5, 11, 5, 19, 11, 19, 7, 19, 5, 14, 19, 14, 4, 19, 4, 17, 1, 12, 14, 1, 14, 5, 1, 5, 9], t, e), this.type = "DodecahedronBufferGeometry", this.parameters = { radius: t, detail: e }; }
|
|
@@ -3532,7 +3532,7 @@ function mxfun() {
|
|
|
3532
3532
|
else {
|
|
3533
3533
|
var s = i.morphTargets;
|
|
3534
3534
|
void 0 !== s && 0 < s.length && console.error("THREE.Points.updateMorphTargets() does not support THREE.Geometry. Use THREE.BufferGeometry instead.");
|
|
3535
|
-
} }, clone: function () { return new this.constructor(this.geometry, this.material).copy(this); } }), As.prototype = Object.assign(Object.create(Fe.prototype), { constructor: As, isVideoTexture: !0, update: function () { var t = this.image; t.readyState >= t.HAVE_CURRENT_DATA && (this.needsUpdate = !0); } }), ((Ds.prototype = Object.create(Fe.prototype)).constructor = Ds).prototype.isCompressedTexture = !0, ((Ls.prototype = Object.create(Fe.prototype)).constructor = Ls).prototype.isCanvasTexture = !0, ((Os.prototype = Object.create(Fe.prototype)).constructor = Os).prototype.isDepthTexture = !0, (Is.prototype = Object.create(Bi.prototype)).constructor = Is, (Ps.prototype = Object.create(lr.prototype)).constructor = Ps, (Rs.prototype = Object.create(Bi.prototype)).constructor = Rs, (ks.prototype = Object.create(lr.prototype)).constructor = ks, (Ns.prototype = Object.create(Bi.prototype)).constructor = Ns, (Bs.prototype = Object.create(lr.prototype)).constructor = Bs, (Fs.prototype = Object.create(Ns.prototype)).constructor = Fs, (zs.prototype = Object.create(lr.prototype)).constructor = zs, (
|
|
3535
|
+
} }, clone: function () { return new this.constructor(this.geometry, this.material).copy(this); } }), As.prototype = Object.assign(Object.create(Fe.prototype), { constructor: As, isVideoTexture: !0, update: function () { var t = this.image; t.readyState >= t.HAVE_CURRENT_DATA && (this.needsUpdate = !0); } }), ((Ds.prototype = Object.create(Fe.prototype)).constructor = Ds).prototype.isCompressedTexture = !0, ((Ls.prototype = Object.create(Fe.prototype)).constructor = Ls).prototype.isCanvasTexture = !0, ((Os.prototype = Object.create(Fe.prototype)).constructor = Os).prototype.isDepthTexture = !0, (Is.prototype = Object.create(Bi.prototype)).constructor = Is, (Ps.prototype = Object.create(lr.prototype)).constructor = Ps, (Rs.prototype = Object.create(Bi.prototype)).constructor = Rs, (ks.prototype = Object.create(lr.prototype)).constructor = ks, (Ns.prototype = Object.create(Bi.prototype)).constructor = Ns, (Bs.prototype = Object.create(lr.prototype)).constructor = Bs, (Fs.prototype = Object.create(Ns.prototype)).constructor = Fs, (zs.prototype = Object.create(lr.prototype)).constructor = zs, (Us.prototype = Object.create(Ns.prototype)).constructor = Us, (Vs.prototype = Object.create(lr.prototype)).constructor = Vs, (js.prototype = Object.create(Ns.prototype)).constructor = js, (Gs.prototype = Object.create(lr.prototype)).constructor = Gs, (Hs.prototype = Object.create(Ns.prototype)).constructor = Hs, (Ws.prototype = Object.create(lr.prototype)).constructor = Ws, ((Js.prototype = Object.create(Bi.prototype)).constructor = Js).prototype.toJSON = function () { var t = Bi.prototype.toJSON.call(this); return t.path = this.parameters.path.toJSON(), t; }, (qs.prototype = Object.create(lr.prototype)).constructor = qs, (Xs.prototype = Object.create(Bi.prototype)).constructor = Xs, (Ys.prototype = Object.create(lr.prototype)).constructor = Ys, (Zs.prototype = Object.create(Bi.prototype)).constructor = Zs;
|
|
3536
3536
|
var $s = function (t, e, n) { n = n || 2; var i, r, a, o, s, l, c, u = e && e.length, h = u ? e[0] * n : t.length, d = Ks(t, 0, h, n, !0), p = []; if (!d || d.next === d.prev)
|
|
3537
3537
|
return p; if (u && (d = function (t, e, n, i) { var r, a, o, s, l, c = []; for (r = 0, a = e.length; r < a; r++)
|
|
3538
3538
|
o = e[r] * i, s = r < a - 1 ? e[r + 1] * i : t.length, (l = Ks(t, o, s, i, !1)) === l.next && (l.steiner = !0), c.push(ll(l)); for (c.sort(al), r = 0; r < c.length; r++)
|
|
@@ -3682,17 +3682,17 @@ function mxfun() {
|
|
|
3682
3682
|
else {
|
|
3683
3683
|
var y = !1;
|
|
3684
3684
|
o > Number.EPSILON ? l > Number.EPSILON && (y = !0) : o < -Number.EPSILON ? l < -Number.EPSILON && (y = !0) : Math.sign(s) === Math.sign(c) && (y = !0), a = y ? (i = -s, r = o, Math.sqrt(u)) : (i = o, r = s, Math.sqrt(u / 2));
|
|
3685
|
-
} return new Re(i / a, r / a); } for (var N = [], B = 0, F = C.length, z = F - 1,
|
|
3686
|
-
z === F && (z = 0),
|
|
3687
|
-
for (v = M[y],
|
|
3688
|
-
z === F && (z = 0),
|
|
3689
|
-
G.push(
|
|
3685
|
+
} return new Re(i / a, r / a); } for (var N = [], B = 0, F = C.length, z = F - 1, U = B + 1; B < F; B++, z++, U++)
|
|
3686
|
+
z === F && (z = 0), U === F && (U = 0), N[B] = k(C[B], C[z], C[U]); var V, j, G = [], H = N.concat(); for (y = 0, x = M.length; y < x; y++) {
|
|
3687
|
+
for (v = M[y], V = [], B = 0, z = (F = v.length) - 1, U = B + 1; B < F; B++, z++, U++)
|
|
3688
|
+
z === F && (z = 0), U === F && (U = 0), V[B] = k(v[B], v[z], v[U]);
|
|
3689
|
+
G.push(V), H = H.concat(V);
|
|
3690
3690
|
} for (E = 0; E < c; E++) {
|
|
3691
3691
|
for (D = E / c, L = a * Math.cos(D * Math.PI / 2), A = o * Math.sin(D * Math.PI / 2) + s, B = 0, F = C.length; B < F; B++)
|
|
3692
3692
|
J((O = T(C[B], N[B], A)).x, O.y, -L);
|
|
3693
3693
|
for (y = 0, x = M.length; y < x; y++)
|
|
3694
|
-
for (v = M[y],
|
|
3695
|
-
J((O = T(v[B],
|
|
3694
|
+
for (v = M[y], V = G[y], B = 0, F = v.length; B < F; B++)
|
|
3695
|
+
J((O = T(v[B], V[B], A)).x, O.y, -L);
|
|
3696
3696
|
} for (A = o + s, B = 0; B < P; B++)
|
|
3697
3697
|
O = r ? T(b[B], H[B], A) : b[B], _ ? (m.copy(p.normals[0]).multiplyScalar(O.x), f.copy(p.binormals[0]).multiplyScalar(O.y), g.copy(d[0]).add(m).add(f), J(g.x, g.y, g.z)) : J(O.x, O.y, 0); for (j = 1; j <= l; j++)
|
|
3698
3698
|
for (B = 0; B < P; B++)
|
|
@@ -3700,8 +3700,8 @@ function mxfun() {
|
|
|
3700
3700
|
for (D = E / c, L = a * Math.cos(D * Math.PI / 2), A = o * Math.sin(D * Math.PI / 2) + s, B = 0, F = C.length; B < F; B++)
|
|
3701
3701
|
J((O = T(C[B], N[B], A)).x, O.y, n + L);
|
|
3702
3702
|
for (y = 0, x = M.length; y < x; y++)
|
|
3703
|
-
for (v = M[y],
|
|
3704
|
-
O = T(v[B],
|
|
3703
|
+
for (v = M[y], V = G[y], B = 0, F = v.length; B < F; B++)
|
|
3704
|
+
O = T(v[B], V[B], A), _ ? J(O.x, O.y + d[l - 1].y, d[l - 1].x + L) : J(O.x, O.y, n + L);
|
|
3705
3705
|
} function W(t, e) { var n, i; for (B = t.length; 0 <= --B;) {
|
|
3706
3706
|
(i = (n = B) - 1) < 0 && (i = t.length - 1);
|
|
3707
3707
|
var r = 0, a = l + 2 * c;
|
|
@@ -3825,23 +3825,23 @@ function mxfun() {
|
|
|
3825
3825
|
C.push(p, f, g), C.push(f, m, g), r += 6;
|
|
3826
3826
|
} S.addGroup(I, r, 0), I += r; }(), !1 === t && (0 < v && e(!0), 0 < y && e(!1)), this.setIndex(C), this.setAttribute("position", new Ti(T, 3)), this.setAttribute("normal", new Ti(E, 3)), this.setAttribute("uv", new Ti(A, 2)); }
|
|
3827
3827
|
function zl(t, e, n, i, r, a, o) { Bl.call(this, 0, t, e, n, i, r, a, o), this.type = "ConeGeometry", this.parameters = { radius: t, height: e, radialSegments: n, heightSegments: i, openEnded: r, thetaStart: a, thetaLength: o }; }
|
|
3828
|
-
function
|
|
3829
|
-
function
|
|
3828
|
+
function Ul(t, e, n, i, r, a, o) { Fl.call(this, 0, t, e, n, i, r, a, o), this.type = "ConeBufferGeometry", this.parameters = { radius: t, height: e, radialSegments: n, heightSegments: i, openEnded: r, thetaStart: a, thetaLength: o }; }
|
|
3829
|
+
function Vl(t, e, n, i) { lr.call(this), this.type = "CircleGeometry", this.parameters = { radius: t, segments: e, thetaStart: n, thetaLength: i }, this.fromBufferGeometry(new jl(t, e, n, i)), this.mergeVertices(); }
|
|
3830
3830
|
function jl(t, e, n, i) { Bi.call(this), this.type = "CircleBufferGeometry", this.parameters = { radius: t, segments: e, thetaStart: n, thetaLength: i }, t = t || 1, e = void 0 !== e ? Math.max(3, e) : 8, n = void 0 !== n ? n : 0, i = void 0 !== i ? i : 2 * Math.PI; var r, a, o = [], s = [], l = [], c = [], u = new We, h = new Re; for (s.push(0, 0, 0), l.push(0, 0, 1), c.push(.5, .5), a = 0, r = 3; a <= e; a++, r += 3) {
|
|
3831
3831
|
var d = n + a / e * i;
|
|
3832
3832
|
u.x = t * Math.cos(d), u.y = t * Math.sin(d), s.push(u.x, u.y, u.z), l.push(0, 0, 1), h.x = (s[r] / t + 1) / 2, h.y = (s[r + 1] / t + 1) / 2, c.push(h.x, h.y);
|
|
3833
3833
|
} for (r = 1; r <= e; r++)
|
|
3834
3834
|
o.push(r, r + 1, 0); this.setIndex(o), this.setAttribute("position", new Ti(s, 3)), this.setAttribute("normal", new Ti(l, 3)), this.setAttribute("uv", new Ti(c, 2)); }
|
|
3835
|
-
(Cl.prototype = Object.create(lr.prototype)).constructor = Cl, (Tl.prototype = Object.create(bl.prototype)).constructor = Tl, (El.prototype = Object.create(lr.prototype)).constructor = El, (Al.prototype = Object.create(Bi.prototype)).constructor = Al, (Dl.prototype = Object.create(lr.prototype)).constructor = Dl, (Ll.prototype = Object.create(Bi.prototype)).constructor = Ll, (Ol.prototype = Object.create(lr.prototype)).constructor = Ol, (Il.prototype = Object.create(Bi.prototype)).constructor = Il, ((Pl.prototype = Object.create(lr.prototype)).constructor = Pl).prototype.toJSON = function () { var t = lr.prototype.toJSON.call(this); return kl(this.parameters.shapes, t); }, ((Rl.prototype = Object.create(Bi.prototype)).constructor = Rl).prototype.toJSON = function () { var t = Bi.prototype.toJSON.call(this); return kl(this.parameters.shapes, t); }, (Nl.prototype = Object.create(Bi.prototype)).constructor = Nl, (Bl.prototype = Object.create(lr.prototype)).constructor = Bl, (Fl.prototype = Object.create(Bi.prototype)).constructor = Fl, (zl.prototype = Object.create(Bl.prototype)).constructor = zl, (
|
|
3836
|
-
var Gl = Object.freeze({ __proto__: null, WireframeGeometry: Is, ParametricGeometry: Ps, ParametricBufferGeometry: Rs, TetrahedronGeometry: Bs, TetrahedronBufferGeometry: Fs, OctahedronGeometry: zs, OctahedronBufferGeometry:
|
|
3835
|
+
(Cl.prototype = Object.create(lr.prototype)).constructor = Cl, (Tl.prototype = Object.create(bl.prototype)).constructor = Tl, (El.prototype = Object.create(lr.prototype)).constructor = El, (Al.prototype = Object.create(Bi.prototype)).constructor = Al, (Dl.prototype = Object.create(lr.prototype)).constructor = Dl, (Ll.prototype = Object.create(Bi.prototype)).constructor = Ll, (Ol.prototype = Object.create(lr.prototype)).constructor = Ol, (Il.prototype = Object.create(Bi.prototype)).constructor = Il, ((Pl.prototype = Object.create(lr.prototype)).constructor = Pl).prototype.toJSON = function () { var t = lr.prototype.toJSON.call(this); return kl(this.parameters.shapes, t); }, ((Rl.prototype = Object.create(Bi.prototype)).constructor = Rl).prototype.toJSON = function () { var t = Bi.prototype.toJSON.call(this); return kl(this.parameters.shapes, t); }, (Nl.prototype = Object.create(Bi.prototype)).constructor = Nl, (Bl.prototype = Object.create(lr.prototype)).constructor = Bl, (Fl.prototype = Object.create(Bi.prototype)).constructor = Fl, (zl.prototype = Object.create(Bl.prototype)).constructor = zl, (Ul.prototype = Object.create(Fl.prototype)).constructor = Ul, (Vl.prototype = Object.create(lr.prototype)).constructor = Vl, (jl.prototype = Object.create(Bi.prototype)).constructor = jl;
|
|
3836
|
+
var Gl = Object.freeze({ __proto__: null, WireframeGeometry: Is, ParametricGeometry: Ps, ParametricBufferGeometry: Rs, TetrahedronGeometry: Bs, TetrahedronBufferGeometry: Fs, OctahedronGeometry: zs, OctahedronBufferGeometry: Us, IcosahedronGeometry: Vs, IcosahedronBufferGeometry: js, DodecahedronGeometry: Gs, DodecahedronBufferGeometry: Hs, PolyhedronGeometry: ks, PolyhedronBufferGeometry: Ns, TubeGeometry: Ws, TubeBufferGeometry: Js, TorusKnotGeometry: qs, TorusKnotBufferGeometry: Xs, TorusGeometry: Ys, TorusBufferGeometry: Zs, TextGeometry: Cl, TextBufferGeometry: Tl, SphereGeometry: El, SphereBufferGeometry: Al, RingGeometry: Dl, RingBufferGeometry: Ll, PlaneGeometry: Ar, PlaneBufferGeometry: Dr, LatheGeometry: Ol, LatheBufferGeometry: Il, ShapeGeometry: Pl, ShapeBufferGeometry: Rl, ExtrudeGeometry: wl, ExtrudeBufferGeometry: bl, EdgesGeometry: Nl, ConeGeometry: zl, ConeBufferGeometry: Ul, CylinderGeometry: Bl, CylinderBufferGeometry: Fl, CircleGeometry: Vl, CircleBufferGeometry: jl, BoxGeometry: cr, BoxBufferGeometry: ur });
|
|
3837
3837
|
function Hl(t) { mi.call(this), this.type = "ShadowMaterial", this.color = new ci(0), this.transparent = !0, this.setValues(t); }
|
|
3838
3838
|
function Wl(t) { gr.call(this, t), this.type = "RawShaderMaterial"; }
|
|
3839
3839
|
function Jl(t) { mi.call(this), this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new ci(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ci(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Me, this.normalScale = new Re(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapIntensity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(t); }
|
|
3840
3840
|
function ql(t) { Jl.call(this), this.defines = { STANDARD: "", PHYSICAL: "" }, this.type = "MeshPhysicalMaterial", this.reflectivity = .5, this.clearcoat = 0, this.clearcoatRoughness = 0, this.sheen = null, this.clearcoatNormalScale = new Re(1, 1), this.clearcoatNormalMap = null, this.transparency = 0, this.setValues(t); }
|
|
3841
|
-
function Xl(t) { mi.call(this), this.type = "MeshPhongMaterial", this.color = new ci(16777215), this.specular = new ci(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ci(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Me, this.normalScale = new Re(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine =
|
|
3841
|
+
function Xl(t) { mi.call(this), this.type = "MeshPhongMaterial", this.color = new ci(16777215), this.specular = new ci(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ci(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Me, this.normalScale = new Re(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = V, this.reflectivity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(t); }
|
|
3842
3842
|
function Yl(t) { mi.call(this), this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new ci(16777215), this.specular = new ci(1118481), this.shininess = 30, this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ci(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Me, this.normalScale = new Re(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(t); }
|
|
3843
3843
|
function Zl(t) { mi.call(this), this.type = "MeshNormalMaterial", this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Me, this.normalScale = new Re(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(t); }
|
|
3844
|
-
function $l(t) { mi.call(this), this.type = "MeshLambertMaterial", this.color = new ci(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ci(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine =
|
|
3844
|
+
function $l(t) { mi.call(this), this.type = "MeshLambertMaterial", this.color = new ci(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ci(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = V, this.reflectivity = 1, this.refractionRatio = .98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(t); }
|
|
3845
3845
|
function Kl(t) { mi.call(this), this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new ci(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Me, this.normalScale = new Re(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(t); }
|
|
3846
3846
|
function Ql(t) { us.call(this), this.type = "LineDashedMaterial", this.scale = 1, this.dashSize = 3, this.gapSize = 1, this.setValues(t); }
|
|
3847
3847
|
((Hl.prototype = Object.create(mi.prototype)).constructor = Hl).prototype.isShadowMaterial = !0, Hl.prototype.copy = function (t) { return mi.prototype.copy.call(this, t), this.color.copy(t.color), this; }, ((Wl.prototype = Object.create(gr.prototype)).constructor = Wl).prototype.isRawShaderMaterial = !0, ((Jl.prototype = Object.create(mi.prototype)).constructor = Jl).prototype.isMeshStandardMaterial = !0, Jl.prototype.copy = function (t) { return mi.prototype.copy.call(this, t), this.defines = { STANDARD: "" }, this.color.copy(t.color), this.roughness = t.roughness, this.metalness = t.metalness, this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.emissive.copy(t.emissive), this.emissiveMap = t.emissiveMap, this.emissiveIntensity = t.emissiveIntensity, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.roughnessMap = t.roughnessMap, this.metalnessMap = t.metalnessMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapIntensity = t.envMapIntensity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.skinning = t.skinning, this.morphTargets = t.morphTargets, this.morphNormals = t.morphNormals, this; }, ((ql.prototype = Object.create(Jl.prototype)).constructor = ql).prototype.isMeshPhysicalMaterial = !0, ql.prototype.copy = function (t) { return Jl.prototype.copy.call(this, t), this.defines = { STANDARD: "", PHYSICAL: "" }, this.reflectivity = t.reflectivity, this.clearcoat = t.clearcoat, this.clearcoatRoughness = t.clearcoatRoughness, t.sheen ? this.sheen = (this.sheen || new ci).copy(t.sheen) : this.sheen = null, this.clearcoatNormalMap = t.clearcoatNormalMap, this.clearcoatNormalScale.copy(t.clearcoatNormalScale), this.transparency = t.transparency, this; }, ((Xl.prototype = Object.create(mi.prototype)).constructor = Xl).prototype.isMeshPhongMaterial = !0, Xl.prototype.copy = function (t) { return mi.prototype.copy.call(this, t), this.color.copy(t.color), this.specular.copy(t.specular), this.shininess = t.shininess, this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.emissive.copy(t.emissive), this.emissiveMap = t.emissiveMap, this.emissiveIntensity = t.emissiveIntensity, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.skinning = t.skinning, this.morphTargets = t.morphTargets, this.morphNormals = t.morphNormals, this; }, ((Yl.prototype = Object.create(mi.prototype)).constructor = Yl).prototype.isMeshToonMaterial = !0, Yl.prototype.copy = function (t) { return mi.prototype.copy.call(this, t), this.color.copy(t.color), this.specular.copy(t.specular), this.shininess = t.shininess, this.map = t.map, this.gradientMap = t.gradientMap, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.emissive.copy(t.emissive), this.emissiveMap = t.emissiveMap, this.emissiveIntensity = t.emissiveIntensity, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.skinning = t.skinning, this.morphTargets = t.morphTargets, this.morphNormals = t.morphNormals, this; }, ((Zl.prototype = Object.create(mi.prototype)).constructor = Zl).prototype.isMeshNormalMaterial = !0, Zl.prototype.copy = function (t) { return mi.prototype.copy.call(this, t), this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.skinning = t.skinning, this.morphTargets = t.morphTargets, this.morphNormals = t.morphNormals, this; }, (($l.prototype = Object.create(mi.prototype)).constructor = $l).prototype.isMeshLambertMaterial = !0, $l.prototype.copy = function (t) { return mi.prototype.copy.call(this, t), this.color.copy(t.color), this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.emissive.copy(t.emissive), this.emissiveMap = t.emissiveMap, this.emissiveIntensity = t.emissiveIntensity, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.skinning = t.skinning, this.morphTargets = t.morphTargets, this.morphNormals = t.morphNormals, this; }, ((Kl.prototype = Object.create(mi.prototype)).constructor = Kl).prototype.isMeshMatcapMaterial = !0, Kl.prototype.copy = function (t) { return mi.prototype.copy.call(this, t), this.defines = { MATCAP: "" }, this.color.copy(t.color), this.matcap = t.matcap, this.map = t.map, this.bumpMap = t.bumpMap, this.bumpScale = t.bumpScale, this.normalMap = t.normalMap, this.normalMapType = t.normalMapType, this.normalScale.copy(t.normalScale), this.displacementMap = t.displacementMap, this.displacementScale = t.displacementScale, this.displacementBias = t.displacementBias, this.alphaMap = t.alphaMap, this.skinning = t.skinning, this.morphTargets = t.morphTargets, this.morphNormals = t.morphNormals, this; }, ((Ql.prototype = Object.create(us.prototype)).constructor = Ql).prototype.isLineDashedMaterial = !0, Ql.prototype.copy = function (t) { return us.prototype.copy.call(this, t), this.scale = t.scale, this.dashSize = t.dashSize, this.gapSize = t.gapSize, this; };
|
|
@@ -4233,8 +4233,8 @@ function mxfun() {
|
|
|
4233
4233
|
function Bc(t, e, n, i, r) { var a = .5 * (i - e), o = .5 * (r - n), s = t * t; return (2 * n - 2 * i + a + o) * (t * s) + (-3 * n + 3 * i - 2 * a - o) * s + a * t + n; }
|
|
4234
4234
|
function Fc(t, e, n, i) { return (o = 1 - t) * o * e + 2 * (1 - (a = t)) * a * n + (r = t) * r * i; var r, a, o; }
|
|
4235
4235
|
function zc(t, e, n, i, r) { return (c = 1 - t) * c * c * e + 3 * (l = 1 - (s = t)) * l * s * n + 3 * (1 - (o = t)) * o * o * i + (a = t) * a * a * r; var a, o, s, l, c; }
|
|
4236
|
-
function
|
|
4237
|
-
function
|
|
4236
|
+
function Uc(t, e, n, i) { Ac.call(this), this.type = "CubicBezierCurve", this.v0 = t || new Re, this.v1 = e || new Re, this.v2 = n || new Re, this.v3 = i || new Re; }
|
|
4237
|
+
function Vc(t, e, n, i) { Ac.call(this), this.type = "CubicBezierCurve3", this.v0 = t || new We, this.v1 = e || new We, this.v2 = n || new We, this.v3 = i || new We; }
|
|
4238
4238
|
function jc(t, e) { Ac.call(this), this.type = "LineCurve", this.v1 = t || new Re, this.v2 = e || new Re; }
|
|
4239
4239
|
function Gc(t, e) { Ac.call(this), this.type = "LineCurve3", this.v1 = t || new We, this.v2 = e || new We; }
|
|
4240
4240
|
function Hc(t, e, n) { Ac.call(this), this.type = "QuadraticBezierCurve", this.v0 = t || new Re, this.v1 = e || new Re, this.v2 = n || new Re; }
|
|
@@ -4254,7 +4254,7 @@ function mxfun() {
|
|
|
4254
4254
|
} return t.closed = this.closed, t.curveType = this.curveType, t.tension = this.tension, t; }, Nc.prototype.fromJSON = function (t) { Ac.prototype.fromJSON.call(this, t), this.points = []; for (var e = 0, n = t.points.length; e < n; e++) {
|
|
4255
4255
|
var i = t.points[e];
|
|
4256
4256
|
this.points.push((new We).fromArray(i));
|
|
4257
|
-
} return this.closed = t.closed, this.curveType = t.curveType, this.tension = t.tension, this; }, ((
|
|
4257
|
+
} return this.closed = t.closed, this.curveType = t.curveType, this.tension = t.tension, this; }, ((Uc.prototype = Object.create(Ac.prototype)).constructor = Uc).prototype.isCubicBezierCurve = !0, Uc.prototype.getPoint = function (t, e) { var n = e || new Re, i = this.v0, r = this.v1, a = this.v2, o = this.v3; return n.set(zc(t, i.x, r.x, a.x, o.x), zc(t, i.y, r.y, a.y, o.y)), n; }, Uc.prototype.copy = function (t) { return Ac.prototype.copy.call(this, t), this.v0.copy(t.v0), this.v1.copy(t.v1), this.v2.copy(t.v2), this.v3.copy(t.v3), this; }, Uc.prototype.toJSON = function () { var t = Ac.prototype.toJSON.call(this); return t.v0 = this.v0.toArray(), t.v1 = this.v1.toArray(), t.v2 = this.v2.toArray(), t.v3 = this.v3.toArray(), t; }, Uc.prototype.fromJSON = function (t) { return Ac.prototype.fromJSON.call(this, t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this.v3.fromArray(t.v3), this; }, ((Vc.prototype = Object.create(Ac.prototype)).constructor = Vc).prototype.isCubicBezierCurve3 = !0, Vc.prototype.getPoint = function (t, e) { var n = e || new We, i = this.v0, r = this.v1, a = this.v2, o = this.v3; return n.set(zc(t, i.x, r.x, a.x, o.x), zc(t, i.y, r.y, a.y, o.y), zc(t, i.z, r.z, a.z, o.z)), n; }, Vc.prototype.copy = function (t) { return Ac.prototype.copy.call(this, t), this.v0.copy(t.v0), this.v1.copy(t.v1), this.v2.copy(t.v2), this.v3.copy(t.v3), this; }, Vc.prototype.toJSON = function () { var t = Ac.prototype.toJSON.call(this); return t.v0 = this.v0.toArray(), t.v1 = this.v1.toArray(), t.v2 = this.v2.toArray(), t.v3 = this.v3.toArray(), t; }, Vc.prototype.fromJSON = function (t) { return Ac.prototype.fromJSON.call(this, t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this.v3.fromArray(t.v3), this; }, ((jc.prototype = Object.create(Ac.prototype)).constructor = jc).prototype.isLineCurve = !0, jc.prototype.getPoint = function (t, e) { var n = e || new Re; return 1 === t ? n.copy(this.v2) : (n.copy(this.v2).sub(this.v1), n.multiplyScalar(t).add(this.v1)), n; }, jc.prototype.getPointAt = function (t, e) { return this.getPoint(t, e); }, jc.prototype.getTangent = function () { return this.v2.clone().sub(this.v1).normalize(); }, jc.prototype.copy = function (t) { return Ac.prototype.copy.call(this, t), this.v1.copy(t.v1), this.v2.copy(t.v2), this; }, jc.prototype.toJSON = function () { var t = Ac.prototype.toJSON.call(this); return t.v1 = this.v1.toArray(), t.v2 = this.v2.toArray(), t; }, jc.prototype.fromJSON = function (t) { return Ac.prototype.fromJSON.call(this, t), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this; }, ((Gc.prototype = Object.create(Ac.prototype)).constructor = Gc).prototype.isLineCurve3 = !0, Gc.prototype.getPoint = function (t, e) { var n = e || new We; return 1 === t ? n.copy(this.v2) : (n.copy(this.v2).sub(this.v1), n.multiplyScalar(t).add(this.v1)), n; }, Gc.prototype.getPointAt = function (t, e) { return this.getPoint(t, e); }, Gc.prototype.copy = function (t) { return Ac.prototype.copy.call(this, t), this.v1.copy(t.v1), this.v2.copy(t.v2), this; }, Gc.prototype.toJSON = function () { var t = Ac.prototype.toJSON.call(this); return t.v1 = this.v1.toArray(), t.v2 = this.v2.toArray(), t; }, Gc.prototype.fromJSON = function (t) { return Ac.prototype.fromJSON.call(this, t), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this; }, ((Hc.prototype = Object.create(Ac.prototype)).constructor = Hc).prototype.isQuadraticBezierCurve = !0, Hc.prototype.getPoint = function (t, e) { var n = e || new Re, i = this.v0, r = this.v1, a = this.v2; return n.set(Fc(t, i.x, r.x, a.x), Fc(t, i.y, r.y, a.y)), n; }, Hc.prototype.copy = function (t) { return Ac.prototype.copy.call(this, t), this.v0.copy(t.v0), this.v1.copy(t.v1), this.v2.copy(t.v2), this; }, Hc.prototype.toJSON = function () { var t = Ac.prototype.toJSON.call(this); return t.v0 = this.v0.toArray(), t.v1 = this.v1.toArray(), t.v2 = this.v2.toArray(), t; }, Hc.prototype.fromJSON = function (t) { return Ac.prototype.fromJSON.call(this, t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this; }, ((Wc.prototype = Object.create(Ac.prototype)).constructor = Wc).prototype.isQuadraticBezierCurve3 = !0, Wc.prototype.getPoint = function (t, e) { var n = e || new We, i = this.v0, r = this.v1, a = this.v2; return n.set(Fc(t, i.x, r.x, a.x), Fc(t, i.y, r.y, a.y), Fc(t, i.z, r.z, a.z)), n; }, Wc.prototype.copy = function (t) { return Ac.prototype.copy.call(this, t), this.v0.copy(t.v0), this.v1.copy(t.v1), this.v2.copy(t.v2), this; }, Wc.prototype.toJSON = function () { var t = Ac.prototype.toJSON.call(this); return t.v0 = this.v0.toArray(), t.v1 = this.v1.toArray(), t.v2 = this.v2.toArray(), t; }, Wc.prototype.fromJSON = function (t) { return Ac.prototype.fromJSON.call(this, t), this.v0.fromArray(t.v0), this.v1.fromArray(t.v1), this.v2.fromArray(t.v2), this; }, ((Jc.prototype = Object.create(Ac.prototype)).constructor = Jc).prototype.isSplineCurve = !0, Jc.prototype.getPoint = function (t, e) { var n = e || new Re, i = this.points, r = (i.length - 1) * t, a = Math.floor(r), o = r - a, s = i[0 === a ? a : a - 1], l = i[a], c = i[a > i.length - 2 ? i.length - 1 : a + 1], u = i[a > i.length - 3 ? i.length - 1 : a + 2]; return n.set(Bc(o, s.x, l.x, c.x, u.x), Bc(o, s.y, l.y, c.y, u.y)), n; }, Jc.prototype.copy = function (t) { Ac.prototype.copy.call(this, t), this.points = []; for (var e = 0, n = t.points.length; e < n; e++) {
|
|
4258
4258
|
var i = t.points[e];
|
|
4259
4259
|
this.points.push(i.clone());
|
|
4260
4260
|
} return this; }, Jc.prototype.toJSON = function () { var t = Ac.prototype.toJSON.call(this); t.points = []; for (var e = 0, n = this.points.length; e < n; e++) {
|
|
@@ -4264,7 +4264,7 @@ function mxfun() {
|
|
|
4264
4264
|
var i = t.points[e];
|
|
4265
4265
|
this.points.push((new Re).fromArray(i));
|
|
4266
4266
|
} return this; };
|
|
4267
|
-
var qc = Object.freeze({ __proto__: null, ArcCurve: Lc, CatmullRomCurve3: Nc, CubicBezierCurve:
|
|
4267
|
+
var qc = Object.freeze({ __proto__: null, ArcCurve: Lc, CatmullRomCurve3: Nc, CubicBezierCurve: Uc, CubicBezierCurve3: Vc, EllipseCurve: Dc, LineCurve: jc, LineCurve3: Gc, QuadraticBezierCurve: Hc, QuadraticBezierCurve3: Wc, SplineCurve: Jc });
|
|
4268
4268
|
function Xc() { Ac.call(this), this.type = "CurvePath", this.curves = [], this.autoClose = !1; }
|
|
4269
4269
|
function Yc(t) { Xc.call(this), this.type = "Path", this.currentPoint = new Re, t && this.setFromPoints(t); }
|
|
4270
4270
|
function Zc(t) { Yc.call(this, t), this.uuid = Pe.generateUUID(), this.type = "Shape", this.holes = []; }
|
|
@@ -4304,7 +4304,7 @@ function mxfun() {
|
|
|
4304
4304
|
var i = t.curves[e];
|
|
4305
4305
|
this.curves.push((new qc[i.type]).fromJSON(i));
|
|
4306
4306
|
} return this; } }), Yc.prototype = Object.assign(Object.create(Xc.prototype), { constructor: Yc, setFromPoints: function (t) { this.moveTo(t[0].x, t[0].y); for (var e = 1, n = t.length; e < n; e++)
|
|
4307
|
-
this.lineTo(t[e].x, t[e].y); return this; }, moveTo: function (t, e) { return this.currentPoint.set(t, e), this; }, lineTo: function (t, e) { var n = new jc(this.currentPoint.clone(), new Re(t, e)); return this.curves.push(n), this.currentPoint.set(t, e), this; }, quadraticCurveTo: function (t, e, n, i) { var r = new Hc(this.currentPoint.clone(), new Re(t, e), new Re(n, i)); return this.curves.push(r), this.currentPoint.set(n, i), this; }, bezierCurveTo: function (t, e, n, i, r, a) { var o = new
|
|
4307
|
+
this.lineTo(t[e].x, t[e].y); return this; }, moveTo: function (t, e) { return this.currentPoint.set(t, e), this; }, lineTo: function (t, e) { var n = new jc(this.currentPoint.clone(), new Re(t, e)); return this.curves.push(n), this.currentPoint.set(t, e), this; }, quadraticCurveTo: function (t, e, n, i) { var r = new Hc(this.currentPoint.clone(), new Re(t, e), new Re(n, i)); return this.curves.push(r), this.currentPoint.set(n, i), this; }, bezierCurveTo: function (t, e, n, i, r, a) { var o = new Uc(this.currentPoint.clone(), new Re(t, e), new Re(n, i), new Re(r, a)); return this.curves.push(o), this.currentPoint.set(r, a), this; }, splineThru: function (t) { var e = new Jc([this.currentPoint.clone()].concat(t)); return this.curves.push(e), this.currentPoint.copy(t[t.length - 1]), this; }, arc: function (t, e, n, i, r, a) { var o = this.currentPoint.x, s = this.currentPoint.y; return this.absarc(t + o, e + s, n, i, r, a), this; }, absarc: function (t, e, n, i, r, a) { return this.absellipse(t, e, n, n, i, r, a), this; }, ellipse: function (t, e, n, i, r, a, o, s) { var l = this.currentPoint.x, c = this.currentPoint.y; return this.absellipse(t + l, e + c, n, i, r, a, o, s), this; }, absellipse: function (t, e, n, i, r, a, o, s) { var l = new Dc(t, e, n, i, r, a, o, s); if (0 < this.curves.length) {
|
|
4308
4308
|
var c = l.getPoint(0);
|
|
4309
4309
|
c.equals(this.currentPoint) || this.lineTo(c.x, c.y);
|
|
4310
4310
|
} this.curves.push(l); var u = l.getPoint(1); return this.currentPoint.copy(u), this; }, copy: function (t) { return Xc.prototype.copy.call(this, t), this.currentPoint.copy(t.currentPoint), this; }, toJSON: function () { var t = Xc.prototype.toJSON.call(this); return t.currentPoint = this.currentPoint.toArray(), t; }, fromJSON: function (t) { return Xc.prototype.fromJSON.call(this, t), this.currentPoint.fromArray(t.currentPoint), this; } }), Zc.prototype = Object.assign(Object.create(Yc.prototype), { constructor: Zc, getPointsHoles: function (t) { for (var e = [], n = 0, i = this.holes.length; n < i; n++)
|
|
@@ -4609,7 +4609,7 @@ function mxfun() {
|
|
|
4609
4609
|
void 0 !== m && n.addLevel(m, f.distance);
|
|
4610
4610
|
}
|
|
4611
4611
|
} return n; } });
|
|
4612
|
-
var gu, vu = { UVMapping: 300, CubeReflectionMapping: Ot, CubeRefractionMapping: It, EquirectangularReflectionMapping: Pt, EquirectangularRefractionMapping: Rt, SphericalReflectionMapping: kt, CubeUVReflectionMapping: Nt, CubeUVRefractionMapping: Bt }, yu = { RepeatWrapping: Ft, ClampToEdgeWrapping: zt, MirroredRepeatWrapping:
|
|
4612
|
+
var gu, vu = { UVMapping: 300, CubeReflectionMapping: Ot, CubeRefractionMapping: It, EquirectangularReflectionMapping: Pt, EquirectangularRefractionMapping: Rt, SphericalReflectionMapping: kt, CubeUVReflectionMapping: Nt, CubeUVRefractionMapping: Bt }, yu = { RepeatWrapping: Ft, ClampToEdgeWrapping: zt, MirroredRepeatWrapping: Ut }, xu = { NearestFilter: Vt, NearestMipmapNearestFilter: jt, NearestMipmapLinearFilter: Gt, LinearFilter: Ht, LinearMipmapNearestFilter: Wt, LinearMipmapLinearFilter: Jt };
|
|
4613
4613
|
function _u(t) { "undefined" == typeof createImageBitmap && console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."), "undefined" == typeof fetch && console.warn("THREE.ImageBitmapLoader: fetch() not supported."), xc.call(this, t), this.options = void 0; }
|
|
4614
4614
|
function wu() { this.type = "ShapePath", this.color = new ci, this.subPaths = [], this.currentPath = null; }
|
|
4615
4615
|
function bu(t) { this.type = "Font", this.data = t; }
|
|
@@ -4726,13 +4726,13 @@ function mxfun() {
|
|
|
4726
4726
|
} return t; } });
|
|
4727
4727
|
var ku = new We, Nu = new je, Bu = new We, Fu = new We;
|
|
4728
4728
|
function zu() { yn.call(this), this.type = "AudioListener", this.context = Cu.getContext(), this.gain = this.context.createGain(), this.gain.connect(this.context.destination), this.filter = null, this.timeDelta = 0, this._clock = new Ru; }
|
|
4729
|
-
function
|
|
4729
|
+
function Uu(t) { yn.call(this), this.type = "Audio", this.listener = t, this.context = t.context, this.gain = this.context.createGain(), this.gain.connect(t.getInput()), this.autoplay = !1, this.buffer = null, this.detune = 0, this.loop = !1, this.loopStart = 0, this.loopEnd = 0, this.offset = 0, this.duration = void 0, this.playbackRate = 1, this.isPlaying = !1, this.hasPlaybackControl = !0, this.sourceType = "empty", this._startedAt = 0, this._pausedAt = 0, this.filters = []; }
|
|
4730
4730
|
zu.prototype = Object.assign(Object.create(yn.prototype), { constructor: zu, getInput: function () { return this.gain; }, removeFilter: function () { return null !== this.filter && (this.gain.disconnect(this.filter), this.filter.disconnect(this.context.destination), this.gain.connect(this.context.destination), this.filter = null), this; }, getFilter: function () { return this.filter; }, setFilter: function (t) { return null !== this.filter ? (this.gain.disconnect(this.filter), this.filter.disconnect(this.context.destination)) : this.gain.disconnect(this.context.destination), this.filter = t, this.gain.connect(this.filter), this.filter.connect(this.context.destination), this; }, getMasterVolume: function () { return this.gain.gain.value; }, setMasterVolume: function (t) { return this.gain.gain.setTargetAtTime(t, this.context.currentTime, .01), this; }, updateMatrixWorld: function (t) { yn.prototype.updateMatrixWorld.call(this, t); var e = this.context.listener, n = this.up; if (this.timeDelta = this._clock.getDelta(), this.matrixWorld.decompose(ku, Nu, Bu), Fu.set(0, 0, -1).applyQuaternion(Nu), e.positionX) {
|
|
4731
4731
|
var i = this.context.currentTime + this.timeDelta;
|
|
4732
4732
|
e.positionX.linearRampToValueAtTime(ku.x, i), e.positionY.linearRampToValueAtTime(ku.y, i), e.positionZ.linearRampToValueAtTime(ku.z, i), e.forwardX.linearRampToValueAtTime(Fu.x, i), e.forwardY.linearRampToValueAtTime(Fu.y, i), e.forwardZ.linearRampToValueAtTime(Fu.z, i), e.upX.linearRampToValueAtTime(n.x, i), e.upY.linearRampToValueAtTime(n.y, i), e.upZ.linearRampToValueAtTime(n.z, i);
|
|
4733
4733
|
}
|
|
4734
4734
|
else
|
|
4735
|
-
e.setPosition(ku.x, ku.y, ku.z), e.setOrientation(Fu.x, Fu.y, Fu.z, n.x, n.y, n.z); } }),
|
|
4735
|
+
e.setPosition(ku.x, ku.y, ku.z), e.setOrientation(Fu.x, Fu.y, Fu.z, n.x, n.y, n.z); } }), Uu.prototype = Object.assign(Object.create(yn.prototype), { constructor: Uu, getOutput: function () { return this.gain; }, setNodeSource: function (t) { return this.hasPlaybackControl = !1, this.sourceType = "audioNode", this.source = t, this.connect(), this; }, setMediaElementSource: function (t) { return this.hasPlaybackControl = !1, this.sourceType = "mediaNode", this.source = this.context.createMediaElementSource(t), this.connect(), this; }, setMediaStreamSource: function (t) { return this.hasPlaybackControl = !1, this.sourceType = "mediaStreamNode", this.source = this.context.createMediaStreamSource(t), this.connect(), this; }, setBuffer: function (t) { return this.buffer = t, this.sourceType = "buffer", this.autoplay && this.play(), this; }, play: function (t) { if (void 0 === t && (t = 0), !0 !== this.isPlaying) {
|
|
4736
4736
|
if (!1 !== this.hasPlaybackControl) {
|
|
4737
4737
|
this._startedAt = this.context.currentTime + t;
|
|
4738
4738
|
var e = this.context.createBufferSource();
|
|
@@ -4761,8 +4761,8 @@ function mxfun() {
|
|
|
4761
4761
|
return !0 === this.isPlaying && this.source.detune.setTargetAtTime(this.detune, this.context.currentTime, .01), this; }, getDetune: function () { return this.detune; }, getFilter: function () { return this.getFilters()[0]; }, setFilter: function (t) { return this.setFilters(t ? [t] : []); }, setPlaybackRate: function (t) { if (!1 !== this.hasPlaybackControl)
|
|
4762
4762
|
return this.playbackRate = t, !0 === this.isPlaying && this.source.playbackRate.setTargetAtTime(this.playbackRate, this.context.currentTime, .01), this; console.warn("THREE.Audio: this Audio has no playback control."); }, getPlaybackRate: function () { return this.playbackRate; }, onEnded: function () { this.isPlaying = !1; }, getLoop: function () { return !1 === this.hasPlaybackControl ? (console.warn("THREE.Audio: this Audio has no playback control."), !1) : this.loop; }, setLoop: function (t) { if (!1 !== this.hasPlaybackControl)
|
|
4763
4763
|
return this.loop = t, !0 === this.isPlaying && (this.source.loop = this.loop), this; console.warn("THREE.Audio: this Audio has no playback control."); }, setLoopStart: function (t) { return this.loopStart = t, this; }, setLoopEnd: function (t) { return this.loopEnd = t, this; }, getVolume: function () { return this.gain.gain.value; }, setVolume: function (t) { return this.gain.gain.setTargetAtTime(t, this.context.currentTime, .01), this; } });
|
|
4764
|
-
var
|
|
4765
|
-
function Wu(t) {
|
|
4764
|
+
var Vu = new We, ju = new je, Gu = new We, Hu = new We;
|
|
4765
|
+
function Wu(t) { Uu.call(this, t), this.panner = this.context.createPanner(), this.panner.panningModel = "HRTF", this.panner.connect(this.gain); }
|
|
4766
4766
|
function Ju(t, e) { this.analyser = t.context.createAnalyser(), this.analyser.fftSize = void 0 !== e ? e : 2048, this.data = new Uint8Array(this.analyser.frequencyBinCount), t.getOutput().connect(this.analyser); }
|
|
4767
4767
|
function qu(t, e, n) { this.binding = t, this.valueSize = n; var i, r = Float64Array; switch (e) {
|
|
4768
4768
|
case "quaternion":
|
|
@@ -4774,15 +4774,15 @@ function mxfun() {
|
|
|
4774
4774
|
break;
|
|
4775
4775
|
default: i = this._lerp;
|
|
4776
4776
|
} this.buffer = new r(4 * n), this._mixBufferRegion = i, this.cumulativeWeight = 0, this.useCount = 0, this.referenceCount = 0; }
|
|
4777
|
-
Wu.prototype = Object.assign(Object.create(
|
|
4778
|
-
this.matrixWorld.decompose(
|
|
4777
|
+
Wu.prototype = Object.assign(Object.create(Uu.prototype), { constructor: Wu, getOutput: function () { return this.panner; }, getRefDistance: function () { return this.panner.refDistance; }, setRefDistance: function (t) { return this.panner.refDistance = t, this; }, getRolloffFactor: function () { return this.panner.rolloffFactor; }, setRolloffFactor: function (t) { return this.panner.rolloffFactor = t, this; }, getDistanceModel: function () { return this.panner.distanceModel; }, setDistanceModel: function (t) { return this.panner.distanceModel = t, this; }, getMaxDistance: function () { return this.panner.maxDistance; }, setMaxDistance: function (t) { return this.panner.maxDistance = t, this; }, setDirectionalCone: function (t, e, n) { return this.panner.coneInnerAngle = t, this.panner.coneOuterAngle = e, this.panner.coneOuterGain = n, this; }, updateMatrixWorld: function (t) { if (yn.prototype.updateMatrixWorld.call(this, t), !0 !== this.hasPlaybackControl || !1 !== this.isPlaying) {
|
|
4778
|
+
this.matrixWorld.decompose(Vu, ju, Gu), Hu.set(0, 0, 1).applyQuaternion(ju);
|
|
4779
4779
|
var e = this.panner;
|
|
4780
4780
|
if (e.positionX) {
|
|
4781
4781
|
var n = this.context.currentTime + this.listener.timeDelta;
|
|
4782
|
-
e.positionX.linearRampToValueAtTime(
|
|
4782
|
+
e.positionX.linearRampToValueAtTime(Vu.x, n), e.positionY.linearRampToValueAtTime(Vu.y, n), e.positionZ.linearRampToValueAtTime(Vu.z, n), e.orientationX.linearRampToValueAtTime(Hu.x, n), e.orientationY.linearRampToValueAtTime(Hu.y, n), e.orientationZ.linearRampToValueAtTime(Hu.z, n);
|
|
4783
4783
|
}
|
|
4784
4784
|
else
|
|
4785
|
-
e.setPosition(
|
|
4785
|
+
e.setPosition(Vu.x, Vu.y, Vu.z), e.setOrientation(Hu.x, Hu.y, Hu.z);
|
|
4786
4786
|
} } }), Object.assign(Ju.prototype, { getFrequencyData: function () { return this.analyser.getByteFrequencyData(this.data), this.data; }, getAverageFrequency: function () { for (var t = 0, e = this.getFrequencyData(), n = 0; n < e.length; n++)
|
|
4787
4787
|
t += e[n]; return t / e.length; } }), Object.assign(qu.prototype, { accumulate: function (t, e) { var n = this.buffer, i = this.valueSize, r = t * i + i, a = this.cumulativeWeight; if (0 === a) {
|
|
4788
4788
|
for (var o = 0; o !== i; ++o)
|
|
@@ -5139,7 +5139,7 @@ function mxfun() {
|
|
|
5139
5139
|
o.parent && o.parent.isBone && (Ch.multiplyMatrices(Th, o.matrixWorld), Sh.setFromMatrixPosition(Ch), i.setXYZ(a, Sh.x, Sh.y, Sh.z), Ch.multiplyMatrices(Th, o.parent.matrixWorld), Sh.setFromMatrixPosition(Ch), i.setXYZ(a + 1, Sh.x, Sh.y, Sh.z), a += 2);
|
|
5140
5140
|
} n.getAttribute("position").needsUpdate = !0, yn.prototype.updateMatrixWorld.call(this, t); }, ((Ah.prototype = Object.create(er.prototype)).constructor = Ah).prototype.dispose = function () { this.geometry.dispose(), this.material.dispose(); }, Ah.prototype.update = function () { void 0 !== this.color ? this.material.color.set(this.color) : this.material.color.copy(this.light.color); };
|
|
5141
5141
|
var Dh = new We, Lh = new ci, Oh = new ci;
|
|
5142
|
-
function Ih(t, e, n) { yn.call(this), this.light = t, this.light.updateMatrixWorld(), this.matrix = t.matrixWorld, this.matrixAutoUpdate = !1, this.color = n; var i = new
|
|
5142
|
+
function Ih(t, e, n) { yn.call(this), this.light = t, this.light.updateMatrixWorld(), this.matrix = t.matrixWorld, this.matrixAutoUpdate = !1, this.color = n; var i = new Us(e); i.rotateY(.5 * Math.PI), this.material = new gi({ wireframe: !0, fog: !1 }), void 0 === this.color && (this.material.vertexColors = v); var r = i.getAttribute("position"), a = new Float32Array(3 * r.count); i.setAttribute("color", new yi(a, 3)), this.add(new er(i, this.material)), this.update(); }
|
|
5143
5143
|
function Ph(t, e, n, i) { t = t || 10, e = e || 10, n = new ci(void 0 !== n ? n : 4473924), i = new ci(void 0 !== i ? i : 8947848); for (var r = e / 2, a = t / e, o = t / 2, s = [], l = [], c = 0, u = 0, h = -o; c <= e; c++, h += a) {
|
|
5144
5144
|
s.push(-o, 0, h, o, 0, h), s.push(h, 0, -o, h, 0, o);
|
|
5145
5145
|
var d = c === r ? n : i;
|
|
@@ -5163,12 +5163,12 @@ function mxfun() {
|
|
|
5163
5163
|
var kh = new We, Nh = new We, Bh = new We;
|
|
5164
5164
|
function Fh(t, e, n) { yn.call(this), this.light = t, this.light.updateMatrixWorld(), this.matrix = t.matrixWorld, this.matrixAutoUpdate = !1, this.color = n, void 0 === e && (e = 1); var i = new Bi; i.setAttribute("position", new Ti([-e, e, 0, e, e, 0, e, -e, 0, -e, -e, 0, -e, e, 0], 3)); var r = new us({ fog: !1 }); this.lightPlane = new gs(i, r), this.add(this.lightPlane), (i = new Bi).setAttribute("position", new Ti([0, 0, 0, 0, 0, 1], 3)), this.targetLine = new gs(i, r), this.add(this.targetLine), this.update(); }
|
|
5165
5165
|
((Fh.prototype = Object.create(yn.prototype)).constructor = Fh).prototype.dispose = function () { this.lightPlane.geometry.dispose(), this.lightPlane.material.dispose(), this.targetLine.geometry.dispose(), this.targetLine.material.dispose(); }, Fh.prototype.update = function () { kh.setFromMatrixPosition(this.light.matrixWorld), Nh.setFromMatrixPosition(this.light.target.matrixWorld), Bh.subVectors(Nh, kh), this.lightPlane.lookAt(Nh), void 0 !== this.color ? (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(Nh), this.targetLine.scale.z = Bh.length(); };
|
|
5166
|
-
var zh = new We,
|
|
5167
|
-
function
|
|
5166
|
+
var zh = new We, Uh = new vr;
|
|
5167
|
+
function Vh(t) { var e = new Bi, n = new us({ color: 16777215, vertexColors: 1 }), i = [], r = [], a = {}, o = new ci(16755200), s = new ci(16711680), l = new ci(43775), c = new ci(16777215), u = new ci(3355443); function h(t, e, n) { d(t, n), d(e, n); } function d(t, e) { i.push(0, 0, 0), r.push(e.r, e.g, e.b), void 0 === a[t] && (a[t] = []), a[t].push(i.length / 3 - 1); } h("n1", "n2", o), h("n2", "n4", o), h("n4", "n3", o), h("n3", "n1", o), h("f1", "f2", o), h("f2", "f4", o), h("f4", "f3", o), h("f3", "f1", o), h("n1", "f1", o), h("n2", "f2", o), h("n3", "f3", o), h("n4", "f4", o), h("p", "n1", s), h("p", "n2", s), h("p", "n3", s), h("p", "n4", s), h("u1", "u2", l), h("u2", "u3", l), h("u3", "u1", l), h("c", "t", c), h("p", "c", u), h("cn1", "cn2", u), h("cn3", "cn4", u), h("cf1", "cf2", u), h("cf3", "cf4", u), e.setAttribute("position", new Ti(i, 3)), e.setAttribute("color", new Ti(r, 3)), xs.call(this, e, n), this.camera = t, this.camera.updateProjectionMatrix && this.camera.updateProjectionMatrix(), this.matrix = t.matrixWorld, this.matrixAutoUpdate = !1, this.pointMap = a, this.update(); }
|
|
5168
5168
|
function jh(t, e, n, i, r, a, o) { zh.set(r, a, o).unproject(i); var s = e[t]; if (void 0 !== s)
|
|
5169
5169
|
for (var l = n.getAttribute("position"), c = 0, u = s.length; c < u; c++)
|
|
5170
5170
|
l.setXYZ(s[c], zh.x, zh.y, zh.z); }
|
|
5171
|
-
((
|
|
5171
|
+
((Vh.prototype = Object.create(xs.prototype)).constructor = Vh).prototype.update = function () { var t = this.geometry, e = this.pointMap; Uh.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse), jh("c", e, t, Uh, 0, 0, -1), jh("t", e, t, Uh, 0, 0, 1), jh("n1", e, t, Uh, -1, -1, -1), jh("n2", e, t, Uh, 1, -1, -1), jh("n3", e, t, Uh, -1, 1, -1), jh("n4", e, t, Uh, 1, 1, -1), jh("f1", e, t, Uh, -1, -1, 1), jh("f2", e, t, Uh, 1, -1, 1), jh("f3", e, t, Uh, -1, 1, 1), jh("f4", e, t, Uh, 1, 1, 1), jh("u1", e, t, Uh, .7, 1.1, -1), jh("u2", e, t, Uh, -.7, 1.1, -1), jh("u3", e, t, Uh, 0, 2, -1), jh("cf1", e, t, Uh, -1, 0, 1), jh("cf2", e, t, Uh, 1, 0, 1), jh("cf3", e, t, Uh, 0, -1, 1), jh("cf4", e, t, Uh, 0, 1, 1), jh("cn1", e, t, Uh, -1, 0, -1), jh("cn2", e, t, Uh, 1, 0, -1), jh("cn3", e, t, Uh, 0, -1, -1), jh("cn4", e, t, Uh, 0, 1, -1), t.getAttribute("position").needsUpdate = !0; };
|
|
5172
5172
|
var Gh = new Pn;
|
|
5173
5173
|
function Hh(t, e) { this.object = t, void 0 === e && (e = 16776960); var n = 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(24), r = new Bi; r.setIndex(new yi(n, 1)), r.setAttribute("position", new yi(i, 3)), xs.call(this, r, new us({ color: e })), this.matrixAutoUpdate = !1, this.update(); }
|
|
5174
5174
|
function Wh(t, e) { this.type = "Box3Helper", this.box = t, e = e || 16776960; var n = 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 Bi; i.setIndex(new yi(n, 1)), i.setAttribute("position", new Ti([1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], 3)), xs.call(this, i, new us({ color: e })), this.geometry.computeBoundingSphere(); }
|
|
@@ -5206,10 +5206,10 @@ function mxfun() {
|
|
|
5206
5206
|
x.setAttribute("position", new yi(h, 3)), x.setAttribute("uv", new yi(d, 2)), x.setAttribute("faceIndex", new yi(p, 1)), t.push(x), Kh < i && i--;
|
|
5207
5207
|
} return { _lodPlanes: t, _sizeLods: e, _sigmas: n }; }(), fd = pd._lodPlanes, md = pd._sizeLods, gd = pd._sigmas, vd = null, yd = null, xd = null, _d = (1 + Math.sqrt(5)) / 2, wd = 1 / _d, bd = [new We(1, 1, 1), new We(-1, 1, 1), new We(1, 1, -1), new We(-1, 1, -1), new We(0, _d, wd), new We(0, _d, -wd), new We(wd, 0, _d), new We(-wd, 0, _d), new We(_d, wd, 0), new We(-_d, wd, 0)];
|
|
5208
5208
|
function Md(t) { yd = t, Td(ud); }
|
|
5209
|
-
function Sd(t) { var e = { magFilter:
|
|
5209
|
+
function Sd(t) { var e = { magFilter: Vt, minFilter: Vt, generateMipmaps: !1, type: t ? t.type : qt, format: t ? t.format : i, encoding: t ? t.encoding : ge, depthBuffer: !1, stencilBuffer: !1 }, n = Ed(e); return n.depthBuffer = !t, vd = Ed(e), n; }
|
|
5210
5210
|
function Cd(t) { vd.dispose(), yd.setRenderTarget(xd), t.scissorTest = !1, t.setSize(t.width, t.height); }
|
|
5211
5211
|
function Td(t) { var e = new xn; e.add(new er(fd[0], t)), yd.compile(e, cd); }
|
|
5212
|
-
function Ed(t) { var e = new
|
|
5212
|
+
function Ed(t) { var e = new Ue(3 * td, 3 * td, t); return e.texture.mapping = Nt, e.texture.name = "PMREM.cubeUv", e.scissorTest = !0, e; }
|
|
5213
5213
|
function Ad(t, e, n, i, r) { t.viewport.set(e, n, i, r), t.scissor.set(e, n, i, r); }
|
|
5214
5214
|
function Dd(t) { var e = yd.autoClear; yd.autoClear = !1; for (var n = 1; n < nd; n++) {
|
|
5215
5215
|
Ld(t, n - 1, n, Math.sqrt(gd[n] * gd[n] - gd[n - 1] * gd[n - 1]), bd[(n - 1) % bd.length]);
|
|
@@ -5233,7 +5233,7 @@ function mxfun() {
|
|
|
5233
5233
|
} for (var g = 0; g < 6; g++) {
|
|
5234
5234
|
var v = g % 3;
|
|
5235
5235
|
0 == v ? (r.up.set(0, a[g], 0), r.lookAt(o[g], 0, 0)) : 1 == v ? (r.up.set(0, 0, a[g]), r.lookAt(0, o[g], 0)) : (r.up.set(0, a[g], 0), r.lookAt(0, 0, o[g])), Ad(i, v * td, 2 < g ? td : 0, td, td), yd.setRenderTarget(i), yd.render(t, r);
|
|
5236
|
-
} yd.toneMapping = l, yd.toneMappingExposure = c, yd.outputEncoding = s, yd.setClearColor(u, h), t.scale.z *= -1; }(t, n, i, r), 0 < e && Ld(r, 0, 0, e), Dd(r), Cd(r), r; }, fromEquirectangular: function (t) { return t.magFilter =
|
|
5236
|
+
} yd.toneMapping = l, yd.toneMappingExposure = c, yd.outputEncoding = s, yd.setClearColor(u, h), t.scale.z *= -1; }(t, n, i, r), 0 < e && Ld(r, 0, 0, e), Dd(r), Cd(r), r; }, fromEquirectangular: function (t) { return t.magFilter = Vt, t.minFilter = Vt, t.generateMipmaps = !1, this.fromCubemap(t); }, fromCubemap: function (t) { xd = yd.getRenderTarget(); var e = Sd(t); return function (t, e) { var n = new xn; t.isCubeTexture ? null == dd && (dd = Pd()) : null == hd && (hd = Id()); var i = t.isCubeTexture ? dd : hd; n.add(new er(fd[0], i)); var r = i.uniforms; (r.envMap.value = t).isCubeTexture || r.texelSize.value.set(1 / t.image.width, 1 / t.image.height); r.inputEncoding.value = rd[t.encoding], r.outputEncoding.value = rd[t.encoding], Ad(e, 0, 0, 3 * td, 2 * td), yd.setRenderTarget(e), yd.render(n, cd); }(t, e), Dd(e), Cd(e), e; }, compileCubemapShader: function () { null == dd && Td(dd = Pd()); }, compileEquirectangularShader: function () { null == hd && Td(hd = Id()); }, dispose: function () { ud.dispose(), null != dd && dd.dispose(), null != hd && hd.dispose(); for (var t = 0; t < fd.length; t++)
|
|
5237
5237
|
fd[t].dispose(); } };
|
|
5238
5238
|
function Nd(t) { console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."), Nc.call(this, t), this.type = "catmullrom", this.closed = !0; }
|
|
5239
5239
|
function Bd(t) { console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."), Nc.call(this, t), this.type = "catmullrom"; }
|
|
@@ -5241,11 +5241,11 @@ function mxfun() {
|
|
|
5241
5241
|
Ac.create = function (t, e) { return console.log("THREE.Curve.create() has been deprecated"), t.prototype = Object.create(Ac.prototype), (t.prototype.constructor = t).prototype.getPoint = e, t; }, Object.assign(Xc.prototype, { createPointsGeometry: function (t) { console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."); var e = this.getPoints(t); return this.createGeometry(e); }, createSpacedPointsGeometry: function (t) { console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."); var e = this.getSpacedPoints(t); return this.createGeometry(e); }, createGeometry: function (t) { console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead."); for (var e = new lr, n = 0, i = t.length; n < i; n++) {
|
|
5242
5242
|
var r = t[n];
|
|
5243
5243
|
e.vertices.push(new We(r.x, r.y, r.z || 0));
|
|
5244
|
-
} return e; } }), Object.assign(Yc.prototype, { fromPoints: function (t) { return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."), this.setFromPoints(t); } }), Nd.prototype = Object.create(Nc.prototype), Bd.prototype = Object.create(Nc.prototype), Fd.prototype = Object.create(Nc.prototype), Object.assign(Fd.prototype, { initFromArray: function () { console.error("THREE.Spline: .initFromArray() has been removed."); }, getControlPointsArray: function () { console.error("THREE.Spline: .getControlPointsArray() has been removed."); }, reparametrizeByArcLength: function () { console.error("THREE.Spline: .reparametrizeByArcLength() has been removed."); } }), Ph.prototype.setColors = function () { console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead."); }, Eh.prototype.update = function () { console.error("THREE.SkeletonHelper: update() no longer needs to be called."); }, Object.assign(xc.prototype, { extractUrlBase: function (t) { return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."), uu.extractUrlBase(t); } }), xc.Handlers = { add: function () { console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead."); }, get: function () { console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead."); } }, Object.assign(mu.prototype, { setTexturePath: function (t) { return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."), this.setResourcePath(t); } }), Object.assign(vh.prototype, { center: function (t) { return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."), this.getCenter(t); }, empty: function () { return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."), this.isEmpty(); }, isIntersectionBox: function (t) { return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."), this.intersectsBox(t); }, size: function (t) { return console.warn("THREE.Box2: .size() has been renamed to .getSize()."), this.getSize(t); } }), Object.assign(Pn.prototype, { center: function (t) { return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."), this.getCenter(t); }, empty: function () { return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."), this.isEmpty(); }, isIntersectionBox: function (t) { return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."), this.intersectsBox(t); }, isIntersectionSphere: function (t) { return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."), this.intersectsSphere(t); }, size: function (t) { return console.warn("THREE.Box3: .size() has been renamed to .getSize()."), this.getSize(t); } }), Sr.prototype.setFromMatrix = function (t) { return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."), this.setFromProjectionMatrix(t); }, _h.prototype.center = function (t) { return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."), this.getCenter(t); }, Object.assign(Pe, { random16: function () { return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."), Math.random(); }, nearestPowerOfTwo: function (t) { return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."), Pe.floorPowerOfTwo(t); }, nextPowerOfTwo: function (t) { return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."), Pe.ceilPowerOfTwo(t); } }), Object.assign(ke.prototype, { flattenToArrayOffset: function (t, e) { return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."), this.toArray(t, e); }, multiplyVector3: function (t) { return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."), t.applyMatrix3(this); }, multiplyVector3Array: function () { console.error("THREE.Matrix3: .multiplyVector3Array() has been removed."); }, applyToBufferAttribute: function (t) { return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."), t.applyMatrix3(this); }, applyToVector3Array: function () { console.error("THREE.Matrix3: .applyToVector3Array() has been removed."); } }), Object.assign(Qe.prototype, { extractPosition: function (t) { return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."), this.copyPosition(t); }, flattenToArrayOffset: function (t, e) { return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."), this.toArray(t, e); }, getPosition: function () { return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."), (new We).setFromMatrixColumn(this, 3); }, setRotationFromQuaternion: function (t) { return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."), this.makeRotationFromQuaternion(t); }, multiplyToArray: function () { console.warn("THREE.Matrix4: .multiplyToArray() has been removed."); }, multiplyVector3: function (t) { return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."), t.applyMatrix4(this); }, multiplyVector4: function (t) { return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."), t.applyMatrix4(this); }, multiplyVector3Array: function () { console.error("THREE.Matrix4: .multiplyVector3Array() has been removed."); }, rotateAxis: function (t) { console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."), t.transformDirection(this); }, crossVector: function (t) { return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."), t.applyMatrix4(this); }, translate: function () { console.error("THREE.Matrix4: .translate() has been removed."); }, rotateX: function () { console.error("THREE.Matrix4: .rotateX() has been removed."); }, rotateY: function () { console.error("THREE.Matrix4: .rotateY() has been removed."); }, rotateZ: function () { console.error("THREE.Matrix4: .rotateZ() has been removed."); }, rotateByAxis: function () { console.error("THREE.Matrix4: .rotateByAxis() has been removed."); }, applyToBufferAttribute: function (t) { return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."), t.applyMatrix4(this); }, applyToVector3Array: function () { console.error("THREE.Matrix4: .applyToVector3Array() has been removed."); }, makeFrustum: function (t, e, n, i, r, a) { return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."), this.makePerspective(t, e, i, n, r, a); } }), Xn.prototype.isIntersectionLine = function (t) { return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."), this.intersectsLine(t); }, je.prototype.multiplyVector3 = function (t) { return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."), t.applyQuaternion(this); }, Object.assign(Hn.prototype, { isIntersectionBox: function (t) { return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."), this.intersectsBox(t); }, isIntersectionPlane: function (t) { return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."), this.intersectsPlane(t); }, isIntersectionSphere: function (t) { return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."), this.intersectsSphere(t); } }), Object.assign(ai.prototype, { area: function () { return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."), this.getArea(); }, barycoordFromPoint: function (t, e) { return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."), this.getBarycoord(t, e); }, midpoint: function (t) { return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."), this.getMidpoint(t); }, normal: function (t) { return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."), this.getNormal(t); }, plane: function (t) { return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."), this.getPlane(t); } }), Object.assign(ai, { barycoordFromPoint: function (t, e, n, i, r) { return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."), ai.getBarycoord(t, e, n, i, r); }, normal: function (t, e, n, i) { return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."), ai.getNormal(t, e, n, i); } }), Object.assign(Zc.prototype, { extractAllPoints: function (t) { return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."), this.extractPoints(t); }, extrude: function (t) { return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."), new wl(this, t); }, makeGeometry: function (t) { return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."), new Pl(this, t); } }), Object.assign(Re.prototype, { fromAttribute: function (t, e, n) { return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."), this.fromBufferAttribute(t, e, n); }, distanceToManhattan: function (t) { return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."), this.manhattanDistanceTo(t); }, lengthManhattan: function () { return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength(); } }), Object.assign(We.prototype, { setEulerFromRotationMatrix: function () { console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead."); }, setEulerFromQuaternion: function () { console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead."); }, getPositionFromMatrix: function (t) { return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."), this.setFromMatrixPosition(t); }, getScaleFromMatrix: function (t) { return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."), this.setFromMatrixScale(t); }, getColumnFromMatrix: function (t, e) { return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."), this.setFromMatrixColumn(e, t); }, applyProjection: function (t) { return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."), this.applyMatrix4(t); }, fromAttribute: function (t, e, n) { return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."), this.fromBufferAttribute(t, e, n); }, distanceToManhattan: function (t) { return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."), this.manhattanDistanceTo(t); }, lengthManhattan: function () { return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength(); } }), Object.assign(ze.prototype, { fromAttribute: function (t, e, n) { return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."), this.fromBufferAttribute(t, e, n); }, lengthManhattan: function () { return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength(); } }), Object.assign(lr.prototype, { computeTangents: function () { console.error("THREE.Geometry: .computeTangents() has been removed."); }, computeLineDistances: function () { console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead."); }, applyMatrix: function (t) { return console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4()."), this.applyMatrix4(t); } }), Object.assign(yn.prototype, { getChildByName: function (t) { return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."), this.getObjectByName(t); }, renderDepth: function () { console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead."); }, translate: function (t, e) { return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."), this.translateOnAxis(e, t); }, getWorldRotation: function () { console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead."); }, applyMatrix: function (t) { return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."), this.applyMatrix4(t); } }), Object.defineProperties(yn.prototype, { eulerOrder: { get: function () { return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."), this.rotation.order; }, set: function (t) { console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."), this.rotation.order = t; } }, useQuaternion: { get: function () { console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default."); }, set: function () { console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default."); } } }), Object.assign(er.prototype, { setDrawMode: function () { console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary."); } }), Object.defineProperties(er.prototype, { drawMode: { get: function () { return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."), 0; }, set: function () { console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary."); } } }), Object.defineProperties(Qo.prototype, { objects: { get: function () { return console.warn("THREE.LOD: .objects has been renamed to .levels."), this.levels; } } }), Object.defineProperty(is.prototype, "useVertexTexture", { get: function () { console.warn("THREE.Skeleton: useVertexTexture has been removed."); }, set: function () { console.warn("THREE.Skeleton: useVertexTexture has been removed."); } }), ts.prototype.initBones = function () { console.error("THREE.SkinnedMesh: initBones() has been removed."); }, Object.defineProperty(Ac.prototype, "__arcLengthDivisions", { get: function () { return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."), this.arcLengthDivisions; }, set: function (t) { console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."), this.arcLengthDivisions = t; } }), yr.prototype.setLens = function (t, e) { console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."), void 0 !== e && (this.filmGauge = e), this.setFocalLength(t); }, Object.defineProperties($c.prototype, { onlyShadow: { set: function () { console.warn("THREE.Light: .onlyShadow has been removed."); } }, shadowCameraFov: { set: function (t) { console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."), this.shadow.camera.fov = t; } }, shadowCameraLeft: { set: function (t) { console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."), this.shadow.camera.left = t; } }, shadowCameraRight: { set: function (t) { console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."), this.shadow.camera.right = t; } }, shadowCameraTop: { set: function (t) { console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."), this.shadow.camera.top = t; } }, shadowCameraBottom: { set: function (t) { console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."), this.shadow.camera.bottom = t; } }, shadowCameraNear: { set: function (t) { console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."), this.shadow.camera.near = t; } }, shadowCameraFar: { set: function (t) { console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."), this.shadow.camera.far = t; } }, shadowCameraVisible: { set: function () { console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead."); } }, shadowBias: { set: function (t) { console.warn("THREE.Light: .shadowBias is now .shadow.bias."), this.shadow.bias = t; } }, shadowDarkness: { set: function () { console.warn("THREE.Light: .shadowDarkness has been removed."); } }, shadowMapWidth: { set: function (t) { console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."), this.shadow.mapSize.width = t; } }, shadowMapHeight: { set: function (t) { console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."), this.shadow.mapSize.height = t; } } }), Object.defineProperties(yi.prototype, { length: { get: function () { return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."), this.array.length; } }, dynamic: { get: function () { return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."), this.usage === Ae; }, set: function () { console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."), this.setUsage(Ae); } } }), Object.assign(yi.prototype, { setDynamic: function (t) { return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."), this.setUsage(!0 === t ? Ae : Ee), this; }, copyIndicesArray: function () { console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed."); }, setArray: function () { console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers"); } }), Object.assign(Bi.prototype, { addIndex: function (t) { console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."), this.setIndex(t); }, addAttribute: function (t, e) { return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."), e && e.isBufferAttribute || e && e.isInterleavedBufferAttribute ? "index" === t ? (console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."), this.setIndex(e), this) : this.setAttribute(t, e) : (console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."), this.setAttribute(t, new yi(e, arguments[2]))); }, addDrawCall: function (t, e, n) { void 0 !== n && console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."), console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."), this.addGroup(t, e); }, clearDrawCalls: function () { console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."), this.clearGroups(); }, computeTangents: function () { console.warn("THREE.BufferGeometry: .computeTangents() has been removed."); }, computeOffsets: function () { console.warn("THREE.BufferGeometry: .computeOffsets() has been removed."); }, removeAttribute: function (t) { return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."), this.deleteAttribute(t); }, applyMatrix: function (t) { return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."), this.applyMatrix4(t); } }), Object.defineProperties(Bi.prototype, { drawcalls: { get: function () { return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."), this.groups; } }, offsets: { get: function () { return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."), this.groups; } } }), Object.defineProperties(Io.prototype, { dynamic: { get: function () { return console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."), this.usage === Ae; }, set: function (t) { console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."), this.setUsage(t); } } }), Object.assign(Io.prototype, { setDynamic: function (t) { return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."), this.setUsage(!0 === t ? Ae : Ee), this; }, setArray: function () { console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers"); } }), Object.assign(bl.prototype, { getArrays: function () { console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed."); }, addShapeList: function () { console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed."); }, addShape: function () { console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed."); } }), Object.defineProperties(ch.prototype, { dynamic: { set: function () { console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead."); } }, onUpdate: { value: function () { return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."), this; } } }), Object.defineProperties(mi.prototype, { wrapAround: { get: function () { console.warn("THREE.Material: .wrapAround has been removed."); }, set: function () { console.warn("THREE.Material: .wrapAround has been removed."); } }, overdraw: { get: function () { console.warn("THREE.Material: .overdraw has been removed."); }, set: function () { console.warn("THREE.Material: .overdraw has been removed."); } }, wrapRGB: { get: function () { return console.warn("THREE.Material: .wrapRGB has been removed."), new ci; } }, shading: { get: function () { console.error("THREE." + this.type + ": .shading has been removed. Use the boolean .flatShading instead."); }, set: function (t) { console.warn("THREE." + this.type + ": .shading has been removed. Use the boolean .flatShading instead."), this.flatShading = 1 === t; } }, stencilMask: { get: function () { return console.warn("THREE." + this.type + ": .stencilMask has been removed. Use .stencilFuncMask instead."), this.stencilFuncMask; }, set: function (t) { console.warn("THREE." + this.type + ": .stencilMask has been removed. Use .stencilFuncMask instead."), this.stencilFuncMask = t; } } }), Object.defineProperties(Xl.prototype, { metal: { get: function () { return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."), !1; }, set: function () { console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead"); } } }), Object.defineProperties(gr.prototype, { derivatives: { get: function () { return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."), this.extensions.derivatives; }, set: function (t) { console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."), this.extensions.derivatives = t; } } }), Object.assign(Do.prototype, { clearTarget: function (t, e, n, i) { console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."), this.setRenderTarget(t), this.clear(e, n, i); }, animate: function (t) { console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."), this.setAnimationLoop(t); }, getCurrentRenderTarget: function () { return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."), this.getRenderTarget(); }, getMaxAnisotropy: function () { return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."), this.capabilities.getMaxAnisotropy(); }, getPrecision: function () { return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."), this.capabilities.precision; }, resetGLState: function () { return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."), this.state.reset(); }, supportsFloatTextures: function () { return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."), this.extensions.get("OES_texture_float"); }, supportsHalfFloatTextures: function () { return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."), this.extensions.get("OES_texture_half_float"); }, supportsStandardDerivatives: function () { return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."), this.extensions.get("OES_standard_derivatives"); }, supportsCompressedTextureS3TC: function () { return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."), this.extensions.get("WEBGL_compressed_texture_s3tc"); }, supportsCompressedTexturePVRTC: function () { return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."), this.extensions.get("WEBGL_compressed_texture_pvrtc"); }, supportsBlendMinMax: function () { return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."), this.extensions.get("EXT_blend_minmax"); }, supportsVertexTextures: function () { return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."), this.capabilities.vertexTextures; }, supportsInstancedArrays: function () { return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."), this.extensions.get("ANGLE_instanced_arrays"); }, enableScissorTest: function (t) { console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."), this.setScissorTest(t); }, initMaterial: function () { console.warn("THREE.WebGLRenderer: .initMaterial() has been removed."); }, addPrePlugin: function () { console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed."); }, addPostPlugin: function () { console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed."); }, updateShadowMap: function () { console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed."); }, setFaceCulling: function () { console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed."); }, allocTextureUnit: function () { console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed."); }, setTexture: function () { console.warn("THREE.WebGLRenderer: .setTexture() has been removed."); }, setTexture2D: function () { console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed."); }, setTextureCube: function () { console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed."); }, getActiveMipMapLevel: function () { return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."), this.getActiveMipmapLevel(); } }), Object.defineProperties(Do.prototype, { shadowMapEnabled: { get: function () { return this.shadowMap.enabled; }, set: function (t) { console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."), this.shadowMap.enabled = t; } }, shadowMapType: { get: function () { return this.shadowMap.type; }, set: function (t) { console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."), this.shadowMap.type = t; } }, shadowMapCullFace: { get: function () { console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead."); }, set: function () { console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead."); } }, context: { get: function () { return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."), this.getContext(); } }, vr: { get: function () { return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"), this.xr; } }, gammaInput: { get: function () { return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."), !1; }, set: function () { console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."); } }, gammaOutput: { get: function () { return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."), !1; }, set: function (t) { console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."), this.outputEncoding = !0 === t ? e : me; } } }), Object.defineProperties(_o.prototype, { cullFace: { get: function () { console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead."); }, set: function () { console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead."); } }, renderReverseSided: { get: function () { console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead."); }, set: function () { console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead."); } }, renderSingleSided: { get: function () { console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead."); }, set: function () { console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead."); } } }), Object.defineProperties(Ve.prototype, { wrapS: { get: function () { return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."), this.texture.wrapS; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."), this.texture.wrapS = t; } }, wrapT: { get: function () { return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."), this.texture.wrapT; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."), this.texture.wrapT = t; } }, magFilter: { get: function () { return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."), this.texture.magFilter; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."), this.texture.magFilter = t; } }, minFilter: { get: function () { return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."), this.texture.minFilter; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."), this.texture.minFilter = t; } }, anisotropy: { get: function () { return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."), this.texture.anisotropy; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."), this.texture.anisotropy = t; } }, offset: { get: function () { return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."), this.texture.offset; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."), this.texture.offset = t; } }, repeat: { get: function () { return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."), this.texture.repeat; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."), this.texture.repeat = t; } }, format: { get: function () { return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."), this.texture.format; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."), this.texture.format = t; } }, type: { get: function () { return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."), this.texture.type; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."), this.texture.type = t; } }, generateMipmaps: { get: function () { return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."), this.texture.generateMipmaps; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."), this.texture.generateMipmaps = t; } } }), Object.defineProperties(Vu.prototype, { load: { value: function (t) { console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead."); var e = this; return (new Tu).load(t, function (t) { e.setBuffer(t); }), this; } }, startTime: { set: function () { console.warn("THREE.Audio: .startTime is now .play( delay )."); } } }), Ju.prototype.getData = function () { return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."), this.getFrequencyData(); }, xr.prototype.updateCubeMap = function (t, e) { return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."), this.update(t, e); };
|
|
5244
|
+
} return e; } }), Object.assign(Yc.prototype, { fromPoints: function (t) { return console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."), this.setFromPoints(t); } }), Nd.prototype = Object.create(Nc.prototype), Bd.prototype = Object.create(Nc.prototype), Fd.prototype = Object.create(Nc.prototype), Object.assign(Fd.prototype, { initFromArray: function () { console.error("THREE.Spline: .initFromArray() has been removed."); }, getControlPointsArray: function () { console.error("THREE.Spline: .getControlPointsArray() has been removed."); }, reparametrizeByArcLength: function () { console.error("THREE.Spline: .reparametrizeByArcLength() has been removed."); } }), Ph.prototype.setColors = function () { console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead."); }, Eh.prototype.update = function () { console.error("THREE.SkeletonHelper: update() no longer needs to be called."); }, Object.assign(xc.prototype, { extractUrlBase: function (t) { return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."), uu.extractUrlBase(t); } }), xc.Handlers = { add: function () { console.error("THREE.Loader: Handlers.add() has been removed. Use LoadingManager.addHandler() instead."); }, get: function () { console.error("THREE.Loader: Handlers.get() has been removed. Use LoadingManager.getHandler() instead."); } }, Object.assign(mu.prototype, { setTexturePath: function (t) { return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."), this.setResourcePath(t); } }), Object.assign(vh.prototype, { center: function (t) { return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."), this.getCenter(t); }, empty: function () { return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."), this.isEmpty(); }, isIntersectionBox: function (t) { return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."), this.intersectsBox(t); }, size: function (t) { return console.warn("THREE.Box2: .size() has been renamed to .getSize()."), this.getSize(t); } }), Object.assign(Pn.prototype, { center: function (t) { return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."), this.getCenter(t); }, empty: function () { return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."), this.isEmpty(); }, isIntersectionBox: function (t) { return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."), this.intersectsBox(t); }, isIntersectionSphere: function (t) { return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."), this.intersectsSphere(t); }, size: function (t) { return console.warn("THREE.Box3: .size() has been renamed to .getSize()."), this.getSize(t); } }), Sr.prototype.setFromMatrix = function (t) { return console.warn("THREE.Frustum: .setFromMatrix() has been renamed to .setFromProjectionMatrix()."), this.setFromProjectionMatrix(t); }, _h.prototype.center = function (t) { return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."), this.getCenter(t); }, Object.assign(Pe, { random16: function () { return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."), Math.random(); }, nearestPowerOfTwo: function (t) { return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."), Pe.floorPowerOfTwo(t); }, nextPowerOfTwo: function (t) { return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."), Pe.ceilPowerOfTwo(t); } }), Object.assign(ke.prototype, { flattenToArrayOffset: function (t, e) { return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."), this.toArray(t, e); }, multiplyVector3: function (t) { return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."), t.applyMatrix3(this); }, multiplyVector3Array: function () { console.error("THREE.Matrix3: .multiplyVector3Array() has been removed."); }, applyToBufferAttribute: function (t) { return console.warn("THREE.Matrix3: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix3( matrix ) instead."), t.applyMatrix3(this); }, applyToVector3Array: function () { console.error("THREE.Matrix3: .applyToVector3Array() has been removed."); } }), Object.assign(Qe.prototype, { extractPosition: function (t) { return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."), this.copyPosition(t); }, flattenToArrayOffset: function (t, e) { return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."), this.toArray(t, e); }, getPosition: function () { return console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."), (new We).setFromMatrixColumn(this, 3); }, setRotationFromQuaternion: function (t) { return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."), this.makeRotationFromQuaternion(t); }, multiplyToArray: function () { console.warn("THREE.Matrix4: .multiplyToArray() has been removed."); }, multiplyVector3: function (t) { return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."), t.applyMatrix4(this); }, multiplyVector4: function (t) { return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."), t.applyMatrix4(this); }, multiplyVector3Array: function () { console.error("THREE.Matrix4: .multiplyVector3Array() has been removed."); }, rotateAxis: function (t) { console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."), t.transformDirection(this); }, crossVector: function (t) { return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."), t.applyMatrix4(this); }, translate: function () { console.error("THREE.Matrix4: .translate() has been removed."); }, rotateX: function () { console.error("THREE.Matrix4: .rotateX() has been removed."); }, rotateY: function () { console.error("THREE.Matrix4: .rotateY() has been removed."); }, rotateZ: function () { console.error("THREE.Matrix4: .rotateZ() has been removed."); }, rotateByAxis: function () { console.error("THREE.Matrix4: .rotateByAxis() has been removed."); }, applyToBufferAttribute: function (t) { return console.warn("THREE.Matrix4: .applyToBufferAttribute() has been removed. Use attribute.applyMatrix4( matrix ) instead."), t.applyMatrix4(this); }, applyToVector3Array: function () { console.error("THREE.Matrix4: .applyToVector3Array() has been removed."); }, makeFrustum: function (t, e, n, i, r, a) { return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."), this.makePerspective(t, e, i, n, r, a); } }), Xn.prototype.isIntersectionLine = function (t) { return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."), this.intersectsLine(t); }, je.prototype.multiplyVector3 = function (t) { return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."), t.applyQuaternion(this); }, Object.assign(Hn.prototype, { isIntersectionBox: function (t) { return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."), this.intersectsBox(t); }, isIntersectionPlane: function (t) { return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."), this.intersectsPlane(t); }, isIntersectionSphere: function (t) { return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."), this.intersectsSphere(t); } }), Object.assign(ai.prototype, { area: function () { return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."), this.getArea(); }, barycoordFromPoint: function (t, e) { return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."), this.getBarycoord(t, e); }, midpoint: function (t) { return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."), this.getMidpoint(t); }, normal: function (t) { return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."), this.getNormal(t); }, plane: function (t) { return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."), this.getPlane(t); } }), Object.assign(ai, { barycoordFromPoint: function (t, e, n, i, r) { return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."), ai.getBarycoord(t, e, n, i, r); }, normal: function (t, e, n, i) { return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."), ai.getNormal(t, e, n, i); } }), Object.assign(Zc.prototype, { extractAllPoints: function (t) { return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."), this.extractPoints(t); }, extrude: function (t) { return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."), new wl(this, t); }, makeGeometry: function (t) { return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."), new Pl(this, t); } }), Object.assign(Re.prototype, { fromAttribute: function (t, e, n) { return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."), this.fromBufferAttribute(t, e, n); }, distanceToManhattan: function (t) { return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."), this.manhattanDistanceTo(t); }, lengthManhattan: function () { return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength(); } }), Object.assign(We.prototype, { setEulerFromRotationMatrix: function () { console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead."); }, setEulerFromQuaternion: function () { console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead."); }, getPositionFromMatrix: function (t) { return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."), this.setFromMatrixPosition(t); }, getScaleFromMatrix: function (t) { return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."), this.setFromMatrixScale(t); }, getColumnFromMatrix: function (t, e) { return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."), this.setFromMatrixColumn(e, t); }, applyProjection: function (t) { return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."), this.applyMatrix4(t); }, fromAttribute: function (t, e, n) { return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."), this.fromBufferAttribute(t, e, n); }, distanceToManhattan: function (t) { return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."), this.manhattanDistanceTo(t); }, lengthManhattan: function () { return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength(); } }), Object.assign(ze.prototype, { fromAttribute: function (t, e, n) { return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."), this.fromBufferAttribute(t, e, n); }, lengthManhattan: function () { return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."), this.manhattanLength(); } }), Object.assign(lr.prototype, { computeTangents: function () { console.error("THREE.Geometry: .computeTangents() has been removed."); }, computeLineDistances: function () { console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead."); }, applyMatrix: function (t) { return console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4()."), this.applyMatrix4(t); } }), Object.assign(yn.prototype, { getChildByName: function (t) { return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."), this.getObjectByName(t); }, renderDepth: function () { console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead."); }, translate: function (t, e) { return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."), this.translateOnAxis(e, t); }, getWorldRotation: function () { console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead."); }, applyMatrix: function (t) { return console.warn("THREE.Object3D: .applyMatrix() has been renamed to .applyMatrix4()."), this.applyMatrix4(t); } }), Object.defineProperties(yn.prototype, { eulerOrder: { get: function () { return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."), this.rotation.order; }, set: function (t) { console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."), this.rotation.order = t; } }, useQuaternion: { get: function () { console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default."); }, set: function () { console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default."); } } }), Object.assign(er.prototype, { setDrawMode: function () { console.error("THREE.Mesh: .setDrawMode() has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary."); } }), Object.defineProperties(er.prototype, { drawMode: { get: function () { return console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode."), 0; }, set: function () { console.error("THREE.Mesh: .drawMode has been removed. The renderer now always assumes THREE.TrianglesDrawMode. Transform your geometry via BufferGeometryUtils.toTrianglesDrawMode() if necessary."); } } }), Object.defineProperties(Qo.prototype, { objects: { get: function () { return console.warn("THREE.LOD: .objects has been renamed to .levels."), this.levels; } } }), Object.defineProperty(is.prototype, "useVertexTexture", { get: function () { console.warn("THREE.Skeleton: useVertexTexture has been removed."); }, set: function () { console.warn("THREE.Skeleton: useVertexTexture has been removed."); } }), ts.prototype.initBones = function () { console.error("THREE.SkinnedMesh: initBones() has been removed."); }, Object.defineProperty(Ac.prototype, "__arcLengthDivisions", { get: function () { return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."), this.arcLengthDivisions; }, set: function (t) { console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."), this.arcLengthDivisions = t; } }), yr.prototype.setLens = function (t, e) { console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."), void 0 !== e && (this.filmGauge = e), this.setFocalLength(t); }, Object.defineProperties($c.prototype, { onlyShadow: { set: function () { console.warn("THREE.Light: .onlyShadow has been removed."); } }, shadowCameraFov: { set: function (t) { console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."), this.shadow.camera.fov = t; } }, shadowCameraLeft: { set: function (t) { console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."), this.shadow.camera.left = t; } }, shadowCameraRight: { set: function (t) { console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."), this.shadow.camera.right = t; } }, shadowCameraTop: { set: function (t) { console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."), this.shadow.camera.top = t; } }, shadowCameraBottom: { set: function (t) { console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."), this.shadow.camera.bottom = t; } }, shadowCameraNear: { set: function (t) { console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."), this.shadow.camera.near = t; } }, shadowCameraFar: { set: function (t) { console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."), this.shadow.camera.far = t; } }, shadowCameraVisible: { set: function () { console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead."); } }, shadowBias: { set: function (t) { console.warn("THREE.Light: .shadowBias is now .shadow.bias."), this.shadow.bias = t; } }, shadowDarkness: { set: function () { console.warn("THREE.Light: .shadowDarkness has been removed."); } }, shadowMapWidth: { set: function (t) { console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."), this.shadow.mapSize.width = t; } }, shadowMapHeight: { set: function (t) { console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."), this.shadow.mapSize.height = t; } } }), Object.defineProperties(yi.prototype, { length: { get: function () { return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."), this.array.length; } }, dynamic: { get: function () { return console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."), this.usage === Ae; }, set: function () { console.warn("THREE.BufferAttribute: .dynamic has been deprecated. Use .usage instead."), this.setUsage(Ae); } } }), Object.assign(yi.prototype, { setDynamic: function (t) { return console.warn("THREE.BufferAttribute: .setDynamic() has been deprecated. Use .setUsage() instead."), this.setUsage(!0 === t ? Ae : Ee), this; }, copyIndicesArray: function () { console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed."); }, setArray: function () { console.error("THREE.BufferAttribute: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers"); } }), Object.assign(Bi.prototype, { addIndex: function (t) { console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."), this.setIndex(t); }, addAttribute: function (t, e) { return console.warn("THREE.BufferGeometry: .addAttribute() has been renamed to .setAttribute()."), e && e.isBufferAttribute || e && e.isInterleavedBufferAttribute ? "index" === t ? (console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."), this.setIndex(e), this) : this.setAttribute(t, e) : (console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."), this.setAttribute(t, new yi(e, arguments[2]))); }, addDrawCall: function (t, e, n) { void 0 !== n && console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."), console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."), this.addGroup(t, e); }, clearDrawCalls: function () { console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."), this.clearGroups(); }, computeTangents: function () { console.warn("THREE.BufferGeometry: .computeTangents() has been removed."); }, computeOffsets: function () { console.warn("THREE.BufferGeometry: .computeOffsets() has been removed."); }, removeAttribute: function (t) { return console.warn("THREE.BufferGeometry: .removeAttribute() has been renamed to .deleteAttribute()."), this.deleteAttribute(t); }, applyMatrix: function (t) { return console.warn("THREE.BufferGeometry: .applyMatrix() has been renamed to .applyMatrix4()."), this.applyMatrix4(t); } }), Object.defineProperties(Bi.prototype, { drawcalls: { get: function () { return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."), this.groups; } }, offsets: { get: function () { return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."), this.groups; } } }), Object.defineProperties(Io.prototype, { dynamic: { get: function () { return console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."), this.usage === Ae; }, set: function (t) { console.warn("THREE.InterleavedBuffer: .length has been deprecated. Use .usage instead."), this.setUsage(t); } } }), Object.assign(Io.prototype, { setDynamic: function (t) { return console.warn("THREE.InterleavedBuffer: .setDynamic() has been deprecated. Use .setUsage() instead."), this.setUsage(!0 === t ? Ae : Ee), this; }, setArray: function () { console.error("THREE.InterleavedBuffer: .setArray has been removed. Use BufferGeometry .setAttribute to replace/resize attribute buffers"); } }), Object.assign(bl.prototype, { getArrays: function () { console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed."); }, addShapeList: function () { console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed."); }, addShape: function () { console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed."); } }), Object.defineProperties(ch.prototype, { dynamic: { set: function () { console.warn("THREE.Uniform: .dynamic has been removed. Use object.onBeforeRender() instead."); } }, onUpdate: { value: function () { return console.warn("THREE.Uniform: .onUpdate() has been removed. Use object.onBeforeRender() instead."), this; } } }), Object.defineProperties(mi.prototype, { wrapAround: { get: function () { console.warn("THREE.Material: .wrapAround has been removed."); }, set: function () { console.warn("THREE.Material: .wrapAround has been removed."); } }, overdraw: { get: function () { console.warn("THREE.Material: .overdraw has been removed."); }, set: function () { console.warn("THREE.Material: .overdraw has been removed."); } }, wrapRGB: { get: function () { return console.warn("THREE.Material: .wrapRGB has been removed."), new ci; } }, shading: { get: function () { console.error("THREE." + this.type + ": .shading has been removed. Use the boolean .flatShading instead."); }, set: function (t) { console.warn("THREE." + this.type + ": .shading has been removed. Use the boolean .flatShading instead."), this.flatShading = 1 === t; } }, stencilMask: { get: function () { return console.warn("THREE." + this.type + ": .stencilMask has been removed. Use .stencilFuncMask instead."), this.stencilFuncMask; }, set: function (t) { console.warn("THREE." + this.type + ": .stencilMask has been removed. Use .stencilFuncMask instead."), this.stencilFuncMask = t; } } }), Object.defineProperties(Xl.prototype, { metal: { get: function () { return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."), !1; }, set: function () { console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead"); } } }), Object.defineProperties(gr.prototype, { derivatives: { get: function () { return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."), this.extensions.derivatives; }, set: function (t) { console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."), this.extensions.derivatives = t; } } }), Object.assign(Do.prototype, { clearTarget: function (t, e, n, i) { console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."), this.setRenderTarget(t), this.clear(e, n, i); }, animate: function (t) { console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."), this.setAnimationLoop(t); }, getCurrentRenderTarget: function () { return console.warn("THREE.WebGLRenderer: .getCurrentRenderTarget() is now .getRenderTarget()."), this.getRenderTarget(); }, getMaxAnisotropy: function () { return console.warn("THREE.WebGLRenderer: .getMaxAnisotropy() is now .capabilities.getMaxAnisotropy()."), this.capabilities.getMaxAnisotropy(); }, getPrecision: function () { return console.warn("THREE.WebGLRenderer: .getPrecision() is now .capabilities.precision."), this.capabilities.precision; }, resetGLState: function () { return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."), this.state.reset(); }, supportsFloatTextures: function () { return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."), this.extensions.get("OES_texture_float"); }, supportsHalfFloatTextures: function () { return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."), this.extensions.get("OES_texture_half_float"); }, supportsStandardDerivatives: function () { return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."), this.extensions.get("OES_standard_derivatives"); }, supportsCompressedTextureS3TC: function () { return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."), this.extensions.get("WEBGL_compressed_texture_s3tc"); }, supportsCompressedTexturePVRTC: function () { return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."), this.extensions.get("WEBGL_compressed_texture_pvrtc"); }, supportsBlendMinMax: function () { return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."), this.extensions.get("EXT_blend_minmax"); }, supportsVertexTextures: function () { return console.warn("THREE.WebGLRenderer: .supportsVertexTextures() is now .capabilities.vertexTextures."), this.capabilities.vertexTextures; }, supportsInstancedArrays: function () { return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."), this.extensions.get("ANGLE_instanced_arrays"); }, enableScissorTest: function (t) { console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."), this.setScissorTest(t); }, initMaterial: function () { console.warn("THREE.WebGLRenderer: .initMaterial() has been removed."); }, addPrePlugin: function () { console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed."); }, addPostPlugin: function () { console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed."); }, updateShadowMap: function () { console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed."); }, setFaceCulling: function () { console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed."); }, allocTextureUnit: function () { console.warn("THREE.WebGLRenderer: .allocTextureUnit() has been removed."); }, setTexture: function () { console.warn("THREE.WebGLRenderer: .setTexture() has been removed."); }, setTexture2D: function () { console.warn("THREE.WebGLRenderer: .setTexture2D() has been removed."); }, setTextureCube: function () { console.warn("THREE.WebGLRenderer: .setTextureCube() has been removed."); }, getActiveMipMapLevel: function () { return console.warn("THREE.WebGLRenderer: .getActiveMipMapLevel() is now .getActiveMipmapLevel()."), this.getActiveMipmapLevel(); } }), Object.defineProperties(Do.prototype, { shadowMapEnabled: { get: function () { return this.shadowMap.enabled; }, set: function (t) { console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."), this.shadowMap.enabled = t; } }, shadowMapType: { get: function () { return this.shadowMap.type; }, set: function (t) { console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."), this.shadowMap.type = t; } }, shadowMapCullFace: { get: function () { console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead."); }, set: function () { console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead."); } }, context: { get: function () { return console.warn("THREE.WebGLRenderer: .context has been removed. Use .getContext() instead."), this.getContext(); } }, vr: { get: function () { return console.warn("THREE.WebGLRenderer: .vr has been renamed to .xr"), this.xr; } }, gammaInput: { get: function () { return console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."), !1; }, set: function () { console.warn("THREE.WebGLRenderer: .gammaInput has been removed. Set the encoding for textures via Texture.encoding instead."); } }, gammaOutput: { get: function () { return console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."), !1; }, set: function (t) { console.warn("THREE.WebGLRenderer: .gammaOutput has been removed. Set WebGLRenderer.outputEncoding instead."), this.outputEncoding = !0 === t ? e : me; } } }), Object.defineProperties(_o.prototype, { cullFace: { get: function () { console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead."); }, set: function () { console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead."); } }, renderReverseSided: { get: function () { console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead."); }, set: function () { console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead."); } }, renderSingleSided: { get: function () { console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead."); }, set: function () { console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead."); } } }), Object.defineProperties(Ue.prototype, { wrapS: { get: function () { return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."), this.texture.wrapS; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."), this.texture.wrapS = t; } }, wrapT: { get: function () { return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."), this.texture.wrapT; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."), this.texture.wrapT = t; } }, magFilter: { get: function () { return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."), this.texture.magFilter; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."), this.texture.magFilter = t; } }, minFilter: { get: function () { return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."), this.texture.minFilter; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."), this.texture.minFilter = t; } }, anisotropy: { get: function () { return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."), this.texture.anisotropy; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."), this.texture.anisotropy = t; } }, offset: { get: function () { return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."), this.texture.offset; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."), this.texture.offset = t; } }, repeat: { get: function () { return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."), this.texture.repeat; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."), this.texture.repeat = t; } }, format: { get: function () { return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."), this.texture.format; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."), this.texture.format = t; } }, type: { get: function () { return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."), this.texture.type; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."), this.texture.type = t; } }, generateMipmaps: { get: function () { return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."), this.texture.generateMipmaps; }, set: function (t) { console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."), this.texture.generateMipmaps = t; } } }), Object.defineProperties(Uu.prototype, { load: { value: function (t) { console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead."); var e = this; return (new Tu).load(t, function (t) { e.setBuffer(t); }), this; } }, startTime: { set: function () { console.warn("THREE.Audio: .startTime is now .play( delay )."); } } }), Ju.prototype.getData = function () { return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."), this.getFrequencyData(); }, xr.prototype.updateCubeMap = function (t, e) { return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."), this.update(t, e); };
|
|
5245
5245
|
var zd = { merge: function (t, e, n) { var i; console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."), e.isMesh && (e.matrixAutoUpdate && e.updateMatrix(), i = e.matrix, e = e.geometry), t.merge(e, i, n); }, center: function (t) { return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."), t.center(); } };
|
|
5246
5246
|
Ne.crossOrigin = void 0, Ne.loadTexture = function (t, e, n, i) { console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead."); var r = new Ec; r.setCrossOrigin(this.crossOrigin); var a = r.load(t, n, void 0, i); return e && (a.mapping = e), a; }, Ne.loadTextureCube = function (t, e, n, i) { console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead."); var r = new Tc; r.setCrossOrigin(this.crossOrigin); var a = r.load(t, n, void 0, i); return e && (a.mapping = e), a; }, Ne.loadCompressedTexture = function () { console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead."); }, Ne.loadCompressedTextureCube = function () { console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead."); };
|
|
5247
|
-
var
|
|
5248
|
-
"undefined" != typeof __THREE_DEVTOOLS__ && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "113" } })), t.ACESFilmicToneMapping = Lt, t.AddEquation = rt, t.AddOperation = G, t.AdditiveBlending = tt, t.AlphaFormat = h, t.AlwaysDepth = wt, t.AlwaysStencilFunc = Te, t.AmbientLight = su, t.AmbientLightProbe = Lu, t.AnimationClip = fc, t.AnimationLoader = bc, t.AnimationMixer = lh, t.AnimationObjectGroup = oh, t.AnimationUtils = ec, t.ArcCurve = Lc, t.ArrayCamera = To, t.ArrowHelper = Zh, t.Audio = Vu, t.AudioAnalyser = Ju, t.AudioContext = Cu, t.AudioListener = zu, t.AudioLoader = Tu, t.AxesHelper = $h, t.AxisHelper = function (t) { return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."), new $h(t); }, t.BackSide = St, t.BasicDepthPacking = we, t.BasicShadowMap = 0, t.BinaryTextureLoader = function (t) { return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."), new Sc(t); }, t.Bone = rs, t.BooleanKeyframeTrack = sc, t.BoundingBoxHelper = function (t, e) { return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."), new Hh(t, e); }, t.Box2 = vh, t.Box3 = Pn, t.Box3Helper = Wh, t.BoxBufferGeometry = ur, t.BoxGeometry = cr, t.BoxHelper = Hh, t.BufferAttribute = yi, t.BufferGeometry = Bi, t.BufferGeometryLoader = pu, t.ByteType = r, t.Cache = gc, t.Camera = vr, t.CameraHelper = Uh, t.CanvasRenderer = function () { console.error("THREE.CanvasRenderer has been removed"); }, t.CanvasTexture = Ls, t.CatmullRomCurve3 = Nc, t.CineonToneMapping = q, t.CircleBufferGeometry = jl, t.CircleGeometry = Ul, t.ClampToEdgeWrapping = zt, t.Clock = Ru, t.ClosedSplineCurve3 = Nd, t.Color = ci, t.ColorKeyframeTrack = lc, t.CompressedTexture = Ds, t.CompressedTextureLoader = Mc, t.ConeBufferGeometry = Vl, t.ConeGeometry = zl, t.CubeCamera = xr, t.CubeGeometry = cr, t.CubeReflectionMapping = Ot, t.CubeRefractionMapping = It, t.CubeTexture = Gr, t.CubeTextureLoader = Tc, t.CubeUVReflectionMapping = Nt, t.CubeUVRefractionMapping = Bt, t.CubicBezierCurve = Vc, t.CubicBezierCurve3 = Uc, t.CubicInterpolant = ic, t.CullFaceBack = Y, t.CullFaceFront = Z, t.CullFaceFrontBack = 3, t.CullFaceNone = X, t.Curve = Ac, t.CurvePath = Xc, t.CustomBlending = it, t.CylinderBufferGeometry = Fl, t.CylinderGeometry = Bl, t.Cylindrical = mh, t.DataTexture = wr, t.DataTexture2DArray = Hr, t.DataTexture3D = Wr, t.DataTextureLoader = Sc, t.DecrementStencilOp = 7683, t.DecrementWrapStencilOp = 34056, t.DefaultLoadingManager = yc, t.DepthFormat = ee, t.DepthStencilFormat = ne, t.DepthTexture = Os, t.DirectionalLight = ou, t.DirectionalLightHelper = Fh, t.DirectionalLightShadow = au, t.DiscreteInterpolant = ac, t.DodecahedronBufferGeometry = Hs, t.DodecahedronGeometry = Gs, t.DoubleSide = $, t.DstAlphaFactor = mt, t.DstColorFactor = vt, t.DynamicBufferAttribute = function (t, e) { return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."), new yi(t, e).setUsage(Ae); }, t.DynamicCopyUsage = 35050, t.DynamicDrawUsage = Ae, t.DynamicReadUsage = 35049, t.EdgesGeometry = Nl, t.EdgesHelper = function (t, e) { return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."), new xs(new Nl(t.geometry), new us({ color: void 0 !== e ? e : 16777215 })); }, t.EllipseCurve = Dc, t.EqualDepth = Ct, t.EqualStencilFunc = 514, t.EquirectangularReflectionMapping = Pt, t.EquirectangularRefractionMapping = Rt, t.Euler = nn, t.EventDispatcher = De, t.ExtrudeBufferGeometry = bl, t.ExtrudeGeometry = wl, t.Face3 = pi, t.Face4 = function (t, e, n, i, r, a, o) { return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."), new pi(t, e, n, r, a, o); }, t.FaceColors = 1, t.FileLoader = wc, t.FlatShading = 1, t.Float32Attribute = function (t, e) { return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."), new Ti(t, e); }, t.Float32BufferAttribute = Ti, t.Float64Attribute = function (t, e) { return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."), new Ei(t, e); }, t.Float64BufferAttribute = Ei, t.FloatType = Zt, t.Fog = Oo, t.FogExp2 = Lo, t.Font = bu, t.FontLoader = Su, t.FrontFaceDirectionCCW = 1, t.FrontFaceDirectionCW = 0, t.FrontSide = O, t.Frustum = Sr, t.GammaEncoding = n, t.Geometry = lr, t.GeometryUtils = zd, t.GreaterDepth = Et, t.GreaterEqualDepth = Tt, t.GreaterEqualStencilFunc = 518, t.GreaterStencilFunc = 516, t.GridHelper = Ph, t.Group = Eo, t.HalfFloatType = $t, t.HemisphereLight = Kc, t.HemisphereLightHelper = Ih, t.HemisphereLightProbe = Du, t.IcosahedronBufferGeometry = js, t.IcosahedronGeometry = Us, t.ImageBitmapLoader = _u, t.ImageLoader = Cc, t.ImageUtils = Ne, t.ImmediateRenderObject = wh, t.IncrementStencilOp = 7682, t.IncrementWrapStencilOp = 34055, t.InstancedBufferAttribute = du, t.InstancedBufferGeometry = hu, t.InstancedInterleavedBuffer = uh, t.InstancedMesh = cs, t.Int16Attribute = function (t, e) { return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."), new bi(t, e); }, t.Int16BufferAttribute = bi, t.Int32Attribute = function (t, e) { return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."), new Si(t, e); }, t.Int32BufferAttribute = Si, t.Int8Attribute = function (t, e) { return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."), new xi(t, e); }, t.Int8BufferAttribute = xi, t.IntType = s, t.InterleavedBuffer = Io, t.InterleavedBufferAttribute = ko, t.Interpolant = nc, t.InterpolateDiscrete = ue, t.InterpolateLinear = he, t.InterpolateSmooth = 2302, t.InvertStencilOp = 5386, t.JSONLoader = function () { console.error("THREE.JSONLoader has been removed."); }, t.KeepStencilOp = Ce, t.KeyframeTrack = oc, t.LOD = Qo, t.LatheBufferGeometry = Il, t.LatheGeometry = Ol, t.Layers = rn, t.LensFlare = function () { console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js"); }, t.LessDepth = bt, t.LessEqualDepth = Mt, t.LessEqualStencilFunc = 515, t.LessStencilFunc = 513, t.Light = $c, t.LightProbe = Au, t.LightShadow = Qc, t.Line = gs, t.Line3 = _h, t.LineBasicMaterial = us, t.LineCurve = jc, t.LineCurve3 = Gc, t.LineDashedMaterial = Ql, t.LineLoop = _s, t.LinePieces = 1, t.LineSegments = xs, t.LineStrip = 0, t.LinearEncoding = me, t.LinearFilter = Ht, t.LinearInterpolant = rc, t.LinearMipMapLinearFilter = 1008, t.LinearMipMapNearestFilter = 1007, t.LinearMipmapLinearFilter = Jt, t.LinearMipmapNearestFilter = Wt, t.LinearToneMapping = Dt, t.Loader = xc, t.LoaderUtils = uu, t.LoadingManager = vc, t.LogLuvEncoding = ve, t.LoopOnce = 2200, t.LoopPingPong = 2202, t.LoopRepeat = 2201, t.LuminanceAlphaFormat = p, t.LuminanceFormat = d, t.MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, t.Material = mi, t.MaterialLoader = cu, t.Math = Pe, t.MathUtils = Pe, t.Matrix3 = ke, t.Matrix4 = Qe, t.MaxEquation = lt, t.Mesh = er, t.MeshBasicMaterial = gi, t.MeshDepthMaterial = go, t.MeshDistanceMaterial = vo, t.MeshFaceMaterial = function (t) { return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."), t; }, t.MeshLambertMaterial = $l, t.MeshMatcapMaterial = Kl, t.MeshNormalMaterial = Zl, t.MeshPhongMaterial = Xl, t.MeshPhysicalMaterial = ql, t.MeshStandardMaterial = Jl, t.MeshToonMaterial = Yl, t.MinEquation = st, t.MirroredRepeatWrapping = Vt, t.MixOperation = j, t.MultiMaterial = function (t) { return void 0 === t && (t = []), console.warn("THREE.MultiMaterial has been removed. Use an Array instead."), t.isMultiMaterial = !0, (t.materials = t).clone = function () { return t.slice(); }, t; }, t.MultiplyBlending = nt, t.MultiplyOperation = U, t.NearestFilter = Ut, t.NearestMipMapLinearFilter = 1005, t.NearestMipMapNearestFilter = 1004, t.NearestMipmapLinearFilter = Gt, t.NearestMipmapNearestFilter = jt, t.NeverDepth = _t, t.NeverStencilFunc = 512, t.NoBlending = K, t.NoColors = o, t.NoToneMapping = H, t.NormalBlending = Q, t.NotEqualDepth = At, t.NotEqualStencilFunc = 517, t.NumberKeyframeTrack = cc, t.Object3D = yn, t.ObjectLoader = mu, t.ObjectSpaceNormalMap = Se, t.OctahedronBufferGeometry = Vs, t.OctahedronGeometry = zs, t.OneFactor = ut, t.OneMinusDstAlphaFactor = gt, t.OneMinusDstColorFactor = yt, t.OneMinusSrcAlphaFactor = ft, t.OneMinusSrcColorFactor = dt, t.OrthographicCamera = ru, t.PCFShadowMap = F, t.PCFSoftShadowMap = z, t.PMREMGenerator = Md, t.ParametricBufferGeometry = Rs, t.ParametricGeometry = Ps, t.Particle = function (t) { return console.warn("THREE.Particle has been renamed to THREE.Sprite."), new Yo(t); }, t.ParticleBasicMaterial = function (t) { return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."), new ws(t); }, t.ParticleSystem = function (t, e) { return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."), new Ts(t, e); }, t.ParticleSystemMaterial = function (t) { return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."), new ws(t); }, t.Path = Yc, t.PerspectiveCamera = yr, t.Plane = Xn, t.PlaneBufferGeometry = Dr, t.PlaneGeometry = Ar, t.PlaneHelper = Jh, t.PointCloud = function (t, e) { return console.warn("THREE.PointCloud has been renamed to THREE.Points."), new Ts(t, e); }, t.PointCloudMaterial = function (t) { return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."), new ws(t); }, t.PointLight = iu, t.PointLightHelper = Ah, t.Points = Ts, t.PointsMaterial = ws, t.PolarGridHelper = Rh, t.PolyhedronBufferGeometry = Ns, t.PolyhedronGeometry = ks, t.PositionalAudio = Wu, t.PropertyBinding = ah, t.PropertyMixer = qu, t.QuadraticBezierCurve = Hc, t.QuadraticBezierCurve3 = Wc, t.Quaternion = je, t.QuaternionKeyframeTrack = hc, t.QuaternionLinearInterpolant = uc, t.REVISION = "113", t.RGBADepthPacking = be, t.RGBAFormat = te, t.RGBAIntegerFormat = _, t.RGBA_ASTC_10x10_Format = se, t.RGBA_ASTC_10x5_Format = re, t.RGBA_ASTC_10x6_Format = ae, t.RGBA_ASTC_10x8_Format = oe, t.RGBA_ASTC_12x10_Format = le, t.RGBA_ASTC_12x12_Format = ce, t.RGBA_ASTC_4x4_Format = L, t.RGBA_ASTC_5x4_Format = I, t.RGBA_ASTC_5x5_Format = P, t.RGBA_ASTC_6x5_Format = R, t.RGBA_ASTC_6x6_Format = k, t.RGBA_ASTC_8x5_Format = N, t.RGBA_ASTC_8x6_Format = B, t.RGBA_ASTC_8x8_Format = ie, t.RGBA_PVRTC_2BPPV1_Format = A, t.RGBA_PVRTC_4BPPV1_Format = E, t.RGBA_S3TC_DXT1_Format = b, t.RGBA_S3TC_DXT3_Format = M, t.RGBA_S3TC_DXT5_Format = S, t.RGBDEncoding = _e, t.RGBEEncoding = ge, t.RGBEFormat = i, t.RGBFormat = Qt, t.RGBIntegerFormat = x, t.RGBM16Encoding = xe, t.RGBM7Encoding = ye, t.RGB_ETC1_Format = D, t.RGB_PVRTC_2BPPV1_Format = T, t.RGB_PVRTC_4BPPV1_Format = C, t.RGB_S3TC_DXT1_Format = w, t.RGFormat = g, t.RGIntegerFormat = y, t.RawShaderMaterial = Wl, t.Ray = Hn, t.Raycaster = hh, t.RectAreaLight = lu, t.RedFormat = f, t.RedIntegerFormat = m, t.ReinhardToneMapping = W, t.RepeatWrapping = Ft, t.ReplaceStencilOp = 7681, t.ReverseSubtractEquation = ot, t.RingBufferGeometry = Ll, t.RingGeometry = Dl, t.Scene = xn, t.SceneUtils = Vd, t.ShaderChunk = Lr, t.ShaderLib = Or, t.ShaderMaterial = gr, t.ShadowMaterial = Hl, t.Shape = Zc, t.ShapeBufferGeometry = Rl, t.ShapeGeometry = Pl, t.ShapePath = wu, t.ShapeUtils = yl, t.ShortType = a, t.Skeleton = is, t.SkeletonHelper = Eh, t.SkinnedMesh = ts, t.SmoothShading = 2, t.Sphere = Nn, t.SphereBufferGeometry = Al, t.SphereGeometry = El, t.Spherical = fh, t.SphericalHarmonics3 = Eu, t.SphericalReflectionMapping = kt, t.Spline = Fd, t.SplineCurve = Jc, t.SplineCurve3 = Bd, t.SpotLight = eu, t.SpotLightHelper = Mh, t.SpotLightShadow = tu, t.Sprite = Yo, t.SpriteMaterial = No, t.SrcAlphaFactor = pt, t.SrcAlphaSaturateFactor = xt, t.SrcColorFactor = ht, t.StaticCopyUsage = 35046, t.StaticDrawUsage = Ee, t.StaticReadUsage = 35045, t.StereoCamera = Pu, t.StreamCopyUsage = 35042, t.StreamDrawUsage = 35040, t.StreamReadUsage = 35041, t.StringKeyframeTrack = dc, t.SubtractEquation = at, t.SubtractiveBlending = et, t.TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, t.TangentSpaceNormalMap = Me, t.TetrahedronBufferGeometry = Fs, t.TetrahedronGeometry = Bs, t.TextBufferGeometry = Tl, t.TextGeometry = Cl, t.Texture = Fe, t.TextureLoader = Ec, t.TorusBufferGeometry = Zs, t.TorusGeometry = Ys, t.TorusKnotBufferGeometry = Xs, t.TorusKnotGeometry = qs, t.Triangle = ai, t.TriangleFanDrawMode = 2, t.TriangleStripDrawMode = 1, t.TrianglesDrawMode = 0, t.TubeBufferGeometry = Js, t.TubeGeometry = Ws, t.UVMapping = 300, t.Uint16Attribute = function (t, e) { return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."), new Mi(t, e); }, t.Uint16BufferAttribute = Mi, t.Uint32Attribute = function (t, e) { return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."), new Ci(t, e); }, t.Uint32BufferAttribute = Ci, t.Uint8Attribute = function (t, e) { return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."), new _i(t, e); }, t.Uint8BufferAttribute = _i, t.Uint8ClampedAttribute = function (t, e) { return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."), new wi(t, e); }, t.Uint8ClampedBufferAttribute = wi, t.Uncharted2ToneMapping = J, t.Uniform = ch, t.UniformsLib = Cr, t.UniformsUtils = pr, t.UnsignedByteType = qt, t.UnsignedInt248Type = Kt, t.UnsignedIntType = Yt, t.UnsignedShort4444Type = l, t.UnsignedShort5551Type = c, t.UnsignedShort565Type = u, t.UnsignedShortType = Xt, t.VSMShadowMap = V, t.Vector2 = Re, t.Vector3 = We, t.Vector4 = ze, t.VectorKeyframeTrack = pc, t.Vertex = function (t, e, n) { return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."), new We(t, e, n); }, t.VertexColors = v, t.VideoTexture = As, t.WebGLCubeRenderTarget = _r, t.WebGLMultisampleRenderTarget = Ue, t.WebGLRenderTarget = Ve, t.WebGLRenderTargetCube = function (t, e, n) { return console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."), new _r(t, n); }, t.WebGLRenderer = Do, t.WebGLUtils = Mo, t.WireframeGeometry = Is, t.WireframeHelper = function (t, e) { return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."), new xs(new Is(t.geometry), new us({ color: void 0 !== e ? e : 16777215 })); }, t.WrapAroundEnding = fe, t.XHRLoader = function (t) { return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."), new wc(t); }, t.ZeroCurvatureEnding = de, t.ZeroFactor = ct, t.ZeroSlopeEnding = pe, t.ZeroStencilOp = 0, t.sRGBEncoding = e, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
5247
|
+
var Ud = { createMultiMaterialObject: function () { console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js"); }, detach: function () { console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js"); }, attach: function () { console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js"); } };
|
|
5248
|
+
"undefined" != typeof __THREE_DEVTOOLS__ && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("register", { detail: { revision: "113" } })), t.ACESFilmicToneMapping = Lt, t.AddEquation = rt, t.AddOperation = G, t.AdditiveBlending = tt, t.AlphaFormat = h, t.AlwaysDepth = wt, t.AlwaysStencilFunc = Te, t.AmbientLight = su, t.AmbientLightProbe = Lu, t.AnimationClip = fc, t.AnimationLoader = bc, t.AnimationMixer = lh, t.AnimationObjectGroup = oh, t.AnimationUtils = ec, t.ArcCurve = Lc, t.ArrayCamera = To, t.ArrowHelper = Zh, t.Audio = Uu, t.AudioAnalyser = Ju, t.AudioContext = Cu, t.AudioListener = zu, t.AudioLoader = Tu, t.AxesHelper = $h, t.AxisHelper = function (t) { return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."), new $h(t); }, t.BackSide = St, t.BasicDepthPacking = we, t.BasicShadowMap = 0, t.BinaryTextureLoader = function (t) { return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."), new Sc(t); }, t.Bone = rs, t.BooleanKeyframeTrack = sc, t.BoundingBoxHelper = function (t, e) { return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."), new Hh(t, e); }, t.Box2 = vh, t.Box3 = Pn, t.Box3Helper = Wh, t.BoxBufferGeometry = ur, t.BoxGeometry = cr, t.BoxHelper = Hh, t.BufferAttribute = yi, t.BufferGeometry = Bi, t.BufferGeometryLoader = pu, t.ByteType = r, t.Cache = gc, t.Camera = vr, t.CameraHelper = Vh, t.CanvasRenderer = function () { console.error("THREE.CanvasRenderer has been removed"); }, t.CanvasTexture = Ls, t.CatmullRomCurve3 = Nc, t.CineonToneMapping = q, t.CircleBufferGeometry = jl, t.CircleGeometry = Vl, t.ClampToEdgeWrapping = zt, t.Clock = Ru, t.ClosedSplineCurve3 = Nd, t.Color = ci, t.ColorKeyframeTrack = lc, t.CompressedTexture = Ds, t.CompressedTextureLoader = Mc, t.ConeBufferGeometry = Ul, t.ConeGeometry = zl, t.CubeCamera = xr, t.CubeGeometry = cr, t.CubeReflectionMapping = Ot, t.CubeRefractionMapping = It, t.CubeTexture = Gr, t.CubeTextureLoader = Tc, t.CubeUVReflectionMapping = Nt, t.CubeUVRefractionMapping = Bt, t.CubicBezierCurve = Uc, t.CubicBezierCurve3 = Vc, t.CubicInterpolant = ic, t.CullFaceBack = Y, t.CullFaceFront = Z, t.CullFaceFrontBack = 3, t.CullFaceNone = X, t.Curve = Ac, t.CurvePath = Xc, t.CustomBlending = it, t.CylinderBufferGeometry = Fl, t.CylinderGeometry = Bl, t.Cylindrical = mh, t.DataTexture = wr, t.DataTexture2DArray = Hr, t.DataTexture3D = Wr, t.DataTextureLoader = Sc, t.DecrementStencilOp = 7683, t.DecrementWrapStencilOp = 34056, t.DefaultLoadingManager = yc, t.DepthFormat = ee, t.DepthStencilFormat = ne, t.DepthTexture = Os, t.DirectionalLight = ou, t.DirectionalLightHelper = Fh, t.DirectionalLightShadow = au, t.DiscreteInterpolant = ac, t.DodecahedronBufferGeometry = Hs, t.DodecahedronGeometry = Gs, t.DoubleSide = $, t.DstAlphaFactor = mt, t.DstColorFactor = vt, t.DynamicBufferAttribute = function (t, e) { return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setUsage( THREE.DynamicDrawUsage ) instead."), new yi(t, e).setUsage(Ae); }, t.DynamicCopyUsage = 35050, t.DynamicDrawUsage = Ae, t.DynamicReadUsage = 35049, t.EdgesGeometry = Nl, t.EdgesHelper = function (t, e) { return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."), new xs(new Nl(t.geometry), new us({ color: void 0 !== e ? e : 16777215 })); }, t.EllipseCurve = Dc, t.EqualDepth = Ct, t.EqualStencilFunc = 514, t.EquirectangularReflectionMapping = Pt, t.EquirectangularRefractionMapping = Rt, t.Euler = nn, t.EventDispatcher = De, t.ExtrudeBufferGeometry = bl, t.ExtrudeGeometry = wl, t.Face3 = pi, t.Face4 = function (t, e, n, i, r, a, o) { return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."), new pi(t, e, n, r, a, o); }, t.FaceColors = 1, t.FileLoader = wc, t.FlatShading = 1, t.Float32Attribute = function (t, e) { return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."), new Ti(t, e); }, t.Float32BufferAttribute = Ti, t.Float64Attribute = function (t, e) { return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."), new Ei(t, e); }, t.Float64BufferAttribute = Ei, t.FloatType = Zt, t.Fog = Oo, t.FogExp2 = Lo, t.Font = bu, t.FontLoader = Su, t.FrontFaceDirectionCCW = 1, t.FrontFaceDirectionCW = 0, t.FrontSide = O, t.Frustum = Sr, t.GammaEncoding = n, t.Geometry = lr, t.GeometryUtils = zd, t.GreaterDepth = Et, t.GreaterEqualDepth = Tt, t.GreaterEqualStencilFunc = 518, t.GreaterStencilFunc = 516, t.GridHelper = Ph, t.Group = Eo, t.HalfFloatType = $t, t.HemisphereLight = Kc, t.HemisphereLightHelper = Ih, t.HemisphereLightProbe = Du, t.IcosahedronBufferGeometry = js, t.IcosahedronGeometry = Vs, t.ImageBitmapLoader = _u, t.ImageLoader = Cc, t.ImageUtils = Ne, t.ImmediateRenderObject = wh, t.IncrementStencilOp = 7682, t.IncrementWrapStencilOp = 34055, t.InstancedBufferAttribute = du, t.InstancedBufferGeometry = hu, t.InstancedInterleavedBuffer = uh, t.InstancedMesh = cs, t.Int16Attribute = function (t, e) { return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."), new bi(t, e); }, t.Int16BufferAttribute = bi, t.Int32Attribute = function (t, e) { return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."), new Si(t, e); }, t.Int32BufferAttribute = Si, t.Int8Attribute = function (t, e) { return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."), new xi(t, e); }, t.Int8BufferAttribute = xi, t.IntType = s, t.InterleavedBuffer = Io, t.InterleavedBufferAttribute = ko, t.Interpolant = nc, t.InterpolateDiscrete = ue, t.InterpolateLinear = he, t.InterpolateSmooth = 2302, t.InvertStencilOp = 5386, t.JSONLoader = function () { console.error("THREE.JSONLoader has been removed."); }, t.KeepStencilOp = Ce, t.KeyframeTrack = oc, t.LOD = Qo, t.LatheBufferGeometry = Il, t.LatheGeometry = Ol, t.Layers = rn, t.LensFlare = function () { console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js"); }, t.LessDepth = bt, t.LessEqualDepth = Mt, t.LessEqualStencilFunc = 515, t.LessStencilFunc = 513, t.Light = $c, t.LightProbe = Au, t.LightShadow = Qc, t.Line = gs, t.Line3 = _h, t.LineBasicMaterial = us, t.LineCurve = jc, t.LineCurve3 = Gc, t.LineDashedMaterial = Ql, t.LineLoop = _s, t.LinePieces = 1, t.LineSegments = xs, t.LineStrip = 0, t.LinearEncoding = me, t.LinearFilter = Ht, t.LinearInterpolant = rc, t.LinearMipMapLinearFilter = 1008, t.LinearMipMapNearestFilter = 1007, t.LinearMipmapLinearFilter = Jt, t.LinearMipmapNearestFilter = Wt, t.LinearToneMapping = Dt, t.Loader = xc, t.LoaderUtils = uu, t.LoadingManager = vc, t.LogLuvEncoding = ve, t.LoopOnce = 2200, t.LoopPingPong = 2202, t.LoopRepeat = 2201, t.LuminanceAlphaFormat = p, t.LuminanceFormat = d, t.MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, t.Material = mi, t.MaterialLoader = cu, t.Math = Pe, t.MathUtils = Pe, t.Matrix3 = ke, t.Matrix4 = Qe, t.MaxEquation = lt, t.Mesh = er, t.MeshBasicMaterial = gi, t.MeshDepthMaterial = go, t.MeshDistanceMaterial = vo, t.MeshFaceMaterial = function (t) { return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."), t; }, t.MeshLambertMaterial = $l, t.MeshMatcapMaterial = Kl, t.MeshNormalMaterial = Zl, t.MeshPhongMaterial = Xl, t.MeshPhysicalMaterial = ql, t.MeshStandardMaterial = Jl, t.MeshToonMaterial = Yl, t.MinEquation = st, t.MirroredRepeatWrapping = Ut, t.MixOperation = j, t.MultiMaterial = function (t) { return void 0 === t && (t = []), console.warn("THREE.MultiMaterial has been removed. Use an Array instead."), t.isMultiMaterial = !0, (t.materials = t).clone = function () { return t.slice(); }, t; }, t.MultiplyBlending = nt, t.MultiplyOperation = V, t.NearestFilter = Vt, t.NearestMipMapLinearFilter = 1005, t.NearestMipMapNearestFilter = 1004, t.NearestMipmapLinearFilter = Gt, t.NearestMipmapNearestFilter = jt, t.NeverDepth = _t, t.NeverStencilFunc = 512, t.NoBlending = K, t.NoColors = o, t.NoToneMapping = H, t.NormalBlending = Q, t.NotEqualDepth = At, t.NotEqualStencilFunc = 517, t.NumberKeyframeTrack = cc, t.Object3D = yn, t.ObjectLoader = mu, t.ObjectSpaceNormalMap = Se, t.OctahedronBufferGeometry = Us, t.OctahedronGeometry = zs, t.OneFactor = ut, t.OneMinusDstAlphaFactor = gt, t.OneMinusDstColorFactor = yt, t.OneMinusSrcAlphaFactor = ft, t.OneMinusSrcColorFactor = dt, t.OrthographicCamera = ru, t.PCFShadowMap = F, t.PCFSoftShadowMap = z, t.PMREMGenerator = Md, t.ParametricBufferGeometry = Rs, t.ParametricGeometry = Ps, t.Particle = function (t) { return console.warn("THREE.Particle has been renamed to THREE.Sprite."), new Yo(t); }, t.ParticleBasicMaterial = function (t) { return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."), new ws(t); }, t.ParticleSystem = function (t, e) { return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."), new Ts(t, e); }, t.ParticleSystemMaterial = function (t) { return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."), new ws(t); }, t.Path = Yc, t.PerspectiveCamera = yr, t.Plane = Xn, t.PlaneBufferGeometry = Dr, t.PlaneGeometry = Ar, t.PlaneHelper = Jh, t.PointCloud = function (t, e) { return console.warn("THREE.PointCloud has been renamed to THREE.Points."), new Ts(t, e); }, t.PointCloudMaterial = function (t) { return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."), new ws(t); }, t.PointLight = iu, t.PointLightHelper = Ah, t.Points = Ts, t.PointsMaterial = ws, t.PolarGridHelper = Rh, t.PolyhedronBufferGeometry = Ns, t.PolyhedronGeometry = ks, t.PositionalAudio = Wu, t.PropertyBinding = ah, t.PropertyMixer = qu, t.QuadraticBezierCurve = Hc, t.QuadraticBezierCurve3 = Wc, t.Quaternion = je, t.QuaternionKeyframeTrack = hc, t.QuaternionLinearInterpolant = uc, t.REVISION = "113", t.RGBADepthPacking = be, t.RGBAFormat = te, t.RGBAIntegerFormat = _, t.RGBA_ASTC_10x10_Format = se, t.RGBA_ASTC_10x5_Format = re, t.RGBA_ASTC_10x6_Format = ae, t.RGBA_ASTC_10x8_Format = oe, t.RGBA_ASTC_12x10_Format = le, t.RGBA_ASTC_12x12_Format = ce, t.RGBA_ASTC_4x4_Format = L, t.RGBA_ASTC_5x4_Format = I, t.RGBA_ASTC_5x5_Format = P, t.RGBA_ASTC_6x5_Format = R, t.RGBA_ASTC_6x6_Format = k, t.RGBA_ASTC_8x5_Format = N, t.RGBA_ASTC_8x6_Format = B, t.RGBA_ASTC_8x8_Format = ie, t.RGBA_PVRTC_2BPPV1_Format = A, t.RGBA_PVRTC_4BPPV1_Format = E, t.RGBA_S3TC_DXT1_Format = b, t.RGBA_S3TC_DXT3_Format = M, t.RGBA_S3TC_DXT5_Format = S, t.RGBDEncoding = _e, t.RGBEEncoding = ge, t.RGBEFormat = i, t.RGBFormat = Qt, t.RGBIntegerFormat = x, t.RGBM16Encoding = xe, t.RGBM7Encoding = ye, t.RGB_ETC1_Format = D, t.RGB_PVRTC_2BPPV1_Format = T, t.RGB_PVRTC_4BPPV1_Format = C, t.RGB_S3TC_DXT1_Format = w, t.RGFormat = g, t.RGIntegerFormat = y, t.RawShaderMaterial = Wl, t.Ray = Hn, t.Raycaster = hh, t.RectAreaLight = lu, t.RedFormat = f, t.RedIntegerFormat = m, t.ReinhardToneMapping = W, t.RepeatWrapping = Ft, t.ReplaceStencilOp = 7681, t.ReverseSubtractEquation = ot, t.RingBufferGeometry = Ll, t.RingGeometry = Dl, t.Scene = xn, t.SceneUtils = Ud, t.ShaderChunk = Lr, t.ShaderLib = Or, t.ShaderMaterial = gr, t.ShadowMaterial = Hl, t.Shape = Zc, t.ShapeBufferGeometry = Rl, t.ShapeGeometry = Pl, t.ShapePath = wu, t.ShapeUtils = yl, t.ShortType = a, t.Skeleton = is, t.SkeletonHelper = Eh, t.SkinnedMesh = ts, t.SmoothShading = 2, t.Sphere = Nn, t.SphereBufferGeometry = Al, t.SphereGeometry = El, t.Spherical = fh, t.SphericalHarmonics3 = Eu, t.SphericalReflectionMapping = kt, t.Spline = Fd, t.SplineCurve = Jc, t.SplineCurve3 = Bd, t.SpotLight = eu, t.SpotLightHelper = Mh, t.SpotLightShadow = tu, t.Sprite = Yo, t.SpriteMaterial = No, t.SrcAlphaFactor = pt, t.SrcAlphaSaturateFactor = xt, t.SrcColorFactor = ht, t.StaticCopyUsage = 35046, t.StaticDrawUsage = Ee, t.StaticReadUsage = 35045, t.StereoCamera = Pu, t.StreamCopyUsage = 35042, t.StreamDrawUsage = 35040, t.StreamReadUsage = 35041, t.StringKeyframeTrack = dc, t.SubtractEquation = at, t.SubtractiveBlending = et, t.TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, t.TangentSpaceNormalMap = Me, t.TetrahedronBufferGeometry = Fs, t.TetrahedronGeometry = Bs, t.TextBufferGeometry = Tl, t.TextGeometry = Cl, t.Texture = Fe, t.TextureLoader = Ec, t.TorusBufferGeometry = Zs, t.TorusGeometry = Ys, t.TorusKnotBufferGeometry = Xs, t.TorusKnotGeometry = qs, t.Triangle = ai, t.TriangleFanDrawMode = 2, t.TriangleStripDrawMode = 1, t.TrianglesDrawMode = 0, t.TubeBufferGeometry = Js, t.TubeGeometry = Ws, t.UVMapping = 300, t.Uint16Attribute = function (t, e) { return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."), new Mi(t, e); }, t.Uint16BufferAttribute = Mi, t.Uint32Attribute = function (t, e) { return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."), new Ci(t, e); }, t.Uint32BufferAttribute = Ci, t.Uint8Attribute = function (t, e) { return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."), new _i(t, e); }, t.Uint8BufferAttribute = _i, t.Uint8ClampedAttribute = function (t, e) { return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."), new wi(t, e); }, t.Uint8ClampedBufferAttribute = wi, t.Uncharted2ToneMapping = J, t.Uniform = ch, t.UniformsLib = Cr, t.UniformsUtils = pr, t.UnsignedByteType = qt, t.UnsignedInt248Type = Kt, t.UnsignedIntType = Yt, t.UnsignedShort4444Type = l, t.UnsignedShort5551Type = c, t.UnsignedShort565Type = u, t.UnsignedShortType = Xt, t.VSMShadowMap = U, t.Vector2 = Re, t.Vector3 = We, t.Vector4 = ze, t.VectorKeyframeTrack = pc, t.Vertex = function (t, e, n) { return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."), new We(t, e, n); }, t.VertexColors = v, t.VideoTexture = As, t.WebGLCubeRenderTarget = _r, t.WebGLMultisampleRenderTarget = Ve, t.WebGLRenderTarget = Ue, t.WebGLRenderTargetCube = function (t, e, n) { return console.warn("THREE.WebGLRenderTargetCube( width, height, options ) is now WebGLCubeRenderTarget( size, options )."), new _r(t, n); }, t.WebGLRenderer = Do, t.WebGLUtils = Mo, t.WireframeGeometry = Is, t.WireframeHelper = function (t, e) { return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."), new xs(new Is(t.geometry), new us({ color: void 0 !== e ? e : 16777215 })); }, t.WrapAroundEnding = fe, t.XHRLoader = function (t) { return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."), new wc(t); }, t.ZeroCurvatureEnding = de, t.ZeroFactor = ct, t.ZeroSlopeEnding = pe, t.ZeroStencilOp = 0, t.sRGBEncoding = e, Object.defineProperty(t, "__esModule", { value: !0 });
|
|
5249
5249
|
}, "object" == typeof n && void 0 !== e ? r(n) : "function" == typeof define && define.amd ? define(["exports"], r) : r((i = i || self).THREE = {}); }, {}], 20: [function (t, e, n) {
|
|
5250
5250
|
"use strict";
|
|
5251
5251
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.McEdJigOsnap = n.McEdImpJigGlobalData = n.MxOsnapDefine = void 0;
|
|
@@ -5756,7 +5756,7 @@ function mxfun() {
|
|
|
5756
5756
|
}, {}], 28: [function (t, e, n) {
|
|
5757
5757
|
"use strict";
|
|
5758
5758
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.MxCADObject = void 0;
|
|
5759
|
-
var i = t("./MxCADEditDisplay"), r = t("./MxCADOpenDisplay"), a = t("./MxCADSelect"), o = t("./MxCADGrip"), s = (l.prototype.reInit = function () { this.openDisplay.reInit(), this.databsae.reInit(), this.mxObj.reInit(); }, l.prototype.getSelect = function () { return this.select; }, l.prototype.getGrip = function () { return this.grip; }, l.prototype.newFile = function () { this.reInit(), this.openFile(""); }, l.prototype.openFile = function (t, e) { var n = this; this.reInit(), this._openFile = t, this.mxObj.callCommand("MxCAD_OpenFile", JSON.stringify({ file: t }), function (t) { n.mxObj.callCommand("MxCAD_SendDisplay"), "string" != typeof t || t.length < 1 ? e && e({}) : e && e(JSON.parse(t)); }); }, l.prototype.saveFile = function (t, e) { this.mxObj.callCommand("MxCAD_SaveFile", JSON.stringify({ file: t }), function (t) { e(JSON.parse(t)); }); }, l.prototype.getDisplayFromServer = function () { this.reInit(), this.mxObj.callCommand("MxCAD_SendDisplay"); }, l.prototype.getFileName = function () { return this._openFile; }, l.prototype.getDatabase = function () { return this.databsae; }, l.prototype.getOpenDisplay = function () { return this.openDisplay; }, l.prototype.getSyncDisplay = function () { return this.syncDisplay; }, l.prototype.getAllLayerData = function () { return this.databsae.getLayerTable().getAllLayerData(); }, l);
|
|
5759
|
+
var i = t("./MxCADEditDisplay"), r = t("./MxCADOpenDisplay"), a = t("./MxCADSelect"), o = t("./MxCADGrip"), s = (l.prototype.reInit = function () { this.openDisplay.reInit(), this.databsae.reInit(), this.mxObj.reInit(); }, l.prototype.getSelect = function () { return this.select; }, l.prototype.getGrip = function () { return this.grip; }, l.prototype.newFile = function () { this.reInit(), this.openFile(""); }, l.prototype.undo = function () { this.mxObj.undo(); }, l.prototype.openFile = function (t, e) { var n = this; this.reInit(), this._openFile = t, this.mxObj.callCommand("MxCAD_OpenFile", JSON.stringify({ file: t }), function (t) { n.mxObj.callCommand("MxCAD_SendDisplay"), "string" != typeof t || t.length < 1 ? e && e({}) : e && e(JSON.parse(t)); }); }, l.prototype.saveFile = function (t, e) { this.mxObj.callCommand("MxCAD_SaveFile", JSON.stringify({ file: t }), function (t) { e(JSON.parse(t)); }); }, l.prototype.getDisplayFromServer = function () { this.reInit(), this.mxObj.callCommand("MxCAD_SendDisplay"); }, l.prototype.getFileName = function () { return this._openFile; }, l.prototype.getDatabase = function () { return this.databsae; }, l.prototype.getOpenDisplay = function () { return this.openDisplay; }, l.prototype.getSyncDisplay = function () { return this.syncDisplay; }, l.prototype.getAllLayerData = function () { return this.databsae.getLayerTable().getAllLayerData(); }, l);
|
|
5760
5760
|
function l(t) { this._openFile = "", this.mxObj = null, this.databsae = null, this.openDisplay = null, this.syncDisplay = null, this.select = null, this.grip = null, this.mxObj = t, this.databsae = new i.MxCADDatabase(t), this.openDisplay = new r.MxCADOpenDisplay(this.databsae), this.syncDisplay = new i.MxCADSyncDisplay(this.databsae), this.select = new a.MxCADSelect(t), this.grip = new o.MxCADGrip(t); }
|
|
5761
5761
|
n.MxCADObject = s;
|
|
5762
5762
|
}, { "./MxCADEditDisplay": 25, "./MxCADGrip": 26, "./MxCADOpenDisplay": 29, "./MxCADSelect": 30 }], 29: [function (t, e, n) {
|
|
@@ -5913,20 +5913,26 @@ function mxfun() {
|
|
|
5913
5913
|
}, {}], 32: [function (t, e, n) {
|
|
5914
5914
|
"use strict";
|
|
5915
5915
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.MxCmdRunManager = void 0;
|
|
5916
|
-
var i,
|
|
5917
|
-
i = n.MxCmdRunManager || (n.MxCmdRunManager = {}),
|
|
5916
|
+
var i, h, d, p, f, m, g, v = t("./MxFun"), y = t("./MxType"), x = t("./MxJigCmdManager"), _ = t("./MxUiVue");
|
|
5917
|
+
i = n.MxCmdRunManager || (n.MxCmdRunManager = {}), h = {}, d = new Array, p = 0, f = !1, m = "", g = {}, i.InitQuickCommand = function (t) { for (var e = t.length, n = 0; n < e; n++) {
|
|
5918
5918
|
var i = t[n];
|
|
5919
5919
|
if (!(i.length < 2)) {
|
|
5920
5920
|
var r = i[0];
|
|
5921
5921
|
if (0 != r.length)
|
|
5922
5922
|
for (var a = i.length, o = 1; o < a; o++)
|
|
5923
|
-
0 != i[o].length && (
|
|
5923
|
+
0 != i[o].length && (g[i[o].toUpperCase()] = r);
|
|
5924
|
+
}
|
|
5925
|
+
} }, i.MoveUpKey = function () { return f ? ++p >= d.length && (p = 0) : f = !0, !0; }, i.MoveDownKey = function () { return !!f && (--p < 0 && (p = d.length - 1), !0); }, i.GetListCommad = function () { return p < 0 || p >= d.length ? "" : d[p]; }, i.ClearPrvCmd = function () { m = ""; }, i.GetPrvCmd = function () { return m; }, i.SetPrvCmd = function (t) { m = t; }, i.runCmd = function (t, e, n) { var i = e.toUpperCase(), r = h[i]; if (null == r) {
|
|
5926
|
+
var a = g[i];
|
|
5927
|
+
if (null != a && (r = h[a.toUpperCase()]), null == r)
|
|
5928
|
+
return _.MxUiVue.isNull() ? console.log(v.MxFun.formatString('未知命令"{0}"', e)) : _.MxUiVue.acutPrintf('未知命令"{0}"。\n命令:', e), !1;
|
|
5929
|
+
} var o = d.indexOf(r.cmd); -1 < o && d.splice(o, 1), f = !(p = 0), d.push(r.cmd), m = r.cmd; var s = r.fun; if (0 == (r.flag & y.MxType.CommandFlags.MCRX_CMD_TRANSPARENT) && _.MxUiVue.acutPrintf("{0}\n", r.cmd), x.MxJigCmdManager.stopCmd(), t.undoMark(), "Mx_GripEdit" != e && "Mx_IntelliSel" != e) {
|
|
5930
|
+
var l = t.getMxCAD();
|
|
5931
|
+
if (l) {
|
|
5932
|
+
var c = l.getSelect().clearAllSelect(), u = l.getGrip().clearAll();
|
|
5933
|
+
(c || u) && t.updateDisplay();
|
|
5924
5934
|
}
|
|
5925
|
-
}
|
|
5926
|
-
var r = d[n];
|
|
5927
|
-
if (null != r && (i = s[r.toUpperCase()]), null == i)
|
|
5928
|
-
return g.MxUiVue.isNull() ? console.log(p.MxFun.formatString('未知命令"{0}"', t)) : g.MxUiVue.acutPrintf('未知命令"{0}"。\n命令:', t), !1;
|
|
5929
|
-
} var a = l.indexOf(i.cmd); -1 < a && l.splice(a, 1), u = !(c = 0), l.push(i.cmd), h = i.cmd; var o = i.fun; return 0 == (i.flag & f.MxType.CommandFlags.MCRX_CMD_TRANSPARENT) && g.MxUiVue.acutPrintf("{0}\n", i.cmd), m.MxJigCmdManager.stopCmd(), o(e), m.MxJigCmdManager.isRunning() || g.MxUiVue.restoreCmdStatus(), !0; }, i.addCommand = function (t, e, n) { null == n && (n = f.MxType.CommandFlags.MCRX_CMD_MODAL); var i = t.toUpperCase(); s[i] = { fun: e, cmd: t, flag: n }; };
|
|
5935
|
+
} return s(n), x.MxJigCmdManager.isRunning() || _.MxUiVue.restoreCmdStatus(), !0; }, i.addCommand = function (t, e, n) { null == n && (n = y.MxType.CommandFlags.MCRX_CMD_MODAL); var i = t.toUpperCase(); h[i] = { fun: e, cmd: t, flag: n }; };
|
|
5930
5936
|
}, { "./MxFun": 39, "./MxJigCmdManager": 42, "./MxType": 54, "./MxUiVue": 58 }], 33: [function (t, e, n) {
|
|
5931
5937
|
"use strict";
|
|
5932
5938
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.MxDrawCommands = void 0;
|
|
@@ -5978,7 +5984,7 @@ function mxfun() {
|
|
|
5978
5984
|
e.init(this, !1), this._extRefManager.createTzDwgExternalReferences(99999), e.setCurrentDatabaseId(99999), this._staticLoadTzNet = new h.MxHFileLoad(e), this._staticLoadTzNet.setShowloading(!1), this._staticLoadTzNet.setRequestHeader(this._requestHeader), this._staticLoadTzNet.load(encodeURIComponent(this._tzDwgStaticFile));
|
|
5979
5985
|
}
|
|
5980
5986
|
} }, _.prototype.getStaticNet = function () { return this._staticNet; }, _.prototype.isStaticFileNet = function () { return !this._isStaticLocalLoad && null != this._staticNet; }, _.prototype.getStaticLocalNet = function () { return this._staticLocalNet; }, _.prototype.getStaticLoadTzNet = function () { return this._staticLoadTzNet; }, _.prototype.getViewWidth = function () { return null != this._userCanvas ? this._userCanvas.clientWidth : this._viewWidth; }, _.prototype.getViewHeight = function () { return null != this._userCanvas ? this._userCanvas.clientHeight : this._viewHeight; }, _.prototype.makeCurrent = function () { p.MxManager.setCurrentMx(this); }, _.prototype.createCanvasImageData = function (e, t) { var n = this, i = 0, r = 0, a = !1; t && t.width && t.height && (i = this.getViewWidth(), r = this.getViewHeight(), a = !0, this.setSize(t.width, t.height)), this._callCreateCanvasImageData = function (t) { a && n.setSize(i, r), e(t); }, this.updateDisplay(); }, _.prototype.getIntersectObjects = function (t) { var e = new c.Raycaster; e.linePrecision = this.screenCoordLong2World(4); var n = this.getCanvas(), i = n.clientWidth, r = n.clientHeight; return t = new c.Vector2(t.x / i * 2 - 1, -t.y / r * 2 + 1), e.setFromCamera(t, this.camera), e.intersectObjects(this.threejsselectObjects.children, !0); }, _.prototype.addObject = function (t, e) { null == e || 1 == e ? (this.threejsselectObjects.add(t), this.threejsselectObjects.remove) : this.scene.add(t); }, _.prototype.removeAllSelectObject = function () { for (; this.threejsselectObjects.children.length;)
|
|
5981
|
-
this.threejsselectObjects.remove(this.threejsselectObjects.children[0]); }, _.prototype.removeObject = function (t, e) { null == e || 1 == e ? this.threejsselectObjects.remove(t) : this.scene.remove(t); }, _.prototype.render = function () { this.renderer.render(this.scene, this.camera), null != this._callCreateCanvasImageData && (this._callCreateCanvasImageData(this.renderer.domElement.toDataURL("image/png")), this._callCreateCanvasImageData = void 0); }, _.prototype.updateDisplay = function (t) { function e() { n._isAnimation ? (n._isAnimationStarting = !0, requestAnimationFrame(this.needRander)) : n._isWaiteCount = 0, n.render(); } void 0 === t && (t = !1); var n = this; !0 !== t ? this._isAnimationStarting || (this._isAnimation ? requestAnimationFrame(e) : ((5 < this._isWaiteCount || this._isWaiteCount < 0) && (this._isWaiteCount = 0), this._isWaiteCount <= 0 && requestAnimationFrame(e), this._isWaiteCount++)) : e(); }, _.prototype.gotoLayout = function (t) { "Modle" == t && (t = ""); var e = this._openFile; for (var n in this._iniParam)
|
|
5987
|
+
this.threejsselectObjects.remove(this.threejsselectObjects.children[0]); }, _.prototype.removeObject = function (t, e) { null == e || 1 == e ? this.threejsselectObjects.remove(t) : this.scene.remove(t); }, _.prototype.render = function () { this.renderer.render(this.scene, this.camera), null != this._callCreateCanvasImageData && (this._callCreateCanvasImageData(this.renderer.domElement.toDataURL("image/png")), this._callCreateCanvasImageData = void 0), this.callEvent("render", this.renderer); }, _.prototype.updateDisplay = function (t) { function e() { n._isAnimation ? (n._isAnimationStarting = !0, requestAnimationFrame(this.needRander)) : n._isWaiteCount = 0, n.render(); } void 0 === t && (t = !1); var n = this; !0 !== t ? this._isAnimationStarting || (this._isAnimation ? requestAnimationFrame(e) : ((5 < this._isWaiteCount || this._isWaiteCount < 0) && (this._isWaiteCount = 0), this._isWaiteCount <= 0 && requestAnimationFrame(e), this._isWaiteCount++)) : e(); }, _.prototype.gotoLayout = function (t) { "Modle" == t && (t = ""); var e = this._openFile; for (var n in this._iniParam)
|
|
5982
5988
|
"srcname" == (o = (a = this._iniParam[n])[0]) && (e = a[1]); var i = {}, r = ""; for (var n in this._iniParam) {
|
|
5983
5989
|
var a, o;
|
|
5984
5990
|
if (null == i[o = (a = this._iniParam[n])[0]]) {
|
|
@@ -6013,7 +6019,7 @@ function mxfun() {
|
|
|
6013
6019
|
null != t && (this._viewWidth = t.width, this._viewHeight = t.height);
|
|
6014
6020
|
}
|
|
6015
6021
|
this.onResizeImp(this._viewWidth, this._viewHeight);
|
|
6016
|
-
} this.updateDisplay(); }, _.prototype.is2D = function () { return this._is2d; }, _.prototype.getOpenFile = function () { return this._openFile; }, _.prototype.getIniParam = function () { return this._iniParam; }, _.prototype.getOpenFileExtName = function () { return this._openFileExtName; }, _.prototype.loadCodeToServer = function (t, e) { this._net.getSend().CallLoadCodeToServer(t, e); }, _.prototype.openFile = function (t) { this._net.getSend().OpenFile(t); }, _.prototype.userLogin = function (t, e) { this._net.getSend().UserLogin(t, e); }, _.prototype.getUserCanvas = function () { return this._userCanvas; }, _.prototype.getCanvas = function () { return null != this._userCanvas ? this._userCanvas : this.renderer.domElement; }, _.prototype.getScene = function () { return this.scene; }, _.prototype.getCamera = function () { return this.camera; }, _.prototype.callCommand = function (t, e, n) { void 0 === e && (e = ""), this._net.getSend().DoCommand(t, e, n); }, _.prototype.loadCodeFileToServer = function (t, e, n) { var i = '{"path":"' + t + '","reload":' + (null != n ? "true" : "false") + "}"; this._net.getSend().DoCommand("Mx_LoadCodeFormServerFile", i, e); }, _.prototype.deleteAll = function () { this.removeAllEntity(), this.callCommand("Mx_ClearAll"), this.updateDisplay(); }, _.prototype.undo = function () { this.callCommand("Mx_Undo"); }, _.prototype.save = function () { this.callCommand("Mx_Save"); }, _.prototype.initAllLayoutName = function (t) { this._allLayoutName = t; }, _.prototype.getAllLayoutName = function () { return this._allLayoutName; }, _.prototype.updataClipMaterial = function () { this._blocks.updataClipMaterial(this); }, _.prototype.getSketchLayers = function () { return this._sketchLayers; }, _.prototype.getExtRefManager = function () { return this._extRefManager; }, _.prototype.showLayer = function (t, e, n) { "string" == typeof t && (t = this._layers.getLayerIdForName(t)), n ? this._sketchLayers.getLayer(t).show(e) : this._blocks.showLayer(t, e), this.updateDisplay(); }, _.prototype.addLayerInfo = function (t, e, n) { e = this.automaticInversionColor(16777215 & e), this._layers.add(t, e, n); }, _.prototype.setZeroLayerId = function (t) { this._layers.setZeroLayerId(t); }, _.prototype.addLayerInfoComplete = function () { this._layers.initComplete(); }, _.prototype.addEntity = function (t, e) { var n = this._mapId2Entity.get(t); null == n && (n = new Array, this._mapId2Entity.set(t, n)), n.push(e); }, _.prototype.getEntity = function (t) { return this._mapId2Entity.get(t); }, _.prototype.clearThreejsScence = function () { this.scene.remove(), this.scene.dispose(), this.scene = new c.Scene, this.scene.background = new c.Color(this._viewcolor), this.threejsselectObjects = new c.Object3D, this.scene.add(this.threejsselectObjects), this._objectsOsnap = new y.MxDrawObjectOsnap(this), this.onInitScene(); }, _.prototype.reInit = function () { this.clearThreejsScence(), this._openFile = "", this._openFileExtName = "", this._select.removeAll(), this._is2d || (this._select.enabled = !1), this._mapId2Entity = new Map, this._setAdyDelete = new Map, this._sketchLayers = new a.MxCadSketchLayers(this), this._layers = new o.MxBrowseLayerData, this._blocks = new l.Blocks, this._extRefManager = new l.ExternalReferenceManager, this._doc2World = new c.Matrix4, this._word2doc = new c.Matrix4, this._allLayoutName = new Array, this._tzDwgStaticFile = "", this._devicePixelRatio = window.devicePixelRatio, this._blocks.initRootBlockRef(); }, _.prototype.removeEntity = function (t) { if (null == this._setAdyDelete[t]) {
|
|
6022
|
+
} this.updateDisplay(); }, _.prototype.is2D = function () { return this._is2d; }, _.prototype.getOpenFile = function () { return this._openFile; }, _.prototype.getIniParam = function () { return this._iniParam; }, _.prototype.getOpenFileExtName = function () { return this._openFileExtName; }, _.prototype.loadCodeToServer = function (t, e) { this._net.getSend().CallLoadCodeToServer(t, e); }, _.prototype.openFile = function (t) { this._net.getSend().OpenFile(t); }, _.prototype.userLogin = function (t, e) { this._net.getSend().UserLogin(t, e); }, _.prototype.getUserCanvas = function () { return this._userCanvas; }, _.prototype.getCanvas = function () { return null != this._userCanvas ? this._userCanvas : this.renderer.domElement; }, _.prototype.getScene = function () { return this.scene; }, _.prototype.getCamera = function () { return this.camera; }, _.prototype.callCommand = function (t, e, n) { void 0 === e && (e = ""), this._net.getSend().DoCommand(t, e, n); }, _.prototype.undoMark = function () { this._net.getSend().UndoMark(); }, _.prototype.loadCodeFileToServer = function (t, e, n) { var i = '{"path":"' + t + '","reload":' + (null != n ? "true" : "false") + "}"; this._net.getSend().DoCommand("Mx_LoadCodeFormServerFile", i, e); }, _.prototype.deleteAll = function () { this.removeAllEntity(), this.callCommand("Mx_ClearAll"), this.updateDisplay(); }, _.prototype.undo = function () { this.callCommand("Mx_Undo"); }, _.prototype.save = function () { this.callCommand("Mx_Save"); }, _.prototype.initAllLayoutName = function (t) { this._allLayoutName = t; }, _.prototype.getAllLayoutName = function () { return this._allLayoutName; }, _.prototype.updataClipMaterial = function () { this._blocks.updataClipMaterial(this); }, _.prototype.getSketchLayers = function () { return this._sketchLayers; }, _.prototype.getExtRefManager = function () { return this._extRefManager; }, _.prototype.showLayer = function (t, e, n) { "string" == typeof t && (t = this._layers.getLayerIdForName(t)), n ? this._sketchLayers.getLayer(t).show(e) : this._blocks.showLayer(t, e), this.updateDisplay(); }, _.prototype.addLayerInfo = function (t, e, n) { e = this.automaticInversionColor(16777215 & e), this._layers.add(t, e, n); }, _.prototype.setZeroLayerId = function (t) { this._layers.setZeroLayerId(t); }, _.prototype.addLayerInfoComplete = function () { this._layers.initComplete(); }, _.prototype.addEntity = function (t, e) { var n = this._mapId2Entity.get(t); null == n && (n = new Array, this._mapId2Entity.set(t, n)), n.push(e); }, _.prototype.getEntity = function (t) { return this._mapId2Entity.get(t); }, _.prototype.clearThreejsScence = function () { this.scene.remove(), this.scene.dispose(), this.scene = new c.Scene, this.scene.background = new c.Color(this._viewcolor), this.threejsselectObjects = new c.Object3D, this.scene.add(this.threejsselectObjects), this._objectsOsnap = new y.MxDrawObjectOsnap(this), this.onInitScene(); }, _.prototype.reInit = function () { this.clearThreejsScence(), this._openFile = "", this._openFileExtName = "", this._select.removeAll(), this._is2d || (this._select.enabled = !1), this._mapId2Entity = new Map, this._setAdyDelete = new Map, this._sketchLayers = new a.MxCadSketchLayers(this), this._layers = new o.MxBrowseLayerData, this._blocks = new l.Blocks, this._extRefManager = new l.ExternalReferenceManager, this._doc2World = new c.Matrix4, this._word2doc = new c.Matrix4, this._allLayoutName = new Array, this._tzDwgStaticFile = "", this._devicePixelRatio = window.devicePixelRatio, this._blocks.initRootBlockRef(); }, _.prototype.removeEntity = function (t) { if (null == this._setAdyDelete[t]) {
|
|
6017
6023
|
this._setAdyDelete[t] = !0;
|
|
6018
6024
|
var e = this._mapId2Entity.get(t);
|
|
6019
6025
|
if (null != e) {
|
|
@@ -6167,7 +6173,7 @@ function mxfun() {
|
|
|
6167
6173
|
else {
|
|
6168
6174
|
var s = Math.abs(this._minDisplayPoint.x - this._maxDisplayPoint.x), l = Math.abs(this._minDisplayPoint.y - this._maxDisplayPoint.y);
|
|
6169
6175
|
s / l < n / i ? (a = .5 * l, o = n / i, r.left = -a * o, r.right = a * o, r.top = a, r.bottom = -a) : (a = .5 * s, o = i / n, r.left = -a, r.right = a, r.top = a * o, r.bottom = -a * o), r.updateProjectionMatrix();
|
|
6170
|
-
} this.renderer.setSize(n, i), this.updataClipMaterial(); }, d);
|
|
6176
|
+
} this.renderer.setSize(n, i), this.updataClipMaterial(), this.callEvent("viewsizechange", { width: n, height: i }); }, d);
|
|
6171
6177
|
function d() { var t = null !== a && a.apply(this, arguments) || this; return t._minDisplayPoint = null, t._maxDisplayPoint = null, t.is3DDraw = o.MxFun.is3DDwg(), t; }
|
|
6172
6178
|
n.MxDrawObject2d = h;
|
|
6173
6179
|
}, { "./MxDrawObject": 35, "./MxFun": 39, "./MxMaterial": 46, "./MxNetData": 47, three: 19, "three-orbitcontrols": 17 }], 37: [function (t, e, n) {
|
|
@@ -6303,11 +6309,13 @@ function mxfun() {
|
|
|
6303
6309
|
"use strict";
|
|
6304
6310
|
Object.defineProperty(n, "__esModule", { value: !0 }), n.MxFun = void 0;
|
|
6305
6311
|
var l, i, r, a, o, s, c, u, h, d, p, f, m, g, v = t("three"), y = t("./MxManager"), x = t("./MxDrawObject2d"), _ = t("./MxDrawObject3d"), w = t("./MxUiObjectMobile"), b = t("./MxUiObjectPC"), M = t("./MxJigCmdManager"), S = t("./MxJigGetLine"), C = t("./MxCmdRunManager"), T = t("./MxUiVue"), E = t("./MxThreeJS"), A = t("./MxWindowsEvent"), D = t("./MxTools"), L = t("./MxDrawCommands"), O = t("./MxDrawData"), I = t("./MxCADEditDisplay"), P = t("./MxLocalFileLoad");
|
|
6306
|
-
function R(t) { t.cmd &&
|
|
6312
|
+
function R(t) { t.cmd && F(t.cmd); }
|
|
6307
6313
|
function k(t) { var e = new RegExp("(^|&)" + t + "=([^&]*)(&|$)"), n = window.location.search.substr(1).match(e); return null != n ? decodeURIComponent(n[2]) : ""; }
|
|
6308
6314
|
function N() { return y.MxManager.currentMx(); }
|
|
6309
|
-
function B(
|
|
6310
|
-
function F(t
|
|
6315
|
+
function B() { return y.MxManager.currentMx(); }
|
|
6316
|
+
function F(t, e) { var n = B(); if (n)
|
|
6317
|
+
return C.MxCmdRunManager.runCmd(n, t, e); }
|
|
6318
|
+
function z(t) { null != t && (t.init(), T.MxUiVue.init(t)), p || (p = !0, g = new P.MxLocalNodeJs, M.MxJigCmdManager.init(), A.MxWindowsEvent.registEvent(), y.MxManager.init(), L.MxDrawCommands.registerCommand(), m.sendStringToExecute = R); }
|
|
6311
6319
|
l = n.MxFun || (n.MxFun = {}), i = ".", c = o = a = -1, d = null, p = !(h = "ws://localhost:5090"), m = {}, g = f = u = s = r = void 0, l.getUiObj = function () { return d; }, l.getNodeJs = function () { return g; }, l.setMxServer = function (t) { h = t; }, l.getMxServer = function () { return h; }, l.isPC = function () { return !/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent); }, l.getClientPlatform = function () { return navigator.platform; }, l.getClientInfo = function () { return { width: document.body.clientWidth, height: document.body.clientHeight }; }, l.curPath = function () { return i; }, l.setCurPath = function (t) { i = t; }, l.getQueryString = k, l.getLocationPageUrl = function () { var t = window.location.href, e = t.lastIndexOf("?"); return -1 == e ? t : t.substring(0, e); }, l.getUrlParams = function () { var t = window.location.search, e = t.substr(1, t.length).split("&"), n = new Array; if (null != e)
|
|
6312
6320
|
for (var i = 0; i < e.length; i++) {
|
|
6313
6321
|
var r = e[i].replace(/[=|^==]/, "&").split("&");
|
|
@@ -6323,15 +6331,15 @@ function mxfun() {
|
|
|
6323
6331
|
var e = t.substring(t.lastIndexOf(".") + 1);
|
|
6324
6332
|
"dwg" != e.toLowerCase() && "dxf" != e.toLowerCase() && "dwf" != e.toLowerCase() && "mwg" != e.toLowerCase() || (r = !0);
|
|
6325
6333
|
} return r; }, l.set2dParam = function (t) { r = t; }, l.showLayer = function (t, e, n) { var i = y.MxManager.currentMx().getMxCAD(); if (!i)
|
|
6326
|
-
return y.MxManager.currentMx().showLayer(t, e, n); "number" == typeof t && I.MxCADDisplayFun.showLayer(i.getDatabase(), t, e); }, l.upDisplayForLayerData = function (t) { var e = y.MxManager.currentMx().getMxCAD(); return !!e && e.getDatabase().getLayerTable().upDisplayForLayerData(e.getDatabase(), t); }, l.screenCoord2World = function (t, e, n) { return y.MxManager.currentMx().screenCoord2World(t, e, n); }, l.worldCoord2Screen = function (t, e, n) { return y.MxManager.currentMx().worldCoord2Screen(t, e, n); }, l.docCoord2World = function (t, e, n) { return y.MxManager.currentMx().docCoord2World(t, e, n); }, l.worldCoord2Doc = function (t, e, n) { return y.MxManager.currentMx().worldCoord2Doc(t, e, n); }, l.screenCoord2Doc = function (t, e, n) { return y.MxManager.currentMx().screenCoord2Doc(t, e, n); }, l.docCoord2Screen = function (t, e, n) { return y.MxManager.currentMx().docCoord2Screen(t, e, n); }, l.zoomCenter = function (t, e) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomCenter(t, e), y.MxManager.currentMx().updateDisplay()); }, l.zoomW = function (t, e, n, i, r) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomW(new v.Vector3(t, e, 0), new v.Vector3(n, i, 0), r), y.MxManager.currentMx().updateDisplay()); }, l.zoomScale = function (t) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomScale(t), y.MxManager.currentMx().updateDisplay()); }, l.zoomAll = function () { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomAll(), y.MxManager.currentMx().updateDisplay()); }, l.deleteAll = function () { return y.MxManager.currentMx().deleteAll(); }, l.callCommand = function (t, e, n) { y.MxManager.currentMx().callCommand(t, e, n); }, l.getCurrentColor = function () { return y.MxManager.currentMx().getCurrentColor(); }, l.setCurrentColor = function (t) { y.MxManager.currentMx().setCurrentColor(t); }, l.undo = function () { y.MxManager.currentMx().undo(); }, l.save = function () { y.MxManager.currentMx().save(); }, l.showLoading = function () { null != d && d.ShowLoading(); }, l.hideLoading = function () { null != d && d.HideLoading(); }, l.showProp = function (t) { null != d && d.ShowObjectProperty(t); }, l.hideProp = function () { null != d && d.HideObjectProp(); }, l.getUiObject = function () { return d; }, l.getViewCenterDocCoord = function () { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().getViewCenterDocCoord() : new v.Vector3(0, 0, 0); }, l.screenCoordLong2Doc = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().screenCoordLong2Doc(t) : t; }, l.docCoordLong2Screen = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().docCoordLong2Screen(t) : t; }, l.worldCoordLong2Doc = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().worldCoordLong2Doc(t) : t; }, l.docCoordLong2World = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().docCoordLong2World(t) : t; }, l.screenCoordLong2World = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().screenCoordLong2World(t) : t; }, l.worldCoordLong2Screen = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().worldCoordLong2Screen(t) : t; }, l.addSelectEvent = function (t) { y.MxManager.addSelectEvent(t); }, l.clearSelectEvent = function () { y.MxManager.clearSelectEvent(); }, l.removeThreejsObject = function (t, e) { t && (t.traverse(function (t) { (t instanceof v.Mesh || t instanceof v.Line || t instanceof v.LineLoop) && t.geometry.dispose(); }), e.remove(t)); }, l.setOutServerDebugCall = function (t) { y.MxManager.setOutDebugCall(t); }, l.updateDisplay = function () { y.MxManager.updateDisplay(); }, l.getCurrentDraw =
|
|
6334
|
+
return y.MxManager.currentMx().showLayer(t, e, n); "number" == typeof t && I.MxCADDisplayFun.showLayer(i.getDatabase(), t, e); }, l.upDisplayForLayerData = function (t) { var e = y.MxManager.currentMx().getMxCAD(); return !!e && e.getDatabase().getLayerTable().upDisplayForLayerData(e.getDatabase(), t); }, l.screenCoord2World = function (t, e, n) { return y.MxManager.currentMx().screenCoord2World(t, e, n); }, l.worldCoord2Screen = function (t, e, n) { return y.MxManager.currentMx().worldCoord2Screen(t, e, n); }, l.docCoord2World = function (t, e, n) { return y.MxManager.currentMx().docCoord2World(t, e, n); }, l.worldCoord2Doc = function (t, e, n) { return y.MxManager.currentMx().worldCoord2Doc(t, e, n); }, l.screenCoord2Doc = function (t, e, n) { return y.MxManager.currentMx().screenCoord2Doc(t, e, n); }, l.docCoord2Screen = function (t, e, n) { return y.MxManager.currentMx().docCoord2Screen(t, e, n); }, l.zoomCenter = function (t, e) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomCenter(t, e), y.MxManager.currentMx().updateDisplay()); }, l.zoomW = function (t, e, n, i, r) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomW(new v.Vector3(t, e, 0), new v.Vector3(n, i, 0), r), y.MxManager.currentMx().updateDisplay()); }, l.zoomScale = function (t) { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomScale(t), y.MxManager.currentMx().updateDisplay()); }, l.zoomAll = function () { y.MxManager.currentMx().is2D() && (y.MxManager.currentMx().zoomAll(), y.MxManager.currentMx().updateDisplay()); }, l.deleteAll = function () { return y.MxManager.currentMx().deleteAll(); }, l.callCommand = function (t, e, n) { y.MxManager.currentMx().callCommand(t, e, n); }, l.getCurrentColor = function () { return y.MxManager.currentMx().getCurrentColor(); }, l.setCurrentColor = function (t) { y.MxManager.currentMx().setCurrentColor(t); }, l.undo = function () { y.MxManager.currentMx().undo(); }, l.save = function () { y.MxManager.currentMx().save(); }, l.showLoading = function () { null != d && d.ShowLoading(); }, l.hideLoading = function () { null != d && d.HideLoading(); }, l.showProp = function (t) { null != d && d.ShowObjectProperty(t); }, l.hideProp = function () { null != d && d.HideObjectProp(); }, l.getUiObject = function () { return d; }, l.getViewCenterDocCoord = function () { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().getViewCenterDocCoord() : new v.Vector3(0, 0, 0); }, l.screenCoordLong2Doc = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().screenCoordLong2Doc(t) : t; }, l.docCoordLong2Screen = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().docCoordLong2Screen(t) : t; }, l.worldCoordLong2Doc = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().worldCoordLong2Doc(t) : t; }, l.docCoordLong2World = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().docCoordLong2World(t) : t; }, l.screenCoordLong2World = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().screenCoordLong2World(t) : t; }, l.worldCoordLong2Screen = function (t) { return y.MxManager.currentMx().is2D() ? y.MxManager.currentMx().worldCoordLong2Screen(t) : t; }, l.addSelectEvent = function (t) { y.MxManager.addSelectEvent(t); }, l.clearSelectEvent = function () { y.MxManager.clearSelectEvent(); }, l.removeThreejsObject = function (t, e) { t && (t.traverse(function (t) { (t instanceof v.Mesh || t instanceof v.Line || t instanceof v.LineLoop) && t.geometry.dispose(); }), e.remove(t)); }, l.setOutServerDebugCall = function (t) { y.MxManager.setOutDebugCall(t); }, l.updateDisplay = function () { y.MxManager.updateDisplay(); }, l.getCurrentDraw = B, l.formatString = function (t) { for (var e = [], n = 1; n < arguments.length; n++)
|
|
6327
6335
|
e[n - 1] = arguments[n]; for (var i = 0; i < e.length; i++)
|
|
6328
|
-
t = t.replace("{"
|
|
6336
|
+
t = t.replace("{".concat(i, "}"), e[i]); return t; }, l.createMxUiObject = function (t) { var e; return e = this.isPC() ? new b.MxUiObjectPC : new w.MxUiObjectMobile, t(d = e), e.create(), e; }, l.createMxObject = function (t, e, n, i, r) { p || z(), "string" == typeof t && (t = 0 == t.length ? void 0 : document.getElementById(t)), null == e && (e = l.getQueryString("file")); var a = null != i && i; if (null != e) {
|
|
6329
6337
|
0 == e.length && (e = "empty");
|
|
6330
6338
|
var o = e.substring(e.lastIndexOf(".") + 1);
|
|
6331
6339
|
"dwg" != o.toLowerCase() && "dxf" != o.toLowerCase() && "dwf" != o.toLowerCase() && "mwg" != o.toLowerCase() || (a = !0);
|
|
6332
6340
|
}
|
|
6333
6341
|
else
|
|
6334
|
-
e = "empty"; 1 == r && (e = ""); var s = null; return a ? (s = new x.MxDrawObject2d).setViewColor(0) : (s = new _.MxDrawObject3d).setViewColor(15790320), null != n && n(s), s.create(t, e), s; }, l.getMxObjectFormElement = function (t) { return y.MxManager.getMxObject(t); }, l.isRunningCommand = function () { return M.MxJigCmdManager.isRunning(); }, l.stopRunCommand = function () { return M.MxJigCmdManager.stopCmd(); }, l.runCommand = function (t) { return M.MxJigCmdManager.runCmd(t); }, l.getTHREE = function () { return v; }, l.getLine = function (t) { var e = new S.MxJigGetLine; e.setRetCall(t), M.MxJigCmdManager.runCmd(e); }, l.addCommand = function (t, e, n) { C.MxCmdRunManager.addCommand(t, e, n); }, l.sendStringToExecute =
|
|
6342
|
+
e = "empty"; 1 == r && (e = ""); var s = null; return a ? (s = new x.MxDrawObject2d).setViewColor(0) : (s = new _.MxDrawObject3d).setViewColor(15790320), null != n && n(s), s.create(t, e), s; }, l.getMxObjectFormElement = function (t) { return y.MxManager.getMxObject(t); }, l.isRunningCommand = function () { return M.MxJigCmdManager.isRunning(); }, l.stopRunCommand = function () { return M.MxJigCmdManager.stopCmd(); }, l.runCommand = function (t) { return M.MxJigCmdManager.runCmd(t); }, l.getTHREE = function () { return v; }, l.getLine = function (t) { var e = new S.MxJigGetLine; e.setRetCall(t), M.MxJigCmdManager.runCmd(e); }, l.addCommand = function (t, e, n) { C.MxCmdRunManager.addCommand(t, e, n); }, l.sendStringToExecute = F, l.init = z, l.addWindowsEvent = function (t) { A.MxWindowsEvent.addEvent(t); }, l.getCurrentMousePostion = function () { return A.MxWindowsEvent.getCurrentMousePostion(); }, l.getMxThreeJS = function () { return E.MxThreeJS; }, l.getMxTools = function () { return D.MxTools; }, l.getMxCmdRunManager = function () { return C.MxCmdRunManager; }, l.getMxJigCmdManager = function () { return M.MxJigCmdManager; }, l.initQuickCommand = function (t) { C.MxCmdRunManager.InitQuickCommand(t); }, l.Assert = function (t) { t || console.log("MxAssert error"); }, l.setIniset = function (t) { O.MxDrawData.setIniset(t); }, l.setPostMessageToParentFrameFunction = function (t) { f = t; }, l.postMessageToParentFrame = function (t) { return null != f && (f(t), !0); }, l.onParentFrameMessage = function (t) { null != t && null != t.type && m[t.type] && m[t.type](t); }, l.acutPrintf = function (t) { for (var e = [], n = 1; n < arguments.length; n++)
|
|
6335
6343
|
e[n - 1] = arguments[n]; if (!T.MxUiVue.isNull()) {
|
|
6336
6344
|
for (var i = arguments, r = i[0], a = 0; a < i.length - 1; a++) {
|
|
6337
6345
|
var o = new RegExp("\\{" + a + "\\}", "gm");
|
|
@@ -6411,7 +6419,7 @@ function mxfun() {
|
|
|
6411
6419
|
return;
|
|
6412
6420
|
if (_.getDynImput().isInputStatus())
|
|
6413
6421
|
return;
|
|
6414
|
-
C.x = t.offsetX, C.y = t.offsetY,
|
|
6422
|
+
C.x = t.offsetX, C.y = t.offsetY, U(C);
|
|
6415
6423
|
} } function k(t) { if (t.button == u.kLeft) {
|
|
6416
6424
|
var e = t.srcElement;
|
|
6417
6425
|
if (e && "CANVAS" == e.tagName) {
|
|
@@ -6442,7 +6450,7 @@ function mxfun() {
|
|
|
6442
6450
|
} M = a.kEnd, P(); } function z(t) { if (0 != t.touches.length) {
|
|
6443
6451
|
var e = t.touches[0].pageX, n = t.touches[0].pageY;
|
|
6444
6452
|
x = Y.MxFun.screenCoord2World(e, n, 0), M = a.kMove, P();
|
|
6445
|
-
} } function
|
|
6453
|
+
} } function U(t) { A = !1, null == t && (t = C); var e = _.getMxObject().screenCoord2World(t.x, t.y, 0), n = _.getOsnap(), i = _.getMxObject().screenCoordLong2World(.5 * ot.MxDrawData.getCursorWidthPixels()); n.setPoint(e, i), r.OsnapMode.kOsModekValid, x = e, M = a.kMove, P.call(this); } function V() { b || (b = !0, Y.MxFun.isPC() ? (document.addEventListener("mouseup", k, !1), document.addEventListener("mousemove", R, !1), document.addEventListener("mousedown", N, !1)) : (document.addEventListener("touchstart", B, !1), document.addEventListener("touchend", F, !1), document.addEventListener("touchmove", z, !1))); } function j() { b && (b = !1, Y.MxFun.isPC() ? (document.removeEventListener("mouseup", k, !1), document.removeEventListener("mousemove", R, !1), document.removeEventListener("mousedown", N, !1)) : (document.removeEventListener("touchstart", B, !1), document.removeEventListener("touchend", F, !1), document.removeEventListener("touchmove", z, !1))); } function G(t) { t.getRunMode() == rt.MxRunMode.kBrowse && t.enableSingleTouchPan(!1), t.tempDisableSelect(!0), t.updateDisplay(); } function H(t) { var e = new X.Vector3, n = !1, i = new nt.MxString(t), r = i.AnalyzeString(","); if (r.length < 2)
|
|
6446
6454
|
for (; !i.IsEmpty() && et.MxTools.IsNumerical(i);) {
|
|
6447
6455
|
var a = et.MxTools._tstof(i.m_val);
|
|
6448
6456
|
if (et.MxTools.IsZero(a))
|
|
@@ -6491,9 +6499,9 @@ function mxfun() {
|
|
|
6491
6499
|
for (e = O.AnalyzeString(" "), n = 1, i = 0; i < e.length; i++) {
|
|
6492
6500
|
var s;
|
|
6493
6501
|
(s = new nt.MxString(e[i])).IsEmpty() || (s.MakeUpper(), D.set(s.m_val, n), n++);
|
|
6494
|
-
} }, r.getAcquirePoint = function () { return x; }, r.getAcquireStatus = function () { return M; }, r.doMouseMoveImp =
|
|
6502
|
+
} }, r.getAcquirePoint = function () { return x; }, r.getAcquireStatus = function () { return M; }, r.doMouseMoveImp = U, r.OnThreeControlsChage = function () { null == _ || U(C); }, r.OnEnter = function (t) { A = !0, M = a.kNoChange, P(), A = !1; }, r.Test = function () { A = !0; }, r.registEvent = V, r.unRegistEvent = j, r.getCurrentMouseButton = function () { return S; }, r.isRunning = function () { return null != _; }, r.getCurCmd = function () { return _; }, r.commandRunComplete = function (t) { _ != t && console.log("aseert:_curCmd == cmd"); var e, n = $.MxManager.currentMx(); null != _ && (n = _.getMxObject()), null != w ? (V(), _ = w, w = void 0, S = u.kInvalid, _.onStartCommand(), G(n)) : (j(), _ = void 0, (e = n).getRunMode() == rt.MxRunMode.kBrowse && e.enableSingleTouchPan(!0), e.tempDisableSelect(!1), e.updateDisplay()); }, r.isWaitCmdNull = function () { return null == w; }, r.stopCmd = function () { null != _ && (T = !0, _.notifyCancleExit(), T = !1); }, r.setRunCmdEvent = function (t) { E = t; }, r.runCmd = function (t) { if (!T) {
|
|
6495
6503
|
var e = $.MxManager.currentMx();
|
|
6496
|
-
t.setMxObject(e), C = it.MxWindowsEvent.getCurrentMousePostion(), E && E(), null == _ ? (
|
|
6504
|
+
t.setMxObject(e), C = it.MxWindowsEvent.getCurrentMousePostion(), E && E(), null == _ ? (V(), _ = t, S = u.kInvalid, _.onStartCommand(), G(e)) : (w = t, T = !0, _.notifyCancleExit(), T = !1);
|
|
6497
6505
|
} }, r.GetAcqurePointFromStringTo = H, r.ProcCommandRetResult = J, r.GetCommandLineContent = q, r.acquirePoint = function (t) { var e = new st; if (null == _)
|
|
6498
6506
|
return e.status = l.kCancel, e; var n = q(f.COMMAND_GET_COORD | f.COMMAND_GET_KEY); return n.iRet == d.COMMAND_IN_EMTPY ? (e.status = l.kNull, e.exit = !0) : n.iRet == d.COMMAND_IN_KEY ? (e.status = n.iKey, e.exit = !0, e.sKeyValue = n.sValue) : n.iRet == d.COMMAND_IN_COORD ? (e.status = l.kNormal, e.pt = _.getMxObject().docCoord2World(n.pt.x, n.pt.y, n.pt.z), e.exit = !0) : (J(n.iRet, "\n 需要点或选项关键字。 \n"), M == a.kMove ? (e.status = l.kNormal, e.pt = x, e.exit = !1) : M == a.kEnd ? t & o.kGetEnd ? (e.status = l.kNormal, e.pt = x, e.exit = !0) : (e.status = l.kNormal, e.pt = x, e.exit = !1) : M == a.kCancle ? (e.status = l.kCancel, e.pt = x, e.exit = !0) : M == a.kBegan ? t & o.kGetBegan ? (e.status = l.kNormal, e.pt = x, e.exit = !0) : (e.status = l.kNormal, e.pt = x, e.exit = !1) : M == a.kMouseDown ? (e.status = l.kNormal, e.pt = x, e.exit = !0) : (e.status = l.kNoChange, e.pt = void 0, e.exit = !1)), e; }, r.getMcEdJigCommandClass = function () { return Z.McEdJigCommand; }, r.getMrxDbgUiPrPointClass = function () { return K.MrxDbgUiPrPoint; }, r.getMcEdGetPointWorldDrawClass = function () { return Q.McEdGetPointWorldDraw; }, r.McEdGetPointWorldDrawObjectClass = function () { return Q.McEdGetPointWorldDrawObject; }, r.init = function () { this._curCmd = void 0; }; }(i = n.MxJigCmdManager || (n.MxJigCmdManager = {}));
|
|
6499
6507
|
}, { "./McEdJigOsnap": 20, "./MrxDbgUiPrBase": 21, "./MrxDbgUiPrPoint": 22, "./MxDrawData": 34, "./MxDrawObject": 35, "./MxFun": 39, "./MxJig": 41, "./MxManager": 45, "./MxString": 50, "./MxTools": 53, "./MxUiVue": 58, "./MxWindowsEvent": 59, three: 19 }], 43: [function (t, e, n) {
|
|
@@ -6630,11 +6638,11 @@ function mxfun() {
|
|
|
6630
6638
|
}
|
|
6631
6639
|
} }; }
|
|
6632
6640
|
n.MxNetMessage = u;
|
|
6633
|
-
var d, p, f = (m.prototype.DoCommand = function (t, e, n) { null != this._webSocket && (null != n ? (this._callCount++, 200 < this._callCount && (this._callCount = 1), this._msg.setJsRetCall(n, t, this._callCount), null == e && (e = ""), this._webSocket.send(this.SendType.kCmdEx + "," + t + "," + this._callCount + "," + e)) : null == e ? this._webSocket.send(this.SendType.kCmd + "," + t) : this._webSocket.send(this.SendType.kCmd + "," + t + "," + e)); }, m.prototype.OpenFile = function (t) { null != this._webSocket && this._webSocket.send(this.SendType.kOpenFile + "," + t); }, m.prototype.UserLogin = function (t, e, n) { if (null != this._webSocket) {
|
|
6641
|
+
var d, p, f = (m.prototype.UndoMark = function () { null != this._webSocket && this._webSocket.send(this.SendType.kUndoMark + ""); }, m.prototype.DoCommand = function (t, e, n) { null != this._webSocket && (null != n ? (this._callCount++, 200 < this._callCount && (this._callCount = 1), this._msg.setJsRetCall(n, t, this._callCount), null == e && (e = ""), this._webSocket.send(this.SendType.kCmdEx + "," + t + "," + this._callCount + "," + e)) : null == e ? this._webSocket.send(this.SendType.kCmd + "," + t) : this._webSocket.send(this.SendType.kCmd + "," + t + "," + e)); }, m.prototype.OpenFile = function (t) { null != this._webSocket && this._webSocket.send(this.SendType.kOpenFile + "," + t); }, m.prototype.UserLogin = function (t, e, n) { if (null != this._webSocket) {
|
|
6634
6642
|
var i = {};
|
|
6635
6643
|
i.IdentitySign = t, i.RandomToken = null == e ? "" : e, i.Init = null == n ? "" : n, this._webSocket.send(this.SendType.kUserLogin + "," + JSON.stringify(i));
|
|
6636
6644
|
} }, m.prototype.Init = function (t) { null != this._webSocket && this._webSocket.send(this.SendType.kInit + "," + t); }, m.prototype.CallServerJS = function (t, e, n) { null != this._webSocket && (null == n ? null == e || null == e || 0 == e.length ? this._webSocket.send(this.SendType.kCallJS + ',{"command":"' + t + '","param":"{}"}') : this._webSocket.send(this.SendType.kCallJS + ',{"command":"' + t + '","param":' + e + "}") : (this._callCount++, 200 < this._callCount && (this._callCount = 1), this._msg.setJsRetCall(n, t, this._callCount), null == e || null == e || 0 == e.length ? this._webSocket.send(this.SendType.kCallJS + ',{"command":"' + t + '","param":"{}","count":"' + this._callCount + '"}') : this._webSocket.send(this.SendType.kCallJS + ',{"command":"' + t + '","param":' + e + ',"count":"' + this._callCount + '"}'))); }, m.prototype.CallLoadCodeToServer = function (t, e) { null != this._webSocket && (this._msg.setJsRetCall(e, "__mx_loadcode", 0), null != t && null != t && 0 != t.length && this._webSocket.send(this.SendType.kCallJS + "," + t)); }, m.prototype.DeleteObject = function (t) { null != this._webSocket && this._webSocket.send(this.SendType.kDelete + "," + t); }, m.prototype.SelectObject = function (t) { null != this._webSocket && this._webSocket.send(this.SendType.kSelect + "," + t); }, m.prototype.QuitSelectObject = function (t) { null != this._webSocket && this._webSocket.send(this.SendType.kQuitSelect + "," + t); }, m.prototype.SendDragDrawEntity = function (t) { null != this._webSocket && this._webSocket.send(this.SendType.kAddDragDraw + "," + t); }, m.prototype.SendDragDrawRequest = function () { null != this._webSocket && (this.SendMousePickRay(), this._webSocket.send(this.SendType.kRequestDragDraw)); }, m.prototype.SendDragDrawDetermine = function () { null != this._webSocket && (this.SendMousePickRay(), this._webSocket.send(this.SendType.kDetermineDragDraw)); }, m.prototype.SendDragDrawCancel = function () { null != this._webSocket && this._webSocket.send(this.SendType.kCancelDragDraw); }, m.prototype.SendMousePickRay = function () { this._webSocket; }, m);
|
|
6637
|
-
function m(t, e) { this.SendType = {}, this._callCount = 1, this._webSocket = t, this._msg = e, this.SendType.kCmd = 0, this.SendType.kDelete = 1, this.SendType.kSelect = 2, this.SendType.kOpenFile = 3, this.SendType.kGetDemoList = 4, this.SendType.kCallJS = 5, this.SendType.kAddDragDraw = 6, this.SendType.kRequestDragDraw = 7, this.SendType.kMousePickRay = 8, this.SendType.kDetermineDragDraw = 9, this.SendType.kCancelDragDraw = 10, this.SendType.kQuitSelect = 11, this.SendType.kInit = 12, this.SendType.kCmdEx = 13, this.SendType.kUserLogin = 14; }
|
|
6645
|
+
function m(t, e) { this.SendType = {}, this._callCount = 1, this._webSocket = t, this._msg = e, this.SendType.kCmd = 0, this.SendType.kDelete = 1, this.SendType.kSelect = 2, this.SendType.kOpenFile = 3, this.SendType.kGetDemoList = 4, this.SendType.kCallJS = 5, this.SendType.kAddDragDraw = 6, this.SendType.kRequestDragDraw = 7, this.SendType.kMousePickRay = 8, this.SendType.kDetermineDragDraw = 9, this.SendType.kCancelDragDraw = 10, this.SendType.kQuitSelect = 11, this.SendType.kInit = 12, this.SendType.kCmdEx = 13, this.SendType.kUserLogin = 14, this.SendType.kUndoMark = 15; }
|
|
6638
6646
|
n.MxNetSend = f, (p = d = n.MxNetBinMessageType || (n.MxNetBinMessageType = {})).eEntitysData = 14, p.kMxCADBlockRef = 56, p.kMxCADMemorySections = 57, p.kMxCADMemorySectionsFromChange = 59, p.kMxCADNotUseMemorySectionsForChage = 61, p.kMxCADEntityDisplayDatas = 62;
|
|
6639
6647
|
var g = (v.prototype.setCurrentDatabaseId = function (t) { this._iCurrentDatabaseId = t; }, v.prototype.getMxDrawObject = function () { return this._mx; }, v.prototype.getCurrentDatabaseId = function () { return this._iCurrentDatabaseId; }, v.prototype.isTzDwgStaticFile = function () { return -1 != this._iCurrentDatabaseId; }, v.prototype.onBinMessage = function (t) { var e = this._mx, n = a.inflate(t), i = new DataView(n.buffer), r = i.getInt32(0, !0); this._binMessageCall.has(r) ? this._binMessageCall.get(r)(i, this._iCurrentDatabaseId) : (-1 == this._iCurrentDatabaseId && (0 == r ? e.mxWebAddEntity(i) : 2 == r ? e.getSelect().mxWebAddEntity(i) : 6 == r ? e.removeEntityFromServer(i) : 11 == r && e.getExtRefManager().createExternalReferences(i)), 12 == r ? e.mxWebAddEntityFor2dPointCurveBuffers(i, this._iCurrentDatabaseId) : 13 == r ? e.mxWebAddEntityFor2dPointMeshBuffers(i, this._iCurrentDatabaseId) : 8 == r ? e.mxWebAddEntityFor2dPointCurveBuffer(i, this._iCurrentDatabaseId) : 9 == r ? e.mxWebAddEntityFor2dPointMeshBuffer(i, this._iCurrentDatabaseId) : 10 == r && e.mxWebCreateAllBlocks(i, this._iCurrentDatabaseId)); }, v.prototype.socket_onMessageImp = function (t, e) { if (void 0 === e && (e = !1), "string" == typeof t)
|
|
6640
6648
|
this._msg.Do(t);
|
|
@@ -6740,7 +6748,7 @@ function mxfun() {
|
|
|
6740
6748
|
return !(!/^\d+(\.\d+)?$/.test(t) && !e.test(t));
|
|
6741
6749
|
} var n = t.m_val; return e = /^(-(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*)))$/, !(!/^\d+(\.\d+)?$/.test(n) && !e.test(n)); }, i.formatString = function (t) { for (var e = [], n = 1; n < arguments.length; n++)
|
|
6742
6750
|
e[n - 1] = arguments[n]; for (var i = 0; i < e.length; i++)
|
|
6743
|
-
t = t.replace("{"
|
|
6751
|
+
t = t.replace("{".concat(i, "}"), e[i]); return t; }, i._tstof = function (t) { return parseFloat(t); }, i._tstoi = function (t) { return parseInt(t); }, i.IsZero = function (t) { return -1e-7 < t && t < 1e-7; }, i.MillimeterToPixels = function (t) { return 10 * t; }, i.getXYPlanDistance = function (t, e) { var n = new r.Vector2(t.x, t.y), i = new r.Vector2(e.x, e.y); return n.distanceTo(i); };
|
|
6744
6752
|
function a(t, e) { this.first = t, this.second = e; }
|
|
6745
6753
|
n.MxPair = a;
|
|
6746
6754
|
}, { three: 19 }], 54: [function (t, e, n) {
|