@pan-ya/libgeo3dviewer 1.7.35 → 1.7.36
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/libgeo3dviewer.cjs.js +14 -14
- package/dist/libgeo3dviewer.es.js +322 -300
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ var ns = Object.defineProperty;
|
|
|
2
2
|
var os = (e, t, n) => t in e ? ns(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var _e = (e, t, n) => os(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { jsx as N, jsxs as Ve, Fragment as me } from "react/jsx-runtime";
|
|
5
|
-
import { ArcRotateCamera as qo, Vector3 as F, Material as Ne, Color3 as he, RawTexture as rs, ShaderMaterial as is, NodeMaterial as Jn, Vector2 as tt, PointerEventTypes as on, Texture as
|
|
5
|
+
import { ArcRotateCamera as qo, Vector3 as F, Material as Ne, Color3 as he, RawTexture as rs, ShaderMaterial as is, NodeMaterial as Jn, Vector2 as tt, PointerEventTypes as on, Texture as Ut, LoadAssetContainerAsync as as, Scalar as ss, Engine as Fe, DynamicTexture as yn, Tags as He, Plane as Qi, Vector4 as Hn, VertexData as Ye, Mesh as ut, MeshBuilder as bt, StandardMaterial as Xn, Constants as Po, AxesViewer as ji, BaseCameraPointersInput as ls, Quaternion as gn, Axis as Cr, Tools as _r, FreeCameraMouseWheelInput as cs, Effect as co, PostProcess as ea, TransformNode as Ko, InspectableType as ta, EngineStore as no, Color4 as sn, FreeCamera as us, PivotTools as Pr, VertexBuffer as Bt, SceneOptimizerOptions as fs, SceneOptimizer as ds, AssetsManager as ps, ParticleSystem as Vo, GPUParticleSystem as hs, VideoTexture as ms, Ray as br, GradientBlockColorStep as kr, MorphTargetManager as gs, Animation as Un, HighlightLayer as vs, Matrix as Qo, SubMesh as xs, AnimationEvent as ys } from "@babylonjs/core";
|
|
6
6
|
import { GPUPicker as na } from "@babylonjs/core/Collisions/gpuPicker";
|
|
7
7
|
import $, { forwardRef as ht, createContext as un, useImperativeHandle as mt, useState as Ce, useEffect as ce, useContext as Qe, useRef as Pe, useCallback as et, isValidElement as Cs, cloneElement as _s, useMemo as Ps, createRef as oa } from "react";
|
|
8
8
|
import { useScene as Ae, useCanvas as bs, useEngine as Kn, Engine as ks, Scene as Ts, Skybox as Ns } from "react-babylonjs";
|
|
@@ -16,7 +16,7 @@ import { GridMaterial as Is } from "@babylonjs/materials";
|
|
|
16
16
|
import "@babylonjs/materials/legacy/legacy-grid";
|
|
17
17
|
import { createRoot as ws } from "react-dom/client";
|
|
18
18
|
import { i as aa, f as Os, c as As, g as Es, d as Ms, r as Ls, a as Rs } from "./TubeUtil-DXs09yUD.js";
|
|
19
|
-
import { P as
|
|
19
|
+
import { P as Qp } 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";
|
|
@@ -427,7 +427,7 @@ function Fs() {
|
|
|
427
427
|
return H > M && (H = M), H === 0 ? 0 : (h.avail_in -= H, e.arraySet(q, h.input, h.next_in, H, te), h.state.wrap === 1 ? h.adler = n(h.adler, q, H, te) : h.state.wrap === 2 && (h.adler = a(h.adler, q, H, te)), h.next_in += H, h.total_in += H, H);
|
|
428
428
|
}
|
|
429
429
|
function Ee(h, q) {
|
|
430
|
-
var te = h.max_chain_length, M = h.strstart, H, J, we = h.prev_length, ke = h.nice_match, Te = h.strstart > h.w_size - W ? h.strstart - (h.w_size - W) : 0, Ge = h.window,
|
|
430
|
+
var te = h.max_chain_length, M = h.strstart, H, J, we = h.prev_length, ke = h.nice_match, Te = h.strstart > h.w_size - W ? h.strstart - (h.w_size - W) : 0, Ge = h.window, Ht = h.w_mask, at = h.prev, Je = h.strstart + U, ct = Ge[M + we - 1], gt = Ge[M + we];
|
|
431
431
|
h.prev_length >= h.good_match && (te >>= 2), ke > h.lookahead && (ke = h.lookahead);
|
|
432
432
|
do
|
|
433
433
|
if (H = q, !(Ge[H + we] !== gt || Ge[H + we - 1] !== ct || Ge[H] !== Ge[M] || Ge[++H] !== Ge[M + 1])) {
|
|
@@ -441,7 +441,7 @@ function Fs() {
|
|
|
441
441
|
ct = Ge[M + we - 1], gt = Ge[M + we];
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
while ((q = at[q &
|
|
444
|
+
while ((q = at[q & Ht]) > Te && --te !== 0);
|
|
445
445
|
return we <= h.lookahead ? we : h.lookahead;
|
|
446
446
|
}
|
|
447
447
|
function ze(h) {
|
|
@@ -687,10 +687,10 @@ function Fs() {
|
|
|
687
687
|
return !h || !h.state ? f : (q = h.state.status, q !== ne && q !== G && q !== ae && q !== oe && q !== j && q !== Y && q !== ue ? Q(h, f) : (h.state = null, q === Y ? Q(h, g) : d));
|
|
688
688
|
}
|
|
689
689
|
function Ie(h, q) {
|
|
690
|
-
var te = q.length, M, H, J, we, ke, Te, Ge,
|
|
690
|
+
var te = q.length, M, H, J, we, ke, Te, Ge, Ht;
|
|
691
691
|
if (!h || !h.state || (M = h.state, we = M.wrap, we === 2 || we === 1 && M.status !== ne || M.lookahead))
|
|
692
692
|
return f;
|
|
693
|
-
for (we === 1 && (h.adler = n(h.adler, q, te, 0)), M.wrap = 0, te >= M.w_size && (we === 0 && (Oe(M.head), M.strstart = 0, M.block_start = 0, M.insert = 0),
|
|
693
|
+
for (we === 1 && (h.adler = n(h.adler, q, te, 0)), M.wrap = 0, te >= M.w_size && (we === 0 && (Oe(M.head), M.strstart = 0, M.block_start = 0, M.insert = 0), Ht = new e.Buf8(M.w_size), e.arraySet(Ht, q, te - M.w_size, M.w_size, 0), q = Ht, te = M.w_size), ke = h.avail_in, Te = h.next_in, Ge = h.input, h.avail_in = te, h.next_in = 0, h.input = q, ze(M); M.lookahead >= z; ) {
|
|
694
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++;
|
|
@@ -1173,7 +1173,7 @@ function Ws() {
|
|
|
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, re, 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, re, w - pe, Ie, h.wnext), pe -= Ie, pe ? (e.arraySet(h.window, re, 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, re) {
|
|
1176
|
-
var w, pe, Ie, h, q, te, M, H, J, we, ke, Te, Ge,
|
|
1176
|
+
var w, pe, Ie, h, q, te, M, H, J, we, ke, Te, Ge, Ht, at = 0, Je, ct, gt, _t, eo, to, st, Tt, dt = new e.Buf8(4), Vt, Ft, yr = (
|
|
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
|
);
|
|
@@ -1392,7 +1392,7 @@ function Ws() {
|
|
|
1392
1392
|
}
|
|
1393
1393
|
for (; w.have < 19; )
|
|
1394
1394
|
w.lens[yr[w.have++]] = 0;
|
|
1395
|
-
if (w.lencode = w.lendyn, w.lenbits = 7,
|
|
1395
|
+
if (w.lencode = w.lendyn, w.lenbits = 7, Vt = { bits: w.lenbits }, Tt = r(o, w.lens, 0, 19, w.lencode, 0, w.work, Vt), w.lenbits = Vt.bits, Tt) {
|
|
1396
1396
|
Z.msg = "invalid code lengths set", w.mode = V;
|
|
1397
1397
|
break;
|
|
1398
1398
|
}
|
|
@@ -1408,7 +1408,7 @@ function Ws() {
|
|
|
1408
1408
|
H >>>= Je, J -= Je, w.lens[w.have++] = gt;
|
|
1409
1409
|
else {
|
|
1410
1410
|
if (gt === 16) {
|
|
1411
|
-
for (
|
|
1411
|
+
for (Ft = Je + 2; J < Ft; ) {
|
|
1412
1412
|
if (te === 0)
|
|
1413
1413
|
break e;
|
|
1414
1414
|
te--, H += pe[h++] << J, J += 8;
|
|
@@ -1419,14 +1419,14 @@ function Ws() {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
st = w.lens[w.have - 1], Te = 3 + (H & 3), H >>>= 2, J -= 2;
|
|
1421
1421
|
} else if (gt === 17) {
|
|
1422
|
-
for (
|
|
1422
|
+
for (Ft = Je + 3; J < Ft; ) {
|
|
1423
1423
|
if (te === 0)
|
|
1424
1424
|
break e;
|
|
1425
1425
|
te--, H += pe[h++] << J, J += 8;
|
|
1426
1426
|
}
|
|
1427
1427
|
H >>>= Je, J -= Je, st = 0, Te = 3 + (H & 7), H >>>= 3, J -= 3;
|
|
1428
1428
|
} else {
|
|
1429
|
-
for (
|
|
1429
|
+
for (Ft = Je + 7; J < Ft; ) {
|
|
1430
1430
|
if (te === 0)
|
|
1431
1431
|
break e;
|
|
1432
1432
|
te--, H += pe[h++] << J, J += 8;
|
|
@@ -1447,11 +1447,11 @@ function Ws() {
|
|
|
1447
1447
|
Z.msg = "invalid code -- missing end-of-block", w.mode = V;
|
|
1448
1448
|
break;
|
|
1449
1449
|
}
|
|
1450
|
-
if (w.lenbits = 9,
|
|
1450
|
+
if (w.lenbits = 9, Vt = { bits: w.lenbits }, Tt = r(i, w.lens, 0, w.nlen, w.lencode, 0, w.work, Vt), w.lenbits = Vt.bits, Tt) {
|
|
1451
1451
|
Z.msg = "invalid literal/lengths set", w.mode = V;
|
|
1452
1452
|
break;
|
|
1453
1453
|
}
|
|
1454
|
-
if (w.distbits = 6, w.distcode = w.distdyn,
|
|
1454
|
+
if (w.distbits = 6, w.distcode = w.distdyn, Vt = { bits: w.distbits }, Tt = r(l, w.lens, w.nlen, w.ndist, w.distcode, 0, w.work, Vt), w.distbits = Vt.bits, Tt) {
|
|
1455
1455
|
Z.msg = "invalid distances set", w.mode = V;
|
|
1456
1456
|
break;
|
|
1457
1457
|
}
|
|
@@ -1492,7 +1492,7 @@ function Ws() {
|
|
|
1492
1492
|
w.extra = ct & 15, w.mode = oe;
|
|
1493
1493
|
case oe:
|
|
1494
1494
|
if (w.extra) {
|
|
1495
|
-
for (
|
|
1495
|
+
for (Ft = w.extra; J < Ft; ) {
|
|
1496
1496
|
if (te === 0)
|
|
1497
1497
|
break e;
|
|
1498
1498
|
te--, H += pe[h++] << J, J += 8;
|
|
@@ -1521,7 +1521,7 @@ function Ws() {
|
|
|
1521
1521
|
w.offset = gt, w.extra = ct & 15, w.mode = Y;
|
|
1522
1522
|
case Y:
|
|
1523
1523
|
if (w.extra) {
|
|
1524
|
-
for (
|
|
1524
|
+
for (Ft = w.extra; J < Ft; ) {
|
|
1525
1525
|
if (te === 0)
|
|
1526
1526
|
break e;
|
|
1527
1527
|
te--, H += pe[h++] << J, J += 8;
|
|
@@ -1541,12 +1541,12 @@ function Ws() {
|
|
|
1541
1541
|
Z.msg = "invalid distance too far back", w.mode = V;
|
|
1542
1542
|
break;
|
|
1543
1543
|
}
|
|
1544
|
-
Te > w.wnext ? (Te -= w.wnext, Ge = w.wsize - Te) : Ge = w.wnext - Te, Te > w.length && (Te = w.length),
|
|
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
1547
|
Te > M && (Te = M), M -= Te, w.length -= Te;
|
|
1548
1548
|
do
|
|
1549
|
-
Ie[q++] =
|
|
1549
|
+
Ie[q++] = Ht[Ge++];
|
|
1550
1550
|
while (--Te);
|
|
1551
1551
|
w.length === 0 && (w.mode = ae);
|
|
1552
1552
|
break;
|
|
@@ -2278,7 +2278,7 @@ function Zs() {
|
|
|
2278
2278
|
})();
|
|
2279
2279
|
})(la);
|
|
2280
2280
|
var Gs = la.exports;
|
|
2281
|
-
const Ys = /* @__PURE__ */ sa(Gs), Js = Bs,
|
|
2281
|
+
const Ys = /* @__PURE__ */ sa(Gs), Js = Bs, Bp = { batchUpdate: Js }, 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 Ys = /* @__PURE__ */ sa(Gs), Js = Bs, Rp = { batchUpdate: Js }, 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(), Dp = (e) => {
|
|
2299
2299
|
if (e instanceof qo) {
|
|
2300
2300
|
const t = e.alpha;
|
|
2301
2301
|
return (t > 0 ? t : Math.PI - t) / Math.PI * 180 % 360;
|
|
@@ -2763,7 +2763,7 @@ const mo = ({
|
|
|
2763
2763
|
if (T === 0)
|
|
2764
2764
|
ie = { buffer: U };
|
|
2765
2765
|
else if (T === 1) {
|
|
2766
|
-
const ne = URL.createObjectURL(new Blob([U])), G = new
|
|
2766
|
+
const ne = URL.createObjectURL(new Blob([U])), G = new Ut(
|
|
2767
2767
|
ne,
|
|
2768
2768
|
a,
|
|
2769
2769
|
!0,
|
|
@@ -2929,7 +2929,7 @@ const mo = ({
|
|
|
2929
2929
|
}, 1e3);
|
|
2930
2930
|
return () => clearInterval(C);
|
|
2931
2931
|
}, [x]), /* @__PURE__ */ N(me, {});
|
|
2932
|
-
},
|
|
2932
|
+
}, Fp = ({ url: e, cacheType: t, assetType: n = xa.BINARY }) => (mo({ url: e, cacheType: t, assetType: n }), /* @__PURE__ */ N(me, {}));
|
|
2933
2933
|
class nl {
|
|
2934
2934
|
constructor(t) {
|
|
2935
2935
|
// 数据帧
|
|
@@ -4383,14 +4383,14 @@ Xe.prototype.finish = function() {
|
|
|
4383
4383
|
Xe._configure = function(e) {
|
|
4384
4384
|
Go = e, Xe.create = ka(), Go._configure();
|
|
4385
4385
|
};
|
|
4386
|
-
var gl =
|
|
4387
|
-
(
|
|
4386
|
+
var gl = Wt, Ta = ba;
|
|
4387
|
+
(Wt.prototype = Object.create(Ta.prototype)).constructor = Wt;
|
|
4388
4388
|
var nn = Cn();
|
|
4389
|
-
function
|
|
4389
|
+
function Wt() {
|
|
4390
4390
|
Ta.call(this);
|
|
4391
4391
|
}
|
|
4392
|
-
|
|
4393
|
-
|
|
4392
|
+
Wt._configure = function() {
|
|
4393
|
+
Wt.alloc = nn._Buffer_allocUnsafe, Wt.writeBytesBuffer = nn.Buffer && nn.Buffer.prototype instanceof Uint8Array && nn.Buffer.prototype.set.name === "set" ? function(t, n, a) {
|
|
4394
4394
|
n.set(t, a);
|
|
4395
4395
|
} : function(t, n, a) {
|
|
4396
4396
|
if (t.copy)
|
|
@@ -4399,21 +4399,21 @@ Ut._configure = function() {
|
|
|
4399
4399
|
n[a++] = t[r++];
|
|
4400
4400
|
};
|
|
4401
4401
|
};
|
|
4402
|
-
|
|
4402
|
+
Wt.prototype.bytes = function(t) {
|
|
4403
4403
|
nn.isString(t) && (t = nn._Buffer_from(t, "base64"));
|
|
4404
4404
|
var n = t.length >>> 0;
|
|
4405
|
-
return this.uint32(n), n && this._push(
|
|
4405
|
+
return this.uint32(n), n && this._push(Wt.writeBytesBuffer, n, t), this;
|
|
4406
4406
|
};
|
|
4407
4407
|
function vl(e, t, n) {
|
|
4408
4408
|
e.length < 40 ? nn.utf8.write(e, t, n) : t.utf8Write ? t.utf8Write(e, n) : t.write(e, n);
|
|
4409
4409
|
}
|
|
4410
|
-
|
|
4410
|
+
Wt.prototype.string = function(t) {
|
|
4411
4411
|
var n = nn.Buffer.byteLength(t);
|
|
4412
4412
|
return this.uint32(n), n && this._push(vl, n, t), this;
|
|
4413
4413
|
};
|
|
4414
|
-
|
|
4414
|
+
Wt._configure();
|
|
4415
4415
|
var Na = rt, Ot = Cn(), Jo, Sa = Ot.LongBits, xl = Ot.utf8;
|
|
4416
|
-
function
|
|
4416
|
+
function Dt(e, t) {
|
|
4417
4417
|
return RangeError("index out of range: " + e.pos + " + " + (t || 1) + " > " + e.len);
|
|
4418
4418
|
}
|
|
4419
4419
|
function rt(e) {
|
|
@@ -4442,7 +4442,7 @@ rt.prototype.uint32 = /* @__PURE__ */ function() {
|
|
|
4442
4442
|
return function() {
|
|
4443
4443
|
if (t = (this.buf[this.pos] & 127) >>> 0, this.buf[this.pos++] < 128 || (t = (t | (this.buf[this.pos] & 127) << 7) >>> 0, this.buf[this.pos++] < 128) || (t = (t | (this.buf[this.pos] & 127) << 14) >>> 0, this.buf[this.pos++] < 128) || (t = (t | (this.buf[this.pos] & 127) << 21) >>> 0, this.buf[this.pos++] < 128) || (t = (t | (this.buf[this.pos] & 15) << 28) >>> 0, this.buf[this.pos++] < 128)) return t;
|
|
4444
4444
|
if ((this.pos += 5) > this.len)
|
|
4445
|
-
throw this.pos = this.len,
|
|
4445
|
+
throw this.pos = this.len, Dt(this, 10);
|
|
4446
4446
|
return t;
|
|
4447
4447
|
};
|
|
4448
4448
|
}();
|
|
@@ -4465,7 +4465,7 @@ function Bo() {
|
|
|
4465
4465
|
} else {
|
|
4466
4466
|
for (; t < 3; ++t) {
|
|
4467
4467
|
if (this.pos >= this.len)
|
|
4468
|
-
throw
|
|
4468
|
+
throw Dt(this);
|
|
4469
4469
|
if (e.lo = (e.lo | (this.buf[this.pos] & 127) << t * 7) >>> 0, this.buf[this.pos++] < 128)
|
|
4470
4470
|
return e;
|
|
4471
4471
|
}
|
|
@@ -4478,7 +4478,7 @@ function Bo() {
|
|
|
4478
4478
|
} else
|
|
4479
4479
|
for (; t < 5; ++t) {
|
|
4480
4480
|
if (this.pos >= this.len)
|
|
4481
|
-
throw
|
|
4481
|
+
throw Dt(this);
|
|
4482
4482
|
if (e.hi = (e.hi | (this.buf[this.pos] & 127) << t * 7 + 3) >>> 0, this.buf[this.pos++] < 128)
|
|
4483
4483
|
return e;
|
|
4484
4484
|
}
|
|
@@ -4492,35 +4492,35 @@ function uo(e, t) {
|
|
|
4492
4492
|
}
|
|
4493
4493
|
rt.prototype.fixed32 = function() {
|
|
4494
4494
|
if (this.pos + 4 > this.len)
|
|
4495
|
-
throw
|
|
4495
|
+
throw Dt(this, 4);
|
|
4496
4496
|
return uo(this.buf, this.pos += 4);
|
|
4497
4497
|
};
|
|
4498
4498
|
rt.prototype.sfixed32 = function() {
|
|
4499
4499
|
if (this.pos + 4 > this.len)
|
|
4500
|
-
throw
|
|
4500
|
+
throw Dt(this, 4);
|
|
4501
4501
|
return uo(this.buf, this.pos += 4) | 0;
|
|
4502
4502
|
};
|
|
4503
4503
|
function Qr() {
|
|
4504
4504
|
if (this.pos + 8 > this.len)
|
|
4505
|
-
throw
|
|
4505
|
+
throw Dt(this, 8);
|
|
4506
4506
|
return new Sa(uo(this.buf, this.pos += 4), uo(this.buf, this.pos += 4));
|
|
4507
4507
|
}
|
|
4508
4508
|
rt.prototype.float = function() {
|
|
4509
4509
|
if (this.pos + 4 > this.len)
|
|
4510
|
-
throw
|
|
4510
|
+
throw Dt(this, 4);
|
|
4511
4511
|
var t = Ot.float.readFloatLE(this.buf, this.pos);
|
|
4512
4512
|
return this.pos += 4, t;
|
|
4513
4513
|
};
|
|
4514
4514
|
rt.prototype.double = function() {
|
|
4515
4515
|
if (this.pos + 8 > this.len)
|
|
4516
|
-
throw
|
|
4516
|
+
throw Dt(this, 4);
|
|
4517
4517
|
var t = Ot.float.readDoubleLE(this.buf, this.pos);
|
|
4518
4518
|
return this.pos += 8, t;
|
|
4519
4519
|
};
|
|
4520
4520
|
rt.prototype.bytes = function() {
|
|
4521
4521
|
var t = this.uint32(), n = this.pos, a = this.pos + t;
|
|
4522
4522
|
if (a > this.len)
|
|
4523
|
-
throw
|
|
4523
|
+
throw Dt(this, t);
|
|
4524
4524
|
if (this.pos += t, Array.isArray(this.buf))
|
|
4525
4525
|
return this.buf.slice(n, a);
|
|
4526
4526
|
if (n === a) {
|
|
@@ -4536,12 +4536,12 @@ rt.prototype.string = function() {
|
|
|
4536
4536
|
rt.prototype.skip = function(t) {
|
|
4537
4537
|
if (typeof t == "number") {
|
|
4538
4538
|
if (this.pos + t > this.len)
|
|
4539
|
-
throw
|
|
4539
|
+
throw Dt(this, t);
|
|
4540
4540
|
this.pos += t;
|
|
4541
4541
|
} else
|
|
4542
4542
|
do
|
|
4543
4543
|
if (this.pos >= this.len)
|
|
4544
|
-
throw
|
|
4544
|
+
throw Dt(this);
|
|
4545
4545
|
while (this.buf[this.pos++] & 128);
|
|
4546
4546
|
return this;
|
|
4547
4547
|
};
|
|
@@ -4738,9 +4738,9 @@ const K = {
|
|
|
4738
4738
|
},
|
|
4739
4739
|
fromJSON(e) {
|
|
4740
4740
|
return {
|
|
4741
|
-
x:
|
|
4742
|
-
y:
|
|
4743
|
-
z:
|
|
4741
|
+
x: $t(e.x) ? globalThis.Number(e.x) : 0,
|
|
4742
|
+
y: $t(e.y) ? globalThis.Number(e.y) : 0,
|
|
4743
|
+
z: $t(e.z) ? globalThis.Number(e.z) : 0
|
|
4744
4744
|
};
|
|
4745
4745
|
},
|
|
4746
4746
|
toJSON(e) {
|
|
@@ -4799,10 +4799,10 @@ const xt = {
|
|
|
4799
4799
|
},
|
|
4800
4800
|
fromJSON(e) {
|
|
4801
4801
|
return {
|
|
4802
|
-
r:
|
|
4803
|
-
g:
|
|
4804
|
-
b:
|
|
4805
|
-
a:
|
|
4802
|
+
r: $t(e.r) ? globalThis.Number(e.r) : 0,
|
|
4803
|
+
g: $t(e.g) ? globalThis.Number(e.g) : 0,
|
|
4804
|
+
b: $t(e.b) ? globalThis.Number(e.b) : 0,
|
|
4805
|
+
a: $t(e.a) ? globalThis.Number(e.a) : 0
|
|
4806
4806
|
};
|
|
4807
4807
|
},
|
|
4808
4808
|
toJSON(e) {
|
|
@@ -4856,9 +4856,9 @@ const yt = {
|
|
|
4856
4856
|
},
|
|
4857
4857
|
fromJSON(e) {
|
|
4858
4858
|
return {
|
|
4859
|
-
x:
|
|
4860
|
-
y:
|
|
4861
|
-
z:
|
|
4859
|
+
x: $t(e.x) ? globalThis.Number(e.x) : 0,
|
|
4860
|
+
y: $t(e.y) ? globalThis.Number(e.y) : 0,
|
|
4861
|
+
z: $t(e.z) ? globalThis.Number(e.z) : 0
|
|
4862
4862
|
};
|
|
4863
4863
|
},
|
|
4864
4864
|
toJSON(e) {
|
|
@@ -4993,7 +4993,7 @@ const je = {
|
|
|
4993
4993
|
return t.vertices = ((n = e.vertices) == null ? void 0 : n.map((l) => l)) || [], t.normals = ((a = e.normals) == null ? void 0 : a.map((l) => l)) || [], t.indices = ((r = e.indices) == null ? void 0 : r.map((l) => l)) || [], t.colors = ((o = e.colors) == null ? void 0 : o.map((l) => l)) || [], t.uv = ((i = e.uv) == null ? void 0 : i.map((l) => l)) || [], t;
|
|
4994
4994
|
}
|
|
4995
4995
|
};
|
|
4996
|
-
function
|
|
4996
|
+
function $t(e) {
|
|
4997
4997
|
return e != null;
|
|
4998
4998
|
}
|
|
4999
4999
|
function kl(e) {
|
|
@@ -5337,12 +5337,12 @@ const Ea = {
|
|
|
5337
5337
|
},
|
|
5338
5338
|
fromJSON(e) {
|
|
5339
5339
|
return {
|
|
5340
|
-
name:
|
|
5341
|
-
frameRate:
|
|
5342
|
-
type:
|
|
5340
|
+
name: Jt(e.name) ? globalThis.String(e.name) : "",
|
|
5341
|
+
frameRate: Jt(e.frameRate) ? globalThis.Number(e.frameRate) : 0,
|
|
5342
|
+
type: Jt(e.type) ? Nl(e.type) : 0,
|
|
5343
5343
|
frames: globalThis.Array.isArray(e == null ? void 0 : e.frames) ? e.frames.map((t) => Tn.fromJSON(t)) : [],
|
|
5344
5344
|
boxes: globalThis.Array.isArray(e == null ? void 0 : e.boxes) ? e.boxes.map((t) => Ct.fromJSON(t)) : [],
|
|
5345
|
-
animType:
|
|
5345
|
+
animType: Jt(e.animType) ? Il(e.animType) : 0,
|
|
5346
5346
|
colors: globalThis.Array.isArray(e == null ? void 0 : e.colors) ? e.colors.map((t) => xt.fromJSON(t)) : []
|
|
5347
5347
|
};
|
|
5348
5348
|
},
|
|
@@ -5393,8 +5393,8 @@ const Et = {
|
|
|
5393
5393
|
},
|
|
5394
5394
|
fromJSON(e) {
|
|
5395
5395
|
return {
|
|
5396
|
-
start:
|
|
5397
|
-
end:
|
|
5396
|
+
start: Jt(e.start) ? globalThis.Number(e.start) : 0,
|
|
5397
|
+
end: Jt(e.end) ? globalThis.Number(e.end) : 0
|
|
5398
5398
|
};
|
|
5399
5399
|
},
|
|
5400
5400
|
toJSON(e) {
|
|
@@ -5458,8 +5458,8 @@ const kn = {
|
|
|
5458
5458
|
},
|
|
5459
5459
|
fromJSON(e) {
|
|
5460
5460
|
return {
|
|
5461
|
-
index:
|
|
5462
|
-
name:
|
|
5461
|
+
index: Jt(e.index) ? globalThis.Number(e.index) : 0,
|
|
5462
|
+
name: Jt(e.name) ? globalThis.String(e.name) : "",
|
|
5463
5463
|
percent: globalThis.Array.isArray(e == null ? void 0 : e.percent) ? e.percent.map((t) => Et.fromJSON(t)) : [],
|
|
5464
5464
|
colorPercent: globalThis.Array.isArray(e == null ? void 0 : e.colorPercent) ? e.colorPercent.map((t) => Et.fromJSON(t)) : []
|
|
5465
5465
|
};
|
|
@@ -5514,7 +5514,7 @@ const Tn = {
|
|
|
5514
5514
|
fromJSON(e) {
|
|
5515
5515
|
return {
|
|
5516
5516
|
node: globalThis.Array.isArray(e == null ? void 0 : e.node) ? e.node.map((t) => kn.fromJSON(t)) : [],
|
|
5517
|
-
time:
|
|
5517
|
+
time: Jt(e.time) ? globalThis.Number(e.time) : 0
|
|
5518
5518
|
};
|
|
5519
5519
|
},
|
|
5520
5520
|
toJSON(e) {
|
|
@@ -5531,7 +5531,7 @@ const Tn = {
|
|
|
5531
5531
|
return t.node = ((n = e.node) == null ? void 0 : n.map((r) => kn.fromPartial(r))) || [], t.time = (a = e.time) != null ? a : 0, t;
|
|
5532
5532
|
}
|
|
5533
5533
|
};
|
|
5534
|
-
function
|
|
5534
|
+
function Jt(e) {
|
|
5535
5535
|
return e != null;
|
|
5536
5536
|
}
|
|
5537
5537
|
function Ol(e) {
|
|
@@ -6845,19 +6845,19 @@ const lr = {
|
|
|
6845
6845
|
},
|
|
6846
6846
|
fromJSON(e) {
|
|
6847
6847
|
return {
|
|
6848
|
-
name:
|
|
6849
|
-
vMin:
|
|
6850
|
-
vMax:
|
|
6851
|
-
xMin:
|
|
6852
|
-
yMin:
|
|
6853
|
-
xMax:
|
|
6854
|
-
yMax:
|
|
6855
|
-
zMin:
|
|
6856
|
-
zMax:
|
|
6848
|
+
name: zt(e.name) ? globalThis.String(e.name) : "",
|
|
6849
|
+
vMin: zt(e.vMin) ? globalThis.Number(e.vMin) : 0,
|
|
6850
|
+
vMax: zt(e.vMax) ? globalThis.Number(e.vMax) : 0,
|
|
6851
|
+
xMin: zt(e.xMin) ? globalThis.Number(e.xMin) : 0,
|
|
6852
|
+
yMin: zt(e.yMin) ? globalThis.Number(e.yMin) : 0,
|
|
6853
|
+
xMax: zt(e.xMax) ? globalThis.Number(e.xMax) : 0,
|
|
6854
|
+
yMax: zt(e.yMax) ? globalThis.Number(e.yMax) : 0,
|
|
6855
|
+
zMin: zt(e.zMin) ? globalThis.Number(e.zMin) : 0,
|
|
6856
|
+
zMax: zt(e.zMax) ? globalThis.Number(e.zMax) : 0,
|
|
6857
6857
|
points: globalThis.Array.isArray(e == null ? void 0 : e.points) ? e.points.map((t) => globalThis.Number(t)) : [],
|
|
6858
6858
|
indices: globalThis.Array.isArray(e == null ? void 0 : e.indices) ? e.indices.map((t) => globalThis.Number(t)) : [],
|
|
6859
6859
|
value: globalThis.Array.isArray(e == null ? void 0 : e.value) ? e.value.map((t) => globalThis.Number(t)) : [],
|
|
6860
|
-
center:
|
|
6860
|
+
center: zt(e.center) ? K.fromJSON(e.center) : void 0
|
|
6861
6861
|
};
|
|
6862
6862
|
},
|
|
6863
6863
|
toJSON(e) {
|
|
@@ -6874,7 +6874,7 @@ const lr = {
|
|
|
6874
6874
|
return t.name = (n = e.name) != null ? n : "", t.vMin = (a = e.vMin) != null ? a : 0, t.vMax = (r = e.vMax) != null ? r : 0, t.xMin = (o = e.xMin) != null ? o : 0, t.yMin = (i = e.yMin) != null ? i : 0, t.xMax = (l = e.xMax) != null ? l : 0, t.yMax = (s = e.yMax) != null ? s : 0, t.zMin = (c = e.zMin) != null ? c : 0, t.zMax = (d = e.zMax) != null ? d : 0, t.points = ((u = e.points) == null ? void 0 : u.map((p) => p)) || [], t.indices = ((f = e.indices) == null ? void 0 : f.map((p) => p)) || [], t.value = ((g = e.value) == null ? void 0 : g.map((p) => p)) || [], t.center = e.center !== void 0 && e.center !== null ? K.fromPartial(e.center) : void 0, t;
|
|
6875
6875
|
}
|
|
6876
6876
|
};
|
|
6877
|
-
function
|
|
6877
|
+
function zt(e) {
|
|
6878
6878
|
return e != null;
|
|
6879
6879
|
}
|
|
6880
6880
|
const Hl = (e, t) => {
|
|
@@ -14086,7 +14086,7 @@ const Wn = (e) => {
|
|
|
14086
14086
|
disableDepthWrite: ne
|
|
14087
14087
|
}
|
|
14088
14088
|
);
|
|
14089
|
-
},
|
|
14089
|
+
}, zp = (e) => /* @__PURE__ */ N(
|
|
14090
14090
|
kt,
|
|
14091
14091
|
{
|
|
14092
14092
|
...e,
|
|
@@ -15834,12 +15834,12 @@ const Da = ({
|
|
|
15834
15834
|
Ye.ComputeNormals(l.vertices, l.indices, x), v.normals = x, v.applyToMesh(y);
|
|
15835
15835
|
}
|
|
15836
15836
|
}, [l, l == null ? void 0 : l.indices, l == null ? void 0 : l.uv, l == null ? void 0 : l.vertices]), ce(() => {
|
|
15837
|
-
const y = new
|
|
15837
|
+
const y = new Ut(r);
|
|
15838
15838
|
if (y.uScale = 500, y.vScale = 0.5, u(y), o) {
|
|
15839
|
-
const x = new
|
|
15839
|
+
const x = new Ut(o);
|
|
15840
15840
|
x.uScale = 500, x.vScale = 0.5, g(x);
|
|
15841
15841
|
}
|
|
15842
|
-
const v = new
|
|
15842
|
+
const v = new Ut(i);
|
|
15843
15843
|
v.uScale = 500, v.vScale = 0.5, _(v);
|
|
15844
15844
|
}, [i, o, r]), /* @__PURE__ */ N(me, { children: /* @__PURE__ */ N(
|
|
15845
15845
|
"transformNode",
|
|
@@ -17590,7 +17590,7 @@ const kf = ({
|
|
|
17590
17590
|
}),
|
|
17591
17591
|
[L, g]
|
|
17592
17592
|
), /* @__PURE__ */ N("universalCamera", { name: "universal-main-camera", position: n, ref: C, maxZ: 0 });
|
|
17593
|
-
},
|
|
17593
|
+
}, $p = ht(Tf);
|
|
17594
17594
|
class Nf extends ls {
|
|
17595
17595
|
constructor() {
|
|
17596
17596
|
super(...arguments);
|
|
@@ -17973,7 +17973,7 @@ const Wa = un(void 0), Rf = (e, t = "BIN") => {
|
|
|
17973
17973
|
return ce(() => {
|
|
17974
17974
|
console.log(
|
|
17975
17975
|
`
|
|
17976
|
-
%c Geo3DViewer Library %c Version: 1.7.
|
|
17976
|
+
%c Geo3DViewer Library %c Version: 1.7.36 %c
|
|
17977
17977
|
`,
|
|
17978
17978
|
"color:#e0e0e0;background:#873e23;padding:5px 0;border-top-left-radius:5px;border-bottom-left-radius:5px;",
|
|
17979
17979
|
"color:#455a64;background:#e0e0e0;padding:5px 0;",
|
|
@@ -18023,7 +18023,7 @@ const Wa = un(void 0), Rf = (e, t = "BIN") => {
|
|
|
18023
18023
|
}
|
|
18024
18024
|
);
|
|
18025
18025
|
}, Ha = ht(Bf);
|
|
18026
|
-
var
|
|
18026
|
+
var Gt = /* @__PURE__ */ ((e) => (e[e.ATTRIBUTE = 0] = "ATTRIBUTE", e[e.COLOR = 1] = "COLOR", e[e.STATIC_ATTRIBUTE = 2] = "STATIC_ATTRIBUTE", e[e.STATIC_COLOR = 3] = "STATIC_COLOR", e[e.UNRECOGNIZED = -1] = "UNRECOGNIZED", e))(Gt || {});
|
|
18027
18027
|
function Df(e) {
|
|
18028
18028
|
switch (e) {
|
|
18029
18029
|
case 0:
|
|
@@ -18127,15 +18127,15 @@ const Va = {
|
|
|
18127
18127
|
},
|
|
18128
18128
|
fromJSON(e) {
|
|
18129
18129
|
return {
|
|
18130
|
-
name:
|
|
18131
|
-
step:
|
|
18132
|
-
xCount:
|
|
18133
|
-
yCount:
|
|
18134
|
-
zCount:
|
|
18135
|
-
xSliceUrl:
|
|
18136
|
-
ySliceUrl:
|
|
18137
|
-
zSliceUrl:
|
|
18138
|
-
mode:
|
|
18130
|
+
name: Zt(e.name) ? globalThis.String(e.name) : "",
|
|
18131
|
+
step: Zt(e.step) ? globalThis.Number(e.step) : 0,
|
|
18132
|
+
xCount: Zt(e.xCount) ? globalThis.Number(e.xCount) : 0,
|
|
18133
|
+
yCount: Zt(e.yCount) ? globalThis.Number(e.yCount) : 0,
|
|
18134
|
+
zCount: Zt(e.zCount) ? globalThis.Number(e.zCount) : 0,
|
|
18135
|
+
xSliceUrl: Zt(e.xSliceUrl) ? globalThis.String(e.xSliceUrl) : "",
|
|
18136
|
+
ySliceUrl: Zt(e.ySliceUrl) ? globalThis.String(e.ySliceUrl) : "",
|
|
18137
|
+
zSliceUrl: Zt(e.zSliceUrl) ? globalThis.String(e.zSliceUrl) : "",
|
|
18138
|
+
mode: Zt(e.mode) ? Df(e.mode) : 0
|
|
18139
18139
|
};
|
|
18140
18140
|
},
|
|
18141
18141
|
toJSON(e) {
|
|
@@ -18151,7 +18151,7 @@ const Va = {
|
|
|
18151
18151
|
return t.name = (n = e.name) != null ? n : "", t.step = (a = e.step) != null ? a : 0, t.xCount = (r = e.xCount) != null ? r : 0, t.yCount = (o = e.yCount) != null ? o : 0, t.zCount = (i = e.zCount) != null ? i : 0, t.xSliceUrl = (l = e.xSliceUrl) != null ? l : "", t.ySliceUrl = (s = e.ySliceUrl) != null ? s : "", t.zSliceUrl = (c = e.zSliceUrl) != null ? c : "", t.mode = (d = e.mode) != null ? d : 0, t;
|
|
18152
18152
|
}
|
|
18153
18153
|
};
|
|
18154
|
-
function
|
|
18154
|
+
function Zt(e) {
|
|
18155
18155
|
return e != null;
|
|
18156
18156
|
}
|
|
18157
18157
|
const zf = ({
|
|
@@ -18170,7 +18170,7 @@ const zf = ({
|
|
|
18170
18170
|
}, [t]), $.useEffect(() => {
|
|
18171
18171
|
if (f) {
|
|
18172
18172
|
const g = Va.decode(new Uint8Array(f)), { xCount: p, zCount: _, xSliceUrl: y, zSliceUrl: v } = g, x = [];
|
|
18173
|
-
if (g.mode ===
|
|
18173
|
+
if (g.mode === Gt.ATTRIBUTE || g.mode === Gt.COLOR) {
|
|
18174
18174
|
if (n <= 0) {
|
|
18175
18175
|
console.error("[Geo3DViewer] 此文件为动态数据文件,step 值必须大于 0"), c([]), u(0);
|
|
18176
18176
|
return;
|
|
@@ -18182,7 +18182,7 @@ const zf = ({
|
|
|
18182
18182
|
for (let b = 0; b < _; b += n)
|
|
18183
18183
|
x.push(v.replace("%s", b.toString())), P = b;
|
|
18184
18184
|
P >= _ && x.push(v.replace("%s", (_ - 1).toString()));
|
|
18185
|
-
} else if (g.mode ===
|
|
18185
|
+
} else if (g.mode === Gt.STATIC_ATTRIBUTE || g.mode === Gt.STATIC_COLOR) {
|
|
18186
18186
|
if (n !== 0) {
|
|
18187
18187
|
console.error(
|
|
18188
18188
|
"[Geo3DViewer] 静态栅状图数据必须传入 step=0 以确认您明确此数据无法使用动态加载模式"
|
|
@@ -18193,7 +18193,7 @@ const zf = ({
|
|
|
18193
18193
|
x.push(y.replace("%s", P.toString()));
|
|
18194
18194
|
}
|
|
18195
18195
|
return c(x), u(
|
|
18196
|
-
g.mode ===
|
|
18196
|
+
g.mode === Gt.ATTRIBUTE ? 1 : g.mode === Gt.COLOR ? 2 : g.mode === Gt.STATIC_ATTRIBUTE ? 1 : g.mode === Gt.STATIC_COLOR ? 2 : 0
|
|
18197
18197
|
), () => {
|
|
18198
18198
|
c([]), u(0);
|
|
18199
18199
|
};
|
|
@@ -18298,7 +18298,27 @@ const zf = ({
|
|
|
18298
18298
|
}, Za = (e) => {
|
|
18299
18299
|
const t = e.getChildren();
|
|
18300
18300
|
return t.length > 0 ? [e, ...Za(t[0])] : [e];
|
|
18301
|
-
}, Wf = ({
|
|
18301
|
+
}, Wf = (e) => {
|
|
18302
|
+
if (!e.hasVertexAlpha)
|
|
18303
|
+
return !1;
|
|
18304
|
+
const t = e.getVertexBuffer(Bt.ColorKind), n = e.getVerticesData(Bt.ColorKind);
|
|
18305
|
+
if (!t || !n)
|
|
18306
|
+
return !1;
|
|
18307
|
+
const a = t.getSize();
|
|
18308
|
+
if (a < 4)
|
|
18309
|
+
return !1;
|
|
18310
|
+
let r = !1, o = !1;
|
|
18311
|
+
for (let i = 3; i < n.length; i += a) {
|
|
18312
|
+
const l = n[i];
|
|
18313
|
+
if (!Number.isFinite(l))
|
|
18314
|
+
return !0;
|
|
18315
|
+
if (r = !0, l > 1 / 255) {
|
|
18316
|
+
o = !0;
|
|
18317
|
+
break;
|
|
18318
|
+
}
|
|
18319
|
+
}
|
|
18320
|
+
return r && !o;
|
|
18321
|
+
}, Hf = ({
|
|
18302
18322
|
name: e,
|
|
18303
18323
|
url: t,
|
|
18304
18324
|
position: n = F.Zero(),
|
|
@@ -18404,7 +18424,9 @@ const zf = ({
|
|
|
18404
18424
|
}, [x, e, p]), $.useEffect(() => {
|
|
18405
18425
|
x && x.rootNodes.forEach((U) => {
|
|
18406
18426
|
U.getChildMeshes().forEach((W) => {
|
|
18407
|
-
W
|
|
18427
|
+
Wf(W) && (console.warn(
|
|
18428
|
+
`[Geo3DViewer] ModelLoader disabled broken vertex alpha for ${W.name || e}`
|
|
18429
|
+
), W.hasVertexAlpha = !1), W.material && (W.material.alpha = c, W.material.transparencyMode = c < 1 ? Ne.MATERIAL_ALPHABLEND : Ne.MATERIAL_OPAQUE);
|
|
18408
18430
|
});
|
|
18409
18431
|
});
|
|
18410
18432
|
}, [x, c]), /* @__PURE__ */ N(
|
|
@@ -18466,7 +18488,7 @@ const zf = ({
|
|
|
18466
18488
|
)
|
|
18467
18489
|
}
|
|
18468
18490
|
);
|
|
18469
|
-
}, gr = ht(
|
|
18491
|
+
}, gr = ht(Hf), Vf = ({
|
|
18470
18492
|
name: e,
|
|
18471
18493
|
url: t,
|
|
18472
18494
|
position: n = F.Zero(),
|
|
@@ -18505,7 +18527,7 @@ const zf = ({
|
|
|
18505
18527
|
ref: c
|
|
18506
18528
|
}
|
|
18507
18529
|
);
|
|
18508
|
-
},
|
|
18530
|
+
}, Zf = ht(Vf), Gf = () => {
|
|
18509
18531
|
const e = Ae();
|
|
18510
18532
|
return $.useEffect(() => {
|
|
18511
18533
|
if (e) {
|
|
@@ -18517,7 +18539,7 @@ const zf = ({
|
|
|
18517
18539
|
};
|
|
18518
18540
|
}
|
|
18519
18541
|
}, [e]), /* @__PURE__ */ N(me, {});
|
|
18520
|
-
},
|
|
18542
|
+
}, Yf = (e) => {
|
|
18521
18543
|
const { name: t, url: n, rootURL: a, doNotStart: r, capacity: o, position: i = new F() } = e, l = Ae(), [s, c] = Ce();
|
|
18522
18544
|
return ce(() => () => {
|
|
18523
18545
|
s && s.dispose();
|
|
@@ -18534,7 +18556,7 @@ const zf = ({
|
|
|
18534
18556
|
s && (s.dispose(), console.log(t, "effect disposed!"));
|
|
18535
18557
|
};
|
|
18536
18558
|
}, [o, r, t, s, i, a, l, n]), null;
|
|
18537
|
-
},
|
|
18559
|
+
}, Jf = (e) => {
|
|
18538
18560
|
const {
|
|
18539
18561
|
id: t,
|
|
18540
18562
|
position: n,
|
|
@@ -18560,7 +18582,7 @@ const zf = ({
|
|
|
18560
18582
|
fluidRender: S
|
|
18561
18583
|
} = e, C = Ae(), [k, L] = Ce(), R = Pe(null);
|
|
18562
18584
|
return ce(() => {
|
|
18563
|
-
k && (k.blendMode = l, s && (k.color1 = s), c && (k.color2 = c), d && (k.colorDead = d), u !== void 0 && (k.minSize = u), f !== void 0 && (k.maxSize = f), g !== void 0 && (k.minLifeTime = g), p !== void 0 && (k.maxLifeTime = p), y !== void 0 && (k.minEmitPower = y), v !== void 0 && (k.maxEmitPower = v), x !== void 0 && (k.updateSpeed = x), k.preWarmCycles = 60 * 8, _ && (k.gravity = _), k.createConeEmitter(E, b), P && (k.particleTexture = new
|
|
18585
|
+
k && (k.blendMode = l, s && (k.color1 = s), c && (k.color2 = c), d && (k.colorDead = d), u !== void 0 && (k.minSize = u), f !== void 0 && (k.maxSize = f), g !== void 0 && (k.minLifeTime = g), p !== void 0 && (k.maxLifeTime = p), y !== void 0 && (k.minEmitPower = y), v !== void 0 && (k.maxEmitPower = v), x !== void 0 && (k.updateSpeed = x), k.preWarmCycles = 60 * 8, _ && (k.gravity = _), k.createConeEmitter(E, b), P && (k.particleTexture = new Ut(P), k.particleTexture.onLoadObservable.add(() => {
|
|
18564
18586
|
k.start();
|
|
18565
18587
|
})));
|
|
18566
18588
|
}, [
|
|
@@ -18614,7 +18636,7 @@ const zf = ({
|
|
|
18614
18636
|
]), ce(() => {
|
|
18615
18637
|
k && (k.emitter = n, k.emitRate = i);
|
|
18616
18638
|
}, [i, k, n]), null;
|
|
18617
|
-
},
|
|
18639
|
+
}, Xf = (e, t) => {
|
|
18618
18640
|
var S, C, k;
|
|
18619
18641
|
const n = Ae(), a = Qe(Ue), {
|
|
18620
18642
|
name: r,
|
|
@@ -18697,9 +18719,9 @@ const zf = ({
|
|
|
18697
18719
|
]
|
|
18698
18720
|
}
|
|
18699
18721
|
);
|
|
18700
|
-
},
|
|
18701
|
-
var
|
|
18702
|
-
const
|
|
18722
|
+
}, qf = ht(Xf);
|
|
18723
|
+
var Kf = /* @__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))(Kf || {});
|
|
18724
|
+
const Qf = ({
|
|
18703
18725
|
size: e,
|
|
18704
18726
|
alpha: t = 1,
|
|
18705
18727
|
position: n,
|
|
@@ -18786,7 +18808,7 @@ const Kf = ({
|
|
|
18786
18808
|
]
|
|
18787
18809
|
}
|
|
18788
18810
|
);
|
|
18789
|
-
},
|
|
18811
|
+
}, jf = ({
|
|
18790
18812
|
name: e,
|
|
18791
18813
|
url: t,
|
|
18792
18814
|
offset: n = F.Zero(),
|
|
@@ -19024,7 +19046,7 @@ const Kf = ({
|
|
|
19024
19046
|
)
|
|
19025
19047
|
}
|
|
19026
19048
|
) });
|
|
19027
|
-
},
|
|
19049
|
+
}, ed = ({ onPick: e, pickAll: t = !1 }) => {
|
|
19028
19050
|
const n = Ae(), a = Qe(Ue), r = Pe(null), o = Pe([]), i = Pe(!1), l = et(
|
|
19029
19051
|
(f) => {
|
|
19030
19052
|
if (!f) {
|
|
@@ -19099,7 +19121,7 @@ const Kf = ({
|
|
|
19099
19121
|
var f;
|
|
19100
19122
|
(f = r.current) == null || f.dispose(), r.current = null, o.current = [], i.current = !1;
|
|
19101
19123
|
}, []), /* @__PURE__ */ N(me, {});
|
|
19102
|
-
},
|
|
19124
|
+
}, td = ({
|
|
19103
19125
|
name: e,
|
|
19104
19126
|
paths: t,
|
|
19105
19127
|
color: n,
|
|
@@ -19186,7 +19208,7 @@ const Kf = ({
|
|
|
19186
19208
|
]
|
|
19187
19209
|
}
|
|
19188
19210
|
);
|
|
19189
|
-
},
|
|
19211
|
+
}, nd = `#ifdef GL_ES
|
|
19190
19212
|
precision highp float;
|
|
19191
19213
|
#endif
|
|
19192
19214
|
|
|
@@ -19228,7 +19250,7 @@ void main(void) {
|
|
|
19228
19250
|
}
|
|
19229
19251
|
|
|
19230
19252
|
gl_FragColor = vec4(frag, 1.0);
|
|
19231
|
-
}`,
|
|
19253
|
+
}`, od = `#ifdef GL_ES
|
|
19232
19254
|
precision highp float;
|
|
19233
19255
|
#endif
|
|
19234
19256
|
|
|
@@ -19254,7 +19276,7 @@ void main(void) {
|
|
|
19254
19276
|
vPosition = vec3(world * vec4(position, 1.0));
|
|
19255
19277
|
//vNormal = normalize(mat3(world) * normal);
|
|
19256
19278
|
|
|
19257
|
-
}`,
|
|
19279
|
+
}`, rd = (e) => {
|
|
19258
19280
|
const t = Pe(null), { startPercent: n, endPercent: a, backgroundColor: r, color: o, zOffset: i, zOffsetUnits: l, start: s, end: c } = e;
|
|
19259
19281
|
return ce(() => {
|
|
19260
19282
|
t.current && (t.current.setColor3("color", o), t.current.setColor3(
|
|
@@ -19268,8 +19290,8 @@ void main(void) {
|
|
|
19268
19290
|
name: e.name,
|
|
19269
19291
|
backFaceCulling: e.backFaceCulling,
|
|
19270
19292
|
needDepthPrePass: e.needDepthPrePass,
|
|
19271
|
-
vertex:
|
|
19272
|
-
fragment:
|
|
19293
|
+
vertex: od,
|
|
19294
|
+
fragment: nd,
|
|
19273
19295
|
transparencyMode: e.transparencyMode,
|
|
19274
19296
|
alphaMode: e.alphaMode,
|
|
19275
19297
|
options: {
|
|
@@ -19291,13 +19313,13 @@ void main(void) {
|
|
|
19291
19313
|
sideOrientation: Ne.CounterClockWiseSideOrientation
|
|
19292
19314
|
}
|
|
19293
19315
|
);
|
|
19294
|
-
},
|
|
19316
|
+
}, id = (e, t) => {
|
|
19295
19317
|
ce(() => {
|
|
19296
19318
|
e.current && (e.current.metadata = {
|
|
19297
19319
|
pickable: t
|
|
19298
19320
|
});
|
|
19299
19321
|
}, [t, e]);
|
|
19300
|
-
},
|
|
19322
|
+
}, ad = (e, t) => {
|
|
19301
19323
|
const n = Ae(), a = Pe(null), r = Pe(null), o = Qe(Ue), {
|
|
19302
19324
|
id: i,
|
|
19303
19325
|
visible: l = !0,
|
|
@@ -19327,7 +19349,7 @@ void main(void) {
|
|
|
19327
19349
|
const L = new Ye();
|
|
19328
19350
|
L.positions = s, L.indices = c, d && v !== "pbr-dark" && v !== "pbr-light" && (L.colors = d), L.applyToMesh(a.current);
|
|
19329
19351
|
}
|
|
19330
|
-
}, [c, s, n, d, i, v]),
|
|
19352
|
+
}, [c, s, n, d, i, v]), id(
|
|
19331
19353
|
a,
|
|
19332
19354
|
S && C ? {
|
|
19333
19355
|
onLeftClick: S.onLeftClick,
|
|
@@ -19354,7 +19376,7 @@ void main(void) {
|
|
|
19354
19376
|
);
|
|
19355
19377
|
if (v === "percent")
|
|
19356
19378
|
return /* @__PURE__ */ N(
|
|
19357
|
-
|
|
19379
|
+
rd,
|
|
19358
19380
|
{
|
|
19359
19381
|
name: `${E}-percentmaterial-${i}`,
|
|
19360
19382
|
backgroundColor: u,
|
|
@@ -19413,7 +19435,7 @@ void main(void) {
|
|
|
19413
19435
|
),
|
|
19414
19436
|
x
|
|
19415
19437
|
] });
|
|
19416
|
-
}, Yn = ht(
|
|
19438
|
+
}, Yn = ht(ad), sd = (e) => {
|
|
19417
19439
|
const [t, n] = Ce({
|
|
19418
19440
|
top: {
|
|
19419
19441
|
vertices: [],
|
|
@@ -19600,7 +19622,7 @@ void main(void) {
|
|
|
19600
19622
|
) : null
|
|
19601
19623
|
] }))
|
|
19602
19624
|
] });
|
|
19603
|
-
},
|
|
19625
|
+
}, ld = (e) => {
|
|
19604
19626
|
const { id: t, node: n } = e, [a, r] = Ce([]), [o, i] = Ce([]), l = (c, d) => {
|
|
19605
19627
|
const u = [];
|
|
19606
19628
|
let f = 0;
|
|
@@ -19660,7 +19682,7 @@ void main(void) {
|
|
|
19660
19682
|
},
|
|
19661
19683
|
f
|
|
19662
19684
|
)) }, d)) });
|
|
19663
|
-
},
|
|
19685
|
+
}, cd = (e) => {
|
|
19664
19686
|
const { nodes: t } = e, n = Pe(null), a = Pe([]), [r, o] = Ce(), i = (l) => {
|
|
19665
19687
|
const s = [];
|
|
19666
19688
|
for (let d = 0; d < l.length; d++)
|
|
@@ -19700,7 +19722,7 @@ void main(void) {
|
|
|
19700
19722
|
};
|
|
19701
19723
|
}, [t]), /* @__PURE__ */ Ve(me, { children: [
|
|
19702
19724
|
t && t.map((l, s) => a.current.find((d) => d === l.name) ? null : /* @__PURE__ */ N(
|
|
19703
|
-
|
|
19725
|
+
ld,
|
|
19704
19726
|
{
|
|
19705
19727
|
id: s,
|
|
19706
19728
|
node: l
|
|
@@ -19725,10 +19747,10 @@ void main(void) {
|
|
|
19725
19747
|
}
|
|
19726
19748
|
)
|
|
19727
19749
|
] });
|
|
19728
|
-
},
|
|
19750
|
+
}, ud = (e) => {
|
|
19729
19751
|
const { url: t, zOffset: n, zOffsetUnits: a, uScale: r, vScale: o, isBlink: i } = e, [l, s] = Ce(), [c, d] = Ce(1);
|
|
19730
19752
|
return ce(() => {
|
|
19731
|
-
const u = new
|
|
19753
|
+
const u = new Ut(t);
|
|
19732
19754
|
u.hasAlpha = !0, u.uScale = r, u.vScale = o, s(u);
|
|
19733
19755
|
}, [t, r, o]), ce(() => {
|
|
19734
19756
|
const u = setInterval(() => {
|
|
@@ -19755,7 +19777,7 @@ void main(void) {
|
|
|
19755
19777
|
sideOrientation: Ne.CounterClockWiseSideOrientation
|
|
19756
19778
|
}
|
|
19757
19779
|
);
|
|
19758
|
-
},
|
|
19780
|
+
}, fd = (e) => {
|
|
19759
19781
|
const { node: t, roadwayWidth: n, textureLength: a, url: r, visible: o = !0, isBlink: i = !0 } = e, [l, s] = Ce(), c = Pe(null), [d, u] = Ce(), [f, g] = Ce(!1), [p, _] = Ce(1), y = (v, x, P, b) => {
|
|
19760
19782
|
const S = F.Distance(v, x) / b, C = F.Distance(v, P), k = Math.floor(C / S);
|
|
19761
19783
|
return Math.min(k, b - 1);
|
|
@@ -19791,7 +19813,7 @@ void main(void) {
|
|
|
19791
19813
|
setEnabled: f && o,
|
|
19792
19814
|
scaling: new F(p, 1, 1),
|
|
19793
19815
|
children: /* @__PURE__ */ N(
|
|
19794
|
-
|
|
19816
|
+
ud,
|
|
19795
19817
|
{
|
|
19796
19818
|
name: t.name,
|
|
19797
19819
|
alphaMode: Fe.ALPHA_COMBINE,
|
|
@@ -19806,10 +19828,10 @@ void main(void) {
|
|
|
19806
19828
|
)
|
|
19807
19829
|
}
|
|
19808
19830
|
) });
|
|
19809
|
-
},
|
|
19831
|
+
}, dd = (e) => {
|
|
19810
19832
|
const { nodes: t, roadwayWidth: n = 2, textureLength: a = 4, url: r, visible: o = !0, isBlink: i = !0 } = e;
|
|
19811
19833
|
return /* @__PURE__ */ N(me, { children: t && t.map((l, s) => /* @__PURE__ */ N(
|
|
19812
|
-
|
|
19834
|
+
fd,
|
|
19813
19835
|
{
|
|
19814
19836
|
node: l,
|
|
19815
19837
|
roadwayWidth: n,
|
|
@@ -19821,7 +19843,7 @@ void main(void) {
|
|
|
19821
19843
|
s
|
|
19822
19844
|
)) });
|
|
19823
19845
|
};
|
|
19824
|
-
class
|
|
19846
|
+
class pd {
|
|
19825
19847
|
constructor(t, n, a) {
|
|
19826
19848
|
_e(this, "sourceVertex");
|
|
19827
19849
|
_e(this, "targetVertex");
|
|
@@ -19842,7 +19864,7 @@ class dd {
|
|
|
19842
19864
|
return this._influence;
|
|
19843
19865
|
}
|
|
19844
19866
|
}
|
|
19845
|
-
const
|
|
19867
|
+
const hd = ({
|
|
19846
19868
|
position: e = F.Zero(),
|
|
19847
19869
|
id: t,
|
|
19848
19870
|
node: n,
|
|
@@ -19870,7 +19892,7 @@ const pd = ({
|
|
|
19870
19892
|
const E = v.current;
|
|
19871
19893
|
E.getBlockByName("MaskEnabled").value = 0, E.build(!1, !0, !0);
|
|
19872
19894
|
const S = n.start, C = n.end, k = F.Normalize(C.subtract(S)), L = Math.asin(k.y), R = Math.atan2(k.x, k.z), I = new F(-L, R, 0);
|
|
19873
|
-
return y(I), b.morphTargetManager = new gs(), b.morphTargetManager.enableNormalMorphing = !0, P.current = b.getVerticesData(
|
|
19895
|
+
return y(I), b.morphTargetManager = new gs(), 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 = v.current, () => {
|
|
19874
19896
|
var B;
|
|
19875
19897
|
(B = v.current) == null || B.dispose();
|
|
19876
19898
|
};
|
|
@@ -19879,7 +19901,7 @@ const pd = ({
|
|
|
19879
19901
|
const b = g.current, E = g.current;
|
|
19880
19902
|
if (b && E) {
|
|
19881
19903
|
console.log(`[Geo3DViewer] 正在更新 ${t} / ${n.name} 的进度 Time: ${n.time / 1e3}`);
|
|
19882
|
-
const S = E.getVerticesData(
|
|
19904
|
+
const S = E.getVerticesData(Bt.PositionKind).slice(0);
|
|
19883
19905
|
S.length === 0 && console.log("[Geo3DViewer] 水模拟 SourceKind 为空", t, n.name), E.updateMeshPositions((R) => {
|
|
19884
19906
|
for (let I = 0; I < R.length; I++)
|
|
19885
19907
|
R[I] = P.current[I];
|
|
@@ -19893,12 +19915,12 @@ const pd = ({
|
|
|
19893
19915
|
tt.Zero(),
|
|
19894
19916
|
tt.One(),
|
|
19895
19917
|
!1
|
|
19896
|
-
).getVerticesData(
|
|
19918
|
+
).getVerticesData(Bt.PositionKind).slice(0);
|
|
19897
19919
|
C.length === 0 && console.log("[Geo3DViewer] 水模拟 SourceKind 为空", t, n.name), b.updateMeshPositions((R) => {
|
|
19898
19920
|
for (let I = 0; I < R.length; I++)
|
|
19899
19921
|
R[I] = C[I];
|
|
19900
19922
|
});
|
|
19901
|
-
const k = new
|
|
19923
|
+
const k = new pd(S, C, b), L = new Un(
|
|
19902
19924
|
"waterAnimation",
|
|
19903
19925
|
"influence",
|
|
19904
19926
|
1e3 / 30,
|
|
@@ -19974,10 +19996,10 @@ const pd = ({
|
|
|
19974
19996
|
]
|
|
19975
19997
|
}
|
|
19976
19998
|
) });
|
|
19977
|
-
},
|
|
19999
|
+
}, md = (e) => {
|
|
19978
20000
|
const { nodes: t } = e;
|
|
19979
20001
|
return /* @__PURE__ */ N(me, { children: t && t.map((n, a) => /* @__PURE__ */ N(
|
|
19980
|
-
|
|
20002
|
+
hd,
|
|
19981
20003
|
{
|
|
19982
20004
|
id: a,
|
|
19983
20005
|
node: n,
|
|
@@ -19994,7 +20016,7 @@ const pd = ({
|
|
|
19994
20016
|
},
|
|
19995
20017
|
n.name
|
|
19996
20018
|
)) });
|
|
19997
|
-
},
|
|
20019
|
+
}, gd = (e) => {
|
|
19998
20020
|
const { rootUrl: t, size: n = 1e3, name: a = "skybox" } = e;
|
|
19999
20021
|
return /* @__PURE__ */ N(Ns, { rootUrl: t, size: n, name: a });
|
|
20000
20022
|
};
|
|
@@ -20123,8 +20145,8 @@ const Ln = {
|
|
|
20123
20145
|
function $n(e) {
|
|
20124
20146
|
return e != null;
|
|
20125
20147
|
}
|
|
20126
|
-
var
|
|
20127
|
-
const
|
|
20148
|
+
var vd = /* @__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))(vd || {});
|
|
20149
|
+
const xd = ({
|
|
20128
20150
|
url: e,
|
|
20129
20151
|
colorCodec: t,
|
|
20130
20152
|
alpha: n = 1,
|
|
@@ -20264,8 +20286,8 @@ const vd = ({
|
|
|
20264
20286
|
}
|
|
20265
20287
|
);
|
|
20266
20288
|
};
|
|
20267
|
-
var
|
|
20268
|
-
const
|
|
20289
|
+
var yd = /* @__PURE__ */ ((e) => (e[e.OSM = 1] = "OSM", e[e.AMAP = 2] = "AMAP", e))(yd || {});
|
|
20290
|
+
const Cd = ({
|
|
20269
20291
|
mode: e = 1,
|
|
20270
20292
|
baseUrl: t,
|
|
20271
20293
|
visible: n = !0,
|
|
@@ -20305,10 +20327,10 @@ const yd = ({
|
|
|
20305
20327
|
`${t}/${l}/${s + A}/${c - T}.png`,
|
|
20306
20328
|
`${t}/appmaptile?z=${l}&x=${s + A}&y=${c - T}&style=6`
|
|
20307
20329
|
];
|
|
20308
|
-
return m.diffuseTexture = new
|
|
20330
|
+
return m.diffuseTexture = new Ut(
|
|
20309
20331
|
O[O != null && O[e - 1] ? e - 1 : 0],
|
|
20310
20332
|
p
|
|
20311
|
-
), m.diffuseTexture.wrapU =
|
|
20333
|
+
), m.diffuseTexture.wrapU = Ut.CLAMP_ADDRESSMODE, m.diffuseTexture.wrapV = Ut.CLAMP_ADDRESSMODE, m.specularColor = he.Black(), m.backFaceCulling = !1, m;
|
|
20312
20334
|
})).forEach((T) => {
|
|
20313
20335
|
B.push(T);
|
|
20314
20336
|
}), b(L), x(B), E.subMeshes = L, S.subMaterials = B, () => {
|
|
@@ -20345,7 +20367,7 @@ function Ri() {
|
|
|
20345
20367
|
meshs: []
|
|
20346
20368
|
};
|
|
20347
20369
|
}
|
|
20348
|
-
const
|
|
20370
|
+
const Yt = {
|
|
20349
20371
|
encode(e, t = se.Writer.create()) {
|
|
20350
20372
|
e.name !== "" && t.uint32(10).string(e.name), e.origin !== void 0 && K.encode(e.origin, t.uint32(18).fork()).ldelim(), e.type !== "" && t.uint32(26).string(e.type);
|
|
20351
20373
|
for (const n of e.sliceList)
|
|
@@ -20489,7 +20511,7 @@ const Gt = {
|
|
|
20489
20511
|
return e.name !== "" && (t.name = e.name), e.origin !== void 0 && (t.origin = K.toJSON(e.origin)), e.type !== "" && (t.type = e.type), (n = e.sliceList) != null && n.length && (t.sliceList = e.sliceList.map((c) => Rn.toJSON(c))), (a = e.vertices) != null && a.length && (t.vertices = e.vertices), (r = e.normals) != null && r.length && (t.normals = e.normals), (o = e.indices) != null && o.length && (t.indices = e.indices.map((c) => Math.round(c))), (i = e.colors) != null && i.length && (t.colors = e.colors), (l = e.uv) != null && l.length && (t.uv = e.uv), (s = e.meshs) != null && s.length && (t.meshs = e.meshs.map((c) => je.toJSON(c))), t;
|
|
20490
20512
|
},
|
|
20491
20513
|
create(e) {
|
|
20492
|
-
return
|
|
20514
|
+
return Yt.fromPartial(e != null ? e : {});
|
|
20493
20515
|
},
|
|
20494
20516
|
fromPartial(e) {
|
|
20495
20517
|
var n, a, r, o, i, l, s, c, d;
|
|
@@ -20606,7 +20628,7 @@ const Rn = {
|
|
|
20606
20628
|
function Lt(e) {
|
|
20607
20629
|
return e != null;
|
|
20608
20630
|
}
|
|
20609
|
-
const
|
|
20631
|
+
const _d = (e, t) => {
|
|
20610
20632
|
const n = Pe(null), a = Qe(Ue), { id: r, name: o, visible: i = !0, position: l, children: s, isRegular: c = !0 } = e;
|
|
20611
20633
|
return mt(
|
|
20612
20634
|
t,
|
|
@@ -20623,7 +20645,7 @@ const Cd = (e, t) => {
|
|
|
20623
20645
|
children: s
|
|
20624
20646
|
}
|
|
20625
20647
|
);
|
|
20626
|
-
},
|
|
20648
|
+
}, Pd = ht(_d), bd = (e) => {
|
|
20627
20649
|
const t = Ae(), n = Pe(null), { title: a, url: r, color: o, v: i, actions: l, path: s, radius: c, mesh: d } = e;
|
|
20628
20650
|
return ce(() => {
|
|
20629
20651
|
n.current && (n.current.metadata = {
|
|
@@ -20646,10 +20668,10 @@ const Cd = (e, t) => {
|
|
|
20646
20668
|
{
|
|
20647
20669
|
name: "material",
|
|
20648
20670
|
diffuseColor: r === "" ? new he(o.r, o.g, o.b) : void 0,
|
|
20649
|
-
diffuseTexture: r !== "" ? new
|
|
20671
|
+
diffuseTexture: r !== "" ? new Ut(r) : void 0
|
|
20650
20672
|
}
|
|
20651
20673
|
) });
|
|
20652
|
-
},
|
|
20674
|
+
}, kd = (e, t) => {
|
|
20653
20675
|
const { name: n, position: a, slices: r, meshs: o, actions: i } = e, l = Pe(null);
|
|
20654
20676
|
return mt(
|
|
20655
20677
|
t,
|
|
@@ -20658,7 +20680,7 @@ const Cd = (e, t) => {
|
|
|
20658
20680
|
), /* @__PURE__ */ N("transformNode", { name: "lod0", ref: l, setEnabled: !1, children: a && r.map((s, c) => {
|
|
20659
20681
|
var d, u, f, g, p, _;
|
|
20660
20682
|
return /* @__PURE__ */ N(
|
|
20661
|
-
|
|
20683
|
+
bd,
|
|
20662
20684
|
{
|
|
20663
20685
|
id: c,
|
|
20664
20686
|
v: s.v,
|
|
@@ -20677,7 +20699,7 @@ const Cd = (e, t) => {
|
|
|
20677
20699
|
c
|
|
20678
20700
|
);
|
|
20679
20701
|
}) });
|
|
20680
|
-
},
|
|
20702
|
+
}, Td = $.forwardRef(kd), Nd = (e) => {
|
|
20681
20703
|
const t = Ae(), n = Pe(null), a = Qe(Ue), {
|
|
20682
20704
|
id: r,
|
|
20683
20705
|
vertices: o,
|
|
@@ -20781,7 +20803,7 @@ const Cd = (e, t) => {
|
|
|
20781
20803
|
return /* @__PURE__ */ N(ur, { alpha: u });
|
|
20782
20804
|
}, [u, d, s, r, c, p]);
|
|
20783
20805
|
return /* @__PURE__ */ N("transformNode", { name: `${p}-main-node`, children: /* @__PURE__ */ N("mesh", { name: `${p}-mesh`, ref: n, isPickable: !0, children: y() }) });
|
|
20784
|
-
},
|
|
20806
|
+
}, Sd = (e, t) => {
|
|
20785
20807
|
const {
|
|
20786
20808
|
id: n,
|
|
20787
20809
|
visible: a = !0,
|
|
@@ -20799,7 +20821,7 @@ const Cd = (e, t) => {
|
|
|
20799
20821
|
() => f.current,
|
|
20800
20822
|
[]
|
|
20801
20823
|
), /* @__PURE__ */ N("transformNode", { name: "lod1", ref: f, setEnabled: !1, children: o.length > 0 && /* @__PURE__ */ N(
|
|
20802
|
-
|
|
20824
|
+
Nd,
|
|
20803
20825
|
{
|
|
20804
20826
|
id: n,
|
|
20805
20827
|
visible: a,
|
|
@@ -20815,7 +20837,7 @@ const Cd = (e, t) => {
|
|
|
20815
20837
|
slices: c
|
|
20816
20838
|
}
|
|
20817
20839
|
) });
|
|
20818
|
-
},
|
|
20840
|
+
}, Id = $.forwardRef(Sd), wd = (e, t) => {
|
|
20819
20841
|
const n = Pe(null), a = Qe(Ue), { style: r, name: o = "tube" } = e;
|
|
20820
20842
|
return mt(
|
|
20821
20843
|
t,
|
|
@@ -20839,7 +20861,7 @@ const Cd = (e, t) => {
|
|
|
20839
20861
|
)
|
|
20840
20862
|
}
|
|
20841
20863
|
);
|
|
20842
|
-
}, Ya = ht(
|
|
20864
|
+
}, Ya = ht(wd), Od = (e) => {
|
|
20843
20865
|
var le, X, Se, ye;
|
|
20844
20866
|
const t = Ae(), [n, a] = Ce([]), [r, o] = Ce([]), [i, l] = Ce([]), s = Pe(null), c = Pe(null), d = Pe(null), [u, f] = Ce(""), [g, p] = Ce(new F(0, 0, 0)), _ = Pe(null), y = Pe(null), v = Pe(null), [x, P] = Ce([]), b = Pe(!1), E = Qe(Ue), [S, C] = Ce([]), [k, L] = Ce(!1), [R, I] = Ce(!1), {
|
|
20845
20867
|
id: B,
|
|
@@ -20866,7 +20888,7 @@ const Cd = (e, t) => {
|
|
|
20866
20888
|
responseType: "arraybuffer"
|
|
20867
20889
|
}).then((V) => {
|
|
20868
20890
|
var ve, fe, xe, Re, Ee, ze, Le, Be, We;
|
|
20869
|
-
const Q =
|
|
20891
|
+
const Q = Yt.decode(new Uint8Array(V.data));
|
|
20870
20892
|
console.log(Q);
|
|
20871
20893
|
const Me = Q.sliceList[0], Oe = Q.sliceList[Q.sliceList.length - 1];
|
|
20872
20894
|
f(Q.name);
|
|
@@ -20903,7 +20925,7 @@ const Cd = (e, t) => {
|
|
|
20903
20925
|
};
|
|
20904
20926
|
}, [G, ne, S.length, E, t]), /* @__PURE__ */ N(me, { children: /* @__PURE__ */ Ve("transformNode", { name: `tube-${B} `, children: [
|
|
20905
20927
|
/* @__PURE__ */ Ve(
|
|
20906
|
-
|
|
20928
|
+
Pd,
|
|
20907
20929
|
{
|
|
20908
20930
|
id: B,
|
|
20909
20931
|
name: u,
|
|
@@ -20927,7 +20949,7 @@ const Cd = (e, t) => {
|
|
|
20927
20949
|
}
|
|
20928
20950
|
),
|
|
20929
20951
|
k && R && ne[0] && S.length > 0 && /* @__PURE__ */ N(
|
|
20930
|
-
|
|
20952
|
+
Td,
|
|
20931
20953
|
{
|
|
20932
20954
|
id: B,
|
|
20933
20955
|
name: u,
|
|
@@ -20940,7 +20962,7 @@ const Cd = (e, t) => {
|
|
|
20940
20962
|
}
|
|
20941
20963
|
),
|
|
20942
20964
|
R && /* @__PURE__ */ N(
|
|
20943
|
-
|
|
20965
|
+
Id,
|
|
20944
20966
|
{
|
|
20945
20967
|
id: B,
|
|
20946
20968
|
name: u,
|
|
@@ -20967,7 +20989,7 @@ function Di() {
|
|
|
20967
20989
|
const Ja = {
|
|
20968
20990
|
encode(e, t = se.Writer.create()) {
|
|
20969
20991
|
for (const n of e.group)
|
|
20970
|
-
|
|
20992
|
+
Yt.encode(n, t.uint32(10).fork()).ldelim();
|
|
20971
20993
|
return t;
|
|
20972
20994
|
},
|
|
20973
20995
|
decode(e, t) {
|
|
@@ -20980,7 +21002,7 @@ const Ja = {
|
|
|
20980
21002
|
case 1:
|
|
20981
21003
|
if (o !== 10)
|
|
20982
21004
|
break;
|
|
20983
|
-
r.group.push(
|
|
21005
|
+
r.group.push(Yt.decode(n, n.uint32()));
|
|
20984
21006
|
continue;
|
|
20985
21007
|
}
|
|
20986
21008
|
if ((o & 7) === 4 || o === 0)
|
|
@@ -20990,12 +21012,12 @@ const Ja = {
|
|
|
20990
21012
|
return r;
|
|
20991
21013
|
},
|
|
20992
21014
|
fromJSON(e) {
|
|
20993
|
-
return { group: globalThis.Array.isArray(e == null ? void 0 : e.group) ? e.group.map((t) =>
|
|
21015
|
+
return { group: globalThis.Array.isArray(e == null ? void 0 : e.group) ? e.group.map((t) => Yt.fromJSON(t)) : [] };
|
|
20994
21016
|
},
|
|
20995
21017
|
toJSON(e) {
|
|
20996
21018
|
var n;
|
|
20997
21019
|
const t = {};
|
|
20998
|
-
return (n = e.group) != null && n.length && (t.group = e.group.map((a) =>
|
|
21020
|
+
return (n = e.group) != null && n.length && (t.group = e.group.map((a) => Yt.toJSON(a))), t;
|
|
20999
21021
|
},
|
|
21000
21022
|
create(e) {
|
|
21001
21023
|
return Ja.fromPartial(e != null ? e : {});
|
|
@@ -21003,9 +21025,9 @@ const Ja = {
|
|
|
21003
21025
|
fromPartial(e) {
|
|
21004
21026
|
var n;
|
|
21005
21027
|
const t = Di();
|
|
21006
|
-
return t.group = ((n = e.group) == null ? void 0 : n.map((a) =>
|
|
21028
|
+
return t.group = ((n = e.group) == null ? void 0 : n.map((a) => Yt.fromPartial(a))) || [], t;
|
|
21007
21029
|
}
|
|
21008
|
-
},
|
|
21030
|
+
}, Ad = (e) => {
|
|
21009
21031
|
const t = Ae(), [n, a] = Ce([]), r = Pe(!1), o = Qe(Ue), { visible: i = !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), []);
|
|
21010
21032
|
return ce(() => {
|
|
21011
21033
|
if (!r.current && (r.current = !0, l && ln.get(l, {
|
|
@@ -21026,7 +21048,7 @@ const Ja = {
|
|
|
21026
21048
|
Promise.all(f).then((g) => {
|
|
21027
21049
|
const p = [];
|
|
21028
21050
|
for (let _ = 0; _ < g.length; _++) {
|
|
21029
|
-
const y =
|
|
21051
|
+
const y = Yt.decode(new Uint8Array(g[_].data));
|
|
21030
21052
|
p.push(y);
|
|
21031
21053
|
}
|
|
21032
21054
|
a(p);
|
|
@@ -21245,7 +21267,7 @@ const Bn = {
|
|
|
21245
21267
|
function jt(e) {
|
|
21246
21268
|
return e != null;
|
|
21247
21269
|
}
|
|
21248
|
-
const
|
|
21270
|
+
const Ed = `#version 300 es
|
|
21249
21271
|
precision highp float;
|
|
21250
21272
|
|
|
21251
21273
|
in vec2 vUV;
|
|
@@ -21256,7 +21278,7 @@ out vec4 fragColor;
|
|
|
21256
21278
|
|
|
21257
21279
|
void main(void) {
|
|
21258
21280
|
fragColor = vColor;
|
|
21259
|
-
}`,
|
|
21281
|
+
}`, Md = `#version 300 es
|
|
21260
21282
|
precision highp float;
|
|
21261
21283
|
|
|
21262
21284
|
// Attributes
|
|
@@ -21284,7 +21306,7 @@ void main(void) {
|
|
|
21284
21306
|
vUV = uv;
|
|
21285
21307
|
|
|
21286
21308
|
vColor = color;
|
|
21287
|
-
}`,
|
|
21309
|
+
}`, Ld = (e) => {
|
|
21288
21310
|
const t = Pe(null), { billboardMode: n = "All", zOffset: a, zOffsetUnits: r } = e, [o, i] = Ce(), l = Ae();
|
|
21289
21311
|
return ce(() => {
|
|
21290
21312
|
const s = () => {
|
|
@@ -21303,8 +21325,8 @@ void main(void) {
|
|
|
21303
21325
|
name: e.name,
|
|
21304
21326
|
backFaceCulling: !1,
|
|
21305
21327
|
needDepthPrePass: e.needDepthPrePass,
|
|
21306
|
-
vertex:
|
|
21307
|
-
fragment:
|
|
21328
|
+
vertex: Md,
|
|
21329
|
+
fragment: Ed,
|
|
21308
21330
|
transparencyMode: e.transparencyMode,
|
|
21309
21331
|
alphaMode: e.alphaMode,
|
|
21310
21332
|
options: {
|
|
@@ -21317,7 +21339,7 @@ void main(void) {
|
|
|
21317
21339
|
sideOrientation: Ne.CounterClockWiseSideOrientation
|
|
21318
21340
|
}
|
|
21319
21341
|
);
|
|
21320
|
-
},
|
|
21342
|
+
}, Rd = (e, t) => {
|
|
21321
21343
|
const n = Ae(), a = Pe(null), r = Pe(null), o = Qe(Ue), { id: i, visible: l = !0, vertices: s, indices: c, colors: d, uvs: u, position: f, customMaterial: g } = e, { title: p, color: _, fontSize: y } = e.style;
|
|
21322
21344
|
return mt(
|
|
21323
21345
|
t,
|
|
@@ -21347,7 +21369,7 @@ void main(void) {
|
|
|
21347
21369
|
ref: r,
|
|
21348
21370
|
setEnabled: l,
|
|
21349
21371
|
children: [
|
|
21350
|
-
/* @__PURE__ */ N("mesh", { name: "curve", ref: a, scaling: new F(1, 1, 1), children: g ? /* @__PURE__ */ N(
|
|
21372
|
+
/* @__PURE__ */ N("mesh", { name: "curve", ref: a, scaling: new F(1, 1, 1), children: g ? /* @__PURE__ */ N(Ld, { name: `material-${i}`, billboardMode: "none" }) : /* @__PURE__ */ N("standardMaterial", { name: `material-${i}`, backFaceCulling: !1 }) }),
|
|
21351
21373
|
/* @__PURE__ */ N(
|
|
21352
21374
|
"transformNode",
|
|
21353
21375
|
{
|
|
@@ -21367,7 +21389,7 @@ void main(void) {
|
|
|
21367
21389
|
]
|
|
21368
21390
|
}
|
|
21369
21391
|
);
|
|
21370
|
-
},
|
|
21392
|
+
}, Bd = ht(Rd), Ui = (e) => {
|
|
21371
21393
|
var T, A;
|
|
21372
21394
|
const t = Ae(), [n, a] = Ce([]), [r, o] = Ce([]), [i, l] = Ce([]), [s, c] = Ce([]), [d, u] = Ce(), [f, g] = Ce(), [p, _] = Ce(), { colorCodecs: y } = Qe(qt), {
|
|
21373
21395
|
id: v,
|
|
@@ -21389,7 +21411,7 @@ void main(void) {
|
|
|
21389
21411
|
sideOrientation: W ? ut.FRONTSIDE : ut.DOUBLESIDE
|
|
21390
21412
|
},
|
|
21391
21413
|
t
|
|
21392
|
-
), ne = ie.getVerticesData(
|
|
21414
|
+
), ne = ie.getVerticesData(Bt.PositionKind), G = ie.getIndices();
|
|
21393
21415
|
if (ne && G) {
|
|
21394
21416
|
const ae = As(
|
|
21395
21417
|
ne,
|
|
@@ -21467,7 +21489,7 @@ void main(void) {
|
|
|
21467
21489
|
t && t.activeCamera && (t == null || t.activeCamera.onViewMatrixChangedObservable.removeCallback(m));
|
|
21468
21490
|
};
|
|
21469
21491
|
}, [B, t]), /* @__PURE__ */ N(me, { children: b && n.length > 0 && i.length > 0 && /* @__PURE__ */ N(
|
|
21470
|
-
|
|
21492
|
+
Bd,
|
|
21471
21493
|
{
|
|
21472
21494
|
id: v,
|
|
21473
21495
|
visible: b,
|
|
@@ -21484,7 +21506,7 @@ void main(void) {
|
|
|
21484
21506
|
customMaterial: E
|
|
21485
21507
|
}
|
|
21486
21508
|
) });
|
|
21487
|
-
},
|
|
21509
|
+
}, Dd = (e) => {
|
|
21488
21510
|
const t = Pe(null), n = Qe(Ue), { id: a, visible: r = !0, position: o } = e, { title: i, color: l, fontSize: s } = e.style;
|
|
21489
21511
|
return /* @__PURE__ */ N(
|
|
21490
21512
|
"transformNode",
|
|
@@ -21522,7 +21544,7 @@ void main(void) {
|
|
|
21522
21544
|
)
|
|
21523
21545
|
}
|
|
21524
21546
|
);
|
|
21525
|
-
},
|
|
21547
|
+
}, Fd = (e) => {
|
|
21526
21548
|
var x, P;
|
|
21527
21549
|
const t = Ae(), [n, a] = Ce(), [r, o] = Ce(), [i, l] = Ce(), [s, c] = Ce([]), { 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 }), v = Qe(Ue);
|
|
21528
21550
|
return ce(() => {
|
|
@@ -21551,7 +21573,7 @@ void main(void) {
|
|
|
21551
21573
|
}
|
|
21552
21574
|
}, [u, t, g, (x = e.style) == null ? void 0 : x.offset, (P = e.style) == null ? void 0 : P.fontSize, y, v, _]), /* @__PURE__ */ Ve(me, { children: [
|
|
21553
21575
|
/* @__PURE__ */ N(
|
|
21554
|
-
|
|
21576
|
+
Dd,
|
|
21555
21577
|
{
|
|
21556
21578
|
id: d,
|
|
21557
21579
|
visible: f,
|
|
@@ -21713,7 +21735,7 @@ const Dn = {
|
|
|
21713
21735
|
function Qt(e) {
|
|
21714
21736
|
return e != null;
|
|
21715
21737
|
}
|
|
21716
|
-
const
|
|
21738
|
+
const zd = (e, t) => {
|
|
21717
21739
|
const n = Ae(), a = Pe(null), r = Pe(null), o = Qe(Ue), {
|
|
21718
21740
|
id: i,
|
|
21719
21741
|
visible: l = !0,
|
|
@@ -21849,7 +21871,7 @@ const Fd = (e, t) => {
|
|
|
21849
21871
|
),
|
|
21850
21872
|
g
|
|
21851
21873
|
] });
|
|
21852
|
-
},
|
|
21874
|
+
}, $d = ht(zd), Ud = (e, t) => {
|
|
21853
21875
|
const n = Pe(null), a = Qe(Ue);
|
|
21854
21876
|
mt(
|
|
21855
21877
|
t,
|
|
@@ -21896,7 +21918,7 @@ const Fd = (e, t) => {
|
|
|
21896
21918
|
)) : /* @__PURE__ */ N(me, {})
|
|
21897
21919
|
}
|
|
21898
21920
|
);
|
|
21899
|
-
},
|
|
21921
|
+
}, Wd = ht(Ud), Vi = (e) => {
|
|
21900
21922
|
var I, B, T, A, m;
|
|
21901
21923
|
const t = Ae(), [n, a] = Ce([]), [r, o] = Ce([]), [i, l] = Ce([]), [s, c] = Ce(), [d, u] = Ce([]), [f, g] = Ce(0), [p, _] = Ce(), { colorIDs: y } = Qe(qt), {
|
|
21902
21924
|
id: v,
|
|
@@ -21946,7 +21968,7 @@ const Fd = (e, t) => {
|
|
|
21946
21968
|
sideOrientation: C ? ut.FRONTSIDE : ut.DOUBLESIDE
|
|
21947
21969
|
},
|
|
21948
21970
|
t
|
|
21949
|
-
), Y = j.getVerticesData(
|
|
21971
|
+
), Y = j.getVerticesData(Bt.PositionKind), ue = k ? aa(j.getIndices()) : j.getIndices(), le = P;
|
|
21950
21972
|
let X = [];
|
|
21951
21973
|
Y && (X = Ms(
|
|
21952
21974
|
Y,
|
|
@@ -21969,7 +21991,7 @@ const Fd = (e, t) => {
|
|
|
21969
21991
|
}
|
|
21970
21992
|
}, [x, t, C, S, k, b, y, R, P]), /* @__PURE__ */ Ve("transformNode", { name: `node-layer-${v}`, children: [
|
|
21971
21993
|
n.length > 0 && r.length > 0 && /* @__PURE__ */ N(
|
|
21972
|
-
|
|
21994
|
+
$d,
|
|
21973
21995
|
{
|
|
21974
21996
|
id: v,
|
|
21975
21997
|
name: "tube-layer",
|
|
@@ -21985,7 +22007,7 @@ const Fd = (e, t) => {
|
|
|
21985
22007
|
}
|
|
21986
22008
|
),
|
|
21987
22009
|
d.length > 0 && /* @__PURE__ */ N(
|
|
21988
|
-
|
|
22010
|
+
Wd,
|
|
21989
22011
|
{
|
|
21990
22012
|
id: v,
|
|
21991
22013
|
data: d,
|
|
@@ -22021,7 +22043,7 @@ const Fd = (e, t) => {
|
|
|
22021
22043
|
sideOrientation: ut.DOUBLESIDE
|
|
22022
22044
|
},
|
|
22023
22045
|
t
|
|
22024
|
-
), S = E.getVerticesData(
|
|
22046
|
+
), S = E.getVerticesData(Bt.PositionKind), C = E.getIndices(), k = E.getNormalsData();
|
|
22025
22047
|
r(S ? S.slice() : []), i(C ? C.slice() : []), s(k ? k.slice() : []), t == null || t.removeMesh(E);
|
|
22026
22048
|
}, [t, g, d, p]);
|
|
22027
22049
|
ce(() => {
|
|
@@ -22053,7 +22075,7 @@ const Fd = (e, t) => {
|
|
|
22053
22075
|
}
|
|
22054
22076
|
), [c.b, c.g, c.r, f, u]);
|
|
22055
22077
|
return /* @__PURE__ */ N("mesh", { name: `${u}-mesh`, ref: n, isPickable: !0, children: y() });
|
|
22056
|
-
},
|
|
22078
|
+
}, Hd = (e) => {
|
|
22057
22079
|
const t = Ae(), n = Pe(null), [a, r] = Ce(F.Zero()), [o, i] = Ce([]), [l, s] = Ce([]), [c, d] = Ce([]), [u, f] = Ce(""), [g, p] = Ce(new F(0, 0, 0)), [_, y] = Ce([]), v = Qe(Ue), {
|
|
22058
22080
|
id: x,
|
|
22059
22081
|
color: P,
|
|
@@ -22087,8 +22109,8 @@ const Fd = (e, t) => {
|
|
|
22087
22109
|
},
|
|
22088
22110
|
t
|
|
22089
22111
|
);
|
|
22090
|
-
y(z.getVerticesData(
|
|
22091
|
-
const U = z.getVerticesData(
|
|
22112
|
+
y(z.getVerticesData(Bt.PositionKind)), z.convertToFlatShadedMesh(), z.computeWorldMatrix(!0), z._updateBoundingInfo();
|
|
22113
|
+
const U = z.getVerticesData(Bt.PositionKind), W = z.getIndices(), ie = z.getNormalsData();
|
|
22092
22114
|
i(U ? U.slice() : []), s(W ? W.slice() : []), d(ie ? ie.slice() : []), t == null || t.removeMesh(z);
|
|
22093
22115
|
},
|
|
22094
22116
|
[t, L]
|
|
@@ -22098,7 +22120,7 @@ const Fd = (e, t) => {
|
|
|
22098
22120
|
responseType: "arraybuffer"
|
|
22099
22121
|
}).then((A) => {
|
|
22100
22122
|
var z, U, W;
|
|
22101
|
-
const m =
|
|
22123
|
+
const m = Yt.decode(new Uint8Array(A.data));
|
|
22102
22124
|
if (console.log(m), m.sliceList.length === 0)
|
|
22103
22125
|
return;
|
|
22104
22126
|
f(m.name);
|
|
@@ -22192,7 +22214,7 @@ const Fd = (e, t) => {
|
|
|
22192
22214
|
]
|
|
22193
22215
|
}
|
|
22194
22216
|
);
|
|
22195
|
-
},
|
|
22217
|
+
}, Vd = (e) => {
|
|
22196
22218
|
const { id: t, visible: n = !0, children: a, offset: r = new F(0, 0, 0) } = e;
|
|
22197
22219
|
return /* @__PURE__ */ N(me, { children: /* @__PURE__ */ N("transformNode", { name: `tube-${t}`, setEnabled: n, position: r, children: a }) });
|
|
22198
22220
|
};
|
|
@@ -22333,7 +22355,7 @@ const Fn = {
|
|
|
22333
22355
|
function en(e) {
|
|
22334
22356
|
return e != null;
|
|
22335
22357
|
}
|
|
22336
|
-
const
|
|
22358
|
+
const Zd = [
|
|
22337
22359
|
0,
|
|
22338
22360
|
0.05,
|
|
22339
22361
|
0.1,
|
|
@@ -22355,7 +22377,7 @@ const Vd = [
|
|
|
22355
22377
|
0.9,
|
|
22356
22378
|
0.95,
|
|
22357
22379
|
1
|
|
22358
|
-
],
|
|
22380
|
+
], Gd = ({
|
|
22359
22381
|
url: e,
|
|
22360
22382
|
alpha: t = {
|
|
22361
22383
|
typeAlpha0: 1,
|
|
@@ -22368,7 +22390,7 @@ const Vd = [
|
|
|
22368
22390
|
$.useEffect(() => {
|
|
22369
22391
|
console.log("[Geo3DViewer] VoxelGrid Loading: ", e);
|
|
22370
22392
|
}, [e]);
|
|
22371
|
-
const p = (_) =>
|
|
22393
|
+
const p = (_) => Zd[_];
|
|
22372
22394
|
return $.useEffect(() => {
|
|
22373
22395
|
if (r && u) {
|
|
22374
22396
|
const _ = qa.decode(new Uint8Array(u)), { name: y, origin: v, dataPoints: x, size: P } = _;
|
|
@@ -22415,7 +22437,7 @@ const Vd = [
|
|
|
22415
22437
|
children: /* @__PURE__ */ N(ef, { name: `voxel-${l}-mat`, typeAlpha: t, ref: f })
|
|
22416
22438
|
}
|
|
22417
22439
|
);
|
|
22418
|
-
},
|
|
22440
|
+
}, Yd = (e, t) => {
|
|
22419
22441
|
const {
|
|
22420
22442
|
viewer: n,
|
|
22421
22443
|
camera: a,
|
|
@@ -22477,36 +22499,36 @@ const Vd = [
|
|
|
22477
22499
|
u ? /* @__PURE__ */ N(nf, { ...u }) : /* @__PURE__ */ N(me, {}),
|
|
22478
22500
|
f ? f.map((V) => /* @__PURE__ */ N(zf, { ...V }, `gridDiagram-${V.url}`)) : /* @__PURE__ */ N(me, {}),
|
|
22479
22501
|
g ? g.map((V) => /* @__PURE__ */ N(tf, { ...V }, `attributebody-${V.url}`)) : /* @__PURE__ */ N(me, {}),
|
|
22480
|
-
p ? p.map((V) => /* @__PURE__ */ Ve(
|
|
22502
|
+
p ? p.map((V) => /* @__PURE__ */ Ve(Od, { ...V, children: [
|
|
22481
22503
|
V.charts ? V.charts.map((Q) => /* @__PURE__ */ N(Ui, { ...Q }, `tubechart-${Q.url}`)) : /* @__PURE__ */ N(me, {}),
|
|
22482
22504
|
V.layers ? V.layers.map((Q) => /* @__PURE__ */ N(Vi, { ...Q }, `tubelayer-${Q.url}`)) : /* @__PURE__ */ N(me, {}),
|
|
22483
22505
|
V.tools ? V.tools.map((Q) => /* @__PURE__ */ N(Fi, { ...Q }, `tubelayer-${Q.name}`)) : /* @__PURE__ */ N(me, {})
|
|
22484
22506
|
] }, `tube-${V.url}`)) : /* @__PURE__ */ N(me, {}),
|
|
22485
|
-
_ ? _.map((V) => /* @__PURE__ */ N(
|
|
22486
|
-
x ? x.map((V, Q) => /* @__PURE__ */ N(
|
|
22507
|
+
_ ? _.map((V) => /* @__PURE__ */ N(sd, { ...V }, `roadway-${V.url}`)) : /* @__PURE__ */ N(me, {}),
|
|
22508
|
+
x ? x.map((V, Q) => /* @__PURE__ */ N(ed, { ...V }, `rayclick-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22487
22509
|
P ? P.map((V, Q) => /* @__PURE__ */ N(za, { ...V }, `line-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22488
|
-
b ? b.map((V, Q) => /* @__PURE__ */ N(
|
|
22510
|
+
b ? b.map((V, Q) => /* @__PURE__ */ N(xd, { ...V }, `spaceheat-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22489
22511
|
E ? /* @__PURE__ */ N(Uf, { target: void 0, distance: 0 }) : /* @__PURE__ */ N(me, {}),
|
|
22490
22512
|
S ? /* @__PURE__ */ N(yf, {}) : /* @__PURE__ */ N(me, {}),
|
|
22491
22513
|
C ? /* @__PURE__ */ N(df, { ...C }, "coordinate") : /* @__PURE__ */ N(me, {}),
|
|
22492
|
-
k ? k.map((V, Q) => /* @__PURE__ */ N(
|
|
22493
|
-
L ? L.map((V, Q) => /* @__PURE__ */ N(
|
|
22494
|
-
R ? R.map((V, Q) => /* @__PURE__ */ N(
|
|
22495
|
-
I ? I.map((V, Q) => /* @__PURE__ */ N(
|
|
22514
|
+
k ? k.map((V, Q) => /* @__PURE__ */ N(Cd, { ...V }, `tilemap-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22515
|
+
L ? L.map((V, Q) => /* @__PURE__ */ N(Qf, { ...V }, `pointClickZone-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22516
|
+
R ? R.map((V, Q) => /* @__PURE__ */ N(jf, { ...V }, `progressedAttributeBody-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22517
|
+
I ? I.map((V, Q) => /* @__PURE__ */ N(td, { ...V }, `ribbonlayer-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22496
22518
|
B ? B.map((V, Q) => /* @__PURE__ */ N($f, { ...V }, `intersectingLine-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22497
|
-
T ? T.map((V, Q) => /* @__PURE__ */ N(
|
|
22498
|
-
A ? /* @__PURE__ */ N(
|
|
22499
|
-
m ? m.map((V, Q) => /* @__PURE__ */ N(
|
|
22500
|
-
O ? O.map((V, Q) => /* @__PURE__ */ N(
|
|
22519
|
+
T ? T.map((V, Q) => /* @__PURE__ */ N(Ad, { ...V }, `tubeinstance-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22520
|
+
A ? /* @__PURE__ */ N(Gf, {}) : /* @__PURE__ */ N(me, {}),
|
|
22521
|
+
m ? m.map((V, Q) => /* @__PURE__ */ N(Gd, { ...V }, `voxelgrid-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22522
|
+
O ? O.map((V, Q) => /* @__PURE__ */ N(qf, { ...V }, `planeimage-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22501
22523
|
z ? z.map((V, Q) => /* @__PURE__ */ N(bf, { ...V }, `guitext-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22502
|
-
U && /* @__PURE__ */ N(
|
|
22503
|
-
W ? W.map((V, Q) => /* @__PURE__ */ N(
|
|
22504
|
-
ie ? ie.map((V, Q) => /* @__PURE__ */ N(
|
|
22524
|
+
U && /* @__PURE__ */ N(gd, { ...U }),
|
|
22525
|
+
W ? W.map((V, Q) => /* @__PURE__ */ N(Yf, { ...V }, `particlesystem-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22526
|
+
ie ? ie.map((V, Q) => /* @__PURE__ */ N(Jf, { ...V }, `waterEffect-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22505
22527
|
ne ? ne.map((V, Q) => /* @__PURE__ */ N(gr, { ...V }, `modelLoaders-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22506
|
-
G ? G.map((V, Q) => /* @__PURE__ */ N(
|
|
22507
|
-
ae ? ae.map((V, Q) => /* @__PURE__ */ N(Uo, { ...V, children: /* @__PURE__ */ N(
|
|
22528
|
+
G ? G.map((V, Q) => /* @__PURE__ */ N(Zf, { ...V }, `modelanimtionloader-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22529
|
+
ae ? ae.map((V, Q) => /* @__PURE__ */ N(Uo, { ...V, children: /* @__PURE__ */ N(cd, {}) }, `animation-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22508
22530
|
oe ? oe.map((V, Q) => /* @__PURE__ */ N(Uo, { ...V, children: /* @__PURE__ */ N(
|
|
22509
|
-
|
|
22531
|
+
dd,
|
|
22510
22532
|
{
|
|
22511
22533
|
roadwayWidth: V.roadwayWidth,
|
|
22512
22534
|
textureLength: V.textureLength,
|
|
@@ -22516,7 +22538,7 @@ const Vd = [
|
|
|
22516
22538
|
}
|
|
22517
22539
|
) }, `animation-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22518
22540
|
j ? j.map((V, Q) => /* @__PURE__ */ N(Uo, { ...V, children: /* @__PURE__ */ N(
|
|
22519
|
-
|
|
22541
|
+
md,
|
|
22520
22542
|
{
|
|
22521
22543
|
timeSpeed: V.timeSpeed,
|
|
22522
22544
|
perlinMultiply: V.perlinMultiply,
|
|
@@ -22529,12 +22551,12 @@ const Vd = [
|
|
|
22529
22551
|
) }, `animation-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22530
22552
|
Y ? Y.map((V, Q) => /* @__PURE__ */ N(gf, { ...V }, `contourline-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22531
22553
|
ue ? ue.map((V, Q) => /* @__PURE__ */ N(Fi, { ...V }, `tubeTool-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22532
|
-
le ? le.map((V, Q) => /* @__PURE__ */ N(
|
|
22554
|
+
le ? le.map((V, Q) => /* @__PURE__ */ N(Vd, { ...V, children: V.main ? V.main.map((Me, Oe) => /* @__PURE__ */ N(Hd, { ...Me }, `tubeMain-${Oe}`)) : null }, `tubeOil-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22533
22555
|
X ? X.map((V, Q) => /* @__PURE__ */ N(Vi, { ...V }, `tubeLayer-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22534
|
-
Se ? Se.map((V, Q) => /* @__PURE__ */ N(
|
|
22556
|
+
Se ? Se.map((V, Q) => /* @__PURE__ */ N(Fd, { ...V }, `tubeChartLine-${Q}`)) : /* @__PURE__ */ N(me, {}),
|
|
22535
22557
|
ye ? ye.map((V, Q) => /* @__PURE__ */ N(Ui, { ...V }, `tubeChart-${Q}`)) : /* @__PURE__ */ N(me, {})
|
|
22536
22558
|
] });
|
|
22537
|
-
},
|
|
22559
|
+
}, Up = ht(Yd), Wp = (e) => {
|
|
22538
22560
|
const t = Ae(), n = Pe(null), { keyFrames: a, speed: r } = e;
|
|
22539
22561
|
return ce(() => {
|
|
22540
22562
|
if (t && n.current && n.current.animations.length === 0) {
|
|
@@ -22816,7 +22838,7 @@ const zn = {
|
|
|
22816
22838
|
function Rt(e) {
|
|
22817
22839
|
return e != null;
|
|
22818
22840
|
}
|
|
22819
|
-
const
|
|
22841
|
+
const Hp = (e) => {
|
|
22820
22842
|
const t = Ae(), [n, a] = Ce([]), [r, o] = Ce([]), [i, l] = Ce(F.Zero()), s = Qe(Ue), c = Pe(null), d = Pe(!1), [u, f] = Ce([]), { url: g, name: p = "rod", visible: _ = !0, color: y } = e, v = et(
|
|
22821
22843
|
(x) => {
|
|
22822
22844
|
var k, L, R;
|
|
@@ -22845,7 +22867,7 @@ const Wp = (e) => {
|
|
|
22845
22867
|
sideOrientation: ut.FRONTSIDE
|
|
22846
22868
|
},
|
|
22847
22869
|
t
|
|
22848
|
-
), S = E.getVerticesData(
|
|
22870
|
+
), S = E.getVerticesData(Bt.PositionKind), C = E.getIndices();
|
|
22849
22871
|
a(S ? S.slice() : []), o(C ? C.slice() : []), t == null || t.removeMesh(E);
|
|
22850
22872
|
},
|
|
22851
22873
|
[e.radius, t]
|
|
@@ -22912,7 +22934,7 @@ const Wp = (e) => {
|
|
|
22912
22934
|
}
|
|
22913
22935
|
);
|
|
22914
22936
|
};
|
|
22915
|
-
class
|
|
22937
|
+
class Vp {
|
|
22916
22938
|
constructor(t) {
|
|
22917
22939
|
_e(this, "children", []);
|
|
22918
22940
|
_e(this, "params", {});
|
|
@@ -22939,7 +22961,7 @@ class Hp {
|
|
|
22939
22961
|
n.render(a);
|
|
22940
22962
|
}
|
|
22941
22963
|
}
|
|
22942
|
-
const
|
|
22964
|
+
const Jd = (e, t) => {
|
|
22943
22965
|
const [n, a] = Ce();
|
|
22944
22966
|
return ce(() => {
|
|
22945
22967
|
a(e.props);
|
|
@@ -22952,8 +22974,8 @@ const Yd = (e, t) => {
|
|
|
22952
22974
|
}),
|
|
22953
22975
|
[]
|
|
22954
22976
|
), n ? /* @__PURE__ */ N(e.type, { ...n }) : null;
|
|
22955
|
-
},
|
|
22956
|
-
class
|
|
22977
|
+
}, Xd = ht(Jd);
|
|
22978
|
+
class qd {
|
|
22957
22979
|
constructor(t, n) {
|
|
22958
22980
|
_e(this, "value");
|
|
22959
22981
|
_e(this, "type");
|
|
@@ -22965,7 +22987,7 @@ class Xd {
|
|
|
22965
22987
|
}
|
|
22966
22988
|
render() {
|
|
22967
22989
|
var t;
|
|
22968
|
-
return $.createElement(
|
|
22990
|
+
return $.createElement(Xd, {
|
|
22969
22991
|
ref: this.ref,
|
|
22970
22992
|
key: (t = this.value.id) != null ? t : 0,
|
|
22971
22993
|
props: this.value,
|
|
@@ -22973,8 +22995,8 @@ class Xd {
|
|
|
22973
22995
|
});
|
|
22974
22996
|
}
|
|
22975
22997
|
}
|
|
22976
|
-
function
|
|
22977
|
-
return new
|
|
22998
|
+
function Zp(e, t) {
|
|
22999
|
+
return new qd(e, t);
|
|
22978
23000
|
}
|
|
22979
23001
|
function xr(e, t) {
|
|
22980
23002
|
if (!t) return e;
|
|
@@ -22983,7 +23005,7 @@ function xr(e, t) {
|
|
|
22983
23005
|
n[a] += t.x, n[a + 1] += t.y, n[a + 2] += t.z;
|
|
22984
23006
|
return n;
|
|
22985
23007
|
}
|
|
22986
|
-
function
|
|
23008
|
+
function Kd(e) {
|
|
22987
23009
|
return {
|
|
22988
23010
|
vertices: xr(
|
|
22989
23011
|
e.points,
|
|
@@ -23019,7 +23041,7 @@ function ja(e) {
|
|
|
23019
23041
|
colorId: e.colorId
|
|
23020
23042
|
};
|
|
23021
23043
|
}
|
|
23022
|
-
function
|
|
23044
|
+
function Qd(e) {
|
|
23023
23045
|
const t = e[0], n = e[1], a = e[2], r = e[3], o = e[4], i = e[5], l = e[6], s = e[7], c = e[8];
|
|
23024
23046
|
return {
|
|
23025
23047
|
origin: { x: t, y: n, z: a },
|
|
@@ -23027,7 +23049,7 @@ function Kd(e) {
|
|
|
23027
23049
|
vAxis: { x: l - t, y: s - n, z: c - a }
|
|
23028
23050
|
};
|
|
23029
23051
|
}
|
|
23030
|
-
function
|
|
23052
|
+
function jd(e) {
|
|
23031
23053
|
const [t, n, a] = e, r = {
|
|
23032
23054
|
x: a.x - t.x,
|
|
23033
23055
|
y: 0,
|
|
@@ -23069,13 +23091,13 @@ function es(e, t) {
|
|
|
23069
23091
|
}
|
|
23070
23092
|
return n;
|
|
23071
23093
|
}
|
|
23072
|
-
function
|
|
23094
|
+
function ep(e, t) {
|
|
23073
23095
|
const n = [];
|
|
23074
23096
|
for (const a of e)
|
|
23075
23097
|
n.push(a.x, a.y, a.z);
|
|
23076
23098
|
return es(n, t);
|
|
23077
23099
|
}
|
|
23078
|
-
function
|
|
23100
|
+
function tp(e, t, n, a, r) {
|
|
23079
23101
|
const o = (t.v - n.v) * (e.u - n.u) + (n.u - t.u) * (e.v - n.v);
|
|
23080
23102
|
if (Math.abs(o) < 1e-10) return [0, 0, 0, !1];
|
|
23081
23103
|
const i = ((t.v - n.v) * (a - n.u) + (n.u - t.u) * (r - n.v)) / o, l = ((n.v - e.v) * (a - n.u) + (e.u - n.u) * (r - n.v)) / o, s = 1 - i - l;
|
|
@@ -23091,7 +23113,7 @@ function Ho(e, t) {
|
|
|
23091
23113
|
const n = e[t];
|
|
23092
23114
|
return [n.r, n.g, n.b, n.a];
|
|
23093
23115
|
}
|
|
23094
|
-
function
|
|
23116
|
+
function np(e, t, n, a, r, o) {
|
|
23095
23117
|
const { indices: i, values: l, vMin: s, vMax: c, colorId: d } = e, { colorCodecs: u, colorIDs: f, colorCodecKey: g } = o, p = r.data, _ = !!(g && u && u[g]), y = _ ? u[g] : null;
|
|
23096
23118
|
for (let v = 0; v < i.length; v += 3) {
|
|
23097
23119
|
const x = i[v], P = i[v + 1], b = i[v + 2], E = a[x], S = a[P], C = a[b], k = Math.max(0, Math.floor(Math.min(E.u, S.u, C.u))), L = Math.min(t - 1, Math.ceil(Math.max(E.u, S.u, C.u))), R = Math.max(0, Math.floor(Math.min(E.v, S.v, C.v))), I = Math.min(n - 1, Math.ceil(Math.max(E.v, S.v, C.v)));
|
|
@@ -23099,7 +23121,7 @@ function tp(e, t, n, a, r, o) {
|
|
|
23099
23121
|
_ && y ? (B = Wo(y, l[x], s, c), T = Wo(y, l[P], s, c), A = Wo(y, l[b], s, c)) : (B = Ho(f != null ? f : {}, d), T = Ho(f != null ? f : {}, d), A = Ho(f != null ? f : {}, d));
|
|
23100
23122
|
for (let m = R; m <= I; m++)
|
|
23101
23123
|
for (let O = k; O <= L; O++) {
|
|
23102
|
-
const [z, U, W, ie] =
|
|
23124
|
+
const [z, U, W, ie] = tp(E, S, C, O, m);
|
|
23103
23125
|
if (!ie) continue;
|
|
23104
23126
|
const ne = (m * t + O) * 4;
|
|
23105
23127
|
p[ne] = Math.round(Math.max(0, Math.min(255, (z * B[0] + U * T[0] + W * A[0]) * 255))), p[ne + 1] = Math.round(
|
|
@@ -23118,7 +23140,7 @@ function qi(e) {
|
|
|
23118
23140
|
o.u < t && (t = o.u), o.u > n && (n = o.u), o.v < a && (a = o.v), o.v > r && (r = o.v);
|
|
23119
23141
|
return { minU: t, maxU: n, minV: a, maxV: r };
|
|
23120
23142
|
}
|
|
23121
|
-
function
|
|
23143
|
+
function op(e, t, n, a) {
|
|
23122
23144
|
var s, c, d;
|
|
23123
23145
|
const r = (s = a.renderScale) != null ? s : 1, o = (c = a.maxCanvasWidth) != null ? c : 8192, i = (d = a.maxCanvasHeight) != null ? d : 8192;
|
|
23124
23146
|
if (a.pixelsPerUnit != null && a.pixelsPerUnit > 0) {
|
|
@@ -23168,20 +23190,20 @@ function ts(e, t) {
|
|
|
23168
23190
|
const n = e.filter((k) => k.vertices.length >= 9 && k.indices.length >= 3), a = n[0];
|
|
23169
23191
|
if (!a)
|
|
23170
23192
|
throw new Error("No valid mesh data to render");
|
|
23171
|
-
const r = t.planeCorners ?
|
|
23193
|
+
const r = t.planeCorners ? jd(t.planeCorners) : Qd(a.vertices), o = n.map((k) => ({
|
|
23172
23194
|
meshData: k,
|
|
23173
23195
|
points2D: Ki(es(k.vertices, r), t)
|
|
23174
23196
|
}));
|
|
23175
23197
|
let i = 1 / 0, l = -1 / 0, s = 1 / 0, c = -1 / 0;
|
|
23176
23198
|
if (t.planeCorners) {
|
|
23177
|
-
const k = qi(Ki(
|
|
23199
|
+
const k = qi(Ki(ep(t.planeCorners, r), t));
|
|
23178
23200
|
i = k.minU, l = k.maxU, s = k.minV, c = k.maxV;
|
|
23179
23201
|
} else
|
|
23180
23202
|
for (const { points2D: k } of o) {
|
|
23181
23203
|
const L = qi(k);
|
|
23182
23204
|
L.minU < i && (i = L.minU), L.maxU > l && (l = L.maxU), L.minV < s && (s = L.minV), L.maxV > c && (c = L.maxV);
|
|
23183
23205
|
}
|
|
23184
|
-
const d = l - i || 1, u = c - s || 1, f = d / u, { width: g, height: p } =
|
|
23206
|
+
const d = l - i || 1, u = c - s || 1, f = d / u, { width: g, height: p } = op(f, d, u, t);
|
|
23185
23207
|
let _ = g, y = p, v = 0, x = 0;
|
|
23186
23208
|
f > g / p ? (y = g / f, x = (p - y) / 2) : (_ = p * f, v = (g - _) / 2);
|
|
23187
23209
|
const P = _ / d, b = y / u, E = document.createElement("canvas");
|
|
@@ -23194,17 +23216,17 @@ function ts(e, t) {
|
|
|
23194
23216
|
u: (I.u - i) * P + v,
|
|
23195
23217
|
v: (I.v - s) * b + x
|
|
23196
23218
|
}));
|
|
23197
|
-
|
|
23219
|
+
np(k, g, p, R, C, t);
|
|
23198
23220
|
}
|
|
23199
23221
|
return S.putImageData(C, 0, 0), { canvas: E, imageData: C };
|
|
23200
23222
|
}
|
|
23201
23223
|
function _o(e, t) {
|
|
23202
23224
|
return ts([e], t);
|
|
23203
23225
|
}
|
|
23204
|
-
function op(e, t = {}) {
|
|
23205
|
-
return _o(qd(e), t);
|
|
23206
|
-
}
|
|
23207
23226
|
function rp(e, t = {}) {
|
|
23227
|
+
return _o(Kd(e), t);
|
|
23228
|
+
}
|
|
23229
|
+
function ip(e, t = {}) {
|
|
23208
23230
|
var o;
|
|
23209
23231
|
const n = (o = t.sliceIndex) != null ? o : 0, a = e.slices[n];
|
|
23210
23232
|
if (!a)
|
|
@@ -23216,37 +23238,37 @@ function rp(e, t = {}) {
|
|
|
23216
23238
|
z: e.center.z
|
|
23217
23239
|
})), _o(r, t);
|
|
23218
23240
|
}
|
|
23219
|
-
function
|
|
23241
|
+
function Gp(e, t = {}) {
|
|
23220
23242
|
return _o(Qa(e), t);
|
|
23221
23243
|
}
|
|
23222
|
-
function ip(e, t = {}) {
|
|
23223
|
-
return _o(ja(e), t);
|
|
23224
|
-
}
|
|
23225
23244
|
function ap(e, t = {}) {
|
|
23226
|
-
return
|
|
23245
|
+
return _o(ja(e), t);
|
|
23227
23246
|
}
|
|
23228
23247
|
function sp(e, t = {}) {
|
|
23229
|
-
return
|
|
23248
|
+
return ts(e.map(ja), t);
|
|
23230
23249
|
}
|
|
23231
23250
|
function lp(e, t = {}) {
|
|
23232
|
-
return rp(
|
|
23251
|
+
return rp(hr.decode(new Uint8Array(e)), t);
|
|
23233
23252
|
}
|
|
23234
23253
|
function cp(e, t = {}) {
|
|
23235
|
-
return ip(
|
|
23254
|
+
return ip(mr.decode(new Uint8Array(e)), t);
|
|
23255
|
+
}
|
|
23256
|
+
function up(e, t = {}) {
|
|
23257
|
+
return ap(an.decode(new Uint8Array(e)), t);
|
|
23236
23258
|
}
|
|
23237
|
-
function
|
|
23259
|
+
function fp(e, t, n = {}) {
|
|
23238
23260
|
if (jn.decode(new Uint8Array(e)).formations.length > 0 && t.length === 0)
|
|
23239
23261
|
throw new Error("FormationGroup contains formations but no formation buffers were provided");
|
|
23240
23262
|
const r = t.map((o) => an.decode(new Uint8Array(o)));
|
|
23241
|
-
return
|
|
23263
|
+
return sp(r, n);
|
|
23242
23264
|
}
|
|
23243
|
-
async function
|
|
23265
|
+
async function Yp(e, t, n = {}) {
|
|
23244
23266
|
const a = await fetch(e);
|
|
23245
23267
|
if (!a.ok) throw new Error(`Failed to fetch slice data: ${a.status} ${a.statusText}`);
|
|
23246
|
-
const r = await a.arrayBuffer(), o = t === "density" ?
|
|
23268
|
+
const r = await a.arrayBuffer(), o = t === "density" ? lp(r, n) : t === "formation" ? cp(r, n) : up(r, n), i = await dp(o.canvas);
|
|
23247
23269
|
return URL.createObjectURL(i);
|
|
23248
23270
|
}
|
|
23249
|
-
async function
|
|
23271
|
+
async function Jp(e, t = {}) {
|
|
23250
23272
|
var l;
|
|
23251
23273
|
const n = await fetch(e);
|
|
23252
23274
|
if (!n.ok) throw new Error(`Failed to fetch formation group data: ${n.status} ${n.statusText}`);
|
|
@@ -23258,9 +23280,9 @@ async function Yp(e, t = {}) {
|
|
|
23258
23280
|
return d.arrayBuffer();
|
|
23259
23281
|
})
|
|
23260
23282
|
);
|
|
23261
|
-
return
|
|
23283
|
+
return fp(a, i, t);
|
|
23262
23284
|
}
|
|
23263
|
-
function
|
|
23285
|
+
function dp(e) {
|
|
23264
23286
|
return new Promise((t, n) => {
|
|
23265
23287
|
e.toBlob(
|
|
23266
23288
|
(a) => {
|
|
@@ -23270,30 +23292,30 @@ function fp(e) {
|
|
|
23270
23292
|
);
|
|
23271
23293
|
});
|
|
23272
23294
|
}
|
|
23273
|
-
function
|
|
23295
|
+
function Xp(e) {
|
|
23274
23296
|
return e.toDataURL("image/png");
|
|
23275
23297
|
}
|
|
23276
23298
|
export {
|
|
23277
23299
|
tf as AttributeBody,
|
|
23278
23300
|
hn as AxesViewerPosition,
|
|
23279
|
-
|
|
23301
|
+
Fp as CachePreload,
|
|
23280
23302
|
$e as CacheType,
|
|
23281
23303
|
nf as ColorCodec,
|
|
23282
23304
|
ff as ComplexFormationManager,
|
|
23283
23305
|
df as Coordinate,
|
|
23284
23306
|
kt as CustomShader,
|
|
23285
23307
|
ur as DarkMetalMaterial,
|
|
23286
|
-
|
|
23308
|
+
Up as DataBinding,
|
|
23287
23309
|
$a as DensitySlice,
|
|
23288
23310
|
yf as FPS,
|
|
23289
|
-
|
|
23311
|
+
zp as FlatMaterial,
|
|
23290
23312
|
fr as FormationFace,
|
|
23291
23313
|
Cf as FormationManager,
|
|
23292
23314
|
Ua as FormationSlice,
|
|
23293
23315
|
dr as FormationVolume,
|
|
23294
23316
|
lt as GUIText,
|
|
23295
23317
|
kf as Geo3DCamera,
|
|
23296
|
-
|
|
23318
|
+
$p as Geo3DUniversalCamera,
|
|
23297
23319
|
Ha as Geo3DViewer,
|
|
23298
23320
|
zf as GridDiagram,
|
|
23299
23321
|
Uo as Ground,
|
|
@@ -23305,55 +23327,55 @@ export {
|
|
|
23305
23327
|
Uf as LookAt,
|
|
23306
23328
|
Ke as MaterialType,
|
|
23307
23329
|
gr as ModelLoader,
|
|
23308
|
-
|
|
23309
|
-
|
|
23310
|
-
|
|
23311
|
-
|
|
23312
|
-
|
|
23330
|
+
Gf as Optimizer,
|
|
23331
|
+
qf as PlaneImage,
|
|
23332
|
+
Qf as PointClickZone,
|
|
23333
|
+
Kf as PointClickZoneObjectType,
|
|
23334
|
+
jf as ProgressedAttributeBody,
|
|
23313
23335
|
Ju as ProgressedRemapColorByRedChannelMaterial,
|
|
23314
23336
|
Xu as ProgressedRepeatedTextureMaterial,
|
|
23315
|
-
|
|
23316
|
-
|
|
23337
|
+
Qp as PureComponents,
|
|
23338
|
+
ed as RayClick,
|
|
23317
23339
|
cn as RemapColorByRedChannelMaterial,
|
|
23318
23340
|
Wn as RepeatedTextureMaterial,
|
|
23319
|
-
|
|
23320
|
-
|
|
23321
|
-
|
|
23322
|
-
|
|
23341
|
+
td as RibbonLayer,
|
|
23342
|
+
sd as RoadWay,
|
|
23343
|
+
Wp as Roam,
|
|
23344
|
+
Hp as Rod,
|
|
23323
23345
|
tn as ScaleMode,
|
|
23324
|
-
|
|
23325
|
-
|
|
23326
|
-
|
|
23327
|
-
|
|
23346
|
+
Vp as Scene,
|
|
23347
|
+
gd as SkyBox,
|
|
23348
|
+
xd as SpaceHeat,
|
|
23349
|
+
vd as SpaceHeatObjectType,
|
|
23328
23350
|
Da as StructureLayer,
|
|
23329
|
-
|
|
23330
|
-
|
|
23331
|
-
|
|
23351
|
+
Cd as TileMap,
|
|
23352
|
+
yd as TileMapMode,
|
|
23353
|
+
Od as Tube,
|
|
23332
23354
|
Ui as TubeChart,
|
|
23333
|
-
|
|
23334
|
-
|
|
23355
|
+
Fd as TubeChartLine,
|
|
23356
|
+
Ad as TubeInstance,
|
|
23335
23357
|
Vi as TubeLayer,
|
|
23336
|
-
|
|
23337
|
-
|
|
23358
|
+
Hd as TubeMain,
|
|
23359
|
+
Vd as TubeOil,
|
|
23338
23360
|
Fi as TubeTool,
|
|
23339
|
-
|
|
23340
|
-
|
|
23341
|
-
|
|
23361
|
+
Bp as Utils,
|
|
23362
|
+
Gd as VoxelGrid,
|
|
23363
|
+
Dp as calcCompass,
|
|
23342
23364
|
It as calcGUIScale,
|
|
23343
23365
|
Xs as calcInvTransformNodeScale,
|
|
23344
23366
|
De as calcTransformNodeScale,
|
|
23345
|
-
|
|
23346
|
-
|
|
23347
|
-
|
|
23348
|
-
|
|
23349
|
-
|
|
23350
|
-
|
|
23351
|
-
|
|
23352
|
-
|
|
23353
|
-
|
|
23354
|
-
|
|
23355
|
-
|
|
23356
|
-
|
|
23357
|
-
|
|
23358
|
-
|
|
23367
|
+
dp as canvasToPngBlob,
|
|
23368
|
+
Xp as canvasToPngDataUrl,
|
|
23369
|
+
Zp as createComponentInstance,
|
|
23370
|
+
lp as renderDensitySliceFromBuffer,
|
|
23371
|
+
rp as renderDensitySliceToCanvas,
|
|
23372
|
+
up as renderFormationFromBuffer,
|
|
23373
|
+
fp as renderFormationGroupFromBuffers,
|
|
23374
|
+
Jp as renderFormationGroupFromUrl,
|
|
23375
|
+
sp as renderFormationGroupToCanvas,
|
|
23376
|
+
Gp as renderFormationSliceToCanvas,
|
|
23377
|
+
cp as renderFormationSlicesFromBuffer,
|
|
23378
|
+
ip as renderFormationSlicesToCanvas,
|
|
23379
|
+
ap as renderFormationToCanvas,
|
|
23380
|
+
Yp as renderSliceFromUrl
|
|
23359
23381
|
};
|