@pan-ya/libgeo3dviewer 1.7.38 → 1.7.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -1
- package/dist/libgeo3dviewer.cjs.js +9 -9
- package/dist/libgeo3dviewer.es.js +532 -514
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ import { GridMaterial as Rs } from "@babylonjs/materials";
|
|
|
16
16
|
import "@babylonjs/materials/legacy/legacy-grid";
|
|
17
17
|
import { createRoot as Bs } from "react-dom/client";
|
|
18
18
|
import { i as ua, f as Ds, c as Fs, g as zs, d as $s, r as Ws, a as Us } from "./TubeUtil-DXs09yUD.js";
|
|
19
|
-
import { P as
|
|
19
|
+
import { P as ah } from "./TubeUtil-DXs09yUD.js";
|
|
20
20
|
import "@babylonjs/core/Loading/Plugins/babylonFileLoader";
|
|
21
21
|
import "@babylonjs/core/Loading/sceneLoader";
|
|
22
22
|
import "@babylonjs/core/Materials";
|
|
@@ -100,7 +100,7 @@ function Vs() {
|
|
|
100
100
|
), R = (
|
|
101
101
|
/* extra bits for each distance code */
|
|
102
102
|
[0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]
|
|
103
|
-
),
|
|
103
|
+
), L = (
|
|
104
104
|
/* extra bits for each bit length code */
|
|
105
105
|
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]
|
|
106
106
|
), S = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], B = 512, k = new Array((g + 2) * 2);
|
|
@@ -150,20 +150,20 @@ function Vs() {
|
|
|
150
150
|
D.bi_valid === 16 ? (oe(D, D.bi_buf), D.bi_buf = 0, D.bi_valid = 0) : D.bi_valid >= 8 && (D.pending_buf[D.pending++] = D.bi_buf & 255, D.bi_buf >>= 8, D.bi_valid -= 8);
|
|
151
151
|
}
|
|
152
152
|
function Se(D, de) {
|
|
153
|
-
var ve = de.dyn_tree, be = de.max_code, Z = de.stat_desc.static_tree, ie = de.stat_desc.has_stree, w = de.stat_desc.extra_bits, pe = de.stat_desc.extra_base, Ie = de.stat_desc.max_length, h, q, j,
|
|
154
|
-
for (
|
|
155
|
-
D.bl_count[
|
|
153
|
+
var ve = de.dyn_tree, be = de.max_code, Z = de.stat_desc.static_tree, ie = de.stat_desc.has_stree, w = de.stat_desc.extra_bits, pe = de.stat_desc.extra_base, Ie = de.stat_desc.max_length, h, q, j, M, H, J, we = 0;
|
|
154
|
+
for (M = 0; M <= m; M++)
|
|
155
|
+
D.bl_count[M] = 0;
|
|
156
156
|
for (ve[D.heap[D.heap_max] * 2 + 1] = 0, h = D.heap_max + 1; h < y; h++)
|
|
157
|
-
q = D.heap[h],
|
|
157
|
+
q = D.heap[h], M = ve[ve[q * 2 + 1] * 2 + 1] + 1, M > Ie && (M = Ie, we++), ve[q * 2 + 1] = M, !(q > be) && (D.bl_count[M]++, H = 0, q >= pe && (H = w[q - pe]), J = ve[q * 2], D.opt_len += J * (M + H), ie && (D.static_len += J * (Z[q * 2 + 1] + H)));
|
|
158
158
|
if (we !== 0) {
|
|
159
159
|
do {
|
|
160
|
-
for (
|
|
161
|
-
|
|
162
|
-
D.bl_count[
|
|
160
|
+
for (M = Ie - 1; D.bl_count[M] === 0; )
|
|
161
|
+
M--;
|
|
162
|
+
D.bl_count[M]--, D.bl_count[M + 1] += 2, D.bl_count[Ie]--, we -= 2;
|
|
163
163
|
} while (we > 0);
|
|
164
|
-
for (
|
|
165
|
-
for (q = D.bl_count[
|
|
166
|
-
j = D.heap[--h], !(j > be) && (ve[j * 2 + 1] !==
|
|
164
|
+
for (M = Ie; M !== 0; M--)
|
|
165
|
+
for (q = D.bl_count[M]; q !== 0; )
|
|
166
|
+
j = D.heap[--h], !(j > be) && (ve[j * 2 + 1] !== M && (D.opt_len += (M - ve[j * 2 + 1]) * ve[j * 2], ve[j * 2 + 1] = M), q--);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
function Ce(D, de, ve) {
|
|
@@ -198,7 +198,7 @@ function Vs() {
|
|
|
198
198
|
k[D * 2 + 1] = 8, D++, ie[8]++;
|
|
199
199
|
for (Ce(k, g + 1, ie), D = 0; D < p; D++)
|
|
200
200
|
E[D * 2 + 1] = 5, E[D * 2] = ae(D, 5);
|
|
201
|
-
ne = new U(k, T, f + 1, g, m), ee = new U(E, R, 0, p, m), G = new U(new Array(0),
|
|
201
|
+
ne = new U(k, T, f + 1, g, m), ee = new U(E, R, 0, p, m), G = new U(new Array(0), L, 0, _, P);
|
|
202
202
|
}
|
|
203
203
|
function Q(D) {
|
|
204
204
|
var de;
|
|
@@ -398,7 +398,7 @@ var Lr;
|
|
|
398
398
|
function Zs() {
|
|
399
399
|
if (Lr) return At;
|
|
400
400
|
Lr = 1;
|
|
401
|
-
var e = fn(), t = Vs(), n = pa(), a = ha(), i = or(), o = 0, r = 1, l = 3, s = 4, c = 5, d = 0, u = 1, f = -2, g = -3, p = -5, _ = -1, y = 1, m = 2, x = 3, P = 4, b = 0, A = 2, I = 8, C = 9, T = 15, R = 8,
|
|
401
|
+
var e = fn(), t = Vs(), n = pa(), a = ha(), i = or(), o = 0, r = 1, l = 3, s = 4, c = 5, d = 0, u = 1, f = -2, g = -3, p = -5, _ = -1, y = 1, m = 2, x = 3, P = 4, b = 0, A = 2, I = 8, C = 9, T = 15, R = 8, L = 29, S = 256, B = S + 1 + L, k = 30, E = 19, v = 2 * B + 1, O = 15, z = 3, W = 258, U = W + z + 1, ne = 32, ee = 42, G = 69, le = 73, re = 91, oe = 103, Y = 113, ce = 666, ae = 1, X = 2, Se = 3, Ce = 4, V = 3;
|
|
402
402
|
function Q(h, q) {
|
|
403
403
|
return h.msg = i[q], q;
|
|
404
404
|
}
|
|
@@ -422,45 +422,45 @@ function Zs() {
|
|
|
422
422
|
function me(h, q) {
|
|
423
423
|
h.pending_buf[h.pending++] = q >>> 8 & 255, h.pending_buf[h.pending++] = q & 255;
|
|
424
424
|
}
|
|
425
|
-
function Le(h, q, j,
|
|
425
|
+
function Le(h, q, j, M) {
|
|
426
426
|
var H = h.avail_in;
|
|
427
|
-
return H >
|
|
427
|
+
return H > M && (H = M), H === 0 ? 0 : (h.avail_in -= H, e.arraySet(q, h.input, h.next_in, H, j), h.state.wrap === 1 ? h.adler = n(h.adler, q, H, j) : h.state.wrap === 2 && (h.adler = a(h.adler, q, H, j)), h.next_in += H, h.total_in += H, H);
|
|
428
428
|
}
|
|
429
429
|
function Oe(h, q) {
|
|
430
|
-
var j = h.max_chain_length,
|
|
430
|
+
var j = h.max_chain_length, M = h.strstart, H, J, we = h.prev_length, ke = h.nice_match, Te = h.strstart > h.w_size - U ? h.strstart - (h.w_size - U) : 0, Ge = h.window, Ht = h.w_mask, at = h.prev, Ye = h.strstart + W, ct = Ge[M + we - 1], gt = Ge[M + we];
|
|
431
431
|
h.prev_length >= h.good_match && (j >>= 2), ke > h.lookahead && (ke = h.lookahead);
|
|
432
432
|
do
|
|
433
|
-
if (H = q, !(Ge[H + we] !== gt || Ge[H + we - 1] !== ct || Ge[H] !== Ge[
|
|
434
|
-
|
|
433
|
+
if (H = q, !(Ge[H + we] !== gt || Ge[H + we - 1] !== ct || Ge[H] !== Ge[M] || Ge[++H] !== Ge[M + 1])) {
|
|
434
|
+
M += 2, H++;
|
|
435
435
|
do
|
|
436
436
|
;
|
|
437
|
-
while (Ge[++
|
|
438
|
-
if (J = W - (Ye -
|
|
437
|
+
while (Ge[++M] === Ge[++H] && Ge[++M] === Ge[++H] && Ge[++M] === Ge[++H] && Ge[++M] === Ge[++H] && Ge[++M] === Ge[++H] && Ge[++M] === Ge[++H] && Ge[++M] === Ge[++H] && Ge[++M] === Ge[++H] && M < Ye);
|
|
438
|
+
if (J = W - (Ye - M), M = Ye - W, J > we) {
|
|
439
439
|
if (h.match_start = q, we = J, J >= ke)
|
|
440
440
|
break;
|
|
441
|
-
ct = Ge[
|
|
441
|
+
ct = Ge[M + we - 1], gt = Ge[M + we];
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
while ((q = at[q & Ht]) > Te && --j !== 0);
|
|
445
445
|
return we <= h.lookahead ? we : h.lookahead;
|
|
446
446
|
}
|
|
447
447
|
function ze(h) {
|
|
448
|
-
var q = h.w_size, j,
|
|
448
|
+
var q = h.w_size, j, M, H, J, we;
|
|
449
449
|
do {
|
|
450
450
|
if (J = h.window_size - h.lookahead - h.strstart, h.strstart >= q + (q - U)) {
|
|
451
|
-
e.arraySet(h.window, h.window, q, q, 0), h.match_start -= q, h.strstart -= q, h.block_start -= q,
|
|
451
|
+
e.arraySet(h.window, h.window, q, q, 0), h.match_start -= q, h.strstart -= q, h.block_start -= q, M = h.hash_size, j = M;
|
|
452
452
|
do
|
|
453
453
|
H = h.head[--j], h.head[j] = H >= q ? H - q : 0;
|
|
454
|
-
while (--
|
|
455
|
-
|
|
454
|
+
while (--M);
|
|
455
|
+
M = q, j = M;
|
|
456
456
|
do
|
|
457
457
|
H = h.prev[--j], h.prev[j] = H >= q ? H - q : 0;
|
|
458
|
-
while (--
|
|
458
|
+
while (--M);
|
|
459
459
|
J += q;
|
|
460
460
|
}
|
|
461
461
|
if (h.strm.avail_in === 0)
|
|
462
462
|
break;
|
|
463
|
-
if (
|
|
463
|
+
if (M = Le(h.strm, h.window, h.strstart + h.lookahead, J), h.lookahead += M, h.lookahead + h.insert >= z)
|
|
464
464
|
for (we = h.strstart - h.insert, h.ins_h = h.window[we], h.ins_h = (h.ins_h << h.hash_shift ^ h.window[we + 1]) & h.hash_mask; h.insert && (h.ins_h = (h.ins_h << h.hash_shift ^ h.window[we + z - 1]) & h.hash_mask, h.prev[we & h.w_mask] = h.head[h.ins_h], h.head[h.ins_h] = we, we++, h.insert--, !(h.lookahead + h.insert < z)); )
|
|
465
465
|
;
|
|
466
466
|
} while (h.lookahead < U && h.strm.avail_in !== 0);
|
|
@@ -475,14 +475,14 @@ function Zs() {
|
|
|
475
475
|
break;
|
|
476
476
|
}
|
|
477
477
|
h.strstart += h.lookahead, h.lookahead = 0;
|
|
478
|
-
var
|
|
479
|
-
if ((h.strstart === 0 || h.strstart >=
|
|
478
|
+
var M = h.block_start + j;
|
|
479
|
+
if ((h.strstart === 0 || h.strstart >= M) && (h.lookahead = h.strstart - M, h.strstart = M, xe(h, !1), h.strm.avail_out === 0) || h.strstart - h.block_start >= h.w_size - U && (xe(h, !1), h.strm.avail_out === 0))
|
|
480
480
|
return ae;
|
|
481
481
|
}
|
|
482
482
|
return h.insert = 0, q === s ? (xe(h, !0), h.strm.avail_out === 0 ? Se : Ce) : (h.strstart > h.block_start && (xe(h, !1), h.strm.avail_out === 0), ae);
|
|
483
483
|
}
|
|
484
484
|
function Be(h, q) {
|
|
485
|
-
for (var j,
|
|
485
|
+
for (var j, M; ; ) {
|
|
486
486
|
if (h.lookahead < U) {
|
|
487
487
|
if (ze(h), h.lookahead < U && q === o)
|
|
488
488
|
return ae;
|
|
@@ -490,7 +490,7 @@ function Zs() {
|
|
|
490
490
|
break;
|
|
491
491
|
}
|
|
492
492
|
if (j = 0, h.lookahead >= z && (h.ins_h = (h.ins_h << h.hash_shift ^ h.window[h.strstart + z - 1]) & h.hash_mask, j = h.prev[h.strstart & h.w_mask] = h.head[h.ins_h], h.head[h.ins_h] = h.strstart), j !== 0 && h.strstart - j <= h.w_size - U && (h.match_length = Oe(h, j)), h.match_length >= z)
|
|
493
|
-
if (
|
|
493
|
+
if (M = t._tr_tally(h, h.strstart - h.match_start, h.match_length - z), h.lookahead -= h.match_length, h.match_length <= h.max_lazy_match && h.lookahead >= z) {
|
|
494
494
|
h.match_length--;
|
|
495
495
|
do
|
|
496
496
|
h.strstart++, h.ins_h = (h.ins_h << h.hash_shift ^ h.window[h.strstart + z - 1]) & h.hash_mask, j = h.prev[h.strstart & h.w_mask] = h.head[h.ins_h], h.head[h.ins_h] = h.strstart;
|
|
@@ -499,14 +499,14 @@ function Zs() {
|
|
|
499
499
|
} else
|
|
500
500
|
h.strstart += h.match_length, h.match_length = 0, h.ins_h = h.window[h.strstart], h.ins_h = (h.ins_h << h.hash_shift ^ h.window[h.strstart + 1]) & h.hash_mask;
|
|
501
501
|
else
|
|
502
|
-
|
|
503
|
-
if (
|
|
502
|
+
M = t._tr_tally(h, 0, h.window[h.strstart]), h.lookahead--, h.strstart++;
|
|
503
|
+
if (M && (xe(h, !1), h.strm.avail_out === 0))
|
|
504
504
|
return ae;
|
|
505
505
|
}
|
|
506
506
|
return h.insert = h.strstart < z - 1 ? h.strstart : z - 1, q === s ? (xe(h, !0), h.strm.avail_out === 0 ? Se : Ce) : h.last_lit && (xe(h, !1), h.strm.avail_out === 0) ? ae : X;
|
|
507
507
|
}
|
|
508
508
|
function Ue(h, q) {
|
|
509
|
-
for (var j,
|
|
509
|
+
for (var j, M, H; ; ) {
|
|
510
510
|
if (h.lookahead < U) {
|
|
511
511
|
if (ze(h), h.lookahead < U && q === o)
|
|
512
512
|
return ae;
|
|
@@ -514,33 +514,33 @@ function Zs() {
|
|
|
514
514
|
break;
|
|
515
515
|
}
|
|
516
516
|
if (j = 0, h.lookahead >= z && (h.ins_h = (h.ins_h << h.hash_shift ^ h.window[h.strstart + z - 1]) & h.hash_mask, j = h.prev[h.strstart & h.w_mask] = h.head[h.ins_h], h.head[h.ins_h] = h.strstart), h.prev_length = h.match_length, h.prev_match = h.match_start, h.match_length = z - 1, j !== 0 && h.prev_length < h.max_lazy_match && h.strstart - j <= h.w_size - U && (h.match_length = Oe(h, j), h.match_length <= 5 && (h.strategy === y || h.match_length === z && h.strstart - h.match_start > 4096) && (h.match_length = z - 1)), h.prev_length >= z && h.match_length <= h.prev_length) {
|
|
517
|
-
H = h.strstart + h.lookahead - z,
|
|
517
|
+
H = h.strstart + h.lookahead - z, M = t._tr_tally(h, h.strstart - 1 - h.prev_match, h.prev_length - z), h.lookahead -= h.prev_length - 1, h.prev_length -= 2;
|
|
518
518
|
do
|
|
519
519
|
++h.strstart <= H && (h.ins_h = (h.ins_h << h.hash_shift ^ h.window[h.strstart + z - 1]) & h.hash_mask, j = h.prev[h.strstart & h.w_mask] = h.head[h.ins_h], h.head[h.ins_h] = h.strstart);
|
|
520
520
|
while (--h.prev_length !== 0);
|
|
521
|
-
if (h.match_available = 0, h.match_length = z - 1, h.strstart++,
|
|
521
|
+
if (h.match_available = 0, h.match_length = z - 1, h.strstart++, M && (xe(h, !1), h.strm.avail_out === 0))
|
|
522
522
|
return ae;
|
|
523
523
|
} else if (h.match_available) {
|
|
524
|
-
if (
|
|
524
|
+
if (M = t._tr_tally(h, 0, h.window[h.strstart - 1]), M && xe(h, !1), h.strstart++, h.lookahead--, h.strm.avail_out === 0)
|
|
525
525
|
return ae;
|
|
526
526
|
} else
|
|
527
527
|
h.match_available = 1, h.strstart++, h.lookahead--;
|
|
528
528
|
}
|
|
529
|
-
return h.match_available && (
|
|
529
|
+
return h.match_available && (M = t._tr_tally(h, 0, h.window[h.strstart - 1]), h.match_available = 0), h.insert = h.strstart < z - 1 ? h.strstart : z - 1, q === s ? (xe(h, !0), h.strm.avail_out === 0 ? Se : Ce) : h.last_lit && (xe(h, !1), h.strm.avail_out === 0) ? ae : X;
|
|
530
530
|
}
|
|
531
531
|
function qe(h, q) {
|
|
532
|
-
for (var j,
|
|
532
|
+
for (var j, M, H, J, we = h.window; ; ) {
|
|
533
533
|
if (h.lookahead <= W) {
|
|
534
534
|
if (ze(h), h.lookahead <= W && q === o)
|
|
535
535
|
return ae;
|
|
536
536
|
if (h.lookahead === 0)
|
|
537
537
|
break;
|
|
538
538
|
}
|
|
539
|
-
if (h.match_length = 0, h.lookahead >= z && h.strstart > 0 && (H = h.strstart - 1,
|
|
539
|
+
if (h.match_length = 0, h.lookahead >= z && h.strstart > 0 && (H = h.strstart - 1, M = we[H], M === we[++H] && M === we[++H] && M === we[++H])) {
|
|
540
540
|
J = h.strstart + W;
|
|
541
541
|
do
|
|
542
542
|
;
|
|
543
|
-
while (
|
|
543
|
+
while (M === we[++H] && M === we[++H] && M === we[++H] && M === we[++H] && M === we[++H] && M === we[++H] && M === we[++H] && M === we[++H] && H < J);
|
|
544
544
|
h.match_length = W - (J - H), h.match_length > h.lookahead && (h.match_length = h.lookahead);
|
|
545
545
|
}
|
|
546
546
|
if (h.match_length >= z ? (j = t._tr_tally(h, 1, h.match_length - z), h.lookahead -= h.match_length, h.strstart += h.match_length, h.match_length = 0) : (j = t._tr_tally(h, 0, h.window[h.strstart]), h.lookahead--, h.strstart++), j && (xe(h, !1), h.strm.avail_out === 0))
|
|
@@ -560,8 +560,8 @@ function Zs() {
|
|
|
560
560
|
}
|
|
561
561
|
return h.insert = 0, q === s ? (xe(h, !0), h.strm.avail_out === 0 ? Se : Ce) : h.last_lit && (xe(h, !1), h.strm.avail_out === 0) ? ae : X;
|
|
562
562
|
}
|
|
563
|
-
function Ze(h, q, j,
|
|
564
|
-
this.good_length = h, this.max_lazy = q, this.nice_length = j, this.max_chain =
|
|
563
|
+
function Ze(h, q, j, M, H) {
|
|
564
|
+
this.good_length = h, this.max_lazy = q, this.nice_length = j, this.max_chain = M, this.func = H;
|
|
565
565
|
}
|
|
566
566
|
var it;
|
|
567
567
|
it = [
|
|
@@ -604,100 +604,100 @@ function Zs() {
|
|
|
604
604
|
function be(h, q) {
|
|
605
605
|
return !h || !h.state || h.state.wrap !== 2 ? f : (h.state.gzhead = q, d);
|
|
606
606
|
}
|
|
607
|
-
function Z(h, q, j,
|
|
607
|
+
function Z(h, q, j, M, H, J) {
|
|
608
608
|
if (!h)
|
|
609
609
|
return f;
|
|
610
610
|
var we = 1;
|
|
611
|
-
if (q === _ && (q = 6),
|
|
611
|
+
if (q === _ && (q = 6), M < 0 ? (we = 0, M = -M) : M > 15 && (we = 2, M -= 16), H < 1 || H > C || j !== I || M < 8 || M > 15 || q < 0 || q > 9 || J < 0 || J > P)
|
|
612
612
|
return Q(h, f);
|
|
613
|
-
|
|
613
|
+
M === 8 && (M = 9);
|
|
614
614
|
var ke = new D();
|
|
615
|
-
return h.state = ke, ke.strm = h, ke.wrap = we, ke.gzhead = null, ke.w_bits =
|
|
615
|
+
return h.state = ke, ke.strm = h, ke.wrap = we, ke.gzhead = null, ke.w_bits = M, ke.w_size = 1 << ke.w_bits, ke.w_mask = ke.w_size - 1, ke.hash_bits = H + 7, ke.hash_size = 1 << ke.hash_bits, ke.hash_mask = ke.hash_size - 1, ke.hash_shift = ~~((ke.hash_bits + z - 1) / z), ke.window = new e.Buf8(ke.w_size * 2), ke.head = new e.Buf16(ke.hash_size), ke.prev = new e.Buf16(ke.w_size), ke.lit_bufsize = 1 << H + 6, ke.pending_buf_size = ke.lit_bufsize * 4, ke.pending_buf = new e.Buf8(ke.pending_buf_size), ke.d_buf = 1 * ke.lit_bufsize, ke.l_buf = 3 * ke.lit_bufsize, ke.level = q, ke.strategy = J, ke.method = j, ve(h);
|
|
616
616
|
}
|
|
617
617
|
function ie(h, q) {
|
|
618
618
|
return Z(h, q, I, T, R, b);
|
|
619
619
|
}
|
|
620
620
|
function w(h, q) {
|
|
621
|
-
var j,
|
|
621
|
+
var j, M, H, J;
|
|
622
622
|
if (!h || !h.state || q > c || q < 0)
|
|
623
623
|
return h ? Q(h, f) : f;
|
|
624
|
-
if (
|
|
624
|
+
if (M = h.state, !h.output || !h.input && h.avail_in !== 0 || M.status === ce && q !== s)
|
|
625
625
|
return Q(h, h.avail_out === 0 ? p : f);
|
|
626
|
-
if (
|
|
627
|
-
if (
|
|
628
|
-
h.adler = 0, fe(
|
|
629
|
-
|
|
630
|
-
(
|
|
631
|
-
), fe(
|
|
626
|
+
if (M.strm = h, j = M.last_flush, M.last_flush = q, M.status === ee)
|
|
627
|
+
if (M.wrap === 2)
|
|
628
|
+
h.adler = 0, fe(M, 31), fe(M, 139), fe(M, 8), M.gzhead ? (fe(
|
|
629
|
+
M,
|
|
630
|
+
(M.gzhead.text ? 1 : 0) + (M.gzhead.hcrc ? 2 : 0) + (M.gzhead.extra ? 4 : 0) + (M.gzhead.name ? 8 : 0) + (M.gzhead.comment ? 16 : 0)
|
|
631
|
+
), fe(M, M.gzhead.time & 255), fe(M, M.gzhead.time >> 8 & 255), fe(M, M.gzhead.time >> 16 & 255), fe(M, M.gzhead.time >> 24 & 255), fe(M, M.level === 9 ? 2 : M.strategy >= m || M.level < 2 ? 4 : 0), fe(M, M.gzhead.os & 255), M.gzhead.extra && M.gzhead.extra.length && (fe(M, M.gzhead.extra.length & 255), fe(M, M.gzhead.extra.length >> 8 & 255)), M.gzhead.hcrc && (h.adler = a(h.adler, M.pending_buf, M.pending, 0)), M.gzindex = 0, M.status = G) : (fe(M, 0), fe(M, 0), fe(M, 0), fe(M, 0), fe(M, 0), fe(M, M.level === 9 ? 2 : M.strategy >= m || M.level < 2 ? 4 : 0), fe(M, V), M.status = Y);
|
|
632
632
|
else {
|
|
633
|
-
var we = I + (
|
|
634
|
-
|
|
635
|
-
}
|
|
636
|
-
if (
|
|
637
|
-
if (
|
|
638
|
-
for (H =
|
|
639
|
-
fe(
|
|
640
|
-
|
|
633
|
+
var we = I + (M.w_bits - 8 << 4) << 8, ke = -1;
|
|
634
|
+
M.strategy >= m || M.level < 2 ? ke = 0 : M.level < 6 ? ke = 1 : M.level === 6 ? ke = 2 : ke = 3, we |= ke << 6, M.strstart !== 0 && (we |= ne), we += 31 - we % 31, M.status = Y, me(M, we), M.strstart !== 0 && (me(M, h.adler >>> 16), me(M, h.adler & 65535)), h.adler = 1;
|
|
635
|
+
}
|
|
636
|
+
if (M.status === G)
|
|
637
|
+
if (M.gzhead.extra) {
|
|
638
|
+
for (H = M.pending; M.gzindex < (M.gzhead.extra.length & 65535) && !(M.pending === M.pending_buf_size && (M.gzhead.hcrc && M.pending > H && (h.adler = a(h.adler, M.pending_buf, M.pending - H, H)), te(h), H = M.pending, M.pending === M.pending_buf_size)); )
|
|
639
|
+
fe(M, M.gzhead.extra[M.gzindex] & 255), M.gzindex++;
|
|
640
|
+
M.gzhead.hcrc && M.pending > H && (h.adler = a(h.adler, M.pending_buf, M.pending - H, H)), M.gzindex === M.gzhead.extra.length && (M.gzindex = 0, M.status = le);
|
|
641
641
|
} else
|
|
642
|
-
|
|
643
|
-
if (
|
|
644
|
-
if (
|
|
645
|
-
H =
|
|
642
|
+
M.status = le;
|
|
643
|
+
if (M.status === le)
|
|
644
|
+
if (M.gzhead.name) {
|
|
645
|
+
H = M.pending;
|
|
646
646
|
do {
|
|
647
|
-
if (
|
|
647
|
+
if (M.pending === M.pending_buf_size && (M.gzhead.hcrc && M.pending > H && (h.adler = a(h.adler, M.pending_buf, M.pending - H, H)), te(h), H = M.pending, M.pending === M.pending_buf_size)) {
|
|
648
648
|
J = 1;
|
|
649
649
|
break;
|
|
650
650
|
}
|
|
651
|
-
|
|
651
|
+
M.gzindex < M.gzhead.name.length ? J = M.gzhead.name.charCodeAt(M.gzindex++) & 255 : J = 0, fe(M, J);
|
|
652
652
|
} while (J !== 0);
|
|
653
|
-
|
|
653
|
+
M.gzhead.hcrc && M.pending > H && (h.adler = a(h.adler, M.pending_buf, M.pending - H, H)), J === 0 && (M.gzindex = 0, M.status = re);
|
|
654
654
|
} else
|
|
655
|
-
|
|
656
|
-
if (
|
|
657
|
-
if (
|
|
658
|
-
H =
|
|
655
|
+
M.status = re;
|
|
656
|
+
if (M.status === re)
|
|
657
|
+
if (M.gzhead.comment) {
|
|
658
|
+
H = M.pending;
|
|
659
659
|
do {
|
|
660
|
-
if (
|
|
660
|
+
if (M.pending === M.pending_buf_size && (M.gzhead.hcrc && M.pending > H && (h.adler = a(h.adler, M.pending_buf, M.pending - H, H)), te(h), H = M.pending, M.pending === M.pending_buf_size)) {
|
|
661
661
|
J = 1;
|
|
662
662
|
break;
|
|
663
663
|
}
|
|
664
|
-
|
|
664
|
+
M.gzindex < M.gzhead.comment.length ? J = M.gzhead.comment.charCodeAt(M.gzindex++) & 255 : J = 0, fe(M, J);
|
|
665
665
|
} while (J !== 0);
|
|
666
|
-
|
|
666
|
+
M.gzhead.hcrc && M.pending > H && (h.adler = a(h.adler, M.pending_buf, M.pending - H, H)), J === 0 && (M.status = oe);
|
|
667
667
|
} else
|
|
668
|
-
|
|
669
|
-
if (
|
|
668
|
+
M.status = oe;
|
|
669
|
+
if (M.status === oe && (M.gzhead.hcrc ? (M.pending + 2 > M.pending_buf_size && te(h), M.pending + 2 <= M.pending_buf_size && (fe(M, h.adler & 255), fe(M, h.adler >> 8 & 255), h.adler = 0, M.status = Y)) : M.status = Y), M.pending !== 0) {
|
|
670
670
|
if (te(h), h.avail_out === 0)
|
|
671
|
-
return
|
|
671
|
+
return M.last_flush = -1, d;
|
|
672
672
|
} else if (h.avail_in === 0 && Me(q) <= Me(j) && q !== s)
|
|
673
673
|
return Q(h, p);
|
|
674
|
-
if (
|
|
674
|
+
if (M.status === ce && h.avail_in !== 0)
|
|
675
675
|
return Q(h, p);
|
|
676
|
-
if (h.avail_in !== 0 ||
|
|
677
|
-
var Te =
|
|
678
|
-
if ((Te === Se || Te === Ce) && (
|
|
679
|
-
return h.avail_out === 0 && (
|
|
680
|
-
if (Te === X && (q === r ? t._tr_align(
|
|
681
|
-
return
|
|
676
|
+
if (h.avail_in !== 0 || M.lookahead !== 0 || q !== o && M.status !== ce) {
|
|
677
|
+
var Te = M.strategy === m ? nt(M, q) : M.strategy === x ? qe(M, q) : it[M.level].func(M, q);
|
|
678
|
+
if ((Te === Se || Te === Ce) && (M.status = ce), Te === ae || Te === Se)
|
|
679
|
+
return h.avail_out === 0 && (M.last_flush = -1), d;
|
|
680
|
+
if (Te === X && (q === r ? t._tr_align(M) : q !== c && (t._tr_stored_block(M, 0, 0, !1), q === l && (Ae(M.head), M.lookahead === 0 && (M.strstart = 0, M.block_start = 0, M.insert = 0))), te(h), h.avail_out === 0))
|
|
681
|
+
return M.last_flush = -1, d;
|
|
682
682
|
}
|
|
683
|
-
return q !== s ? d :
|
|
683
|
+
return q !== s ? d : M.wrap <= 0 ? u : (M.wrap === 2 ? (fe(M, h.adler & 255), fe(M, h.adler >> 8 & 255), fe(M, h.adler >> 16 & 255), fe(M, h.adler >> 24 & 255), fe(M, h.total_in & 255), fe(M, h.total_in >> 8 & 255), fe(M, h.total_in >> 16 & 255), fe(M, h.total_in >> 24 & 255)) : (me(M, h.adler >>> 16), me(M, h.adler & 65535)), te(h), M.wrap > 0 && (M.wrap = -M.wrap), M.pending !== 0 ? d : u);
|
|
684
684
|
}
|
|
685
685
|
function pe(h) {
|
|
686
686
|
var q;
|
|
687
687
|
return !h || !h.state ? f : (q = h.state.status, q !== ee && q !== G && q !== le && q !== re && q !== oe && q !== Y && q !== ce ? Q(h, f) : (h.state = null, q === Y ? Q(h, g) : d));
|
|
688
688
|
}
|
|
689
689
|
function Ie(h, q) {
|
|
690
|
-
var j = q.length,
|
|
691
|
-
if (!h || !h.state || (
|
|
690
|
+
var j = q.length, M, H, J, we, ke, Te, Ge, Ht;
|
|
691
|
+
if (!h || !h.state || (M = h.state, we = M.wrap, we === 2 || we === 1 && M.status !== ee || M.lookahead))
|
|
692
692
|
return f;
|
|
693
|
-
for (we === 1 && (h.adler = n(h.adler, q, j, 0)),
|
|
694
|
-
H =
|
|
693
|
+
for (we === 1 && (h.adler = n(h.adler, q, j, 0)), M.wrap = 0, j >= M.w_size && (we === 0 && (Ae(M.head), M.strstart = 0, M.block_start = 0, M.insert = 0), Ht = new e.Buf8(M.w_size), e.arraySet(Ht, q, j - M.w_size, M.w_size, 0), q = Ht, j = M.w_size), ke = h.avail_in, Te = h.next_in, Ge = h.input, h.avail_in = j, h.next_in = 0, h.input = q, ze(M); M.lookahead >= z; ) {
|
|
694
|
+
H = M.strstart, J = M.lookahead - (z - 1);
|
|
695
695
|
do
|
|
696
|
-
|
|
696
|
+
M.ins_h = (M.ins_h << M.hash_shift ^ M.window[H + z - 1]) & M.hash_mask, M.prev[H & M.w_mask] = M.head[M.ins_h], M.head[M.ins_h] = H, H++;
|
|
697
697
|
while (--J);
|
|
698
|
-
|
|
698
|
+
M.strstart = H, M.lookahead = z - 1, ze(M);
|
|
699
699
|
}
|
|
700
|
-
return
|
|
700
|
+
return M.strstart += M.lookahead, M.block_start = M.strstart, M.insert = M.lookahead, M.lookahead = 0, M.match_length = M.prev_length = z - 1, M.match_available = 0, h.next_in = Te, h.input = Ge, h.avail_in = ke, M.wrap = we, d;
|
|
701
701
|
}
|
|
702
702
|
return At.deflateInit = ie, At.deflateInit2 = Z, At.deflateReset = ve, At.deflateResetKeep = de, At.deflateSetHeader = be, At.deflate = w, At.deflateEnd = pe, At.deflateSetDictionary = Ie, At.deflateInfo = "pako deflate (from Nodeca project)", At;
|
|
703
703
|
}
|
|
@@ -846,7 +846,7 @@ function Ys() {
|
|
|
846
846
|
Fr = 1;
|
|
847
847
|
var e = 30, t = 12;
|
|
848
848
|
return Ao = function(a, i) {
|
|
849
|
-
var o, r, l, s, c, d, u, f, g, p, _, y, m, x, P, b, A, I, C, T, R,
|
|
849
|
+
var o, r, l, s, c, d, u, f, g, p, _, y, m, x, P, b, A, I, C, T, R, L, S, B, k;
|
|
850
850
|
o = a.state, r = a.next_in, B = a.input, l = r + (a.avail_in - 5), s = a.next_out, k = a.output, c = s - (i - a.avail_out), d = s + (a.avail_out - 257), u = o.dmax, f = o.wsize, g = o.whave, p = o.wnext, _ = o.window, y = o.hold, m = o.bits, x = o.lencode, P = o.distcode, b = (1 << o.lenbits) - 1, A = (1 << o.distbits) - 1;
|
|
851
851
|
e:
|
|
852
852
|
do {
|
|
@@ -869,44 +869,44 @@ function Ys() {
|
|
|
869
869
|
a.msg = "invalid distance too far back", o.mode = e;
|
|
870
870
|
break e;
|
|
871
871
|
}
|
|
872
|
-
if (
|
|
873
|
-
if (
|
|
872
|
+
if (L = 0, S = _, p === 0) {
|
|
873
|
+
if (L += f - C, C < T) {
|
|
874
874
|
T -= C;
|
|
875
875
|
do
|
|
876
|
-
k[s++] = _[
|
|
876
|
+
k[s++] = _[L++];
|
|
877
877
|
while (--C);
|
|
878
|
-
|
|
878
|
+
L = s - R, S = k;
|
|
879
879
|
}
|
|
880
880
|
} else if (p < C) {
|
|
881
|
-
if (
|
|
881
|
+
if (L += f + p - C, C -= p, C < T) {
|
|
882
882
|
T -= C;
|
|
883
883
|
do
|
|
884
|
-
k[s++] = _[
|
|
884
|
+
k[s++] = _[L++];
|
|
885
885
|
while (--C);
|
|
886
|
-
if (
|
|
886
|
+
if (L = 0, p < T) {
|
|
887
887
|
C = p, T -= C;
|
|
888
888
|
do
|
|
889
|
-
k[s++] = _[
|
|
889
|
+
k[s++] = _[L++];
|
|
890
890
|
while (--C);
|
|
891
|
-
|
|
891
|
+
L = s - R, S = k;
|
|
892
892
|
}
|
|
893
893
|
}
|
|
894
|
-
} else if (
|
|
894
|
+
} else if (L += p - C, C < T) {
|
|
895
895
|
T -= C;
|
|
896
896
|
do
|
|
897
|
-
k[s++] = _[
|
|
897
|
+
k[s++] = _[L++];
|
|
898
898
|
while (--C);
|
|
899
|
-
|
|
899
|
+
L = s - R, S = k;
|
|
900
900
|
}
|
|
901
901
|
for (; T > 2; )
|
|
902
|
-
k[s++] = S[
|
|
903
|
-
T && (k[s++] = S[
|
|
902
|
+
k[s++] = S[L++], k[s++] = S[L++], k[s++] = S[L++], T -= 3;
|
|
903
|
+
T && (k[s++] = S[L++], T > 1 && (k[s++] = S[L++]));
|
|
904
904
|
} else {
|
|
905
|
-
|
|
905
|
+
L = s - R;
|
|
906
906
|
do
|
|
907
|
-
k[s++] = k[
|
|
907
|
+
k[s++] = k[L++], k[s++] = k[L++], k[s++] = k[L++], T -= 3;
|
|
908
908
|
while (T > 2);
|
|
909
|
-
T && (k[s++] = k[
|
|
909
|
+
T && (k[s++] = k[L++], T > 1 && (k[s++] = k[L++]));
|
|
910
910
|
}
|
|
911
911
|
} else if (C & 64) {
|
|
912
912
|
a.msg = "invalid distance code", o.mode = e;
|
|
@@ -1075,7 +1075,7 @@ function Js() {
|
|
|
1075
1075
|
64
|
|
1076
1076
|
];
|
|
1077
1077
|
return Eo = function(f, g, p, _, y, m, x, P) {
|
|
1078
|
-
var b = P.bits, A = 0, I = 0, C = 0, T = 0, R = 0,
|
|
1078
|
+
var b = P.bits, A = 0, I = 0, C = 0, T = 0, R = 0, L = 0, S = 0, B = 0, k = 0, E = 0, v, O, z, W, U, ne = null, ee = 0, G, le = new e.Buf16(t + 1), re = new e.Buf16(t + 1), oe = null, Y = 0, ce, ae, X;
|
|
1079
1079
|
for (A = 0; A <= t; A++)
|
|
1080
1080
|
le[A] = 0;
|
|
1081
1081
|
for (I = 0; I < _; I++)
|
|
@@ -1095,10 +1095,10 @@ function Js() {
|
|
|
1095
1095
|
re[A + 1] = re[A] + le[A];
|
|
1096
1096
|
for (I = 0; I < _; I++)
|
|
1097
1097
|
g[p + I] !== 0 && (x[re[g[p + I]]++] = I);
|
|
1098
|
-
if (f === i ? (ne = oe = x, G = 19) : f === o ? (ne = l, ee -= 257, oe = s, Y -= 257, G = 256) : (ne = c, oe = d, G = -1), E = 0, I = 0, A = C, U = m,
|
|
1098
|
+
if (f === i ? (ne = oe = x, G = 19) : f === o ? (ne = l, ee -= 257, oe = s, Y -= 257, G = 256) : (ne = c, oe = d, G = -1), E = 0, I = 0, A = C, U = m, L = R, S = 0, z = -1, k = 1 << R, W = k - 1, f === o && k > n || f === r && k > a)
|
|
1099
1099
|
return 1;
|
|
1100
1100
|
for (; ; ) {
|
|
1101
|
-
ce = A - S, x[I] < G ? (ae = 0, X = x[I]) : x[I] > G ? (ae = oe[Y + x[I]], X = ne[ee + x[I]]) : (ae = 96, X = 0), v = 1 << A - S, O = 1 <<
|
|
1101
|
+
ce = A - S, x[I] < G ? (ae = 0, X = x[I]) : x[I] > G ? (ae = oe[Y + x[I]], X = ne[ee + x[I]]) : (ae = 96, X = 0), v = 1 << A - S, O = 1 << L, C = O;
|
|
1102
1102
|
do
|
|
1103
1103
|
O -= v, y[U + (E >> S) + O] = ce << 24 | ae << 16 | X | 0;
|
|
1104
1104
|
while (O !== 0);
|
|
@@ -1110,11 +1110,11 @@ function Js() {
|
|
|
1110
1110
|
A = g[p + x[I]];
|
|
1111
1111
|
}
|
|
1112
1112
|
if (A > R && (E & W) !== z) {
|
|
1113
|
-
for (S === 0 && (S = R), U += C,
|
|
1114
|
-
|
|
1115
|
-
if (k += 1 <<
|
|
1113
|
+
for (S === 0 && (S = R), U += C, L = A - S, B = 1 << L; L + S < T && (B -= le[L + S], !(B <= 0)); )
|
|
1114
|
+
L++, B <<= 1;
|
|
1115
|
+
if (k += 1 << L, f === o && k > n || f === r && k > a)
|
|
1116
1116
|
return 1;
|
|
1117
|
-
z = E & W, y[z] = R << 24 |
|
|
1117
|
+
z = E & W, y[z] = R << 24 | L << 16 | U - m | 0;
|
|
1118
1118
|
}
|
|
1119
1119
|
}
|
|
1120
1120
|
return E !== 0 && (y[U + E] = A - S << 24 | 64 << 16 | 0), P.bits = R, 0;
|
|
@@ -1124,7 +1124,7 @@ var $r;
|
|
|
1124
1124
|
function Xs() {
|
|
1125
1125
|
if ($r) return Nt;
|
|
1126
1126
|
$r = 1;
|
|
1127
|
-
var e = fn(), t = pa(), n = ha(), a = Ys(), i = Js(), o = 0, r = 1, l = 2, s = 4, c = 5, d = 6, u = 0, f = 1, g = 2, p = -2, _ = -3, y = -4, m = -5, x = 8, P = 1, b = 2, A = 3, I = 4, C = 5, T = 6, R = 7,
|
|
1127
|
+
var e = fn(), t = pa(), n = ha(), a = Ys(), i = Js(), o = 0, r = 1, l = 2, s = 4, c = 5, d = 6, u = 0, f = 1, g = 2, p = -2, _ = -3, y = -4, m = -5, x = 8, P = 1, b = 2, A = 3, I = 4, C = 5, T = 6, R = 7, L = 8, S = 9, B = 10, k = 11, E = 12, v = 13, O = 14, z = 15, W = 16, U = 17, ne = 18, ee = 19, G = 20, le = 21, re = 22, oe = 23, Y = 24, ce = 25, ae = 26, X = 27, Se = 28, Ce = 29, V = 30, Q = 31, Me = 32, Ae = 852, te = 592, xe = 15, fe = xe;
|
|
1128
1128
|
function me(Z) {
|
|
1129
1129
|
return (Z >>> 24 & 255) + (Z >>> 8 & 65280) + ((Z & 65280) << 8) + ((Z & 255) << 24);
|
|
1130
1130
|
}
|
|
@@ -1173,13 +1173,13 @@ function Xs() {
|
|
|
1173
1173
|
return h.window === null && (h.wsize = 1 << h.wbits, h.wnext = 0, h.whave = 0, h.window = new e.Buf8(h.wsize)), pe >= h.wsize ? (e.arraySet(h.window, ie, w - h.wsize, h.wsize, 0), h.wnext = 0, h.whave = h.wsize) : (Ie = h.wsize - h.wnext, Ie > pe && (Ie = pe), e.arraySet(h.window, ie, w - pe, Ie, h.wnext), pe -= Ie, pe ? (e.arraySet(h.window, ie, w - pe, pe, 0), h.wnext = pe, h.whave = h.wsize) : (h.wnext += Ie, h.wnext === h.wsize && (h.wnext = 0), h.whave < h.wsize && (h.whave += Ie))), 0;
|
|
1174
1174
|
}
|
|
1175
1175
|
function D(Z, ie) {
|
|
1176
|
-
var w, pe, Ie, h, q, j,
|
|
1176
|
+
var w, pe, Ie, h, q, j, M, H, J, we, ke, Te, Ge, Ht, at = 0, Ye, ct, gt, _t, to, no, st, Tt, dt = new e.Buf8(4), Vt, Ft, br = (
|
|
1177
1177
|
/* permutation of code lengths */
|
|
1178
1178
|
[16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]
|
|
1179
1179
|
);
|
|
1180
1180
|
if (!Z || !Z.state || !Z.output || !Z.input && Z.avail_in !== 0)
|
|
1181
1181
|
return p;
|
|
1182
|
-
w = Z.state, w.mode === E && (w.mode = v), q = Z.next_out, Ie = Z.output,
|
|
1182
|
+
w = Z.state, w.mode === E && (w.mode = v), q = Z.next_out, Ie = Z.output, M = Z.avail_out, h = Z.next_in, pe = Z.input, j = Z.avail_in, H = w.hold, J = w.bits, we = j, ke = M, Tt = u;
|
|
1183
1183
|
e:
|
|
1184
1184
|
for (; ; )
|
|
1185
1185
|
switch (w.mode) {
|
|
@@ -1277,8 +1277,8 @@ function Xs() {
|
|
|
1277
1277
|
if (w.flags & 512 && (w.check = n(w.check, pe, Te, h)), j -= Te, h += Te, st)
|
|
1278
1278
|
break e;
|
|
1279
1279
|
} else w.head && (w.head.name = null);
|
|
1280
|
-
w.length = 0, w.mode =
|
|
1281
|
-
case
|
|
1280
|
+
w.length = 0, w.mode = L;
|
|
1281
|
+
case L:
|
|
1282
1282
|
if (w.flags & 4096) {
|
|
1283
1283
|
if (j === 0)
|
|
1284
1284
|
break e;
|
|
@@ -1314,7 +1314,7 @@ function Xs() {
|
|
|
1314
1314
|
Z.adler = w.check = me(H), H = 0, J = 0, w.mode = k;
|
|
1315
1315
|
case k:
|
|
1316
1316
|
if (w.havedict === 0)
|
|
1317
|
-
return Z.next_out = q, Z.avail_out =
|
|
1317
|
+
return Z.next_out = q, Z.avail_out = M, Z.next_in = h, Z.avail_in = j, w.hold = H, w.bits = J, g;
|
|
1318
1318
|
Z.adler = w.check = 1, w.mode = E;
|
|
1319
1319
|
case E:
|
|
1320
1320
|
if (ie === c || ie === d)
|
|
@@ -1363,9 +1363,9 @@ function Xs() {
|
|
|
1363
1363
|
w.mode = W;
|
|
1364
1364
|
case W:
|
|
1365
1365
|
if (Te = w.length, Te) {
|
|
1366
|
-
if (Te > j && (Te = j), Te >
|
|
1366
|
+
if (Te > j && (Te = j), Te > M && (Te = M), Te === 0)
|
|
1367
1367
|
break e;
|
|
1368
|
-
e.arraySet(Ie, pe, h, Te, q), j -= Te, h += Te,
|
|
1368
|
+
e.arraySet(Ie, pe, h, Te, q), j -= Te, h += Te, M -= Te, q += Te, w.length -= Te;
|
|
1369
1369
|
break;
|
|
1370
1370
|
}
|
|
1371
1371
|
w.mode = E;
|
|
@@ -1460,8 +1460,8 @@ function Xs() {
|
|
|
1460
1460
|
case G:
|
|
1461
1461
|
w.mode = le;
|
|
1462
1462
|
case le:
|
|
1463
|
-
if (j >= 6 &&
|
|
1464
|
-
Z.next_out = q, Z.avail_out =
|
|
1463
|
+
if (j >= 6 && M >= 258) {
|
|
1464
|
+
Z.next_out = q, Z.avail_out = M, Z.next_in = h, Z.avail_in = j, w.hold = H, w.bits = J, a(Z, ke), q = Z.next_out, Ie = Z.output, M = Z.avail_out, h = Z.next_in, pe = Z.input, j = Z.avail_in, H = w.hold, J = w.bits, w.mode === E && (w.back = -1);
|
|
1465
1465
|
break;
|
|
1466
1466
|
}
|
|
1467
1467
|
for (w.back = 0; at = w.lencode[H & (1 << w.lenbits) - 1], Ye = at >>> 24, ct = at >>> 16 & 255, gt = at & 65535, !(Ye <= J); ) {
|
|
@@ -1534,9 +1534,9 @@ function Xs() {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
w.mode = ce;
|
|
1536
1536
|
case ce:
|
|
1537
|
-
if (
|
|
1537
|
+
if (M === 0)
|
|
1538
1538
|
break e;
|
|
1539
|
-
if (Te = ke -
|
|
1539
|
+
if (Te = ke - M, w.offset > Te) {
|
|
1540
1540
|
if (Te = w.offset - Te, Te > w.whave && w.sane) {
|
|
1541
1541
|
Z.msg = "invalid distance too far back", w.mode = V;
|
|
1542
1542
|
break;
|
|
@@ -1544,16 +1544,16 @@ function Xs() {
|
|
|
1544
1544
|
Te > w.wnext ? (Te -= w.wnext, Ge = w.wsize - Te) : Ge = w.wnext - Te, Te > w.length && (Te = w.length), Ht = w.window;
|
|
1545
1545
|
} else
|
|
1546
1546
|
Ht = Ie, Ge = q - w.offset, Te = w.length;
|
|
1547
|
-
Te >
|
|
1547
|
+
Te > M && (Te = M), M -= Te, w.length -= Te;
|
|
1548
1548
|
do
|
|
1549
1549
|
Ie[q++] = Ht[Ge++];
|
|
1550
1550
|
while (--Te);
|
|
1551
1551
|
w.length === 0 && (w.mode = le);
|
|
1552
1552
|
break;
|
|
1553
1553
|
case ae:
|
|
1554
|
-
if (
|
|
1554
|
+
if (M === 0)
|
|
1555
1555
|
break e;
|
|
1556
|
-
Ie[q++] = w.length,
|
|
1556
|
+
Ie[q++] = w.length, M--, w.mode = le;
|
|
1557
1557
|
break;
|
|
1558
1558
|
case X:
|
|
1559
1559
|
if (w.wrap) {
|
|
@@ -1562,8 +1562,8 @@ function Xs() {
|
|
|
1562
1562
|
break e;
|
|
1563
1563
|
j--, H |= pe[h++] << J, J += 8;
|
|
1564
1564
|
}
|
|
1565
|
-
if (ke -=
|
|
1566
|
-
w.flags ? n(w.check, Ie, ke, q - ke) : t(w.check, Ie, ke, q - ke)), ke =
|
|
1565
|
+
if (ke -= M, Z.total_out += ke, w.total += ke, ke && (Z.adler = w.check = /*UPDATE(state.check, put - _out, _out);*/
|
|
1566
|
+
w.flags ? n(w.check, Ie, ke, q - ke) : t(w.check, Ie, ke, q - ke)), ke = M, (w.flags ? H : me(H)) !== w.check) {
|
|
1567
1567
|
Z.msg = "incorrect data check", w.mode = V;
|
|
1568
1568
|
break;
|
|
1569
1569
|
}
|
|
@@ -1596,7 +1596,7 @@ function Xs() {
|
|
|
1596
1596
|
default:
|
|
1597
1597
|
return p;
|
|
1598
1598
|
}
|
|
1599
|
-
return Z.next_out = q, Z.avail_out =
|
|
1599
|
+
return Z.next_out = q, Z.avail_out = M, Z.next_in = h, Z.avail_in = j, w.hold = H, w.bits = J, (w.wsize || ke !== Z.avail_out && w.mode < V && (w.mode < X || ie !== s)) && ft(Z, Z.output, Z.next_out, ke - Z.avail_out), we -= Z.avail_in, ke -= Z.avail_out, Z.total_in += we, Z.total_out += ke, w.total += ke, w.wrap && ke && (Z.adler = w.check = /*UPDATE(state.check, strm.next_out - _out, _out);*/
|
|
1600
1600
|
w.flags ? n(w.check, Ie, ke, Z.next_out - ke) : t(w.check, Ie, ke, Z.next_out - ke)), Z.data_type = w.bits + (w.last ? 64 : 0) + (w.mode === E ? 128 : 0) + (w.mode === G || w.mode === z ? 256 : 0), (we === 0 && ke === 0 || ie === s) && Tt === u && (Tt = m), Tt;
|
|
1601
1601
|
}
|
|
1602
1602
|
function de(Z) {
|
|
@@ -1763,25 +1763,25 @@ function Qs() {
|
|
|
1763
1763
|
f[C] = o[T], f[C + 1] = o[T + 2], f[C + 2] = o[T + 4], f[C + 3] = 255, b != -1 && y(o, T) == b && y(o, T + 2) == A && y(o, T + 4) == I && (f[C + 3] = 0);
|
|
1764
1764
|
}
|
|
1765
1765
|
} else if (p == 3) {
|
|
1766
|
-
var R = s.tabs.PLTE,
|
|
1766
|
+
var R = s.tabs.PLTE, L = s.tabs.tRNS, S = L ? L.length : 0;
|
|
1767
1767
|
if (_ == 1) for (var B = 0; B < l; B++)
|
|
1768
1768
|
for (var k = B * u, E = B * r, x = 0; x < r; x++) {
|
|
1769
1769
|
var C = E + x << 2, v = o[k + (x >> 3)] >> 7 - ((x & 7) << 0) & 1, O = 3 * v;
|
|
1770
|
-
f[C] = R[O], f[C + 1] = R[O + 1], f[C + 2] = R[O + 2], f[C + 3] = v < S ?
|
|
1770
|
+
f[C] = R[O], f[C + 1] = R[O + 1], f[C + 2] = R[O + 2], f[C + 3] = v < S ? L[v] : 255;
|
|
1771
1771
|
}
|
|
1772
1772
|
if (_ == 2) for (var B = 0; B < l; B++)
|
|
1773
1773
|
for (var k = B * u, E = B * r, x = 0; x < r; x++) {
|
|
1774
1774
|
var C = E + x << 2, v = o[k + (x >> 2)] >> 6 - ((x & 3) << 1) & 3, O = 3 * v;
|
|
1775
|
-
f[C] = R[O], f[C + 1] = R[O + 1], f[C + 2] = R[O + 2], f[C + 3] = v < S ?
|
|
1775
|
+
f[C] = R[O], f[C + 1] = R[O + 1], f[C + 2] = R[O + 2], f[C + 3] = v < S ? L[v] : 255;
|
|
1776
1776
|
}
|
|
1777
1777
|
if (_ == 4) for (var B = 0; B < l; B++)
|
|
1778
1778
|
for (var k = B * u, E = B * r, x = 0; x < r; x++) {
|
|
1779
1779
|
var C = E + x << 2, v = o[k + (x >> 1)] >> 4 - ((x & 1) << 2) & 15, O = 3 * v;
|
|
1780
|
-
f[C] = R[O], f[C + 1] = R[O + 1], f[C + 2] = R[O + 2], f[C + 3] = v < S ?
|
|
1780
|
+
f[C] = R[O], f[C + 1] = R[O + 1], f[C + 2] = R[O + 2], f[C + 3] = v < S ? L[v] : 255;
|
|
1781
1781
|
}
|
|
1782
1782
|
if (_ == 8) for (var x = 0; x < c; x++) {
|
|
1783
1783
|
var C = x << 2, v = o[x], O = 3 * v;
|
|
1784
|
-
f[C] = R[O], f[C + 1] = R[O + 1], f[C + 2] = R[O + 2], f[C + 3] = v < S ?
|
|
1784
|
+
f[C] = R[O], f[C + 1] = R[O + 1], f[C + 2] = R[O + 2], f[C + 3] = v < S ? L[v] : 255;
|
|
1785
1785
|
}
|
|
1786
1786
|
} else if (p == 4) {
|
|
1787
1787
|
if (_ == 8) for (var x = 0; x < c; x++) {
|
|
@@ -1848,16 +1848,16 @@ function Qs() {
|
|
|
1848
1848
|
for (var m = 0; m < 8; m++) u.tabs[P].push(s.readUint(r, l + m * 4));
|
|
1849
1849
|
} else if (P == "tEXt") {
|
|
1850
1850
|
u.tabs[P] == null && (u.tabs[P] = {});
|
|
1851
|
-
var T = s.nextZero(r, l), R = s.readASCII(r, l, T - l),
|
|
1852
|
-
u.tabs[P][R] =
|
|
1851
|
+
var T = s.nextZero(r, l), R = s.readASCII(r, l, T - l), L = s.readASCII(r, T + 1, l + x - T - 1);
|
|
1852
|
+
u.tabs[P][R] = L;
|
|
1853
1853
|
} else if (P == "iTXt") {
|
|
1854
1854
|
u.tabs[P] == null && (u.tabs[P] = {});
|
|
1855
1855
|
var T = 0, S = l;
|
|
1856
1856
|
T = s.nextZero(r, S);
|
|
1857
1857
|
var R = s.readASCII(r, S, T - S);
|
|
1858
1858
|
S = T + 1, r[S], r[S + 1], S += 2, T = s.nextZero(r, S), s.readASCII(r, S, T - S), S = T + 1, T = s.nextZero(r, S), s.readUTF8(r, S, T - S), S = T + 1;
|
|
1859
|
-
var
|
|
1860
|
-
u.tabs[P][R] =
|
|
1859
|
+
var L = s.readUTF8(r, S, x - (S - l));
|
|
1860
|
+
u.tabs[P][R] = L;
|
|
1861
1861
|
} else if (P == "PLTE")
|
|
1862
1862
|
u.tabs[P] = s.readBytes(r, l, x);
|
|
1863
1863
|
else if (P == "hIST") {
|
|
@@ -1893,8 +1893,8 @@ function Qs() {
|
|
|
1893
1893
|
T += b, A++;
|
|
1894
1894
|
var R = Math.ceil(A * c / 8);
|
|
1895
1895
|
a.decode._filterZero(o, r, g, A, I);
|
|
1896
|
-
for (var
|
|
1897
|
-
for (var B = _[x], k = g +
|
|
1896
|
+
for (var L = 0, S = p[x]; S < s; ) {
|
|
1897
|
+
for (var B = _[x], k = g + L * R << 3; B < l; ) {
|
|
1898
1898
|
if (c == 1) {
|
|
1899
1899
|
var E = o[k >> 3];
|
|
1900
1900
|
E = E >> 7 - (k & 7) & 1, f[S * u + (B >> 3)] |= E << 7 - ((B & 3) << 0);
|
|
@@ -1911,7 +1911,7 @@ function Qs() {
|
|
|
1911
1911
|
for (var v = S * u + B * d, O = 0; O < d; O++) f[v + O] = o[(k >> 3) + O];
|
|
1912
1912
|
k += c, B += b;
|
|
1913
1913
|
}
|
|
1914
|
-
|
|
1914
|
+
L++, S += P;
|
|
1915
1915
|
}
|
|
1916
1916
|
A * I != 0 && (g += I * (1 + R)), x = x + 1;
|
|
1917
1917
|
}
|
|
@@ -1999,14 +1999,14 @@ function Qs() {
|
|
|
1999
1999
|
if (u >= 0 && f >= 0 ? (y = x * r + P << 2, m = (f + x) * c + u + P << 2) : (y = (-f + x) * r - u + P << 2, m = x * c + P << 2), g == 0)
|
|
2000
2000
|
s[m] = o[y], s[m + 1] = o[y + 1], s[m + 2] = o[y + 2], s[m + 3] = o[y + 3];
|
|
2001
2001
|
else if (g == 1) {
|
|
2002
|
-
var b = o[y + 3] * 0.00392156862745098, A = o[y] * b, I = o[y + 1] * b, C = o[y + 2] * b, T = s[m + 3] * (1 / 255), R = s[m] * T,
|
|
2003
|
-
s[m + 3] = 255 * k, s[m + 0] = (A + R * B) * E, s[m + 1] = (I +
|
|
2002
|
+
var b = o[y + 3] * 0.00392156862745098, A = o[y] * b, I = o[y + 1] * b, C = o[y + 2] * b, T = s[m + 3] * (1 / 255), R = s[m] * T, L = s[m + 1] * T, S = s[m + 2] * T, B = 1 - b, k = b + T * B, E = k == 0 ? 0 : 1 / k;
|
|
2003
|
+
s[m + 3] = 255 * k, s[m + 0] = (A + R * B) * E, s[m + 1] = (I + L * B) * E, s[m + 2] = (C + S * B) * E;
|
|
2004
2004
|
} else if (g == 2) {
|
|
2005
|
-
var b = o[y + 3], A = o[y], I = o[y + 1], C = o[y + 2], T = s[m + 3], R = s[m],
|
|
2006
|
-
b == T && A == R && I ==
|
|
2005
|
+
var b = o[y + 3], A = o[y], I = o[y + 1], C = o[y + 2], T = s[m + 3], R = s[m], L = s[m + 1], S = s[m + 2];
|
|
2006
|
+
b == T && A == R && I == L && C == S ? (s[m] = 0, s[m + 1] = 0, s[m + 2] = 0, s[m + 3] = 0) : (s[m] = A, s[m + 1] = I, s[m + 2] = C, s[m + 3] = b);
|
|
2007
2007
|
} else if (g == 3) {
|
|
2008
|
-
var b = o[y + 3], A = o[y], I = o[y + 1], C = o[y + 2], T = s[m + 3], R = s[m],
|
|
2009
|
-
if (b == T && A == R && I ==
|
|
2008
|
+
var b = o[y + 3], A = o[y], I = o[y + 1], C = o[y + 2], T = s[m + 3], R = s[m], L = s[m + 1], S = s[m + 2];
|
|
2009
|
+
if (b == T && A == R && I == L && C == S) continue;
|
|
2010
2010
|
if (b < 220 && T > 20) return !1;
|
|
2011
2011
|
}
|
|
2012
2012
|
return !0;
|
|
@@ -2020,8 +2020,8 @@ function Qs() {
|
|
|
2020
2020
|
var I = b.plte.length;
|
|
2021
2021
|
m(u, p, I * 3), p += 4, P(u, p, "PLTE"), p += 4;
|
|
2022
2022
|
for (var g = 0; g < I; g++) {
|
|
2023
|
-
var C = g * 3, T = b.plte[g], R = T & 255,
|
|
2024
|
-
u[p + C + 0] = R, u[p + C + 1] =
|
|
2023
|
+
var C = g * 3, T = b.plte[g], R = T & 255, L = T >> 8 & 255, S = T >> 16 & 255;
|
|
2024
|
+
u[p + C + 0] = R, u[p + C + 1] = L, u[p + C + 2] = S;
|
|
2025
2025
|
}
|
|
2026
2026
|
if (p += I * 3, m(u, p, y(u, p - I * 3 - 4, I * 3 + 4)), p += 4, b.gotAlpha) {
|
|
2027
2027
|
m(u, p, I), p += 4, P(u, p, "tRNS"), p += 4;
|
|
@@ -2067,8 +2067,8 @@ function Qs() {
|
|
|
2067
2067
|
if ((x < r || C != T[x - 1] && C != T[x - r]) && b[C] == null && (b[C] = A.length, A.push(C), A.length >= 300))
|
|
2068
2068
|
break;
|
|
2069
2069
|
}
|
|
2070
|
-
var R = P ? c : !1,
|
|
2071
|
-
|
|
2070
|
+
var R = P ? c : !1, L = A.length;
|
|
2071
|
+
L <= 256 && d == !1 && (L <= 2 ? f = 1 : L <= 4 ? f = 2 : L <= 16 ? f = 4 : f = 8, c && (f = 8), P = !0);
|
|
2072
2072
|
for (var S = [], _ = 0; _ < o.length; _++) {
|
|
2073
2073
|
var B = new Uint8Array(o[_]), k = new Uint32Array(B.buffer), E = 0, v = 0, O = r, z = l, W = 0;
|
|
2074
2074
|
if (_ != 0 && !R) {
|
|
@@ -2086,7 +2086,7 @@ function Qs() {
|
|
|
2086
2086
|
new Uint32Array(V.buffer), a._copyTile(Ce, r, l, V, O, z, -E, -v, 0), a._copyTile(B, r, l, V, O, z, -E, -v, 3) ? (a._copyTile(B, r, l, V, O, z, -E, -v, 2), W = 1) : (a._copyTile(B, r, l, V, O, z, -E, -v, 0), W = 0), B = V, k = new Uint32Array(B.buffer);
|
|
2087
2087
|
}
|
|
2088
2088
|
var Q = 4 * O;
|
|
2089
|
-
if (
|
|
2089
|
+
if (L <= 256 && d == !1) {
|
|
2090
2090
|
Q = Math.ceil(f * O / 8);
|
|
2091
2091
|
for (var V = new Uint8Array(Q * z), ae = 0; ae < z; ae++) {
|
|
2092
2092
|
var x = ae * Q, Me = ae * O;
|
|
@@ -2177,8 +2177,8 @@ function Qs() {
|
|
|
2177
2177
|
return ne.bst.N - U.bst.N;
|
|
2178
2178
|
});
|
|
2179
2179
|
for (var R = 0; R < s.length; R++) {
|
|
2180
|
-
for (var
|
|
2181
|
-
for (var E = S[d] * 0.00392156862745098, v = S[d + 1] * (1 / 255), O = S[d + 2] * (1 / 255), z = S[d + 3] * (1 / 255), W = m; W.left; ) W =
|
|
2180
|
+
for (var L = a.quantize.planeDst, S = new Uint8Array(s[R].buffer), B = new Uint32Array(s[R].buffer), k = S.length, d = 0; d < k; d += 4) {
|
|
2181
|
+
for (var E = S[d] * 0.00392156862745098, v = S[d + 1] * (1 / 255), O = S[d + 2] * (1 / 255), z = S[d + 3] * (1 / 255), W = m; W.left; ) W = L(W.est, E, v, O, z) <= 0 ? W.left : W.right;
|
|
2182
2182
|
B[d >> 2] = W.est.rgba;
|
|
2183
2183
|
}
|
|
2184
2184
|
s[R] = B.buffer;
|
|
@@ -2278,7 +2278,7 @@ function Qs() {
|
|
|
2278
2278
|
})();
|
|
2279
2279
|
})(da);
|
|
2280
2280
|
var js = da.exports;
|
|
2281
|
-
const el = /* @__PURE__ */ fa(js), tl = Hs,
|
|
2281
|
+
const el = /* @__PURE__ */ fa(js), tl = Hs, Vp = { batchUpdate: tl }, It = (e) => new F(
|
|
2282
2282
|
1 / (e && e.scalePlane ? e.scalePlane : 1) * Math.min(
|
|
2283
2283
|
e && e.scalePlane ? e.scalePlane : 1,
|
|
2284
2284
|
e && e.scaleDepth ? e.scaleDepth : 1
|
|
@@ -2295,7 +2295,7 @@ const el = /* @__PURE__ */ fa(js), tl = Hs, Hp = { batchUpdate: tl }, It = (e) =
|
|
|
2295
2295
|
1 / (e.scalePlane ? e.scalePlane : 1),
|
|
2296
2296
|
1 / (e.scaleDepth ? e.scaleDepth : 1),
|
|
2297
2297
|
1 / (e.scalePlane ? e.scalePlane : 1)
|
|
2298
|
-
) : F.One(),
|
|
2298
|
+
) : F.One(), Zp = (e) => {
|
|
2299
2299
|
if (e instanceof er) {
|
|
2300
2300
|
const t = e.alpha;
|
|
2301
2301
|
return (t > 0 ? t : Math.PI - t) / Math.PI * 180 % 360;
|
|
@@ -2356,7 +2356,7 @@ const ir = un({
|
|
|
2356
2356
|
} = e, r = Ee(), l = Os(), [s, c] = $.useState(void 0), d = $.useRef({}), [u, f] = $.useState({}), g = $.useRef(0), p = $.useRef(0), _ = $.useRef(/* @__PURE__ */ new Set()), y = $.useRef(/* @__PURE__ */ new Map()), m = $.useRef({
|
|
2357
2357
|
lastReportedLoaded: -1,
|
|
2358
2358
|
lastReportedTotal: -1
|
|
2359
|
-
}), [, x] = $.useState(0), P = $.useRef(null), b = $.useRef(null), A = $.useRef(!1), I = $.useRef(null), C = $.useRef([]), T = $.useRef(null), R = $.useRef(0),
|
|
2359
|
+
}), [, x] = $.useState(0), P = $.useRef(null), b = $.useRef(null), A = $.useRef(!1), I = $.useRef(null), C = $.useRef([]), T = $.useRef(null), R = $.useRef(0), L = $.useRef(/* @__PURE__ */ new WeakMap()), S = $.useRef(1), B = $.useRef(
|
|
2360
2360
|
/* @__PURE__ */ new Map()
|
|
2361
2361
|
), k = $.useRef(0), E = $.useRef({
|
|
2362
2362
|
isDown: !1,
|
|
@@ -2425,11 +2425,11 @@ const ir = un({
|
|
|
2425
2425
|
const te = (xe = b.current) == null ? void 0 : xe._pickingTexture;
|
|
2426
2426
|
P.current !== (te != null ? te : null) && (P.current = te != null ? te : null, x((fe) => fe + 1));
|
|
2427
2427
|
}, []), U = $.useCallback((te) => {
|
|
2428
|
-
const xe =
|
|
2428
|
+
const xe = L.current.get(te);
|
|
2429
2429
|
if (xe)
|
|
2430
2430
|
return xe;
|
|
2431
2431
|
const fe = S.current++;
|
|
2432
|
-
return
|
|
2432
|
+
return L.current.set(te, fe), fe;
|
|
2433
2433
|
}, []), ne = $.useCallback(() => {
|
|
2434
2434
|
const te = [], xe = /* @__PURE__ */ new Set();
|
|
2435
2435
|
if (!r)
|
|
@@ -2720,9 +2720,9 @@ const vo = ({
|
|
|
2720
2720
|
assetType: n = 0
|
|
2721
2721
|
/* BINARY */
|
|
2722
2722
|
}) => {
|
|
2723
|
-
var A, I, C, T, R,
|
|
2723
|
+
var A, I, C, T, R, L;
|
|
2724
2724
|
const a = Ee(), { onPreFetch: i } = Qe(ir), o = Qe(ar), r = Pe(0), l = Pe(0), s = Pe(/* @__PURE__ */ new Set()), c = Pe(/* @__PURE__ */ new Map()), [d, u] = ye(void 0), f = (A = o == null ? void 0 : o.cache) != null ? A : {}, g = (I = o == null ? void 0 : o.setCache) != null ? I : () => {
|
|
2725
|
-
}, p = (C = o == null ? void 0 : o.loadedCount) != null ? C : l, _ = (T = o == null ? void 0 : o.totalCount) != null ? T : r, y = (R = o == null ? void 0 : o.pending) != null ? R : s, m = (
|
|
2725
|
+
}, p = (C = o == null ? void 0 : o.loadedCount) != null ? C : l, _ = (T = o == null ? void 0 : o.totalCount) != null ? T : r, y = (R = o == null ? void 0 : o.pending) != null ? R : s, m = (L = o == null ? void 0 : o.inflight) != null ? L : c, x = et(async (S) => {
|
|
2726
2726
|
let B = 1, k;
|
|
2727
2727
|
for (; B >= 0; )
|
|
2728
2728
|
try {
|
|
@@ -2929,7 +2929,7 @@ const vo = ({
|
|
|
2929
2929
|
}, 1e3);
|
|
2930
2930
|
return () => clearInterval(C);
|
|
2931
2931
|
}, [x]), /* @__PURE__ */ N(ge, {});
|
|
2932
|
-
},
|
|
2932
|
+
}, Gp = ({ url: e, cacheType: t, assetType: n = Pa.BINARY }) => (vo({ url: e, cacheType: t, assetType: n }), /* @__PURE__ */ N(ge, {}));
|
|
2933
2933
|
class cl {
|
|
2934
2934
|
constructor(t) {
|
|
2935
2935
|
// 数据帧
|
|
@@ -3762,7 +3762,7 @@ function yl() {
|
|
|
3762
3762
|
if (E >= x) return S;
|
|
3763
3763
|
} else {
|
|
3764
3764
|
if (E <= -P) return B;
|
|
3765
|
-
if (E + 1 >= P) return
|
|
3765
|
+
if (E + 1 >= P) return L;
|
|
3766
3766
|
}
|
|
3767
3767
|
return E < 0 ? d(-E, v).neg() : u(
|
|
3768
3768
|
E % m | 0,
|
|
@@ -3814,8 +3814,8 @@ function yl() {
|
|
|
3814
3814
|
i.UONE = T;
|
|
3815
3815
|
var R = c(-1);
|
|
3816
3816
|
i.NEG_ONE = R;
|
|
3817
|
-
var
|
|
3818
|
-
i.MAX_VALUE =
|
|
3817
|
+
var L = u(-1, 2147483647, !1);
|
|
3818
|
+
i.MAX_VALUE = L;
|
|
3819
3819
|
var S = u(-1, -1, !0);
|
|
3820
3820
|
i.MAX_UNSIGNED_VALUE = S;
|
|
3821
3821
|
var B = u(0, -2147483648, !1);
|
|
@@ -6322,12 +6322,12 @@ function Hl(e) {
|
|
|
6322
6322
|
return zo = i, $o = i * (t - 1) * n, Wo = i * (t + 1) * n, Uo = -i * a, io = 2 * n, ao = -a, _i = (zo + $o) / (1 - io - ao), Pi = (Wo + Uo) / (1 - io - ao), new Float32Array([zo, $o, Wo, Uo, io, ao, _i, Pi]);
|
|
6323
6323
|
}
|
|
6324
6324
|
function bi(e, t, n, a, i, o) {
|
|
6325
|
-
var r, l, s, c, d, u, f, g, p, _, y, m, x, P, b, A, I, C, T, R,
|
|
6325
|
+
var r, l, s, c, d, u, f, g, p, _, y, m, x, P, b, A, I, C, T, R, L, S, B, k, E, v, O, z, W, U;
|
|
6326
6326
|
for (E = 0; E < o; E++) {
|
|
6327
|
-
for (S = E * i, B = E, k = 0, r = e[S], l = r & 255, s = r >> 8 & 255, c = r >> 16 & 255, d = r >> 24 & 255, C = l * a[6], T = s * a[6], R = c * a[6],
|
|
6328
|
-
r = e[S], u = r & 255, f = r >> 8 & 255, g = r >> 16 & 255, p = r >> 24 & 255, _ = u * O + l * z + P * W + C * U, y = f * O + s * z + b * W + T * U, m = g * O + c * z + A * W + R * U, x = p * O + d * z + I * W +
|
|
6329
|
-
for (S--, k -= 4, B += o * (i - 1), r = e[S], l = r & 255, s = r >> 8 & 255, c = r >> 16 & 255, d = r >> 24 & 255, C = l * a[7], T = s * a[7], R = c * a[7],
|
|
6330
|
-
_ = u * O + l * z + P * W + C * U, y = f * O + s * z + b * W + T * U, m = g * O + c * z + A * W + R * U, x = p * O + d * z + I * W +
|
|
6327
|
+
for (S = E * i, B = E, k = 0, r = e[S], l = r & 255, s = r >> 8 & 255, c = r >> 16 & 255, d = r >> 24 & 255, C = l * a[6], T = s * a[6], R = c * a[6], L = d * a[6], P = C, b = T, A = R, I = L, O = a[0], z = a[1], W = a[4], U = a[5], v = 0; v < i; v++)
|
|
6328
|
+
r = e[S], u = r & 255, f = r >> 8 & 255, g = r >> 16 & 255, p = r >> 24 & 255, _ = u * O + l * z + P * W + C * U, y = f * O + s * z + b * W + T * U, m = g * O + c * z + A * W + R * U, x = p * O + d * z + I * W + L * U, C = P, T = b, R = A, L = I, P = _, b = y, A = m, I = x, l = u, s = f, c = g, d = p, n[k] = P, n[k + 1] = b, n[k + 2] = A, n[k + 3] = I, k += 4, S++;
|
|
6329
|
+
for (S--, k -= 4, B += o * (i - 1), r = e[S], l = r & 255, s = r >> 8 & 255, c = r >> 16 & 255, d = r >> 24 & 255, C = l * a[7], T = s * a[7], R = c * a[7], L = d * a[7], P = C, b = T, A = R, I = L, u = l, f = s, g = c, p = d, O = a[2], z = a[3], v = i - 1; v >= 0; v--)
|
|
6330
|
+
_ = u * O + l * z + P * W + C * U, y = f * O + s * z + b * W + T * U, m = g * O + c * z + A * W + R * U, x = p * O + d * z + I * W + L * U, C = P, T = b, R = A, L = I, P = _, b = y, A = m, I = x, l = u, s = f, c = g, d = p, r = e[S], u = r & 255, f = r >> 8 & 255, g = r >> 16 & 255, p = r >> 24 & 255, r = (n[k] + P << 0) + (n[k + 1] + b << 8) + (n[k + 2] + A << 16) + (n[k + 3] + I << 24), t[B] = r, S--, k -= 4, B -= o;
|
|
6331
6331
|
}
|
|
6332
6332
|
}
|
|
6333
6333
|
function Vl(e, t, n, a) {
|
|
@@ -7141,20 +7141,20 @@ void main(void) {
|
|
|
7141
7141
|
}, [o, r, l, s]), ue(() => {
|
|
7142
7142
|
const C = i.current;
|
|
7143
7143
|
t && o && C && a((T) => {
|
|
7144
|
-
let R = (o.maximum.x - o.minimum.x) / s,
|
|
7145
|
-
if (R <
|
|
7144
|
+
let R = (o.maximum.x - o.minimum.x) / s, L = (o.maximum.z - o.minimum.z) / s, S = 0;
|
|
7145
|
+
if (R < L) {
|
|
7146
7146
|
const E = R;
|
|
7147
|
-
R =
|
|
7147
|
+
R = L, L = E, S = 1;
|
|
7148
7148
|
}
|
|
7149
|
-
const B = R /
|
|
7150
|
-
R *
|
|
7149
|
+
const B = R / L;
|
|
7150
|
+
R * L > 2048 * 2048 && (R = 2048, L = 2048 / B);
|
|
7151
7151
|
let k;
|
|
7152
|
-
return T ? (T.scaleTo(R,
|
|
7152
|
+
return T ? (T.scaleTo(R, L), T.update(), k = T) : k = new Cn(
|
|
7153
7153
|
"dynamic-texture",
|
|
7154
|
-
{ width: R, height:
|
|
7154
|
+
{ width: R, height: L },
|
|
7155
7155
|
t,
|
|
7156
7156
|
!1
|
|
7157
|
-
), k.clear(), k.update(), console.log("[Geo3DViewer] 设置动态划线 ", o, R,
|
|
7157
|
+
), k.clear(), k.update(), console.log("[Geo3DViewer] 设置动态划线 ", o, R, L, s), C.setVector3("oMin", o.minimum), C.setVector3("oMax", o.maximum), C.setFloat("textureOverlayRotate", S), C.setTexture("textureOverlaySampler", k), k;
|
|
7158
7158
|
});
|
|
7159
7159
|
}, [o, s, t]), ue(() => {
|
|
7160
7160
|
if (n && o && (u.length > 0 || f.length > 0)) {
|
|
@@ -7166,24 +7166,24 @@ void main(void) {
|
|
|
7166
7166
|
}
|
|
7167
7167
|
const R = C / T;
|
|
7168
7168
|
C * T > 2048 * 2048 && (C = 2048, T = 2048 / R);
|
|
7169
|
-
const
|
|
7169
|
+
const L = n.getContext();
|
|
7170
7170
|
u.forEach((S) => {
|
|
7171
7171
|
if (S.points.length < 2) return;
|
|
7172
|
-
|
|
7172
|
+
L.beginPath();
|
|
7173
7173
|
const B = S.offset ? S.offset : new tt(0, 0), k = 1 - S.points[0].x + B.x, E = 1 - S.points[0].y + B.y;
|
|
7174
|
-
|
|
7174
|
+
L.moveTo(k * C, E * T);
|
|
7175
7175
|
for (let v = 1; v < S.points.length; v++) {
|
|
7176
7176
|
const O = S.offset ? S.offset : new tt(0, 0), z = 1 - S.points[v].x + O.x, W = 1 - S.points[v].y + O.y;
|
|
7177
|
-
|
|
7177
|
+
L.lineTo(z * C, W * T);
|
|
7178
7178
|
}
|
|
7179
|
-
|
|
7179
|
+
L.strokeStyle = `rgb(${S.color.r * 255}, ${S.color.g * 255}, ${S.color.b * 255})`, C * T > 2048 * 2048 ? L.lineWidth = S.width / R : L.lineWidth = S.width, L.stroke();
|
|
7180
7180
|
}), f.forEach((S) => {
|
|
7181
7181
|
var v, O;
|
|
7182
|
-
|
|
7182
|
+
L.font = `${S.fontSize}px Arial`;
|
|
7183
7183
|
const B = (v = S.color) != null ? v : he.White(), k = S.offset ? S.offset : new tt(0, 0), E = (O = S.rotation) != null ? O : 0;
|
|
7184
|
-
if (
|
|
7185
|
-
const z =
|
|
7186
|
-
|
|
7184
|
+
if (L.save(), L.translate((1 - S.position.x + k.x) * C, (1 - S.position.y + k.y) * T), L.rotate(E), S.clearArea) {
|
|
7185
|
+
const z = L.measureText(S.text);
|
|
7186
|
+
L.clearRect(
|
|
7187
7187
|
-z.width * 0.15,
|
|
7188
7188
|
0.5 * S.fontSize * (1 - 0.3),
|
|
7189
7189
|
z.width * 1.3,
|
|
@@ -7191,16 +7191,16 @@ void main(void) {
|
|
|
7191
7191
|
);
|
|
7192
7192
|
}
|
|
7193
7193
|
if (S.background) {
|
|
7194
|
-
|
|
7195
|
-
const z =
|
|
7196
|
-
|
|
7194
|
+
L.fillStyle = `rgba(${S.background.r * 255}, ${S.background.g * 255}, ${S.background.b * 255})`;
|
|
7195
|
+
const z = L.measureText(S.text);
|
|
7196
|
+
L.fillRect(
|
|
7197
7197
|
-z.width * 0.05,
|
|
7198
7198
|
0.5 * (S.fontSize * (0.5 - 0.1)),
|
|
7199
7199
|
z.width * 1.1,
|
|
7200
7200
|
-S.fontSize * 1.1
|
|
7201
7201
|
);
|
|
7202
7202
|
}
|
|
7203
|
-
|
|
7203
|
+
L.fillStyle = `rgb(${B.r * 255}, ${B.g * 255}, ${B.b * 255})`, L.fillText(S.text, 0, 0), L.restore();
|
|
7204
7204
|
}), n.update();
|
|
7205
7205
|
}
|
|
7206
7206
|
}, [u, n, o, s, f]), /* @__PURE__ */ N(
|
|
@@ -13433,49 +13433,49 @@ const Hn = (e) => {
|
|
|
13433
13433
|
}, [_, m, y, x, n]), $.useEffect(() => {
|
|
13434
13434
|
t && n && x && o((T) => {
|
|
13435
13435
|
T && T.dispose();
|
|
13436
|
-
let R = (x.maximum.x - x.minimum.x) / y,
|
|
13437
|
-
if (R <
|
|
13436
|
+
let R = (x.maximum.x - x.minimum.x) / y, L = (x.maximum.z - x.minimum.z) / y, S = 0;
|
|
13437
|
+
if (R < L) {
|
|
13438
13438
|
const E = R;
|
|
13439
|
-
R =
|
|
13439
|
+
R = L, L = E, S = 1;
|
|
13440
13440
|
}
|
|
13441
|
-
const B = R /
|
|
13442
|
-
R *
|
|
13441
|
+
const B = R / L;
|
|
13442
|
+
R * L > 2048 * 2048 && (R = 2048, L = 2048 / B);
|
|
13443
13443
|
const k = new Cn(
|
|
13444
13444
|
"dynamic-texture",
|
|
13445
|
-
{ width: R, height:
|
|
13445
|
+
{ width: R, height: L },
|
|
13446
13446
|
t,
|
|
13447
13447
|
!1
|
|
13448
13448
|
);
|
|
13449
|
-
return k.clear(), console.log("[Geo3DViewer] 设置动态划线 ", x, R,
|
|
13449
|
+
return k.clear(), console.log("[Geo3DViewer] 设置动态划线 ", x, R, L, y), n.setVector3("oMin", x.minimum), n.setVector3("oMax", x.maximum), n.setFloat("textureOverlayRotate", S), n.setTexture("textureOverlaySampler", k), k;
|
|
13450
13450
|
});
|
|
13451
13451
|
}, [x, n, y, t]), $.useEffect(() => {
|
|
13452
13452
|
var T;
|
|
13453
13453
|
if (i && x)
|
|
13454
13454
|
if ((T = i.getScene()) != null && T.getEngine()) {
|
|
13455
13455
|
i.clear();
|
|
13456
|
-
let R = (x.maximum.x - x.minimum.x) / y,
|
|
13457
|
-
if (R <
|
|
13456
|
+
let R = (x.maximum.x - x.minimum.x) / y, L = (x.maximum.z - x.minimum.z) / y;
|
|
13457
|
+
if (R < L) {
|
|
13458
13458
|
const k = R;
|
|
13459
|
-
R =
|
|
13459
|
+
R = L, L = k;
|
|
13460
13460
|
}
|
|
13461
|
-
const S = R /
|
|
13462
|
-
R *
|
|
13461
|
+
const S = R / L;
|
|
13462
|
+
R * L > 2048 * 2048 && (R = 2048, L = 2048 / S);
|
|
13463
13463
|
const B = i.getContext();
|
|
13464
13464
|
P.forEach((k) => {
|
|
13465
13465
|
if (k.points.length < 2) return;
|
|
13466
13466
|
B.beginPath();
|
|
13467
13467
|
const E = k.offset ? k.offset : new tt(0, 0), v = 1 - k.points[0].x + E.x, O = 1 - k.points[0].y + E.y;
|
|
13468
|
-
B.moveTo(v * R, O *
|
|
13468
|
+
B.moveTo(v * R, O * L);
|
|
13469
13469
|
for (let z = 1; z < k.points.length; z++) {
|
|
13470
13470
|
const W = k.offset ? k.offset : new tt(0, 0), U = 1 - k.points[z].x + W.x, ne = 1 - k.points[z].y + W.y;
|
|
13471
|
-
B.lineTo(U * R, ne *
|
|
13471
|
+
B.lineTo(U * R, ne * L);
|
|
13472
13472
|
}
|
|
13473
|
-
B.strokeStyle = `rgb(${k.color.r * 255}, ${k.color.g * 255}, ${k.color.b * 255})`, R *
|
|
13473
|
+
B.strokeStyle = `rgb(${k.color.r * 255}, ${k.color.g * 255}, ${k.color.b * 255})`, R * L > 2048 * 2048 ? B.lineWidth = k.width / S : B.lineWidth = k.width, B.stroke();
|
|
13474
13474
|
}), b.forEach((k) => {
|
|
13475
13475
|
var z, W;
|
|
13476
13476
|
B.font = `${k.fontSize}px Arial`;
|
|
13477
13477
|
const E = (z = k.color) != null ? z : he.White(), v = k.offset ? k.offset : new tt(0, 0), O = (W = k.rotation) != null ? W : 0;
|
|
13478
|
-
if (B.save(), B.translate((1 - k.position.x + v.x) * R, (1 - k.position.y + v.y) *
|
|
13478
|
+
if (B.save(), B.translate((1 - k.position.x + v.x) * R, (1 - k.position.y + v.y) * L), B.rotate(O), k.clearArea) {
|
|
13479
13479
|
const U = B.measureText(k.text);
|
|
13480
13480
|
B.clearRect(
|
|
13481
13481
|
-U.width * 0.15,
|
|
@@ -13588,10 +13588,10 @@ const Hn = (e) => {
|
|
|
13588
13588
|
if (C) {
|
|
13589
13589
|
const R = C.getBlockByName(
|
|
13590
13590
|
"contourLineStartHeight"
|
|
13591
|
-
),
|
|
13591
|
+
), L = C.getBlockByName("contourLineColor"), S = C.getBlockByName("contourLineWidth"), B = C.getBlockByName("contourLineStep");
|
|
13592
13592
|
if (y && P) {
|
|
13593
13593
|
const k = (T = y.startHeight) != null ? T : P.centerWorld.y / x;
|
|
13594
|
-
return R && (R.value = k * x),
|
|
13594
|
+
return R && (R.value = k * x), L && (L.value = y.color), S && (S.value = y.width), B && (B.value = y.stepHeight * x), console.log(
|
|
13595
13595
|
"[Geo3DViewer] 等高线设置 ",
|
|
13596
13596
|
y,
|
|
13597
13597
|
P.centerWorld,
|
|
@@ -13599,20 +13599,20 @@ const Hn = (e) => {
|
|
|
13599
13599
|
k * x,
|
|
13600
13600
|
k * x + 16 * y.stepHeight * x
|
|
13601
13601
|
), () => {
|
|
13602
|
-
C && (R && (R.value = 0),
|
|
13602
|
+
C && (R && (R.value = 0), L && (L.value = new he(0, 0, 0)), S && (S.value = 0), B && (B.value = 0));
|
|
13603
13603
|
};
|
|
13604
13604
|
} else
|
|
13605
|
-
R && (R.value = 0),
|
|
13605
|
+
R && (R.value = 0), L && (L.value = new he(0, 0, 0)), S && (S.value = 0), B && (B.value = 0), console.log("[Geo3DViewer] 等高线设置 关闭");
|
|
13606
13606
|
C.markAsDirty(Xn.MiscDirtyFlag);
|
|
13607
13607
|
}
|
|
13608
13608
|
}, [y, x, m, P]), $.useEffect(() => {
|
|
13609
13609
|
t && P && o((C) => {
|
|
13610
13610
|
var v, O;
|
|
13611
13611
|
C && C.dispose();
|
|
13612
|
-
let T = (P.maximum.x - P.minimum.x) / m, R = (P.maximum.z - P.minimum.z) / m,
|
|
13612
|
+
let T = (P.maximum.x - P.minimum.x) / m, R = (P.maximum.z - P.minimum.z) / m, L = 0;
|
|
13613
13613
|
if (T < R) {
|
|
13614
13614
|
const z = T;
|
|
13615
|
-
T = R, R = z,
|
|
13615
|
+
T = R, R = z, L = 1;
|
|
13616
13616
|
}
|
|
13617
13617
|
const S = T / R;
|
|
13618
13618
|
T * R > 2048 * 2048 && (T = 2048, R = 2048 / S);
|
|
@@ -13626,7 +13626,7 @@ const Hn = (e) => {
|
|
|
13626
13626
|
const k = (v = n.current) == null ? void 0 : v.getBlockByName("angle"), E = (O = n.current) == null ? void 0 : O.getBlockByName(
|
|
13627
13627
|
"OverlayTexture"
|
|
13628
13628
|
);
|
|
13629
|
-
return k && (k.value =
|
|
13629
|
+
return k && (k.value = L * (Math.PI / 2)), E && (E.texture = B), B;
|
|
13630
13630
|
});
|
|
13631
13631
|
}, [P, m, t]), $.useEffect(() => {
|
|
13632
13632
|
var C;
|
|
@@ -13638,8 +13638,8 @@ const Hn = (e) => {
|
|
|
13638
13638
|
const B = T;
|
|
13639
13639
|
T = R, R = B;
|
|
13640
13640
|
}
|
|
13641
|
-
const
|
|
13642
|
-
T * R > 2048 * 2048 && (T = 2048, R = 2048 /
|
|
13641
|
+
const L = T / R;
|
|
13642
|
+
T * R > 2048 * 2048 && (T = 2048, R = 2048 / L);
|
|
13643
13643
|
const S = i.getContext();
|
|
13644
13644
|
b.forEach((B) => {
|
|
13645
13645
|
if (B.points.length < 2) return;
|
|
@@ -13650,7 +13650,7 @@ const Hn = (e) => {
|
|
|
13650
13650
|
const z = B.offset ? B.offset : new tt(0, 0), W = 1 - B.points[O].x + z.x, U = 1 - B.points[O].y + z.y;
|
|
13651
13651
|
S.lineTo(W * T, U * R);
|
|
13652
13652
|
}
|
|
13653
|
-
S.strokeStyle = `rgb(${B.color.r * 255}, ${B.color.g * 255}, ${B.color.b * 255})`, T * R > 2048 * 2048 ? S.lineWidth = B.width /
|
|
13653
|
+
S.strokeStyle = `rgb(${B.color.r * 255}, ${B.color.g * 255}, ${B.color.b * 255})`, T * R > 2048 * 2048 ? S.lineWidth = B.width / L : S.lineWidth = B.width, S.stroke();
|
|
13654
13654
|
}), A.forEach((B) => {
|
|
13655
13655
|
var O, z;
|
|
13656
13656
|
S.font = `${B.fontSize}px Arial`;
|
|
@@ -13702,7 +13702,7 @@ const Hn = (e) => {
|
|
|
13702
13702
|
cutNormal: C,
|
|
13703
13703
|
value: T,
|
|
13704
13704
|
zOffset: R,
|
|
13705
|
-
zOffsetUnits:
|
|
13705
|
+
zOffsetUnits: L,
|
|
13706
13706
|
counterLine: S = void 0,
|
|
13707
13707
|
scaleDepth: B = 1,
|
|
13708
13708
|
scalePlane: k = 1,
|
|
@@ -13872,7 +13872,7 @@ const Hn = (e) => {
|
|
|
13872
13872
|
},
|
|
13873
13873
|
disableDepthWrite: O,
|
|
13874
13874
|
zOffset: R,
|
|
13875
|
-
zOffsetUnits:
|
|
13875
|
+
zOffsetUnits: L
|
|
13876
13876
|
}
|
|
13877
13877
|
);
|
|
13878
13878
|
}, nf = (e) => {
|
|
@@ -13883,7 +13883,7 @@ const Hn = (e) => {
|
|
|
13883
13883
|
alphaStage: C,
|
|
13884
13884
|
cutNormal: T,
|
|
13885
13885
|
value: R,
|
|
13886
|
-
tilingFactor:
|
|
13886
|
+
tilingFactor: L = 0.1,
|
|
13887
13887
|
sideTilingFactor: S = 0.1,
|
|
13888
13888
|
mode: B = 0,
|
|
13889
13889
|
zOffset: k,
|
|
@@ -13933,8 +13933,8 @@ const Hn = (e) => {
|
|
|
13933
13933
|
}, [t, C, n]), $.useEffect(() => {
|
|
13934
13934
|
n && A && n.setTexture("textureSampler", A);
|
|
13935
13935
|
}, [n, A]), $.useEffect(() => {
|
|
13936
|
-
n &&
|
|
13937
|
-
}, [
|
|
13936
|
+
n && L && n.setFloat("tilingFactor", L), n && S && n.setFloat("sideTilingFactor", S);
|
|
13937
|
+
}, [L, S, n]), $.useEffect(() => {
|
|
13938
13938
|
n && B && n.setInt("mode", B);
|
|
13939
13939
|
}, [n, B]), $.useEffect(() => {
|
|
13940
13940
|
n && (I ? n.setTexture("textureSideSampler", I) : n.setTexture("textureSideSampler", A));
|
|
@@ -14086,7 +14086,7 @@ const Hn = (e) => {
|
|
|
14086
14086
|
disableDepthWrite: ee
|
|
14087
14087
|
}
|
|
14088
14088
|
);
|
|
14089
|
-
},
|
|
14089
|
+
}, Yp = (e) => /* @__PURE__ */ N(
|
|
14090
14090
|
kt,
|
|
14091
14091
|
{
|
|
14092
14092
|
...e,
|
|
@@ -14299,15 +14299,15 @@ const Hn = (e) => {
|
|
|
14299
14299
|
A.beginPath();
|
|
14300
14300
|
const C = I.offset ? I.offset : new tt(0, 0), T = 1 - I.points[0].x + C.x, R = 1 - I.points[0].y + C.y;
|
|
14301
14301
|
A.moveTo(T * x, R * P);
|
|
14302
|
-
for (let
|
|
14303
|
-
const S = I.offset ? I.offset : new tt(0, 0), B = 1 - I.points[
|
|
14302
|
+
for (let L = 1; L < I.points.length; L++) {
|
|
14303
|
+
const S = I.offset ? I.offset : new tt(0, 0), B = 1 - I.points[L].x + S.x, k = 1 - I.points[L].y + S.y;
|
|
14304
14304
|
A.lineTo(B * x, k * P);
|
|
14305
14305
|
}
|
|
14306
14306
|
A.strokeStyle = `rgb(${I.color.r * 255}, ${I.color.g * 255}, ${I.color.b * 255})`, x * P > 2048 * 2048 ? A.lineWidth = I.width / b : A.lineWidth = I.width, A.stroke();
|
|
14307
14307
|
}), f.forEach((I) => {
|
|
14308
|
-
var
|
|
14308
|
+
var L, S;
|
|
14309
14309
|
A.font = `${I.fontSize}px Arial`;
|
|
14310
|
-
const C = (
|
|
14310
|
+
const C = (L = I.color) != null ? L : he.White(), T = I.offset ? I.offset : new tt(0, 0), R = (S = I.rotation) != null ? S : 0;
|
|
14311
14311
|
if (A.save(), A.translate((1 - I.position.x + T.x) * x, (1 - I.position.y + T.y) * P), A.rotate(R), I.clearArea) {
|
|
14312
14312
|
const B = A.measureText(I.text);
|
|
14313
14313
|
A.clearRect(
|
|
@@ -14402,8 +14402,8 @@ const Hn = (e) => {
|
|
|
14402
14402
|
const T = s.current;
|
|
14403
14403
|
T && (I.applyToMesh(T), T.getScene().onAfterRenderObservable.addOnce(() => {
|
|
14404
14404
|
if (!T.isDisposed()) {
|
|
14405
|
-
const
|
|
14406
|
-
y(
|
|
14405
|
+
const L = T.getBoundingInfo();
|
|
14406
|
+
y(L.boundingBox);
|
|
14407
14407
|
}
|
|
14408
14408
|
})), He.RemoveTagsFrom(s.current, "loading");
|
|
14409
14409
|
}
|
|
@@ -14866,7 +14866,7 @@ const lt = (e) => {
|
|
|
14866
14866
|
$.useEffect(() => {
|
|
14867
14867
|
console.log("[Geo3DViewer] FormationFace Loading: ", e, t);
|
|
14868
14868
|
}, [e, t]);
|
|
14869
|
-
const [C, T] = $.useState(), [R,
|
|
14869
|
+
const [C, T] = $.useState(), [R, L] = $.useState(F.Zero()), [S, B] = $.useState(void 0);
|
|
14870
14870
|
return $.useEffect(() => {
|
|
14871
14871
|
if (P) {
|
|
14872
14872
|
const v = c.current;
|
|
@@ -14875,7 +14875,7 @@ const lt = (e) => {
|
|
|
14875
14875
|
const U = an.decode(new Uint8Array(P));
|
|
14876
14876
|
{
|
|
14877
14877
|
const { name: G, points: le, indices: re, colorId: oe, value: Y, center: ce } = U;
|
|
14878
|
-
O = le, z = re, W = Y, p(oe), f(G), ce &&
|
|
14878
|
+
O = le, z = re, W = Y, p(oe), f(G), ce && L(new F(ce.x, ce.y, ce.z));
|
|
14879
14879
|
}
|
|
14880
14880
|
const ne = new Je();
|
|
14881
14881
|
ne.positions = O, ne.indices = z, ne.colors = W;
|
|
@@ -15248,7 +15248,7 @@ const lt = (e) => {
|
|
|
15248
15248
|
}), T = ot({
|
|
15249
15249
|
url: l == null ? void 0 : l.sideTexture,
|
|
15250
15250
|
cacheType: $e.URL_PREFIX_MATCH
|
|
15251
|
-
}), [R,
|
|
15251
|
+
}), [R, L] = $.useState(void 0);
|
|
15252
15252
|
return $.useEffect(() => {
|
|
15253
15253
|
console.log("[Geo3DViewer] FormationVolume Loading: ", e);
|
|
15254
15254
|
}, [e]), $.useEffect(() => {
|
|
@@ -15269,14 +15269,14 @@ const lt = (e) => {
|
|
|
15269
15269
|
A(te.boundingBox.center.add(new F(te.boundingBox.extendSize.x, 0, 0))), o || k.getScene().onAfterRenderObservable.addOnce(() => {
|
|
15270
15270
|
if (!k.isDisposed()) {
|
|
15271
15271
|
const fe = k.getBoundingInfo();
|
|
15272
|
-
|
|
15272
|
+
L(fe.boundingBox);
|
|
15273
15273
|
}
|
|
15274
15274
|
});
|
|
15275
15275
|
}
|
|
15276
15276
|
return E && (Se.applyToMesh(E), o && E.getScene().onAfterRenderObservable.addOnce(() => {
|
|
15277
15277
|
if (!E.isDisposed()) {
|
|
15278
15278
|
const xe = E.getBoundingInfo();
|
|
15279
|
-
|
|
15279
|
+
L(xe.boundingBox);
|
|
15280
15280
|
}
|
|
15281
15281
|
})), He.RemoveTagsFrom(k, "loading"), He.RemoveTagsFrom(c, "loading"), () => {
|
|
15282
15282
|
k && new Je().applyToMesh(k), E && new Je().applyToMesh(E);
|
|
@@ -15731,12 +15731,12 @@ const Wa = ({
|
|
|
15731
15731
|
if (P) {
|
|
15732
15732
|
const T = d.current;
|
|
15733
15733
|
He.EnableFor(T), He.AddTagsTo(T, "loading");
|
|
15734
|
-
const R = an.decode(new Uint8Array(P)), { name:
|
|
15734
|
+
const R = an.decode(new Uint8Array(P)), { name: L, points: S, indices: B, value: k, colorId: E, center: v } = R;
|
|
15735
15735
|
v && A(new F(v.x, v.y, v.z));
|
|
15736
15736
|
const O = new Je();
|
|
15737
15737
|
O.positions = S, O.indices = B, O.colors = k;
|
|
15738
15738
|
const z = [];
|
|
15739
|
-
return Je.ComputeNormals(S, B, z), O.normals = z, y(E), f(
|
|
15739
|
+
return Je.ComputeNormals(S, B, z), O.normals = z, y(E), f(L), T && (O.applyToMesh(T), T.getScene().onAfterRenderObservable.addOnce(() => {
|
|
15740
15740
|
if (!T.isDisposed()) {
|
|
15741
15741
|
const U = T.getBoundingInfo();
|
|
15742
15742
|
C(U.boundingBox);
|
|
@@ -15895,7 +15895,7 @@ const Wa = ({
|
|
|
15895
15895
|
visibleEdgeEffect: m = !1
|
|
15896
15896
|
}) => {
|
|
15897
15897
|
var B, k;
|
|
15898
|
-
const [x, P] = $.useState(), b = $.useContext(We), [A, I] = $.useState(!0), [C, T] = $.useState(""), R = pt({ url: e, cacheType: $e.URL_PREFIX_MATCH }), [
|
|
15898
|
+
const [x, P] = $.useState(), b = $.useContext(We), [A, I] = $.useState(!0), [C, T] = $.useState(""), R = pt({ url: e, cacheType: $e.URL_PREFIX_MATCH }), [L, S] = ye([]);
|
|
15899
15899
|
return $.useEffect(() => {
|
|
15900
15900
|
console.log("[Geo3DViewer] ComplexFormationManager Loading: ", e);
|
|
15901
15901
|
}, [e]), $.useEffect(() => {
|
|
@@ -16002,7 +16002,7 @@ const Wa = ({
|
|
|
16002
16002
|
},
|
|
16003
16003
|
`${C}-${E.name}`
|
|
16004
16004
|
)) : null,
|
|
16005
|
-
|
|
16005
|
+
L && p && y && a === 0 && L.map((E, v) => /* @__PURE__ */ N(
|
|
16006
16006
|
vf,
|
|
16007
16007
|
{
|
|
16008
16008
|
visible: m,
|
|
@@ -16056,10 +16056,10 @@ const Wa = ({
|
|
|
16056
16056
|
};
|
|
16057
16057
|
}, [i, r, o, d, e]), $.useEffect(() => {
|
|
16058
16058
|
if (f && f.min && f.max && c) {
|
|
16059
|
-
const I = f.origin || F.Zero(), C = [], T = [], R = [],
|
|
16060
|
-
|
|
16061
|
-
for (let S = 0; S <
|
|
16062
|
-
let B =
|
|
16059
|
+
const I = f.origin || F.Zero(), C = [], T = [], R = [], L = [...o];
|
|
16060
|
+
L.length === 0 && L.push(a);
|
|
16061
|
+
for (let S = 0; S < L.length; S++) {
|
|
16062
|
+
let B = L[S] / 1;
|
|
16063
16063
|
B < 1 && (B = 200);
|
|
16064
16064
|
const k = [];
|
|
16065
16065
|
for (let O = 0; O <= f.max.x - f.min.x; O += B)
|
|
@@ -16149,12 +16149,12 @@ const Wa = ({
|
|
|
16149
16149
|
children: [
|
|
16150
16150
|
g.map((I, C) => I.map((T, R) => {
|
|
16151
16151
|
var S;
|
|
16152
|
-
const
|
|
16152
|
+
const L = T;
|
|
16153
16153
|
return /* @__PURE__ */ N(
|
|
16154
16154
|
"transformNode",
|
|
16155
16155
|
{
|
|
16156
16156
|
name: `axis-x-${C}-${R}`,
|
|
16157
|
-
position:
|
|
16157
|
+
position: L == null ? void 0 : L.position,
|
|
16158
16158
|
setEnabled: C === P,
|
|
16159
16159
|
scaling: new F(
|
|
16160
16160
|
1 / De(f).x,
|
|
@@ -16164,7 +16164,7 @@ const Wa = ({
|
|
|
16164
16164
|
children: /* @__PURE__ */ N(
|
|
16165
16165
|
lt,
|
|
16166
16166
|
{
|
|
16167
|
-
text: `${
|
|
16167
|
+
text: `${L ? L.text : ""}`,
|
|
16168
16168
|
fontSize: (S = r[C]) != null ? S : n,
|
|
16169
16169
|
color: t.toHexString()
|
|
16170
16170
|
}
|
|
@@ -16175,12 +16175,12 @@ const Wa = ({
|
|
|
16175
16175
|
})),
|
|
16176
16176
|
_.map((I, C) => I.map((T, R) => {
|
|
16177
16177
|
var S;
|
|
16178
|
-
const
|
|
16178
|
+
const L = T;
|
|
16179
16179
|
return /* @__PURE__ */ N(
|
|
16180
16180
|
"transformNode",
|
|
16181
16181
|
{
|
|
16182
16182
|
name: `axis-x-${C}-${R}`,
|
|
16183
|
-
position:
|
|
16183
|
+
position: L == null ? void 0 : L.position,
|
|
16184
16184
|
setEnabled: C === P,
|
|
16185
16185
|
scaling: new F(
|
|
16186
16186
|
1 / De(f).x,
|
|
@@ -16190,7 +16190,7 @@ const Wa = ({
|
|
|
16190
16190
|
children: /* @__PURE__ */ N(
|
|
16191
16191
|
lt,
|
|
16192
16192
|
{
|
|
16193
|
-
text: `${
|
|
16193
|
+
text: `${L ? L.text : ""}`,
|
|
16194
16194
|
fontSize: (S = r[C]) != null ? S : n,
|
|
16195
16195
|
color: t.toHexString()
|
|
16196
16196
|
}
|
|
@@ -16201,12 +16201,12 @@ const Wa = ({
|
|
|
16201
16201
|
})),
|
|
16202
16202
|
m.map((I, C) => I.map((T, R) => {
|
|
16203
16203
|
var S;
|
|
16204
|
-
const
|
|
16204
|
+
const L = T;
|
|
16205
16205
|
return /* @__PURE__ */ N(
|
|
16206
16206
|
"transformNode",
|
|
16207
16207
|
{
|
|
16208
16208
|
name: `axis-x-${C}-${R}`,
|
|
16209
|
-
position:
|
|
16209
|
+
position: L == null ? void 0 : L.position,
|
|
16210
16210
|
setEnabled: C === P,
|
|
16211
16211
|
scaling: new F(
|
|
16212
16212
|
1 / De(f).x,
|
|
@@ -16216,7 +16216,7 @@ const Wa = ({
|
|
|
16216
16216
|
children: /* @__PURE__ */ N(
|
|
16217
16217
|
lt,
|
|
16218
16218
|
{
|
|
16219
|
-
text: `${
|
|
16219
|
+
text: `${L ? L.text : ""}`,
|
|
16220
16220
|
fontSize: (S = r[C]) != null ? S : n,
|
|
16221
16221
|
color: t.toHexString()
|
|
16222
16222
|
}
|
|
@@ -17096,7 +17096,7 @@ const If = (e, t) => {
|
|
|
17096
17096
|
edges: C = [],
|
|
17097
17097
|
actions: T,
|
|
17098
17098
|
actionName: R
|
|
17099
|
-
} = e,
|
|
17099
|
+
} = e, L = ot({
|
|
17100
17100
|
url: y == null ? void 0 : y.texture,
|
|
17101
17101
|
cacheType: $e.URL_PREFIX_MATCH
|
|
17102
17102
|
}), S = ot({
|
|
@@ -17154,7 +17154,7 @@ const If = (e, t) => {
|
|
|
17154
17154
|
scaling: De(o),
|
|
17155
17155
|
ref: i,
|
|
17156
17156
|
children: [
|
|
17157
|
-
/* @__PURE__ */ N("mesh", { name: `${b}-mesh`, ref: a, children: y.type === Ke.TEXTURE ?
|
|
17157
|
+
/* @__PURE__ */ N("mesh", { name: `${b}-mesh`, ref: a, children: y.type === Ke.TEXTURE ? L ? /* @__PURE__ */ N(
|
|
17158
17158
|
Hn,
|
|
17159
17159
|
{
|
|
17160
17160
|
name: `formationslice-${b}-mat`,
|
|
@@ -17164,7 +17164,7 @@ const If = (e, t) => {
|
|
|
17164
17164
|
alphaMode: Fe.ALPHA_COMBINE,
|
|
17165
17165
|
alpha: x,
|
|
17166
17166
|
sideTexture: S,
|
|
17167
|
-
texture:
|
|
17167
|
+
texture: L,
|
|
17168
17168
|
tilingFactor: y.tilingFactor,
|
|
17169
17169
|
sideTilingFactor: (v = y == null ? void 0 : y.sideTilingFactor) != null ? v : y == null ? void 0 : y.tilingFactor,
|
|
17170
17170
|
mode: y.textureMode === void 0 ? yn.PLANE : y.textureMode,
|
|
@@ -17400,46 +17400,46 @@ const Af = ({
|
|
|
17400
17400
|
farPlane: s = 1e4,
|
|
17401
17401
|
skipPickingWhenCameraMoves: c = !1
|
|
17402
17402
|
}) => {
|
|
17403
|
-
const d = Ee(), u = $.useContext(We), [f, g] = $.useState(null), [p, _] = $.useState(null), [y, m] = $.useState(n), [x, P] = $.useState(a), [, b] = $.useState(null), A = $.useCallback((
|
|
17404
|
-
_(
|
|
17403
|
+
const d = Ee(), u = $.useContext(We), [f, g] = $.useState(null), [p, _] = $.useState(null), [y, m] = $.useState(n), [x, P] = $.useState(a), [, b] = $.useState(null), A = $.useCallback((L) => {
|
|
17404
|
+
_(L);
|
|
17405
17405
|
}, []), { setViewCamera: I } = $.useContext(rr), C = $.useCallback(() => {
|
|
17406
17406
|
if (p && f) {
|
|
17407
|
-
const
|
|
17408
|
-
|
|
17407
|
+
const L = new F();
|
|
17408
|
+
L.addInPlace(p.position), L.addInPlace(p.getDirection(new F(0, 0, 25))), l == 4 ? (L.addInPlace(p.getDirection(new F(0, 7 + i.y, 0))), L.addInPlace(p.getDirection(new F(15 + i.x, 0, 0)))) : l == 3 ? (L.addInPlace(p.getDirection(new F(0, 7 + i.y, 0))), L.addInPlace(p.getDirection(new F(-15 + i.x, 0, 0)))) : l == 2 ? (L.addInPlace(p.getDirection(new F(0, -7 + i.y, 0))), L.addInPlace(p.getDirection(new F(15 + i.x, 0, 0)))) : l == 1 && (L.addInPlace(p.getDirection(new F(0, -7 + i.y, 0))), L.addInPlace(p.getDirection(new F(-15 + i.x, 0, 0)))), f.xAxis.position = L.clone(), f.yAxis.position = L.clone(), f.zAxis.position = L.clone();
|
|
17409
17409
|
}
|
|
17410
17410
|
}, [p, f, l, i.y, i.x]);
|
|
17411
17411
|
$.useEffect(() => {
|
|
17412
17412
|
if (d && l != 0) {
|
|
17413
|
-
const
|
|
17414
|
-
return g(
|
|
17415
|
-
|
|
17413
|
+
const L = new oa(d, 2, null);
|
|
17414
|
+
return g(L), () => {
|
|
17415
|
+
L == null || L.dispose(), g(null);
|
|
17416
17416
|
};
|
|
17417
17417
|
}
|
|
17418
17418
|
}, [d, l]), $.useEffect(() => {
|
|
17419
17419
|
C();
|
|
17420
17420
|
}, [C]);
|
|
17421
17421
|
const T = et(
|
|
17422
|
-
(
|
|
17422
|
+
(L) => {
|
|
17423
17423
|
if (u && u.min && u.max)
|
|
17424
|
-
return F.Clamp(
|
|
17424
|
+
return F.Clamp(L, u == null ? void 0 : u.min, u == null ? void 0 : u.max);
|
|
17425
17425
|
},
|
|
17426
17426
|
[u]
|
|
17427
17427
|
), R = et(
|
|
17428
|
-
(
|
|
17429
|
-
d && (d.skipPointerMovePicking =
|
|
17428
|
+
(L) => {
|
|
17429
|
+
d && (d.skipPointerMovePicking = L);
|
|
17430
17430
|
},
|
|
17431
17431
|
[d]
|
|
17432
17432
|
);
|
|
17433
17433
|
return $.useEffect(() => {
|
|
17434
17434
|
if (!d || !p)
|
|
17435
17435
|
return;
|
|
17436
|
-
const
|
|
17436
|
+
const L = p.onViewMatrixChangedObservable.add(() => {
|
|
17437
17437
|
c && (R(!0), b((S) => (S && clearTimeout(S), setTimeout(() => {
|
|
17438
17438
|
R(!1), b(null);
|
|
17439
17439
|
}, 250)))), m(p.alpha), P(p.beta), C();
|
|
17440
17440
|
});
|
|
17441
17441
|
return () => {
|
|
17442
|
-
p.onViewMatrixChangedObservable.remove(
|
|
17442
|
+
p.onViewMatrixChangedObservable.remove(L), b((S) => (S && clearTimeout(S), null)), R(!1);
|
|
17443
17443
|
};
|
|
17444
17444
|
}, [
|
|
17445
17445
|
d,
|
|
@@ -17568,7 +17568,7 @@ const Af = ({
|
|
|
17568
17568
|
o,
|
|
17569
17569
|
I
|
|
17570
17570
|
]);
|
|
17571
|
-
const [R,
|
|
17571
|
+
const [R, L] = ye();
|
|
17572
17572
|
return ue(() => {
|
|
17573
17573
|
if (g) {
|
|
17574
17574
|
const S = {
|
|
@@ -17585,7 +17585,7 @@ const Af = ({
|
|
|
17585
17585
|
g && (g.lockedTarget = null, b(B));
|
|
17586
17586
|
}
|
|
17587
17587
|
};
|
|
17588
|
-
|
|
17588
|
+
L(S), y && y.current && (y.current.rawCamera = g, y.current.cameraTools = S);
|
|
17589
17589
|
}
|
|
17590
17590
|
}, [y, g]), mt(
|
|
17591
17591
|
t,
|
|
@@ -17596,7 +17596,7 @@ const Af = ({
|
|
|
17596
17596
|
}),
|
|
17597
17597
|
[R, g]
|
|
17598
17598
|
), /* @__PURE__ */ N("universalCamera", { name: "universal-main-camera", position: n, ref: C, maxZ: 0 });
|
|
17599
|
-
},
|
|
17599
|
+
}, Jp = ht(Ef);
|
|
17600
17600
|
class Mf extends ms {
|
|
17601
17601
|
constructor() {
|
|
17602
17602
|
super(...arguments);
|
|
@@ -17979,7 +17979,7 @@ const Ga = un(void 0), Uf = (e, t = "BIN") => {
|
|
|
17979
17979
|
return ue(() => {
|
|
17980
17980
|
console.log(
|
|
17981
17981
|
`
|
|
17982
|
-
%c Geo3DViewer Library %c Version: 1.7.
|
|
17982
|
+
%c Geo3DViewer Library %c Version: 1.7.39 %c
|
|
17983
17983
|
`,
|
|
17984
17984
|
"color:#e0e0e0;background:#873e23;padding:5px 0;border-top-left-radius:5px;border-bottom-left-radius:5px;",
|
|
17985
17985
|
"color:#455a64;background:#e0e0e0;padding:5px 0;",
|
|
@@ -18339,7 +18339,7 @@ const Gf = ({
|
|
|
18339
18339
|
pickingBoxScale: u = F.One(),
|
|
18340
18340
|
labelStyle: f
|
|
18341
18341
|
}, g) => {
|
|
18342
|
-
const p = Ee(), _ = ba({ url: t }), y = $.useRef(null), m = $.useRef(null), [x, P] = $.useState(null), [b, A] = $.useState(5), [I, C] = $.useState(5), [T, R] = $.useState(5), [
|
|
18342
|
+
const p = Ee(), _ = ba({ url: t }), y = $.useRef(null), m = $.useRef(null), [x, P] = $.useState(null), [b, A] = $.useState(5), [I, C] = $.useState(5), [T, R] = $.useState(5), [L, S] = $.useState(F.Zero()), [B, k] = $.useState(F.One()), [E, v] = $.useState([]), O = $.useContext(We), { scaleWithParent: z = !0 } = f || {};
|
|
18343
18343
|
return $.useEffect(() => {
|
|
18344
18344
|
console.log("[Geo3DViewer] ModelLoader Loading: ", t);
|
|
18345
18345
|
}, [t]), mt(
|
|
@@ -18459,7 +18459,7 @@ const Gf = ({
|
|
|
18459
18459
|
"transformNode",
|
|
18460
18460
|
{
|
|
18461
18461
|
name: `transform-model-label-${e}`,
|
|
18462
|
-
position:
|
|
18462
|
+
position: L.add(
|
|
18463
18463
|
f != null && f.offset ? f.offset.multiplyByFloats(
|
|
18464
18464
|
O != null && O.scalePlane ? O == null ? void 0 : O.scalePlane : 1,
|
|
18465
18465
|
1,
|
|
@@ -18484,7 +18484,7 @@ const Gf = ({
|
|
|
18484
18484
|
ref: y,
|
|
18485
18485
|
size: 1,
|
|
18486
18486
|
scaling: new F(T, b, I).multiply(u),
|
|
18487
|
-
position:
|
|
18487
|
+
position: L,
|
|
18488
18488
|
rotation: B,
|
|
18489
18489
|
setEnabled: d ? d.length === 0 : !0,
|
|
18490
18490
|
children: /* @__PURE__ */ N("standardMaterial", { name: `pick-mesh-${e}-mat`, alpha: r ? 0.5 : 0 })
|
|
@@ -18587,7 +18587,7 @@ const Gf = ({
|
|
|
18587
18587
|
angle: b = Math.PI / 2,
|
|
18588
18588
|
radius: A = 4,
|
|
18589
18589
|
fluidRender: I
|
|
18590
|
-
} = e, C = Ee(), [T, R] = ye(),
|
|
18590
|
+
} = e, C = Ee(), [T, R] = ye(), L = Pe(null);
|
|
18591
18591
|
return ue(() => {
|
|
18592
18592
|
T && (T.blendMode = l, s && (T.color1 = s), c && (T.color2 = c), d && (T.colorDead = d), u !== void 0 && (T.minSize = u), f !== void 0 && (T.maxSize = f), g !== void 0 && (T.minLifeTime = g), p !== void 0 && (T.maxLifeTime = p), y !== void 0 && (T.minEmitPower = y), m !== void 0 && (T.maxEmitPower = m), x !== void 0 && (T.updateSpeed = x), T.preWarmCycles = 60 * 8, _ && (T.gravity = _), T.createConeEmitter(A, b), P && (T.particleTexture = new Wt(P), T.particleTexture.onLoadObservable.add(() => {
|
|
18593
18593
|
T.start();
|
|
@@ -18619,7 +18619,7 @@ const Gf = ({
|
|
|
18619
18619
|
R(S);
|
|
18620
18620
|
}
|
|
18621
18621
|
return () => {
|
|
18622
|
-
console.log("particlesystem disposed!"),
|
|
18622
|
+
console.log("particlesystem disposed!"), L.current && (L.current.object.particleSize = 0);
|
|
18623
18623
|
};
|
|
18624
18624
|
}, [t, o, T, C, a]), ue(() => {
|
|
18625
18625
|
T && (C == null || C.executeWhenReady(() => {
|
|
@@ -18629,7 +18629,7 @@ const Gf = ({
|
|
|
18629
18629
|
if (E) {
|
|
18630
18630
|
E.addParticleSystem(T);
|
|
18631
18631
|
const v = E.getRenderObjectFromParticleSystem(T);
|
|
18632
|
-
|
|
18632
|
+
L.current = v, v && (v.object.particleSize = (S = I == null ? void 0 : I.particleSize) != null ? S : 0.75, v.object.particleThicknessAlpha = 0.02, v.object.useTrueRenderingForDiffuseTexture = !0, v.targetRenderer.minimumThickness = v.object.particleThicknessAlpha, v.targetRenderer.blurDepthFilterSize = 10, v.targetRenderer.blurDepthDepthScale = 10, v.targetRenderer.thicknessMapSize = 1024, v.targetRenderer.density = (B = I == null ? void 0 : I.density) != null ? B : 8, v.targetRenderer.fresnelClamp = 0.04, v.targetRenderer.fluidColor = (k = I == null ? void 0 : I.fluidColor) != null ? k : new he(219 / 255, 228 / 255, 1), v.targetRenderer.generateDiffuseTexture = !1);
|
|
18633
18633
|
}
|
|
18634
18634
|
}
|
|
18635
18635
|
}));
|
|
@@ -18664,11 +18664,11 @@ const Gf = ({
|
|
|
18664
18664
|
if (u)
|
|
18665
18665
|
return A((R) => {
|
|
18666
18666
|
R == null || R.dispose();
|
|
18667
|
-
const
|
|
18667
|
+
const L = new Ps("video-texture", u, n, !1, !1, void 0, {
|
|
18668
18668
|
autoPlay: !0,
|
|
18669
18669
|
autoUpdateTexture: !0
|
|
18670
18670
|
});
|
|
18671
|
-
return
|
|
18671
|
+
return L.hasAlpha = !0, L;
|
|
18672
18672
|
}), () => {
|
|
18673
18673
|
A((R) => (R == null || R.dispose(), null));
|
|
18674
18674
|
};
|
|
@@ -18676,8 +18676,8 @@ const Gf = ({
|
|
|
18676
18676
|
if (f) {
|
|
18677
18677
|
const R = new Cn("dyn-texture", f, n);
|
|
18678
18678
|
return R.hasAlpha = !0, x.current = R, () => {
|
|
18679
|
-
var
|
|
18680
|
-
(
|
|
18679
|
+
var L;
|
|
18680
|
+
(L = x.current) == null || L.dispose();
|
|
18681
18681
|
};
|
|
18682
18682
|
}
|
|
18683
18683
|
}, [f]), ue(() => {
|
|
@@ -18687,8 +18687,8 @@ const Gf = ({
|
|
|
18687
18687
|
() => x,
|
|
18688
18688
|
[x]
|
|
18689
18689
|
), ue(() => {
|
|
18690
|
-
var
|
|
18691
|
-
const R = (
|
|
18690
|
+
var L;
|
|
18691
|
+
const R = (L = P.current) == null ? void 0 : L.getChildMeshes()[0];
|
|
18692
18692
|
R && (R.metadata = {
|
|
18693
18693
|
pickable: _ ? {
|
|
18694
18694
|
name: i,
|
|
@@ -18840,7 +18840,7 @@ const id = ({
|
|
|
18840
18840
|
const m = Ee(), x = $.useRef(null), P = $.useContext(We), b = pt({ url: t, cacheType: $e.URL_PREFIX_MATCH }), [A, I] = $.useState(F.Zero()), [C, T] = $.useState(void 0), R = ot({
|
|
18841
18841
|
url: c == null ? void 0 : c.texture,
|
|
18842
18842
|
cacheType: $e.URL_PREFIX_MATCH
|
|
18843
|
-
}),
|
|
18843
|
+
}), L = ot({
|
|
18844
18844
|
url: c == null ? void 0 : c.sideTexture,
|
|
18845
18845
|
cacheType: $e.URL_PREFIX_MATCH
|
|
18846
18846
|
}), S = ot({
|
|
@@ -18995,7 +18995,7 @@ const id = ({
|
|
|
18995
18995
|
transparencyMode: Ne.MATERIAL_ALPHABLEND,
|
|
18996
18996
|
alphaMode: Fe.ALPHA_COMBINE,
|
|
18997
18997
|
texture: R,
|
|
18998
|
-
sideTexture:
|
|
18998
|
+
sideTexture: L,
|
|
18999
18999
|
alphaStage: a,
|
|
19000
19000
|
cutNormal: r,
|
|
19001
19001
|
value: l,
|
|
@@ -19447,7 +19447,19 @@ void main(void) {
|
|
|
19447
19447
|
),
|
|
19448
19448
|
x
|
|
19449
19449
|
] });
|
|
19450
|
-
}, Jn = ht(pd)
|
|
19450
|
+
}, Jn = ht(pd);
|
|
19451
|
+
function hd(e, t) {
|
|
19452
|
+
if (typeof t == "string")
|
|
19453
|
+
return t === e;
|
|
19454
|
+
if (t.mode === "prefix")
|
|
19455
|
+
return e.startsWith(t.value);
|
|
19456
|
+
try {
|
|
19457
|
+
return new RegExp(t.value, t.flags).test(e);
|
|
19458
|
+
} catch (n) {
|
|
19459
|
+
return !1;
|
|
19460
|
+
}
|
|
19461
|
+
}
|
|
19462
|
+
const md = (e) => {
|
|
19451
19463
|
const [t, n] = ye({
|
|
19452
19464
|
top: {
|
|
19453
19465
|
vertices: [],
|
|
@@ -19485,7 +19497,7 @@ void main(void) {
|
|
|
19485
19497
|
return ue(() => {
|
|
19486
19498
|
if (R && !r.current) {
|
|
19487
19499
|
r.current = !0;
|
|
19488
|
-
let
|
|
19500
|
+
let L = [];
|
|
19489
19501
|
const S = Ra.decode(new Uint8Array(R));
|
|
19490
19502
|
console.log(S), d(S.name);
|
|
19491
19503
|
const { boxes: B } = S, k = [], E = [], v = [], O = [], z = [], W = [], U = [], ne = [], ee = [];
|
|
@@ -19501,7 +19513,7 @@ void main(void) {
|
|
|
19501
19513
|
let V = 0;
|
|
19502
19514
|
if (ae && ae.vertices && ae.indices && ae.colors && (U.push(...ae.vertices), ne.push(...ae.indices.map((me) => me + re)), ee.push(...ae.colors), V = Math.max(...ae.indices)), re += V + 1, Y.name) {
|
|
19503
19515
|
const me = new F((Q = Y.startPosition) == null ? void 0 : Q.x, (Me = Y.startPosition) == null ? void 0 : Me.y, (Ae = Y.startPosition) == null ? void 0 : Ae.z), Le = new F((te = Y.endPosition) == null ? void 0 : te.x, (xe = Y.endPosition) == null ? void 0 : xe.y, (fe = Y.endPosition) == null ? void 0 : fe.z), Oe = me.add(Le).scale(0.5);
|
|
19504
|
-
|
|
19516
|
+
L.push({
|
|
19505
19517
|
name: Y.name,
|
|
19506
19518
|
position: Oe
|
|
19507
19519
|
});
|
|
@@ -19522,7 +19534,7 @@ void main(void) {
|
|
|
19522
19534
|
indices: ne,
|
|
19523
19535
|
colors: ee
|
|
19524
19536
|
}
|
|
19525
|
-
}), o(oe), f(
|
|
19537
|
+
}), o(oe), f(L), () => {
|
|
19526
19538
|
r.current = !1, n({
|
|
19527
19539
|
top: {
|
|
19528
19540
|
vertices: [],
|
|
@@ -19543,7 +19555,7 @@ void main(void) {
|
|
|
19543
19555
|
};
|
|
19544
19556
|
}
|
|
19545
19557
|
}, [R]), ue(() => {
|
|
19546
|
-
const
|
|
19558
|
+
const L = a == null ? void 0 : a.onPointerObservable.add(function(S) {
|
|
19547
19559
|
if (P)
|
|
19548
19560
|
switch (S.type) {
|
|
19549
19561
|
case on.POINTERUP:
|
|
@@ -19556,12 +19568,18 @@ void main(void) {
|
|
|
19556
19568
|
}
|
|
19557
19569
|
});
|
|
19558
19570
|
return () => {
|
|
19559
|
-
a == null || a.onPointerObservable.remove(
|
|
19571
|
+
a == null || a.onPointerObservable.remove(L);
|
|
19560
19572
|
};
|
|
19561
19573
|
}, [x, g, c, P, a]), ue(() => {
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19574
|
+
if (!(A != null && A.nameList.length)) {
|
|
19575
|
+
s([]);
|
|
19576
|
+
return;
|
|
19577
|
+
}
|
|
19578
|
+
s(
|
|
19579
|
+
u.filter(
|
|
19580
|
+
(L) => A.nameList.some((S) => hd(L.name, S))
|
|
19581
|
+
)
|
|
19582
|
+
);
|
|
19565
19583
|
}, [A, u]), /* @__PURE__ */ Ve(ge, { children: [
|
|
19566
19584
|
t.top.vertices.length > 0 && t.top.indices.length > 0 && /* @__PURE__ */ N(
|
|
19567
19585
|
Jn,
|
|
@@ -19614,17 +19632,17 @@ void main(void) {
|
|
|
19614
19632
|
children: m
|
|
19615
19633
|
}
|
|
19616
19634
|
),
|
|
19617
|
-
l.map((
|
|
19635
|
+
l.map((L, S) => /* @__PURE__ */ Ve("transformNode", { name: `roadway-name-${L.name}-${S}-root`, children: [
|
|
19618
19636
|
/* @__PURE__ */ N(
|
|
19619
19637
|
"transformNode",
|
|
19620
19638
|
{
|
|
19621
|
-
name: `roadway-name-${
|
|
19622
|
-
position:
|
|
19639
|
+
name: `roadway-name-${L.name}-${S}`,
|
|
19640
|
+
position: L.position.add(y).add((A == null ? void 0 : A.offset) || new F(0, 0, 0)),
|
|
19623
19641
|
billboardMode: ut.BILLBOARDMODE_ALL,
|
|
19624
19642
|
children: /* @__PURE__ */ N(
|
|
19625
19643
|
lt,
|
|
19626
19644
|
{
|
|
19627
|
-
text:
|
|
19645
|
+
text: L.name,
|
|
19628
19646
|
fontSize: (A == null ? void 0 : A.fontSize) || 18,
|
|
19629
19647
|
color: (A == null ? void 0 : A.color) || "#FFFFFF"
|
|
19630
19648
|
}
|
|
@@ -19635,14 +19653,14 @@ void main(void) {
|
|
|
19635
19653
|
A.offset && A.offset.y !== 0 ? /* @__PURE__ */ N(
|
|
19636
19654
|
"lineSystem",
|
|
19637
19655
|
{
|
|
19638
|
-
name: `roadway-name-${
|
|
19639
|
-
lines: [[
|
|
19656
|
+
name: `roadway-name-${L.name}-${S}-line`,
|
|
19657
|
+
lines: [[L.position, L.position.add(A.offset)]],
|
|
19640
19658
|
color: he.White()
|
|
19641
19659
|
}
|
|
19642
19660
|
) : null
|
|
19643
19661
|
] }))
|
|
19644
19662
|
] });
|
|
19645
|
-
},
|
|
19663
|
+
}, gd = (e) => {
|
|
19646
19664
|
const { id: t, node: n } = e, [a, i] = ye([]), [o, r] = ye([]), l = (c, d) => {
|
|
19647
19665
|
const u = [];
|
|
19648
19666
|
let f = 0;
|
|
@@ -19702,7 +19720,7 @@ void main(void) {
|
|
|
19702
19720
|
},
|
|
19703
19721
|
f
|
|
19704
19722
|
)) }, d)) });
|
|
19705
|
-
},
|
|
19723
|
+
}, vd = (e) => {
|
|
19706
19724
|
const { nodes: t } = e, n = Pe(null), a = Pe([]), [i, o] = ye(), r = (l) => {
|
|
19707
19725
|
const s = [];
|
|
19708
19726
|
for (let d = 0; d < l.length; d++)
|
|
@@ -19742,7 +19760,7 @@ void main(void) {
|
|
|
19742
19760
|
};
|
|
19743
19761
|
}, [t]), /* @__PURE__ */ Ve(ge, { children: [
|
|
19744
19762
|
t && t.map((l, s) => a.current.find((d) => d === l.name) ? null : /* @__PURE__ */ N(
|
|
19745
|
-
|
|
19763
|
+
gd,
|
|
19746
19764
|
{
|
|
19747
19765
|
id: s,
|
|
19748
19766
|
node: l
|
|
@@ -19767,7 +19785,7 @@ void main(void) {
|
|
|
19767
19785
|
}
|
|
19768
19786
|
)
|
|
19769
19787
|
] });
|
|
19770
|
-
},
|
|
19788
|
+
}, xd = (e) => {
|
|
19771
19789
|
const { url: t, zOffset: n, zOffsetUnits: a, uScale: i, vScale: o, isBlink: r } = e, [l, s] = ye(), [c, d] = ye(1);
|
|
19772
19790
|
return ue(() => {
|
|
19773
19791
|
const u = new Wt(t);
|
|
@@ -19797,7 +19815,7 @@ void main(void) {
|
|
|
19797
19815
|
sideOrientation: Ne.CounterClockWiseSideOrientation
|
|
19798
19816
|
}
|
|
19799
19817
|
);
|
|
19800
|
-
},
|
|
19818
|
+
}, yd = (e) => {
|
|
19801
19819
|
const { node: t, roadwayWidth: n, textureLength: a, url: i, visible: o = !0, isBlink: r = !0 } = e, [l, s] = ye(), c = Pe(null), [d, u] = ye(), [f, g] = ye(!1), [p, _] = ye(1), y = (m, x, P, b) => {
|
|
19802
19820
|
const I = F.Distance(m, x) / b, C = F.Distance(m, P), T = Math.floor(C / I);
|
|
19803
19821
|
return Math.min(T, b - 1);
|
|
@@ -19833,7 +19851,7 @@ void main(void) {
|
|
|
19833
19851
|
setEnabled: f && o,
|
|
19834
19852
|
scaling: new F(p, 1, 1),
|
|
19835
19853
|
children: /* @__PURE__ */ N(
|
|
19836
|
-
|
|
19854
|
+
xd,
|
|
19837
19855
|
{
|
|
19838
19856
|
name: t.name,
|
|
19839
19857
|
alphaMode: Fe.ALPHA_COMBINE,
|
|
@@ -19848,10 +19866,10 @@ void main(void) {
|
|
|
19848
19866
|
)
|
|
19849
19867
|
}
|
|
19850
19868
|
) });
|
|
19851
|
-
},
|
|
19869
|
+
}, Cd = (e) => {
|
|
19852
19870
|
const { nodes: t, roadwayWidth: n = 2, textureLength: a = 4, url: i, visible: o = !0, isBlink: r = !0 } = e;
|
|
19853
19871
|
return /* @__PURE__ */ N(ge, { children: t && t.map((l, s) => /* @__PURE__ */ N(
|
|
19854
|
-
|
|
19872
|
+
yd,
|
|
19855
19873
|
{
|
|
19856
19874
|
node: l,
|
|
19857
19875
|
roadwayWidth: n,
|
|
@@ -19863,7 +19881,7 @@ void main(void) {
|
|
|
19863
19881
|
s
|
|
19864
19882
|
)) });
|
|
19865
19883
|
};
|
|
19866
|
-
class
|
|
19884
|
+
class _d {
|
|
19867
19885
|
constructor(t, n, a) {
|
|
19868
19886
|
_e(this, "sourceVertex");
|
|
19869
19887
|
_e(this, "targetVertex");
|
|
@@ -19884,7 +19902,7 @@ class Cd {
|
|
|
19884
19902
|
return this._influence;
|
|
19885
19903
|
}
|
|
19886
19904
|
}
|
|
19887
|
-
const
|
|
19905
|
+
const Pd = ({
|
|
19888
19906
|
position: e = F.Zero(),
|
|
19889
19907
|
id: t,
|
|
19890
19908
|
node: n,
|
|
@@ -19911,7 +19929,7 @@ const _d = ({
|
|
|
19911
19929
|
}), m.current.getBlockByName("TimeSpeed").value = a, m.current.getBlockByName("PerlinMultiply").value = i, m.current.getBlockByName("waterFlow").value = o, m.current.getBlockByName("ClippedHeight").value = r, m.current.alpha = l, m.current.getBlockByName("Gradient").colorSteps = s;
|
|
19912
19930
|
const A = m.current;
|
|
19913
19931
|
A.getBlockByName("MaskEnabled").value = 0, A.build(!1, !0, !0);
|
|
19914
|
-
const I = n.start, C = n.end, T = F.Normalize(C.subtract(I)), R = Math.asin(T.y),
|
|
19932
|
+
const I = n.start, C = n.end, T = F.Normalize(C.subtract(I)), R = Math.asin(T.y), L = Math.atan2(T.x, T.z), S = new F(-R, L, 0);
|
|
19915
19933
|
return y(S), b.morphTargetManager = new bs(), b.morphTargetManager.enableNormalMorphing = !0, P.current = b.getVerticesData(Bt.PositionKind).slice(0), P.current.length === 0 && console.log("[Geo3DViewer] 水模拟,原始 SourceKind 为空", t, n.name), b.material = m.current, () => {
|
|
19916
19934
|
var B;
|
|
19917
19935
|
(B = m.current) == null || B.dispose();
|
|
@@ -19922,9 +19940,9 @@ const _d = ({
|
|
|
19922
19940
|
if (b && A) {
|
|
19923
19941
|
console.log(`[Geo3DViewer] 正在更新 ${t} / ${n.name} 的进度 Time: ${n.time / 1e3}`);
|
|
19924
19942
|
const I = A.getVerticesData(Bt.PositionKind).slice(0);
|
|
19925
|
-
I.length === 0 && console.log("[Geo3DViewer] 水模拟 SourceKind 为空", t, n.name), A.updateMeshPositions((
|
|
19926
|
-
for (let S = 0; S <
|
|
19927
|
-
|
|
19943
|
+
I.length === 0 && console.log("[Geo3DViewer] 水模拟 SourceKind 为空", t, n.name), A.updateMeshPositions((L) => {
|
|
19944
|
+
for (let S = 0; S < L.length; S++)
|
|
19945
|
+
L[S] = P.current[S];
|
|
19928
19946
|
});
|
|
19929
19947
|
const C = A.applyDisplacementMapFromBuffer(
|
|
19930
19948
|
n.glurHeightMap,
|
|
@@ -19936,11 +19954,11 @@ const _d = ({
|
|
|
19936
19954
|
tt.One(),
|
|
19937
19955
|
!1
|
|
19938
19956
|
).getVerticesData(Bt.PositionKind).slice(0);
|
|
19939
|
-
C.length === 0 && console.log("[Geo3DViewer] 水模拟 SourceKind 为空", t, n.name), b.updateMeshPositions((
|
|
19940
|
-
for (let S = 0; S <
|
|
19941
|
-
|
|
19957
|
+
C.length === 0 && console.log("[Geo3DViewer] 水模拟 SourceKind 为空", t, n.name), b.updateMeshPositions((L) => {
|
|
19958
|
+
for (let S = 0; S < L.length; S++)
|
|
19959
|
+
L[S] = C[S];
|
|
19942
19960
|
});
|
|
19943
|
-
const T = new
|
|
19961
|
+
const T = new _d(I, C, b), R = new Un(
|
|
19944
19962
|
"waterAnimation",
|
|
19945
19963
|
"influence",
|
|
19946
19964
|
1e3 / 30,
|
|
@@ -20016,10 +20034,10 @@ const _d = ({
|
|
|
20016
20034
|
]
|
|
20017
20035
|
}
|
|
20018
20036
|
) });
|
|
20019
|
-
},
|
|
20037
|
+
}, bd = (e) => {
|
|
20020
20038
|
const { nodes: t } = e;
|
|
20021
20039
|
return /* @__PURE__ */ N(ge, { children: t && t.map((n, a) => /* @__PURE__ */ N(
|
|
20022
|
-
|
|
20040
|
+
Pd,
|
|
20023
20041
|
{
|
|
20024
20042
|
id: a,
|
|
20025
20043
|
node: n,
|
|
@@ -20036,7 +20054,7 @@ const _d = ({
|
|
|
20036
20054
|
},
|
|
20037
20055
|
n.name
|
|
20038
20056
|
)) });
|
|
20039
|
-
},
|
|
20057
|
+
}, kd = (e) => {
|
|
20040
20058
|
const { rootUrl: t, size: n = 1e3, name: a = "skybox" } = e;
|
|
20041
20059
|
return /* @__PURE__ */ N(Ms, { rootUrl: t, size: n, name: a });
|
|
20042
20060
|
};
|
|
@@ -20165,8 +20183,8 @@ const Rn = {
|
|
|
20165
20183
|
function Wn(e) {
|
|
20166
20184
|
return e != null;
|
|
20167
20185
|
}
|
|
20168
|
-
var
|
|
20169
|
-
const
|
|
20186
|
+
var Td = /* @__PURE__ */ ((e) => (e[e.TETRAHEDRON = 0] = "TETRAHEDRON", e[e.OCTAHEDRON = 1] = "OCTAHEDRON", e[e.DODECAHEDRON = 2] = "DODECAHEDRON", e[e.ICOSAHEDRON = 3] = "ICOSAHEDRON", e[e.RHOMBICUBOCTAHEDRON = 4] = "RHOMBICUBOCTAHEDRON", e[e.SPECIAL_CIRCLE = 5] = "SPECIAL_CIRCLE", e))(Td || {});
|
|
20187
|
+
const Nd = ({
|
|
20170
20188
|
url: e,
|
|
20171
20189
|
colorCodec: t,
|
|
20172
20190
|
alpha: n = 1,
|
|
@@ -20187,26 +20205,26 @@ const Td = ({
|
|
|
20187
20205
|
if (I && C) {
|
|
20188
20206
|
g(A), _(new F(I.x, I.y, I.z));
|
|
20189
20207
|
const T = new Float32Array(C.length * 16), R = new Float32Array(C.length * 4);
|
|
20190
|
-
return C.forEach((
|
|
20191
|
-
if (
|
|
20208
|
+
return C.forEach((L, S) => {
|
|
20209
|
+
if (L.point) {
|
|
20192
20210
|
const B = new F(
|
|
20193
|
-
|
|
20194
|
-
|
|
20195
|
-
|
|
20211
|
+
L.point.x,
|
|
20212
|
+
L.point.y,
|
|
20213
|
+
L.point.z
|
|
20196
20214
|
).multiplyByFloats(
|
|
20197
20215
|
c && c.scalePlane ? c.scalePlane : 1,
|
|
20198
20216
|
c && c.scaleDepth ? c.scaleDepth : 1,
|
|
20199
20217
|
c && c.scalePlane ? c.scalePlane : 1
|
|
20200
20218
|
), k = vn.Identity(), E = new F(
|
|
20201
|
-
|
|
20202
|
-
|
|
20203
|
-
|
|
20219
|
+
L.vRadius * o,
|
|
20220
|
+
L.vRadius * o,
|
|
20221
|
+
L.vRadius * o
|
|
20204
20222
|
);
|
|
20205
20223
|
if (nr.Compose(E, k, B).copyToArray(T, S * 16), t) {
|
|
20206
|
-
const O = d.colorCodecs[t].array, z = O[Math.floor(
|
|
20224
|
+
const O = d.colorCodecs[t].array, z = O[Math.floor(L.vColor * (O.length - 1))];
|
|
20207
20225
|
R.set([z.r, z.g, z.b, n], S * 4);
|
|
20208
20226
|
} else {
|
|
20209
|
-
const O = d.colorIDs[
|
|
20227
|
+
const O = d.colorIDs[L.colorId];
|
|
20210
20228
|
R.set([O.r, O.g, O.b, n], S * 4);
|
|
20211
20229
|
}
|
|
20212
20230
|
}
|
|
@@ -20306,8 +20324,8 @@ const Td = ({
|
|
|
20306
20324
|
}
|
|
20307
20325
|
);
|
|
20308
20326
|
};
|
|
20309
|
-
var
|
|
20310
|
-
const
|
|
20327
|
+
var Sd = /* @__PURE__ */ ((e) => (e[e.OSM = 1] = "OSM", e[e.AMAP = 2] = "AMAP", e))(Sd || {});
|
|
20328
|
+
const Id = ({
|
|
20311
20329
|
mode: e = 1,
|
|
20312
20330
|
baseUrl: t,
|
|
20313
20331
|
visible: n = !0,
|
|
@@ -20328,11 +20346,11 @@ const Sd = ({
|
|
|
20328
20346
|
const A = _.current, I = y.current;
|
|
20329
20347
|
if (A && I) {
|
|
20330
20348
|
const C = A.getTotalVertices(), T = A.getIndices().length / (u.w * u.h), R = [];
|
|
20331
|
-
let
|
|
20349
|
+
let L = 0, S = 0;
|
|
20332
20350
|
for (let k = 0; k < u.h; k++)
|
|
20333
20351
|
for (let E = 0; E < u.w; E++) {
|
|
20334
20352
|
const v = new Ts(
|
|
20335
|
-
|
|
20353
|
+
L++,
|
|
20336
20354
|
0,
|
|
20337
20355
|
C,
|
|
20338
20356
|
S,
|
|
@@ -20648,7 +20666,7 @@ const Bn = {
|
|
|
20648
20666
|
function Lt(e) {
|
|
20649
20667
|
return e != null;
|
|
20650
20668
|
}
|
|
20651
|
-
const
|
|
20669
|
+
const wd = (e, t) => {
|
|
20652
20670
|
const n = Pe(null), a = Qe(We), { id: i, name: o, visible: r = !0, position: l, children: s, isRegular: c = !0 } = e;
|
|
20653
20671
|
return mt(
|
|
20654
20672
|
t,
|
|
@@ -20665,7 +20683,7 @@ const Id = (e, t) => {
|
|
|
20665
20683
|
children: s
|
|
20666
20684
|
}
|
|
20667
20685
|
);
|
|
20668
|
-
},
|
|
20686
|
+
}, Od = ht(wd), Ad = (e) => {
|
|
20669
20687
|
const t = Ee(), n = Pe(null), { title: a, url: i, color: o, v: r, actions: l, path: s, radius: c, mesh: d } = e;
|
|
20670
20688
|
return ue(() => {
|
|
20671
20689
|
n.current && (n.current.metadata = {
|
|
@@ -20692,7 +20710,7 @@ const Id = (e, t) => {
|
|
|
20692
20710
|
diffuseTexture: i !== "" ? new Wt(i) : void 0
|
|
20693
20711
|
}
|
|
20694
20712
|
) });
|
|
20695
|
-
},
|
|
20713
|
+
}, Ed = (e, t) => {
|
|
20696
20714
|
const { name: n, position: a, slices: i, meshs: o, actions: r } = e, l = Pe(null);
|
|
20697
20715
|
return mt(
|
|
20698
20716
|
t,
|
|
@@ -20701,7 +20719,7 @@ const Id = (e, t) => {
|
|
|
20701
20719
|
), /* @__PURE__ */ N("transformNode", { name: "lod0", ref: l, setEnabled: !1, children: a && i.map((s, c) => {
|
|
20702
20720
|
var d, u, f, g, p, _;
|
|
20703
20721
|
return /* @__PURE__ */ N(
|
|
20704
|
-
|
|
20722
|
+
Ad,
|
|
20705
20723
|
{
|
|
20706
20724
|
id: c,
|
|
20707
20725
|
v: s.v,
|
|
@@ -20720,7 +20738,7 @@ const Id = (e, t) => {
|
|
|
20720
20738
|
c
|
|
20721
20739
|
);
|
|
20722
20740
|
}) });
|
|
20723
|
-
},
|
|
20741
|
+
}, Md = $.forwardRef(Ed), Ld = (e) => {
|
|
20724
20742
|
const t = Ee(), n = Pe(null), a = Qe(We), {
|
|
20725
20743
|
id: i,
|
|
20726
20744
|
vertices: o,
|
|
@@ -20744,7 +20762,7 @@ const Id = (e, t) => {
|
|
|
20744
20762
|
onRightClick: _.onRightClick,
|
|
20745
20763
|
onMiddleClick: _.onMiddleClick,
|
|
20746
20764
|
onHover: (m, x, P, b, A) => {
|
|
20747
|
-
var I, C, T, R,
|
|
20765
|
+
var I, C, T, R, L, S;
|
|
20748
20766
|
if (_.onHover && t && f && P) {
|
|
20749
20767
|
const B = P;
|
|
20750
20768
|
for (let k = 0; k < f.length; k++) {
|
|
@@ -20754,7 +20772,7 @@ const Id = (e, t) => {
|
|
|
20754
20772
|
(T = f[k].start) == null ? void 0 : T.z
|
|
20755
20773
|
).add(g).multiply(De(a)), v = new F(
|
|
20756
20774
|
(R = f[k].end) == null ? void 0 : R.x,
|
|
20757
|
-
(
|
|
20775
|
+
(L = f[k].end) == null ? void 0 : L.y,
|
|
20758
20776
|
(S = f[k].end) == null ? void 0 : S.z
|
|
20759
20777
|
).add(g).multiply(De(a)), O = bt.CreateTube(
|
|
20760
20778
|
"boundingbox-tmp",
|
|
@@ -20824,7 +20842,7 @@ const Id = (e, t) => {
|
|
|
20824
20842
|
return /* @__PURE__ */ N(hr, { alpha: u });
|
|
20825
20843
|
}, [u, d, s, i, c, p]);
|
|
20826
20844
|
return /* @__PURE__ */ N("transformNode", { name: `${p}-main-node`, children: /* @__PURE__ */ N("mesh", { name: `${p}-mesh`, ref: n, isPickable: !0, children: y() }) });
|
|
20827
|
-
},
|
|
20845
|
+
}, Rd = (e, t) => {
|
|
20828
20846
|
const {
|
|
20829
20847
|
id: n,
|
|
20830
20848
|
visible: a = !0,
|
|
@@ -20842,7 +20860,7 @@ const Id = (e, t) => {
|
|
|
20842
20860
|
() => f.current,
|
|
20843
20861
|
[]
|
|
20844
20862
|
), /* @__PURE__ */ N("transformNode", { name: "lod1", ref: f, setEnabled: !1, children: o.length > 0 && /* @__PURE__ */ N(
|
|
20845
|
-
|
|
20863
|
+
Ld,
|
|
20846
20864
|
{
|
|
20847
20865
|
id: n,
|
|
20848
20866
|
visible: a,
|
|
@@ -20858,7 +20876,7 @@ const Id = (e, t) => {
|
|
|
20858
20876
|
slices: c
|
|
20859
20877
|
}
|
|
20860
20878
|
) });
|
|
20861
|
-
},
|
|
20879
|
+
}, Bd = $.forwardRef(Rd), Dd = (e, t) => {
|
|
20862
20880
|
const n = Pe(null), a = Qe(We), { style: i, name: o = "tube" } = e;
|
|
20863
20881
|
return mt(
|
|
20864
20882
|
t,
|
|
@@ -20882,9 +20900,9 @@ const Id = (e, t) => {
|
|
|
20882
20900
|
)
|
|
20883
20901
|
}
|
|
20884
20902
|
);
|
|
20885
|
-
}, Ka = ht(
|
|
20903
|
+
}, Ka = ht(Dd), Fd = (e) => {
|
|
20886
20904
|
var ae, X, Se, Ce;
|
|
20887
|
-
const t = Ee(), [n, a] = ye([]), [i, o] = ye([]), [r, l] = ye([]), s = Pe(null), c = Pe(null), d = Pe(null), [u, f] = ye(""), [g, p] = ye(new F(0, 0, 0)), _ = Pe(null), y = Pe(null), m = Pe(null), [x, P] = ye([]), b = Pe(!1), A = Qe(We), [I, C] = ye([]), [T, R] = ye(!1), [
|
|
20905
|
+
const t = Ee(), [n, a] = ye([]), [i, o] = ye([]), [r, l] = ye([]), s = Pe(null), c = Pe(null), d = Pe(null), [u, f] = ye(""), [g, p] = ye(new F(0, 0, 0)), _ = Pe(null), y = Pe(null), m = Pe(null), [x, P] = ye([]), b = Pe(!1), A = Qe(We), [I, C] = ye([]), [T, R] = ye(!1), [L, S] = ye(!1), {
|
|
20888
20906
|
id: B,
|
|
20889
20907
|
url: k,
|
|
20890
20908
|
color: E,
|
|
@@ -20905,7 +20923,7 @@ const Id = (e, t) => {
|
|
|
20905
20923
|
return ue(() => {
|
|
20906
20924
|
re && oe && Y ? (s.current = re, c.current = oe, d.current = Y) : S(!0);
|
|
20907
20925
|
}, [Y, re, oe]), ue(() => {
|
|
20908
|
-
!b.current &&
|
|
20926
|
+
!b.current && L && (b.current = !0, ln.get(k, {
|
|
20909
20927
|
responseType: "arraybuffer"
|
|
20910
20928
|
}).then((V) => {
|
|
20911
20929
|
var xe, fe, me, Le, Oe, ze, Re, Be, Ue;
|
|
@@ -20928,7 +20946,7 @@ const Id = (e, t) => {
|
|
|
20928
20946
|
O === "custom" ? ua(Q.indices) : Q.indices
|
|
20929
20947
|
), l(Q.colors);
|
|
20930
20948
|
}));
|
|
20931
|
-
}, [k, t, E, O, e.style.basePosition, le,
|
|
20949
|
+
}, [k, t, E, O, e.style.basePosition, le, L, A]), ue(() => {
|
|
20932
20950
|
const V = setInterval(() => {
|
|
20933
20951
|
var Q, Me, Ae, te, xe, fe, me, Le, Oe, ze, Re, Be, Ue, qe;
|
|
20934
20952
|
if (t && t.cameras.length > 0 && t.activeCamera && s.current && c.current && d.current) {
|
|
@@ -20946,7 +20964,7 @@ const Id = (e, t) => {
|
|
|
20946
20964
|
};
|
|
20947
20965
|
}, [G, ee, I.length, A, t]), /* @__PURE__ */ N(ge, { children: /* @__PURE__ */ Ve("transformNode", { name: `tube-${B} `, children: [
|
|
20948
20966
|
/* @__PURE__ */ Ve(
|
|
20949
|
-
|
|
20967
|
+
Od,
|
|
20950
20968
|
{
|
|
20951
20969
|
id: B,
|
|
20952
20970
|
name: u,
|
|
@@ -20954,7 +20972,7 @@ const Id = (e, t) => {
|
|
|
20954
20972
|
position: (ae = s.current) != null ? ae : new F(0, 0, 0),
|
|
20955
20973
|
isRegular: ce,
|
|
20956
20974
|
children: [
|
|
20957
|
-
|
|
20975
|
+
L && /* @__PURE__ */ N(
|
|
20958
20976
|
Ka,
|
|
20959
20977
|
{
|
|
20960
20978
|
id: B,
|
|
@@ -20969,8 +20987,8 @@ const Id = (e, t) => {
|
|
|
20969
20987
|
ref: m
|
|
20970
20988
|
}
|
|
20971
20989
|
),
|
|
20972
|
-
T &&
|
|
20973
|
-
|
|
20990
|
+
T && L && ee[0] && I.length > 0 && /* @__PURE__ */ N(
|
|
20991
|
+
Md,
|
|
20974
20992
|
{
|
|
20975
20993
|
id: B,
|
|
20976
20994
|
name: u,
|
|
@@ -20982,8 +21000,8 @@ const Id = (e, t) => {
|
|
|
20982
21000
|
ref: _
|
|
20983
21001
|
}
|
|
20984
21002
|
),
|
|
20985
|
-
|
|
20986
|
-
|
|
21003
|
+
L && /* @__PURE__ */ N(
|
|
21004
|
+
Bd,
|
|
20987
21005
|
{
|
|
20988
21006
|
id: B,
|
|
20989
21007
|
name: u,
|
|
@@ -21048,7 +21066,7 @@ const Qa = {
|
|
|
21048
21066
|
const t = Wi();
|
|
21049
21067
|
return t.group = ((n = e.group) == null ? void 0 : n.map((a) => Yt.fromPartial(a))) || [], t;
|
|
21050
21068
|
}
|
|
21051
|
-
},
|
|
21069
|
+
}, zd = (e) => {
|
|
21052
21070
|
const t = Ee(), [n, a] = ye([]), i = Pe(!1), o = Qe(We), { visible: r = !0, groupUrl: l, modelUrl: s, group: c, actions: d } = e, u = et((f, g) => g ? new sn(g == null ? void 0 : g.r, g == null ? void 0 : g.g, g == null ? void 0 : g.b, g == null ? void 0 : g.a) : f || new sn(1, 1, 1, 1), []);
|
|
21053
21071
|
return ue(() => {
|
|
21054
21072
|
if (!i.current && (i.current = !0, l && ln.get(l, {
|
|
@@ -21081,15 +21099,15 @@ const Qa = {
|
|
|
21081
21099
|
if (n.length > 0) {
|
|
21082
21100
|
const I = [], C = [];
|
|
21083
21101
|
for (let T = 0; T < n.length; T++) {
|
|
21084
|
-
const R = n[T],
|
|
21102
|
+
const R = n[T], L = new F((g = R.origin) == null ? void 0 : g.x, (p = R.origin) == null ? void 0 : p.y, (_ = R.origin) == null ? void 0 : _.z), S = R.sliceList;
|
|
21085
21103
|
if (S) {
|
|
21086
21104
|
const B = [], k = [];
|
|
21087
21105
|
for (let E = 0; E < S.length; E++)
|
|
21088
21106
|
B.push(
|
|
21089
|
-
|
|
21107
|
+
L.add(new F((y = S[E].start) == null ? void 0 : y.x, (m = S[E].start) == null ? void 0 : m.y, (x = S[E].start) == null ? void 0 : x.z)).multiply(De(o))
|
|
21090
21108
|
// .add(group[i].offset ?? new Vector3(0, 0, 0)),
|
|
21091
21109
|
), k.push(u(void 0, S[E].color)), E === S.length - 1 && (B.push(
|
|
21092
|
-
|
|
21110
|
+
L.add(new F((P = S[E].end) == null ? void 0 : P.x, (b = S[E].end) == null ? void 0 : b.y, (A = S[E].end) == null ? void 0 : A.z)).multiply(De(o))
|
|
21093
21111
|
// .add(group[i].offset ?? new Vector3(0, 0, 0)),
|
|
21094
21112
|
), k.push(u(void 0, S[E].color)));
|
|
21095
21113
|
I.push(B), C.push(k);
|
|
@@ -21288,7 +21306,7 @@ const Dn = {
|
|
|
21288
21306
|
function jt(e) {
|
|
21289
21307
|
return e != null;
|
|
21290
21308
|
}
|
|
21291
|
-
const
|
|
21309
|
+
const $d = `#version 300 es
|
|
21292
21310
|
precision highp float;
|
|
21293
21311
|
|
|
21294
21312
|
in vec2 vUV;
|
|
@@ -21299,7 +21317,7 @@ out vec4 fragColor;
|
|
|
21299
21317
|
|
|
21300
21318
|
void main(void) {
|
|
21301
21319
|
fragColor = vColor;
|
|
21302
|
-
}`,
|
|
21320
|
+
}`, Wd = `#version 300 es
|
|
21303
21321
|
precision highp float;
|
|
21304
21322
|
|
|
21305
21323
|
// Attributes
|
|
@@ -21327,7 +21345,7 @@ void main(void) {
|
|
|
21327
21345
|
vUV = uv;
|
|
21328
21346
|
|
|
21329
21347
|
vColor = color;
|
|
21330
|
-
}`,
|
|
21348
|
+
}`, Ud = (e) => {
|
|
21331
21349
|
const t = Pe(null), { billboardMode: n = "All", zOffset: a, zOffsetUnits: i } = e, [o, r] = ye(), l = Ee();
|
|
21332
21350
|
return ue(() => {
|
|
21333
21351
|
const s = () => {
|
|
@@ -21346,8 +21364,8 @@ void main(void) {
|
|
|
21346
21364
|
name: e.name,
|
|
21347
21365
|
backFaceCulling: !1,
|
|
21348
21366
|
needDepthPrePass: e.needDepthPrePass,
|
|
21349
|
-
vertex:
|
|
21350
|
-
fragment:
|
|
21367
|
+
vertex: Wd,
|
|
21368
|
+
fragment: $d,
|
|
21351
21369
|
transparencyMode: e.transparencyMode,
|
|
21352
21370
|
alphaMode: e.alphaMode,
|
|
21353
21371
|
options: {
|
|
@@ -21360,7 +21378,7 @@ void main(void) {
|
|
|
21360
21378
|
sideOrientation: Ne.CounterClockWiseSideOrientation
|
|
21361
21379
|
}
|
|
21362
21380
|
);
|
|
21363
|
-
},
|
|
21381
|
+
}, Hd = (e, t) => {
|
|
21364
21382
|
const n = Ee(), a = Pe(null), i = Pe(null), o = Qe(We), { id: r, visible: l = !0, vertices: s, indices: c, colors: d, uvs: u, position: f, customMaterial: g } = e, { title: p, color: _, fontSize: y } = e.style;
|
|
21365
21383
|
return mt(
|
|
21366
21384
|
t,
|
|
@@ -21390,7 +21408,7 @@ void main(void) {
|
|
|
21390
21408
|
ref: i,
|
|
21391
21409
|
setEnabled: l,
|
|
21392
21410
|
children: [
|
|
21393
|
-
/* @__PURE__ */ N("mesh", { name: "curve", ref: a, scaling: new F(1, 1, 1), children: g ? /* @__PURE__ */ N(
|
|
21411
|
+
/* @__PURE__ */ N("mesh", { name: "curve", ref: a, scaling: new F(1, 1, 1), children: g ? /* @__PURE__ */ N(Ud, { name: `material-${r}`, billboardMode: "none" }) : /* @__PURE__ */ N("standardMaterial", { name: `material-${r}`, backFaceCulling: !1 }) }),
|
|
21394
21412
|
/* @__PURE__ */ N(
|
|
21395
21413
|
"transformNode",
|
|
21396
21414
|
{
|
|
@@ -21410,7 +21428,7 @@ void main(void) {
|
|
|
21410
21428
|
]
|
|
21411
21429
|
}
|
|
21412
21430
|
);
|
|
21413
|
-
},
|
|
21431
|
+
}, Vd = ht(Hd), Zi = (e) => {
|
|
21414
21432
|
var k, E;
|
|
21415
21433
|
const t = Ee(), [n, a] = ye([]), [i, o] = ye([]), [r, l] = ye([]), [s, c] = ye([]), [d, u] = ye(), [f, g] = ye(), [p, _] = ye(), { colorCodecs: y } = Qe(qt), {
|
|
21416
21434
|
id: m,
|
|
@@ -21422,7 +21440,7 @@ void main(void) {
|
|
|
21422
21440
|
width: C = 20,
|
|
21423
21441
|
offset: T = new F(0, 0, 0),
|
|
21424
21442
|
direction: R = "right"
|
|
21425
|
-
} = e,
|
|
21443
|
+
} = e, L = pt({ url: x, cacheType: $e.EXACTLY_MATCH }), S = et(
|
|
21426
21444
|
(v, O, z, W, U = !0) => {
|
|
21427
21445
|
if (t) {
|
|
21428
21446
|
const ne = bt.CreateRibbon(
|
|
@@ -21459,8 +21477,8 @@ void main(void) {
|
|
|
21459
21477
|
);
|
|
21460
21478
|
ue(() => {
|
|
21461
21479
|
var v, O, z, W, U;
|
|
21462
|
-
if (
|
|
21463
|
-
const ne = _r.decode(new Uint8Array(
|
|
21480
|
+
if (L) {
|
|
21481
|
+
const ne = _r.decode(new Uint8Array(L)), ee = C / (ne.max - ne.min), G = ne.min < 0 ? -ne.min : 0, le = R === "right" ? C / 2 : C;
|
|
21464
21482
|
console.log(ne);
|
|
21465
21483
|
const re = [], oe = ne.chart.map((X) => {
|
|
21466
21484
|
const Se = X.position ? X.position : {
|
|
@@ -21497,7 +21515,7 @@ void main(void) {
|
|
|
21497
21515
|
(k = e.style) == null ? void 0 : k.offset,
|
|
21498
21516
|
C,
|
|
21499
21517
|
(E = e.style) == null ? void 0 : E.fontSize,
|
|
21500
|
-
|
|
21518
|
+
L,
|
|
21501
21519
|
R
|
|
21502
21520
|
]);
|
|
21503
21521
|
const B = et(() => {
|
|
@@ -21510,7 +21528,7 @@ void main(void) {
|
|
|
21510
21528
|
t && t.activeCamera && (t == null || t.activeCamera.onViewMatrixChangedObservable.removeCallback(v));
|
|
21511
21529
|
};
|
|
21512
21530
|
}, [B, t]), /* @__PURE__ */ N(ge, { children: b && n.length > 0 && r.length > 0 && /* @__PURE__ */ N(
|
|
21513
|
-
|
|
21531
|
+
Vd,
|
|
21514
21532
|
{
|
|
21515
21533
|
id: m,
|
|
21516
21534
|
visible: b,
|
|
@@ -21527,7 +21545,7 @@ void main(void) {
|
|
|
21527
21545
|
customMaterial: A
|
|
21528
21546
|
}
|
|
21529
21547
|
) });
|
|
21530
|
-
},
|
|
21548
|
+
}, Zd = (e) => {
|
|
21531
21549
|
const t = Pe(null), n = Qe(We), { id: a, visible: i = !0, position: o } = e, { title: r, color: l, fontSize: s } = e.style;
|
|
21532
21550
|
return /* @__PURE__ */ N(
|
|
21533
21551
|
"transformNode",
|
|
@@ -21565,11 +21583,11 @@ void main(void) {
|
|
|
21565
21583
|
)
|
|
21566
21584
|
}
|
|
21567
21585
|
);
|
|
21568
|
-
},
|
|
21586
|
+
}, Gd = (e) => {
|
|
21569
21587
|
var x, P;
|
|
21570
21588
|
const t = Ee(), [n, a] = ye(), [i, o] = ye(), [r, l] = ye(), [s, c] = ye([]), { id: d, url: u, visible: f = !0, offset: g = new F(0, 0, 0), color: p, width: _ = 20 } = e, y = pt({ url: u, cacheType: $e.EXACTLY_MATCH }), m = Qe(We);
|
|
21571
21589
|
return ue(() => {
|
|
21572
|
-
var b, A, I, C, T, R,
|
|
21590
|
+
var b, A, I, C, T, R, L, S;
|
|
21573
21591
|
if (y) {
|
|
21574
21592
|
const B = _r.decode(new Uint8Array(y)), k = _ / (B.max - B.min), E = B.min < 0 ? -B.min : 0, v = new F(
|
|
21575
21593
|
(b = B.origin) == null ? void 0 : b.x,
|
|
@@ -21586,7 +21604,7 @@ void main(void) {
|
|
|
21586
21604
|
const W = O[O.length - 1].position;
|
|
21587
21605
|
if (W) {
|
|
21588
21606
|
const U = new F(W.x, W.y, W.z).add(
|
|
21589
|
-
new F(_ / 2 - ((
|
|
21607
|
+
new F(_ / 2 - ((L = e.style) != null && L.fontSize ? e.style.fontSize / 2 : 0), 0, 0)
|
|
21590
21608
|
).add((S = e.style) != null && S.offset ? e.style.offset : new F(0, 0, 0));
|
|
21591
21609
|
o(new F(U.x, U.y, U.z));
|
|
21592
21610
|
}
|
|
@@ -21594,7 +21612,7 @@ void main(void) {
|
|
|
21594
21612
|
}
|
|
21595
21613
|
}, [u, t, g, (x = e.style) == null ? void 0 : x.offset, (P = e.style) == null ? void 0 : P.fontSize, y, m, _]), /* @__PURE__ */ Ve(ge, { children: [
|
|
21596
21614
|
/* @__PURE__ */ N(
|
|
21597
|
-
|
|
21615
|
+
Zd,
|
|
21598
21616
|
{
|
|
21599
21617
|
id: d,
|
|
21600
21618
|
visible: f,
|
|
@@ -21756,7 +21774,7 @@ const Fn = {
|
|
|
21756
21774
|
function Qt(e) {
|
|
21757
21775
|
return e != null;
|
|
21758
21776
|
}
|
|
21759
|
-
const
|
|
21777
|
+
const Yd = (e, t) => {
|
|
21760
21778
|
const n = Ee(), a = Pe(null), i = Pe(null), o = Qe(We), {
|
|
21761
21779
|
id: r,
|
|
21762
21780
|
visible: l = !0,
|
|
@@ -21785,13 +21803,13 @@ const Gd = (e, t) => {
|
|
|
21785
21803
|
onRightClick: m.onRightClick,
|
|
21786
21804
|
onMiddleClick: m.onMiddleClick,
|
|
21787
21805
|
onHover: (b, A, I, C, T) => {
|
|
21788
|
-
var R,
|
|
21806
|
+
var R, L, S, B, k, E;
|
|
21789
21807
|
if (m.onHover && n && x && I) {
|
|
21790
21808
|
const v = I;
|
|
21791
21809
|
for (let O = 0; O < x.length; O++) {
|
|
21792
21810
|
const z = new F(
|
|
21793
21811
|
(R = x[O].start) == null ? void 0 : R.x,
|
|
21794
|
-
(
|
|
21812
|
+
(L = x[O].start) == null ? void 0 : L.y,
|
|
21795
21813
|
(S = x[O].start) == null ? void 0 : S.z
|
|
21796
21814
|
).add(u).multiply(De(o)), W = new F(
|
|
21797
21815
|
(B = x[O].end) == null ? void 0 : B.x,
|
|
@@ -21892,7 +21910,7 @@ const Gd = (e, t) => {
|
|
|
21892
21910
|
),
|
|
21893
21911
|
g
|
|
21894
21912
|
] });
|
|
21895
|
-
},
|
|
21913
|
+
}, Jd = ht(Yd), Xd = (e, t) => {
|
|
21896
21914
|
const n = Pe(null), a = Qe(We);
|
|
21897
21915
|
mt(
|
|
21898
21916
|
t,
|
|
@@ -21939,7 +21957,7 @@ const Gd = (e, t) => {
|
|
|
21939
21957
|
)) : /* @__PURE__ */ N(ge, {})
|
|
21940
21958
|
}
|
|
21941
21959
|
);
|
|
21942
|
-
},
|
|
21960
|
+
}, qd = ht(Xd), Ji = (e) => {
|
|
21943
21961
|
var S, B, k, E, v;
|
|
21944
21962
|
const t = Ee(), [n, a] = ye([]), [i, o] = ye([]), [r, l] = ye([]), [s, c] = ye(), [d, u] = ye([]), [f, g] = ye(0), [p, _] = ye(), { colorIDs: y } = Qe(qt), {
|
|
21945
21963
|
id: m,
|
|
@@ -21951,11 +21969,11 @@ const Gd = (e, t) => {
|
|
|
21951
21969
|
frontSide: C = !1,
|
|
21952
21970
|
customMaterial: T = !1,
|
|
21953
21971
|
actions: R
|
|
21954
|
-
} = e,
|
|
21972
|
+
} = e, L = pt({ url: x, cacheType: $e.EXACTLY_MATCH });
|
|
21955
21973
|
return ue(() => {
|
|
21956
21974
|
var O, z, W, U, ne, ee;
|
|
21957
|
-
if (
|
|
21958
|
-
const G = ja.decode(new Uint8Array(
|
|
21975
|
+
if (L) {
|
|
21976
|
+
const G = ja.decode(new Uint8Array(L)), le = [];
|
|
21959
21977
|
G.layerList.forEach((Ce, V) => {
|
|
21960
21978
|
var Q, Me, Ae, te, xe, fe;
|
|
21961
21979
|
le.push(Ce), V < G.layerList.length && le.push({
|
|
@@ -22010,9 +22028,9 @@ const Gd = (e, t) => {
|
|
|
22010
22028
|
}
|
|
22011
22029
|
u(Se), g(G.layerList ? G.layerList[0].radius : 0);
|
|
22012
22030
|
}
|
|
22013
|
-
}, [x, t, C, I, T, b, y,
|
|
22031
|
+
}, [x, t, C, I, T, b, y, L, P]), /* @__PURE__ */ Ve("transformNode", { name: `node-layer-${m}`, children: [
|
|
22014
22032
|
n.length > 0 && i.length > 0 && /* @__PURE__ */ N(
|
|
22015
|
-
|
|
22033
|
+
Jd,
|
|
22016
22034
|
{
|
|
22017
22035
|
id: m,
|
|
22018
22036
|
name: "tube-layer",
|
|
@@ -22028,7 +22046,7 @@ const Gd = (e, t) => {
|
|
|
22028
22046
|
}
|
|
22029
22047
|
),
|
|
22030
22048
|
d.length > 0 && /* @__PURE__ */ N(
|
|
22031
|
-
|
|
22049
|
+
qd,
|
|
22032
22050
|
{
|
|
22033
22051
|
id: m,
|
|
22034
22052
|
data: d,
|
|
@@ -22048,9 +22066,9 @@ const Gd = (e, t) => {
|
|
|
22048
22066
|
if (d === "start")
|
|
22049
22067
|
m.push(new F(p[R * 3], p[R * 3 + 1], p[R * 3 + 2]));
|
|
22050
22068
|
else {
|
|
22051
|
-
const
|
|
22069
|
+
const L = p.length - 2 * g * 3;
|
|
22052
22070
|
m.push(
|
|
22053
|
-
new F(p[R * 3 +
|
|
22071
|
+
new F(p[R * 3 + L], p[R * 3 + 1 + L], p[R * 3 + 2 + L])
|
|
22054
22072
|
);
|
|
22055
22073
|
}
|
|
22056
22074
|
const P = [], b = [];
|
|
@@ -22096,7 +22114,7 @@ const Gd = (e, t) => {
|
|
|
22096
22114
|
}
|
|
22097
22115
|
), [c.b, c.g, c.r, f, u]);
|
|
22098
22116
|
return /* @__PURE__ */ N("mesh", { name: `${u}-mesh`, ref: n, isPickable: !0, children: y() });
|
|
22099
|
-
},
|
|
22117
|
+
}, Kd = (e) => {
|
|
22100
22118
|
const t = Ee(), n = Pe(null), [a, i] = ye(F.Zero()), [o, r] = ye([]), [l, s] = ye([]), [c, d] = ye([]), [u, f] = ye(""), [g, p] = ye(new F(0, 0, 0)), [_, y] = ye([]), m = Qe(We), {
|
|
22101
22119
|
id: x,
|
|
22102
22120
|
color: P,
|
|
@@ -22106,7 +22124,7 @@ const Gd = (e, t) => {
|
|
|
22106
22124
|
materialType: C = "standard",
|
|
22107
22125
|
actions: T,
|
|
22108
22126
|
tessellation: R = 32,
|
|
22109
|
-
style:
|
|
22127
|
+
style: L
|
|
22110
22128
|
} = e, S = Pe(!1), B = et(
|
|
22111
22129
|
(E) => {
|
|
22112
22130
|
var ee, G, le;
|
|
@@ -22145,10 +22163,10 @@ const Gd = (e, t) => {
|
|
|
22145
22163
|
if (console.log(v), v.sliceList.length === 0)
|
|
22146
22164
|
return;
|
|
22147
22165
|
f(v.name);
|
|
22148
|
-
const O =
|
|
22166
|
+
const O = L != null && L.basePosition && L.basePosition === "top" ? v.sliceList[0].start : v.sliceList[v.sliceList.length - 1].end;
|
|
22149
22167
|
p(new F(O == null ? void 0 : O.x, O == null ? void 0 : O.y, O == null ? void 0 : O.z)), i(new F((z = v.origin) == null ? void 0 : z.x, (W = v.origin) == null ? void 0 : W.y, (U = v.origin) == null ? void 0 : U.z)), B(v);
|
|
22150
22168
|
}));
|
|
22151
|
-
}, [B,
|
|
22169
|
+
}, [B, L == null ? void 0 : L.basePosition, b]), ue(() => {
|
|
22152
22170
|
if (n && n.current && t) {
|
|
22153
22171
|
const E = new Je();
|
|
22154
22172
|
E.positions = o, E.indices = l, E.normals = c, E.applyToMesh(n.current);
|
|
@@ -22219,16 +22237,16 @@ const Gd = (e, t) => {
|
|
|
22219
22237
|
materialType: C
|
|
22220
22238
|
}
|
|
22221
22239
|
),
|
|
22222
|
-
|
|
22240
|
+
L && /* @__PURE__ */ N(
|
|
22223
22241
|
Ka,
|
|
22224
22242
|
{
|
|
22225
22243
|
id: x,
|
|
22226
22244
|
style: {
|
|
22227
22245
|
title: u,
|
|
22228
22246
|
position: g,
|
|
22229
|
-
offset:
|
|
22230
|
-
fontSize:
|
|
22231
|
-
color:
|
|
22247
|
+
offset: L.offset,
|
|
22248
|
+
fontSize: L.fontSize,
|
|
22249
|
+
color: L.color
|
|
22232
22250
|
}
|
|
22233
22251
|
}
|
|
22234
22252
|
),
|
|
@@ -22236,7 +22254,7 @@ const Gd = (e, t) => {
|
|
|
22236
22254
|
]
|
|
22237
22255
|
}
|
|
22238
22256
|
);
|
|
22239
|
-
},
|
|
22257
|
+
}, Qd = (e) => {
|
|
22240
22258
|
const { id: t, visible: n = !0, children: a, offset: i = new F(0, 0, 0) } = e;
|
|
22241
22259
|
return /* @__PURE__ */ N(ge, { children: /* @__PURE__ */ N("transformNode", { name: `tube-${t}`, setEnabled: n, position: i, children: a }) });
|
|
22242
22260
|
};
|
|
@@ -22377,7 +22395,7 @@ const zn = {
|
|
|
22377
22395
|
function en(e) {
|
|
22378
22396
|
return e != null;
|
|
22379
22397
|
}
|
|
22380
|
-
const
|
|
22398
|
+
const jd = [
|
|
22381
22399
|
0,
|
|
22382
22400
|
0.05,
|
|
22383
22401
|
0.1,
|
|
@@ -22399,7 +22417,7 @@ const Qd = [
|
|
|
22399
22417
|
0.9,
|
|
22400
22418
|
0.95,
|
|
22401
22419
|
1
|
|
22402
|
-
],
|
|
22420
|
+
], ep = ({
|
|
22403
22421
|
url: e,
|
|
22404
22422
|
alpha: t = {
|
|
22405
22423
|
typeAlpha0: 1,
|
|
@@ -22412,7 +22430,7 @@ const Qd = [
|
|
|
22412
22430
|
$.useEffect(() => {
|
|
22413
22431
|
console.log("[Geo3DViewer] VoxelGrid Loading: ", e);
|
|
22414
22432
|
}, [e]);
|
|
22415
|
-
const p = (_) =>
|
|
22433
|
+
const p = (_) => jd[_];
|
|
22416
22434
|
return $.useEffect(() => {
|
|
22417
22435
|
if (i && u) {
|
|
22418
22436
|
const _ = es.decode(new Uint8Array(u)), { name: y, origin: m, dataPoints: x, size: P } = _;
|
|
@@ -22427,8 +22445,8 @@ const Qd = [
|
|
|
22427
22445
|
const A = new Float32Array(x.length * 16), I = new Float32Array(x.length * 4);
|
|
22428
22446
|
return x.forEach((C, T) => {
|
|
22429
22447
|
if (C.point) {
|
|
22430
|
-
const R = new F(C.point.x, C.point.y, C.point.z),
|
|
22431
|
-
nr.Compose(S,
|
|
22448
|
+
const R = new F(C.point.x, C.point.y, C.point.z), L = C.rotation ? vn.FromEulerAngles(C.rotation.x, C.rotation.y, C.rotation.z) : vn.Identity(), S = new F(C.vScale + 1, C.vScale + 1, C.vScale + 1);
|
|
22449
|
+
nr.Compose(S, L, R).copyToArray(A, T * 16);
|
|
22432
22450
|
let k = r.colorIDs[C.colorId];
|
|
22433
22451
|
k || (k = sn.FromColor3(he.Random())), I.set(
|
|
22434
22452
|
[k.r, k.g, k.b, p(C.pointType)],
|
|
@@ -22459,7 +22477,7 @@ const Qd = [
|
|
|
22459
22477
|
children: /* @__PURE__ */ N(lf, { name: `voxel-${l}-mat`, typeAlpha: t, ref: f })
|
|
22460
22478
|
}
|
|
22461
22479
|
);
|
|
22462
|
-
},
|
|
22480
|
+
}, tp = (e, t) => {
|
|
22463
22481
|
const {
|
|
22464
22482
|
viewer: n,
|
|
22465
22483
|
camera: a,
|
|
@@ -22485,7 +22503,7 @@ const Qd = [
|
|
|
22485
22503
|
coordinate: C,
|
|
22486
22504
|
tileMaps: T,
|
|
22487
22505
|
pointClickZones: R,
|
|
22488
|
-
progressedAttributeBodies:
|
|
22506
|
+
progressedAttributeBodies: L,
|
|
22489
22507
|
ribbonLayers: S,
|
|
22490
22508
|
intersectingLines: B,
|
|
22491
22509
|
tubeInstances: k,
|
|
@@ -22521,36 +22539,36 @@ const Qd = [
|
|
|
22521
22539
|
u ? /* @__PURE__ */ N(uf, { ...u }) : /* @__PURE__ */ N(ge, {}),
|
|
22522
22540
|
f ? f.map((V) => /* @__PURE__ */ N(Gf, { ...V }, `gridDiagram-${V.url}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22523
22541
|
g ? g.map((V) => /* @__PURE__ */ N(cf, { ...V }, `attributebody-${V.url}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22524
|
-
p ? p.map((V) => /* @__PURE__ */ Ve(
|
|
22542
|
+
p ? p.map((V) => /* @__PURE__ */ Ve(Fd, { ...V, children: [
|
|
22525
22543
|
V.charts ? V.charts.map((Q) => /* @__PURE__ */ N(Zi, { ...Q }, `tubechart-${Q.url}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22526
22544
|
V.layers ? V.layers.map((Q) => /* @__PURE__ */ N(Ji, { ...Q }, `tubelayer-${Q.url}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22527
22545
|
V.tools ? V.tools.map((Q) => /* @__PURE__ */ N(Ui, { ...Q }, `tubelayer-${Q.name}`)) : /* @__PURE__ */ N(ge, {})
|
|
22528
22546
|
] }, `tube-${V.url}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22529
|
-
_ ? _.map((V) => /* @__PURE__ */ N(
|
|
22547
|
+
_ ? _.map((V) => /* @__PURE__ */ N(md, { ...V }, `roadway-${V.url}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22530
22548
|
x ? x.map((V, Q) => /* @__PURE__ */ N(sd, { ...V }, `rayclick-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22531
22549
|
P ? P.map((V, Q) => /* @__PURE__ */ N(Ha, { ...V }, `line-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22532
|
-
b ? b.map((V, Q) => /* @__PURE__ */ N(
|
|
22550
|
+
b ? b.map((V, Q) => /* @__PURE__ */ N(Nd, { ...V }, `spaceheat-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22533
22551
|
A ? /* @__PURE__ */ N(Jf, { target: void 0, distance: 0 }) : /* @__PURE__ */ N(ge, {}),
|
|
22534
22552
|
I ? /* @__PURE__ */ N(Nf, {}) : /* @__PURE__ */ N(ge, {}),
|
|
22535
22553
|
C ? /* @__PURE__ */ N(yf, { ...C }, "coordinate") : /* @__PURE__ */ N(ge, {}),
|
|
22536
|
-
T ? T.map((V, Q) => /* @__PURE__ */ N(
|
|
22554
|
+
T ? T.map((V, Q) => /* @__PURE__ */ N(Id, { ...V }, `tilemap-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22537
22555
|
R ? R.map((V, Q) => /* @__PURE__ */ N(id, { ...V }, `pointClickZone-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22538
|
-
|
|
22556
|
+
L ? L.map((V, Q) => /* @__PURE__ */ N(ad, { ...V }, `progressedAttributeBody-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22539
22557
|
S ? S.map((V, Q) => /* @__PURE__ */ N(ld, { ...V }, `ribbonlayer-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22540
22558
|
B ? B.map((V, Q) => /* @__PURE__ */ N(Yf, { ...V }, `intersectingLine-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22541
|
-
k ? k.map((V, Q) => /* @__PURE__ */ N(
|
|
22559
|
+
k ? k.map((V, Q) => /* @__PURE__ */ N(zd, { ...V }, `tubeinstance-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22542
22560
|
E ? /* @__PURE__ */ N(jf, {}) : /* @__PURE__ */ N(ge, {}),
|
|
22543
|
-
v ? v.map((V, Q) => /* @__PURE__ */ N(
|
|
22561
|
+
v ? v.map((V, Q) => /* @__PURE__ */ N(ep, { ...V }, `voxelgrid-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22544
22562
|
O ? O.map((V, Q) => /* @__PURE__ */ N(od, { ...V }, `planeimage-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22545
22563
|
z ? z.map((V, Q) => /* @__PURE__ */ N(Of, { ...V }, `guitext-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22546
|
-
W && /* @__PURE__ */ N(
|
|
22564
|
+
W && /* @__PURE__ */ N(kd, { ...W }),
|
|
22547
22565
|
U ? U.map((V, Q) => /* @__PURE__ */ N(ed, { ...V }, `particlesystem-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22548
22566
|
ne ? ne.map((V, Q) => /* @__PURE__ */ N(td, { ...V }, `waterEffect-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22549
22567
|
ee ? ee.map((V, Q) => /* @__PURE__ */ N(Cr, { ...V }, `modelLoaders-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22550
22568
|
G ? G.map((V, Q) => /* @__PURE__ */ N(Qf, { ...V }, `modelanimtionloader-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22551
|
-
le ? le.map((V, Q) => /* @__PURE__ */ N(Ho, { ...V, children: /* @__PURE__ */ N(
|
|
22569
|
+
le ? le.map((V, Q) => /* @__PURE__ */ N(Ho, { ...V, children: /* @__PURE__ */ N(vd, {}) }, `animation-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22552
22570
|
re ? re.map((V, Q) => /* @__PURE__ */ N(Ho, { ...V, children: /* @__PURE__ */ N(
|
|
22553
|
-
|
|
22571
|
+
Cd,
|
|
22554
22572
|
{
|
|
22555
22573
|
roadwayWidth: V.roadwayWidth,
|
|
22556
22574
|
textureLength: V.textureLength,
|
|
@@ -22560,7 +22578,7 @@ const Qd = [
|
|
|
22560
22578
|
}
|
|
22561
22579
|
) }, `animation-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22562
22580
|
oe ? oe.map((V, Q) => /* @__PURE__ */ N(Ho, { ...V, children: /* @__PURE__ */ N(
|
|
22563
|
-
|
|
22581
|
+
bd,
|
|
22564
22582
|
{
|
|
22565
22583
|
timeSpeed: V.timeSpeed,
|
|
22566
22584
|
perlinMultiply: V.perlinMultiply,
|
|
@@ -22573,12 +22591,12 @@ const Qd = [
|
|
|
22573
22591
|
) }, `animation-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22574
22592
|
Y ? Y.map((V, Q) => /* @__PURE__ */ N(bf, { ...V }, `contourline-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22575
22593
|
ce ? ce.map((V, Q) => /* @__PURE__ */ N(Ui, { ...V }, `tubeTool-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22576
|
-
ae ? ae.map((V, Q) => /* @__PURE__ */ N(
|
|
22594
|
+
ae ? ae.map((V, Q) => /* @__PURE__ */ N(Qd, { ...V, children: V.main ? V.main.map((Me, Ae) => /* @__PURE__ */ N(Kd, { ...Me }, `tubeMain-${Ae}`)) : null }, `tubeOil-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22577
22595
|
X ? X.map((V, Q) => /* @__PURE__ */ N(Ji, { ...V }, `tubeLayer-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22578
|
-
Se ? Se.map((V, Q) => /* @__PURE__ */ N(
|
|
22596
|
+
Se ? Se.map((V, Q) => /* @__PURE__ */ N(Gd, { ...V }, `tubeChartLine-${Q}`)) : /* @__PURE__ */ N(ge, {}),
|
|
22579
22597
|
Ce ? Ce.map((V, Q) => /* @__PURE__ */ N(Zi, { ...V }, `tubeChart-${Q}`)) : /* @__PURE__ */ N(ge, {})
|
|
22580
22598
|
] });
|
|
22581
|
-
},
|
|
22599
|
+
}, Xp = ht(tp), qp = (e) => {
|
|
22582
22600
|
const t = Ee(), n = Pe(null), { keyFrames: a, speed: i } = e;
|
|
22583
22601
|
return ue(() => {
|
|
22584
22602
|
if (t && n.current && n.current.animations.length === 0) {
|
|
@@ -22860,10 +22878,10 @@ const $n = {
|
|
|
22860
22878
|
function Rt(e) {
|
|
22861
22879
|
return e != null;
|
|
22862
22880
|
}
|
|
22863
|
-
const
|
|
22881
|
+
const Kp = (e) => {
|
|
22864
22882
|
const t = Ee(), [n, a] = ye([]), [i, o] = ye([]), [r, l] = ye(F.Zero()), s = Qe(We), c = Pe(null), d = Pe(!1), [u, f] = ye([]), { url: g, name: p = "rod", visible: _ = !0, color: y } = e, m = et(
|
|
22865
22883
|
(x) => {
|
|
22866
|
-
var T, R,
|
|
22884
|
+
var T, R, L;
|
|
22867
22885
|
const P = x.sliceList.filter((S) => !(S.v.length > 0)).map((S) => {
|
|
22868
22886
|
const B = S.start ? S.start : {
|
|
22869
22887
|
x: 0,
|
|
@@ -22872,7 +22890,7 @@ const qp = (e) => {
|
|
|
22872
22890
|
};
|
|
22873
22891
|
return new F(B.x, B.y, B.z);
|
|
22874
22892
|
}), b = x.sliceList[x.sliceList.length - 1];
|
|
22875
|
-
if (P.length > 0 && P.push(new F((T = b.end) == null ? void 0 : T.x, (R = b.end) == null ? void 0 : R.y, (
|
|
22893
|
+
if (P.length > 0 && P.push(new F((T = b.end) == null ? void 0 : T.x, (R = b.end) == null ? void 0 : R.y, (L = b.end) == null ? void 0 : L.z)), P.length < 1)
|
|
22876
22894
|
return;
|
|
22877
22895
|
const A = bt.CreateTube(
|
|
22878
22896
|
"tube-tmp",
|
|
@@ -22924,8 +22942,8 @@ const qp = (e) => {
|
|
|
22924
22942
|
for (let C = 0; C < u.length; C++) {
|
|
22925
22943
|
const T = u[C], R = x.createInstance("tubeinstance-sphere-" + C);
|
|
22926
22944
|
R.setEnabled(_);
|
|
22927
|
-
const
|
|
22928
|
-
R.position =
|
|
22945
|
+
const L = r.multiply(De(s));
|
|
22946
|
+
R.position = L.add(
|
|
22929
22947
|
new F((P = T.position) == null ? void 0 : P.x, (b = T.position) == null ? void 0 : b.y, (A = T.position) == null ? void 0 : A.z).multiply(
|
|
22930
22948
|
De(s)
|
|
22931
22949
|
)
|
|
@@ -22956,7 +22974,7 @@ const qp = (e) => {
|
|
|
22956
22974
|
}
|
|
22957
22975
|
);
|
|
22958
22976
|
};
|
|
22959
|
-
class
|
|
22977
|
+
class Qp {
|
|
22960
22978
|
constructor(t) {
|
|
22961
22979
|
_e(this, "children", []);
|
|
22962
22980
|
_e(this, "params", {});
|
|
@@ -22983,7 +23001,7 @@ class Kp {
|
|
|
22983
23001
|
n.render(a);
|
|
22984
23002
|
}
|
|
22985
23003
|
}
|
|
22986
|
-
const
|
|
23004
|
+
const np = (e, t) => {
|
|
22987
23005
|
const [n, a] = ye();
|
|
22988
23006
|
return ue(() => {
|
|
22989
23007
|
a(e.props);
|
|
@@ -22996,8 +23014,8 @@ const tp = (e, t) => {
|
|
|
22996
23014
|
}),
|
|
22997
23015
|
[]
|
|
22998
23016
|
), n ? /* @__PURE__ */ N(e.type, { ...n }) : null;
|
|
22999
|
-
},
|
|
23000
|
-
class
|
|
23017
|
+
}, op = ht(np);
|
|
23018
|
+
class rp {
|
|
23001
23019
|
constructor(t, n) {
|
|
23002
23020
|
_e(this, "value");
|
|
23003
23021
|
_e(this, "type");
|
|
@@ -23009,7 +23027,7 @@ class op {
|
|
|
23009
23027
|
}
|
|
23010
23028
|
render() {
|
|
23011
23029
|
var t;
|
|
23012
|
-
return $.createElement(
|
|
23030
|
+
return $.createElement(op, {
|
|
23013
23031
|
ref: this.ref,
|
|
23014
23032
|
key: (t = this.value.id) != null ? t : 0,
|
|
23015
23033
|
props: this.value,
|
|
@@ -23017,8 +23035,8 @@ class op {
|
|
|
23017
23035
|
});
|
|
23018
23036
|
}
|
|
23019
23037
|
}
|
|
23020
|
-
function
|
|
23021
|
-
return new
|
|
23038
|
+
function jp(e, t) {
|
|
23039
|
+
return new rp(e, t);
|
|
23022
23040
|
}
|
|
23023
23041
|
const uo = 1e-8;
|
|
23024
23042
|
function Vo(e, t) {
|
|
@@ -23071,7 +23089,7 @@ function Pr(e, t) {
|
|
|
23071
23089
|
n[a] += t.x, n[a + 1] += t.y, n[a + 2] += t.z;
|
|
23072
23090
|
return n;
|
|
23073
23091
|
}
|
|
23074
|
-
function
|
|
23092
|
+
function ip(e) {
|
|
23075
23093
|
return {
|
|
23076
23094
|
vertices: Pr(
|
|
23077
23095
|
e.points,
|
|
@@ -23107,7 +23125,7 @@ function as(e) {
|
|
|
23107
23125
|
colorId: e.colorId
|
|
23108
23126
|
};
|
|
23109
23127
|
}
|
|
23110
|
-
function
|
|
23128
|
+
function ap(e) {
|
|
23111
23129
|
const t = e[0], n = e[1], a = e[2], i = e[3], o = e[4], r = e[5], l = e[6], s = e[7], c = e[8];
|
|
23112
23130
|
return rs(
|
|
23113
23131
|
{ x: t, y: n, z: a },
|
|
@@ -23115,7 +23133,7 @@ function ip(e) {
|
|
|
23115
23133
|
{ x: l - t, y: s - n, z: c - a }
|
|
23116
23134
|
);
|
|
23117
23135
|
}
|
|
23118
|
-
function
|
|
23136
|
+
function sp(e) {
|
|
23119
23137
|
const [t, n, a, i] = e, o = Vo(i, t), r = Vo(n, t), l = os(o, r), s = mn(l);
|
|
23120
23138
|
if (mn(o) < uo)
|
|
23121
23139
|
throw new Error("Invalid planeCorners: point1 and point4 must define a non-zero edge");
|
|
@@ -23144,13 +23162,13 @@ function ss(e, t) {
|
|
|
23144
23162
|
}
|
|
23145
23163
|
return n;
|
|
23146
23164
|
}
|
|
23147
|
-
function
|
|
23165
|
+
function lp(e, t) {
|
|
23148
23166
|
const n = [];
|
|
23149
23167
|
for (const a of e)
|
|
23150
23168
|
n.push(a.x, a.y, a.z);
|
|
23151
23169
|
return ss(n, t);
|
|
23152
23170
|
}
|
|
23153
|
-
function
|
|
23171
|
+
function cp(e, t, n, a, i) {
|
|
23154
23172
|
const o = (t.v - n.v) * (e.u - n.u) + (n.u - t.u) * (e.v - n.v);
|
|
23155
23173
|
if (Math.abs(o) < 1e-10) return [0, 0, 0, !1];
|
|
23156
23174
|
const r = ((t.v - n.v) * (a - n.u) + (n.u - t.u) * (i - n.v)) / o, l = ((n.v - e.v) * (a - n.u) + (e.u - n.u) * (i - n.v)) / o, s = 1 - r - l;
|
|
@@ -23166,15 +23184,15 @@ function Yo(e, t) {
|
|
|
23166
23184
|
const n = e[t];
|
|
23167
23185
|
return [n.r, n.g, n.b, n.a];
|
|
23168
23186
|
}
|
|
23169
|
-
function
|
|
23187
|
+
function up(e, t, n, a, i, o) {
|
|
23170
23188
|
const { indices: r, values: l, vMin: s, vMax: c, colorId: d } = e, { colorCodecs: u, colorIDs: f, colorCodecKey: g } = o, p = i.data, _ = !!(g && u && u[g]), y = _ ? u[g] : null;
|
|
23171
23189
|
for (let m = 0; m < r.length; m += 3) {
|
|
23172
|
-
const x = r[m], P = r[m + 1], b = r[m + 2], A = a[x], I = a[P], C = a[b], T = Math.max(0, Math.floor(Math.min(A.u, I.u, C.u))), R = Math.min(t - 1, Math.ceil(Math.max(A.u, I.u, C.u))),
|
|
23190
|
+
const x = r[m], P = r[m + 1], b = r[m + 2], A = a[x], I = a[P], C = a[b], T = Math.max(0, Math.floor(Math.min(A.u, I.u, C.u))), R = Math.min(t - 1, Math.ceil(Math.max(A.u, I.u, C.u))), L = Math.max(0, Math.floor(Math.min(A.v, I.v, C.v))), S = Math.min(n - 1, Math.ceil(Math.max(A.v, I.v, C.v)));
|
|
23173
23191
|
let B, k, E;
|
|
23174
23192
|
_ && y ? (B = Go(y, l[x], s, c), k = Go(y, l[P], s, c), E = Go(y, l[b], s, c)) : (B = Yo(f != null ? f : {}, d), k = Yo(f != null ? f : {}, d), E = Yo(f != null ? f : {}, d));
|
|
23175
|
-
for (let v =
|
|
23193
|
+
for (let v = L; v <= S; v++)
|
|
23176
23194
|
for (let O = T; O <= R; O++) {
|
|
23177
|
-
const [z, W, U, ne] =
|
|
23195
|
+
const [z, W, U, ne] = cp(A, I, C, O, v);
|
|
23178
23196
|
if (!ne) continue;
|
|
23179
23197
|
const ee = (v * t + O) * 4;
|
|
23180
23198
|
p[ee] = Math.round(Math.max(0, Math.min(255, (z * B[0] + W * k[0] + U * E[0]) * 255))), p[ee + 1] = Math.round(
|
|
@@ -23193,7 +23211,7 @@ function ea(e) {
|
|
|
23193
23211
|
o.u < t && (t = o.u), o.u > n && (n = o.u), o.v < a && (a = o.v), o.v > i && (i = o.v);
|
|
23194
23212
|
return { minU: t, maxU: n, minV: a, maxV: i };
|
|
23195
23213
|
}
|
|
23196
|
-
function
|
|
23214
|
+
function fp(e, t, n, a) {
|
|
23197
23215
|
var s, c, d;
|
|
23198
23216
|
const i = (s = a.renderScale) != null ? s : 1, o = (c = a.maxCanvasWidth) != null ? c : 8192, r = (d = a.maxCanvasHeight) != null ? d : 8192;
|
|
23199
23217
|
if (a.pixelsPerUnit != null && a.pixelsPerUnit > 0) {
|
|
@@ -23243,20 +23261,20 @@ function ls(e, t) {
|
|
|
23243
23261
|
const n = e.filter((T) => T.vertices.length >= 9 && T.indices.length >= 3), a = n[0];
|
|
23244
23262
|
if (!a)
|
|
23245
23263
|
throw new Error("No valid mesh data to render");
|
|
23246
|
-
const i = t.planeCorners ?
|
|
23264
|
+
const i = t.planeCorners ? sp(t.planeCorners) : ap(a.vertices), o = n.map((T) => ({
|
|
23247
23265
|
meshData: T,
|
|
23248
23266
|
points2D: ta(ss(T.vertices, i), t)
|
|
23249
23267
|
}));
|
|
23250
23268
|
let r = 1 / 0, l = -1 / 0, s = 1 / 0, c = -1 / 0;
|
|
23251
23269
|
if (t.planeCorners) {
|
|
23252
|
-
const T = ea(ta(
|
|
23270
|
+
const T = ea(ta(lp(t.planeCorners, i), t));
|
|
23253
23271
|
r = T.minU, l = T.maxU, s = T.minV, c = T.maxV;
|
|
23254
23272
|
} else
|
|
23255
23273
|
for (const { points2D: T } of o) {
|
|
23256
23274
|
const R = ea(T);
|
|
23257
23275
|
R.minU < r && (r = R.minU), R.maxU > l && (l = R.maxU), R.minV < s && (s = R.minV), R.maxV > c && (c = R.maxV);
|
|
23258
23276
|
}
|
|
23259
|
-
const d = l - r || 1, u = c - s || 1, f = d / u, { width: g, height: p } =
|
|
23277
|
+
const d = l - r || 1, u = c - s || 1, f = d / u, { width: g, height: p } = fp(f, d, u, t);
|
|
23260
23278
|
let _ = g, y = p, m = 0, x = 0;
|
|
23261
23279
|
f > g / p ? (y = g / f, x = (p - y) / 2) : (_ = p * f, m = (g - _) / 2);
|
|
23262
23280
|
const P = _ / d, b = y / u, A = document.createElement("canvas");
|
|
@@ -23265,21 +23283,21 @@ function ls(e, t) {
|
|
|
23265
23283
|
I.fillStyle = "#fff", I.fillRect(0, 0, g, p);
|
|
23266
23284
|
const C = I.getImageData(0, 0, g, p);
|
|
23267
23285
|
for (const { meshData: T, points2D: R } of o) {
|
|
23268
|
-
const
|
|
23286
|
+
const L = R.map((S) => ({
|
|
23269
23287
|
u: (S.u - r) * P + m,
|
|
23270
23288
|
v: (S.v - s) * b + x
|
|
23271
23289
|
}));
|
|
23272
|
-
|
|
23290
|
+
up(T, g, p, L, C, t);
|
|
23273
23291
|
}
|
|
23274
23292
|
return I.putImageData(C, 0, 0), { canvas: A, imageData: C };
|
|
23275
23293
|
}
|
|
23276
23294
|
function bo(e, t) {
|
|
23277
23295
|
return ls([e], t);
|
|
23278
23296
|
}
|
|
23279
|
-
function fp(e, t = {}) {
|
|
23280
|
-
return bo(rp(e), t);
|
|
23281
|
-
}
|
|
23282
23297
|
function dp(e, t = {}) {
|
|
23298
|
+
return bo(ip(e), t);
|
|
23299
|
+
}
|
|
23300
|
+
function pp(e, t = {}) {
|
|
23283
23301
|
var o;
|
|
23284
23302
|
const n = (o = t.sliceIndex) != null ? o : 0, a = e.slices[n];
|
|
23285
23303
|
if (!a)
|
|
@@ -23291,37 +23309,37 @@ function dp(e, t = {}) {
|
|
|
23291
23309
|
z: e.center.z
|
|
23292
23310
|
})), bo(i, t);
|
|
23293
23311
|
}
|
|
23294
|
-
function
|
|
23312
|
+
function eh(e, t = {}) {
|
|
23295
23313
|
return bo(is(e), t);
|
|
23296
23314
|
}
|
|
23297
|
-
function pp(e, t = {}) {
|
|
23298
|
-
return bo(as(e), t);
|
|
23299
|
-
}
|
|
23300
23315
|
function hp(e, t = {}) {
|
|
23301
|
-
return
|
|
23316
|
+
return bo(as(e), t);
|
|
23302
23317
|
}
|
|
23303
23318
|
function mp(e, t = {}) {
|
|
23304
|
-
return
|
|
23319
|
+
return ls(e.map(as), t);
|
|
23305
23320
|
}
|
|
23306
23321
|
function gp(e, t = {}) {
|
|
23307
|
-
return dp(
|
|
23322
|
+
return dp(xr.decode(new Uint8Array(e)), t);
|
|
23308
23323
|
}
|
|
23309
23324
|
function vp(e, t = {}) {
|
|
23310
|
-
return pp(
|
|
23325
|
+
return pp(yr.decode(new Uint8Array(e)), t);
|
|
23326
|
+
}
|
|
23327
|
+
function xp(e, t = {}) {
|
|
23328
|
+
return hp(an.decode(new Uint8Array(e)), t);
|
|
23311
23329
|
}
|
|
23312
|
-
function
|
|
23330
|
+
function yp(e, t, n = {}) {
|
|
23313
23331
|
if (eo.decode(new Uint8Array(e)).formations.length > 0 && t.length === 0)
|
|
23314
23332
|
throw new Error("FormationGroup contains formations but no formation buffers were provided");
|
|
23315
23333
|
const i = t.map((o) => an.decode(new Uint8Array(o)));
|
|
23316
|
-
return
|
|
23334
|
+
return mp(i, n);
|
|
23317
23335
|
}
|
|
23318
|
-
async function
|
|
23336
|
+
async function th(e, t, n = {}) {
|
|
23319
23337
|
const a = await fetch(e);
|
|
23320
23338
|
if (!a.ok) throw new Error(`Failed to fetch slice data: ${a.status} ${a.statusText}`);
|
|
23321
|
-
const i = await a.arrayBuffer(), o = t === "density" ?
|
|
23339
|
+
const i = await a.arrayBuffer(), o = t === "density" ? gp(i, n) : t === "formation" ? vp(i, n) : xp(i, n), r = await Cp(o.canvas);
|
|
23322
23340
|
return URL.createObjectURL(r);
|
|
23323
23341
|
}
|
|
23324
|
-
async function
|
|
23342
|
+
async function nh(e, t = {}) {
|
|
23325
23343
|
var l;
|
|
23326
23344
|
const n = await fetch(e);
|
|
23327
23345
|
if (!n.ok) throw new Error(`Failed to fetch formation group data: ${n.status} ${n.statusText}`);
|
|
@@ -23333,9 +23351,9 @@ async function th(e, t = {}) {
|
|
|
23333
23351
|
return d.arrayBuffer();
|
|
23334
23352
|
})
|
|
23335
23353
|
);
|
|
23336
|
-
return
|
|
23354
|
+
return yp(a, r, t);
|
|
23337
23355
|
}
|
|
23338
|
-
function
|
|
23356
|
+
function Cp(e) {
|
|
23339
23357
|
return new Promise((t, n) => {
|
|
23340
23358
|
e.toBlob(
|
|
23341
23359
|
(a) => {
|
|
@@ -23345,30 +23363,30 @@ function yp(e) {
|
|
|
23345
23363
|
);
|
|
23346
23364
|
});
|
|
23347
23365
|
}
|
|
23348
|
-
function
|
|
23366
|
+
function oh(e) {
|
|
23349
23367
|
return e.toDataURL("image/png");
|
|
23350
23368
|
}
|
|
23351
23369
|
export {
|
|
23352
23370
|
cf as AttributeBody,
|
|
23353
23371
|
hn as AxesViewerPosition,
|
|
23354
|
-
|
|
23372
|
+
Gp as CachePreload,
|
|
23355
23373
|
$e as CacheType,
|
|
23356
23374
|
uf as ColorCodec,
|
|
23357
23375
|
xf as ComplexFormationManager,
|
|
23358
23376
|
yf as Coordinate,
|
|
23359
23377
|
kt as CustomShader,
|
|
23360
23378
|
hr as DarkMetalMaterial,
|
|
23361
|
-
|
|
23379
|
+
Xp as DataBinding,
|
|
23362
23380
|
Va as DensitySlice,
|
|
23363
23381
|
Nf as FPS,
|
|
23364
|
-
|
|
23382
|
+
Yp as FlatMaterial,
|
|
23365
23383
|
mr as FormationFace,
|
|
23366
23384
|
Sf as FormationManager,
|
|
23367
23385
|
Za as FormationSlice,
|
|
23368
23386
|
gr as FormationVolume,
|
|
23369
23387
|
lt as GUIText,
|
|
23370
23388
|
Af as Geo3DCamera,
|
|
23371
|
-
|
|
23389
|
+
Jp as Geo3DUniversalCamera,
|
|
23372
23390
|
Ya as Geo3DViewer,
|
|
23373
23391
|
Gf as GridDiagram,
|
|
23374
23392
|
Ho as Ground,
|
|
@@ -23387,48 +23405,48 @@ export {
|
|
|
23387
23405
|
ad as ProgressedAttributeBody,
|
|
23388
23406
|
tf as ProgressedRemapColorByRedChannelMaterial,
|
|
23389
23407
|
nf as ProgressedRepeatedTextureMaterial,
|
|
23390
|
-
|
|
23408
|
+
ah as PureComponents,
|
|
23391
23409
|
sd as RayClick,
|
|
23392
23410
|
cn as RemapColorByRedChannelMaterial,
|
|
23393
23411
|
Hn as RepeatedTextureMaterial,
|
|
23394
23412
|
ld as RibbonLayer,
|
|
23395
|
-
|
|
23396
|
-
|
|
23397
|
-
|
|
23413
|
+
md as RoadWay,
|
|
23414
|
+
qp as Roam,
|
|
23415
|
+
Kp as Rod,
|
|
23398
23416
|
tn as ScaleMode,
|
|
23399
|
-
|
|
23400
|
-
|
|
23401
|
-
|
|
23402
|
-
|
|
23417
|
+
Qp as Scene,
|
|
23418
|
+
kd as SkyBox,
|
|
23419
|
+
Nd as SpaceHeat,
|
|
23420
|
+
Td as SpaceHeatObjectType,
|
|
23403
23421
|
Wa as StructureLayer,
|
|
23404
|
-
|
|
23405
|
-
|
|
23406
|
-
|
|
23422
|
+
Id as TileMap,
|
|
23423
|
+
Sd as TileMapMode,
|
|
23424
|
+
Fd as Tube,
|
|
23407
23425
|
Zi as TubeChart,
|
|
23408
|
-
|
|
23409
|
-
|
|
23426
|
+
Gd as TubeChartLine,
|
|
23427
|
+
zd as TubeInstance,
|
|
23410
23428
|
Ji as TubeLayer,
|
|
23411
|
-
|
|
23412
|
-
|
|
23429
|
+
Kd as TubeMain,
|
|
23430
|
+
Qd as TubeOil,
|
|
23413
23431
|
Ui as TubeTool,
|
|
23414
|
-
|
|
23415
|
-
|
|
23416
|
-
|
|
23432
|
+
Vp as Utils,
|
|
23433
|
+
ep as VoxelGrid,
|
|
23434
|
+
Zp as calcCompass,
|
|
23417
23435
|
It as calcGUIScale,
|
|
23418
23436
|
nl as calcInvTransformNodeScale,
|
|
23419
23437
|
De as calcTransformNodeScale,
|
|
23420
|
-
|
|
23421
|
-
|
|
23422
|
-
|
|
23423
|
-
|
|
23424
|
-
|
|
23425
|
-
|
|
23426
|
-
|
|
23427
|
-
|
|
23428
|
-
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
|
|
23432
|
-
|
|
23433
|
-
|
|
23438
|
+
Cp as canvasToPngBlob,
|
|
23439
|
+
oh as canvasToPngDataUrl,
|
|
23440
|
+
jp as createComponentInstance,
|
|
23441
|
+
gp as renderDensitySliceFromBuffer,
|
|
23442
|
+
dp as renderDensitySliceToCanvas,
|
|
23443
|
+
xp as renderFormationFromBuffer,
|
|
23444
|
+
yp as renderFormationGroupFromBuffers,
|
|
23445
|
+
nh as renderFormationGroupFromUrl,
|
|
23446
|
+
mp as renderFormationGroupToCanvas,
|
|
23447
|
+
eh as renderFormationSliceToCanvas,
|
|
23448
|
+
vp as renderFormationSlicesFromBuffer,
|
|
23449
|
+
pp as renderFormationSlicesToCanvas,
|
|
23450
|
+
hp as renderFormationToCanvas,
|
|
23451
|
+
th as renderSliceFromUrl
|
|
23434
23452
|
};
|