iflow-engine-base 3.4.11 → 3.4.12
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/bim-engine-sdk.es.js +255 -197
- package/dist/bim-engine-sdk.es.js.map +1 -1
- package/dist/bim-engine-sdk.umd.js +130 -74
- package/dist/bim-engine-sdk.umd.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _ from "three";
|
|
2
|
-
import { Controls as oc, Vector3 as Ee, MathUtils as Ar, MOUSE as Ai, TOUCH as mi, Quaternion as Nt, Spherical as Ta, Vector2 as rt, Ray as Qd, Plane as lc, Mesh as Fe, OrthographicCamera as Hd, BufferGeometry as Cs, Float32BufferAttribute as Ba, ShaderMaterial as li, UniformsUtils as $t, WebGLRenderTarget as Ss, HalfFloatType as Pt, NoBlending as Ht, Timer as Dp, Color as Vt, Matrix4 as Wt, DataTexture as ka, RepeatWrapping as sn, MeshNormalMaterial as Vd, AddEquation as
|
|
2
|
+
import { Controls as oc, Vector3 as Ee, MathUtils as Ar, MOUSE as Ai, TOUCH as mi, Quaternion as Nt, Spherical as Ta, Vector2 as rt, Ray as Qd, Plane as lc, Mesh as Fe, OrthographicCamera as Hd, BufferGeometry as Cs, Float32BufferAttribute as Ba, ShaderMaterial as li, UniformsUtils as $t, WebGLRenderTarget as Ss, HalfFloatType as Pt, NoBlending as Ht, Timer as Dp, Color as Vt, Matrix4 as Wt, DataTexture as ka, RepeatWrapping as sn, MeshNormalMaterial as Vd, AddEquation as xs, ZeroFactor as bs, DstAlphaFactor as $o, DstColorFactor as el, CustomBlending as Wd, DepthTexture as jd, DepthStencilFormat as qd, UnsignedInt248Type as Xd, NearestFilter as yn, RGBAFormat as Gn, UnsignedByteType as tt, RedFormat as _s, FloatType as en, RawShaderMaterial as Pp, ColorManagement as lr, SRGBTransfer as Lp, LinearToneMapping as Fp, ReinhardToneMapping as kp, CineonToneMapping as Up, ACESFilmicToneMapping as Np, AgXToneMapping as Op, NeutralToneMapping as zp, CustomToneMapping as Gp, Loader as Ua, FileLoader as vn, SRGBColorSpace as Ui, LinearSRGBColorSpace as bi, BufferAttribute as vs, InterleavedBuffer as Yd, InterleavedBufferAttribute as Kd, CompressedCubeTexture as Qp, CompressedArrayTexture as Hp, CompressedTexture as Jd, LinearFilter as rn, LinearMipmapLinearFilter as Na, NoColorSpace as Nc, RGBA_PVRTC_2BPPV1_Format as Oc, RGBA_PVRTC_4BPPV1_Format as tl, RGBA_BPTC_Format as il, RED_GREEN_RGTC2_Format as Vp, SIGNED_RED_GREEN_RGTC2_Format as Wp, RED_RGTC1_Format as jp, SIGNED_RED_RGTC1_Format as qp, RGBA_S3TC_DXT5_Format as nl, RGB_S3TC_DXT1_Format as zc, RGBA_S3TC_DXT1_Format as sl, RGBA_ASTC_6x6_Format as to, RGBA_ASTC_4x4_Format as ga, SIGNED_RG11_EAC_Format as Xp, RG11_EAC_Format as Yp, SIGNED_R11_EAC_Format as Kp, R11_EAC_Format as Jp, RGB_ETC2_Format as Zd, RGBA_ETC2_EAC_Format as $d, RGBFormat as rl, RGFormat as tr, UnsignedInt101111Type as eu, UnsignedInt5999Type as tu, Data3DTexture as Zp, NearestMipmapNearestFilter as iu, RGB_PVRTC_4BPPV1_Format as $p, RGB_ETC1_Format as em, RGB_BPTC_UNSIGNED_Format as tm, TrianglesDrawMode as im, TriangleFanDrawMode as al, TriangleStripDrawMode as nu, LoaderUtils as or, MeshPhysicalMaterial as zi, SpotLight as nm, PointLight as sm, DirectionalLight as rm, InstancedMesh as am, InstancedBufferAttribute as om, Object3D as cr, TextureLoader as lm, ImageBitmapLoader as cm, NearestMipmapLinearFilter as hm, LinearMipmapNearestFilter as dm, MirroredRepeatWrapping as um, ClampToEdgeWrapping as fm, PointsMaterial as pm, Material as io, LineBasicMaterial as su, MeshStandardMaterial as ru, DoubleSide as au, MeshBasicMaterial as Qn, PropertyBinding as mm, SkinnedMesh as gm, LineSegments as Am, Line as qi, LineLoop as xm, Points as bm, Group as no, PerspectiveCamera as ou, Skeleton as _m, AnimationClip as vm, Bone as Em, InterpolateDiscrete as ym, InterpolateLinear as lu, Texture as Gc, VectorKeyframeTrack as Qc, NumberKeyframeTrack as Hc, QuaternionKeyframeTrack as Vc, FrontSide as cu, Interpolant as Mm, Box3 as wm, Sphere as Cm, Raycaster as Sm, CylinderGeometry as Yt, BoxGeometry as kt, OctahedronGeometry as Tr, TorusGeometry as zs, SphereGeometry as Im, Euler as Tm, PlaneGeometry as Bm, DataTextureLoader as Rm, DataUtils as Br, Vector4 as Wc, UniformsLib as jc, BackSide as Dm, ExtrudeGeometry as Pm, ShapePath as Lm } from "three";
|
|
3
3
|
import * as Fm from "opentype.js";
|
|
4
4
|
class km {
|
|
5
5
|
engine;
|
|
@@ -336,7 +336,7 @@ class Um {
|
|
|
336
336
|
};
|
|
337
337
|
}
|
|
338
338
|
}
|
|
339
|
-
const cc = "181", Nm = 0, qc = 1, Om = 2, hu = 1, du = 2, Xi = 3, Mn = 0, ei = 1, Ki = 2, tn = 0,
|
|
339
|
+
const cc = "181", Nm = 0, qc = 1, Om = 2, hu = 1, du = 2, Xi = 3, Mn = 0, ei = 1, Ki = 2, tn = 0, Es = 1, Xc = 2, Yc = 3, Kc = 4, zm = 5, On = 100, Gm = 101, Qm = 102, Hm = 103, Vm = 104, Wm = 200, jm = 201, qm = 202, Xm = 203, ol = 204, ll = 205, Ym = 206, Km = 207, Jm = 208, Zm = 209, $m = 210, eg = 211, tg = 212, ig = 213, ng = 214, cl = 0, hl = 1, dl = 2, Is = 3, ul = 4, fl = 5, pl = 6, ml = 7, uu = 0, sg = 1, rg = 2, En = 0, ag = 1, og = 2, lg = 3, cg = 4, hg = 5, dg = 6, ug = 7, fu = 300, Ts = 301, Bs = 302, gl = 303, Al = 304, Oa = 306, xl = 1e3, Zi = 1001, bl = 1002, hi = 1003, fg = 1004, Rr = 1005, gi = 1006, so = 1007, Hn = 1008, an = 1009, pu = 1010, mu = 1011, hr = 1012, hc = 1013, Kn = 1014, $i = 1015, Ls = 1016, dc = 1017, uc = 1018, dr = 1020, gu = 35902, Au = 35899, xu = 1021, bu = 1022, Ci = 1023, ur = 1026, fr = 1027, _u = 1028, fc = 1029, pc = 1030, mc = 1031, gc = 1033, xa = 33776, ba = 33777, _a = 33778, va = 33779, _l = 35840, vl = 35841, El = 35842, yl = 35843, Ml = 36196, wl = 37492, Cl = 37496, Sl = 37808, Il = 37809, Tl = 37810, Bl = 37811, Rl = 37812, Dl = 37813, Pl = 37814, Ll = 37815, Fl = 37816, kl = 37817, Ul = 37818, Nl = 37819, Ol = 37820, zl = 37821, Gl = 36492, Ql = 36494, Hl = 36495, Vl = 36283, Wl = 36284, jl = 36285, ql = 36286, pg = 3200, mg = 3201, gg = 0, Ag = 1, bn = "", oi = "srgb", Rs = "srgb-linear", Ra = "linear", lt = "srgb", is = 7680, Jc = 519, xg = 512, bg = 513, _g = 514, vu = 515, vg = 516, Eg = 517, yg = 518, Mg = 519, Zc = 35044, $c = "300 es", ki = 2e3, Da = 2001;
|
|
340
340
|
function Eu(s) {
|
|
341
341
|
for (let e = s.length - 1; e >= 0; --e)
|
|
342
342
|
if (s[e] >= 65535) return !0;
|
|
@@ -2654,7 +2654,7 @@ function Ig() {
|
|
|
2654
2654
|
*/
|
|
2655
2655
|
spaces: {},
|
|
2656
2656
|
convert: function(n, r, a) {
|
|
2657
|
-
return this.enabled === !1 || r === a || !r || !a || (this.spaces[r].transfer === lt && (n.r = nn(n.r), n.g = nn(n.g), n.b = nn(n.b)), this.spaces[r].primaries !== this.spaces[a].primaries && (n.applyMatrix3(this.spaces[r].toXYZ), n.applyMatrix3(this.spaces[a].fromXYZ)), this.spaces[a].transfer === lt && (n.r =
|
|
2657
|
+
return this.enabled === !1 || r === a || !r || !a || (this.spaces[r].transfer === lt && (n.r = nn(n.r), n.g = nn(n.g), n.b = nn(n.b)), this.spaces[r].primaries !== this.spaces[a].primaries && (n.applyMatrix3(this.spaces[r].toXYZ), n.applyMatrix3(this.spaces[a].fromXYZ)), this.spaces[a].transfer === lt && (n.r = ys(n.r), n.g = ys(n.g), n.b = ys(n.b))), n;
|
|
2658
2658
|
},
|
|
2659
2659
|
workingToColorSpace: function(n, r) {
|
|
2660
2660
|
return this.convert(n, this.workingColorSpace, r);
|
|
@@ -2721,10 +2721,10 @@ const st = /* @__PURE__ */ Ig();
|
|
|
2721
2721
|
function nn(s) {
|
|
2722
2722
|
return s < 0.04045 ? s * 0.0773993808 : Math.pow(s * 0.9478672986 + 0.0521327014, 2.4);
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2724
|
+
function ys(s) {
|
|
2725
2725
|
return s < 31308e-7 ? s * 12.92 : 1.055 * Math.pow(s, 0.41666) - 0.055;
|
|
2726
2726
|
}
|
|
2727
|
-
let
|
|
2727
|
+
let ns;
|
|
2728
2728
|
class Tg {
|
|
2729
2729
|
/**
|
|
2730
2730
|
* Returns a data URI containing a representation of the given image.
|
|
@@ -2740,9 +2740,9 @@ class Tg {
|
|
|
2740
2740
|
if (e instanceof HTMLCanvasElement)
|
|
2741
2741
|
i = e;
|
|
2742
2742
|
else {
|
|
2743
|
-
|
|
2744
|
-
const n =
|
|
2745
|
-
e instanceof ImageData ? n.putImageData(e, 0, 0) : n.drawImage(e, 0, 0, e.width, e.height), i =
|
|
2743
|
+
ns === void 0 && (ns = Pa("canvas")), ns.width = e.width, ns.height = e.height;
|
|
2744
|
+
const n = ns.getContext("2d");
|
|
2745
|
+
e instanceof ImageData ? n.putImageData(e, 0, 0) : n.drawImage(e, 0, 0, e.width, e.height), i = ns;
|
|
2746
2746
|
}
|
|
2747
2747
|
return i.toDataURL(t);
|
|
2748
2748
|
}
|
|
@@ -3747,7 +3747,7 @@ class Dg extends Fs {
|
|
|
3747
3747
|
this.dispatchEvent({ type: "dispose" });
|
|
3748
3748
|
}
|
|
3749
3749
|
}
|
|
3750
|
-
class
|
|
3750
|
+
class Jn extends Dg {
|
|
3751
3751
|
/**
|
|
3752
3752
|
* Constructs a new 3D render target.
|
|
3753
3753
|
*
|
|
@@ -4070,7 +4070,7 @@ class _r {
|
|
|
4070
4070
|
intersectsTriangle(e) {
|
|
4071
4071
|
if (this.isEmpty())
|
|
4072
4072
|
return !1;
|
|
4073
|
-
this.getCenter(Qs), Pr.subVectors(this.max, Qs),
|
|
4073
|
+
this.getCenter(Qs), Pr.subVectors(this.max, Qs), ss.subVectors(e.a, Qs), rs.subVectors(e.b, Qs), as.subVectors(e.c, Qs), dn.subVectors(rs, ss), un.subVectors(as, rs), Tn.subVectors(ss, as);
|
|
4074
4074
|
let t = [
|
|
4075
4075
|
0,
|
|
4076
4076
|
-dn.z,
|
|
@@ -4100,7 +4100,7 @@ class _r {
|
|
|
4100
4100
|
Tn.x,
|
|
4101
4101
|
0
|
|
4102
4102
|
];
|
|
4103
|
-
return !uo(t,
|
|
4103
|
+
return !uo(t, ss, rs, as, Pr) || (t = [1, 0, 0, 0, 1, 0, 0, 0, 1], !uo(t, ss, rs, as, Pr)) ? !1 : (Lr.crossVectors(dn, un), t = [Lr.x, Lr.y, Lr.z], uo(t, ss, rs, as, Pr));
|
|
4104
4104
|
}
|
|
4105
4105
|
/**
|
|
4106
4106
|
* Clamps the given point within the bounds of this box.
|
|
@@ -4212,7 +4212,7 @@ const Gi = [
|
|
|
4212
4212
|
/* @__PURE__ */ new ce(),
|
|
4213
4213
|
/* @__PURE__ */ new ce(),
|
|
4214
4214
|
/* @__PURE__ */ new ce()
|
|
4215
|
-
], _i = /* @__PURE__ */ new ce(), Dr = /* @__PURE__ */ new _r(),
|
|
4215
|
+
], _i = /* @__PURE__ */ new ce(), Dr = /* @__PURE__ */ new _r(), ss = /* @__PURE__ */ new ce(), rs = /* @__PURE__ */ new ce(), as = /* @__PURE__ */ new ce(), dn = /* @__PURE__ */ new ce(), un = /* @__PURE__ */ new ce(), Tn = /* @__PURE__ */ new ce(), Qs = /* @__PURE__ */ new ce(), Pr = /* @__PURE__ */ new ce(), Lr = /* @__PURE__ */ new ce(), Bn = /* @__PURE__ */ new ce();
|
|
4216
4216
|
function uo(s, e, t, i, n) {
|
|
4217
4217
|
for (let r = 0, a = s.length - 3; r <= a; r += 3) {
|
|
4218
4218
|
Bn.fromArray(s, r);
|
|
@@ -4899,7 +4899,7 @@ class Tt {
|
|
|
4899
4899
|
* @return {Matrix4} A reference to this matrix.
|
|
4900
4900
|
*/
|
|
4901
4901
|
extractRotation(e) {
|
|
4902
|
-
const t = this.elements, i = e.elements, n = 1 /
|
|
4902
|
+
const t = this.elements, i = e.elements, n = 1 / os.setFromMatrixColumn(e, 0).length(), r = 1 / os.setFromMatrixColumn(e, 1).length(), a = 1 / os.setFromMatrixColumn(e, 2).length();
|
|
4903
4903
|
return t[0] = i[0] * n, t[1] = i[1] * n, t[2] = i[2] * n, t[3] = 0, t[4] = i[4] * r, t[5] = i[5] * r, t[6] = i[6] * r, t[7] = 0, t[8] = i[8] * a, t[9] = i[9] * a, t[10] = i[10] * a, t[11] = 0, t[12] = 0, t[13] = 0, t[14] = 0, t[15] = 1, this;
|
|
4904
4904
|
}
|
|
4905
4905
|
/**
|
|
@@ -5313,8 +5313,8 @@ class Tt {
|
|
|
5313
5313
|
*/
|
|
5314
5314
|
decompose(e, t, i) {
|
|
5315
5315
|
const n = this.elements;
|
|
5316
|
-
let r =
|
|
5317
|
-
const a =
|
|
5316
|
+
let r = os.set(n[0], n[1], n[2]).length();
|
|
5317
|
+
const a = os.set(n[4], n[5], n[6]).length(), o = os.set(n[8], n[9], n[10]).length();
|
|
5318
5318
|
this.determinant() < 0 && (r = -r), e.x = n[12], e.y = n[13], e.z = n[14], vi.copy(this);
|
|
5319
5319
|
const c = 1 / r, h = 1 / a, d = 1 / o;
|
|
5320
5320
|
return vi.elements[0] *= c, vi.elements[1] *= c, vi.elements[2] *= c, vi.elements[4] *= h, vi.elements[5] *= h, vi.elements[6] *= h, vi.elements[8] *= d, vi.elements[9] *= d, vi.elements[10] *= d, t.setFromRotationMatrix(vi), i.x = r, i.y = a, i.z = o, this;
|
|
@@ -5410,8 +5410,8 @@ class Tt {
|
|
|
5410
5410
|
return e[t] = i[0], e[t + 1] = i[1], e[t + 2] = i[2], e[t + 3] = i[3], e[t + 4] = i[4], e[t + 5] = i[5], e[t + 6] = i[6], e[t + 7] = i[7], e[t + 8] = i[8], e[t + 9] = i[9], e[t + 10] = i[10], e[t + 11] = i[11], e[t + 12] = i[12], e[t + 13] = i[13], e[t + 14] = i[14], e[t + 15] = i[15], e;
|
|
5411
5411
|
}
|
|
5412
5412
|
}
|
|
5413
|
-
const
|
|
5414
|
-
class
|
|
5413
|
+
const os = /* @__PURE__ */ new ce(), vi = /* @__PURE__ */ new Tt(), kg = /* @__PURE__ */ new ce(0, 0, 0), Ug = /* @__PURE__ */ new ce(1, 1, 1), pn = /* @__PURE__ */ new ce(), Ur = /* @__PURE__ */ new ce(), ri = /* @__PURE__ */ new ce(), rh = /* @__PURE__ */ new Tt(), ah = /* @__PURE__ */ new br();
|
|
5414
|
+
class $n {
|
|
5415
5415
|
/**
|
|
5416
5416
|
* Constructs a new euler instance.
|
|
5417
5417
|
*
|
|
@@ -5420,7 +5420,7 @@ class Zn {
|
|
|
5420
5420
|
* @param {number} [z=0] - The angle of the z axis in radians.
|
|
5421
5421
|
* @param {string} [order=Euler.DEFAULT_ORDER] - A string representing the order that the rotations are applied.
|
|
5422
5422
|
*/
|
|
5423
|
-
constructor(e = 0, t = 0, i = 0, n =
|
|
5423
|
+
constructor(e = 0, t = 0, i = 0, n = $n.DEFAULT_ORDER) {
|
|
5424
5424
|
this.isEuler = !0, this._x = e, this._y = t, this._z = i, this._order = n;
|
|
5425
5425
|
}
|
|
5426
5426
|
/**
|
|
@@ -5608,7 +5608,7 @@ class Zn {
|
|
|
5608
5608
|
yield this._x, yield this._y, yield this._z, yield this._order;
|
|
5609
5609
|
}
|
|
5610
5610
|
}
|
|
5611
|
-
|
|
5611
|
+
$n.DEFAULT_ORDER = "XYZ";
|
|
5612
5612
|
class Mu {
|
|
5613
5613
|
/**
|
|
5614
5614
|
* Constructs a new layers instance, with membership
|
|
@@ -5682,14 +5682,14 @@ class Mu {
|
|
|
5682
5682
|
}
|
|
5683
5683
|
}
|
|
5684
5684
|
let Ng = 0;
|
|
5685
|
-
const oh = /* @__PURE__ */ new ce(),
|
|
5685
|
+
const oh = /* @__PURE__ */ new ce(), ls = /* @__PURE__ */ new br(), Hi = /* @__PURE__ */ new Tt(), Nr = /* @__PURE__ */ new ce(), Vs = /* @__PURE__ */ new ce(), Og = /* @__PURE__ */ new ce(), zg = /* @__PURE__ */ new br(), lh = /* @__PURE__ */ new ce(1, 0, 0), ch = /* @__PURE__ */ new ce(0, 1, 0), hh = /* @__PURE__ */ new ce(0, 0, 1), dh = { type: "added" }, Gg = { type: "removed" }, cs = { type: "childadded", child: null }, Ao = { type: "childremoved", child: null };
|
|
5686
5686
|
class xi extends Fs {
|
|
5687
5687
|
/**
|
|
5688
5688
|
* Constructs a new 3D object.
|
|
5689
5689
|
*/
|
|
5690
5690
|
constructor() {
|
|
5691
5691
|
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Ng++ }), this.uuid = xr(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = xi.DEFAULT_UP.clone();
|
|
5692
|
-
const e = new ce(), t = new
|
|
5692
|
+
const e = new ce(), t = new $n(), i = new br(), n = new ce(1, 1, 1);
|
|
5693
5693
|
function r() {
|
|
5694
5694
|
i.setFromEuler(t, !1);
|
|
5695
5695
|
}
|
|
@@ -5874,7 +5874,7 @@ class xi extends Fs {
|
|
|
5874
5874
|
* @return {Object3D} A reference to this instance.
|
|
5875
5875
|
*/
|
|
5876
5876
|
rotateOnAxis(e, t) {
|
|
5877
|
-
return
|
|
5877
|
+
return ls.setFromAxisAngle(e, t), this.quaternion.multiply(ls), this;
|
|
5878
5878
|
}
|
|
5879
5879
|
/**
|
|
5880
5880
|
* Rotates the 3D object along an axis in world space.
|
|
@@ -5884,7 +5884,7 @@ class xi extends Fs {
|
|
|
5884
5884
|
* @return {Object3D} A reference to this instance.
|
|
5885
5885
|
*/
|
|
5886
5886
|
rotateOnWorldAxis(e, t) {
|
|
5887
|
-
return
|
|
5887
|
+
return ls.setFromAxisAngle(e, t), this.quaternion.premultiply(ls), this;
|
|
5888
5888
|
}
|
|
5889
5889
|
/**
|
|
5890
5890
|
* Rotates the 3D object around its X axis in local space.
|
|
@@ -5980,7 +5980,7 @@ class xi extends Fs {
|
|
|
5980
5980
|
lookAt(e, t, i) {
|
|
5981
5981
|
e.isVector3 ? Nr.copy(e) : Nr.set(e, t, i);
|
|
5982
5982
|
const n = this.parent;
|
|
5983
|
-
this.updateWorldMatrix(!0, !1), Vs.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Hi.lookAt(Vs, Nr, this.up) : Hi.lookAt(Nr, Vs, this.up), this.quaternion.setFromRotationMatrix(Hi), n && (Hi.extractRotation(n.matrixWorld),
|
|
5983
|
+
this.updateWorldMatrix(!0, !1), Vs.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? Hi.lookAt(Vs, Nr, this.up) : Hi.lookAt(Nr, Vs, this.up), this.quaternion.setFromRotationMatrix(Hi), n && (Hi.extractRotation(n.matrixWorld), ls.setFromRotationMatrix(Hi), this.quaternion.premultiply(ls.invert()));
|
|
5984
5984
|
}
|
|
5985
5985
|
/**
|
|
5986
5986
|
* Adds the given 3D object as a child to this 3D object. An arbitrary number of
|
|
@@ -5998,7 +5998,7 @@ class xi extends Fs {
|
|
|
5998
5998
|
this.add(arguments[t]);
|
|
5999
5999
|
return this;
|
|
6000
6000
|
}
|
|
6001
|
-
return e === this ? (yt("Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(dh),
|
|
6001
|
+
return e === this ? (yt("Object3D.add: object can't be added as a child of itself.", e), this) : (e && e.isObject3D ? (e.removeFromParent(), e.parent = this, this.children.push(e), e.dispatchEvent(dh), cs.child = e, this.dispatchEvent(cs), cs.child = null) : yt("Object3D.add: object not an instance of THREE.Object3D.", e), this);
|
|
6002
6002
|
}
|
|
6003
6003
|
/**
|
|
6004
6004
|
* Removes the given 3D object as child from this 3D object.
|
|
@@ -6049,7 +6049,7 @@ class xi extends Fs {
|
|
|
6049
6049
|
* @return {Object3D} A reference to this instance.
|
|
6050
6050
|
*/
|
|
6051
6051
|
attach(e) {
|
|
6052
|
-
return this.updateWorldMatrix(!0, !1), Hi.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), Hi.multiply(e.parent.matrixWorld)), e.applyMatrix4(Hi), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(dh),
|
|
6052
|
+
return this.updateWorldMatrix(!0, !1), Hi.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), Hi.multiply(e.parent.matrixWorld)), e.applyMatrix4(Hi), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(dh), cs.child = e, this.dispatchEvent(cs), cs.child = null, this;
|
|
6053
6053
|
}
|
|
6054
6054
|
/**
|
|
6055
6055
|
* Searches through the 3D object and its children, starting with the 3D object
|
|
@@ -6340,7 +6340,7 @@ class xi extends Fs {
|
|
|
6340
6340
|
xi.DEFAULT_UP = /* @__PURE__ */ new ce(0, 1, 0);
|
|
6341
6341
|
xi.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
6342
6342
|
xi.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
6343
|
-
const Ei = /* @__PURE__ */ new ce(), Vi = /* @__PURE__ */ new ce(), xo = /* @__PURE__ */ new ce(), Wi = /* @__PURE__ */ new ce(),
|
|
6343
|
+
const Ei = /* @__PURE__ */ new ce(), Vi = /* @__PURE__ */ new ce(), xo = /* @__PURE__ */ new ce(), Wi = /* @__PURE__ */ new ce(), hs = /* @__PURE__ */ new ce(), ds = /* @__PURE__ */ new ce(), uh = /* @__PURE__ */ new ce(), bo = /* @__PURE__ */ new ce(), _o = /* @__PURE__ */ new ce(), vo = /* @__PURE__ */ new ce(), Eo = /* @__PURE__ */ new Mt(), yo = /* @__PURE__ */ new Mt(), Mo = /* @__PURE__ */ new Mt();
|
|
6344
6344
|
class wi {
|
|
6345
6345
|
/**
|
|
6346
6346
|
* Constructs a new triangle.
|
|
@@ -6593,29 +6593,29 @@ class wi {
|
|
|
6593
6593
|
closestPointToPoint(e, t) {
|
|
6594
6594
|
const i = this.a, n = this.b, r = this.c;
|
|
6595
6595
|
let a, o;
|
|
6596
|
-
|
|
6597
|
-
const l =
|
|
6596
|
+
hs.subVectors(n, i), ds.subVectors(r, i), bo.subVectors(e, i);
|
|
6597
|
+
const l = hs.dot(bo), c = ds.dot(bo);
|
|
6598
6598
|
if (l <= 0 && c <= 0)
|
|
6599
6599
|
return t.copy(i);
|
|
6600
6600
|
_o.subVectors(e, n);
|
|
6601
|
-
const h =
|
|
6601
|
+
const h = hs.dot(_o), d = ds.dot(_o);
|
|
6602
6602
|
if (h >= 0 && d <= h)
|
|
6603
6603
|
return t.copy(n);
|
|
6604
6604
|
const g = l * d - h * c;
|
|
6605
6605
|
if (g <= 0 && l >= 0 && h <= 0)
|
|
6606
|
-
return a = l / (l - h), t.copy(i).addScaledVector(
|
|
6606
|
+
return a = l / (l - h), t.copy(i).addScaledVector(hs, a);
|
|
6607
6607
|
vo.subVectors(e, r);
|
|
6608
|
-
const f =
|
|
6608
|
+
const f = hs.dot(vo), p = ds.dot(vo);
|
|
6609
6609
|
if (p >= 0 && f <= p)
|
|
6610
6610
|
return t.copy(r);
|
|
6611
6611
|
const u = f * c - l * p;
|
|
6612
6612
|
if (u <= 0 && c >= 0 && p <= 0)
|
|
6613
|
-
return o = c / (c - p), t.copy(i).addScaledVector(
|
|
6613
|
+
return o = c / (c - p), t.copy(i).addScaledVector(ds, o);
|
|
6614
6614
|
const m = h * p - f * d;
|
|
6615
6615
|
if (m <= 0 && d - h >= 0 && f - p >= 0)
|
|
6616
6616
|
return uh.subVectors(r, n), o = (d - h) / (d - h + (f - p)), t.copy(n).addScaledVector(uh, o);
|
|
6617
6617
|
const A = 1 / (m + u + g);
|
|
6618
|
-
return a = u * A, o = g * A, t.copy(i).addScaledVector(
|
|
6618
|
+
return a = u * A, o = g * A, t.copy(i).addScaledVector(hs, a).addScaledVector(ds, o);
|
|
6619
6619
|
}
|
|
6620
6620
|
/**
|
|
6621
6621
|
* Returns `true` if this triangle is equal with the given one.
|
|
@@ -6978,7 +6978,7 @@ class dt {
|
|
|
6978
6978
|
* @return {Color} A reference to this color.
|
|
6979
6979
|
*/
|
|
6980
6980
|
copyLinearToSRGB(e) {
|
|
6981
|
-
return this.r =
|
|
6981
|
+
return this.r = ys(e.r), this.g = ys(e.g), this.b = ys(e.b), this;
|
|
6982
6982
|
}
|
|
6983
6983
|
/**
|
|
6984
6984
|
* Converts this color from `SRGBColorSpace` to `LinearSRGBColorSpace`.
|
|
@@ -7256,7 +7256,7 @@ class za extends Fs {
|
|
|
7256
7256
|
* Constructs a new material.
|
|
7257
7257
|
*/
|
|
7258
7258
|
constructor() {
|
|
7259
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Qg++ }), this.uuid = xr(), this.name = "", this.type = "Material", this.blending =
|
|
7259
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Qg++ }), this.uuid = xr(), this.name = "", this.type = "Material", this.blending = Es, this.side = Mn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = ol, this.blendDst = ll, this.blendEquation = On, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new dt(0, 0, 0), this.blendAlpha = 0, this.depthFunc = Is, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Jc, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = is, this.stencilZFail = is, this.stencilZPass = is, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.allowOverride = !0, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
7260
7260
|
}
|
|
7261
7261
|
/**
|
|
7262
7262
|
* Sets the alpha value to be used when running an alpha test. The material
|
|
@@ -7355,7 +7355,7 @@ class za extends Fs {
|
|
|
7355
7355
|
generator: "Material.toJSON"
|
|
7356
7356
|
}
|
|
7357
7357
|
};
|
|
7358
|
-
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (i.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (i.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (i.dispersion = this.dispersion), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapRotation !== void 0 && (i.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !==
|
|
7358
|
+
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.sheenColorMap && this.sheenColorMap.isTexture && (i.sheenColorMap = this.sheenColorMap.toJSON(e).uuid), this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture && (i.sheenRoughnessMap = this.sheenRoughnessMap.toJSON(e).uuid), this.dispersion !== void 0 && (i.dispersion = this.dispersion), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapRotation !== void 0 && (i.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== Es && (i.blending = this.blending), this.side !== Mn && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !== ol && (i.blendSrc = this.blendSrc), this.blendDst !== ll && (i.blendDst = this.blendDst), this.blendEquation !== On && (i.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (i.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (i.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (i.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (i.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (i.blendAlpha = this.blendAlpha), this.depthFunc !== Is && (i.depthFunc = this.depthFunc), this.depthTest === !1 && (i.depthTest = this.depthTest), this.depthWrite === !1 && (i.depthWrite = this.depthWrite), this.colorWrite === !1 && (i.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (i.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Jc && (i.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (i.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (i.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== is && (i.stencilFail = this.stencilFail), this.stencilZFail !== is && (i.stencilZFail = this.stencilZFail), this.stencilZPass !== is && (i.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (i.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = !0), this.alphaToCoverage === !0 && (i.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = !0), this.forceSinglePass === !0 && (i.forceSinglePass = !0), this.wireframe === !0 && (i.wireframe = !0), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = !0), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
|
|
7359
7359
|
function n(r) {
|
|
7360
7360
|
const a = [];
|
|
7361
7361
|
for (const o in r) {
|
|
@@ -7428,7 +7428,7 @@ class Cu extends za {
|
|
|
7428
7428
|
* by {@link Color#set}.
|
|
7429
7429
|
*/
|
|
7430
7430
|
constructor(e) {
|
|
7431
|
-
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new dt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new
|
|
7431
|
+
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new dt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new $n(), this.combine = uu, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
|
|
7432
7432
|
}
|
|
7433
7433
|
copy(e) {
|
|
7434
7434
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.fog = e.fog, this;
|
|
@@ -7782,7 +7782,7 @@ class Iu extends Ni {
|
|
|
7782
7782
|
super(new Uint32Array(e), t, i);
|
|
7783
7783
|
}
|
|
7784
7784
|
}
|
|
7785
|
-
class
|
|
7785
|
+
class jn extends Ni {
|
|
7786
7786
|
/**
|
|
7787
7787
|
* Constructs a new buffer attribute.
|
|
7788
7788
|
*
|
|
@@ -7795,7 +7795,7 @@ class Wn extends Ni {
|
|
|
7795
7795
|
}
|
|
7796
7796
|
}
|
|
7797
7797
|
let Vg = 0;
|
|
7798
|
-
const ui = /* @__PURE__ */ new Tt(), Co = /* @__PURE__ */ new xi(),
|
|
7798
|
+
const ui = /* @__PURE__ */ new Tt(), Co = /* @__PURE__ */ new xi(), us = /* @__PURE__ */ new ce(), ai = /* @__PURE__ */ new _r(), Ws = /* @__PURE__ */ new _r(), Dt = /* @__PURE__ */ new ce();
|
|
7799
7799
|
class Cn extends Fs {
|
|
7800
7800
|
/**
|
|
7801
7801
|
* Constructs a new geometry.
|
|
@@ -8008,7 +8008,7 @@ class Cn extends Fs {
|
|
|
8008
8008
|
* @return {BufferGeometry} A reference to this instance.
|
|
8009
8009
|
*/
|
|
8010
8010
|
center() {
|
|
8011
|
-
return this.computeBoundingBox(), this.boundingBox.getCenter(
|
|
8011
|
+
return this.computeBoundingBox(), this.boundingBox.getCenter(us).negate(), this.translate(us.x, us.y, us.z), this;
|
|
8012
8012
|
}
|
|
8013
8013
|
/**
|
|
8014
8014
|
* Defines a geometry by creating a `position` attribute based on the given array of points. The array
|
|
@@ -8029,7 +8029,7 @@ class Cn extends Fs {
|
|
|
8029
8029
|
const a = e[n];
|
|
8030
8030
|
i.push(a.x, a.y, a.z || 0);
|
|
8031
8031
|
}
|
|
8032
|
-
this.setAttribute("position", new
|
|
8032
|
+
this.setAttribute("position", new jn(i, 3));
|
|
8033
8033
|
} else {
|
|
8034
8034
|
const i = Math.min(e.length, t.count);
|
|
8035
8035
|
for (let n = 0; n < i; n++) {
|
|
@@ -8092,7 +8092,7 @@ class Cn extends Fs {
|
|
|
8092
8092
|
for (let r = 0, a = t.length; r < a; r++) {
|
|
8093
8093
|
const o = t[r], l = this.morphTargetsRelative;
|
|
8094
8094
|
for (let c = 0, h = o.count; c < h; c++)
|
|
8095
|
-
Dt.fromBufferAttribute(o, c), l && (
|
|
8095
|
+
Dt.fromBufferAttribute(o, c), l && (us.fromBufferAttribute(e, c), Dt.add(us)), n = Math.max(n, i.distanceToSquared(Dt));
|
|
8096
8096
|
}
|
|
8097
8097
|
this.boundingSphere.radius = Math.sqrt(n), isNaN(this.boundingSphere.radius) && yt('BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.', this);
|
|
8098
8098
|
}
|
|
@@ -8477,7 +8477,7 @@ class vr extends Cn {
|
|
|
8477
8477
|
n = Math.floor(n), r = Math.floor(r), a = Math.floor(a);
|
|
8478
8478
|
const l = [], c = [], h = [], d = [];
|
|
8479
8479
|
let g = 0, f = 0;
|
|
8480
|
-
p("z", "y", "x", -1, -1, i, t, e, a, r, 0), p("z", "y", "x", 1, -1, i, t, -e, a, r, 1), p("x", "z", "y", 1, 1, e, i, t, n, a, 2), p("x", "z", "y", 1, -1, e, i, -t, n, a, 3), p("x", "y", "z", 1, -1, e, t, i, n, r, 4), p("x", "y", "z", -1, -1, e, t, -i, n, r, 5), this.setIndex(l), this.setAttribute("position", new
|
|
8480
|
+
p("z", "y", "x", -1, -1, i, t, e, a, r, 0), p("z", "y", "x", 1, -1, i, t, -e, a, r, 1), p("x", "z", "y", 1, 1, e, i, t, n, a, 2), p("x", "z", "y", 1, -1, e, i, -t, n, a, 3), p("x", "y", "z", 1, -1, e, t, i, n, r, 4), p("x", "y", "z", -1, -1, e, t, -i, n, r, 5), this.setIndex(l), this.setAttribute("position", new jn(c, 3)), this.setAttribute("normal", new jn(h, 3)), this.setAttribute("uv", new jn(d, 2));
|
|
8481
8481
|
function p(u, m, A, x, b, v, y, M, I, D, w) {
|
|
8482
8482
|
const C = v / I, P = y / D, T = v / 2, F = y / 2, E = M / 2, O = I + 1, U = D + 1;
|
|
8483
8483
|
let W = 0, j = 0;
|
|
@@ -8817,7 +8817,7 @@ class Mi extends Bu {
|
|
|
8817
8817
|
return t.object.fov = this.fov, t.object.zoom = this.zoom, t.object.near = this.near, t.object.far = this.far, t.object.focus = this.focus, t.object.aspect = this.aspect, this.view !== null && (t.object.view = Object.assign({}, this.view)), t.object.filmGauge = this.filmGauge, t.object.filmOffset = this.filmOffset, t;
|
|
8818
8818
|
}
|
|
8819
8819
|
}
|
|
8820
|
-
const
|
|
8820
|
+
const fs = -90, ps = 1;
|
|
8821
8821
|
class Kg extends xi {
|
|
8822
8822
|
/**
|
|
8823
8823
|
* Constructs a new cube camera.
|
|
@@ -8828,17 +8828,17 @@ class Kg extends xi {
|
|
|
8828
8828
|
*/
|
|
8829
8829
|
constructor(e, t, i) {
|
|
8830
8830
|
super(), this.type = "CubeCamera", this.renderTarget = i, this.coordinateSystem = null, this.activeMipmapLevel = 0;
|
|
8831
|
-
const n = new Mi(
|
|
8831
|
+
const n = new Mi(fs, ps, e, t);
|
|
8832
8832
|
n.layers = this.layers, this.add(n);
|
|
8833
|
-
const r = new Mi(
|
|
8833
|
+
const r = new Mi(fs, ps, e, t);
|
|
8834
8834
|
r.layers = this.layers, this.add(r);
|
|
8835
|
-
const a = new Mi(
|
|
8835
|
+
const a = new Mi(fs, ps, e, t);
|
|
8836
8836
|
a.layers = this.layers, this.add(a);
|
|
8837
|
-
const o = new Mi(
|
|
8837
|
+
const o = new Mi(fs, ps, e, t);
|
|
8838
8838
|
o.layers = this.layers, this.add(o);
|
|
8839
|
-
const l = new Mi(
|
|
8839
|
+
const l = new Mi(fs, ps, e, t);
|
|
8840
8840
|
l.layers = this.layers, this.add(l);
|
|
8841
|
-
const c = new Mi(
|
|
8841
|
+
const c = new Mi(fs, ps, e, t);
|
|
8842
8842
|
c.layers = this.layers, this.add(c);
|
|
8843
8843
|
}
|
|
8844
8844
|
/**
|
|
@@ -8903,7 +8903,7 @@ class Ru extends jt {
|
|
|
8903
8903
|
this.image = e;
|
|
8904
8904
|
}
|
|
8905
8905
|
}
|
|
8906
|
-
class Jg extends
|
|
8906
|
+
class Jg extends Jn {
|
|
8907
8907
|
/**
|
|
8908
8908
|
* Constructs a new cube render target.
|
|
8909
8909
|
*
|
|
@@ -9509,7 +9509,7 @@ class Pu extends jt {
|
|
|
9509
9509
|
* @param {number} [format=DepthFormat] - The texture format.
|
|
9510
9510
|
* @param {number} [depth=1] - The depth of the texture.
|
|
9511
9511
|
*/
|
|
9512
|
-
constructor(e, t, i =
|
|
9512
|
+
constructor(e, t, i = Kn, n, r, a, o = hi, l = hi, c, h = ur, d = 1) {
|
|
9513
9513
|
if (h !== ur && h !== fr)
|
|
9514
9514
|
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
9515
9515
|
const g = { width: e, height: t, depth: d };
|
|
@@ -9565,7 +9565,7 @@ class Ga extends Cn {
|
|
|
9565
9565
|
const b = x + c * A, v = x + c * (A + 1), y = x + 1 + c * (A + 1), M = x + 1 + c * A;
|
|
9566
9566
|
f.push(b, v, M), f.push(v, y, M);
|
|
9567
9567
|
}
|
|
9568
|
-
this.setIndex(f), this.setAttribute("position", new
|
|
9568
|
+
this.setIndex(f), this.setAttribute("position", new jn(p, 3)), this.setAttribute("normal", new jn(u, 3)), this.setAttribute("uv", new jn(m, 2));
|
|
9569
9569
|
}
|
|
9570
9570
|
copy(e) {
|
|
9571
9571
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
@@ -9787,7 +9787,7 @@ function oA(s) {
|
|
|
9787
9787
|
case dc:
|
|
9788
9788
|
case uc:
|
|
9789
9789
|
return { byteLength: 2, components: 4 };
|
|
9790
|
-
case
|
|
9790
|
+
case Kn:
|
|
9791
9791
|
case hc:
|
|
9792
9792
|
case $i:
|
|
9793
9793
|
return { byteLength: 4, components: 1 };
|
|
@@ -14047,7 +14047,7 @@ Fi.physical = {
|
|
|
14047
14047
|
vertexShader: Je.meshphysical_vert,
|
|
14048
14048
|
fragmentShader: Je.meshphysical_frag
|
|
14049
14049
|
};
|
|
14050
|
-
const Kr = { r: 0, b: 0, g: 0 }, Pn = /* @__PURE__ */ new
|
|
14050
|
+
const Kr = { r: 0, b: 0, g: 0 }, Pn = /* @__PURE__ */ new $n(), Qx = /* @__PURE__ */ new Tt();
|
|
14051
14051
|
function Hx(s, e, t, i, n, r, a) {
|
|
14052
14052
|
const o = new dt(0);
|
|
14053
14053
|
let l = r === !0 ? 0 : 1, c, h, d = null, g = 0, f = null;
|
|
@@ -14602,7 +14602,7 @@ class vh {
|
|
|
14602
14602
|
this._lodMeshes[e].geometry.dispose();
|
|
14603
14603
|
}
|
|
14604
14604
|
_cleanup(e) {
|
|
14605
|
-
this._renderer.setRenderTarget(Bo, Ro, Do), this._renderer.xr.enabled = Po, e.scissorTest = !1,
|
|
14605
|
+
this._renderer.setRenderTarget(Bo, Ro, Do), this._renderer.xr.enabled = Po, e.scissorTest = !1, ms(e, 0, 0, e.width, e.height);
|
|
14606
14606
|
}
|
|
14607
14607
|
_fromTexture(e, t) {
|
|
14608
14608
|
e.mapping === Ts || e.mapping === Bs ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Bo = this._renderer.getRenderTarget(), Ro = this._renderer.getActiveCubeFace(), Do = this._renderer.getActiveMipmapLevel(), Po = this._renderer.xr.enabled, this._renderer.xr.enabled = !1;
|
|
@@ -14649,7 +14649,7 @@ class vh {
|
|
|
14649
14649
|
const v = b % 3;
|
|
14650
14650
|
v === 0 ? (l.up.set(0, c[b], 0), l.position.set(r.x, r.y, r.z), l.lookAt(r.x + h[b], r.y, r.z)) : v === 1 ? (l.up.set(0, 0, c[b]), l.position.set(r.x, r.y, r.z), l.lookAt(r.x, r.y + h[b], r.z)) : (l.up.set(0, c[b], 0), l.position.set(r.x, r.y, r.z), l.lookAt(r.x, r.y, r.z + h[b]));
|
|
14651
14651
|
const y = this._cubeSize;
|
|
14652
|
-
|
|
14652
|
+
ms(n, v * y, b > 2 ? y : 0, y, y), d.setRenderTarget(n), A && d.render(u, l), d.render(e, l);
|
|
14653
14653
|
}
|
|
14654
14654
|
d.toneMapping = f, d.autoClear = g, e.background = x;
|
|
14655
14655
|
}
|
|
@@ -14661,7 +14661,7 @@ class vh {
|
|
|
14661
14661
|
const o = r.uniforms;
|
|
14662
14662
|
o.envMap.value = e;
|
|
14663
14663
|
const l = this._cubeSize;
|
|
14664
|
-
|
|
14664
|
+
ms(t, 0, 0, 3 * l, 2 * l), i.setRenderTarget(t), i.render(a, js);
|
|
14665
14665
|
}
|
|
14666
14666
|
_applyPMREM(e) {
|
|
14667
14667
|
const t = this._renderer, i = t.autoClear;
|
|
@@ -14686,7 +14686,7 @@ class vh {
|
|
|
14686
14686
|
const n = this._renderer, r = this._pingPongRenderTarget, a = this._ggxMaterial, o = this._lodMeshes[i];
|
|
14687
14687
|
o.material = a;
|
|
14688
14688
|
const l = a.uniforms, c = i / (this._lodMeshes.length - 1), h = t / (this._lodMeshes.length - 1), d = Math.sqrt(c * c - h * h), g = 0.05 + c * 0.95, f = d * g, { _lodMax: p } = this, u = this._sizeLods[i], m = 3 * u * (i > p - _n ? i - p + _n : 0), A = 4 * (this._cubeSize - u);
|
|
14689
|
-
l.envMap.value = e.texture, l.roughness.value = f, l.mipInt.value = p - t,
|
|
14689
|
+
l.envMap.value = e.texture, l.roughness.value = f, l.mipInt.value = p - t, ms(r, m, A, 3 * u, 2 * u), n.setRenderTarget(r), n.render(o, js), l.envMap.value = r.texture, l.roughness.value = 0, l.mipInt.value = p - i, ms(e, m, A, 3 * u, 2 * u), n.setRenderTarget(e), n.render(o, js);
|
|
14690
14690
|
}
|
|
14691
14691
|
/**
|
|
14692
14692
|
* This is a two-pass Gaussian blur for a cubemap. Normally this is done
|
|
@@ -14745,7 +14745,7 @@ class vh {
|
|
|
14745
14745
|
const { _lodMax: b } = this;
|
|
14746
14746
|
g.dTheta.value = p, g.mipInt.value = b - i;
|
|
14747
14747
|
const v = this._sizeLods[n], y = 3 * v * (n > b - _n ? n - b + _n : 0), M = 4 * (this._cubeSize - v);
|
|
14748
|
-
|
|
14748
|
+
ms(t, y, M, 3 * v, 2 * v), l.setRenderTarget(t), l.render(d, js);
|
|
14749
14749
|
}
|
|
14750
14750
|
}
|
|
14751
14751
|
function Jx(s) {
|
|
@@ -14789,10 +14789,10 @@ function Jx(s) {
|
|
|
14789
14789
|
return { lodMeshes: i, sizeLods: e, sigmas: t };
|
|
14790
14790
|
}
|
|
14791
14791
|
function Eh(s, e, t) {
|
|
14792
|
-
const i = new
|
|
14792
|
+
const i = new Jn(s, e, t);
|
|
14793
14793
|
return i.texture.mapping = Oa, i.texture.name = "PMREM.cubeUv", i.scissorTest = !0, i;
|
|
14794
14794
|
}
|
|
14795
|
-
function
|
|
14795
|
+
function ms(s, e, t, i, n) {
|
|
14796
14796
|
s.viewport.set(e, t, i, n), s.scissor.set(e, t, i, n);
|
|
14797
14797
|
}
|
|
14798
14798
|
function Zx(s, e, t) {
|
|
@@ -16586,7 +16586,7 @@ function v_(s, e, t, i, n, r, a) {
|
|
|
16586
16586
|
transmissionMap: q,
|
|
16587
16587
|
thicknessMap: xe,
|
|
16588
16588
|
gradientMap: _e,
|
|
16589
|
-
opaque: w.transparent === !1 && w.blending ===
|
|
16589
|
+
opaque: w.transparent === !1 && w.blending === Es && w.alphaToCoverage === !1,
|
|
16590
16590
|
alphaMap: Re,
|
|
16591
16591
|
alphaTest: Ae,
|
|
16592
16592
|
alphaHash: me,
|
|
@@ -17153,7 +17153,7 @@ function P_(s, e, t) {
|
|
|
17153
17153
|
const Q = j.getFrameExtents();
|
|
17154
17154
|
if (n.multiply(Q), r.copy(j.mapSize), (n.x > h || n.y > h) && (n.x > h && (r.x = Math.floor(h / Q.x), n.x = r.x * Q.x, j.mapSize.x = r.x), n.y > h && (r.y = Math.floor(h / Q.y), n.y = r.y * Q.y, j.mapSize.y = r.y)), j.map === null || F === !0 || E === !0) {
|
|
17155
17155
|
const H = this.type !== Xi ? { minFilter: hi, magFilter: hi } : {};
|
|
17156
|
-
j.map !== null && j.map.dispose(), j.map = new
|
|
17156
|
+
j.map !== null && j.map.dispose(), j.map = new Jn(n.x, n.y, H), j.map.texture.name = W.name + ".shadowMap", j.camera.updateProjectionMatrix();
|
|
17157
17157
|
}
|
|
17158
17158
|
s.setRenderTarget(j.map), s.clear();
|
|
17159
17159
|
const K = j.getViewportCount();
|
|
@@ -17172,7 +17172,7 @@ function P_(s, e, t) {
|
|
|
17172
17172
|
};
|
|
17173
17173
|
function x(M, I) {
|
|
17174
17174
|
const D = e.update(u);
|
|
17175
|
-
g.defines.VSM_SAMPLES !== M.blurSamples && (g.defines.VSM_SAMPLES = M.blurSamples, f.defines.VSM_SAMPLES = M.blurSamples, g.needsUpdate = !0, f.needsUpdate = !0), M.mapPass === null && (M.mapPass = new
|
|
17175
|
+
g.defines.VSM_SAMPLES !== M.blurSamples && (g.defines.VSM_SAMPLES = M.blurSamples, f.defines.VSM_SAMPLES = M.blurSamples, g.needsUpdate = !0, f.needsUpdate = !0), M.mapPass === null && (M.mapPass = new Jn(n.x, n.y)), g.uniforms.shadow_pass.value = M.map.texture, g.uniforms.resolution.value = M.mapSize, g.uniforms.radius.value = M.radius, s.setRenderTarget(M.mapPass), s.clear(), s.renderBufferDirect(I, null, D, g, u, null), f.uniforms.shadow_pass.value = M.mapPass.texture, f.uniforms.resolution.value = M.mapSize, f.uniforms.radius.value = M.radius, s.setRenderTarget(M.map), s.clear(), s.renderBufferDirect(I, null, D, f, u, null);
|
|
17176
17176
|
}
|
|
17177
17177
|
function b(M, I, D, w) {
|
|
17178
17178
|
let C = null;
|
|
@@ -17419,7 +17419,7 @@ function F_(s, e) {
|
|
|
17419
17419
|
if (q !== m || qe !== w) {
|
|
17420
17420
|
if ((A !== On || v !== On) && (s.blendEquation(s.FUNC_ADD), A = On, v = On), qe)
|
|
17421
17421
|
switch (q) {
|
|
17422
|
-
case
|
|
17422
|
+
case Es:
|
|
17423
17423
|
s.blendFuncSeparate(s.ONE, s.ONE_MINUS_SRC_ALPHA, s.ONE, s.ONE_MINUS_SRC_ALPHA);
|
|
17424
17424
|
break;
|
|
17425
17425
|
case Xc:
|
|
@@ -17437,7 +17437,7 @@ function F_(s, e) {
|
|
|
17437
17437
|
}
|
|
17438
17438
|
else
|
|
17439
17439
|
switch (q) {
|
|
17440
|
-
case
|
|
17440
|
+
case Es:
|
|
17441
17441
|
s.blendFuncSeparate(s.SRC_ALPHA, s.ONE_MINUS_SRC_ALPHA, s.ONE, s.ONE_MINUS_SRC_ALPHA);
|
|
17442
17442
|
break;
|
|
17443
17443
|
case Xc:
|
|
@@ -17462,7 +17462,7 @@ function F_(s, e) {
|
|
|
17462
17462
|
function se(q, xe) {
|
|
17463
17463
|
q.side === Ki ? ge(s.CULL_FACE) : oe(s.CULL_FACE);
|
|
17464
17464
|
let _e = q.side === ei;
|
|
17465
|
-
xe && (_e = !_e), ee(_e), q.blending ===
|
|
17465
|
+
xe && (_e = !_e), ee(_e), q.blending === Es && q.transparent === !1 ? S(tn) : S(q.blending, q.blendEquation, q.blendSrc, q.blendDst, q.blendEquationAlpha, q.blendSrcAlpha, q.blendDstAlpha, q.blendColor, q.blendAlpha, q.premultipliedAlpha), a.setFunc(q.depthFunc), a.setTest(q.depthTest), a.setMask(q.depthWrite), r.setMask(q.colorWrite);
|
|
17466
17466
|
const Re = q.stencilWrite;
|
|
17467
17467
|
o.setTest(Re), Re && (o.setMask(q.stencilWriteMask), o.setFunc(q.stencilFunc, q.stencilRef, q.stencilFuncMask), o.setOp(q.stencilFail, q.stencilZFail, q.stencilZPass)), X(q.polygonOffset, q.polygonOffsetFactor, q.polygonOffsetUnits), q.alphaToCoverage === !0 ? oe(s.SAMPLE_ALPHA_TO_COVERAGE) : ge(s.SAMPLE_ALPHA_TO_COVERAGE);
|
|
17468
17468
|
}
|
|
@@ -17671,7 +17671,7 @@ function k_(s, e, t, i, n, r, a) {
|
|
|
17671
17671
|
}
|
|
17672
17672
|
function v(R, B) {
|
|
17673
17673
|
let z;
|
|
17674
|
-
return R ? B === null || B ===
|
|
17674
|
+
return R ? B === null || B === Kn || B === dr ? z = s.DEPTH24_STENCIL8 : B === $i ? z = s.DEPTH32F_STENCIL8 : B === hr && (z = s.DEPTH24_STENCIL8, Xe("DepthTexture: 16 bit depth attachment is not supported with stencil. Using 24-bit attachment.")) : B === null || B === Kn || B === dr ? z = s.DEPTH_COMPONENT24 : B === $i ? z = s.DEPTH_COMPONENT32F : B === hr && (z = s.DEPTH_COMPONENT16), z;
|
|
17675
17675
|
}
|
|
17676
17676
|
function y(R, B) {
|
|
17677
17677
|
return m(R) === !0 || R.isFramebufferTexture && R.minFilter !== hi && R.minFilter !== gi ? Math.log2(Math.max(B.width, B.height)) + 1 : R.mipmaps !== void 0 && R.mipmaps.length > 0 ? R.mipmaps.length : R.isCompressedTexture && Array.isArray(R.image) ? B.mipmaps.length : 1;
|
|
@@ -18223,7 +18223,7 @@ function U_(s, e) {
|
|
|
18223
18223
|
if (i === mu) return s.SHORT;
|
|
18224
18224
|
if (i === hr) return s.UNSIGNED_SHORT;
|
|
18225
18225
|
if (i === hc) return s.INT;
|
|
18226
|
-
if (i ===
|
|
18226
|
+
if (i === Kn) return s.UNSIGNED_INT;
|
|
18227
18227
|
if (i === $i) return s.FLOAT;
|
|
18228
18228
|
if (i === Ls) return s.HALF_FLOAT;
|
|
18229
18229
|
if (i === xu) return s.ALPHA;
|
|
@@ -18452,13 +18452,13 @@ class G_ extends Fs {
|
|
|
18452
18452
|
if (n = ne, n !== null) {
|
|
18453
18453
|
if (b = e.getRenderTarget(), n.addEventListener("select", O), n.addEventListener("selectstart", O), n.addEventListener("selectend", O), n.addEventListener("squeeze", O), n.addEventListener("squeezestart", O), n.addEventListener("squeezeend", O), n.addEventListener("end", U), n.addEventListener("inputsourceschange", W), x.xrCompatible !== !0 && await t.makeXRCompatible(), D = e.getPixelRatio(), e.getSize(I), u && "createProjectionLayer" in XRWebGLBinding.prototype) {
|
|
18454
18454
|
let ge = null, Me = null, we = null;
|
|
18455
|
-
x.depth && (we = x.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, ge = x.stencil ? fr : ur, Me = x.stencil ? dr :
|
|
18455
|
+
x.depth && (we = x.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, ge = x.stencil ? fr : ur, Me = x.stencil ? dr : Kn);
|
|
18456
18456
|
const ke = {
|
|
18457
18457
|
colorFormat: t.RGBA8,
|
|
18458
18458
|
depthFormat: we,
|
|
18459
18459
|
scaleFactor: r
|
|
18460
18460
|
};
|
|
18461
|
-
d = this.getBinding(), g = d.createProjectionLayer(ke), n.updateRenderState({ layers: [g] }), e.setPixelRatio(1), e.setSize(g.textureWidth, g.textureHeight, !1), v = new
|
|
18461
|
+
d = this.getBinding(), g = d.createProjectionLayer(ke), n.updateRenderState({ layers: [g] }), e.setPixelRatio(1), e.setSize(g.textureWidth, g.textureHeight, !1), v = new Jn(
|
|
18462
18462
|
g.textureWidth,
|
|
18463
18463
|
g.textureHeight,
|
|
18464
18464
|
{
|
|
@@ -18480,7 +18480,7 @@ class G_ extends Fs {
|
|
|
18480
18480
|
stencil: x.stencil,
|
|
18481
18481
|
framebufferScaleFactor: r
|
|
18482
18482
|
};
|
|
18483
|
-
f = new XRWebGLLayer(n, t, ge), n.updateRenderState({ baseLayer: f }), e.setPixelRatio(1), e.setSize(f.framebufferWidth, f.framebufferHeight, !1), v = new
|
|
18483
|
+
f = new XRWebGLLayer(n, t, ge), n.updateRenderState({ baseLayer: f }), e.setPixelRatio(1), e.setSize(f.framebufferWidth, f.framebufferHeight, !1), v = new Jn(
|
|
18484
18484
|
f.framebufferWidth,
|
|
18485
18485
|
f.framebufferHeight,
|
|
18486
18486
|
{
|
|
@@ -18623,7 +18623,7 @@ class G_ extends Fs {
|
|
|
18623
18623
|
};
|
|
18624
18624
|
}
|
|
18625
18625
|
}
|
|
18626
|
-
const Ln = /* @__PURE__ */ new
|
|
18626
|
+
const Ln = /* @__PURE__ */ new $n(), Q_ = /* @__PURE__ */ new Tt();
|
|
18627
18627
|
function H_(s, e) {
|
|
18628
18628
|
function t(m, A) {
|
|
18629
18629
|
m.matrixAutoUpdate === !0 && m.updateMatrix(), A.value.copy(m.matrix);
|
|
@@ -20867,7 +20867,7 @@ class q_ {
|
|
|
20867
20867
|
fc
|
|
20868
20868
|
]), u = /* @__PURE__ */ new Set([
|
|
20869
20869
|
an,
|
|
20870
|
-
|
|
20870
|
+
Kn,
|
|
20871
20871
|
hr,
|
|
20872
20872
|
dr,
|
|
20873
20873
|
dc,
|
|
@@ -21081,9 +21081,9 @@ class q_ {
|
|
|
21081
21081
|
else if (R.get("WEBGL_multi_draw"))
|
|
21082
21082
|
ft.renderMultiDraw(te._multiDrawStarts, te._multiDrawCounts, te._multiDrawCount);
|
|
21083
21083
|
else {
|
|
21084
|
-
const He = te._multiDrawStarts, At = te._multiDrawCounts, nt = te._multiDrawCount, ni = Pe ? Te.get(Pe).bytesPerElement : 1,
|
|
21084
|
+
const He = te._multiDrawStarts, At = te._multiDrawCounts, nt = te._multiDrawCount, ni = Pe ? Te.get(Pe).bytesPerElement : 1, ts = ie.get(le).currentProgram.getUniforms();
|
|
21085
21085
|
for (let si = 0; si < nt; si++)
|
|
21086
|
-
|
|
21086
|
+
ts.setValue(k, "_gl_DrawID", si), ft.render(He[si] / ni, At[si]);
|
|
21087
21087
|
}
|
|
21088
21088
|
else if (te.isInstancedMesh)
|
|
21089
21089
|
ft.renderInstances($e, bt, te.count);
|
|
@@ -21217,7 +21217,7 @@ class q_ {
|
|
|
21217
21217
|
function Lc(L, J, re, le) {
|
|
21218
21218
|
if ((re.isScene === !0 ? re.overrideMaterial : null) !== null)
|
|
21219
21219
|
return;
|
|
21220
|
-
b.state.transmissionRenderTarget[le.id] === void 0 && (b.state.transmissionRenderTarget[le.id] = new
|
|
21220
|
+
b.state.transmissionRenderTarget[le.id] === void 0 && (b.state.transmissionRenderTarget[le.id] = new Jn(1, 1, {
|
|
21221
21221
|
generateMipmaps: !0,
|
|
21222
21222
|
type: R.has("EXT_color_buffer_half_float") || R.has("EXT_color_buffer_float") ? Ls : an,
|
|
21223
21223
|
minFilter: Hn,
|
|
@@ -21298,9 +21298,9 @@ class q_ {
|
|
|
21298
21298
|
le.version === He.__version ? (He.needsLights && He.lightsStateVersion !== At.state.version || He.outputColorSpace !== Ue || te.isBatchedMesh && He.batching === !1 || !te.isBatchedMesh && He.batching === !0 || te.isBatchedMesh && He.batchingColor === !0 && te.colorTexture === null || te.isBatchedMesh && He.batchingColor === !1 && te.colorTexture !== null || te.isInstancedMesh && He.instancing === !1 || !te.isInstancedMesh && He.instancing === !0 || te.isSkinnedMesh && He.skinning === !1 || !te.isSkinnedMesh && He.skinning === !0 || te.isInstancedMesh && He.instancingColor === !0 && te.instanceColor === null || te.isInstancedMesh && He.instancingColor === !1 && te.instanceColor !== null || te.isInstancedMesh && He.instancingMorph === !0 && te.morphTexture === null || te.isInstancedMesh && He.instancingMorph === !1 && te.morphTexture !== null || He.envMap !== Pe || le.fog === !0 && He.fog !== ye || He.numClippingPlanes !== void 0 && (He.numClippingPlanes !== Ne.numPlanes || He.numIntersection !== Ne.numIntersection) || He.vertexAlphas !== Ve || He.vertexTangents !== We || He.morphTargets !== Qe || He.morphNormals !== $e || He.morphColors !== ot || He.toneMapping !== bt || He.morphTargetsCount !== ft) && (nt = !0) : (nt = !0, He.__version = le.version);
|
|
21299
21299
|
let ni = He.currentProgram;
|
|
21300
21300
|
nt === !0 && (ni = Ir(le, J, te));
|
|
21301
|
-
let
|
|
21301
|
+
let ts = !1, si = !1, Os = !1;
|
|
21302
21302
|
const xt = ni.getUniforms(), qt = He.uniforms;
|
|
21303
|
-
if (z.useProgram(ni.program) && (
|
|
21303
|
+
if (z.useProgram(ni.program) && (ts = !0, si = !0, Os = !0), le.id !== P && (P = le.id, si = !0), ts || T !== L) {
|
|
21304
21304
|
z.buffers.depth.getReversed() && L.reversedDepth !== !0 && (L._reversedDepth = !0, L.updateProjectionMatrix()), xt.setValue(k, "projectionMatrix", L.projectionMatrix), xt.setValue(k, "viewMatrix", L.matrixWorldInverse);
|
|
21305
21305
|
const Xt = xt.map.cameraPosition;
|
|
21306
21306
|
Xt !== void 0 && Xt.setValue(k, we.setFromMatrixPosition(L.matrixWorld)), B.logarithmicDepthBuffer && xt.setValue(
|
|
@@ -21447,7 +21447,7 @@ class q_ {
|
|
|
21447
21447
|
const ft = me.convert(J.format), He = me.convert(J.type);
|
|
21448
21448
|
let At;
|
|
21449
21449
|
J.isData3DTexture ? (Y.setTexture3D(J, 0), At = k.TEXTURE_3D) : J.isDataArrayTexture || J.isCompressedArrayTexture ? (Y.setTexture2DArray(J, 0), At = k.TEXTURE_2D_ARRAY) : (Y.setTexture2D(J, 0), At = k.TEXTURE_2D), k.pixelStorei(k.UNPACK_FLIP_Y_WEBGL, J.flipY), k.pixelStorei(k.UNPACK_PREMULTIPLY_ALPHA_WEBGL, J.premultiplyAlpha), k.pixelStorei(k.UNPACK_ALIGNMENT, J.unpackAlignment);
|
|
21450
|
-
const nt = k.getParameter(k.UNPACK_ROW_LENGTH), ni = k.getParameter(k.UNPACK_IMAGE_HEIGHT),
|
|
21450
|
+
const nt = k.getParameter(k.UNPACK_ROW_LENGTH), ni = k.getParameter(k.UNPACK_IMAGE_HEIGHT), ts = k.getParameter(k.UNPACK_SKIP_PIXELS), si = k.getParameter(k.UNPACK_SKIP_ROWS), Os = k.getParameter(k.UNPACK_SKIP_IMAGES);
|
|
21451
21451
|
k.pixelStorei(k.UNPACK_ROW_LENGTH, _t.width), k.pixelStorei(k.UNPACK_IMAGE_HEIGHT, _t.height), k.pixelStorei(k.UNPACK_SKIP_PIXELS, Ve), k.pixelStorei(k.UNPACK_SKIP_ROWS, We), k.pixelStorei(k.UNPACK_SKIP_IMAGES, Qe);
|
|
21452
21452
|
const xt = L.isDataArrayTexture || L.isData3DTexture, qt = J.isDataArrayTexture || J.isData3DTexture;
|
|
21453
21453
|
if (L.isDepthTexture) {
|
|
@@ -21464,7 +21464,7 @@ class q_ {
|
|
|
21464
21464
|
z.bindFramebuffer(k.READ_FRAMEBUFFER, null), z.bindFramebuffer(k.DRAW_FRAMEBUFFER, null);
|
|
21465
21465
|
} else
|
|
21466
21466
|
qt ? L.isDataTexture || L.isData3DTexture ? k.texSubImage3D(At, ye, $e, ot, bt, Be, Ue, Pe, ft, He, _t.data) : J.isCompressedArrayTexture ? k.compressedTexSubImage3D(At, ye, $e, ot, bt, Be, Ue, Pe, ft, _t.data) : k.texSubImage3D(At, ye, $e, ot, bt, Be, Ue, Pe, ft, He, _t) : L.isDataTexture ? k.texSubImage2D(k.TEXTURE_2D, ye, $e, ot, Be, Ue, ft, He, _t.data) : L.isCompressedTexture ? k.compressedTexSubImage2D(k.TEXTURE_2D, ye, $e, ot, _t.width, _t.height, ft, _t.data) : k.texSubImage2D(k.TEXTURE_2D, ye, $e, ot, Be, Ue, ft, He, _t);
|
|
21467
|
-
k.pixelStorei(k.UNPACK_ROW_LENGTH, nt), k.pixelStorei(k.UNPACK_IMAGE_HEIGHT, ni), k.pixelStorei(k.UNPACK_SKIP_PIXELS,
|
|
21467
|
+
k.pixelStorei(k.UNPACK_ROW_LENGTH, nt), k.pixelStorei(k.UNPACK_IMAGE_HEIGHT, ni), k.pixelStorei(k.UNPACK_SKIP_PIXELS, ts), k.pixelStorei(k.UNPACK_SKIP_ROWS, si), k.pixelStorei(k.UNPACK_SKIP_IMAGES, Os), ye === 0 && J.generateMipmaps && k.generateMipmap(At), z.unbindTexture();
|
|
21468
21468
|
}, this.initRenderTarget = function(L) {
|
|
21469
21469
|
ie.get(L).__webglFramebuffer === void 0 && Y.setupRenderTarget(L);
|
|
21470
21470
|
}, this.initTexture = function(L) {
|
|
@@ -22578,7 +22578,7 @@ class pv {
|
|
|
22578
22578
|
}
|
|
22579
22579
|
}
|
|
22580
22580
|
}
|
|
22581
|
-
const
|
|
22581
|
+
const qn = {
|
|
22582
22582
|
name: "CopyShader",
|
|
22583
22583
|
uniforms: {
|
|
22584
22584
|
tDiffuse: { value: null },
|
|
@@ -22616,7 +22616,7 @@ const jn = {
|
|
|
22616
22616
|
}`
|
|
22617
22617
|
)
|
|
22618
22618
|
};
|
|
22619
|
-
class
|
|
22619
|
+
class es {
|
|
22620
22620
|
/**
|
|
22621
22621
|
* Constructs a new pass.
|
|
22622
22622
|
*/
|
|
@@ -22699,7 +22699,7 @@ class Va {
|
|
|
22699
22699
|
this._mesh.material = e;
|
|
22700
22700
|
}
|
|
22701
22701
|
}
|
|
22702
|
-
class ya extends
|
|
22702
|
+
class ya extends es {
|
|
22703
22703
|
/**
|
|
22704
22704
|
* Constructs a new shader pass.
|
|
22705
22705
|
*
|
|
@@ -22739,7 +22739,7 @@ class ya extends $n {
|
|
|
22739
22739
|
this.material.dispose(), this._fsQuad.dispose();
|
|
22740
22740
|
}
|
|
22741
22741
|
}
|
|
22742
|
-
class Wh extends
|
|
22742
|
+
class Wh extends es {
|
|
22743
22743
|
/**
|
|
22744
22744
|
* Constructs a new mask pass.
|
|
22745
22745
|
*
|
|
@@ -22767,7 +22767,7 @@ class Wh extends $n {
|
|
|
22767
22767
|
this.inverse ? (a = 0, o = 1) : (a = 1, o = 0), r.buffers.stencil.setTest(!0), r.buffers.stencil.setOp(n.REPLACE, n.REPLACE, n.REPLACE), r.buffers.stencil.setFunc(n.ALWAYS, a, 4294967295), r.buffers.stencil.setClear(o), r.buffers.stencil.setLocked(!0), e.setRenderTarget(i), this.clear && e.clear(), e.render(this.scene, this.camera), e.setRenderTarget(t), this.clear && e.clear(), e.render(this.scene, this.camera), r.buffers.color.setLocked(!1), r.buffers.depth.setLocked(!1), r.buffers.color.setMask(!0), r.buffers.depth.setMask(!0), r.buffers.stencil.setLocked(!1), r.buffers.stencil.setFunc(n.EQUAL, 1, 4294967295), r.buffers.stencil.setOp(n.KEEP, n.KEEP, n.KEEP), r.buffers.stencil.setLocked(!0);
|
|
22768
22768
|
}
|
|
22769
22769
|
}
|
|
22770
|
-
class xv extends
|
|
22770
|
+
class xv extends es {
|
|
22771
22771
|
/**
|
|
22772
22772
|
* Constructs a new clear mask pass.
|
|
22773
22773
|
*/
|
|
@@ -22804,7 +22804,7 @@ class bv {
|
|
|
22804
22804
|
this._width = i.width, this._height = i.height, t = new Ss(this._width * this._pixelRatio, this._height * this._pixelRatio, { type: Pt }), t.texture.name = "EffectComposer.rt1";
|
|
22805
22805
|
} else
|
|
22806
22806
|
this._width = t.width, this._height = t.height;
|
|
22807
|
-
this.renderTarget1 = t, this.renderTarget2 = t.clone(), this.renderTarget2.texture.name = "EffectComposer.rt2", this.writeBuffer = this.renderTarget1, this.readBuffer = this.renderTarget2, this.renderToScreen = !0, this.passes = [], this.copyPass = new ya(
|
|
22807
|
+
this.renderTarget1 = t, this.renderTarget2 = t.clone(), this.renderTarget2.texture.name = "EffectComposer.rt2", this.writeBuffer = this.renderTarget1, this.readBuffer = this.renderTarget2, this.renderToScreen = !0, this.passes = [], this.copyPass = new ya(qn), this.copyPass.material.blending = Ht, this.timer = new Dp();
|
|
22808
22808
|
}
|
|
22809
22809
|
/**
|
|
22810
22810
|
* Swaps the internal read/write buffers.
|
|
@@ -22920,7 +22920,7 @@ class bv {
|
|
|
22920
22920
|
this.renderTarget1.dispose(), this.renderTarget2.dispose(), this.copyPass.dispose();
|
|
22921
22921
|
}
|
|
22922
22922
|
}
|
|
22923
|
-
class _v extends
|
|
22923
|
+
class _v extends es {
|
|
22924
22924
|
/**
|
|
22925
22925
|
* Constructs a new render pass.
|
|
22926
22926
|
*
|
|
@@ -23687,7 +23687,7 @@ class Qu {
|
|
|
23687
23687
|
return e[0] * t + e[1] * i + e[2] * n + e[3] * r;
|
|
23688
23688
|
}
|
|
23689
23689
|
}
|
|
23690
|
-
class yi extends
|
|
23690
|
+
class yi extends es {
|
|
23691
23691
|
/**
|
|
23692
23692
|
* Constructs a new GTAO pass.
|
|
23693
23693
|
*
|
|
@@ -23722,18 +23722,18 @@ class yi extends $n {
|
|
|
23722
23722
|
fragmentShader: ta.fragmentShader,
|
|
23723
23723
|
blending: Ht
|
|
23724
23724
|
}), this.depthRenderMaterial.uniforms.cameraNear.value = this.camera.near, this.depthRenderMaterial.uniforms.cameraFar.value = this.camera.far, this.copyMaterial = new li({
|
|
23725
|
-
uniforms: $t.clone(
|
|
23726
|
-
vertexShader:
|
|
23727
|
-
fragmentShader:
|
|
23725
|
+
uniforms: $t.clone(qn.uniforms),
|
|
23726
|
+
vertexShader: qn.vertexShader,
|
|
23727
|
+
fragmentShader: qn.fragmentShader,
|
|
23728
23728
|
transparent: !0,
|
|
23729
23729
|
depthTest: !1,
|
|
23730
23730
|
depthWrite: !1,
|
|
23731
23731
|
blendSrc: el,
|
|
23732
|
-
blendDst:
|
|
23733
|
-
blendEquation:
|
|
23732
|
+
blendDst: bs,
|
|
23733
|
+
blendEquation: xs,
|
|
23734
23734
|
blendSrcAlpha: $o,
|
|
23735
|
-
blendDstAlpha:
|
|
23736
|
-
blendEquationAlpha:
|
|
23735
|
+
blendDstAlpha: bs,
|
|
23736
|
+
blendEquationAlpha: xs
|
|
23737
23737
|
}), this.blendMaterial = new li({
|
|
23738
23738
|
uniforms: $t.clone(Fo.uniforms),
|
|
23739
23739
|
vertexShader: Fo.vertexShader,
|
|
@@ -23743,11 +23743,11 @@ class yi extends $n {
|
|
|
23743
23743
|
depthWrite: !1,
|
|
23744
23744
|
blending: Wd,
|
|
23745
23745
|
blendSrc: el,
|
|
23746
|
-
blendDst:
|
|
23747
|
-
blendEquation:
|
|
23746
|
+
blendDst: bs,
|
|
23747
|
+
blendEquation: xs,
|
|
23748
23748
|
blendSrcAlpha: $o,
|
|
23749
|
-
blendDstAlpha:
|
|
23750
|
-
blendEquationAlpha:
|
|
23749
|
+
blendDstAlpha: bs,
|
|
23750
|
+
blendEquationAlpha: xs
|
|
23751
23751
|
}), this._fsQuad = new Va(null), this._originalClearColor = new Vt(), this.setGBuffer(r ? r.depthTexture : void 0, r ? r.normalTexture : void 0), a !== void 0 && this.updateGtaoMaterial(a), o !== void 0 && this.updatePdMaterial(o);
|
|
23752
23752
|
}
|
|
23753
23753
|
/**
|
|
@@ -24163,7 +24163,7 @@ const na = {
|
|
|
24163
24163
|
|
|
24164
24164
|
}`
|
|
24165
24165
|
};
|
|
24166
|
-
class Ji extends
|
|
24166
|
+
class Ji extends es {
|
|
24167
24167
|
/**
|
|
24168
24168
|
* Constructs a new SSAO pass.
|
|
24169
24169
|
*
|
|
@@ -24199,18 +24199,18 @@ class Ji extends $n {
|
|
|
24199
24199
|
fragmentShader: sa.fragmentShader,
|
|
24200
24200
|
blending: Ht
|
|
24201
24201
|
}), this.depthRenderMaterial.uniforms.tDepth.value = this.normalRenderTarget.depthTexture, this.depthRenderMaterial.uniforms.cameraNear.value = this.camera.near, this.depthRenderMaterial.uniforms.cameraFar.value = this.camera.far, this.copyMaterial = new li({
|
|
24202
|
-
uniforms: $t.clone(
|
|
24203
|
-
vertexShader:
|
|
24204
|
-
fragmentShader:
|
|
24202
|
+
uniforms: $t.clone(qn.uniforms),
|
|
24203
|
+
vertexShader: qn.vertexShader,
|
|
24204
|
+
fragmentShader: qn.fragmentShader,
|
|
24205
24205
|
transparent: !0,
|
|
24206
24206
|
depthTest: !1,
|
|
24207
24207
|
depthWrite: !1,
|
|
24208
24208
|
blendSrc: el,
|
|
24209
|
-
blendDst:
|
|
24210
|
-
blendEquation:
|
|
24209
|
+
blendDst: bs,
|
|
24210
|
+
blendEquation: xs,
|
|
24211
24211
|
blendSrcAlpha: $o,
|
|
24212
|
-
blendDstAlpha:
|
|
24213
|
-
blendEquationAlpha:
|
|
24212
|
+
blendDstAlpha: bs,
|
|
24213
|
+
blendEquationAlpha: xs
|
|
24214
24214
|
}), this._fsQuad = new Va(null), this._originalClearColor = new Vt();
|
|
24215
24215
|
}
|
|
24216
24216
|
/**
|
|
@@ -24287,7 +24287,7 @@ class Ji extends $n {
|
|
|
24287
24287
|
const o = Math.random() * 2 - 1, l = Math.random() * 2 - 1, c = 0;
|
|
24288
24288
|
r[a] = i.noise3d(o, l, c);
|
|
24289
24289
|
}
|
|
24290
|
-
this.noiseTexture = new ka(r, 4, 4,
|
|
24290
|
+
this.noiseTexture = new ka(r, 4, 4, _s, en), this.noiseTexture.wrapS = sn, this.noiseTexture.wrapT = sn, this.noiseTexture.needsUpdate = !0;
|
|
24291
24291
|
}
|
|
24292
24292
|
_overrideVisibility() {
|
|
24293
24293
|
const e = this.scene, t = this._visibilityCache;
|
|
@@ -24395,7 +24395,7 @@ const aa = {
|
|
|
24395
24395
|
}`
|
|
24396
24396
|
)
|
|
24397
24397
|
};
|
|
24398
|
-
class Mv extends
|
|
24398
|
+
class Mv extends es {
|
|
24399
24399
|
/**
|
|
24400
24400
|
* Constructs a new output pass.
|
|
24401
24401
|
*/
|
|
@@ -28062,7 +28062,7 @@ function cf(s, e, t) {
|
|
|
28062
28062
|
return s && (i || t == !1) ? HE(s, e) : e;
|
|
28063
28063
|
}
|
|
28064
28064
|
const ed = (s) => s instanceof ii ? { ...s } : s;
|
|
28065
|
-
function
|
|
28065
|
+
function Zn(s, e) {
|
|
28066
28066
|
e = e || {};
|
|
28067
28067
|
const t = {};
|
|
28068
28068
|
function i(c, h, d, g) {
|
|
@@ -28127,7 +28127,7 @@ function Jn(s, e) {
|
|
|
28127
28127
|
}), t;
|
|
28128
28128
|
}
|
|
28129
28129
|
const hf = (s) => {
|
|
28130
|
-
const e =
|
|
28130
|
+
const e = Zn({}, s);
|
|
28131
28131
|
let { data: t, withXSRFToken: i, xsrfHeaderName: n, xsrfCookieName: r, headers: a, auth: o } = e;
|
|
28132
28132
|
if (e.headers = a = ii.from(a), e.url = sf(cf(e.baseURL, e.url, e.allowAbsoluteUrls), s.params, s.paramsSerializer), o && a.set(
|
|
28133
28133
|
"Authorization",
|
|
@@ -28570,7 +28570,7 @@ const Ca = {
|
|
|
28570
28570
|
assertOptions: ty,
|
|
28571
28571
|
validators: Ya
|
|
28572
28572
|
}, Bi = Ca.validators;
|
|
28573
|
-
let
|
|
28573
|
+
let Xn = class {
|
|
28574
28574
|
constructor(e) {
|
|
28575
28575
|
this.defaults = e || {}, this.interceptors = {
|
|
28576
28576
|
request: new Kh(),
|
|
@@ -28603,7 +28603,7 @@ let qn = class {
|
|
|
28603
28603
|
}
|
|
28604
28604
|
}
|
|
28605
28605
|
_request(e, t) {
|
|
28606
|
-
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t =
|
|
28606
|
+
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Zn(this.defaults, t);
|
|
28607
28607
|
const { transitional: i, paramsSerializer: n, headers: r } = t;
|
|
28608
28608
|
i !== void 0 && Ca.assertOptions(i, {
|
|
28609
28609
|
silentJSONParsing: Bi.transitional(Bi.boolean),
|
|
@@ -28665,14 +28665,14 @@ let qn = class {
|
|
|
28665
28665
|
return h;
|
|
28666
28666
|
}
|
|
28667
28667
|
getUri(e) {
|
|
28668
|
-
e =
|
|
28668
|
+
e = Zn(this.defaults, e);
|
|
28669
28669
|
const t = cf(e.baseURL, e.url, e.allowAbsoluteUrls);
|
|
28670
28670
|
return sf(t, e.params, e.paramsSerializer);
|
|
28671
28671
|
}
|
|
28672
28672
|
};
|
|
28673
28673
|
ae.forEach(["delete", "get", "head", "options"], function(e) {
|
|
28674
|
-
|
|
28675
|
-
return this.request(
|
|
28674
|
+
Xn.prototype[e] = function(t, i) {
|
|
28675
|
+
return this.request(Zn(i || {}, {
|
|
28676
28676
|
method: e,
|
|
28677
28677
|
url: t,
|
|
28678
28678
|
data: (i || {}).data
|
|
@@ -28682,7 +28682,7 @@ ae.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
28682
28682
|
ae.forEach(["post", "put", "patch"], function(e) {
|
|
28683
28683
|
function t(i) {
|
|
28684
28684
|
return function(r, a, o) {
|
|
28685
|
-
return this.request(
|
|
28685
|
+
return this.request(Zn(o || {}, {
|
|
28686
28686
|
method: e,
|
|
28687
28687
|
headers: i ? {
|
|
28688
28688
|
"Content-Type": "multipart/form-data"
|
|
@@ -28692,7 +28692,7 @@ ae.forEach(["post", "put", "patch"], function(e) {
|
|
|
28692
28692
|
}));
|
|
28693
28693
|
};
|
|
28694
28694
|
}
|
|
28695
|
-
|
|
28695
|
+
Xn.prototype[e] = t(), Xn.prototype[e + "Form"] = t(!0);
|
|
28696
28696
|
});
|
|
28697
28697
|
let iy = class pf {
|
|
28698
28698
|
constructor(e) {
|
|
@@ -28850,13 +28850,13 @@ Object.entries($l).forEach(([s, e]) => {
|
|
|
28850
28850
|
$l[e] = s;
|
|
28851
28851
|
});
|
|
28852
28852
|
function mf(s) {
|
|
28853
|
-
const e = new
|
|
28854
|
-
return ae.extend(t,
|
|
28855
|
-
return mf(
|
|
28853
|
+
const e = new Xn(s), t = Wu(Xn.prototype.request, e);
|
|
28854
|
+
return ae.extend(t, Xn.prototype, e, { allOwnKeys: !0 }), ae.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(n) {
|
|
28855
|
+
return mf(Zn(s, n));
|
|
28856
28856
|
}, t;
|
|
28857
28857
|
}
|
|
28858
28858
|
const Et = mf(wr);
|
|
28859
|
-
Et.Axios =
|
|
28859
|
+
Et.Axios = Xn;
|
|
28860
28860
|
Et.CanceledError = Ns;
|
|
28861
28861
|
Et.CancelToken = iy;
|
|
28862
28862
|
Et.isCancel = of;
|
|
@@ -28869,7 +28869,7 @@ Et.all = function(e) {
|
|
|
28869
28869
|
};
|
|
28870
28870
|
Et.spread = ny;
|
|
28871
28871
|
Et.isAxiosError = sy;
|
|
28872
|
-
Et.mergeConfig =
|
|
28872
|
+
Et.mergeConfig = Zn;
|
|
28873
28873
|
Et.AxiosHeaders = ii;
|
|
28874
28874
|
Et.formToJSON = (s) => af(ae.isHTMLForm(s) ? new FormData(s) : s);
|
|
28875
28875
|
Et.getAdapter = uf.getAdapter;
|
|
@@ -29037,12 +29037,12 @@ class ry extends Ua {
|
|
|
29037
29037
|
}
|
|
29038
29038
|
_createGeometry(e) {
|
|
29039
29039
|
const t = new Cs();
|
|
29040
|
-
e.index && t.setIndex(new
|
|
29040
|
+
e.index && t.setIndex(new vs(e.index.array, 1));
|
|
29041
29041
|
for (let i = 0; i < e.attributes.length; i++) {
|
|
29042
29042
|
const { name: n, array: r, itemSize: a, stride: o, vertexColorSpace: l } = e.attributes[i];
|
|
29043
29043
|
let c;
|
|
29044
29044
|
if (a === o)
|
|
29045
|
-
c = new
|
|
29045
|
+
c = new vs(r, a);
|
|
29046
29046
|
else {
|
|
29047
29047
|
const h = new Yd(r, o);
|
|
29048
29048
|
c = new Kd(h, a, 0);
|
|
@@ -30005,19 +30005,19 @@ pi.BasisWorker = function() {
|
|
|
30005
30005
|
return m;
|
|
30006
30006
|
}
|
|
30007
30007
|
};
|
|
30008
|
-
const by = /* @__PURE__ */ new Set([Gn, rl, tr,
|
|
30008
|
+
const by = /* @__PURE__ */ new Set([Gn, rl, tr, _s]), jo = {
|
|
30009
30009
|
[Sf]: Gn,
|
|
30010
30010
|
[Cf]: tr,
|
|
30011
|
-
[wf]:
|
|
30011
|
+
[wf]: _s,
|
|
30012
30012
|
[Mf]: Gn,
|
|
30013
30013
|
[yf]: tr,
|
|
30014
|
-
[Ef]:
|
|
30014
|
+
[Ef]: _s,
|
|
30015
30015
|
[vf]: Gn,
|
|
30016
30016
|
[_f]: Gn,
|
|
30017
30017
|
[bf]: tr,
|
|
30018
30018
|
[xf]: tr,
|
|
30019
|
-
[Af]:
|
|
30020
|
-
[gf]:
|
|
30019
|
+
[Af]: _s,
|
|
30020
|
+
[gf]: _s,
|
|
30021
30021
|
[Tf]: rl,
|
|
30022
30022
|
[If]: rl,
|
|
30023
30023
|
[Hf]: $d,
|
|
@@ -30048,7 +30048,7 @@ const by = /* @__PURE__ */ new Set([Gn, rl, tr, bs]), jo = {
|
|
|
30048
30048
|
[$f]: tl,
|
|
30049
30049
|
[ep]: Oc,
|
|
30050
30050
|
[Zf]: Oc
|
|
30051
|
-
},
|
|
30051
|
+
}, gs = {
|
|
30052
30052
|
[Sf]: en,
|
|
30053
30053
|
[Cf]: en,
|
|
30054
30054
|
[wf]: en,
|
|
@@ -30096,7 +30096,7 @@ async function _y(s) {
|
|
|
30096
30096
|
const { vkFormat: e } = s;
|
|
30097
30097
|
if (jo[e] === void 0)
|
|
30098
30098
|
throw new Error("THREE.KTX2Loader: Unsupported vkFormat: " + e);
|
|
30099
|
-
|
|
30099
|
+
gs[e] === void 0 && console.warn('THREE.KTX2Loader: Missing ".type" for vkFormat: ' + e);
|
|
30100
30100
|
let t;
|
|
30101
30101
|
s.supercompressionScheme === cd && (Wo || (Wo = new Promise(async (a) => {
|
|
30102
30102
|
const o = new gy();
|
|
@@ -30113,15 +30113,15 @@ async function _y(s) {
|
|
|
30113
30113
|
else
|
|
30114
30114
|
throw new Error("THREE.KTX2Loader: Unsupported supercompressionScheme.");
|
|
30115
30115
|
let g;
|
|
30116
|
-
|
|
30116
|
+
gs[e] === en ? g = new Float32Array(
|
|
30117
30117
|
d.buffer,
|
|
30118
30118
|
d.byteOffset,
|
|
30119
30119
|
d.byteLength / Float32Array.BYTES_PER_ELEMENT
|
|
30120
|
-
) :
|
|
30120
|
+
) : gs[e] === Pt ? g = new Uint16Array(
|
|
30121
30121
|
d.buffer,
|
|
30122
30122
|
d.byteOffset,
|
|
30123
30123
|
d.byteLength / Uint16Array.BYTES_PER_ELEMENT
|
|
30124
|
-
) :
|
|
30124
|
+
) : gs[e] === tu || gs[e] === eu ? g = new Uint32Array(
|
|
30125
30125
|
d.buffer,
|
|
30126
30126
|
d.byteOffset,
|
|
30127
30127
|
d.byteLength / Uint32Array.BYTES_PER_ELEMENT
|
|
@@ -30140,7 +30140,7 @@ async function _y(s) {
|
|
|
30140
30140
|
if (s.pixelDepth > 0) throw new Error("THREE.KTX2Loader: Unsupported pixelDepth.");
|
|
30141
30141
|
r = new Jd(i, s.pixelWidth, s.pixelHeight), r.minFilter = n ? Na : rn, r.magFilter = rn;
|
|
30142
30142
|
}
|
|
30143
|
-
return r.mipmaps = i, r.type =
|
|
30143
|
+
return r.mipmaps = i, r.type = gs[e], r.format = jo[e], r.colorSpace = np(s), r.needsUpdate = !0, Promise.resolve(r);
|
|
30144
30144
|
}
|
|
30145
30145
|
function np(s) {
|
|
30146
30146
|
const e = s.dataFormatDescriptor[0];
|
|
@@ -30326,7 +30326,7 @@ function da(s, e, t) {
|
|
|
30326
30326
|
return f.position.set(c.x, c.y, c.z), f.rotation._order = "YXZ", f.rotation.set(h.x, h.y, h.z), f;
|
|
30327
30327
|
}
|
|
30328
30328
|
}
|
|
30329
|
-
function
|
|
30329
|
+
function Yn(s, e = !1) {
|
|
30330
30330
|
const t = s[0].index !== null, i = new Set(Object.keys(s[0].attributes)), n = new Set(Object.keys(s[0].morphAttributes)), r = {}, a = {}, o = s[0].morphTargetsRelative, l = new Cs();
|
|
30331
30331
|
let c = 0;
|
|
30332
30332
|
for (let h = 0; h < s.length; ++h) {
|
|
@@ -30406,7 +30406,7 @@ function fd(s) {
|
|
|
30406
30406
|
return console.error("THREE.BufferGeometryUtils: .mergeAttributes() failed. BufferAttribute.gpuType must be consistent across matching attributes."), null;
|
|
30407
30407
|
r += h.count * t;
|
|
30408
30408
|
}
|
|
30409
|
-
const a = new e(r), o = new
|
|
30409
|
+
const a = new e(r), o = new vs(a, t, i);
|
|
30410
30410
|
let l = 0;
|
|
30411
30411
|
for (let c = 0; c < s.length; ++c) {
|
|
30412
30412
|
const h = s[c];
|
|
@@ -31101,7 +31101,7 @@ class Hy {
|
|
|
31101
31101
|
for (const h in e.attributes) {
|
|
31102
31102
|
const d = tc[h] || h.toLowerCase();
|
|
31103
31103
|
if (a[h] !== void 0) {
|
|
31104
|
-
const g = i.accessors[e.attributes[h]], f =
|
|
31104
|
+
const g = i.accessors[e.attributes[h]], f = Ms[g.componentType];
|
|
31105
31105
|
c[d] = f.name, l[d] = g.normalized === !0;
|
|
31106
31106
|
}
|
|
31107
31107
|
}
|
|
@@ -31165,7 +31165,7 @@ const fi = {
|
|
|
31165
31165
|
TRIANGLES: 4,
|
|
31166
31166
|
TRIANGLE_STRIP: 5,
|
|
31167
31167
|
TRIANGLE_FAN: 6
|
|
31168
|
-
},
|
|
31168
|
+
}, Ms = {
|
|
31169
31169
|
5120: Int8Array,
|
|
31170
31170
|
5121: Uint8Array,
|
|
31171
31171
|
5122: Int16Array,
|
|
@@ -31565,22 +31565,22 @@ class tM {
|
|
|
31565
31565
|
loadAccessor(e) {
|
|
31566
31566
|
const t = this, i = this.json, n = this.json.accessors[e];
|
|
31567
31567
|
if (n.bufferView === void 0 && n.sparse === void 0) {
|
|
31568
|
-
const a = qo[n.type], o =
|
|
31569
|
-
return Promise.resolve(new
|
|
31568
|
+
const a = qo[n.type], o = Ms[n.componentType], l = n.normalized === !0, c = new o(n.count * a);
|
|
31569
|
+
return Promise.resolve(new vs(c, a, l));
|
|
31570
31570
|
}
|
|
31571
31571
|
const r = [];
|
|
31572
31572
|
return n.bufferView !== void 0 ? r.push(this.getDependency("bufferView", n.bufferView)) : r.push(null), n.sparse !== void 0 && (r.push(this.getDependency("bufferView", n.sparse.indices.bufferView)), r.push(this.getDependency("bufferView", n.sparse.values.bufferView))), Promise.all(r).then(function(a) {
|
|
31573
|
-
const o = a[0], l = qo[n.type], c =
|
|
31573
|
+
const o = a[0], l = qo[n.type], c = Ms[n.componentType], h = c.BYTES_PER_ELEMENT, d = h * l, g = n.byteOffset || 0, f = n.bufferView !== void 0 ? i.bufferViews[n.bufferView].byteStride : void 0, p = n.normalized === !0;
|
|
31574
31574
|
let u, m;
|
|
31575
31575
|
if (f && f !== d) {
|
|
31576
31576
|
const A = Math.floor(g / f), x = "InterleavedBuffer:" + n.bufferView + ":" + n.componentType + ":" + A + ":" + n.count;
|
|
31577
31577
|
let b = t.cache.get(x);
|
|
31578
31578
|
b || (u = new c(o, A * f, n.count * f / h), b = new Yd(u, f / h), t.cache.add(x, b)), m = new Kd(b, l, g % f / h, p);
|
|
31579
31579
|
} else
|
|
31580
|
-
o === null ? u = new c(n.count * l) : u = new c(o, g, n.count * l), m = new
|
|
31580
|
+
o === null ? u = new c(n.count * l) : u = new c(o, g, n.count * l), m = new vs(u, l, p);
|
|
31581
31581
|
if (n.sparse !== void 0) {
|
|
31582
|
-
const A = qo.SCALAR, x =
|
|
31583
|
-
o !== null && (m = new
|
|
31582
|
+
const A = qo.SCALAR, x = Ms[n.sparse.indices.componentType], b = n.sparse.indices.byteOffset || 0, v = n.sparse.values.byteOffset || 0, y = new x(a[1], b, n.sparse.count * A), M = new c(a[2], v, n.sparse.count * l);
|
|
31583
|
+
o !== null && (m = new vs(m.array.slice(), m.itemSize, m.normalized)), m.normalized = !1;
|
|
31584
31584
|
for (let I = 0, D = y.length; I < D; I++) {
|
|
31585
31585
|
const w = y[I];
|
|
31586
31586
|
if (m.setX(w, M[I * l]), l >= 2 && m.setY(w, M[I * l + 1]), l >= 3 && m.setZ(w, M[I * l + 2]), l >= 4 && m.setW(w, M[I * l + 3]), l >= 5) throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.");
|
|
@@ -32081,7 +32081,7 @@ function iM(s, e, t) {
|
|
|
32081
32081
|
new Ee(l[0], l[1], l[2]),
|
|
32082
32082
|
new Ee(c[0], c[1], c[2])
|
|
32083
32083
|
), o.normalized) {
|
|
32084
|
-
const h = ic(
|
|
32084
|
+
const h = ic(Ms[o.componentType]);
|
|
32085
32085
|
n.min.multiplyScalar(h), n.max.multiplyScalar(h);
|
|
32086
32086
|
}
|
|
32087
32087
|
} else {
|
|
@@ -32099,7 +32099,7 @@ function iM(s, e, t) {
|
|
|
32099
32099
|
const g = t.json.accessors[d.POSITION], f = g.min, p = g.max;
|
|
32100
32100
|
if (f !== void 0 && p !== void 0) {
|
|
32101
32101
|
if (l.setX(Math.max(Math.abs(f[0]), Math.abs(p[0]))), l.setY(Math.max(Math.abs(f[1]), Math.abs(p[1]))), l.setZ(Math.max(Math.abs(f[2]), Math.abs(p[2]))), g.normalized) {
|
|
32102
|
-
const u = ic(
|
|
32102
|
+
const u = ic(Ms[g.componentType]);
|
|
32103
32103
|
l.multiplyScalar(u);
|
|
32104
32104
|
}
|
|
32105
32105
|
o.max(l);
|
|
@@ -32298,7 +32298,7 @@ async function vM(s, e, t, i) {
|
|
|
32298
32298
|
return a;
|
|
32299
32299
|
}
|
|
32300
32300
|
function EM(s, e, t, i, n) {
|
|
32301
|
-
const r =
|
|
32301
|
+
const r = Yn(
|
|
32302
32302
|
i.map((o) => o.geometry),
|
|
32303
32303
|
!1
|
|
32304
32304
|
), a = new _.Mesh(r, n);
|
|
@@ -32311,7 +32311,7 @@ function yM(s, e, t, i) {
|
|
|
32311
32311
|
});
|
|
32312
32312
|
}
|
|
32313
32313
|
function MM(s, e) {
|
|
32314
|
-
const t = Array.isArray(s.geometrys) ? s.geometrys : [], i = e.map((a) => a.geometry), n = [...t, ...i], r =
|
|
32314
|
+
const t = Array.isArray(s.geometrys) ? s.geometrys : [], i = e.map((a) => a.geometry), n = [...t, ...i], r = Yn(n, !1);
|
|
32315
32315
|
s.geometry != null && s.geometry.dispose(), s.geometry = r, s.geometrys = n, s.castShadow = !0, s.receiveShadow = !0;
|
|
32316
32316
|
}
|
|
32317
32317
|
async function wM(s, e, t, i) {
|
|
@@ -32561,7 +32561,7 @@ class kM {
|
|
|
32561
32561
|
}
|
|
32562
32562
|
}
|
|
32563
32563
|
}
|
|
32564
|
-
var
|
|
32564
|
+
var Wn = /* @__PURE__ */ ((s) => (s.ModelLoadStart = "model-load-start", s.ModelLoadProgress = "model-load-progress", s.ModelLoaded = "model-loaded", s.ModelError = "model-error", s.SelectionChanged = "selection-changed", s.HoverChanged = "hover-changed", s.Click = "click", s.MouseMove = "mouse-move", s.CameraChanged = "camera-changed", s.CameraIdle = "camera-idle", s.ViewportResize = "viewport-resize", s.EngineFree = "engine-free", s.EngineBusy = "engine-busy", s.MeasureChanged = "measure-changed", s.SectionMove = "section-move", s.LoadingCompleted = "loading_completed", s))(Wn || {});
|
|
32565
32565
|
class UM {
|
|
32566
32566
|
engine;
|
|
32567
32567
|
isFree;
|
|
@@ -32578,9 +32578,9 @@ class UM {
|
|
|
32578
32578
|
this.engine = e, this.isFree = !0, this.isForceFree = !1, this.highlightModels = [], this.hideModels = [], this.translucentModels = [], this.models = [];
|
|
32579
32579
|
}
|
|
32580
32580
|
init() {
|
|
32581
|
-
this.engine.events.on(
|
|
32581
|
+
this.engine.events.on(Wn.EngineFree, (e) => {
|
|
32582
32582
|
this.updateFree(!0), mp(this.engine, e, !1);
|
|
32583
|
-
}), this.engine.events.on(
|
|
32583
|
+
}), this.engine.events.on(Wn.EngineBusy, () => {
|
|
32584
32584
|
this.updateFree(!1);
|
|
32585
32585
|
});
|
|
32586
32586
|
}
|
|
@@ -33018,7 +33018,7 @@ class GM {
|
|
|
33018
33018
|
split_merge_model(e) {
|
|
33019
33019
|
if (e.isSplit || e instanceof _.InstancedMesh)
|
|
33020
33020
|
return;
|
|
33021
|
-
let t = e.materialClone.clone(), i =
|
|
33021
|
+
let t = e.materialClone.clone(), i = Yn(e.geometrys, !0);
|
|
33022
33022
|
i.computeVertexNormals(), i.groups.forEach((n) => {
|
|
33023
33023
|
n.materialIndex = 0;
|
|
33024
33024
|
}), e.geometry = i, e.material = [t, this.highlightMaterial, this.translucentMaterial], e.needsUpdate = !0, e.isSplit = !0;
|
|
@@ -41277,29 +41277,85 @@ const hC = `
|
|
|
41277
41277
|
|
|
41278
41278
|
**分部分项工程及收入,分包,形象进度编码表**:
|
|
41279
41279
|
|
|
41280
|
-
| 构件名称 | WBS分部工程 | WBS分项工程 | 收入清单(章号+子目) | 分包清单(工序) | 形象进度单元 |
|
|
41281
|
-
| :--- | :--- | :--- | :--- | :--- | :--- |
|
|
41282
|
-
|
|
|
41283
|
-
|
|
|
41284
|
-
|
|
|
41285
|
-
|
|
|
41286
|
-
|
|
|
41287
|
-
|
|
|
41288
|
-
|
|
|
41289
|
-
|
|
|
41290
|
-
|
|
|
41291
|
-
|
|
|
41292
|
-
|
|
|
41293
|
-
|
|
|
41294
|
-
|
|
|
41295
|
-
|
|
|
41296
|
-
|
|
|
41297
|
-
|
|
|
41298
|
-
|
|
|
41299
|
-
|
|
|
41300
|
-
|
|
|
41301
|
-
|
|
|
41302
|
-
|
|
|
41280
|
+
| 构件名称 | 工程类型 | 单位工程 | WBS分部工程 | WBS分项工程 | 收入清单(章号+子目) | 分包清单(工序) | 形象进度单元 |
|
|
41281
|
+
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
|
|
41282
|
+
| 基础开挖及回填 | GL | U04 桥涵工程 | P01 基础及下部构造 | S01 基础开挖及回填 | 404-1(干处挖土方) | 404-1-01 开挖土方 | GL-0409 其它 |
|
|
41283
|
+
| 桩基础 | GL | U04 桥涵工程 | P01 基础及下部构造 | S02 桩基础 | 405-1-a(钻孔灌注桩/陆上) | 405-1-a-01 旋挖钻钻孔 | GL-040101 桩基础 |
|
|
41284
|
+
| 扩大基础 | GL | U04 桥涵工程 | P01 基础及下部构造 | S03 扩大基础 | 410-1(混凝土基础) | 410-1-01 垫层混凝土施工 | GL-040102 扩大基础 |
|
|
41285
|
+
| 沉井基础 | GL | U04 桥涵工程 | P01 基础及下部构造 | S04 沉井基础 | 409-1(钢筋混凝土沉井) | 409-1-a-01 井壁混凝土施工 | GL-040103 沉井基础 |
|
|
41286
|
+
| 沉箱基础 | GL | U04 桥涵工程 | P01 基础及下部构造 | S05 沉箱基础 | 422-1(沉箱) | 422-1-01 钢套箱加工 | GL-040104 沉箱基础 |
|
|
41287
|
+
| 承台 | GL | U04 桥涵工程 | P01 基础及下部构造 | S06 承台 | 410-1-c(C30混凝土承台) | 410-1-01 垫层施工 | GL-040105 承台 |
|
|
41288
|
+
| 桩系梁 | GL | U04 桥涵工程 | P01 基础及下部构造 | S07 桩系梁 | 410-1-a(C30混凝土系梁) | 410-1-01 垫层施工 | GL-040106 系梁 |
|
|
41289
|
+
| 支撑梁 | GL | U04 桥涵工程 | P01 基础及下部构造 | S08 支撑梁 | 410-1(混凝土基础) | 410-1-01 垫层施工 | GL-040107 支撑梁 |
|
|
41290
|
+
| 墩身 | GL | U04 桥涵工程 | P01 基础及下部构造 | S09 墩身 | 410-2-b(桥墩混凝土) | 410-2-b-03 爬模施工 | GL-040108 墩身 |
|
|
41291
|
+
| 柱系梁 | GL | U04 桥涵工程 | P01 基础及下部构造 | S10 柱系梁 | 410-2-b(桥墩混凝土) | 410-2-b-01 滑模施工 | GL-040106 系梁 |
|
|
41292
|
+
| 桥台台身 | GL | U04 桥涵工程 | P01 基础及下部构造 | S11 桥台台身 | 410-2-a(桥台混凝土) | 410-2-a-02 混凝土施工 | GL-040109 桥台 |
|
|
41293
|
+
| 桥台耳背墙 | GL | U04 桥涵工程 | P01 基础及下部构造 | S12 桥台耳背墙 | 410-2-a(桥台混凝土) | 410-2-a-02 混凝土施工 | GL-040109 桥台 |
|
|
41294
|
+
| 盖梁、台帽 | GL | U04 桥涵工程 | P01 基础及下部构造 | S13 盖梁、台帽 | 410-2-c(盖梁混凝土) | 410-2-c-01 盖梁混凝土施工 | GL-040110 盖梁、台帽 |
|
|
41295
|
+
| 墩顶固结 | GL | U04 桥涵工程 | P01 基础及下部构造 | S14 墩顶固结 | 410-2-b(桥墩混凝土) | 410-2-b-01 混凝土施工 | GL-0409 其它 |
|
|
41296
|
+
| 抗震挡块、挡土板 | GL | U04 桥涵工程 | P01 基础及下部构造 | S15 抗震挡块、挡土板 | 410-6(现浇混凝土附属结构) | 410-6-01 混凝土施工 | GL-0409 其它 |
|
|
41297
|
+
| 支座垫石 | GL | U04 桥涵工程 | P01 基础及下部构造 | S16 支座垫石 | 410-6-03(支座垫石、挡块等) | 410-6-0301 现浇混凝土施工 | GL-0409 其它 |
|
|
41298
|
+
| 梁底楔形块 | GL | U04 桥涵工程 | P01 基础及下部构造 | S17 梁底楔形块 | 410-6(现浇混凝土附属结构) | 410-6-0301 现浇混凝土施工 | GL-0409 其它 |
|
|
41299
|
+
| 实心板 | GL | U04 桥涵工程 | P02 上部构造预制及安装 | S01 实心板 | 410-4-a(混凝土预制) | 410-4-a-01 预制实心板 | GL-040201 梁板预制、安装 |
|
|
41300
|
+
| 空心板 | GL | U04 桥涵工程 | P02 上部构造预制及安装 | S02 空心板 | 410-4-a-1(空心板预制) | 410-4-a-01 预制空心板 | GL-040201 梁板预制、安装 |
|
|
41301
|
+
| 小箱梁 | GL | U04 桥涵工程 | P02 上部构造预制及安装 | S03 小箱梁 | 410-4-a-2(箱梁预制) | 410-4-a-02 预制箱梁 | GL-040201 梁板预制、安装 |
|
|
41302
|
+
| 整体式箱梁 | GL | U04 桥涵工程 | P02 上部构造预制及安装 | S04 整体式箱梁 | 410-4-a-2(箱梁预制) | 410-4-a-02 预制箱梁 | GL-040201 梁板预制、安装 |
|
|
41303
|
+
| T梁 | GL | U04 桥涵工程 | P02 上部构造预制及安装 | S05 T梁 | 410-4-b-3(T梁运输安装) | 410-4-a-03 T梁预制 | GL-040201 梁板预制、安装 |
|
|
41304
|
+
| 钢结构梁(含钢砼) | GL | U04 桥涵工程 | P02 上部构造预制及安装 | S06 钢结构梁 | 412-4(钢箱梁) | 412-4-01 运输;412-4-02 安装 | GL-040201 梁板预制、安装 |
|
|
41305
|
+
| 现浇板 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S01 现浇板 | 410-3(现浇混凝土上部结构) | 410-3-03 现浇混凝土 | GL-040301 梁板现浇 |
|
|
41306
|
+
| 现浇梁 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S02 现浇梁 | 410-3(现浇混凝土上部结构) | 410-3-03 现浇混凝土 | GL-040301 梁板现浇 |
|
|
41307
|
+
| 桥面板 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S03 桥面板 | 410-3(现浇混凝土上部结构) | 410-3-03 现浇混凝土 | GL-040301 梁板现浇 |
|
|
41308
|
+
| 桥面连续 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S04 桥面连续 | 410-3(现浇混凝土上部结构) | 410-3-03 现浇混凝土 | GL-040302 桥面连续 |
|
|
41309
|
+
| 湿接缝 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S05 湿接缝 | 410-3(现浇混凝土上部结构) | 410-3-03 现浇混凝土 | GL-040302 桥面连续 |
|
|
41310
|
+
| 铰缝 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S06 铰缝 | 410-3(现浇混凝土上部结构) | 410-3-03 现浇混凝土 | GL-040302 桥面连续 |
|
|
41311
|
+
| 横隔板 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S07 横隔板 | 410-3(现浇混凝土上部结构) | 410-3-03 现浇混凝土 | GL-040302 桥面连续 |
|
|
41312
|
+
| 端横梁 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S08 端横梁 | 410-3(现浇混凝土上部结构) | 410-3-03 现浇混凝土 | GL-040302 桥面连续 |
|
|
41313
|
+
| 中横梁 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S09 中横梁 | 410-3(现浇混凝土上部结构) | 410-3-03 现浇混凝土 | GL-040302 桥面连续 |
|
|
41314
|
+
| 墩顶负弯矩 | GL | U04 桥涵工程 | P03 上部构造现场浇筑 | S10 墩顶负弯矩 | 411(预应力混凝土工程) | 411-5-01 后张法预应力钢绞线 | GL-040302 桥面连续 |
|
|
41315
|
+
| 桥面铺装及防水层 | GL | U04 桥涵工程 | P04 桥面系、附属工程及桥梁总体 | S01 桥面铺装及防水层 | 415-1(沥青混凝土桥面铺装) | 415-1-01 沥青铺装 | GL-0404 桥面系 |
|
|
41316
|
+
| 桥面调平层(整体化层) | GL | U04 桥涵工程 | P04 桥面系、附属工程及桥梁总体 | S02 桥面调平层 | 415-2(水泥混凝土桥面铺装) | 415-2-03 水泥混凝土铺装 | GL-0404 桥面系 |
|
|
41317
|
+
| 人行道 | GL | U04 桥涵工程 | P05 附属工程 | S01 人行道 | 410-6(现浇混凝土附属结构) | 410-6-01 现浇混凝土 | GL-0409 其它 |
|
|
41318
|
+
| 护栏 | GL | U04 桥涵工程 | P05 附属工程 | S02 护栏 | 410-6(现浇混凝土附属结构) | 410-6-01 护栏混凝土施工 | GL-040501 护栏 |
|
|
41319
|
+
| 桥头搭板 | GL | U04 桥涵工程 | P05 附属工程 | S03 桥头搭板 | 410-6-02(搭板) | 410-6-0202 搭板混凝土施工 | GL-040502 桥头搭板 |
|
|
41320
|
+
| 锥坡防护 | GL | U04 桥涵工程 | P05 附属工程 | S04 锥坡防护 | 413-1(浆砌片石) | 413-1-01 浆砌片石施工 | GL-040503 锥坡防护 |
|
|
41321
|
+
| 桥梁支座 | GL | U04 桥涵工程 | P05 附属工程 | S05 桥梁支座 | 416-1(板式橡胶支座) | 416-1-01 矩形板式橡胶支座 | GL-0409 其它 |
|
|
41322
|
+
| 伸缩装置 | GL | U04 桥涵工程 | P05 附属工程 | S06 伸缩装置及护栏挡板、防落物 | 417-2(模数式伸缩装置) | 417-2-01 模数式伸缩装置安装 | GL-040504 伸缩缝 |
|
|
41323
|
+
| 防抛网 | GL | U04 桥涵工程 | P05 附属工程 | S07 防抛网 | 603-5(防落物网) | 603-5-01 防落物网 | GL-0409 其它 |
|
|
41324
|
+
| 桥梁防排水处理 | GL | U04 桥涵工程 | P05 附属工程 | S08 桥梁防排水处理 | 415-4(桥面排水) | 415-4-a-01 竖横向集中排水管 | GL-0409 其它 |
|
|
41325
|
+
| 桥梁检测 | GL | U04 桥涵工程 | P05 附属工程 | S09 桥梁检测 | 401-1(桥梁荷载试验) | 401-1-a 荷载试验 | GL-0409 其它 |
|
|
41326
|
+
| 其他附属 | GL | U04 桥涵工程 | P05 附属工程 | S10 其他附属 | 427-1(永久钢护筒) | 427-1-01 钢护筒 | GL-0409 其它 |
|
|
41327
|
+
| 桥梁预埋 | GL | U04 桥涵工程 | P06 桥梁预埋 | — | 510-1(预埋件) | 510-1-01 通风设施预埋件 | GL-0409 其它 |
|
|
41328
|
+
| 拆除结构物 | GL | U04 桥涵工程 | P07 拆除结构物 | — | 202-3(拆除结构物) | 202-3-a-02 凿除钢筋混凝土 | GL-0406 拆除结构物 |
|
|
41329
|
+
| 植筋 | GL | U04 桥涵工程 | P08 桥梁加固 | S01 植筋 | 423-1(植筋) | 423-1-01 植筋 | GL-0407 桥梁加固 |
|
|
41330
|
+
| 裂缝处理 | GL | U04 桥涵工程 | P08 桥梁加固 | S02 裂缝处理 | 423-2(裂缝处理) | 423-2-c 环氧砂浆 | GL-0407 桥梁加固 |
|
|
41331
|
+
| 钢结构加固 | GL | U04 桥涵工程 | P08 桥梁加固 | S03 钢结构加固 | 423-3(钢结构加固) | 423-3-01 钢结构加固 | GL-0407 桥梁加固 |
|
|
41332
|
+
| 桥梁涂装 | GL | U04 桥涵工程 | P08 桥梁加固 | S04 桥梁涂装 | 425-1(桥梁外表涂装) | 425-1-01 涂装 | GL-0407 桥梁加固 |
|
|
41333
|
+
| 圆管涵 | GL | U04 桥涵工程 | P09 圆管涵、倒虹吸 | S01 开挖及地基处理 | 419-1(单孔钢筋混凝土圆管涵) | 419-1-01 基坑开挖 | GL-040801 涵洞、通道 |
|
|
41334
|
+
| 圆管涵 | GL | U04 桥涵工程 | P09 圆管涵、倒虹吸 | S02 涵身及基础 | 419-1(单孔钢筋混凝土圆管涵) | 419-1-02 基础混凝土 | GL-040801 涵洞、通道 |
|
|
41335
|
+
| 圆管涵 | GL | U04 桥涵工程 | P09 圆管涵、倒虹吸 | S03 洞口工程 | 419-1(单孔钢筋混凝土圆管涵) | 419-1-04 浆砌防护 | GL-040801 涵洞、通道 |
|
|
41336
|
+
| 圆管涵 | GL | U04 桥涵工程 | P09 圆管涵、倒虹吸 | S04 台背回填 | 419-1(单孔钢筋混凝土圆管涵) | 419-1-06 回填 | GL-040801 涵洞、通道 |
|
|
41337
|
+
| 圆管涵 | GL | U04 桥涵工程 | P09 圆管涵、倒虹吸 | S05 拆除结构物 | 202-3(拆除结构物) | 202-3-a-02 凿除钢筋混凝土 | GL-040801 涵洞、通道 |
|
|
41338
|
+
| 盖板涵 | GL | U04 桥涵工程 | P10 盖板涵 | S01 开挖及地基处理 | 420-1(钢筋混凝土盖板涵) | 420-1-01 基坑开挖 | GL-040801 涵洞、通道 |
|
|
41339
|
+
| 盖板涵 | GL | U04 桥涵工程 | P10 盖板涵 | S02 涵身及基础 | 420-1(钢筋混凝土盖板涵) | 420-1-02 基础混凝土 | GL-040801 涵洞、通道 |
|
|
41340
|
+
| 盖板涵 | GL | U04 桥涵工程 | P10 盖板涵 | S03 盖板 | 420-1(钢筋混凝土盖板涵) | 420-1-06 盖板预制安装 | GL-040801 涵洞、通道 |
|
|
41341
|
+
| 盖板涵 | GL | U04 桥涵工程 | P10 盖板涵 | S04 洞口工程 | 420-1(钢筋混凝土盖板涵) | 420-1-09 浆砌防护 | GL-040801 涵洞、通道 |
|
|
41342
|
+
| 盖板涵 | GL | U04 桥涵工程 | P10 盖板涵 | S05 台背回填 | 420-1(钢筋混凝土盖板涵) | 420-1-09 回填 | GL-040801 涵洞、通道 |
|
|
41343
|
+
| 盖板涵 | GL | U04 桥涵工程 | P10 盖板涵 | S06 拆除结构物 | 202-3(拆除结构物) | 202-3-a-02 凿除钢筋混凝土 | GL-040801 涵洞、通道 |
|
|
41344
|
+
| 拱涵 | GL | U04 桥涵工程 | P11 拱涵 | S01 开挖及地基处理 | 421-1-b(混凝土拱涵) | 421-1-b-01 基坑开挖 | GL-040801 涵洞、通道 |
|
|
41345
|
+
| 拱涵 | GL | U04 桥涵工程 | P11 拱涵 | S02 涵身及基础 | 421-1-b(混凝土拱涵) | 421-1-b-02 基础混凝土 | GL-040801 涵洞、通道 |
|
|
41346
|
+
| 拱涵 | GL | U04 桥涵工程 | P11 拱涵 | S03 洞口工程 | 421-1-b(混凝土拱涵) | 421-1-b-0303 洞门墙施工 | GL-040801 涵洞、通道 |
|
|
41347
|
+
| 拱涵 | GL | U04 桥涵工程 | P11 拱涵 | S04 台背回填 | 421-1-b(混凝土拱涵) | 421-1-b-05 回填 | GL-040801 涵洞、通道 |
|
|
41348
|
+
| 拱涵 | GL | U04 桥涵工程 | P11 拱涵 | S05 拆除结构物 | 202-3(拆除结构物) | 202-3-a-02 凿除钢筋混凝土 | GL-040801 涵洞、通道 |
|
|
41349
|
+
| 箱涵 | GL | U04 桥涵工程 | P12 箱涵 | S01 开挖及地基处理 | 420-2(钢筋混凝土箱涵) | 420-2-01 基坑开挖 | GL-040801 涵洞、通道 |
|
|
41350
|
+
| 箱涵 | GL | U04 桥涵工程 | P12 箱涵 | S02 涵身及基础 | 420-2(钢筋混凝土箱涵) | 420-2-02 基础混凝土 | GL-040801 涵洞、通道 |
|
|
41351
|
+
| 箱涵 | GL | U04 桥涵工程 | P12 箱涵 | S03 洞口工程 | 420-2(钢筋混凝土箱涵) | 420-2-04 涵体现浇施工 | GL-040801 涵洞、通道 |
|
|
41352
|
+
| 箱涵 | GL | U04 桥涵工程 | P12 箱涵 | S04 台背回填 | 420-2(钢筋混凝土箱涵) | 420-2-06 回填 | GL-040801 涵洞、通道 |
|
|
41353
|
+
| 箱涵 | GL | U04 桥涵工程 | P12 箱涵 | S05 拆除结构物 | 202-3(拆除结构物) | 202-3-a-02 凿除钢筋混凝土 | GL-040801 涵洞、通道 |
|
|
41354
|
+
| 钢波纹管涵 | GL | U04 桥涵工程 | P13 钢波纹管涵 | S01 开挖及地基处理 | 424-1(单孔钢波纹管涵) | 424-1-01 基坑开挖 | GL-040801 涵洞、通道 |
|
|
41355
|
+
| 钢波纹管涵 | GL | U04 桥涵工程 | P13 钢波纹管涵 | S02 涵身及基础 | 424-1(单孔钢波纹管涵) | 424-1-02 基础混凝土 | GL-040801 涵洞、通道 |
|
|
41356
|
+
| 钢波纹管涵 | GL | U04 桥涵工程 | P13 钢波纹管涵 | S03 洞口工程 | 424-1(单孔钢波纹管涵) | 424-1-03 涵管安装 | GL-040801 涵洞、通道 |
|
|
41357
|
+
| 钢波纹管涵 | GL | U04 桥涵工程 | P13 钢波纹管涵 | S04 台背回填 | 424-1(单孔钢波纹管涵) | 424-1-04 回填 | GL-040801 涵洞、通道 |
|
|
41358
|
+
| 钢波纹管涵 | GL | U04 桥涵工程 | P13 钢波纹管涵 | S05 拆除结构物 | 202-3(拆除结构物) | 202-3-a-02 凿除钢筋混凝土 | GL-040801 涵洞、通道 |
|
|
41303
41359
|
|
|
41304
41360
|
---
|
|
41305
41361
|
|
|
@@ -41358,7 +41414,7 @@ const hC = `
|
|
|
41358
41414
|
**请基于以上规则进行开发。如有超出文件范围的细节,请返回“规则未定义”并建议用户参照项目实际补充。**
|
|
41359
41415
|
|
|
41360
41416
|
|
|
41361
|
-
`,
|
|
41417
|
+
`, As = {
|
|
41362
41418
|
EncodingStart: "encoding-start",
|
|
41363
41419
|
EncodingComplete: "encoding-complete",
|
|
41364
41420
|
EncodingError: "encoding-error"
|
|
@@ -41444,14 +41500,14 @@ class dC {
|
|
|
41444
41500
|
// 开始编码
|
|
41445
41501
|
async start() {
|
|
41446
41502
|
let e = ["注释", "族名称"], t = ["梁", "墩", "桩", "墙", "面", "台", "石", "支"];
|
|
41447
|
-
this.engine.events.trigger(
|
|
41503
|
+
this.engine.events.trigger(As.EncodingStart, { message: "编码开始" });
|
|
41448
41504
|
let i = [], n = "";
|
|
41449
41505
|
if (this.engine.models.forEach((c) => {
|
|
41450
41506
|
n = c.url, c.nodesMap.forEach((h, d) => {
|
|
41451
41507
|
t.some((g) => h.infos[0].name.includes(g)) && i.push({ id: d, url: c.url });
|
|
41452
41508
|
});
|
|
41453
41509
|
}), i.length === 0) {
|
|
41454
|
-
this.engine.events.trigger(
|
|
41510
|
+
this.engine.events.trigger(As.EncodingComplete, { message: "无匹配构件", results: [] });
|
|
41455
41511
|
return;
|
|
41456
41512
|
}
|
|
41457
41513
|
let r = await this.queryProperties(i, e);
|
|
@@ -41459,7 +41515,7 @@ class dC {
|
|
|
41459
41515
|
let o = [], l = Math.ceil(r.length / a);
|
|
41460
41516
|
for (let c = 0; c < r.length; c += a) {
|
|
41461
41517
|
let h = r.slice(c, c + a), d = Math.floor(c / a) + 1;
|
|
41462
|
-
this.engine.events.trigger(
|
|
41518
|
+
this.engine.events.trigger(As.EncodingStart, {
|
|
41463
41519
|
message: `正在编码第 ${d}/${l} 批`,
|
|
41464
41520
|
batch: d,
|
|
41465
41521
|
totalBatches: l
|
|
@@ -41468,13 +41524,13 @@ class dC {
|
|
|
41468
41524
|
let g = await this.startChat(n, JSON.stringify(h));
|
|
41469
41525
|
o = o.concat(g);
|
|
41470
41526
|
} catch (g) {
|
|
41471
|
-
this.engine.events.trigger(
|
|
41527
|
+
this.engine.events.trigger(As.EncodingError, {
|
|
41472
41528
|
message: `第 ${d} 批编码失败`,
|
|
41473
41529
|
error: g
|
|
41474
41530
|
});
|
|
41475
41531
|
}
|
|
41476
41532
|
}
|
|
41477
|
-
this.engine.events.trigger(
|
|
41533
|
+
this.engine.events.trigger(As.EncodingComplete, {
|
|
41478
41534
|
message: "编码完成",
|
|
41479
41535
|
url: n,
|
|
41480
41536
|
results: o,
|
|
@@ -41508,14 +41564,14 @@ class dC {
|
|
|
41508
41564
|
{ name: "wbs", value: l.wbs },
|
|
41509
41565
|
{ name: "wbs编码", value: l.wbs_str },
|
|
41510
41566
|
{ name: "形象进度编码", value: l.progress_code },
|
|
41511
|
-
{ name: "
|
|
41512
|
-
{ name: "
|
|
41567
|
+
{ name: "收入编码", value: l.income_codes?.join(",") },
|
|
41568
|
+
{ name: "分包编码", value: l.subcontract_codes?.join(",") }
|
|
41513
41569
|
]
|
|
41514
41570
|
};
|
|
41515
41571
|
o.set(l.id, c);
|
|
41516
41572
|
}), this.engine.modelProperties.updateExtended(e, o), this.savaModelCodeToStoge(e), a;
|
|
41517
41573
|
} catch (i) {
|
|
41518
|
-
return console.error("编码失败:", i), this.engine.events.trigger(
|
|
41574
|
+
return console.error("编码失败:", i), this.engine.events.trigger(As.EncodingError, {
|
|
41519
41575
|
message: "编码失败",
|
|
41520
41576
|
error: i
|
|
41521
41577
|
}), [];
|
|
@@ -42226,7 +42282,7 @@ class _p {
|
|
|
42226
42282
|
});
|
|
42227
42283
|
}
|
|
42228
42284
|
}), this._emitProgress(85, "正在加载..."), await Promise.resolve(), this.model.textMap.forEach((t, i) => {
|
|
42229
|
-
const n =
|
|
42285
|
+
const n = Yn(t.map((c) => c.geometry), !1);
|
|
42230
42286
|
let r = Number.parseInt(i.split("||")[1]);
|
|
42231
42287
|
if (r === 0) {
|
|
42232
42288
|
const c = this.model.layers.find((h) => h.name === i.split("||")[0]);
|
|
@@ -42249,7 +42305,7 @@ class _p {
|
|
|
42249
42305
|
}]);
|
|
42250
42306
|
});
|
|
42251
42307
|
}), this._emitProgress(93, "正在加载..."), await Promise.resolve(), this.model.hatchMap.forEach((t, i) => {
|
|
42252
|
-
let n =
|
|
42308
|
+
let n = Yn(t.map((h) => h.geometry), !1), r = parseInt(i.split("||")[1]);
|
|
42253
42309
|
if (r == 0) {
|
|
42254
42310
|
var a = this.model.layers.find((h) => h.name == i.split("||")[0]);
|
|
42255
42311
|
r = a.color;
|
|
@@ -42344,7 +42400,7 @@ class _p {
|
|
|
42344
42400
|
n.push(new _.ShapeGeometry(l));
|
|
42345
42401
|
}
|
|
42346
42402
|
if (n.length === 0) return;
|
|
42347
|
-
const r = n.length === 1 ? n[0] :
|
|
42403
|
+
const r = n.length === 1 ? n[0] : Yn(n, !1), a = e.layer + "||" + e.color;
|
|
42348
42404
|
this.model.hatchMap.has(a) ? this.model.hatchMap.get(a).push({ geometry: r, info: e }) : this.model.hatchMap.set(a, [{ geometry: r, info: e }]);
|
|
42349
42405
|
}
|
|
42350
42406
|
// 绘制文字
|
|
@@ -42602,7 +42658,7 @@ class vC {
|
|
|
42602
42658
|
// 业务数据
|
|
42603
42659
|
models = [];
|
|
42604
42660
|
reactBoundingClientRect = { left: 0, top: 0 };
|
|
42605
|
-
version = "3.4.
|
|
42661
|
+
version = "3.4.12";
|
|
42606
42662
|
versionEl = null;
|
|
42607
42663
|
// 引擎容器
|
|
42608
42664
|
container;
|
|
@@ -42622,9 +42678,9 @@ class vC {
|
|
|
42622
42678
|
}, window.addEventListener("resize", this.onWindowResize);
|
|
42623
42679
|
let n = this;
|
|
42624
42680
|
this.controls.addEventListener("start", () => {
|
|
42625
|
-
n.renderer && (n.renderer.interactionActive = !0), n.events.trigger(
|
|
42681
|
+
n.renderer && (n.renderer.interactionActive = !0), n.events.trigger(Wn.EngineBusy), n.container && (n.container.style.cursor = "none");
|
|
42626
42682
|
}), this.controls.addEventListener("end", () => {
|
|
42627
|
-
n.renderer && (n.renderer.interactionActive = !1), n.events.trigger(
|
|
42683
|
+
n.renderer && (n.renderer.interactionActive = !1), n.events.trigger(Wn.EngineFree), n.container && (n.container.style.cursor = "default");
|
|
42628
42684
|
}), this.controls.addEventListener("change", () => {
|
|
42629
42685
|
const r = new _.Vector3();
|
|
42630
42686
|
n.camera.getWorldDirection(r);
|
|
@@ -42637,6 +42693,8 @@ class vC {
|
|
|
42637
42693
|
}
|
|
42638
42694
|
});
|
|
42639
42695
|
window.dispatchEvent(o);
|
|
42696
|
+
}), this.events.on(Wn.LoadingCompleted, (r) => {
|
|
42697
|
+
n.modelEdge.active();
|
|
42640
42698
|
}), this.animate = () => {
|
|
42641
42699
|
if (!this.isRenderingPaused)
|
|
42642
42700
|
this.animationId = requestAnimationFrame(this.animate);
|
|
@@ -42743,7 +42801,7 @@ class vC {
|
|
|
42743
42801
|
const n = this.container.clientWidth, r = this.container.clientHeight;
|
|
42744
42802
|
this.catchSvg.setAttribute("viewBox", `0 0 ${n} ${r}`);
|
|
42745
42803
|
}
|
|
42746
|
-
this.events && this.events.trigger(
|
|
42804
|
+
this.events && this.events.trigger(Wn.ViewportResize, { width: e, height: t });
|
|
42747
42805
|
}
|
|
42748
42806
|
/**
|
|
42749
42807
|
* 销毁引擎,释放资源
|
|
@@ -44145,7 +44203,7 @@ class LC {
|
|
|
44145
44203
|
split_merge_model(e) {
|
|
44146
44204
|
if (e.isSplit || e instanceof _.InstancedMesh)
|
|
44147
44205
|
return;
|
|
44148
|
-
let t = e.materialClone.clone(), i =
|
|
44206
|
+
let t = e.materialClone.clone(), i = Yn(e.geometrys, !0);
|
|
44149
44207
|
i.groups.forEach((n) => {
|
|
44150
44208
|
n.materialIndex = 0;
|
|
44151
44209
|
}), e.geometry = i, e.material = [t, this.highlightMaterial, this.translucentMaterial], e.needsUpdate = !0, e.isSplit = !0;
|