ss-component-new 1.1.579 → 1.1.581
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-Ddob8aEv.cjs → index-BBJKGS3T.cjs} +1 -1
- package/dist/{index-BijjC4Al.cjs → index-BUmfToiF.cjs} +1 -1
- package/dist/{index-CJ7W9dEF.cjs → index-B_0L3kdg.cjs} +1 -1
- package/dist/{index-CTRnHLTj.js → index-BrJJDHk6.js} +2 -2
- package/dist/{index-DmVbKcfI.js → index-C3d5yEDN.js} +108 -108
- package/dist/{index-BOUxZx-8.cjs → index-CGoU7h62.cjs} +1 -1
- package/dist/{index-CPEd1VA0.js → index-CJOKt1Of.js} +1 -1
- package/dist/{index-C4gbvYYF.cjs → index-CdOR6bJ0.cjs} +1 -1
- package/dist/{index-G5UArZxJ.js → index-Cfd2uvIi.js} +4 -4
- package/dist/{index-p2W_6H9-.js → index-ChYz6p0-.js} +1 -1
- package/dist/{index-CPn2W_Q4.cjs → index-Cr20TS_2.cjs} +1 -1
- package/dist/{index-BCU0_WaR.js → index-CvSbx8Cs.js} +1 -1
- package/dist/{index-fLUlzzO2.js → index-CzHr8Wxp.js} +1 -1
- package/dist/{index-Q-rYGelg.js → index-D3xclGak.js} +7 -7
- package/dist/{index-DViv5OA5.cjs → index-D5lTkEku.cjs} +1 -1
- package/dist/{index-0IMVduDn.cjs → index-D66sRE1P.cjs} +1 -1
- package/dist/{index-CW1z5f7l.cjs → index-DDhc8LK6.cjs} +1 -1
- package/dist/{index-CZnqIRrQ.js → index-DRKYPgg-.js} +1 -1
- package/dist/{index-BfKDPIoL.cjs → index-DgApvpAx.cjs} +1 -1
- package/dist/{index-DhziKjCe.js → index-Kaw3dB5O.js} +1 -1
- package/dist/{index--nBwn5fX.cjs → index-NG4hrzB7.cjs} +1 -1
- package/dist/{index-CNq0IT-6.cjs → index-TOdQav2U.cjs} +12 -12
- package/dist/{index-DnsDud_6.js → index-WpyCz4Mu.js} +1 -1
- package/dist/{index-BIrpXEcb.cjs → index-ik417mzy.cjs} +1 -1
- package/dist/{index-D5UiMHPu.js → index-sqhFR4PR.js} +1 -1
- package/dist/{index-smSJIJhh.js → index-ylk_HjGS.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-CAKpDWQe.cjs → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-BGVvpUJH.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-DRLRu-VB.js → index.vue_vue_type_style_index_0_scoped_b9f960ef_lang-LcAjKHdK.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-rtQsCq5U.js → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-BRH-8bgc.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-BAlEgy2H.cjs → index.vue_vue_type_style_index_0_scoped_c4f9c92c_lang-CYHF6wRp.cjs} +1 -1
- package/dist/{main-CFeXp4i3.js → main-7uR7EXg3.js} +2 -2
- package/dist/{main-Sbpdy7un.cjs → main-D0BRjhai.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +4 -4
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +7 -7
- package/dist/{threeModel-yhWQzRd0.cjs → threeModel-CFxOndkP.cjs} +1 -1
- package/dist/{threeModel-CaPWbEgl.js → threeModel-_qpLo8kC.js} +24 -28
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as St, watch as Pr, nextTick as Ld, resolveComponent as ss, createBlock as as, openBlock as Sn, withCtx as en, createElementVNode as En, renderSlot as mc, onMounted as Bl, createElementBlock as
|
|
1
|
+
import { ref as St, watch as Pr, nextTick as Ld, resolveComponent as ss, createBlock as as, openBlock as Sn, withCtx as en, createElementVNode as En, renderSlot as mc, onMounted as Bl, createElementBlock as fi, normalizeClass as Dd, toDisplayString as Xi, createCommentVNode as fa, Fragment as Cu, renderList as Ru, normalizeStyle as Pu, createVNode as pn, unref as Lu, defineComponent as Id, createSlots as Ud, createTextVNode as Ss } from "vue";
|
|
2
2
|
import { c1 as Nd, bW as gc, m as Fd, c2 as _c, c3 as vc, c4 as yc, F as xc, S as Xa, G as Od, r as Mc, n as bc, c5 as zd, c as nt, d as qa, s as Tr, p as Cr, bR as kl, g as On, bM as Sa, f as Bd, bL as Du, u as Iu, bP as kd, bO as Sc, bi as Vd } from "./menu-Qw1eGtzq.js";
|
|
3
3
|
import { e as Ea, d as Uu, j as Hd, s as Ec, k as Gd } from "./index-CdV-dIPz.js";
|
|
4
4
|
import { u as Nu } from "./modelComp-y7HaQuVQ.js";
|
|
@@ -274,13 +274,13 @@ const wf = {
|
|
|
274
274
|
), (h, u) => {
|
|
275
275
|
var f;
|
|
276
276
|
const d = ss("el-tooltip");
|
|
277
|
-
return Sn(),
|
|
277
|
+
return Sn(), fi("div", Tf, [
|
|
278
278
|
En("div", {
|
|
279
279
|
class: Dd(r.compName ? "table-name-wrap" : "")
|
|
280
280
|
}, Xi(r.compName), 3),
|
|
281
281
|
En("div", Cf, [
|
|
282
|
-
n != null && n.buttons && ((f = n == null ? void 0 : n.buttons) == null ? void 0 : f.length) > 0 ? (Sn(),
|
|
283
|
-
(Sn(!0),
|
|
282
|
+
n != null && n.buttons && ((f = n == null ? void 0 : n.buttons) == null ? void 0 : f.length) > 0 ? (Sn(), fi("div", Rf, [
|
|
283
|
+
(Sn(!0), fi(Cu, null, Ru(n == null ? void 0 : n.buttons, (m, _) => (Sn(), fi("div", {
|
|
284
284
|
class: "extra-contents",
|
|
285
285
|
key: _
|
|
286
286
|
}, [
|
|
@@ -340,7 +340,7 @@ const wf = {
|
|
|
340
340
|
* Copyright 2010-2025 Three.js Authors
|
|
341
341
|
* SPDX-License-Identifier: MIT
|
|
342
342
|
*/
|
|
343
|
-
const Hl = "177", gv = { ROTATE: 0, DOLLY: 1, PAN: 2 }, _v = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Nf = 0, Pc = 1, Ff = 2, zu = 1, Of = 2,
|
|
343
|
+
const Hl = "177", gv = { ROTATE: 0, DOLLY: 1, PAN: 2 }, _v = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Nf = 0, Pc = 1, Ff = 2, zu = 1, Of = 2, di = 3, qn = 0, xn = 1, yn = 2, Ri = 0, Dr = 1, Lc = 2, Dc = 3, Ic = 4, zf = 5, qi = 100, Bf = 101, kf = 102, Vf = 103, Hf = 104, Gf = 200, Wf = 201, Xf = 202, qf = 203, Ho = 204, Go = 205, jf = 206, Yf = 207, $f = 208, Jf = 209, Kf = 210, Zf = 211, Qf = 212, ep = 213, tp = 214, Wo = 0, Xo = 1, qo = 2, Nr = 3, jo = 4, Yo = 5, $o = 6, Jo = 7, Fa = 0, np = 1, ip = 2, Pi = 0, rp = 1, sp = 2, ap = 3, op = 4, lp = 5, cp = 6, hp = 7, Uc = "attached", up = "detached", Bu = 300, Fr = 301, Or = 302, Ko = 303, Zo = 304, Oa = 306, Zn = 1e3, Wn = 1001, Qo = 1002, Ln = 1003, dp = 1004, As = 1005, Pn = 1006, Ya = 1007, pi = 1008, ni = 1009, ku = 1010, Vu = 1011, ds = 1012, Gl = 1013, Ji = 1014, Qn = 1015, vs = 1016, Wl = 1017, Xl = 1018, fs = 1020, Hu = 35902, Gu = 1021, Wu = 1022, Fn = 1023, ps = 1026, ms = 1027, Xu = 1028, ql = 1029, qu = 1030, jl = 1031, Yl = 1033, pa = 33776, ma = 33777, ga = 33778, _a = 33779, el = 35840, tl = 35841, nl = 35842, il = 35843, rl = 36196, sl = 37492, al = 37496, ol = 37808, ll = 37809, cl = 37810, hl = 37811, ul = 37812, dl = 37813, fl = 37814, pl = 37815, ml = 37816, gl = 37817, _l = 37818, vl = 37819, yl = 37820, xl = 37821, va = 36492, Ml = 36494, bl = 36495, ju = 36283, Sl = 36284, El = 36285, Al = 36286, wa = 2300, wl = 2301, $a = 2302, Nc = 2400, Fc = 2401, Oc = 2402, fp = 2500, pp = 3200, mp = 3201, $l = 0, gp = 1, Ci = "", Ct = "srgb", zr = "srgb-linear", Ta = "linear", Ut = "srgb", ar = 7680, zc = 519, _p = 512, vp = 513, yp = 514, Yu = 515, xp = 516, Mp = 517, bp = 518, Sp = 519, Tl = 35044, Bc = "300 es", mi = 2e3, Ca = 2001;
|
|
344
344
|
class Zi {
|
|
345
345
|
/**
|
|
346
346
|
* Adds the given event listener to the given event type.
|
|
@@ -3172,7 +3172,7 @@ class cn extends Zi {
|
|
|
3172
3172
|
* @param {number} [anisotropy=Texture.DEFAULT_ANISOTROPY] - The anisotropy value.
|
|
3173
3173
|
* @param {string} [colorSpace=NoColorSpace] - The color space.
|
|
3174
3174
|
*/
|
|
3175
|
-
constructor(e = cn.DEFAULT_IMAGE, t = cn.DEFAULT_MAPPING, n = Wn, i = Wn, s = Pn, a =
|
|
3175
|
+
constructor(e = cn.DEFAULT_IMAGE, t = cn.DEFAULT_MAPPING, n = Wn, i = Wn, s = Pn, a = pi, o = Fn, l = ni, c = cn.DEFAULT_ANISOTROPY, h = Ci) {
|
|
3176
3176
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: jp++ }), this.uuid = Xn(), this.name = "", this.source = new Kl(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = n, this.wrapT = i, this.magFilter = s, this.minFilter = a, this.anisotropy = c, this.format = o, this.internalFormat = null, this.type = l, this.offset = new We(0, 0), this.repeat = new We(1, 1), this.center = new We(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new gt(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.updateRanges = [], this.version = 0, this.onUpdate = null, this.renderTarget = null, this.isRenderTargetTexture = !1, this.isArrayTexture = !!(e && e.depth && e.depth > 1), this.pmremVersion = 0;
|
|
3177
3177
|
}
|
|
3178
3178
|
/**
|
|
@@ -4473,7 +4473,7 @@ class vi {
|
|
|
4473
4473
|
* @return {Box3} A reference to this bounding box.
|
|
4474
4474
|
*/
|
|
4475
4475
|
applyMatrix4(e) {
|
|
4476
|
-
return this.isEmpty() ? this : (
|
|
4476
|
+
return this.isEmpty() ? this : (ai[0].set(this.min.x, this.min.y, this.min.z).applyMatrix4(e), ai[1].set(this.min.x, this.min.y, this.max.z).applyMatrix4(e), ai[2].set(this.min.x, this.max.y, this.min.z).applyMatrix4(e), ai[3].set(this.min.x, this.max.y, this.max.z).applyMatrix4(e), ai[4].set(this.max.x, this.min.y, this.min.z).applyMatrix4(e), ai[5].set(this.max.x, this.min.y, this.max.z).applyMatrix4(e), ai[6].set(this.max.x, this.max.y, this.min.z).applyMatrix4(e), ai[7].set(this.max.x, this.max.y, this.max.z).applyMatrix4(e), this.setFromPoints(ai), this);
|
|
4477
4477
|
}
|
|
4478
4478
|
/**
|
|
4479
4479
|
* Adds the given offset to both the upper and lower bounds of this bounding box,
|
|
@@ -4515,7 +4515,7 @@ class vi {
|
|
|
4515
4515
|
return this.min.fromArray(e.min), this.max.fromArray(e.max), this;
|
|
4516
4516
|
}
|
|
4517
4517
|
}
|
|
4518
|
-
const
|
|
4518
|
+
const ai = [
|
|
4519
4519
|
/* @__PURE__ */ new F(),
|
|
4520
4520
|
/* @__PURE__ */ new F(),
|
|
4521
4521
|
/* @__PURE__ */ new F(),
|
|
@@ -4754,7 +4754,7 @@ class yi {
|
|
|
4754
4754
|
return this.radius = e.radius, this.center.fromArray(e.center), this;
|
|
4755
4755
|
}
|
|
4756
4756
|
}
|
|
4757
|
-
const
|
|
4757
|
+
const oi = /* @__PURE__ */ new F(), no = /* @__PURE__ */ new F(), Rs = /* @__PURE__ */ new F(), Si = /* @__PURE__ */ new F(), io = /* @__PURE__ */ new F(), Ps = /* @__PURE__ */ new F(), ro = /* @__PURE__ */ new F();
|
|
4758
4758
|
class ys {
|
|
4759
4759
|
/**
|
|
4760
4760
|
* Constructs a new ray.
|
|
@@ -4810,7 +4810,7 @@ class ys {
|
|
|
4810
4810
|
* @return {Ray} A reference to this ray.
|
|
4811
4811
|
*/
|
|
4812
4812
|
recast(e) {
|
|
4813
|
-
return this.origin.copy(this.at(e,
|
|
4813
|
+
return this.origin.copy(this.at(e, oi)), this;
|
|
4814
4814
|
}
|
|
4815
4815
|
/**
|
|
4816
4816
|
* Returns the point along this ray that is closest to the given point.
|
|
@@ -4840,8 +4840,8 @@ class ys {
|
|
|
4840
4840
|
* @return {number} The squared distance.
|
|
4841
4841
|
*/
|
|
4842
4842
|
distanceSqToPoint(e) {
|
|
4843
|
-
const t =
|
|
4844
|
-
return t < 0 ? this.origin.distanceToSquared(e) : (
|
|
4843
|
+
const t = oi.subVectors(e, this.origin).dot(this.direction);
|
|
4844
|
+
return t < 0 ? this.origin.distanceToSquared(e) : (oi.copy(this.origin).addScaledVector(this.direction, t), oi.distanceToSquared(e));
|
|
4845
4845
|
}
|
|
4846
4846
|
/**
|
|
4847
4847
|
* Returns the squared distance between this ray and the given line segment.
|
|
@@ -4881,8 +4881,8 @@ class ys {
|
|
|
4881
4881
|
* @return {?Vector3} The intersection point.
|
|
4882
4882
|
*/
|
|
4883
4883
|
intersectSphere(e, t) {
|
|
4884
|
-
|
|
4885
|
-
const n =
|
|
4884
|
+
oi.subVectors(e.center, this.origin);
|
|
4885
|
+
const n = oi.dot(this.direction), i = oi.dot(oi) - n * n, s = e.radius * e.radius;
|
|
4886
4886
|
if (i > s) return null;
|
|
4887
4887
|
const a = Math.sqrt(s - i), o = n - a, l = n + a;
|
|
4888
4888
|
return l < 0 ? null : o < 0 ? this.at(l, t) : this.at(o, t);
|
|
@@ -4952,7 +4952,7 @@ class ys {
|
|
|
4952
4952
|
* @return {boolean} Whether this ray intersects with the given box or not.
|
|
4953
4953
|
*/
|
|
4954
4954
|
intersectsBox(e) {
|
|
4955
|
-
return this.intersectBox(e,
|
|
4955
|
+
return this.intersectBox(e, oi) !== null;
|
|
4956
4956
|
}
|
|
4957
4957
|
/**
|
|
4958
4958
|
* Intersects this ray with the given triangle, returning the intersection
|
|
@@ -5644,10 +5644,10 @@ class lt {
|
|
|
5644
5644
|
* @param {(WebGLCoordinateSystem|WebGPUCoordinateSystem)} [coordinateSystem=WebGLCoordinateSystem] - The coordinate system.
|
|
5645
5645
|
* @return {Matrix4} A reference to this matrix.
|
|
5646
5646
|
*/
|
|
5647
|
-
makePerspective(e, t, n, i, s, a, o =
|
|
5647
|
+
makePerspective(e, t, n, i, s, a, o = mi) {
|
|
5648
5648
|
const l = this.elements, c = 2 * s / (t - e), h = 2 * s / (n - i), u = (t + e) / (t - e), d = (n + i) / (n - i);
|
|
5649
5649
|
let f, m;
|
|
5650
|
-
if (o ===
|
|
5650
|
+
if (o === mi)
|
|
5651
5651
|
f = -(a + s) / (a - s), m = -2 * a * s / (a - s);
|
|
5652
5652
|
else if (o === Ca)
|
|
5653
5653
|
f = -a / (a - s), m = -a * s / (a - s);
|
|
@@ -5668,10 +5668,10 @@ class lt {
|
|
|
5668
5668
|
* @param {(WebGLCoordinateSystem|WebGPUCoordinateSystem)} [coordinateSystem=WebGLCoordinateSystem] - The coordinate system.
|
|
5669
5669
|
* @return {Matrix4} A reference to this matrix.
|
|
5670
5670
|
*/
|
|
5671
|
-
makeOrthographic(e, t, n, i, s, a, o =
|
|
5671
|
+
makeOrthographic(e, t, n, i, s, a, o = mi) {
|
|
5672
5672
|
const l = this.elements, c = 1 / (t - e), h = 1 / (n - i), u = 1 / (a - s), d = (t + e) * c, f = (n + i) * h;
|
|
5673
5673
|
let m, _;
|
|
5674
|
-
if (o ===
|
|
5674
|
+
if (o === mi)
|
|
5675
5675
|
m = (a + s) * u, _ = -2 * u;
|
|
5676
5676
|
else if (o === Ca)
|
|
5677
5677
|
m = s * u, _ = -1 * u;
|
|
@@ -5988,7 +5988,7 @@ class Zl {
|
|
|
5988
5988
|
}
|
|
5989
5989
|
}
|
|
5990
5990
|
let Qp = 0;
|
|
5991
|
-
const jc = /* @__PURE__ */ new F(), dr = /* @__PURE__ */ new zn(),
|
|
5991
|
+
const jc = /* @__PURE__ */ new F(), dr = /* @__PURE__ */ new zn(), li = /* @__PURE__ */ new lt(), Ds = /* @__PURE__ */ new F(), Jr = /* @__PURE__ */ new F(), e0 = /* @__PURE__ */ new F(), t0 = /* @__PURE__ */ new zn(), Yc = /* @__PURE__ */ new F(1, 0, 0), $c = /* @__PURE__ */ new F(0, 1, 0), Jc = /* @__PURE__ */ new F(0, 0, 1), Kc = { type: "added" }, n0 = { type: "removed" }, fr = { type: "childadded", child: null }, so = { type: "childremoved", child: null };
|
|
5992
5992
|
class Nt extends Zi {
|
|
5993
5993
|
/**
|
|
5994
5994
|
* Constructs a new 3D object.
|
|
@@ -6272,7 +6272,7 @@ class Nt extends Zi {
|
|
|
6272
6272
|
* @return {Vector3} The converted vector.
|
|
6273
6273
|
*/
|
|
6274
6274
|
worldToLocal(e) {
|
|
6275
|
-
return this.updateWorldMatrix(!0, !1), e.applyMatrix4(
|
|
6275
|
+
return this.updateWorldMatrix(!0, !1), e.applyMatrix4(li.copy(this.matrixWorld).invert());
|
|
6276
6276
|
}
|
|
6277
6277
|
/**
|
|
6278
6278
|
* Rotates the object to face a point in world space.
|
|
@@ -6286,7 +6286,7 @@ class Nt extends Zi {
|
|
|
6286
6286
|
lookAt(e, t, n) {
|
|
6287
6287
|
e.isVector3 ? Ds.copy(e) : Ds.set(e, t, n);
|
|
6288
6288
|
const i = this.parent;
|
|
6289
|
-
this.updateWorldMatrix(!0, !1), Jr.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ?
|
|
6289
|
+
this.updateWorldMatrix(!0, !1), Jr.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? li.lookAt(Jr, Ds, this.up) : li.lookAt(Ds, Jr, this.up), this.quaternion.setFromRotationMatrix(li), i && (li.extractRotation(i.matrixWorld), dr.setFromRotationMatrix(li), this.quaternion.premultiply(dr.invert()));
|
|
6290
6290
|
}
|
|
6291
6291
|
/**
|
|
6292
6292
|
* Adds the given 3D object as a child to this 3D object. An arbitrary number of
|
|
@@ -6355,7 +6355,7 @@ class Nt extends Zi {
|
|
|
6355
6355
|
* @return {Object3D} A reference to this instance.
|
|
6356
6356
|
*/
|
|
6357
6357
|
attach(e) {
|
|
6358
|
-
return this.updateWorldMatrix(!0, !1),
|
|
6358
|
+
return this.updateWorldMatrix(!0, !1), li.copy(this.matrixWorld).invert(), e.parent !== null && (e.parent.updateWorldMatrix(!0, !1), li.multiply(e.parent.matrixWorld)), e.applyMatrix4(li), e.removeFromParent(), e.parent = this, this.children.push(e), e.updateWorldMatrix(!1, !0), e.dispatchEvent(Kc), fr.child = e, this.dispatchEvent(fr), fr.child = null, this;
|
|
6359
6359
|
}
|
|
6360
6360
|
/**
|
|
6361
6361
|
* Searches through the 3D object and its children, starting with the 3D object
|
|
@@ -6646,7 +6646,7 @@ class Nt extends Zi {
|
|
|
6646
6646
|
Nt.DEFAULT_UP = /* @__PURE__ */ new F(0, 1, 0);
|
|
6647
6647
|
Nt.DEFAULT_MATRIX_AUTO_UPDATE = !0;
|
|
6648
6648
|
Nt.DEFAULT_MATRIX_WORLD_AUTO_UPDATE = !0;
|
|
6649
|
-
const Hn = /* @__PURE__ */ new F(),
|
|
6649
|
+
const Hn = /* @__PURE__ */ new F(), ci = /* @__PURE__ */ new F(), ao = /* @__PURE__ */ new F(), hi = /* @__PURE__ */ new F(), pr = /* @__PURE__ */ new F(), mr = /* @__PURE__ */ new F(), Zc = /* @__PURE__ */ new F(), oo = /* @__PURE__ */ new F(), lo = /* @__PURE__ */ new F(), co = /* @__PURE__ */ new F(), ho = /* @__PURE__ */ new xt(), uo = /* @__PURE__ */ new xt(), fo = /* @__PURE__ */ new xt();
|
|
6650
6650
|
class Nn {
|
|
6651
6651
|
/**
|
|
6652
6652
|
* Constructs a new triangle.
|
|
@@ -6684,8 +6684,8 @@ class Nn {
|
|
|
6684
6684
|
* @return {?Vector3} The barycentric coordinates for the given point
|
|
6685
6685
|
*/
|
|
6686
6686
|
static getBarycoord(e, t, n, i, s) {
|
|
6687
|
-
Hn.subVectors(i, t),
|
|
6688
|
-
const a = Hn.dot(Hn), o = Hn.dot(
|
|
6687
|
+
Hn.subVectors(i, t), ci.subVectors(n, t), ao.subVectors(e, t);
|
|
6688
|
+
const a = Hn.dot(Hn), o = Hn.dot(ci), l = Hn.dot(ao), c = ci.dot(ci), h = ci.dot(ao), u = a * c - o * o;
|
|
6689
6689
|
if (u === 0)
|
|
6690
6690
|
return s.set(0, 0, 0), null;
|
|
6691
6691
|
const d = 1 / u, f = (c * l - o * h) * d, m = (a * h - o * l) * d;
|
|
@@ -6703,7 +6703,7 @@ class Nn {
|
|
|
6703
6703
|
* triangle, lies within the triangle or not.
|
|
6704
6704
|
*/
|
|
6705
6705
|
static containsPoint(e, t, n, i) {
|
|
6706
|
-
return this.getBarycoord(e, t, n, i,
|
|
6706
|
+
return this.getBarycoord(e, t, n, i, hi) === null ? !1 : hi.x >= 0 && hi.y >= 0 && hi.x + hi.y <= 1;
|
|
6707
6707
|
}
|
|
6708
6708
|
/**
|
|
6709
6709
|
* Computes the value barycentrically interpolated for the given point on the
|
|
@@ -6720,7 +6720,7 @@ class Nn {
|
|
|
6720
6720
|
* @return {?Vector3} The interpolated value.
|
|
6721
6721
|
*/
|
|
6722
6722
|
static getInterpolation(e, t, n, i, s, a, o, l) {
|
|
6723
|
-
return this.getBarycoord(e, t, n, i,
|
|
6723
|
+
return this.getBarycoord(e, t, n, i, hi) === null ? (l.x = 0, l.y = 0, "z" in l && (l.z = 0), "w" in l && (l.w = 0), null) : (l.setScalar(0), l.addScaledVector(s, hi.x), l.addScaledVector(a, hi.y), l.addScaledVector(o, hi.z), l);
|
|
6724
6724
|
}
|
|
6725
6725
|
/**
|
|
6726
6726
|
* Computes the value barycentrically interpolated for the given attribute and indices.
|
|
@@ -6746,7 +6746,7 @@ class Nn {
|
|
|
6746
6746
|
* @return {boolean} Whether the triangle is oriented towards the given direction or not.
|
|
6747
6747
|
*/
|
|
6748
6748
|
static isFrontFacing(e, t, n, i) {
|
|
6749
|
-
return Hn.subVectors(n, t),
|
|
6749
|
+
return Hn.subVectors(n, t), ci.subVectors(e, t), Hn.cross(ci).dot(i) < 0;
|
|
6750
6750
|
}
|
|
6751
6751
|
/**
|
|
6752
6752
|
* Sets the triangle's vertices by copying the given values.
|
|
@@ -6806,7 +6806,7 @@ class Nn {
|
|
|
6806
6806
|
* @return {number} The triangle's area.
|
|
6807
6807
|
*/
|
|
6808
6808
|
getArea() {
|
|
6809
|
-
return Hn.subVectors(this.c, this.b),
|
|
6809
|
+
return Hn.subVectors(this.c, this.b), ci.subVectors(this.a, this.b), Hn.cross(ci).length() * 0.5;
|
|
6810
6810
|
}
|
|
6811
6811
|
/**
|
|
6812
6812
|
* Computes the midpoint of the triangle.
|
|
@@ -8932,7 +8932,7 @@ class td extends Nt {
|
|
|
8932
8932
|
* Constructs a new camera.
|
|
8933
8933
|
*/
|
|
8934
8934
|
constructor() {
|
|
8935
|
-
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new lt(), this.projectionMatrix = new lt(), this.projectionMatrixInverse = new lt(), this.coordinateSystem =
|
|
8935
|
+
super(), this.isCamera = !0, this.type = "Camera", this.matrixWorldInverse = new lt(), this.projectionMatrix = new lt(), this.projectionMatrixInverse = new lt(), this.coordinateSystem = mi;
|
|
8936
8936
|
}
|
|
8937
8937
|
copy(e, t) {
|
|
8938
8938
|
return super.copy(e, t), this.matrixWorldInverse.copy(e.matrixWorldInverse), this.projectionMatrix.copy(e.projectionMatrix), this.projectionMatrixInverse.copy(e.projectionMatrixInverse), this.coordinateSystem = e.coordinateSystem, this;
|
|
@@ -9156,7 +9156,7 @@ class u0 extends Nt {
|
|
|
9156
9156
|
updateCoordinateSystem() {
|
|
9157
9157
|
const e = this.coordinateSystem, t = this.children.concat(), [n, i, s, a, o, l] = t;
|
|
9158
9158
|
for (const c of t) this.remove(c);
|
|
9159
|
-
if (e ===
|
|
9159
|
+
if (e === mi)
|
|
9160
9160
|
n.up.set(0, 1, 0), n.lookAt(1, 0, 0), i.up.set(0, 1, 0), i.lookAt(-1, 0, 0), s.up.set(0, 0, -1), s.lookAt(0, 1, 0), a.up.set(0, 0, 1), a.lookAt(0, -1, 0), o.up.set(0, 1, 0), o.lookAt(0, 0, 1), l.up.set(0, 1, 0), l.lookAt(0, 0, -1);
|
|
9161
9161
|
else if (e === Ca)
|
|
9162
9162
|
n.up.set(0, -1, 0), n.lookAt(-1, 0, 0), i.up.set(0, -1, 0), i.lookAt(1, 0, 0), s.up.set(0, 0, 1), s.lookAt(0, 1, 0), a.up.set(0, 0, -1), a.lookAt(0, -1, 0), o.up.set(0, -1, 0), o.lookAt(0, 0, 1), l.up.set(0, -1, 0), l.lookAt(0, 0, -1);
|
|
@@ -9290,7 +9290,7 @@ class d0 extends Ki {
|
|
|
9290
9290
|
});
|
|
9291
9291
|
s.uniforms.tEquirect.value = t;
|
|
9292
9292
|
const a = new Lt(i, s), o = t.minFilter;
|
|
9293
|
-
return t.minFilter ===
|
|
9293
|
+
return t.minFilter === pi && (t.minFilter = Pn), new u0(1, 10, this).update(e, a), t.minFilter = o, a.geometry.dispose(), a.material.dispose(), this;
|
|
9294
9294
|
}
|
|
9295
9295
|
/**
|
|
9296
9296
|
* Clears this cube render target.
|
|
@@ -9307,7 +9307,7 @@ class d0 extends Ki {
|
|
|
9307
9307
|
e.setRenderTarget(s);
|
|
9308
9308
|
}
|
|
9309
9309
|
}
|
|
9310
|
-
class
|
|
9310
|
+
class ei extends Nt {
|
|
9311
9311
|
constructor() {
|
|
9312
9312
|
super(), this.isGroup = !0, this.type = "Group";
|
|
9313
9313
|
}
|
|
@@ -9326,7 +9326,7 @@ class _o {
|
|
|
9326
9326
|
* @return {Group} A group representing the hand space of the XR controller.
|
|
9327
9327
|
*/
|
|
9328
9328
|
getHandSpace() {
|
|
9329
|
-
return this._hand === null && (this._hand = new
|
|
9329
|
+
return this._hand === null && (this._hand = new ei(), this._hand.matrixAutoUpdate = !1, this._hand.visible = !1, this._hand.joints = {}, this._hand.inputState = { pinching: !1 }), this._hand;
|
|
9330
9330
|
}
|
|
9331
9331
|
/**
|
|
9332
9332
|
* Returns a group representing the target ray space of the XR controller.
|
|
@@ -9334,7 +9334,7 @@ class _o {
|
|
|
9334
9334
|
* @return {Group} A group representing the target ray space of the XR controller.
|
|
9335
9335
|
*/
|
|
9336
9336
|
getTargetRaySpace() {
|
|
9337
|
-
return this._targetRay === null && (this._targetRay = new
|
|
9337
|
+
return this._targetRay === null && (this._targetRay = new ei(), this._targetRay.matrixAutoUpdate = !1, this._targetRay.visible = !1, this._targetRay.hasLinearVelocity = !1, this._targetRay.linearVelocity = new F(), this._targetRay.hasAngularVelocity = !1, this._targetRay.angularVelocity = new F()), this._targetRay;
|
|
9338
9338
|
}
|
|
9339
9339
|
/**
|
|
9340
9340
|
* Returns a group representing the grip space of the XR controller.
|
|
@@ -9342,7 +9342,7 @@ class _o {
|
|
|
9342
9342
|
* @return {Group} A group representing the grip space of the XR controller.
|
|
9343
9343
|
*/
|
|
9344
9344
|
getGripSpace() {
|
|
9345
|
-
return this._grip === null && (this._grip = new
|
|
9345
|
+
return this._grip === null && (this._grip = new ei(), this._grip.matrixAutoUpdate = !1, this._grip.visible = !1, this._grip.hasLinearVelocity = !1, this._grip.linearVelocity = new F(), this._grip.hasAngularVelocity = !1, this._grip.angularVelocity = new F()), this._grip;
|
|
9346
9346
|
}
|
|
9347
9347
|
/**
|
|
9348
9348
|
* Dispatches the given event to the groups representing
|
|
@@ -9424,7 +9424,7 @@ class _o {
|
|
|
9424
9424
|
*/
|
|
9425
9425
|
_getHandJoint(e, t) {
|
|
9426
9426
|
if (e.joints[t.jointName] === void 0) {
|
|
9427
|
-
const n = new
|
|
9427
|
+
const n = new ei();
|
|
9428
9428
|
n.matrixAutoUpdate = !1, n.visible = !1, e.joints[t.jointName] = n, e.add(n);
|
|
9429
9429
|
}
|
|
9430
9430
|
return e.joints[t.jointName];
|
|
@@ -9569,7 +9569,7 @@ class rd {
|
|
|
9569
9569
|
}
|
|
9570
9570
|
}
|
|
9571
9571
|
const _n = /* @__PURE__ */ new F();
|
|
9572
|
-
class
|
|
9572
|
+
class ti {
|
|
9573
9573
|
/**
|
|
9574
9574
|
* Constructs a new interleaved buffer attribute.
|
|
9575
9575
|
*
|
|
@@ -9802,7 +9802,7 @@ class ei {
|
|
|
9802
9802
|
}
|
|
9803
9803
|
return new Gt(new this.array.constructor(t), this.itemSize, this.normalized);
|
|
9804
9804
|
} else
|
|
9805
|
-
return e.interleavedBuffers === void 0 && (e.interleavedBuffers = {}), e.interleavedBuffers[this.data.uuid] === void 0 && (e.interleavedBuffers[this.data.uuid] = this.data.clone(e)), new
|
|
9805
|
+
return e.interleavedBuffers === void 0 && (e.interleavedBuffers = {}), e.interleavedBuffers[this.data.uuid] === void 0 && (e.interleavedBuffers[this.data.uuid] = this.data.clone(e)), new ti(e.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized);
|
|
9806
9806
|
}
|
|
9807
9807
|
/**
|
|
9808
9808
|
* Serializes the buffer attribute into JSON.
|
|
@@ -9887,7 +9887,7 @@ class ec extends Nt {
|
|
|
9887
9887
|
0,
|
|
9888
9888
|
1
|
|
9889
9889
|
]), n = new rd(t, 5);
|
|
9890
|
-
yr.setIndex([0, 1, 2, 0, 2, 3]), yr.setAttribute("position", new
|
|
9890
|
+
yr.setIndex([0, 1, 2, 0, 2, 3]), yr.setAttribute("position", new ti(n, 3, 0, !1)), yr.setAttribute("uv", new ti(n, 2, 3, !1));
|
|
9891
9891
|
}
|
|
9892
9892
|
this.geometry = yr, this.material = e, this.center = new We(0.5, 0.5), this.count = 1;
|
|
9893
9893
|
}
|
|
@@ -10600,9 +10600,9 @@ class nc {
|
|
|
10600
10600
|
* @param {(WebGLCoordinateSystem|WebGPUCoordinateSystem)} coordinateSystem - The coordinate system.
|
|
10601
10601
|
* @return {Frustum} A reference to this frustum.
|
|
10602
10602
|
*/
|
|
10603
|
-
setFromProjectionMatrix(e, t =
|
|
10603
|
+
setFromProjectionMatrix(e, t = mi) {
|
|
10604
10604
|
const n = this.planes, i = e.elements, s = i[0], a = i[1], o = i[2], l = i[3], c = i[4], h = i[5], u = i[6], d = i[7], f = i[8], m = i[9], _ = i[10], g = i[11], p = i[12], S = i[13], E = i[14], v = i[15];
|
|
10605
|
-
if (n[0].setComponents(l - s, d - c, g - f, v - p).normalize(), n[1].setComponents(l + s, d + c, g + f, v + p).normalize(), n[2].setComponents(l + a, d + h, g + m, v + S).normalize(), n[3].setComponents(l - a, d - h, g - m, v - S).normalize(), n[4].setComponents(l - o, d - u, g - _, v - E).normalize(), t ===
|
|
10605
|
+
if (n[0].setComponents(l - s, d - c, g - f, v - p).normalize(), n[1].setComponents(l + s, d + c, g + f, v + p).normalize(), n[2].setComponents(l + a, d + h, g + m, v + S).normalize(), n[3].setComponents(l - a, d - h, g - m, v - S).normalize(), n[4].setComponents(l - o, d - u, g - _, v - E).normalize(), t === mi)
|
|
10606
10606
|
n[5].setComponents(l + o, d + u, g + _, v + E).normalize();
|
|
10607
10607
|
else if (t === Ca)
|
|
10608
10608
|
n[5].setComponents(o, u, _, E).normalize();
|
|
@@ -13175,7 +13175,7 @@ class jn {
|
|
|
13175
13175
|
}
|
|
13176
13176
|
}
|
|
13177
13177
|
jn.DEFAULT_MATERIAL_NAME = "__DEFAULT";
|
|
13178
|
-
const
|
|
13178
|
+
const ui = {};
|
|
13179
13179
|
class J0 extends Error {
|
|
13180
13180
|
constructor(e, t) {
|
|
13181
13181
|
super(e), this.response = t;
|
|
@@ -13206,15 +13206,15 @@ class qr extends jn {
|
|
|
13206
13206
|
return this.manager.itemStart(e), setTimeout(() => {
|
|
13207
13207
|
t && t(s), this.manager.itemEnd(e);
|
|
13208
13208
|
}, 0), s;
|
|
13209
|
-
if (
|
|
13210
|
-
|
|
13209
|
+
if (ui[e] !== void 0) {
|
|
13210
|
+
ui[e].push({
|
|
13211
13211
|
onLoad: t,
|
|
13212
13212
|
onProgress: n,
|
|
13213
13213
|
onError: i
|
|
13214
13214
|
});
|
|
13215
13215
|
return;
|
|
13216
13216
|
}
|
|
13217
|
-
|
|
13217
|
+
ui[e] = [], ui[e].push({
|
|
13218
13218
|
onLoad: t,
|
|
13219
13219
|
onProgress: n,
|
|
13220
13220
|
onError: i
|
|
@@ -13228,7 +13228,7 @@ class qr extends jn {
|
|
|
13228
13228
|
if (c.status === 200 || c.status === 0) {
|
|
13229
13229
|
if (c.status === 0 && console.warn("THREE.FileLoader: HTTP Status 0 received."), typeof ReadableStream > "u" || c.body === void 0 || c.body.getReader === void 0)
|
|
13230
13230
|
return c;
|
|
13231
|
-
const h =
|
|
13231
|
+
const h = ui[e], u = c.body.getReader(), d = c.headers.get("X-File-Size") || c.headers.get("Content-Length"), f = d ? parseInt(d) : 0, m = f !== 0;
|
|
13232
13232
|
let _ = 0;
|
|
13233
13233
|
const g = new ReadableStream({
|
|
13234
13234
|
start(p) {
|
|
@@ -13275,17 +13275,17 @@ class qr extends jn {
|
|
|
13275
13275
|
}
|
|
13276
13276
|
}).then((c) => {
|
|
13277
13277
|
Ia.add(e, c);
|
|
13278
|
-
const h =
|
|
13279
|
-
delete
|
|
13278
|
+
const h = ui[e];
|
|
13279
|
+
delete ui[e];
|
|
13280
13280
|
for (let u = 0, d = h.length; u < d; u++) {
|
|
13281
13281
|
const f = h[u];
|
|
13282
13282
|
f.onLoad && f.onLoad(c);
|
|
13283
13283
|
}
|
|
13284
13284
|
}).catch((c) => {
|
|
13285
|
-
const h =
|
|
13285
|
+
const h = ui[e];
|
|
13286
13286
|
if (h === void 0)
|
|
13287
13287
|
throw this.manager.itemError(e), c;
|
|
13288
|
-
delete
|
|
13288
|
+
delete ui[e];
|
|
13289
13289
|
for (let u = 0, d = h.length; u < d; u++) {
|
|
13290
13290
|
const f = h[u];
|
|
13291
13291
|
f.onError && f.onError(c);
|
|
@@ -13390,7 +13390,7 @@ class Z0 extends jn {
|
|
|
13390
13390
|
return;
|
|
13391
13391
|
}
|
|
13392
13392
|
}
|
|
13393
|
-
c.image !== void 0 ? a.image = c.image : c.data !== void 0 && (a.image.width = c.width, a.image.height = c.height, a.image.data = c.data), a.wrapS = c.wrapS !== void 0 ? c.wrapS : Wn, a.wrapT = c.wrapT !== void 0 ? c.wrapT : Wn, a.magFilter = c.magFilter !== void 0 ? c.magFilter : Pn, a.minFilter = c.minFilter !== void 0 ? c.minFilter : Pn, a.anisotropy = c.anisotropy !== void 0 ? c.anisotropy : 1, c.colorSpace !== void 0 && (a.colorSpace = c.colorSpace), c.flipY !== void 0 && (a.flipY = c.flipY), c.format !== void 0 && (a.format = c.format), c.type !== void 0 && (a.type = c.type), c.mipmaps !== void 0 && (a.mipmaps = c.mipmaps, a.minFilter =
|
|
13393
|
+
c.image !== void 0 ? a.image = c.image : c.data !== void 0 && (a.image.width = c.width, a.image.height = c.height, a.image.data = c.data), a.wrapS = c.wrapS !== void 0 ? c.wrapS : Wn, a.wrapT = c.wrapT !== void 0 ? c.wrapT : Wn, a.magFilter = c.magFilter !== void 0 ? c.magFilter : Pn, a.minFilter = c.minFilter !== void 0 ? c.minFilter : Pn, a.anisotropy = c.anisotropy !== void 0 ? c.anisotropy : 1, c.colorSpace !== void 0 && (a.colorSpace = c.colorSpace), c.flipY !== void 0 && (a.flipY = c.flipY), c.format !== void 0 && (a.format = c.format), c.type !== void 0 && (a.type = c.type), c.mipmaps !== void 0 && (a.mipmaps = c.mipmaps, a.minFilter = pi), c.mipmapCount === 1 && (a.minFilter = Pn), c.generateMipmaps !== void 0 && (a.generateMipmaps = c.generateMipmaps), a.needsUpdate = !0, t && t(a, c);
|
|
13394
13394
|
}, n, i), a;
|
|
13395
13395
|
}
|
|
13396
13396
|
}
|
|
@@ -13469,7 +13469,7 @@ class lc {
|
|
|
13469
13469
|
* @param {Camera} camera - The light's view of the world.
|
|
13470
13470
|
*/
|
|
13471
13471
|
constructor(e) {
|
|
13472
|
-
this.camera = e, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new We(512, 512), this.mapType =
|
|
13472
|
+
this.camera = e, this.intensity = 1, this.bias = 0, this.normalBias = 0, this.radius = 1, this.blurSamples = 8, this.mapSize = new We(512, 512), this.mapType = ni, this.map = null, this.mapPass = null, this.matrix = new lt(), this.autoUpdate = !0, this.needsUpdate = !1, this._frustum = new nc(), this._frameExtents = new We(1, 1), this._viewportCount = 1, this._viewports = [
|
|
13473
13473
|
new xt(0, 0, 1, 1)
|
|
13474
13474
|
];
|
|
13475
13475
|
}
|
|
@@ -14396,7 +14396,7 @@ function Ph(r, e, t, n) {
|
|
|
14396
14396
|
}
|
|
14397
14397
|
function d1(r) {
|
|
14398
14398
|
switch (r) {
|
|
14399
|
-
case
|
|
14399
|
+
case ni:
|
|
14400
14400
|
case ku:
|
|
14401
14401
|
return { byteLength: 1, components: 1 };
|
|
14402
14402
|
case ds:
|
|
@@ -18989,7 +18989,7 @@ function K2(r, e, t, n) {
|
|
|
18989
18989
|
}
|
|
18990
18990
|
function o(T) {
|
|
18991
18991
|
const D = T === vs && (e.has("EXT_color_buffer_half_float") || e.has("EXT_color_buffer_float"));
|
|
18992
|
-
return !(T !==
|
|
18992
|
+
return !(T !== ni && n.convert(T) !== r.getParameter(r.IMPLEMENTATION_COLOR_READ_TYPE) && // Edge and Chrome Mac < 52 (#9513)
|
|
18993
18993
|
T !== Qn && !D);
|
|
18994
18994
|
}
|
|
18995
18995
|
function l(T) {
|
|
@@ -20562,7 +20562,7 @@ function Kh(r) {
|
|
|
20562
20562
|
}
|
|
20563
20563
|
function m3(r) {
|
|
20564
20564
|
let e = "SHADOWMAP_TYPE_BASIC";
|
|
20565
|
-
return r.shadowMapType === zu ? e = "SHADOWMAP_TYPE_PCF" : r.shadowMapType === Of ? e = "SHADOWMAP_TYPE_PCF_SOFT" : r.shadowMapType ===
|
|
20565
|
+
return r.shadowMapType === zu ? e = "SHADOWMAP_TYPE_PCF" : r.shadowMapType === Of ? e = "SHADOWMAP_TYPE_PCF_SOFT" : r.shadowMapType === di && (e = "SHADOWMAP_TYPE_VSM"), e;
|
|
20566
20566
|
}
|
|
20567
20567
|
function g3(r) {
|
|
20568
20568
|
let e = "ENVMAP_TYPE_CUBE";
|
|
@@ -21611,7 +21611,7 @@ function F3(r, e, t) {
|
|
|
21611
21611
|
if (g.enabled === !1 || g.autoUpdate === !1 && g.needsUpdate === !1 || C.length === 0) return;
|
|
21612
21612
|
const b = r.getRenderTarget(), x = r.getActiveCubeFace(), R = r.getActiveMipmapLevel(), B = r.state;
|
|
21613
21613
|
B.setBlending(Ri), B.buffers.color.setClear(1, 1, 1, 1), B.buffers.depth.setTest(!0), B.setScissorTest(!1);
|
|
21614
|
-
const V = p !==
|
|
21614
|
+
const V = p !== di && this.type === di, W = p === di && this.type !== di;
|
|
21615
21615
|
for (let Q = 0, k = C.length; Q < k; Q++) {
|
|
21616
21616
|
const Z = C[Q], q = Z.shadow;
|
|
21617
21617
|
if (q === void 0) {
|
|
@@ -21622,7 +21622,7 @@ function F3(r, e, t) {
|
|
|
21622
21622
|
i.copy(q.mapSize);
|
|
21623
21623
|
const ce = q.getFrameExtents();
|
|
21624
21624
|
if (i.multiply(ce), s.copy(q.mapSize), (i.x > h || i.y > h) && (i.x > h && (s.x = Math.floor(h / ce.x), i.x = s.x * ce.x, q.mapSize.x = s.x), i.y > h && (s.y = Math.floor(h / ce.y), i.y = s.y * ce.y, q.mapSize.y = s.y)), q.map === null || V === !0 || W === !0) {
|
|
21625
|
-
const oe = this.type !==
|
|
21625
|
+
const oe = this.type !== di ? { minFilter: Ln, magFilter: Ln } : {};
|
|
21626
21626
|
q.map !== null && q.map.dispose(), q.map = new Ki(i.x, i.y, oe), q.map.texture.name = Z.name + ".shadowMap", q.camera.updateProjectionMatrix();
|
|
21627
21627
|
}
|
|
21628
21628
|
r.setRenderTarget(q.map), r.clear();
|
|
@@ -21636,7 +21636,7 @@ function F3(r, e, t) {
|
|
|
21636
21636
|
s.y * Pe.w
|
|
21637
21637
|
), B.viewport(a), q.updateMatrices(Z, oe), n = q.getFrustum(), v(T, D, q.camera, Z, this.type);
|
|
21638
21638
|
}
|
|
21639
|
-
q.isPointLightShadow !== !0 && this.type ===
|
|
21639
|
+
q.isPointLightShadow !== !0 && this.type === di && S(q, D), q.needsUpdate = !1;
|
|
21640
21640
|
}
|
|
21641
21641
|
p = this.type, g.needsUpdate = !1, r.setRenderTarget(b, x, R);
|
|
21642
21642
|
};
|
|
@@ -21656,7 +21656,7 @@ function F3(r, e, t) {
|
|
|
21656
21656
|
let Q = W[V];
|
|
21657
21657
|
Q === void 0 && (Q = x.clone(), W[V] = Q, T.addEventListener("dispose", U)), x = Q;
|
|
21658
21658
|
}
|
|
21659
|
-
if (x.visible = T.visible, x.wireframe = T.wireframe, b ===
|
|
21659
|
+
if (x.visible = T.visible, x.wireframe = T.wireframe, b === di ? x.side = T.shadowSide !== null ? T.shadowSide : T.side : x.side = T.shadowSide !== null ? T.shadowSide : u[T.side], x.alphaMap = T.alphaMap, x.alphaTest = T.alphaToCoverage === !0 ? 0.5 : T.alphaTest, x.map = T.map, x.clipShadows = T.clipShadows, x.clippingPlanes = T.clippingPlanes, x.clipIntersection = T.clipIntersection, x.displacementMap = T.displacementMap, x.displacementScale = T.displacementScale, x.displacementBias = T.displacementBias, x.wireframeLinewidth = T.wireframeLinewidth, x.linewidth = T.linewidth, D.isPointLight === !0 && x.isMeshDistanceMaterial === !0) {
|
|
21660
21660
|
const B = r.properties.get(x);
|
|
21661
21661
|
B.light = D;
|
|
21662
21662
|
}
|
|
@@ -21664,7 +21664,7 @@ function F3(r, e, t) {
|
|
|
21664
21664
|
}
|
|
21665
21665
|
function v(C, T, D, b, x) {
|
|
21666
21666
|
if (C.visible === !1) return;
|
|
21667
|
-
if (C.layers.test(T.layers) && (C.isMesh || C.isLine || C.isPoints) && (C.castShadow || C.receiveShadow && x ===
|
|
21667
|
+
if (C.layers.test(T.layers) && (C.isMesh || C.isLine || C.isPoints) && (C.castShadow || C.receiveShadow && x === di) && (!C.frustumCulled || n.intersectsObject(C))) {
|
|
21668
21668
|
C.modelViewMatrix.multiplyMatrices(D.matrixWorldInverse, C.matrixWorld);
|
|
21669
21669
|
const V = e.update(C), W = C.material;
|
|
21670
21670
|
if (Array.isArray(W)) {
|
|
@@ -22258,7 +22258,7 @@ function B3(r, e, t, n, i, s, a) {
|
|
|
22258
22258
|
[As]: r.NEAREST_MIPMAP_LINEAR,
|
|
22259
22259
|
[Pn]: r.LINEAR,
|
|
22260
22260
|
[Ya]: r.LINEAR_MIPMAP_NEAREST,
|
|
22261
|
-
[
|
|
22261
|
+
[pi]: r.LINEAR_MIPMAP_LINEAR
|
|
22262
22262
|
}, oe = {
|
|
22263
22263
|
[_p]: r.NEVER,
|
|
22264
22264
|
[Sp]: r.ALWAYS,
|
|
@@ -22270,8 +22270,8 @@ function B3(r, e, t, n, i, s, a) {
|
|
|
22270
22270
|
[Mp]: r.NOTEQUAL
|
|
22271
22271
|
};
|
|
22272
22272
|
function Pe(N, A) {
|
|
22273
|
-
if (A.type === Qn && e.has("OES_texture_float_linear") === !1 && (A.magFilter === Pn || A.magFilter === Ya || A.magFilter === As || A.magFilter ===
|
|
22274
|
-
if (A.magFilter === Ln || A.minFilter !== As && A.minFilter !==
|
|
22273
|
+
if (A.type === Qn && e.has("OES_texture_float_linear") === !1 && (A.magFilter === Pn || A.magFilter === Ya || A.magFilter === As || A.magFilter === pi || A.minFilter === Pn || A.minFilter === Ya || A.minFilter === As || A.minFilter === pi) && console.warn("THREE.WebGLRenderer: Unable to use linear filtering with floating point textures. OES_texture_float_linear not supported on this device."), r.texParameteri(N, r.TEXTURE_WRAP_S, ce[A.wrapS]), r.texParameteri(N, r.TEXTURE_WRAP_T, ce[A.wrapT]), (N === r.TEXTURE_3D || N === r.TEXTURE_2D_ARRAY) && r.texParameteri(N, r.TEXTURE_WRAP_R, ce[A.wrapR]), r.texParameteri(N, r.TEXTURE_MAG_FILTER, _e[A.magFilter]), r.texParameteri(N, r.TEXTURE_MIN_FILTER, _e[A.minFilter]), A.compareFunction && (r.texParameteri(N, r.TEXTURE_COMPARE_MODE, r.COMPARE_REF_TO_TEXTURE), r.texParameteri(N, r.TEXTURE_COMPARE_FUNC, oe[A.compareFunction])), e.has("EXT_texture_filter_anisotropic") === !0) {
|
|
22274
|
+
if (A.magFilter === Ln || A.minFilter !== As && A.minFilter !== pi || A.type === Qn && e.has("OES_texture_float_linear") === !1) return;
|
|
22275
22275
|
if (A.anisotropy > 1 || n.get(A).__currentAnisotropy) {
|
|
22276
22276
|
const G = e.get("EXT_texture_filter_anisotropic");
|
|
22277
22277
|
r.texParameterf(N, G.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(A.anisotropy, i.getMaxAnisotropy())), n.get(A).__currentAnisotropy = A.anisotropy;
|
|
@@ -22672,7 +22672,7 @@ function B3(r, e, t, n, i, s, a) {
|
|
|
22672
22672
|
}
|
|
22673
22673
|
function he(N, A) {
|
|
22674
22674
|
const G = N.colorSpace, z = N.format, re = N.type;
|
|
22675
|
-
return N.isCompressedTexture === !0 || N.isVideoTexture === !0 || G !== zr && G !== Ci && (yt.getTransfer(G) === Ut ? (z !== Fn || re !==
|
|
22675
|
+
return N.isCompressedTexture === !0 || N.isVideoTexture === !0 || G !== zr && G !== Ci && (yt.getTransfer(G) === Ut ? (z !== Fn || re !== ni) && console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType.") : console.error("THREE.WebGLTextures: Unsupported texture color space:", G)), A;
|
|
22676
22676
|
}
|
|
22677
22677
|
function Ce(N) {
|
|
22678
22678
|
return typeof HTMLImageElement < "u" && N instanceof HTMLImageElement ? (c.width = N.naturalWidth || N.width, c.height = N.naturalHeight || N.height) : typeof VideoFrame < "u" && N instanceof VideoFrame ? (c.width = N.displayWidth, c.height = N.displayHeight) : (c.width = N.width, c.height = N.height), c;
|
|
@@ -22683,7 +22683,7 @@ function k3(r, e) {
|
|
|
22683
22683
|
function t(n, i = Ci) {
|
|
22684
22684
|
let s;
|
|
22685
22685
|
const a = yt.getTransfer(i);
|
|
22686
|
-
if (n ===
|
|
22686
|
+
if (n === ni) return r.UNSIGNED_BYTE;
|
|
22687
22687
|
if (n === Wl) return r.UNSIGNED_SHORT_4_4_4_4;
|
|
22688
22688
|
if (n === Xl) return r.UNSIGNED_SHORT_5_5_5_1;
|
|
22689
22689
|
if (n === Hu) return r.UNSIGNED_INT_5_9_9_9_REV;
|
|
@@ -22929,7 +22929,7 @@ class W3 extends Zi {
|
|
|
22929
22929
|
d.textureHeight,
|
|
22930
22930
|
{
|
|
22931
22931
|
format: Fn,
|
|
22932
|
-
type:
|
|
22932
|
+
type: ni,
|
|
22933
22933
|
depthTexture: new ld(d.textureWidth, d.textureHeight, ae, void 0, void 0, void 0, void 0, void 0, void 0, se),
|
|
22934
22934
|
stencilBuffer: g.stencil,
|
|
22935
22935
|
colorSpace: e.outputColorSpace,
|
|
@@ -22951,7 +22951,7 @@ class W3 extends Zi {
|
|
|
22951
22951
|
f.framebufferHeight,
|
|
22952
22952
|
{
|
|
22953
22953
|
format: Fn,
|
|
22954
|
-
type:
|
|
22954
|
+
type: ni,
|
|
22955
22955
|
colorSpace: e.outputColorSpace,
|
|
22956
22956
|
stencilBuffer: g.stencil,
|
|
22957
22957
|
resolveDepthBuffer: f.ignoreDepthValues === !1,
|
|
@@ -23380,7 +23380,7 @@ class bv {
|
|
|
23380
23380
|
j = xe === Yl || xe === jl || xe === ql;
|
|
23381
23381
|
}
|
|
23382
23382
|
if (j) {
|
|
23383
|
-
const xe = D.texture.type, Ne = xe ===
|
|
23383
|
+
const xe = D.texture.type, Ne = xe === ni || xe === Ji || xe === ds || xe === fs || xe === Wl || xe === Xl, qe = fe.getClearColor(), Ve = fe.getClearAlpha(), ht = qe.r, ut = qe.g, Ze = qe.b;
|
|
23384
23384
|
Ne ? (m[0] = ht, m[1] = ut, m[2] = Ze, m[3] = Ve, O.clearBufferuiv(O.COLOR, 0, m)) : (_[0] = ht, _[1] = ut, _[2] = Ze, _[3] = Ve, O.clearBufferiv(O.COLOR, 0, _));
|
|
23385
23385
|
} else
|
|
23386
23386
|
K |= O.COLOR_BUFFER_BIT;
|
|
@@ -23534,10 +23534,10 @@ class bv {
|
|
|
23534
23534
|
Qe && fe.render(P);
|
|
23535
23535
|
for (let Ne = 0, qe = xe.length; Ne < qe; Ne++) {
|
|
23536
23536
|
const Ve = xe[Ne];
|
|
23537
|
-
|
|
23537
|
+
ii(g, P, Ve, Ve.viewport);
|
|
23538
23538
|
}
|
|
23539
23539
|
} else
|
|
23540
|
-
j.length > 0 && it(K, j, P, X), Qe && fe.render(P),
|
|
23540
|
+
j.length > 0 && it(K, j, P, X), Qe && fe.render(P), ii(g, P, X);
|
|
23541
23541
|
D !== null && T === 0 && (he.updateMultisampleRenderTarget(D), he.updateRenderTargetMipmap(D)), P.isScene === !0 && P.onAfterRender(v, P, X), ot.resetDefaultState(), b = -1, x = null, E.pop(), E.length > 0 ? (p = E[E.length - 1], ie === !0 && Oe.setGlobalState(v.clippingPlanes, p.state.camera)) : p = null, S.pop(), S.length > 0 ? g = S[S.length - 1] : g = null;
|
|
23542
23542
|
};
|
|
23543
23543
|
function Ii(P, X, J, K) {
|
|
@@ -23570,7 +23570,7 @@ class bv {
|
|
|
23570
23570
|
for (let Ne = 0, qe = xe.length; Ne < qe; Ne++)
|
|
23571
23571
|
Ii(xe[Ne], X, J, K);
|
|
23572
23572
|
}
|
|
23573
|
-
function
|
|
23573
|
+
function ii(P, X, J, K) {
|
|
23574
23574
|
const j = P.opaque, xe = P.transmissive, Ne = P.transparent;
|
|
23575
23575
|
p.setupLightsView(J), ie === !0 && Oe.setGlobalState(v.clippingPlanes, J), K && ee.viewport(R.copy(K)), j.length > 0 && Te(j, X, J), xe.length > 0 && Te(xe, X, J), Ne.length > 0 && Te(Ne, X, J), ee.buffers.depth.setTest(!0), ee.buffers.depth.setMask(!0), ee.buffers.color.setMask(!0), ee.setPolygonOffset(!1);
|
|
23576
23576
|
}
|
|
@@ -23579,8 +23579,8 @@ class bv {
|
|
|
23579
23579
|
return;
|
|
23580
23580
|
p.state.transmissionRenderTarget[K.id] === void 0 && (p.state.transmissionRenderTarget[K.id] = new Ki(1, 1, {
|
|
23581
23581
|
generateMipmaps: !0,
|
|
23582
|
-
type: $.has("EXT_color_buffer_half_float") || $.has("EXT_color_buffer_float") ? vs :
|
|
23583
|
-
minFilter:
|
|
23582
|
+
type: $.has("EXT_color_buffer_half_float") || $.has("EXT_color_buffer_float") ? vs : ni,
|
|
23583
|
+
minFilter: pi,
|
|
23584
23584
|
samples: 4,
|
|
23585
23585
|
stencilBuffer: s,
|
|
23586
23586
|
resolveDepthBuffer: !1,
|
|
@@ -23678,8 +23678,8 @@ class bv {
|
|
|
23678
23678
|
if ((un.position !== void 0 || un.normal !== void 0 || un.color !== void 0) && Re.update(j, J, Mn), (sn || rt.receiveShadow !== j.receiveShadow) && (rt.receiveShadow = j.receiveShadow, Ft.setValue(O, "receiveShadow", j.receiveShadow)), K.isMeshGouraudMaterial && K.envMap !== null && (gn.envMap.value = Ve, gn.flipEnvMap.value = Ve.isCubeTexture && Ve.isRenderTargetTexture === !1 ? -1 : 1), K.isMeshStandardMaterial && K.envMap === null && X.environment !== null && (gn.envMapIntensity.value = X.environmentIntensity), sn && (Ft.setValue(O, "toneMappingExposure", v.toneMappingExposure), rt.needsLights && Qi(gn, Ui), xe && K.fog === !0 && te.refreshFogUniforms(gn, xe), te.refreshMaterialUniforms(gn, K, q, Z, p.state.transmissionRenderTarget[P.id]), ya.upload(O, Wt(rt), gn, he)), K.isShaderMaterial && K.uniformsNeedUpdate === !0 && (ya.upload(O, Wt(rt), gn, he), K.uniformsNeedUpdate = !1), K.isSpriteMaterial && Ft.setValue(O, "center", j.center), Ft.setValue(O, "modelViewMatrix", j.modelViewMatrix), Ft.setValue(O, "normalMatrix", j.normalMatrix), Ft.setValue(O, "modelMatrix", j.matrixWorld), K.isShaderMaterial || K.isRawShaderMaterial) {
|
|
23679
23679
|
const Xt = K.uniformsGroups;
|
|
23680
23680
|
for (let $t = 0, rr = Xt.length; $t < rr; $t++) {
|
|
23681
|
-
const
|
|
23682
|
-
H.update(
|
|
23681
|
+
const ri = Xt[$t];
|
|
23682
|
+
H.update(ri, Mn), H.bind(ri, Mn);
|
|
23683
23683
|
}
|
|
23684
23684
|
}
|
|
23685
23685
|
return Mn;
|
|
@@ -23809,8 +23809,8 @@ class bv {
|
|
|
23809
23809
|
if (P.isDepthTexture) {
|
|
23810
23810
|
const un = le.get(P), Xt = le.get(X), $t = le.get(un.__renderTarget), rr = le.get(Xt.__renderTarget);
|
|
23811
23811
|
ee.bindFramebuffer(O.READ_FRAMEBUFFER, $t.__webglFramebuffer), ee.bindFramebuffer(O.DRAW_FRAMEBUFFER, rr.__webglFramebuffer);
|
|
23812
|
-
for (let
|
|
23813
|
-
Ft && (O.framebufferTextureLayer(O.READ_FRAMEBUFFER, O.COLOR_ATTACHMENT0, le.get(P).__webglTexture, j, Ze +
|
|
23812
|
+
for (let ri = 0; ri < Ve; ri++)
|
|
23813
|
+
Ft && (O.framebufferTextureLayer(O.READ_FRAMEBUFFER, O.COLOR_ATTACHMENT0, le.get(P).__webglTexture, j, Ze + ri), O.framebufferTextureLayer(O.DRAW_FRAMEBUFFER, O.COLOR_ATTACHMENT0, le.get(X).__webglTexture, xe, Ot + ri)), O.blitFramebuffer(ht, ut, Ne, qe, mt, Tt, Ne, qe, O.DEPTH_BUFFER_BIT, O.NEAREST);
|
|
23814
23814
|
ee.bindFramebuffer(O.READ_FRAMEBUFFER, null), ee.bindFramebuffer(O.DRAW_FRAMEBUFFER, null);
|
|
23815
23815
|
} else if (j !== 0 || P.isRenderTargetTexture || le.has(P)) {
|
|
23816
23816
|
const un = le.get(P), Xt = le.get(X);
|
|
@@ -23841,7 +23841,7 @@ class bv {
|
|
|
23841
23841
|
* @readonly
|
|
23842
23842
|
*/
|
|
23843
23843
|
get coordinateSystem() {
|
|
23844
|
-
return
|
|
23844
|
+
return mi;
|
|
23845
23845
|
}
|
|
23846
23846
|
/**
|
|
23847
23847
|
* Defines the output color space of the renderer.
|
|
@@ -24448,13 +24448,13 @@ class bd extends a1 {
|
|
|
24448
24448
|
let t;
|
|
24449
24449
|
e instanceof Float32Array ? t = e : Array.isArray(e) && (t = new Float32Array(e));
|
|
24450
24450
|
const n = new Rl(t, 6, 1);
|
|
24451
|
-
return this.setAttribute("instanceStart", new
|
|
24451
|
+
return this.setAttribute("instanceStart", new ti(n, 3, 0)), this.setAttribute("instanceEnd", new ti(n, 3, 3)), this.instanceCount = this.attributes.instanceStart.count, this.computeBoundingBox(), this.computeBoundingSphere(), this;
|
|
24452
24452
|
}
|
|
24453
24453
|
setColors(e) {
|
|
24454
24454
|
let t;
|
|
24455
24455
|
e instanceof Float32Array ? t = e : Array.isArray(e) && (t = new Float32Array(e));
|
|
24456
24456
|
const n = new Rl(t, 6, 1);
|
|
24457
|
-
return this.setAttribute("instanceColorStart", new
|
|
24457
|
+
return this.setAttribute("instanceColorStart", new ti(n, 3, 0)), this.setAttribute("instanceColorEnd", new ti(n, 3, 3)), this;
|
|
24458
24458
|
}
|
|
24459
24459
|
fromWireframeGeometry(e) {
|
|
24460
24460
|
return this.setPositions(e.attributes.position.array), this;
|
|
@@ -25030,7 +25030,7 @@ class p_ extends Lt {
|
|
|
25030
25030
|
for (let a = 0, o = 0, l = t.count; a < l; a++, o += 2)
|
|
25031
25031
|
cu.fromBufferAttribute(t, a), hu.fromBufferAttribute(n, a), i[o] = o === 0 ? 0 : i[o - 1], i[o + 1] = i[o] + cu.distanceTo(hu);
|
|
25032
25032
|
const s = new Rl(i, 2, 1);
|
|
25033
|
-
return e.setAttribute("instanceDistanceStart", new
|
|
25033
|
+
return e.setAttribute("instanceDistanceStart", new ti(s, 1, 0)), e.setAttribute("instanceDistanceEnd", new ti(s, 1, 1)), this;
|
|
25034
25034
|
}
|
|
25035
25035
|
raycast(e, t) {
|
|
25036
25036
|
const n = this.material.worldUnits, i = e.camera;
|
|
@@ -25767,7 +25767,7 @@ class Bo extends jn {
|
|
|
25767
25767
|
}
|
|
25768
25768
|
}
|
|
25769
25769
|
t.finalize();
|
|
25770
|
-
const s = new
|
|
25770
|
+
const s = new ei();
|
|
25771
25771
|
if (s.materialLibraries = [].concat(t.materialLibraries), !(t.objects.length === 1 && t.objects[0].geometry.vertices.length === 0) === !0)
|
|
25772
25772
|
for (let o = 0, l = t.objects.length; o < l; o++) {
|
|
25773
25773
|
const c = t.objects[o], h = c.geometry, u = c.materials, d = h.type === "Line", f = h.type === "Points";
|
|
@@ -26505,7 +26505,7 @@ class yu extends Z0 {
|
|
|
26505
26505
|
height: x.height,
|
|
26506
26506
|
flipY: !0,
|
|
26507
26507
|
generateMipmaps: !0,
|
|
26508
|
-
minFilter:
|
|
26508
|
+
minFilter: pi
|
|
26509
26509
|
};
|
|
26510
26510
|
}
|
|
26511
26511
|
}
|
|
@@ -26571,7 +26571,7 @@ class w_ extends jn {
|
|
|
26571
26571
|
return M.substring(1);
|
|
26572
26572
|
}
|
|
26573
26573
|
function l() {
|
|
26574
|
-
return "three_default_" +
|
|
26574
|
+
return "three_default_" + ri++;
|
|
26575
26575
|
}
|
|
26576
26576
|
function c(M) {
|
|
26577
26577
|
return Object.keys(M).length === 0;
|
|
@@ -26913,7 +26913,7 @@ class w_ extends jn {
|
|
|
26913
26913
|
for (je = 0, tt = ne.length; je < tt; je++) {
|
|
26914
26914
|
const Dt = ne[je], At = [];
|
|
26915
26915
|
for (st = 0; st < Dt; st++) {
|
|
26916
|
-
const wt = ue[$e + He],
|
|
26916
|
+
const wt = ue[$e + He], si = ue[$e + De], bn = ve[si];
|
|
26917
26917
|
At.push({ index: wt, weight: bn }), $e += 2;
|
|
26918
26918
|
}
|
|
26919
26919
|
for (At.sort(Vt), st = 0; st < 4; st++) {
|
|
@@ -27636,9 +27636,9 @@ class w_ extends jn {
|
|
|
27636
27636
|
const wt = Vt[At];
|
|
27637
27637
|
switch (At) {
|
|
27638
27638
|
case "VERTEX":
|
|
27639
|
-
for (const
|
|
27640
|
-
const bn = L[
|
|
27641
|
-
switch (
|
|
27639
|
+
for (const si in L) {
|
|
27640
|
+
const bn = L[si];
|
|
27641
|
+
switch (si) {
|
|
27642
27642
|
case "POSITION":
|
|
27643
27643
|
const sr = I.array.length;
|
|
27644
27644
|
if (ft(tt, y[bn], wt.offset, I.array), I.stride = y[bn].stride, y.skinWeights && y.skinIndices && (ft(tt, y.skinIndices, wt.offset, Fe.array), ft(tt, y.skinWeights, wt.offset, Ke.array)), tt.hasUV === !1 && M.uvsNeedsFix === !0) {
|
|
@@ -27660,7 +27660,7 @@ class w_ extends jn {
|
|
|
27660
27660
|
ft(tt, y[bn], wt.offset, He.array), ue.stride = y[bn].stride;
|
|
27661
27661
|
break;
|
|
27662
27662
|
default:
|
|
27663
|
-
console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.',
|
|
27663
|
+
console.warn('THREE.ColladaLoader: Semantic "%s" not handled in geometry build process.', si);
|
|
27664
27664
|
}
|
|
27665
27665
|
}
|
|
27666
27666
|
break;
|
|
@@ -27768,13 +27768,13 @@ class w_ extends jn {
|
|
|
27768
27768
|
switch (w.nodeName) {
|
|
27769
27769
|
case "prismatic":
|
|
27770
27770
|
case "revolute":
|
|
27771
|
-
y =
|
|
27771
|
+
y = ii(w);
|
|
27772
27772
|
break;
|
|
27773
27773
|
}
|
|
27774
27774
|
}
|
|
27775
27775
|
return y;
|
|
27776
27776
|
}
|
|
27777
|
-
function
|
|
27777
|
+
function ii(M) {
|
|
27778
27778
|
const y = {
|
|
27779
27779
|
sid: M.getAttribute("sid"),
|
|
27780
27780
|
name: M.getAttribute("name") || "",
|
|
@@ -28212,8 +28212,8 @@ class w_ extends jn {
|
|
|
28212
28212
|
}
|
|
28213
28213
|
for (let ve = 0, $e = ue.length; ve < $e; ve++) {
|
|
28214
28214
|
const je = ue[ve], st = ie(je.id), tt = tn(st.id), Vt = ut(tt, je.materials), Dt = je.skeletons, At = st.skin.joints, wt = xe(Dt, At);
|
|
28215
|
-
for (let
|
|
28216
|
-
const sr = Vt[
|
|
28215
|
+
for (let si = 0, bn = Vt.length; si < bn; si++) {
|
|
28216
|
+
const sr = Vt[si];
|
|
28217
28217
|
sr.isSkinnedMesh && (sr.bind(wt, st.skin.bindMatrix), sr.normalizeSkinWeights()), y.push(sr);
|
|
28218
28218
|
}
|
|
28219
28219
|
}
|
|
@@ -28232,7 +28232,7 @@ class w_ extends jn {
|
|
|
28232
28232
|
if (w.length === 0 && y.length === 1)
|
|
28233
28233
|
Ke = y[0];
|
|
28234
28234
|
else {
|
|
28235
|
-
Ke = I === "JOINT" ? new ad() : new
|
|
28235
|
+
Ke = I === "JOINT" ? new ad() : new ei();
|
|
28236
28236
|
for (let ve = 0; ve < y.length; ve++)
|
|
28237
28237
|
Ke.add(y[ve]);
|
|
28238
28238
|
}
|
|
@@ -28298,7 +28298,7 @@ class w_ extends jn {
|
|
|
28298
28298
|
dt.visualScenes[M.getAttribute("id")] = y;
|
|
28299
28299
|
}
|
|
28300
28300
|
function Ot(M) {
|
|
28301
|
-
const y = new
|
|
28301
|
+
const y = new ei();
|
|
28302
28302
|
y.name = M.name;
|
|
28303
28303
|
const L = M.children;
|
|
28304
28304
|
for (let w = 0; w < L.length; w++) {
|
|
@@ -28359,7 +28359,7 @@ class w_ extends jn {
|
|
|
28359
28359
|
let un;
|
|
28360
28360
|
yu && (un = new yu(this.manager), un.setPath(this.resourcePath || t));
|
|
28361
28361
|
const Xt = new at(), $t = [];
|
|
28362
|
-
let rr = {},
|
|
28362
|
+
let rr = {}, ri = 0;
|
|
28363
28363
|
const dt = {
|
|
28364
28364
|
animations: {},
|
|
28365
28365
|
clips: {},
|
|
@@ -28884,7 +28884,7 @@ function Ev(r, e, t, n, i) {
|
|
|
28884
28884
|
"Mach_X_Axis_0.STL": "rgb(125,158,192)",
|
|
28885
28885
|
"Mach_Z_Axis_0.STL": "rgb(248,228,118)",
|
|
28886
28886
|
"Mach_Spindle_0.STL": "rgb(145,145,145)"
|
|
28887
|
-
}, b = new
|
|
28887
|
+
}, b = new ei(), x = T.map((me) => new Promise((Se, ze) => {
|
|
28888
28888
|
new ba().load(
|
|
28889
28889
|
Eu.value === "" ? `/model/${me}` : `${Eu.value}\\${me}`,
|
|
28890
28890
|
(Je) => {
|
|
@@ -28905,7 +28905,7 @@ function Ev(r, e, t, n, i) {
|
|
|
28905
28905
|
}
|
|
28906
28906
|
break;
|
|
28907
28907
|
case ".pcd":
|
|
28908
|
-
const R = new A_(), B = new
|
|
28908
|
+
const R = new A_(), B = new ei();
|
|
28909
28909
|
try {
|
|
28910
28910
|
const me = await qa.get(
|
|
28911
28911
|
"http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/target.pcd",
|
|
@@ -29069,7 +29069,7 @@ function Ev(r, e, t, n, i) {
|
|
|
29069
29069
|
progress: ae / se
|
|
29070
29070
|
}), ee(Ce);
|
|
29071
29071
|
} catch (le) {
|
|
29072
|
-
console.error(`mesh文件加载失败: ${O}`, le), $(le), Ae(le);
|
|
29072
|
+
console.error(`mesh文件加载失败: ${O}`, le), new ei(), $(le), Ae(le);
|
|
29073
29073
|
}
|
|
29074
29074
|
});
|
|
29075
29075
|
Me.push(de);
|
|
@@ -29193,7 +29193,7 @@ const I_ = kl("formToTableComp", {
|
|
|
29193
29193
|
name: "output"
|
|
29194
29194
|
}
|
|
29195
29195
|
];
|
|
29196
|
-
}), (n, i) => (Sn(),
|
|
29196
|
+
}), (n, i) => (Sn(), fi("div", U_, [
|
|
29197
29197
|
En("div", N_, [
|
|
29198
29198
|
pn(Ea, {
|
|
29199
29199
|
rowContents: e.value,
|
|
@@ -30140,7 +30140,7 @@ const I_ = kl("formToTableComp", {
|
|
|
30140
30140
|
}));
|
|
30141
30141
|
const Ii = !!((ct = i.value) != null && ct.find((it) => it.prop === "index"));
|
|
30142
30142
|
nn = Td(nt(nn), N == null ? void 0 : N.contents, Ii);
|
|
30143
|
-
const
|
|
30143
|
+
const ii = [];
|
|
30144
30144
|
nn == null || nn.forEach((it, Te) => {
|
|
30145
30145
|
var rn;
|
|
30146
30146
|
let Ht = {};
|
|
@@ -30161,8 +30161,8 @@ const I_ = kl("formToTableComp", {
|
|
|
30161
30161
|
});
|
|
30162
30162
|
} else
|
|
30163
30163
|
Ht = it;
|
|
30164
|
-
Array.isArray(it) && it.some((Wt) => Wt == null ? void 0 : Wt.id) ?
|
|
30165
|
-
}), d.value =
|
|
30164
|
+
Array.isArray(it) && it.some((Wt) => Wt == null ? void 0 : Wt.id) ? ii.push(Object.assign(Ht, { id: (rn = it == null ? void 0 : it.find((Wt) => Wt.id)) == null ? void 0 : rn.id })) : Ht.id ? ii.push(Ht) : ii.push(Object.assign(Ht, { id: Te }));
|
|
30165
|
+
}), d.value = ii;
|
|
30166
30166
|
} else
|
|
30167
30167
|
i.value = [], d.value = [];
|
|
30168
30168
|
((Rt = ee == null ? void 0 : ee.contents) == null ? void 0 : Rt.length) > 0 ? T.value = ee == null ? void 0 : ee.contents : T.value = [], ((ft = Ae == null ? void 0 : Ae.contents) == null ? void 0 : ft.length) > 0 ? b.value = Ae == null ? void 0 : Ae.contents : b.value = [], _.value = ((tn = d == null ? void 0 : d.value) == null ? void 0 : tn.length) ?? 0, W.value = d.value;
|
|
@@ -30173,7 +30173,7 @@ const I_ = kl("formToTableComp", {
|
|
|
30173
30173
|
}, { immediate: !0, deep: !0 }), ($, de) => {
|
|
30174
30174
|
var he;
|
|
30175
30175
|
const ee = ss("el-icon"), Ae = ss("el-popover"), le = ss("el-button");
|
|
30176
|
-
return Sn(),
|
|
30176
|
+
return Sn(), fi("div", iv, [
|
|
30177
30177
|
(Sn(), as(Hd, {
|
|
30178
30178
|
columns: i.value,
|
|
30179
30179
|
key: i.value,
|
|
@@ -30217,7 +30217,7 @@ const I_ = kl("formToTableComp", {
|
|
|
30217
30217
|
]),
|
|
30218
30218
|
default: en(() => [
|
|
30219
30219
|
En("div", rv, [
|
|
30220
|
-
(Sn(!0),
|
|
30220
|
+
(Sn(!0), fi(Cu, null, Ru(Ee(T.value, Ce), (N, A) => (Sn(), fi("div", {
|
|
30221
30221
|
class: "menu-config-item",
|
|
30222
30222
|
key: A
|
|
30223
30223
|
}, [
|
|
@@ -30253,7 +30253,7 @@ const I_ = kl("formToTableComp", {
|
|
|
30253
30253
|
])
|
|
30254
30254
|
]),
|
|
30255
30255
|
footer: en(() => [
|
|
30256
|
-
D.value ? (Sn(),
|
|
30256
|
+
D.value ? (Sn(), fi("div", ov, [
|
|
30257
30257
|
pn(le, {
|
|
30258
30258
|
onClick: de[1] || (de[1] = (Ce) => S.value = !1),
|
|
30259
30259
|
id: "themeBorderButton"
|