ss-component-new 1.1.685 → 1.1.686
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/icons/svg/clear.svg +1 -0
- package/dist/icons/svg/exit.svg +1 -0
- package/dist/icons/svg/message.svg +1 -0
- package/dist/icons/svg/personal.svg +1 -0
- package/dist/{index-Bgw9o0r_.cjs → index-6tGVGW5H.cjs} +1 -1
- package/dist/{index-Cd0B6NzH.js → index-B-oNIsqr.js} +1 -1
- package/dist/{index-D_eFxfr4.js → index-B07HMw2f.js} +1 -1
- package/dist/{index-BdjfLzw6.cjs → index-B4oaNJ2M.cjs} +1 -1
- package/dist/{index-lSngd0Pi.js → index-BAhIlAIx.js} +2 -2
- package/dist/{index-BWY0_5af.js → index-BHx7-hCb.js} +1 -1
- package/dist/{index-BmoZanQB.cjs → index-BJWKvBiO.cjs} +1 -1
- package/dist/{index-PXJMzetI.js → index-BQ88bCUo.js} +2 -2
- package/dist/{index-DAg0Dopz.cjs → index-Bat1L6lr.cjs} +12 -12
- package/dist/{index-DHo9k1o9.js → index-BkkfZljq.js} +3 -3
- package/dist/{index-D4oAGryJ.cjs → index-Bm58AN_e.cjs} +1 -1
- package/dist/{index-B7qa0RBG.cjs → index-BthF9Ifi.cjs} +1 -1
- package/dist/{index-Dt66Iw-O.cjs → index-C-sslcEI.cjs} +1 -1
- package/dist/{index-B96vPso6.cjs → index-C2zXdzKX.cjs} +1 -1
- package/dist/{index-tKdCorPh.js → index-C58bDS2y.js} +511 -455
- package/dist/{index-1hfLiE3g.js → index-C5bsnIiK.js} +1279 -1267
- package/dist/{index-BAknQjwj.js → index-CClyo7Eh.js} +709 -718
- package/dist/{index-CGfg9ywN.cjs → index-CIzSbaCZ.cjs} +1 -1
- package/dist/{index-JbK0bspg.js → index-COjJJ-WD.js} +1 -1
- package/dist/{index-D7CJksik.cjs → index-CZ6RoR9F.cjs} +22 -22
- package/dist/{index-KiB-6ov-.cjs → index-Ch59Lr4l.cjs} +1 -1
- package/dist/{index-D7tU6cr4.cjs → index-CkBXnQMz.cjs} +1 -1
- package/dist/{index-fqiVj50g.js → index-CtqpoWYD.js} +2 -2
- package/dist/{index-B4yw78jF.cjs → index-Cum1cLC7.cjs} +1 -1
- package/dist/{index-r4d969iu.js → index-CxdILRFK.js} +2 -2
- package/dist/{index-DNylIWWy.js → index-D6mqr0y6.js} +4 -4
- package/dist/{index-BC61sx8I.js → index-DEjoX92D.js} +5 -5
- package/dist/{index-PXSY1b9h.js → index-DGYQ_7hv.js} +2 -2
- package/dist/{index-H8hPWdcJ.cjs → index-DH53JMsY.cjs} +1 -1
- package/dist/{index-wcJLE1Qu.js → index-DbiFX2Zu.js} +1 -1
- package/dist/{index-Jmd0gv-0.cjs → index-Ddt2AbfC.cjs} +1 -1
- package/dist/{index-CcIaRyJW.cjs → index-DftOLavV.cjs} +1 -1
- package/dist/{index-DCbA6JBq.cjs → index-YNwetEqX.cjs} +1 -1
- package/dist/{index-BjoVHDdc.js → index-zHVF1Y-F.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DnHwTHgj.cjs → index.vue_vue_type_script_setup_true_lang-Br7d0jiY.cjs} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-aAhoRgCu.js → index.vue_vue_type_script_setup_true_lang-CDW4elAh.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-JVoH0VYs.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-9CIJKCBp.js} +961 -956
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cn15JS4J.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C1YBLsIi.cjs} +35 -35
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-ws12Ot2p.cjs → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-CJj-uTW6.cjs} +2 -2
- package/dist/{index.vue_vue_type_style_index_0_scoped_2be0f146_lang-vXOcU9uh.js → index.vue_vue_type_style_index_0_scoped_2be0f146_lang-wcZ58Bu-.js} +9 -9
- package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-BHnMtT_c.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-B3bZz6dz.js} +26 -18
- package/dist/index.vue_vue_type_style_index_0_scoped_c81d0427_lang-DdGByH-H.cjs +1 -0
- package/dist/{main-CJnlXYG2.cjs → main-BBUdgMHX.cjs} +1 -1
- package/dist/{main-D-EUbups.js → main-BJlA7JFi.js} +2 -2
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +7 -7
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-C1s4fxe1.cjs → threeModel-BVlwk1NC.cjs} +1 -1
- package/dist/{threeModel-MNgVHW_O.js → threeModel-fdHq7xbE.js} +1 -1
- package/package.json +1 -1
- package/public/icons/svg/clear.svg +1 -0
- package/public/icons/svg/exit.svg +1 -0
- package/public/icons/svg/message.svg +1 -0
- package/public/icons/svg/personal.svg +1 -0
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_c81d0427_lang-G9esrKk9.cjs +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as je, watch as mi, nextTick as Pr, resolveComponent as Zn, createBlock as hi, openBlock as $t, withCtx as en, createElementVNode as
|
|
1
|
+
import { ref as je, watch as mi, nextTick as Pr, resolveComponent as Zn, createBlock as hi, openBlock as $t, withCtx as en, createElementVNode as xt, renderSlot as Wc, createElementBlock as pn, computed as xs, onMounted as Br, onUnmounted as Ju, Fragment as Lr, renderList as Dr, createCommentVNode as ui, toDisplayString as Cn, createVNode as Rt, defineComponent as dc, normalizeStyle as $a, normalizeClass as Ya, onBeforeUnmount as Ku, withDirectives as Hi, unref as Tn, isRef as Gr, vModelRadio as Wr, vShow as Xr, createTextVNode as gs, createSlots as Zu } from "vue";
|
|
2
2
|
import { s as _s, p as Ji, c as at, f as ao, u as Qu } from "./menu-IwkXhFha.js";
|
|
3
|
-
import { d as fc, e as Ja, k as e2, s as vo, f as t2 } from "./index-
|
|
3
|
+
import { d as fc, e as Ja, k as e2, s as vo, f as t2 } from "./index-C5bsnIiK.js";
|
|
4
4
|
import { bp as n2, d as i2, bq as s2, a as Ks, E as Ka, b6 as r2, aR as a2, g as o2 } from "./index-DjOudbez.js";
|
|
5
5
|
import { u as pc } from "./modelComp-DSmZe2d_.js";
|
|
6
|
-
import { A as Oa, R as l2, a as c2, T as Xc, U as h2, V as u2, F as jc, g as jr, W as qr, X as d2, Y as f2, Z as p2 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-
|
|
6
|
+
import { A as Oa, R as l2, a as c2, T as Xc, U as h2, V as u2, F as jc, g as jr, W as qr, X as d2, Y as f2, Z as p2 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-9CIJKCBp.js";
|
|
7
7
|
import { _ as Bi } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
import { u as m2 } from "./login-Czn1jLVJ.js";
|
|
9
9
|
var g2 = "[object String]";
|
|
@@ -58,7 +58,7 @@ const $c = (s) => s.match(/\((.*)\)/)[1], _2 = {
|
|
|
58
58
|
ref: t
|
|
59
59
|
}, {
|
|
60
60
|
reference: en(() => [
|
|
61
|
-
|
|
61
|
+
xt("div", null, [
|
|
62
62
|
Wc(r.$slots, "reference", {
|
|
63
63
|
ref_key: "referenceRef",
|
|
64
64
|
ref: i
|
|
@@ -66,7 +66,7 @@ const $c = (s) => s.match(/\((.*)\)/)[1], _2 = {
|
|
|
66
66
|
])
|
|
67
67
|
]),
|
|
68
68
|
default: en(() => [
|
|
69
|
-
|
|
69
|
+
xt("div", null, [
|
|
70
70
|
Wc(r.$slots, "content")
|
|
71
71
|
])
|
|
72
72
|
]),
|
|
@@ -5038,8 +5038,8 @@ class Tt {
|
|
|
5038
5038
|
* @return {Matrix4} A reference to this matrix.
|
|
5039
5039
|
*/
|
|
5040
5040
|
multiplyMatrices(e, t) {
|
|
5041
|
-
const n = e.elements, i = t.elements, r = this.elements, o = n[0], a = n[4], l = n[8], c = n[12], d = n[1], m = n[5], u = n[9], h = n[13], g = n[2], _ = n[6], p = n[10], f = n[14], v = n[3], y = n[7], b = n[11], D = n[15], T = i[0], C = i[4], L = i[8], A = i[12], S = i[1], P = i[5], N = i[9], V = i[13], Z = i[2], se = i[6], H = i[10], ae = i[14],
|
|
5042
|
-
return r[0] = o * T + a * S + l * Z + c *
|
|
5041
|
+
const n = e.elements, i = t.elements, r = this.elements, o = n[0], a = n[4], l = n[8], c = n[12], d = n[1], m = n[5], u = n[9], h = n[13], g = n[2], _ = n[6], p = n[10], f = n[14], v = n[3], y = n[7], b = n[11], D = n[15], T = i[0], C = i[4], L = i[8], A = i[12], S = i[1], P = i[5], N = i[9], V = i[13], Z = i[2], se = i[6], H = i[10], ae = i[14], J = i[3], de = i[7], xe = i[11], ve = i[15];
|
|
5042
|
+
return r[0] = o * T + a * S + l * Z + c * J, r[4] = o * C + a * P + l * se + c * de, r[8] = o * L + a * N + l * H + c * xe, r[12] = o * A + a * V + l * ae + c * ve, r[1] = d * T + m * S + u * Z + h * J, r[5] = d * C + m * P + u * se + h * de, r[9] = d * L + m * N + u * H + h * xe, r[13] = d * A + m * V + u * ae + h * ve, r[2] = g * T + _ * S + p * Z + f * J, r[6] = g * C + _ * P + p * se + f * de, r[10] = g * L + _ * N + p * H + f * xe, r[14] = g * A + _ * V + p * ae + f * ve, r[3] = v * T + y * S + b * Z + D * J, r[7] = v * C + y * P + b * se + D * de, r[11] = v * L + y * N + b * H + D * xe, r[15] = v * A + y * V + b * ae + D * ve, this;
|
|
5043
5043
|
}
|
|
5044
5044
|
/**
|
|
5045
5045
|
* Multiplies every component of the matrix by the given scalar.
|
|
@@ -6826,7 +6826,7 @@ const uu = {
|
|
|
6826
6826
|
function Oo(s, e, t) {
|
|
6827
6827
|
return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? s + (e - s) * 6 * t : t < 1 / 2 ? e : t < 2 / 3 ? s + (e - s) * 6 * (2 / 3 - t) : s;
|
|
6828
6828
|
}
|
|
6829
|
-
class
|
|
6829
|
+
class Ct {
|
|
6830
6830
|
/**
|
|
6831
6831
|
* Constructs a new color.
|
|
6832
6832
|
*
|
|
@@ -7294,15 +7294,15 @@ class Rt {
|
|
|
7294
7294
|
yield this.r, yield this.g, yield this.b;
|
|
7295
7295
|
}
|
|
7296
7296
|
}
|
|
7297
|
-
const kn = /* @__PURE__ */ new
|
|
7298
|
-
|
|
7297
|
+
const kn = /* @__PURE__ */ new Ct();
|
|
7298
|
+
Ct.NAMES = uu;
|
|
7299
7299
|
let O1 = 0;
|
|
7300
7300
|
class ti extends Es {
|
|
7301
7301
|
/**
|
|
7302
7302
|
* Constructs a new material.
|
|
7303
7303
|
*/
|
|
7304
7304
|
constructor() {
|
|
7305
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: O1++ }), this.uuid = gi(), this.name = "", this.type = "Material", this.blending = Zs, this.side = ai, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = pl, this.blendDst = ml, this.blendEquation = vs, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new
|
|
7305
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: O1++ }), this.uuid = gi(), this.name = "", this.type = "Material", this.blending = Zs, this.side = ai, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = pl, this.blendDst = ml, this.blendEquation = vs, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new Ct(0, 0, 0), this.blendAlpha = 0, this.depthFunc = nr, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = ih, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Cs, this.stencilZFail = Cs, this.stencilZPass = Cs, 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;
|
|
7306
7306
|
}
|
|
7307
7307
|
/**
|
|
7308
7308
|
* Sets the alpha value to be used when running an alpha test. The material
|
|
@@ -7474,7 +7474,7 @@ class rs extends ti {
|
|
|
7474
7474
|
* by {@link Color#set}.
|
|
7475
7475
|
*/
|
|
7476
7476
|
constructor(e) {
|
|
7477
|
-
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new
|
|
7477
|
+
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new Ct(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 zn(), this.combine = oo, 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);
|
|
7478
7478
|
}
|
|
7479
7479
|
copy(e) {
|
|
7480
7480
|
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;
|
|
@@ -8538,7 +8538,7 @@ class as extends mn {
|
|
|
8538
8538
|
g("z", "y", "x", -1, -1, n, t, e, o, r, 0), g("z", "y", "x", 1, -1, n, t, -e, o, r, 1), g("x", "z", "y", 1, 1, e, n, t, i, o, 2), g("x", "z", "y", 1, -1, e, n, -t, i, o, 3), g("x", "y", "z", 1, -1, e, t, n, i, r, 4), g("x", "y", "z", -1, -1, e, t, -n, i, r, 5), this.setIndex(l), this.setAttribute("position", new Ot(c, 3)), this.setAttribute("normal", new Ot(d, 3)), this.setAttribute("uv", new Ot(m, 2));
|
|
8539
8539
|
function g(_, p, f, v, y, b, D, T, C, L, A) {
|
|
8540
8540
|
const S = b / C, P = D / L, N = b / 2, V = D / 2, Z = T / 2, se = C + 1, H = L + 1;
|
|
8541
|
-
let ae = 0,
|
|
8541
|
+
let ae = 0, J = 0;
|
|
8542
8542
|
const de = new I();
|
|
8543
8543
|
for (let xe = 0; xe < H; xe++) {
|
|
8544
8544
|
const ve = xe * P - V;
|
|
@@ -8550,9 +8550,9 @@ class as extends mn {
|
|
|
8550
8550
|
for (let xe = 0; xe < L; xe++)
|
|
8551
8551
|
for (let ve = 0; ve < C; ve++) {
|
|
8552
8552
|
const ue = u + ve + se * xe, ie = u + ve + se * (xe + 1), G = u + (ve + 1) + se * (xe + 1), X = u + (ve + 1) + se * xe;
|
|
8553
|
-
l.push(ue, ie, X), l.push(ie, G, X),
|
|
8553
|
+
l.push(ue, ie, X), l.push(ie, G, X), J += 6;
|
|
8554
8554
|
}
|
|
8555
|
-
a.addGroup(h,
|
|
8555
|
+
a.addGroup(h, J, A), h += J, u += ae;
|
|
8556
8556
|
}
|
|
8557
8557
|
}
|
|
8558
8558
|
copy(e) {
|
|
@@ -9588,7 +9588,7 @@ class ho extends ti {
|
|
|
9588
9588
|
* by {@link Color#set}.
|
|
9589
9589
|
*/
|
|
9590
9590
|
constructor(e) {
|
|
9591
|
-
super(), this.isSpriteMaterial = !0, this.type = "SpriteMaterial", this.color = new
|
|
9591
|
+
super(), this.isSpriteMaterial = !0, this.type = "SpriteMaterial", this.color = new Ct(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.fog = !0, this.setValues(e);
|
|
9592
9592
|
}
|
|
9593
9593
|
copy(e) {
|
|
9594
9594
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.rotation = e.rotation, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
@@ -10437,7 +10437,7 @@ class zi extends ti {
|
|
|
10437
10437
|
* by {@link Color#set}.
|
|
10438
10438
|
*/
|
|
10439
10439
|
constructor(e) {
|
|
10440
|
-
super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new
|
|
10440
|
+
super(), this.isLineBasicMaterial = !0, this.type = "LineBasicMaterial", this.color = new Ct(16777215), this.map = null, this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.fog = !0, this.setValues(e);
|
|
10441
10441
|
}
|
|
10442
10442
|
copy(e) {
|
|
10443
10443
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.linewidth = e.linewidth, this.linecap = e.linecap, this.linejoin = e.linejoin, this.fog = e.fog, this;
|
|
@@ -10578,7 +10578,7 @@ class Qi extends ti {
|
|
|
10578
10578
|
* by {@link Color#set}.
|
|
10579
10579
|
*/
|
|
10580
10580
|
constructor(e) {
|
|
10581
|
-
super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new
|
|
10581
|
+
super(), this.isPointsMaterial = !0, this.type = "PointsMaterial", this.color = new Ct(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.fog = !0, this.setValues(e);
|
|
10582
10582
|
}
|
|
10583
10583
|
copy(e) {
|
|
10584
10584
|
return super.copy(e), this.color.copy(e.color), this.map = e.map, this.alphaMap = e.alphaMap, this.size = e.size, this.sizeAttenuation = e.sizeAttenuation, this.fog = e.fog, this;
|
|
@@ -11726,7 +11726,7 @@ class _d extends ti {
|
|
|
11726
11726
|
* by {@link Color#set}.
|
|
11727
11727
|
*/
|
|
11728
11728
|
constructor(e) {
|
|
11729
|
-
super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new
|
|
11729
|
+
super(), this.isShadowMaterial = !0, this.type = "ShadowMaterial", this.color = new Ct(0), this.transparent = !0, this.fog = !0, this.setValues(e);
|
|
11730
11730
|
}
|
|
11731
11731
|
copy(e) {
|
|
11732
11732
|
return super.copy(e), this.color.copy(e.color), this.fog = e.fog, this;
|
|
@@ -11743,7 +11743,7 @@ class Eu extends ti {
|
|
|
11743
11743
|
* by {@link Color#set}.
|
|
11744
11744
|
*/
|
|
11745
11745
|
constructor(e) {
|
|
11746
|
-
super(), this.isMeshStandardMaterial = !0, this.type = "MeshStandardMaterial", this.defines = { STANDARD: "" }, this.color = new
|
|
11746
|
+
super(), this.isMeshStandardMaterial = !0, this.type = "MeshStandardMaterial", this.defines = { STANDARD: "" }, this.color = new Ct(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Ct(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = co, this.normalScale = new Ke(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new zn(), this.envMapIntensity = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
11747
11747
|
}
|
|
11748
11748
|
copy(e) {
|
|
11749
11749
|
return super.copy(e), this.defines = { STANDARD: "" }, this.color.copy(e.color), this.roughness = e.roughness, this.metalness = e.metalness, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.roughnessMap = e.roughnessMap, this.metalnessMap = e.metalnessMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.envMapRotation.copy(e.envMapRotation), this.envMapIntensity = e.envMapIntensity, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
@@ -11760,7 +11760,7 @@ class Mn extends ti {
|
|
|
11760
11760
|
* by {@link Color#set}.
|
|
11761
11761
|
*/
|
|
11762
11762
|
constructor(e) {
|
|
11763
|
-
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new
|
|
11763
|
+
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new Ct(16777215), this.specular = new Ct(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Ct(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = co, this.normalScale = new Ke(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new zn(), this.combine = oo, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
11764
11764
|
}
|
|
11765
11765
|
copy(e) {
|
|
11766
11766
|
return super.copy(e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, 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.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
@@ -11777,7 +11777,7 @@ class vd extends ti {
|
|
|
11777
11777
|
* by {@link Color#set}.
|
|
11778
11778
|
*/
|
|
11779
11779
|
constructor(e) {
|
|
11780
|
-
super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new
|
|
11780
|
+
super(), this.isMeshLambertMaterial = !0, this.type = "MeshLambertMaterial", this.color = new Ct(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new Ct(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = co, this.normalScale = new Ke(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new zn(), this.combine = oo, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
11781
11781
|
}
|
|
11782
11782
|
copy(e) {
|
|
11783
11783
|
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.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, 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.flatShading = e.flatShading, this.fog = e.fog, this;
|
|
@@ -13187,7 +13187,7 @@ class Hr extends fn {
|
|
|
13187
13187
|
* @param {number} [intensity=1] - The light's strength/intensity.
|
|
13188
13188
|
*/
|
|
13189
13189
|
constructor(e, t = 1) {
|
|
13190
|
-
super(), this.isLight = !0, this.type = "Light", this.color = new
|
|
13190
|
+
super(), this.isLight = !0, this.type = "Light", this.color = new Ct(e), this.intensity = t;
|
|
13191
13191
|
}
|
|
13192
13192
|
/**
|
|
13193
13193
|
* Frees the GPU-related resources allocated by this instance. Call this
|
|
@@ -13212,7 +13212,7 @@ class Dd extends Hr {
|
|
|
13212
13212
|
* @param {number} [intensity=1] - The light's strength/intensity.
|
|
13213
13213
|
*/
|
|
13214
13214
|
constructor(e, t, n) {
|
|
13215
|
-
super(e, n), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(fn.DEFAULT_UP), this.updateMatrix(), this.groundColor = new
|
|
13215
|
+
super(e, n), this.isHemisphereLight = !0, this.type = "HemisphereLight", this.position.copy(fn.DEFAULT_UP), this.updateMatrix(), this.groundColor = new Ct(t);
|
|
13216
13216
|
}
|
|
13217
13217
|
copy(e, t) {
|
|
13218
13218
|
return super.copy(e, t), this.groundColor.copy(e.groundColor), this;
|
|
@@ -14002,7 +14002,7 @@ class Hd extends io {
|
|
|
14002
14002
|
* @param {number|Color|string} [color2=0x888888] - The color of the lines of the grid.
|
|
14003
14003
|
*/
|
|
14004
14004
|
constructor(e = 10, t = 10, n = 4473924, i = 8947848) {
|
|
14005
|
-
n = new
|
|
14005
|
+
n = new Ct(n), i = new Ct(i);
|
|
14006
14006
|
const r = t / 2, o = e / t, a = e / 2, l = [], c = [];
|
|
14007
14007
|
for (let u = 0, h = 0, g = -a; u <= t; u++, g += o) {
|
|
14008
14008
|
l.push(-a, 0, g, a, 0, g), l.push(g, 0, -a, g, 0, a);
|
|
@@ -17967,7 +17967,7 @@ void main() {
|
|
|
17967
17967
|
sprite_frag: wm
|
|
17968
17968
|
}, $e = {
|
|
17969
17969
|
common: {
|
|
17970
|
-
diffuse: { value: /* @__PURE__ */ new
|
|
17970
|
+
diffuse: { value: /* @__PURE__ */ new Ct(16777215) },
|
|
17971
17971
|
opacity: { value: 1 },
|
|
17972
17972
|
map: { value: null },
|
|
17973
17973
|
mapTransform: { value: /* @__PURE__ */ new Gt() },
|
|
@@ -18035,7 +18035,7 @@ void main() {
|
|
|
18035
18035
|
fogDensity: { value: 25e-5 },
|
|
18036
18036
|
fogNear: { value: 1 },
|
|
18037
18037
|
fogFar: { value: 2e3 },
|
|
18038
|
-
fogColor: { value: /* @__PURE__ */ new
|
|
18038
|
+
fogColor: { value: /* @__PURE__ */ new Ct(16777215) }
|
|
18039
18039
|
},
|
|
18040
18040
|
lights: {
|
|
18041
18041
|
ambientLightColor: { value: [] },
|
|
@@ -18105,7 +18105,7 @@ void main() {
|
|
|
18105
18105
|
ltc_2: { value: null }
|
|
18106
18106
|
},
|
|
18107
18107
|
points: {
|
|
18108
|
-
diffuse: { value: /* @__PURE__ */ new
|
|
18108
|
+
diffuse: { value: /* @__PURE__ */ new Ct(16777215) },
|
|
18109
18109
|
opacity: { value: 1 },
|
|
18110
18110
|
size: { value: 1 },
|
|
18111
18111
|
scale: { value: 1 },
|
|
@@ -18116,7 +18116,7 @@ void main() {
|
|
|
18116
18116
|
uvTransform: { value: /* @__PURE__ */ new Gt() }
|
|
18117
18117
|
},
|
|
18118
18118
|
sprite: {
|
|
18119
|
-
diffuse: { value: /* @__PURE__ */ new
|
|
18119
|
+
diffuse: { value: /* @__PURE__ */ new Ct(16777215) },
|
|
18120
18120
|
opacity: { value: 1 },
|
|
18121
18121
|
center: { value: /* @__PURE__ */ new Ke(0.5, 0.5) },
|
|
18122
18122
|
rotation: { value: 0 },
|
|
@@ -18153,7 +18153,7 @@ void main() {
|
|
|
18153
18153
|
$e.fog,
|
|
18154
18154
|
$e.lights,
|
|
18155
18155
|
{
|
|
18156
|
-
emissive: { value: /* @__PURE__ */ new
|
|
18156
|
+
emissive: { value: /* @__PURE__ */ new Ct(0) }
|
|
18157
18157
|
}
|
|
18158
18158
|
]),
|
|
18159
18159
|
vertexShader: Xt.meshlambert_vert,
|
|
@@ -18173,8 +18173,8 @@ void main() {
|
|
|
18173
18173
|
$e.fog,
|
|
18174
18174
|
$e.lights,
|
|
18175
18175
|
{
|
|
18176
|
-
emissive: { value: /* @__PURE__ */ new
|
|
18177
|
-
specular: { value: /* @__PURE__ */ new
|
|
18176
|
+
emissive: { value: /* @__PURE__ */ new Ct(0) },
|
|
18177
|
+
specular: { value: /* @__PURE__ */ new Ct(1118481) },
|
|
18178
18178
|
shininess: { value: 30 }
|
|
18179
18179
|
}
|
|
18180
18180
|
]),
|
|
@@ -18196,7 +18196,7 @@ void main() {
|
|
|
18196
18196
|
$e.fog,
|
|
18197
18197
|
$e.lights,
|
|
18198
18198
|
{
|
|
18199
|
-
emissive: { value: /* @__PURE__ */ new
|
|
18199
|
+
emissive: { value: /* @__PURE__ */ new Ct(0) },
|
|
18200
18200
|
roughness: { value: 1 },
|
|
18201
18201
|
metalness: { value: 0 },
|
|
18202
18202
|
envMapIntensity: { value: 1 }
|
|
@@ -18218,7 +18218,7 @@ void main() {
|
|
|
18218
18218
|
$e.fog,
|
|
18219
18219
|
$e.lights,
|
|
18220
18220
|
{
|
|
18221
|
-
emissive: { value: /* @__PURE__ */ new
|
|
18221
|
+
emissive: { value: /* @__PURE__ */ new Ct(0) }
|
|
18222
18222
|
}
|
|
18223
18223
|
]),
|
|
18224
18224
|
vertexShader: Xt.meshtoon_vert,
|
|
@@ -18342,7 +18342,7 @@ void main() {
|
|
|
18342
18342
|
$e.lights,
|
|
18343
18343
|
$e.fog,
|
|
18344
18344
|
{
|
|
18345
|
-
color: { value: /* @__PURE__ */ new
|
|
18345
|
+
color: { value: /* @__PURE__ */ new Ct(0) },
|
|
18346
18346
|
opacity: { value: 1 }
|
|
18347
18347
|
}
|
|
18348
18348
|
]),
|
|
@@ -18373,7 +18373,7 @@ $n.physical = {
|
|
|
18373
18373
|
iridescenceThicknessMap: { value: null },
|
|
18374
18374
|
iridescenceThicknessMapTransform: { value: /* @__PURE__ */ new Gt() },
|
|
18375
18375
|
sheen: { value: 0 },
|
|
18376
|
-
sheenColor: { value: /* @__PURE__ */ new
|
|
18376
|
+
sheenColor: { value: /* @__PURE__ */ new Ct(0) },
|
|
18377
18377
|
sheenColorMap: { value: null },
|
|
18378
18378
|
sheenColorMapTransform: { value: /* @__PURE__ */ new Gt() },
|
|
18379
18379
|
sheenRoughness: { value: 1 },
|
|
@@ -18388,8 +18388,8 @@ $n.physical = {
|
|
|
18388
18388
|
thicknessMap: { value: null },
|
|
18389
18389
|
thicknessMapTransform: { value: /* @__PURE__ */ new Gt() },
|
|
18390
18390
|
attenuationDistance: { value: 0 },
|
|
18391
|
-
attenuationColor: { value: /* @__PURE__ */ new
|
|
18392
|
-
specularColor: { value: /* @__PURE__ */ new
|
|
18391
|
+
attenuationColor: { value: /* @__PURE__ */ new Ct(0) },
|
|
18392
|
+
specularColor: { value: /* @__PURE__ */ new Ct(1, 1, 1) },
|
|
18393
18393
|
specularColorMap: { value: null },
|
|
18394
18394
|
specularColorMapTransform: { value: /* @__PURE__ */ new Gt() },
|
|
18395
18395
|
specularIntensity: { value: 1 },
|
|
@@ -18405,7 +18405,7 @@ $n.physical = {
|
|
|
18405
18405
|
};
|
|
18406
18406
|
const Aa = { r: 0, b: 0, g: 0 }, us = /* @__PURE__ */ new zn(), Em = /* @__PURE__ */ new Tt();
|
|
18407
18407
|
function Tm(s, e, t, n, i, r, o) {
|
|
18408
|
-
const a = new
|
|
18408
|
+
const a = new Ct(0);
|
|
18409
18409
|
let l = r === !0 ? 0 : 1, c, d, m = null, u = 0, h = null;
|
|
18410
18410
|
function g(y) {
|
|
18411
18411
|
let b = y.isScene === !0 ? y.background : null;
|
|
@@ -18529,11 +18529,11 @@ function Cm(s, e) {
|
|
|
18529
18529
|
const Z = r.attributes, se = P.attributes;
|
|
18530
18530
|
let H = 0;
|
|
18531
18531
|
const ae = N.getAttributes();
|
|
18532
|
-
for (const
|
|
18533
|
-
if (ae[
|
|
18534
|
-
const xe = Z[
|
|
18535
|
-
let ve = se[
|
|
18536
|
-
if (ve === void 0 && (
|
|
18532
|
+
for (const J in ae)
|
|
18533
|
+
if (ae[J].location >= 0) {
|
|
18534
|
+
const xe = Z[J];
|
|
18535
|
+
let ve = se[J];
|
|
18536
|
+
if (ve === void 0 && (J === "instanceMatrix" && S.instanceMatrix && (ve = S.instanceMatrix), J === "instanceColor" && S.instanceColor && (ve = S.instanceColor)), xe === void 0 || xe.attribute !== ve || ve && xe.data !== ve.data) return !0;
|
|
18537
18537
|
H++;
|
|
18538
18538
|
}
|
|
18539
18539
|
return r.attributesNum !== H || r.index !== V;
|
|
@@ -18542,12 +18542,12 @@ function Cm(s, e) {
|
|
|
18542
18542
|
const Z = {}, se = P.attributes;
|
|
18543
18543
|
let H = 0;
|
|
18544
18544
|
const ae = N.getAttributes();
|
|
18545
|
-
for (const
|
|
18546
|
-
if (ae[
|
|
18547
|
-
let xe = se[
|
|
18548
|
-
xe === void 0 && (
|
|
18545
|
+
for (const J in ae)
|
|
18546
|
+
if (ae[J].location >= 0) {
|
|
18547
|
+
let xe = se[J];
|
|
18548
|
+
xe === void 0 && (J === "instanceMatrix" && S.instanceMatrix && (xe = S.instanceMatrix), J === "instanceColor" && S.instanceColor && (xe = S.instanceColor));
|
|
18549
18549
|
const ve = {};
|
|
18550
|
-
ve.attribute = xe, xe && xe.data && (ve.data = xe.data), Z[
|
|
18550
|
+
ve.attribute = xe, xe && xe.data && (ve.data = xe.data), Z[J] = ve, H++;
|
|
18551
18551
|
}
|
|
18552
18552
|
r.attributes = Z, r.attributesNum = H, r.index = V;
|
|
18553
18553
|
}
|
|
@@ -18575,8 +18575,8 @@ function Cm(s, e) {
|
|
|
18575
18575
|
_();
|
|
18576
18576
|
const Z = V.attributes, se = N.getAttributes(), H = P.defaultAttributeValues;
|
|
18577
18577
|
for (const ae in se) {
|
|
18578
|
-
const
|
|
18579
|
-
if (
|
|
18578
|
+
const J = se[ae];
|
|
18579
|
+
if (J.location >= 0) {
|
|
18580
18580
|
let de = Z[ae];
|
|
18581
18581
|
if (de === void 0 && (ae === "instanceMatrix" && S.instanceMatrix && (de = S.instanceMatrix), ae === "instanceColor" && S.instanceColor && (de = S.instanceColor)), de !== void 0) {
|
|
18582
18582
|
const xe = de.normalized, ve = de.itemSize, ue = e.get(de);
|
|
@@ -18585,40 +18585,40 @@ function Cm(s, e) {
|
|
|
18585
18585
|
if (de.isInterleavedBufferAttribute) {
|
|
18586
18586
|
const Q = de.data, le = Q.stride, j = de.offset;
|
|
18587
18587
|
if (Q.isInstancedInterleavedBuffer) {
|
|
18588
|
-
for (let ce = 0; ce <
|
|
18589
|
-
f(
|
|
18588
|
+
for (let ce = 0; ce < J.locationSize; ce++)
|
|
18589
|
+
f(J.location + ce, Q.meshPerAttribute);
|
|
18590
18590
|
S.isInstancedMesh !== !0 && V._maxInstanceCount === void 0 && (V._maxInstanceCount = Q.meshPerAttribute * Q.count);
|
|
18591
18591
|
} else
|
|
18592
|
-
for (let ce = 0; ce <
|
|
18593
|
-
p(
|
|
18592
|
+
for (let ce = 0; ce < J.locationSize; ce++)
|
|
18593
|
+
p(J.location + ce);
|
|
18594
18594
|
s.bindBuffer(s.ARRAY_BUFFER, ie);
|
|
18595
|
-
for (let ce = 0; ce <
|
|
18595
|
+
for (let ce = 0; ce < J.locationSize; ce++)
|
|
18596
18596
|
y(
|
|
18597
|
-
|
|
18598
|
-
ve /
|
|
18597
|
+
J.location + ce,
|
|
18598
|
+
ve / J.locationSize,
|
|
18599
18599
|
G,
|
|
18600
18600
|
xe,
|
|
18601
18601
|
le * X,
|
|
18602
|
-
(j + ve /
|
|
18602
|
+
(j + ve / J.locationSize * ce) * X,
|
|
18603
18603
|
te
|
|
18604
18604
|
);
|
|
18605
18605
|
} else {
|
|
18606
18606
|
if (de.isInstancedBufferAttribute) {
|
|
18607
|
-
for (let Q = 0; Q <
|
|
18608
|
-
f(
|
|
18607
|
+
for (let Q = 0; Q < J.locationSize; Q++)
|
|
18608
|
+
f(J.location + Q, de.meshPerAttribute);
|
|
18609
18609
|
S.isInstancedMesh !== !0 && V._maxInstanceCount === void 0 && (V._maxInstanceCount = de.meshPerAttribute * de.count);
|
|
18610
18610
|
} else
|
|
18611
|
-
for (let Q = 0; Q <
|
|
18612
|
-
p(
|
|
18611
|
+
for (let Q = 0; Q < J.locationSize; Q++)
|
|
18612
|
+
p(J.location + Q);
|
|
18613
18613
|
s.bindBuffer(s.ARRAY_BUFFER, ie);
|
|
18614
|
-
for (let Q = 0; Q <
|
|
18614
|
+
for (let Q = 0; Q < J.locationSize; Q++)
|
|
18615
18615
|
y(
|
|
18616
|
-
|
|
18617
|
-
ve /
|
|
18616
|
+
J.location + Q,
|
|
18617
|
+
ve / J.locationSize,
|
|
18618
18618
|
G,
|
|
18619
18619
|
xe,
|
|
18620
18620
|
ve * X,
|
|
18621
|
-
ve /
|
|
18621
|
+
ve / J.locationSize * Q * X,
|
|
18622
18622
|
te
|
|
18623
18623
|
);
|
|
18624
18624
|
}
|
|
@@ -18627,16 +18627,16 @@ function Cm(s, e) {
|
|
|
18627
18627
|
if (xe !== void 0)
|
|
18628
18628
|
switch (xe.length) {
|
|
18629
18629
|
case 2:
|
|
18630
|
-
s.vertexAttrib2fv(
|
|
18630
|
+
s.vertexAttrib2fv(J.location, xe);
|
|
18631
18631
|
break;
|
|
18632
18632
|
case 3:
|
|
18633
|
-
s.vertexAttrib3fv(
|
|
18633
|
+
s.vertexAttrib3fv(J.location, xe);
|
|
18634
18634
|
break;
|
|
18635
18635
|
case 4:
|
|
18636
|
-
s.vertexAttrib4fv(
|
|
18636
|
+
s.vertexAttrib4fv(J.location, xe);
|
|
18637
18637
|
break;
|
|
18638
18638
|
default:
|
|
18639
|
-
s.vertexAttrib1fv(
|
|
18639
|
+
s.vertexAttrib1fv(J.location, xe);
|
|
18640
18640
|
}
|
|
18641
18641
|
}
|
|
18642
18642
|
}
|
|
@@ -18866,7 +18866,7 @@ function Dm(s) {
|
|
|
18866
18866
|
dispose: r
|
|
18867
18867
|
};
|
|
18868
18868
|
}
|
|
18869
|
-
const Js = 4, Jh = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ys = 20, Zo = /* @__PURE__ */ new mo(), Kh = /* @__PURE__ */ new
|
|
18869
|
+
const Js = 4, Jh = [0.125, 0.215, 0.35, 0.446, 0.526, 0.582], ys = 20, Zo = /* @__PURE__ */ new mo(), Kh = /* @__PURE__ */ new Ct();
|
|
18870
18870
|
let Qo = null, el = 0, tl = 0, nl = !1;
|
|
18871
18871
|
const ms = (1 + Math.sqrt(5)) / 2, Xs = 1 / ms, Zh = [
|
|
18872
18872
|
/* @__PURE__ */ new I(-ms, Xs, 0),
|
|
@@ -20637,7 +20637,7 @@ function Q3(s, e, t, n) {
|
|
|
20637
20637
|
if (se = !1, typeof s.debug.onShaderError == "function")
|
|
20638
20638
|
s.debug.onShaderError(i, _, D, T);
|
|
20639
20639
|
else {
|
|
20640
|
-
const ae = d0(i, D, "vertex"),
|
|
20640
|
+
const ae = d0(i, D, "vertex"), J = d0(i, T, "fragment");
|
|
20641
20641
|
console.error(
|
|
20642
20642
|
"THREE.WebGLProgram: Shader Error " + i.getError() + " - VALIDATE_STATUS " + i.getProgramParameter(_, i.VALIDATE_STATUS) + `
|
|
20643
20643
|
|
|
@@ -20646,7 +20646,7 @@ Material Type: ` + P.type + `
|
|
|
20646
20646
|
|
|
20647
20647
|
Program Info Log: ` + N + `
|
|
20648
20648
|
` + ae + `
|
|
20649
|
-
` +
|
|
20649
|
+
` + J
|
|
20650
20650
|
);
|
|
20651
20651
|
}
|
|
20652
20652
|
else N !== "" ? console.warn("THREE.WebGLProgram: Program Info Log:", N) : (V === "" || Z === "") && (H = !1);
|
|
@@ -20744,7 +20744,7 @@ function i4(s, e, t, n, i, r, o) {
|
|
|
20744
20744
|
return c.add(A), A === 0 ? "uv" : `uv${A}`;
|
|
20745
20745
|
}
|
|
20746
20746
|
function p(A, S, P, N, V) {
|
|
20747
|
-
const Z = N.fog, se = V.geometry, H = A.isMeshStandardMaterial ? N.environment : null, ae = (A.isMeshStandardMaterial ? t : e).get(A.envMap || H),
|
|
20747
|
+
const Z = N.fog, se = V.geometry, H = A.isMeshStandardMaterial ? N.environment : null, ae = (A.isMeshStandardMaterial ? t : e).get(A.envMap || H), J = ae && ae.mapping === lo ? ae.image.height : null, de = g[A.type];
|
|
20748
20748
|
A.precision !== null && (h = i.getMaxPrecision(A.precision), h !== A.precision && console.warn("THREE.WebGLProgram.getParameters:", A.precision, "not supported, using", h, "instead."));
|
|
20749
20749
|
const xe = se.morphAttributes.position || se.morphAttributes.normal || se.morphAttributes.color, ve = xe !== void 0 ? xe.length : 0;
|
|
20750
20750
|
let ue = 0;
|
|
@@ -20755,7 +20755,7 @@ function i4(s, e, t, n, i, r, o) {
|
|
|
20755
20755
|
ie = Bt.vertexShader, G = Bt.fragmentShader;
|
|
20756
20756
|
} else
|
|
20757
20757
|
ie = A.vertexShader, G = A.fragmentShader, l.update(A), X = l.getVertexShaderID(A), te = l.getFragmentShaderID(A);
|
|
20758
|
-
const Q = s.getRenderTarget(), le = s.state.buffers.depth.getReversed(), j = V.isInstancedMesh === !0, ce = V.isBatchedMesh === !0,
|
|
20758
|
+
const Q = s.getRenderTarget(), le = s.state.buffers.depth.getReversed(), j = V.isInstancedMesh === !0, ce = V.isBatchedMesh === !0, be = !!A.map, Ye = !!A.matcap, ke = !!ae, z = !!A.aoMap, Mt = !!A.lightMap, ht = !!A.bumpMap, nt = !!A.normalMap, Fe = !!A.displacementMap, Ze = !!A.emissiveMap, Re = !!A.metalnessMap, st = !!A.roughnessMap, nn = A.anisotropy > 0, B = A.clearcoat > 0, E = A.dispersion > 0, re = A.iridescence > 0, ye = A.sheen > 0, Ce = A.transmission > 0, fe = nn && !!A.anisotropyMap, _t = B && !!A.clearcoatMap, Ge = B && !!A.clearcoatNormalMap, ft = B && !!A.clearcoatRoughnessMap, gt = re && !!A.iridescenceMap, Pe = re && !!A.iridescenceThicknessMap, rt = ye && !!A.sheenColorMap, Pt = ye && !!A.sheenRoughnessMap, bt = !!A.specularMap, qe = !!A.specularColorMap, Ut = !!A.specularIntensityMap, $ = Ce && !!A.transmissionMap, Qe = Ce && !!A.thicknessMap, De = !!A.gradientMap, ot = !!A.alphaMap, Ne = A.alphaTest > 0, Me = !!A.alphaHash, ut = !!A.extensions;
|
|
20759
20759
|
let Nt = ns;
|
|
20760
20760
|
A.toneMapped && (Q === null || Q.isXRRenderTarget === !0) && (Nt = s.toneMapping);
|
|
20761
20761
|
const rn = {
|
|
@@ -20778,11 +20778,11 @@ function i4(s, e, t, n, i, r, o) {
|
|
|
20778
20778
|
supportsVertexTextures: u,
|
|
20779
20779
|
outputColorSpace: Q === null ? s.outputColorSpace : Q.isXRRenderTarget === !0 ? Q.texture.colorSpace : rr,
|
|
20780
20780
|
alphaToCoverage: !!A.alphaToCoverage,
|
|
20781
|
-
map:
|
|
20781
|
+
map: be,
|
|
20782
20782
|
matcap: Ye,
|
|
20783
20783
|
envMap: ke,
|
|
20784
20784
|
envMapMode: ke && ae.mapping,
|
|
20785
|
-
envMapCubeUVHeight:
|
|
20785
|
+
envMapCubeUVHeight: J,
|
|
20786
20786
|
aoMap: z,
|
|
20787
20787
|
lightMap: Mt,
|
|
20788
20788
|
bumpMap: ht,
|
|
@@ -20819,7 +20819,7 @@ function i4(s, e, t, n, i, r, o) {
|
|
|
20819
20819
|
alphaHash: Me,
|
|
20820
20820
|
combine: A.combine,
|
|
20821
20821
|
//
|
|
20822
|
-
mapUv:
|
|
20822
|
+
mapUv: be && _(A.map.channel),
|
|
20823
20823
|
aoMapUv: z && _(A.aoMap.channel),
|
|
20824
20824
|
lightMapUv: Mt && _(A.lightMap.channel),
|
|
20825
20825
|
bumpMapUv: ht && _(A.bumpMap.channel),
|
|
@@ -20846,7 +20846,7 @@ function i4(s, e, t, n, i, r, o) {
|
|
|
20846
20846
|
vertexTangents: !!se.attributes.tangent && (nt || nn),
|
|
20847
20847
|
vertexColors: A.vertexColors,
|
|
20848
20848
|
vertexAlphas: A.vertexColors === !0 && !!se.attributes.color && se.attributes.color.itemSize === 4,
|
|
20849
|
-
pointsUvs: V.isPoints === !0 && !!se.attributes.uv && (
|
|
20849
|
+
pointsUvs: V.isPoints === !0 && !!se.attributes.uv && (be || ot),
|
|
20850
20850
|
fog: !!Z,
|
|
20851
20851
|
useFog: A.fog === !0,
|
|
20852
20852
|
fogExp2: !!Z && Z.isFogExp2,
|
|
@@ -20877,7 +20877,7 @@ function i4(s, e, t, n, i, r, o) {
|
|
|
20877
20877
|
shadowMapEnabled: s.shadowMap.enabled && P.length > 0,
|
|
20878
20878
|
shadowMapType: s.shadowMap.type,
|
|
20879
20879
|
toneMapping: Nt,
|
|
20880
|
-
decodeVideoTexture:
|
|
20880
|
+
decodeVideoTexture: be && A.map.isVideoTexture === !0 && jt.getTransfer(A.map.colorSpace) === un,
|
|
20881
20881
|
decodeVideoTextureEmissive: Ze && A.emissiveMap.isVideoTexture === !0 && jt.getTransfer(A.emissiveMap.colorSpace) === un,
|
|
20882
20882
|
premultipliedAlpha: A.premultipliedAlpha,
|
|
20883
20883
|
doubleSided: A.side === bn,
|
|
@@ -21057,14 +21057,14 @@ function o4() {
|
|
|
21057
21057
|
case "DirectionalLight":
|
|
21058
21058
|
t = {
|
|
21059
21059
|
direction: new I(),
|
|
21060
|
-
color: new
|
|
21060
|
+
color: new Ct()
|
|
21061
21061
|
};
|
|
21062
21062
|
break;
|
|
21063
21063
|
case "SpotLight":
|
|
21064
21064
|
t = {
|
|
21065
21065
|
position: new I(),
|
|
21066
21066
|
direction: new I(),
|
|
21067
|
-
color: new
|
|
21067
|
+
color: new Ct(),
|
|
21068
21068
|
distance: 0,
|
|
21069
21069
|
coneCos: 0,
|
|
21070
21070
|
penumbraCos: 0,
|
|
@@ -21074,7 +21074,7 @@ function o4() {
|
|
|
21074
21074
|
case "PointLight":
|
|
21075
21075
|
t = {
|
|
21076
21076
|
position: new I(),
|
|
21077
|
-
color: new
|
|
21077
|
+
color: new Ct(),
|
|
21078
21078
|
distance: 0,
|
|
21079
21079
|
decay: 0
|
|
21080
21080
|
};
|
|
@@ -21082,13 +21082,13 @@ function o4() {
|
|
|
21082
21082
|
case "HemisphereLight":
|
|
21083
21083
|
t = {
|
|
21084
21084
|
direction: new I(),
|
|
21085
|
-
skyColor: new
|
|
21086
|
-
groundColor: new
|
|
21085
|
+
skyColor: new Ct(),
|
|
21086
|
+
groundColor: new Ct()
|
|
21087
21087
|
};
|
|
21088
21088
|
break;
|
|
21089
21089
|
case "RectAreaLight":
|
|
21090
21090
|
t = {
|
|
21091
|
-
color: new
|
|
21091
|
+
color: new Ct(),
|
|
21092
21092
|
position: new I(),
|
|
21093
21093
|
halfWidth: new I(),
|
|
21094
21094
|
halfHeight: new I()
|
|
@@ -21200,8 +21200,8 @@ function u4(s) {
|
|
|
21200
21200
|
} else if (P.isDirectionalLight) {
|
|
21201
21201
|
const H = e.get(P);
|
|
21202
21202
|
if (H.color.copy(P.color).multiplyScalar(P.intensity), P.castShadow) {
|
|
21203
|
-
const ae = P.shadow,
|
|
21204
|
-
|
|
21203
|
+
const ae = P.shadow, J = t.get(P);
|
|
21204
|
+
J.shadowIntensity = ae.intensity, J.shadowBias = ae.bias, J.shadowNormalBias = ae.normalBias, J.shadowRadius = ae.radius, J.shadowMapSize = ae.mapSize, n.directionalShadow[h] = J, n.directionalShadowMap[h] = se, n.directionalShadowMatrix[h] = P.shadow.matrix, v++;
|
|
21205
21205
|
}
|
|
21206
21206
|
n.directional[h] = H, h++;
|
|
21207
21207
|
} else if (P.isSpotLight) {
|
|
@@ -21209,8 +21209,8 @@ function u4(s) {
|
|
|
21209
21209
|
H.position.setFromMatrixPosition(P.matrixWorld), H.color.copy(N).multiplyScalar(V), H.distance = Z, H.coneCos = Math.cos(P.angle), H.penumbraCos = Math.cos(P.angle * (1 - P.penumbra)), H.decay = P.decay, n.spot[_] = H;
|
|
21210
21210
|
const ae = P.shadow;
|
|
21211
21211
|
if (P.map && (n.spotLightMap[D] = P.map, D++, ae.updateMatrices(P), P.castShadow && T++), n.spotLightMatrix[_] = ae.matrix, P.castShadow) {
|
|
21212
|
-
const
|
|
21213
|
-
|
|
21212
|
+
const J = t.get(P);
|
|
21213
|
+
J.shadowIntensity = ae.intensity, J.shadowBias = ae.bias, J.shadowNormalBias = ae.normalBias, J.shadowRadius = ae.radius, J.shadowMapSize = ae.mapSize, n.spotShadow[_] = J, n.spotShadowMap[_] = se, b++;
|
|
21214
21214
|
}
|
|
21215
21215
|
_++;
|
|
21216
21216
|
} else if (P.isRectAreaLight) {
|
|
@@ -21219,8 +21219,8 @@ function u4(s) {
|
|
|
21219
21219
|
} else if (P.isPointLight) {
|
|
21220
21220
|
const H = e.get(P);
|
|
21221
21221
|
if (H.color.copy(P.color).multiplyScalar(P.intensity), H.distance = P.distance, H.decay = P.decay, P.castShadow) {
|
|
21222
|
-
const ae = P.shadow,
|
|
21223
|
-
|
|
21222
|
+
const ae = P.shadow, J = t.get(P);
|
|
21223
|
+
J.shadowIntensity = ae.intensity, J.shadowBias = ae.bias, J.shadowNormalBias = ae.normalBias, J.shadowRadius = ae.radius, J.shadowMapSize = ae.mapSize, J.shadowCameraNear = ae.camera.near, J.shadowCameraFar = ae.camera.far, n.pointShadow[g] = J, n.pointShadowMap[g] = se, n.pointShadowMatrix[g] = P.shadow.matrix, y++;
|
|
21224
21224
|
}
|
|
21225
21225
|
n.point[g] = H, g++;
|
|
21226
21226
|
} else if (P.isHemisphereLight) {
|
|
@@ -21370,30 +21370,30 @@ function m4(s, e, t) {
|
|
|
21370
21370
|
N.setBlending(ts), N.buffers.color.setClear(1, 1, 1, 1), N.buffers.depth.setTest(!0), N.setScissorTest(!1);
|
|
21371
21371
|
const V = f !== Fi && this.type === Fi, Z = f === Fi && this.type !== Fi;
|
|
21372
21372
|
for (let se = 0, H = T.length; se < H; se++) {
|
|
21373
|
-
const ae = T[se],
|
|
21374
|
-
if (
|
|
21373
|
+
const ae = T[se], J = ae.shadow;
|
|
21374
|
+
if (J === void 0) {
|
|
21375
21375
|
console.warn("THREE.WebGLShadowMap:", ae, "has no shadow.");
|
|
21376
21376
|
continue;
|
|
21377
21377
|
}
|
|
21378
|
-
if (
|
|
21379
|
-
i.copy(
|
|
21380
|
-
const de =
|
|
21381
|
-
if (i.multiply(de), r.copy(
|
|
21378
|
+
if (J.autoUpdate === !1 && J.needsUpdate === !1) continue;
|
|
21379
|
+
i.copy(J.mapSize);
|
|
21380
|
+
const de = J.getFrameExtents();
|
|
21381
|
+
if (i.multiply(de), r.copy(J.mapSize), (i.x > d || i.y > d) && (i.x > d && (r.x = Math.floor(d / de.x), i.x = r.x * de.x, J.mapSize.x = r.x), i.y > d && (r.y = Math.floor(d / de.y), i.y = r.y * de.y, J.mapSize.y = r.y)), J.map === null || V === !0 || Z === !0) {
|
|
21382
21382
|
const ve = this.type !== Fi ? { minFilter: ei, magFilter: ei } : {};
|
|
21383
|
-
|
|
21383
|
+
J.map !== null && J.map.dispose(), J.map = new ws(i.x, i.y, ve), J.map.texture.name = ae.name + ".shadowMap", J.camera.updateProjectionMatrix();
|
|
21384
21384
|
}
|
|
21385
|
-
s.setRenderTarget(
|
|
21386
|
-
const xe =
|
|
21385
|
+
s.setRenderTarget(J.map), s.clear();
|
|
21386
|
+
const xe = J.getViewportCount();
|
|
21387
21387
|
for (let ve = 0; ve < xe; ve++) {
|
|
21388
|
-
const ue =
|
|
21388
|
+
const ue = J.getViewport(ve);
|
|
21389
21389
|
o.set(
|
|
21390
21390
|
r.x * ue.x,
|
|
21391
21391
|
r.y * ue.y,
|
|
21392
21392
|
r.x * ue.z,
|
|
21393
21393
|
r.y * ue.w
|
|
21394
|
-
), N.viewport(o),
|
|
21394
|
+
), N.viewport(o), J.updateMatrices(ae, ve), n = J.getFrustum(), b(C, L, J.camera, ae, this.type);
|
|
21395
21395
|
}
|
|
21396
|
-
|
|
21396
|
+
J.isPointLightShadow !== !0 && this.type === Fi && v(J, L), J.needsUpdate = !1;
|
|
21397
21397
|
}
|
|
21398
21398
|
f = this.type, p.needsUpdate = !1, s.setRenderTarget(A, S, P);
|
|
21399
21399
|
};
|
|
@@ -21427,10 +21427,10 @@ function m4(s, e, t) {
|
|
|
21427
21427
|
if (Array.isArray(Z)) {
|
|
21428
21428
|
const se = V.groups;
|
|
21429
21429
|
for (let H = 0, ae = se.length; H < ae; H++) {
|
|
21430
|
-
const
|
|
21430
|
+
const J = se[H], de = Z[J.materialIndex];
|
|
21431
21431
|
if (de && de.visible) {
|
|
21432
21432
|
const xe = y(T, de, A, S);
|
|
21433
|
-
T.onBeforeShadow(s, T, C, L, V, xe,
|
|
21433
|
+
T.onBeforeShadow(s, T, C, L, V, xe, J), s.renderBufferDirect(L, null, V, xe, T, J), T.onAfterShadow(s, T, C, L, V, xe, J);
|
|
21434
21434
|
}
|
|
21435
21435
|
}
|
|
21436
21436
|
} else if (Z.visible) {
|
|
@@ -21554,11 +21554,11 @@ function _4(s, e) {
|
|
|
21554
21554
|
setMask: function(Bt) {
|
|
21555
21555
|
Qe !== Bt && !$ && (s.stencilMask(Bt), Qe = Bt);
|
|
21556
21556
|
},
|
|
21557
|
-
setFunc: function(Bt,
|
|
21558
|
-
(De !== Bt || ot !==
|
|
21557
|
+
setFunc: function(Bt, K, q) {
|
|
21558
|
+
(De !== Bt || ot !== K || Ne !== q) && (s.stencilFunc(Bt, K, q), De = Bt, ot = K, Ne = q);
|
|
21559
21559
|
},
|
|
21560
|
-
setOp: function(Bt,
|
|
21561
|
-
(Me !== Bt || ut !==
|
|
21560
|
+
setOp: function(Bt, K, q) {
|
|
21561
|
+
(Me !== Bt || ut !== K || Nt !== q) && (s.stencilOp(Bt, K, q), Me = Bt, ut = K, Nt = q);
|
|
21562
21562
|
},
|
|
21563
21563
|
setLocked: function(Bt) {
|
|
21564
21564
|
$ = Bt;
|
|
@@ -21572,11 +21572,11 @@ function _4(s, e) {
|
|
|
21572
21572
|
};
|
|
21573
21573
|
}
|
|
21574
21574
|
const r = new t(), o = new n(), a = new i(), l = /* @__PURE__ */ new WeakMap(), c = /* @__PURE__ */ new WeakMap();
|
|
21575
|
-
let d = {}, m = {}, u = /* @__PURE__ */ new WeakMap(), h = [], g = null, _ = !1, p = null, f = null, v = null, y = null, b = null, D = null, T = null, C = new
|
|
21575
|
+
let d = {}, m = {}, u = /* @__PURE__ */ new WeakMap(), h = [], g = null, _ = !1, p = null, f = null, v = null, y = null, b = null, D = null, T = null, C = new Ct(0, 0, 0), L = 0, A = !1, S = null, P = null, N = null, V = null, Z = null;
|
|
21576
21576
|
const se = s.getParameter(s.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
|
|
21577
21577
|
let H = !1, ae = 0;
|
|
21578
|
-
const
|
|
21579
|
-
|
|
21578
|
+
const J = s.getParameter(s.VERSION);
|
|
21579
|
+
J.indexOf("WebGL") !== -1 ? (ae = parseFloat(/^WebGL (\d)/.exec(J)[1]), H = ae >= 1) : J.indexOf("OpenGL ES") !== -1 && (ae = parseFloat(/^OpenGL ES (\d)/.exec(J)[1]), H = ae >= 2);
|
|
21580
21580
|
let de = null, xe = {};
|
|
21581
21581
|
const ve = s.getParameter(s.SCISSOR_BOX), ue = s.getParameter(s.VIEWPORT), ie = new Yt().fromArray(ve), G = new Yt().fromArray(ue);
|
|
21582
21582
|
function X($, Qe, De, ot) {
|
|
@@ -21611,7 +21611,7 @@ function _4(s, e) {
|
|
|
21611
21611
|
De[0] !== s.BACK && (De[0] = s.BACK, ot = !0);
|
|
21612
21612
|
ot && s.drawBuffers(De);
|
|
21613
21613
|
}
|
|
21614
|
-
function
|
|
21614
|
+
function be($) {
|
|
21615
21615
|
return g !== $ ? (s.useProgram($), g = $, !0) : !1;
|
|
21616
21616
|
}
|
|
21617
21617
|
const Ye = {
|
|
@@ -21807,7 +21807,7 @@ function _4(s, e) {
|
|
|
21807
21807
|
l.get(Qe) !== ot && (s.uniformBlockBinding(Qe, ot, $.__bindingPointIndex), l.set(Qe, ot));
|
|
21808
21808
|
}
|
|
21809
21809
|
function Ut() {
|
|
21810
|
-
s.disable(s.BLEND), s.disable(s.CULL_FACE), s.disable(s.DEPTH_TEST), s.disable(s.POLYGON_OFFSET_FILL), s.disable(s.SCISSOR_TEST), s.disable(s.STENCIL_TEST), s.disable(s.SAMPLE_ALPHA_TO_COVERAGE), s.blendEquation(s.FUNC_ADD), s.blendFunc(s.ONE, s.ZERO), s.blendFuncSeparate(s.ONE, s.ZERO, s.ONE, s.ZERO), s.blendColor(0, 0, 0, 0), s.colorMask(!0, !0, !0, !0), s.clearColor(0, 0, 0, 0), s.depthMask(!0), s.depthFunc(s.LESS), o.setReversed(!1), s.clearDepth(1), s.stencilMask(4294967295), s.stencilFunc(s.ALWAYS, 0, 4294967295), s.stencilOp(s.KEEP, s.KEEP, s.KEEP), s.clearStencil(0), s.cullFace(s.BACK), s.frontFace(s.CCW), s.polygonOffset(0, 0), s.activeTexture(s.TEXTURE0), s.bindFramebuffer(s.FRAMEBUFFER, null), s.bindFramebuffer(s.DRAW_FRAMEBUFFER, null), s.bindFramebuffer(s.READ_FRAMEBUFFER, null), s.useProgram(null), s.lineWidth(1), s.scissor(0, 0, s.canvas.width, s.canvas.height), s.viewport(0, 0, s.canvas.width, s.canvas.height), d = {}, de = null, xe = {}, m = {}, u = /* @__PURE__ */ new WeakMap(), h = [], g = null, _ = !1, p = null, f = null, v = null, y = null, b = null, D = null, T = null, C = new
|
|
21810
|
+
s.disable(s.BLEND), s.disable(s.CULL_FACE), s.disable(s.DEPTH_TEST), s.disable(s.POLYGON_OFFSET_FILL), s.disable(s.SCISSOR_TEST), s.disable(s.STENCIL_TEST), s.disable(s.SAMPLE_ALPHA_TO_COVERAGE), s.blendEquation(s.FUNC_ADD), s.blendFunc(s.ONE, s.ZERO), s.blendFuncSeparate(s.ONE, s.ZERO, s.ONE, s.ZERO), s.blendColor(0, 0, 0, 0), s.colorMask(!0, !0, !0, !0), s.clearColor(0, 0, 0, 0), s.depthMask(!0), s.depthFunc(s.LESS), o.setReversed(!1), s.clearDepth(1), s.stencilMask(4294967295), s.stencilFunc(s.ALWAYS, 0, 4294967295), s.stencilOp(s.KEEP, s.KEEP, s.KEEP), s.clearStencil(0), s.cullFace(s.BACK), s.frontFace(s.CCW), s.polygonOffset(0, 0), s.activeTexture(s.TEXTURE0), s.bindFramebuffer(s.FRAMEBUFFER, null), s.bindFramebuffer(s.DRAW_FRAMEBUFFER, null), s.bindFramebuffer(s.READ_FRAMEBUFFER, null), s.useProgram(null), s.lineWidth(1), s.scissor(0, 0, s.canvas.width, s.canvas.height), s.viewport(0, 0, s.canvas.width, s.canvas.height), d = {}, de = null, xe = {}, m = {}, u = /* @__PURE__ */ new WeakMap(), h = [], g = null, _ = !1, p = null, f = null, v = null, y = null, b = null, D = null, T = null, C = new Ct(0, 0, 0), L = 0, A = !1, S = null, P = null, N = null, V = null, Z = null, ie.set(0, 0, s.canvas.width, s.canvas.height), G.set(0, 0, s.canvas.width, s.canvas.height), r.reset(), o.reset(), a.reset();
|
|
21811
21811
|
}
|
|
21812
21812
|
return {
|
|
21813
21813
|
buffers: {
|
|
@@ -21819,7 +21819,7 @@ function _4(s, e) {
|
|
|
21819
21819
|
disable: le,
|
|
21820
21820
|
bindFramebuffer: j,
|
|
21821
21821
|
drawBuffers: ce,
|
|
21822
|
-
useProgram:
|
|
21822
|
+
useProgram: be,
|
|
21823
21823
|
setBlending: z,
|
|
21824
21824
|
setMaterial: Mt,
|
|
21825
21825
|
setFlipSided: ht,
|
|
@@ -21997,7 +21997,7 @@ function v4(s, e, t, n, i, r, o) {
|
|
|
21997
21997
|
}
|
|
21998
21998
|
t.bindTexture(s.TEXTURE_3D, re.__webglTexture, s.TEXTURE0 + E);
|
|
21999
21999
|
}
|
|
22000
|
-
function
|
|
22000
|
+
function J(B, E) {
|
|
22001
22001
|
const re = n.get(B);
|
|
22002
22002
|
if (B.version > 0 && re.__version !== B.version) {
|
|
22003
22003
|
Q(re, B, E);
|
|
@@ -22270,7 +22270,7 @@ function v4(s, e, t, n, i, r, o) {
|
|
|
22270
22270
|
else
|
|
22271
22271
|
throw new Error("Unknown depthTexture format");
|
|
22272
22272
|
}
|
|
22273
|
-
function
|
|
22273
|
+
function be(B) {
|
|
22274
22274
|
const E = n.get(B), re = B.isWebGLCubeRenderTarget === !0;
|
|
22275
22275
|
if (E.__boundDepthTexture !== B.depthTexture) {
|
|
22276
22276
|
const ye = B.depthTexture;
|
|
@@ -22308,7 +22308,7 @@ function v4(s, e, t, n, i, r, o) {
|
|
|
22308
22308
|
}
|
|
22309
22309
|
function Ye(B, E, re) {
|
|
22310
22310
|
const ye = n.get(B);
|
|
22311
|
-
E !== void 0 && le(ye.__webglFramebuffer, B, B.texture, s.COLOR_ATTACHMENT0, s.TEXTURE_2D, 0), re !== void 0 &&
|
|
22311
|
+
E !== void 0 && le(ye.__webglFramebuffer, B, B.texture, s.COLOR_ATTACHMENT0, s.TEXTURE_2D, 0), re !== void 0 && be(B);
|
|
22312
22312
|
}
|
|
22313
22313
|
function ke(B) {
|
|
22314
22314
|
const E = B.texture, re = n.get(B), ye = n.get(E);
|
|
@@ -22370,7 +22370,7 @@ function v4(s, e, t, n, i, r, o) {
|
|
|
22370
22370
|
le(re.__webglFramebuffer, B, E, s.COLOR_ATTACHMENT0, Ge, 0);
|
|
22371
22371
|
p(E) && f(Ge), t.unbindTexture();
|
|
22372
22372
|
}
|
|
22373
|
-
B.depthBuffer &&
|
|
22373
|
+
B.depthBuffer && be(B);
|
|
22374
22374
|
}
|
|
22375
22375
|
function z(B) {
|
|
22376
22376
|
const E = B.textures;
|
|
@@ -22434,7 +22434,7 @@ function v4(s, e, t, n, i, r, o) {
|
|
|
22434
22434
|
function nn(B) {
|
|
22435
22435
|
return typeof HTMLImageElement < "u" && B instanceof HTMLImageElement ? (c.width = B.naturalWidth || B.width, c.height = B.naturalHeight || B.height) : typeof VideoFrame < "u" && B instanceof VideoFrame ? (c.width = B.displayWidth, c.height = B.displayHeight) : (c.width = B.width, c.height = B.height), c;
|
|
22436
22436
|
}
|
|
22437
|
-
this.allocateTextureUnit = V, this.resetTextureUnits = N, this.setTexture2D = se, this.setTexture2DArray = H, this.setTexture3D = ae, this.setTextureCube =
|
|
22437
|
+
this.allocateTextureUnit = V, this.resetTextureUnits = N, this.setTexture2D = se, this.setTexture2DArray = H, this.setTexture3D = ae, this.setTextureCube = J, this.rebindTextures = Ye, this.setupRenderTarget = ke, this.updateRenderTargetMipmap = z, this.updateMultisampleRenderTarget = nt, this.setupDepthRenderbuffer = be, this.setupFrameBufferTexture = le, this.useMultisampledRTT = Ze;
|
|
22438
22438
|
}
|
|
22439
22439
|
function y4(s, e) {
|
|
22440
22440
|
function t(n, i = Ki) {
|
|
@@ -22748,13 +22748,13 @@ class S4 extends Es {
|
|
|
22748
22748
|
}
|
|
22749
22749
|
}
|
|
22750
22750
|
const H = new I(), ae = new I();
|
|
22751
|
-
function
|
|
22751
|
+
function J(G, X, te) {
|
|
22752
22752
|
H.setFromMatrixPosition(X.matrixWorld), ae.setFromMatrixPosition(te.matrixWorld);
|
|
22753
|
-
const Q = H.distanceTo(ae), le = X.projectionMatrix.elements, j = te.projectionMatrix.elements, ce = le[14] / (le[10] - 1),
|
|
22753
|
+
const Q = H.distanceTo(ae), le = X.projectionMatrix.elements, j = te.projectionMatrix.elements, ce = le[14] / (le[10] - 1), be = le[14] / (le[10] + 1), Ye = (le[9] + 1) / le[5], ke = (le[9] - 1) / le[5], z = (le[8] - 1) / le[0], Mt = (j[8] + 1) / j[0], ht = ce * z, nt = ce * Mt, Fe = Q / (-z + Mt), Ze = Fe * -z;
|
|
22754
22754
|
if (X.matrixWorld.decompose(G.position, G.quaternion, G.scale), G.translateX(Ze), G.translateZ(Fe), G.matrixWorld.compose(G.position, G.quaternion, G.scale), G.matrixWorldInverse.copy(G.matrixWorld).invert(), le[10] === -1)
|
|
22755
22755
|
G.projectionMatrix.copy(X.projectionMatrix), G.projectionMatrixInverse.copy(X.projectionMatrixInverse);
|
|
22756
22756
|
else {
|
|
22757
|
-
const Re = ce + Fe, st =
|
|
22757
|
+
const Re = ce + Fe, st = be + Fe, nn = ht - Ze, B = nt + (Q - Ze), E = Ye * be / st * Re, re = ke * be / st * Re;
|
|
22758
22758
|
G.projectionMatrix.makePerspective(nn, B, E, re, Re, st), G.projectionMatrixInverse.copy(G.projectionMatrix).invert();
|
|
22759
22759
|
}
|
|
22760
22760
|
}
|
|
@@ -22772,7 +22772,7 @@ class S4 extends Es {
|
|
|
22772
22772
|
de(S, Q);
|
|
22773
22773
|
for (let j = 0; j < le.length; j++)
|
|
22774
22774
|
de(le[j], Q);
|
|
22775
|
-
le.length === 2 ?
|
|
22775
|
+
le.length === 2 ? J(S, C, L) : S.projectionMatrix.copy(C.projectionMatrix), xe(G, S, Q);
|
|
22776
22776
|
};
|
|
22777
22777
|
function xe(G, X, te) {
|
|
22778
22778
|
te === null ? G.matrix.copy(X.matrixWorld) : (G.matrix.copy(te.matrixWorld), G.matrix.invert(), G.matrix.multiply(X.matrixWorld)), G.matrix.decompose(G.position, G.quaternion, G.scale), G.updateMatrixWorld(!0), G.projectionMatrix.copy(X.projectionMatrix), G.projectionMatrixInverse.copy(X.projectionMatrixInverse), G.isPerspectiveCamera && (G.fov = ar * 2 * Math.atan(1 / G.projectionMatrix.elements[5]), G.zoom = 1);
|
|
@@ -22797,12 +22797,12 @@ class S4 extends Es {
|
|
|
22797
22797
|
let Q = !1;
|
|
22798
22798
|
te.length !== S.cameras.length && (S.cameras.length = 0, Q = !0);
|
|
22799
22799
|
for (let ce = 0; ce < te.length; ce++) {
|
|
22800
|
-
const
|
|
22800
|
+
const be = te[ce];
|
|
22801
22801
|
let Ye = null;
|
|
22802
22802
|
if (h !== null)
|
|
22803
|
-
Ye = h.getViewport(
|
|
22803
|
+
Ye = h.getViewport(be);
|
|
22804
22804
|
else {
|
|
22805
|
-
const z = m.getViewSubImage(u,
|
|
22805
|
+
const z = m.getViewSubImage(u, be);
|
|
22806
22806
|
Ye = z.viewport, ce === 0 && (e.setRenderTargetTextures(
|
|
22807
22807
|
v,
|
|
22808
22808
|
z.colorTexture,
|
|
@@ -22810,7 +22810,7 @@ class S4 extends Es {
|
|
|
22810
22810
|
), e.setRenderTarget(v));
|
|
22811
22811
|
}
|
|
22812
22812
|
let ke = A[ce];
|
|
22813
|
-
ke === void 0 && (ke = new In(), ke.layers.enable(ce), ke.viewport = new Yt(), A[ce] = ke), ke.matrix.fromArray(
|
|
22813
|
+
ke === void 0 && (ke = new In(), ke.layers.enable(ce), ke.viewport = new Yt(), A[ce] = ke), ke.matrix.fromArray(be.transform.matrix), ke.matrix.decompose(ke.position, ke.quaternion, ke.scale), ke.projectionMatrix.fromArray(be.projectionMatrix), ke.projectionMatrixInverse.copy(ke.projectionMatrix).invert(), ke.viewport.set(Ye.x, Ye.y, Ye.width, Ye.height), ce === 0 && (S.matrix.copy(ke.matrix), S.matrix.decompose(S.position, S.quaternion, S.scale)), Q === !0 && S.cameras.push(ke);
|
|
22814
22814
|
}
|
|
22815
22815
|
const le = i.enabledFeatures;
|
|
22816
22816
|
if (le && le.includes("depth-sensing") && i.depthUsage == "gpu-optimized" && m) {
|
|
@@ -22953,7 +22953,7 @@ function E4(s, e, t, n) {
|
|
|
22953
22953
|
for (let S = 0, P = A.length; S < P; S++) {
|
|
22954
22954
|
const N = A[S], V = Array.isArray(N.value) ? N.value : [N.value];
|
|
22955
22955
|
for (let Z = 0, se = V.length; Z < se; Z++) {
|
|
22956
|
-
const H = V[Z], ae = _(H),
|
|
22956
|
+
const H = V[Z], ae = _(H), J = b % D, de = J % ae.boundary, xe = J + de;
|
|
22957
22957
|
b += de, xe !== 0 && D - xe < ae.storage && (b += D - xe), N.__data = new Float32Array(ae.storage / Float32Array.BYTES_PER_ELEMENT), N.__offset = b, b += ae.storage;
|
|
22958
22958
|
}
|
|
22959
22959
|
}
|
|
@@ -23036,16 +23036,16 @@ class T4 {
|
|
|
23036
23036
|
let T = 0, C = 0, L = null, A = -1, S = null;
|
|
23037
23037
|
const P = new Yt(), N = new Yt();
|
|
23038
23038
|
let V = null;
|
|
23039
|
-
const Z = new
|
|
23040
|
-
let se = 0, H = t.width, ae = t.height,
|
|
23039
|
+
const Z = new Ct(0);
|
|
23040
|
+
let se = 0, H = t.width, ae = t.height, J = 1, de = null, xe = null;
|
|
23041
23041
|
const ve = new Yt(0, 0, H, ae), ue = new Yt(0, 0, H, ae);
|
|
23042
23042
|
let ie = !1;
|
|
23043
23043
|
const G = new Rc();
|
|
23044
23044
|
let X = !1, te = !1;
|
|
23045
|
-
const Q = new Tt(), le = new Tt(), j = new I(), ce = new Yt(),
|
|
23045
|
+
const Q = new Tt(), le = new Tt(), j = new I(), ce = new Yt(), be = { background: null, fog: null, environment: null, overrideMaterial: null, isScene: !0 };
|
|
23046
23046
|
let Ye = !1;
|
|
23047
23047
|
function ke() {
|
|
23048
|
-
return L === null ?
|
|
23048
|
+
return L === null ? J : 1;
|
|
23049
23049
|
}
|
|
23050
23050
|
let z = n;
|
|
23051
23051
|
function Mt(w, O) {
|
|
@@ -23087,9 +23087,9 @@ class T4 {
|
|
|
23087
23087
|
const w = ht.get("WEBGL_lose_context");
|
|
23088
23088
|
w && w.restoreContext();
|
|
23089
23089
|
}, this.getPixelRatio = function() {
|
|
23090
|
-
return
|
|
23090
|
+
return J;
|
|
23091
23091
|
}, this.setPixelRatio = function(w) {
|
|
23092
|
-
w !== void 0 && (
|
|
23092
|
+
w !== void 0 && (J = w, this.setSize(H, ae, !1));
|
|
23093
23093
|
}, this.getSize = function(w) {
|
|
23094
23094
|
return w.set(H, ae);
|
|
23095
23095
|
}, this.setSize = function(w, O, Y = !0) {
|
|
@@ -23097,21 +23097,21 @@ class T4 {
|
|
|
23097
23097
|
console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");
|
|
23098
23098
|
return;
|
|
23099
23099
|
}
|
|
23100
|
-
H = w, ae = O, t.width = Math.floor(w *
|
|
23100
|
+
H = w, ae = O, t.width = Math.floor(w * J), t.height = Math.floor(O * J), Y === !0 && (t.style.width = w + "px", t.style.height = O + "px"), this.setViewport(0, 0, w, O);
|
|
23101
23101
|
}, this.getDrawingBufferSize = function(w) {
|
|
23102
|
-
return w.set(H *
|
|
23102
|
+
return w.set(H * J, ae * J).floor();
|
|
23103
23103
|
}, this.setDrawingBufferSize = function(w, O, Y) {
|
|
23104
|
-
H = w, ae = O,
|
|
23104
|
+
H = w, ae = O, J = Y, t.width = Math.floor(w * Y), t.height = Math.floor(O * Y), this.setViewport(0, 0, w, O);
|
|
23105
23105
|
}, this.getCurrentViewport = function(w) {
|
|
23106
23106
|
return w.copy(P);
|
|
23107
23107
|
}, this.getViewport = function(w) {
|
|
23108
23108
|
return w.copy(ve);
|
|
23109
23109
|
}, this.setViewport = function(w, O, Y, k) {
|
|
23110
|
-
w.isVector4 ? ve.set(w.x, w.y, w.z, w.w) : ve.set(w, O, Y, k), Fe.viewport(P.copy(ve).multiplyScalar(
|
|
23110
|
+
w.isVector4 ? ve.set(w.x, w.y, w.z, w.w) : ve.set(w, O, Y, k), Fe.viewport(P.copy(ve).multiplyScalar(J).round());
|
|
23111
23111
|
}, this.getScissor = function(w) {
|
|
23112
23112
|
return w.copy(ue);
|
|
23113
23113
|
}, this.setScissor = function(w, O, Y, k) {
|
|
23114
|
-
w.isVector4 ? ue.set(w.x, w.y, w.z, w.w) : ue.set(w, O, Y, k), Fe.scissor(N.copy(ue).multiplyScalar(
|
|
23114
|
+
w.isVector4 ? ue.set(w.x, w.y, w.z, w.w) : ue.set(w, O, Y, k), Fe.scissor(N.copy(ue).multiplyScalar(J).round());
|
|
23115
23115
|
}, this.getScissorTest = function() {
|
|
23116
23116
|
return ie;
|
|
23117
23117
|
}, this.setScissorTest = function(w) {
|
|
@@ -23150,7 +23150,7 @@ class T4 {
|
|
|
23150
23150
|
}, this.clearStencil = function() {
|
|
23151
23151
|
this.clear(!1, !1, !0);
|
|
23152
23152
|
}, this.dispose = function() {
|
|
23153
|
-
t.removeEventListener("webglcontextlost", ot, !1), t.removeEventListener("webglcontextrestored", Ne, !1), t.removeEventListener("webglcontextcreationerror", Me, !1), Pe.dispose(), _t.dispose(), Ge.dispose(), Re.dispose(), nn.dispose(), B.dispose(), ye.dispose(), Ut.dispose(), $.dispose(), Ce.dispose(), De.dispose(), De.removeEventListener("sessionstart", he), De.removeEventListener("sessionend",
|
|
23153
|
+
t.removeEventListener("webglcontextlost", ot, !1), t.removeEventListener("webglcontextrestored", Ne, !1), t.removeEventListener("webglcontextcreationerror", Me, !1), Pe.dispose(), _t.dispose(), Ge.dispose(), Re.dispose(), nn.dispose(), B.dispose(), ye.dispose(), Ut.dispose(), $.dispose(), Ce.dispose(), De.dispose(), De.removeEventListener("sessionstart", he), De.removeEventListener("sessionend", Se), Ae.stop();
|
|
23154
23154
|
};
|
|
23155
23155
|
function ot(w) {
|
|
23156
23156
|
w.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), D = !0;
|
|
@@ -23177,7 +23177,7 @@ class T4 {
|
|
|
23177
23177
|
}), w.isShaderMaterial && Ce.releaseShaderCache(w));
|
|
23178
23178
|
}
|
|
23179
23179
|
this.renderBufferDirect = function(w, O, Y, k, W, ne) {
|
|
23180
|
-
O === null && (O =
|
|
23180
|
+
O === null && (O = be);
|
|
23181
23181
|
const ge = W.isMesh && W.matrixWorld.determinant() < 0, Ie = At(w, O, Y, k, W);
|
|
23182
23182
|
Fe.setMaterial(k, ge);
|
|
23183
23183
|
let ze = Y.index, et = 1;
|
|
@@ -23254,20 +23254,20 @@ class T4 {
|
|
|
23254
23254
|
ht.get("KHR_parallel_shader_compile") !== null ? ne() : setTimeout(ne, 10);
|
|
23255
23255
|
});
|
|
23256
23256
|
};
|
|
23257
|
-
let
|
|
23257
|
+
let K = null;
|
|
23258
23258
|
function q(w) {
|
|
23259
|
-
|
|
23259
|
+
K && K(w);
|
|
23260
23260
|
}
|
|
23261
23261
|
function he() {
|
|
23262
|
-
|
|
23262
|
+
Ae.stop();
|
|
23263
23263
|
}
|
|
23264
|
-
function
|
|
23265
|
-
|
|
23264
|
+
function Se() {
|
|
23265
|
+
Ae.start();
|
|
23266
23266
|
}
|
|
23267
|
-
const
|
|
23268
|
-
|
|
23269
|
-
|
|
23270
|
-
}, De.addEventListener("sessionstart", he), De.addEventListener("sessionend",
|
|
23267
|
+
const Ae = new Lu();
|
|
23268
|
+
Ae.setAnimationLoop(q), typeof self < "u" && Ae.setContext(self), this.setAnimationLoop = function(w) {
|
|
23269
|
+
K = w, De.setAnimationLoop(w), w === null ? Ae.stop() : Ae.start();
|
|
23270
|
+
}, De.addEventListener("sessionstart", he), De.addEventListener("sessionend", Se), this.render = function(w, O) {
|
|
23271
23271
|
if (O !== void 0 && O.isCamera !== !0) {
|
|
23272
23272
|
console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");
|
|
23273
23273
|
return;
|
|
@@ -23329,7 +23329,7 @@ class T4 {
|
|
|
23329
23329
|
}
|
|
23330
23330
|
function Oe(w, O, Y, k) {
|
|
23331
23331
|
const W = w.opaque, ne = w.transmissive, ge = w.transparent;
|
|
23332
|
-
f.setupLightsView(Y), X === !0 && ft.setGlobalState(b.clippingPlanes, Y), k && Fe.viewport(P.copy(k)), W.length > 0 &&
|
|
23332
|
+
f.setupLightsView(Y), X === !0 && ft.setGlobalState(b.clippingPlanes, Y), k && Fe.viewport(P.copy(k)), W.length > 0 && we(W, O, Y), ne.length > 0 && we(ne, O, Y), ge.length > 0 && we(ge, O, Y), Fe.buffers.depth.setTest(!0), Fe.buffers.depth.setMask(!0), Fe.buffers.color.setMask(!0), Fe.setPolygonOffset(!1);
|
|
23333
23333
|
}
|
|
23334
23334
|
function _e(w, O, Y, k) {
|
|
23335
23335
|
if ((Y.isScene === !0 ? Y.overrideMaterial : null) !== null)
|
|
@@ -23351,7 +23351,7 @@ class T4 {
|
|
|
23351
23351
|
const ze = b.toneMapping;
|
|
23352
23352
|
b.toneMapping = ns;
|
|
23353
23353
|
const et = k.viewport;
|
|
23354
|
-
if (k.viewport !== void 0 && (k.viewport = void 0), f.setupLightsView(k), X === !0 && ft.setGlobalState(b.clippingPlanes, k),
|
|
23354
|
+
if (k.viewport !== void 0 && (k.viewport = void 0), f.setupLightsView(k), X === !0 && ft.setGlobalState(b.clippingPlanes, k), we(w, Y, k), st.updateMultisampleRenderTarget(ne), st.updateRenderTargetMipmap(ne), ht.has("WEBGL_multisampled_render_to_texture") === !1) {
|
|
23355
23355
|
let He = !1;
|
|
23356
23356
|
for (let Xe = 0, ct = O.length; Xe < ct; Xe++) {
|
|
23357
23357
|
const It = O[Xe], Vt = It.object, qt = It.geometry, Ft = It.material, mt = It.group;
|
|
@@ -23364,7 +23364,7 @@ class T4 {
|
|
|
23364
23364
|
}
|
|
23365
23365
|
b.setRenderTarget(Ie), b.setClearColor(Z, se), et !== void 0 && (k.viewport = et), b.toneMapping = ze;
|
|
23366
23366
|
}
|
|
23367
|
-
function
|
|
23367
|
+
function we(w, O, Y) {
|
|
23368
23368
|
const k = O.isScene === !0 ? O.overrideMaterial : null;
|
|
23369
23369
|
for (let W = 0, ne = w.length; W < ne; W++) {
|
|
23370
23370
|
const ge = w[W], Ie = ge.object, ze = ge.geometry, et = ge.group;
|
|
@@ -23376,7 +23376,7 @@ class T4 {
|
|
|
23376
23376
|
w.onBeforeRender(b, O, Y, k, W, ne), w.modelViewMatrix.multiplyMatrices(Y.matrixWorldInverse, w.matrixWorld), w.normalMatrix.getNormalMatrix(w.modelViewMatrix), W.onBeforeRender(b, O, Y, k, w, ne), W.transparent === !0 && W.side === bn && W.forceSinglePass === !1 ? (W.side = Wn, W.needsUpdate = !0, b.renderBufferDirect(Y, O, k, W, w, ne), W.side = ai, W.needsUpdate = !0, b.renderBufferDirect(Y, O, k, W, w, ne), W.side = bn) : b.renderBufferDirect(Y, O, k, W, w, ne), w.onAfterRender(b, O, Y, k, W, ne);
|
|
23377
23377
|
}
|
|
23378
23378
|
function ee(w, O, Y) {
|
|
23379
|
-
O.isScene !== !0 && (O =
|
|
23379
|
+
O.isScene !== !0 && (O = be);
|
|
23380
23380
|
const k = Re.get(w), W = f.state.lights, ne = f.state.shadowsArray, ge = W.state.version, Ie = Ce.getParameters(w, W.state, ne, O, Y), ze = Ce.getProgramCacheKey(Ie);
|
|
23381
23381
|
let et = k.programs;
|
|
23382
23382
|
k.environment = w.isMeshStandardMaterial ? O.environment : null, k.fog = O.fog, k.envMap = (w.isMeshStandardMaterial ? B : nn).get(w.envMap || k.environment), k.envMapRotation = k.environment !== null && w.envMap === null ? O.environmentRotation : w.envMapRotation, et === void 0 && (w.addEventListener("dispose", ut), et = /* @__PURE__ */ new Map(), k.programs = et);
|
|
@@ -23401,7 +23401,7 @@ class T4 {
|
|
|
23401
23401
|
Y.outputColorSpace = O.outputColorSpace, Y.batching = O.batching, Y.batchingColor = O.batchingColor, Y.instancing = O.instancing, Y.instancingColor = O.instancingColor, Y.instancingMorph = O.instancingMorph, Y.skinning = O.skinning, Y.morphTargets = O.morphTargets, Y.morphNormals = O.morphNormals, Y.morphColors = O.morphColors, Y.morphTargetsCount = O.morphTargetsCount, Y.numClippingPlanes = O.numClippingPlanes, Y.numIntersection = O.numClipIntersection, Y.vertexAlphas = O.vertexAlphas, Y.vertexTangents = O.vertexTangents, Y.toneMapping = O.toneMapping;
|
|
23402
23402
|
}
|
|
23403
23403
|
function At(w, O, Y, k, W) {
|
|
23404
|
-
O.isScene !== !0 && (O =
|
|
23404
|
+
O.isScene !== !0 && (O = be), st.resetTextureUnits();
|
|
23405
23405
|
const ne = O.fog, ge = k.isMeshStandardMaterial ? O.environment : null, Ie = L === null ? b.outputColorSpace : L.isXRRenderTarget === !0 ? L.texture.colorSpace : rr, ze = (k.isMeshStandardMaterial ? B : nn).get(k.envMap || ge), et = k.vertexColors === !0 && !!Y.attributes.color && Y.attributes.color.itemSize === 4, He = !!Y.attributes.tangent && (!!k.normalMap || k.anisotropy > 0), Xe = !!Y.morphAttributes.position, ct = !!Y.morphAttributes.normal, It = !!Y.morphAttributes.color;
|
|
23406
23406
|
let Vt = ns;
|
|
23407
23407
|
k.toneMapped && (L === null || L.isXRRenderTarget === !0) && (Vt = b.toneMapping);
|
|
@@ -23432,7 +23432,7 @@ class T4 {
|
|
|
23432
23432
|
}
|
|
23433
23433
|
W.isBatchedMesh && (zt.setOptional(z, W, "batchingTexture"), zt.setValue(z, "batchingTexture", W._matricesTexture, st), zt.setOptional(z, W, "batchingIdTexture"), zt.setValue(z, "batchingIdTexture", W._indirectTexture, st), zt.setOptional(z, W, "batchingColorTexture"), W._colorsTexture !== null && zt.setValue(z, "batchingColorTexture", W._colorsTexture, st));
|
|
23434
23434
|
const gn = Y.morphAttributes;
|
|
23435
|
-
if ((gn.position !== void 0 || gn.normal !== void 0 || gn.color !== void 0) && rt.update(W, Y, an), (Lt || mt.receiveShadow !== W.receiveShadow) && (mt.receiveShadow = W.receiveShadow, zt.setValue(z, "receiveShadow", W.receiveShadow)), k.isMeshGouraudMaterial && k.envMap !== null && (Sn.envMap.value = ze, Sn.flipEnvMap.value = ze.isCubeTexture && ze.isRenderTargetTexture === !1 ? -1 : 1), k.isMeshStandardMaterial && k.envMap === null && O.environment !== null && (Sn.envMapIntensity.value = O.environmentIntensity), Lt && (zt.setValue(z, "toneMappingExposure", b.toneMappingExposure), mt.needsLights && Jt(Sn, hn), ne && k.fog === !0 && fe.refreshFogUniforms(Sn, ne), fe.refreshMaterialUniforms(Sn, k,
|
|
23435
|
+
if ((gn.position !== void 0 || gn.normal !== void 0 || gn.color !== void 0) && rt.update(W, Y, an), (Lt || mt.receiveShadow !== W.receiveShadow) && (mt.receiveShadow = W.receiveShadow, zt.setValue(z, "receiveShadow", W.receiveShadow)), k.isMeshGouraudMaterial && k.envMap !== null && (Sn.envMap.value = ze, Sn.flipEnvMap.value = ze.isCubeTexture && ze.isRenderTargetTexture === !1 ? -1 : 1), k.isMeshStandardMaterial && k.envMap === null && O.environment !== null && (Sn.envMapIntensity.value = O.environmentIntensity), Lt && (zt.setValue(z, "toneMappingExposure", b.toneMappingExposure), mt.needsLights && Jt(Sn, hn), ne && k.fog === !0 && fe.refreshFogUniforms(Sn, ne), fe.refreshMaterialUniforms(Sn, k, J, ae, f.state.transmissionRenderTarget[w.id]), Xa.upload(z, Ve(mt), Sn, st)), k.isShaderMaterial && k.uniformsNeedUpdate === !0 && (Xa.upload(z, Ve(mt), Sn, st), k.uniformsNeedUpdate = !1), k.isSpriteMaterial && zt.setValue(z, "center", W.center), zt.setValue(z, "modelViewMatrix", W.modelViewMatrix), zt.setValue(z, "normalMatrix", W.normalMatrix), zt.setValue(z, "modelMatrix", W.matrixWorld), k.isShaderMaterial || k.isRawShaderMaterial) {
|
|
23436
23436
|
const tt = k.uniformsGroups;
|
|
23437
23437
|
for (let Le = 0, xn = tt.length; Le < xn; Le++) {
|
|
23438
23438
|
const An = tt[Le];
|
|
@@ -23485,7 +23485,7 @@ class T4 {
|
|
|
23485
23485
|
const He = Re.get(w).__webglFramebuffer;
|
|
23486
23486
|
w.isWebGLCubeRenderTarget ? (Array.isArray(He[O]) ? W = He[O][Y] : W = He[O], ne = !0) : w.samples > 0 && st.useMultisampledRTT(w) === !1 ? W = Re.get(w).__webglMultisampledFramebuffer : Array.isArray(He) ? W = He[Y] : W = He, P.copy(w.viewport), N.copy(w.scissor), V = w.scissorTest;
|
|
23487
23487
|
} else
|
|
23488
|
-
P.copy(ve).multiplyScalar(
|
|
23488
|
+
P.copy(ve).multiplyScalar(J).floor(), N.copy(ue).multiplyScalar(J).floor(), V = ie;
|
|
23489
23489
|
if (Y !== 0 && (W = lt), Fe.bindFramebuffer(z.FRAMEBUFFER, W) && k && Fe.drawBuffers(w, W), Fe.viewport(P), Fe.scissor(N), Fe.setScissorTest(V), ne) {
|
|
23490
23490
|
const ze = Re.get(w.texture);
|
|
23491
23491
|
z.framebufferTexture2D(z.FRAMEBUFFER, z.COLOR_ATTACHMENT0, z.TEXTURE_CUBE_MAP_POSITIVE_X + O, ze.__webglTexture, Y);
|
|
@@ -23545,7 +23545,7 @@ class T4 {
|
|
|
23545
23545
|
const k = Math.pow(2, -Y), W = Math.floor(w.image.width * k), ne = Math.floor(w.image.height * k), ge = O !== null ? O.x : 0, Ie = O !== null ? O.y : 0;
|
|
23546
23546
|
st.setTexture2D(w, 0), z.copyTexSubImage2D(z.TEXTURE_2D, Y, 0, 0, ge, Ie, W, ne), Fe.unbindTexture();
|
|
23547
23547
|
};
|
|
23548
|
-
const
|
|
23548
|
+
const vt = z.createFramebuffer(), Ee = z.createFramebuffer();
|
|
23549
23549
|
this.copyTextureToTexture = function(w, O, Y = null, k = null, W = 0, ne = null) {
|
|
23550
23550
|
ne === null && (W !== 0 ? (Qs("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."), ne = W, W = 0) : ne = 0);
|
|
23551
23551
|
let ge, Ie, ze, et, He, Xe, ct, It, Vt;
|
|
@@ -23571,7 +23571,7 @@ class T4 {
|
|
|
23571
23571
|
Fe.bindFramebuffer(z.READ_FRAMEBUFFER, null), Fe.bindFramebuffer(z.DRAW_FRAMEBUFFER, null);
|
|
23572
23572
|
} else if (W !== 0 || w.isRenderTargetTexture || Re.has(w)) {
|
|
23573
23573
|
const gn = Re.get(w), tt = Re.get(O);
|
|
23574
|
-
Fe.bindFramebuffer(z.READ_FRAMEBUFFER,
|
|
23574
|
+
Fe.bindFramebuffer(z.READ_FRAMEBUFFER, vt), Fe.bindFramebuffer(z.DRAW_FRAMEBUFFER, Ee);
|
|
23575
23575
|
for (let Le = 0; Le < ze; Le++)
|
|
23576
23576
|
zt ? z.framebufferTextureLayer(z.READ_FRAMEBUFFER, z.COLOR_ATTACHMENT0, gn.__webglTexture, W, Xe + Le) : z.framebufferTexture2D(z.READ_FRAMEBUFFER, z.COLOR_ATTACHMENT0, z.TEXTURE_2D, gn.__webglTexture, W), Sn ? z.framebufferTextureLayer(z.DRAW_FRAMEBUFFER, z.COLOR_ATTACHMENT0, tt.__webglTexture, ne, Vt + Le) : z.framebufferTexture2D(z.DRAW_FRAMEBUFFER, z.COLOR_ATTACHMENT0, z.TEXTURE_2D, tt.__webglTexture, ne), W !== 0 ? z.blitFramebuffer(et, He, ge, Ie, ct, It, ge, Ie, z.COLOR_BUFFER_BIT, z.NEAREST) : Sn ? z.copyTexSubImage3D(cn, ne, ct, It, Vt + Le, et, He, ge, Ie) : z.copyTexSubImage2D(cn, ne, ct, It, et, He, ge, Ie);
|
|
23577
23577
|
Fe.bindFramebuffer(z.READ_FRAMEBUFFER, null), Fe.bindFramebuffer(z.DRAW_FRAMEBUFFER, null);
|
|
@@ -24272,7 +24272,7 @@ function uc(s, ...e) {
|
|
|
24272
24272
|
return s;
|
|
24273
24273
|
}
|
|
24274
24274
|
const Q4 = (s, e = 2) => {
|
|
24275
|
-
const t = new
|
|
24275
|
+
const t = new Ct(), n = e * 2, { isSphere: i, resolution: r, radius: o, font: a, corners: l, edges: c } = s, d = Or.map((C) => ({ ...s[C], radius: o }));
|
|
24276
24276
|
i && l.enabled && d.push(l), i && c.enabled && d.push(c);
|
|
24277
24277
|
const m = document.createElement("canvas"), u = m.getContext("2d");
|
|
24278
24278
|
m.width = r * 2 + n * 2, m.height = r * d.length + n * d.length;
|
|
@@ -24352,7 +24352,7 @@ const Q4 = (s, e = 2) => {
|
|
|
24352
24352
|
const xe = u.measureText(S);
|
|
24353
24353
|
se = xe.width, H = xe.fontBoundingBoxDescent, Z--;
|
|
24354
24354
|
} while (se > V && Z > 0);
|
|
24355
|
-
const ae = V / H,
|
|
24355
|
+
const ae = V / H, J = Math.min(V / se, ae), de = Math.floor(Z * J);
|
|
24356
24356
|
return [`${N} ${de}px ${P}`, ae];
|
|
24357
24357
|
}
|
|
24358
24358
|
function T(C, L, A, S, P) {
|
|
@@ -25307,7 +25307,7 @@ class c6 extends l6 {
|
|
|
25307
25307
|
}
|
|
25308
25308
|
}
|
|
25309
25309
|
const h6 = (s) => {
|
|
25310
|
-
const e = new
|
|
25310
|
+
const e = new Ct(), t = [], n = [], { isSphere: i } = s;
|
|
25311
25311
|
if (Or.forEach((a, l) => {
|
|
25312
25312
|
const { enabled: c, line: d, scale: m, color: u } = s[a];
|
|
25313
25313
|
if (!c || !d) return;
|
|
@@ -25675,7 +25675,7 @@ function p6(s) {
|
|
|
25675
25675
|
let m = 0;
|
|
25676
25676
|
const u = je([]), h = je(new I()), g = je(new I()), _ = () => {
|
|
25677
25677
|
if (!s.value) return;
|
|
25678
|
-
e = new Ec(), e.background = new
|
|
25678
|
+
e = new Ec(), e.background = new Ct(15790320);
|
|
25679
25679
|
const P = s.value;
|
|
25680
25680
|
t = new In(75, P.clientWidth / P.clientHeight, 0.1, 1e4), t.position.set(8, -8, 6), t.up.set(0, 0, 1), t.lookAt(0, 0, 0), n = new T4({
|
|
25681
25681
|
antialias: !0,
|
|
@@ -25730,14 +25730,14 @@ function p6(s) {
|
|
|
25730
25730
|
return;
|
|
25731
25731
|
const P = new Xn();
|
|
25732
25732
|
let N = !1;
|
|
25733
|
-
if (u.value.forEach((
|
|
25734
|
-
if (
|
|
25735
|
-
P.union(
|
|
25736
|
-
else if (
|
|
25737
|
-
const de = modelBoundingBoxes.get(
|
|
25733
|
+
if (u.value.forEach((J) => {
|
|
25734
|
+
if (J.userData.boundingBox)
|
|
25735
|
+
P.union(J.userData.boundingBox), N = !0;
|
|
25736
|
+
else if (J.userData.modelId && modelBoundingBoxes.has(J.userData.modelId)) {
|
|
25737
|
+
const de = modelBoundingBoxes.get(J.userData.modelId);
|
|
25738
25738
|
P.union(de.box), N = !0;
|
|
25739
25739
|
} else
|
|
25740
|
-
P.expandByObject(
|
|
25740
|
+
P.expandByObject(J), N = !0;
|
|
25741
25741
|
}), !N) {
|
|
25742
25742
|
console.warn("无法计算包围盒,网格更新失败");
|
|
25743
25743
|
return;
|
|
@@ -25819,8 +25819,8 @@ function p6(s) {
|
|
|
25819
25819
|
console.warn("无法计算包围盒");
|
|
25820
25820
|
return;
|
|
25821
25821
|
}
|
|
25822
|
-
const Z = N.getSize(new I()), se = N.getCenter(new I()), ae = Math.max(Z.x, Z.y, Z.z) * 0.8,
|
|
25823
|
-
t.position.copy(
|
|
25822
|
+
const Z = N.getSize(new I()), se = N.getCenter(new I()), ae = Math.max(Z.x, Z.y, Z.z) * 0.8, J = new I(se.x + ae, se.y - ae, se.z + ae);
|
|
25823
|
+
t.position.copy(J), t.lookAt(se), i.target.copy(se), i.update(), h.value.copy(J), g.value.copy(se), f();
|
|
25824
25824
|
},
|
|
25825
25825
|
getThreeJSObjects: () => ({
|
|
25826
25826
|
scene: e,
|
|
@@ -26046,7 +26046,7 @@ class ss extends _i {
|
|
|
26046
26046
|
let u, h, g, _ = !1, p, f, v, y, b;
|
|
26047
26047
|
for (let P = 0; P < 70; P++)
|
|
26048
26048
|
d.getUint32(P, !1) == 1129270351 && d.getUint8(P + 4) == 82 && d.getUint8(P + 5) == 61 && (_ = !0, p = new Float32Array(m * 3 * 3), f = d.getUint8(P + 6) / 255, v = d.getUint8(P + 7) / 255, y = d.getUint8(P + 8) / 255, b = d.getUint8(P + 9) / 255);
|
|
26049
|
-
const D = 84, T = 12 * 4 + 2, C = new mn(), L = new Float32Array(m * 3 * 3), A = new Float32Array(m * 3 * 3), S = new
|
|
26049
|
+
const D = 84, T = 12 * 4 + 2, C = new mn(), L = new Float32Array(m * 3 * 3), A = new Float32Array(m * 3 * 3), S = new Ct();
|
|
26050
26050
|
for (let P = 0; P < m; P++) {
|
|
26051
26051
|
const N = D + P * T, V = d.getFloat32(N, !0), Z = d.getFloat32(N + 4, !0), se = d.getFloat32(N + 8, !0);
|
|
26052
26052
|
if (_) {
|
|
@@ -26054,8 +26054,8 @@ class ss extends _i {
|
|
|
26054
26054
|
(H & 32768) === 0 ? (u = (H & 31) / 31, h = (H >> 5 & 31) / 31, g = (H >> 10 & 31) / 31) : (u = f, h = v, g = y);
|
|
26055
26055
|
}
|
|
26056
26056
|
for (let H = 1; H <= 3; H++) {
|
|
26057
|
-
const ae = N + H * 12,
|
|
26058
|
-
L[
|
|
26057
|
+
const ae = N + H * 12, J = P * 3 * 3 + (H - 1) * 3;
|
|
26058
|
+
L[J] = d.getFloat32(ae, !0), L[J + 1] = d.getFloat32(ae + 4, !0), L[J + 2] = d.getFloat32(ae + 8, !0), A[J] = V, A[J + 1] = Z, A[J + 2] = se, _ && (S.setRGB(u, h, g, tn), p[J] = S.r, p[J + 1] = S.g, p[J + 2] = S.b);
|
|
26059
26059
|
}
|
|
26060
26060
|
}
|
|
26061
26061
|
return C.setAttribute("position", new yn(L, 3)), C.setAttribute("normal", new yn(A, 3)), _ && (C.setAttribute("color", new yn(p, 3)), C.hasColors = !0, C.alpha = b), C;
|
|
@@ -26142,10 +26142,10 @@ class N0 extends Ld {
|
|
|
26142
26142
|
if (H.pixel_size !== 8 && H.pixel_size !== 16 && H.pixel_size !== 24 && H.pixel_size !== 32)
|
|
26143
26143
|
throw new Error("THREE.TGALoader: Invalid pixel size " + H.pixel_size);
|
|
26144
26144
|
}
|
|
26145
|
-
function n(H, ae,
|
|
26145
|
+
function n(H, ae, J, de, xe) {
|
|
26146
26146
|
let ve, ue;
|
|
26147
|
-
const ie =
|
|
26148
|
-
if (ae && (ue = xe.subarray(de, de +=
|
|
26147
|
+
const ie = J.pixel_size >> 3, G = J.width * J.height * ie;
|
|
26148
|
+
if (ae && (ue = xe.subarray(de, de += J.colormap_length * (J.colormap_size >> 3))), H) {
|
|
26149
26149
|
ve = new Uint8Array(G);
|
|
26150
26150
|
let X, te, Q, le = 0;
|
|
26151
26151
|
const j = new Uint8Array(ie);
|
|
@@ -26164,77 +26164,77 @@ class N0 extends Ld {
|
|
|
26164
26164
|
} else
|
|
26165
26165
|
ve = xe.subarray(
|
|
26166
26166
|
de,
|
|
26167
|
-
de += ae ?
|
|
26167
|
+
de += ae ? J.width * J.height : G
|
|
26168
26168
|
);
|
|
26169
26169
|
return {
|
|
26170
26170
|
pixel_data: ve,
|
|
26171
26171
|
palettes: ue
|
|
26172
26172
|
};
|
|
26173
26173
|
}
|
|
26174
|
-
function i(H, ae,
|
|
26174
|
+
function i(H, ae, J, de, xe, ve, ue, ie, G) {
|
|
26175
26175
|
const X = G;
|
|
26176
26176
|
let te, Q = 0, le, j;
|
|
26177
26177
|
const ce = S.width;
|
|
26178
|
-
for (j = ae; j !== de; j +=
|
|
26178
|
+
for (j = ae; j !== de; j += J)
|
|
26179
26179
|
for (le = xe; le !== ue; le += ve, Q++)
|
|
26180
26180
|
te = ie[Q], H[(le + ce * j) * 4 + 3] = 255, H[(le + ce * j) * 4 + 2] = X[te * 3 + 0], H[(le + ce * j) * 4 + 1] = X[te * 3 + 1], H[(le + ce * j) * 4 + 0] = X[te * 3 + 2];
|
|
26181
26181
|
return H;
|
|
26182
26182
|
}
|
|
26183
|
-
function r(H, ae,
|
|
26183
|
+
function r(H, ae, J, de, xe, ve, ue, ie) {
|
|
26184
26184
|
let G, X = 0, te, Q;
|
|
26185
26185
|
const le = S.width;
|
|
26186
|
-
for (Q = ae; Q !== de; Q +=
|
|
26186
|
+
for (Q = ae; Q !== de; Q += J)
|
|
26187
26187
|
for (te = xe; te !== ue; te += ve, X += 2)
|
|
26188
26188
|
G = ie[X + 0] + (ie[X + 1] << 8), H[(te + le * Q) * 4 + 0] = (G & 31744) >> 7, H[(te + le * Q) * 4 + 1] = (G & 992) >> 2, H[(te + le * Q) * 4 + 2] = (G & 31) << 3, H[(te + le * Q) * 4 + 3] = G & 32768 ? 0 : 255;
|
|
26189
26189
|
return H;
|
|
26190
26190
|
}
|
|
26191
|
-
function o(H, ae,
|
|
26191
|
+
function o(H, ae, J, de, xe, ve, ue, ie) {
|
|
26192
26192
|
let G = 0, X, te;
|
|
26193
26193
|
const Q = S.width;
|
|
26194
|
-
for (te = ae; te !== de; te +=
|
|
26194
|
+
for (te = ae; te !== de; te += J)
|
|
26195
26195
|
for (X = xe; X !== ue; X += ve, G += 3)
|
|
26196
26196
|
H[(X + Q * te) * 4 + 3] = 255, H[(X + Q * te) * 4 + 2] = ie[G + 0], H[(X + Q * te) * 4 + 1] = ie[G + 1], H[(X + Q * te) * 4 + 0] = ie[G + 2];
|
|
26197
26197
|
return H;
|
|
26198
26198
|
}
|
|
26199
|
-
function a(H, ae,
|
|
26199
|
+
function a(H, ae, J, de, xe, ve, ue, ie) {
|
|
26200
26200
|
let G = 0, X, te;
|
|
26201
26201
|
const Q = S.width;
|
|
26202
|
-
for (te = ae; te !== de; te +=
|
|
26202
|
+
for (te = ae; te !== de; te += J)
|
|
26203
26203
|
for (X = xe; X !== ue; X += ve, G += 4)
|
|
26204
26204
|
H[(X + Q * te) * 4 + 2] = ie[G + 0], H[(X + Q * te) * 4 + 1] = ie[G + 1], H[(X + Q * te) * 4 + 0] = ie[G + 2], H[(X + Q * te) * 4 + 3] = ie[G + 3];
|
|
26205
26205
|
return H;
|
|
26206
26206
|
}
|
|
26207
|
-
function l(H, ae,
|
|
26207
|
+
function l(H, ae, J, de, xe, ve, ue, ie) {
|
|
26208
26208
|
let G, X = 0, te, Q;
|
|
26209
26209
|
const le = S.width;
|
|
26210
|
-
for (Q = ae; Q !== de; Q +=
|
|
26210
|
+
for (Q = ae; Q !== de; Q += J)
|
|
26211
26211
|
for (te = xe; te !== ue; te += ve, X++)
|
|
26212
26212
|
G = ie[X], H[(te + le * Q) * 4 + 0] = G, H[(te + le * Q) * 4 + 1] = G, H[(te + le * Q) * 4 + 2] = G, H[(te + le * Q) * 4 + 3] = 255;
|
|
26213
26213
|
return H;
|
|
26214
26214
|
}
|
|
26215
|
-
function c(H, ae,
|
|
26215
|
+
function c(H, ae, J, de, xe, ve, ue, ie) {
|
|
26216
26216
|
let G = 0, X, te;
|
|
26217
26217
|
const Q = S.width;
|
|
26218
|
-
for (te = ae; te !== de; te +=
|
|
26218
|
+
for (te = ae; te !== de; te += J)
|
|
26219
26219
|
for (X = xe; X !== ue; X += ve, G += 2)
|
|
26220
26220
|
H[(X + Q * te) * 4 + 0] = ie[G + 0], H[(X + Q * te) * 4 + 1] = ie[G + 0], H[(X + Q * te) * 4 + 2] = ie[G + 0], H[(X + Q * te) * 4 + 3] = ie[G + 1];
|
|
26221
26221
|
return H;
|
|
26222
26222
|
}
|
|
26223
|
-
function d(H, ae,
|
|
26223
|
+
function d(H, ae, J, de, xe) {
|
|
26224
26224
|
let ve, ue, ie, G, X, te;
|
|
26225
26225
|
switch ((S.flags & v) >> y) {
|
|
26226
26226
|
default:
|
|
26227
26227
|
case T:
|
|
26228
|
-
ve = 0, ie = 1, X = ae, ue = 0, G = 1, te =
|
|
26228
|
+
ve = 0, ie = 1, X = ae, ue = 0, G = 1, te = J;
|
|
26229
26229
|
break;
|
|
26230
26230
|
case b:
|
|
26231
|
-
ve = 0, ie = 1, X = ae, ue =
|
|
26231
|
+
ve = 0, ie = 1, X = ae, ue = J - 1, G = -1, te = -1;
|
|
26232
26232
|
break;
|
|
26233
26233
|
case C:
|
|
26234
|
-
ve = ae - 1, ie = -1, X = -1, ue = 0, G = 1, te =
|
|
26234
|
+
ve = ae - 1, ie = -1, X = -1, ue = 0, G = 1, te = J;
|
|
26235
26235
|
break;
|
|
26236
26236
|
case D:
|
|
26237
|
-
ve = ae - 1, ie = -1, X = -1, ue =
|
|
26237
|
+
ve = ae - 1, ie = -1, X = -1, ue = J - 1, G = -1, te = -1;
|
|
26238
26238
|
break;
|
|
26239
26239
|
}
|
|
26240
26240
|
if (V)
|
|
@@ -26483,8 +26483,8 @@ class _6 extends _i {
|
|
|
26483
26483
|
const M = [], F = x.channels, R = x.samplers, U = x.sources;
|
|
26484
26484
|
for (const oe in F)
|
|
26485
26485
|
if (F.hasOwnProperty(oe)) {
|
|
26486
|
-
const pe = F[oe], it = R[pe.sampler], Be = it.inputs.INPUT, Je = it.inputs.OUTPUT, wt = U[Be], Ue = U[Je],
|
|
26487
|
-
S(
|
|
26486
|
+
const pe = F[oe], it = R[pe.sampler], Be = it.inputs.INPUT, Je = it.inputs.OUTPUT, wt = U[Be], Ue = U[Je], yt = D(pe, wt, Ue);
|
|
26487
|
+
S(yt, M);
|
|
26488
26488
|
}
|
|
26489
26489
|
return M;
|
|
26490
26490
|
}
|
|
@@ -26493,7 +26493,7 @@ class _6 extends _i {
|
|
|
26493
26493
|
}
|
|
26494
26494
|
function D(x, M, F) {
|
|
26495
26495
|
const R = dt.nodes[x.id], U = ct(R.id), oe = R.transforms[x.sid], pe = R.matrix.clone().transpose();
|
|
26496
|
-
let it, Be, Je, wt, Ue,
|
|
26496
|
+
let it, Be, Je, wt, Ue, yt;
|
|
26497
26497
|
const pt = {};
|
|
26498
26498
|
switch (oe) {
|
|
26499
26499
|
case "matrix":
|
|
@@ -26502,7 +26502,7 @@ class _6 extends _i {
|
|
|
26502
26502
|
const vn = F.array[Be], on = x.indices[0] + 4 * x.indices[1];
|
|
26503
26503
|
pt[it][on] = vn;
|
|
26504
26504
|
} else
|
|
26505
|
-
for (Ue = 0,
|
|
26505
|
+
for (Ue = 0, yt = F.stride; Ue < yt; Ue++)
|
|
26506
26506
|
pt[it][Ue] = F.array[Be + Ue];
|
|
26507
26507
|
break;
|
|
26508
26508
|
case "translate":
|
|
@@ -26537,8 +26537,8 @@ class _6 extends _i {
|
|
|
26537
26537
|
function S(x, M) {
|
|
26538
26538
|
const F = x.keyframes, R = x.name, U = [], oe = [], pe = [], it = [];
|
|
26539
26539
|
for (let Be = 0, Je = F.length; Be < Je; Be++) {
|
|
26540
|
-
const wt = F[Be], Ue = wt.time,
|
|
26541
|
-
O.fromArray(
|
|
26540
|
+
const wt = F[Be], Ue = wt.time, yt = wt.value;
|
|
26541
|
+
O.fromArray(yt).transpose(), O.decompose(C, A, L), U.push(Ue), oe.push(C.x, C.y, C.z), pe.push(A.x, A.y, A.z, A.w), it.push(L.x, L.y, L.z);
|
|
26542
26542
|
}
|
|
26543
26543
|
return oe.length > 0 && M.push(new lr(R + ".position", U, oe)), pe.length > 0 && M.push(new Vr(R + ".quaternion", U, pe)), it.length > 0 && M.push(new lr(R + ".scale", U, it)), M;
|
|
26544
26544
|
}
|
|
@@ -26619,7 +26619,7 @@ class _6 extends _i {
|
|
|
26619
26619
|
}
|
|
26620
26620
|
return new Vh(F, R, M);
|
|
26621
26621
|
}
|
|
26622
|
-
function
|
|
26622
|
+
function J(x) {
|
|
26623
26623
|
return _(dt.clips[x], ae);
|
|
26624
26624
|
}
|
|
26625
26625
|
function de(x) {
|
|
@@ -26720,12 +26720,12 @@ class _6 extends _i {
|
|
|
26720
26720
|
stride: 4
|
|
26721
26721
|
}
|
|
26722
26722
|
}, R = x.sources, U = x.vertexWeights, oe = U.vcount, pe = U.v, it = U.inputs.JOINT.offset, Be = U.inputs.WEIGHT.offset, Je = x.sources[x.joints.inputs.JOINT], wt = x.sources[x.joints.inputs.INV_BIND_MATRIX], Ue = R[U.inputs.WEIGHT.id].array;
|
|
26723
|
-
let
|
|
26723
|
+
let yt = 0, pt, Dt, Et;
|
|
26724
26724
|
for (pt = 0, Et = oe.length; pt < Et; pt++) {
|
|
26725
26725
|
const on = oe[pt], Zt = [];
|
|
26726
26726
|
for (Dt = 0; Dt < on; Dt++) {
|
|
26727
|
-
const Qt = pe[
|
|
26728
|
-
Zt.push({ index: Qt, weight: jn }),
|
|
26727
|
+
const Qt = pe[yt + it], Ei = pe[yt + Be], jn = Ue[Ei];
|
|
26728
|
+
Zt.push({ index: Qt, weight: jn }), yt += 2;
|
|
26729
26729
|
}
|
|
26730
26730
|
for (Zt.sort(vn), Dt = 0; Dt < 4; Dt++) {
|
|
26731
26731
|
const Qt = Zt[Dt];
|
|
@@ -26780,7 +26780,7 @@ class _6 extends _i {
|
|
|
26780
26780
|
if (U.nodeType === 1)
|
|
26781
26781
|
switch (U.nodeName) {
|
|
26782
26782
|
case "newparam":
|
|
26783
|
-
|
|
26783
|
+
be(U, M);
|
|
26784
26784
|
break;
|
|
26785
26785
|
case "technique":
|
|
26786
26786
|
M.technique = z(U);
|
|
@@ -26792,7 +26792,7 @@ class _6 extends _i {
|
|
|
26792
26792
|
}
|
|
26793
26793
|
return M;
|
|
26794
26794
|
}
|
|
26795
|
-
function
|
|
26795
|
+
function be(x, M) {
|
|
26796
26796
|
const F = x.getAttribute("sid");
|
|
26797
26797
|
for (let R = 0, U = x.childNodes.length; R < U; R++) {
|
|
26798
26798
|
const oe = x.childNodes[R];
|
|
@@ -27037,14 +27037,14 @@ class _6 extends _i {
|
|
|
27037
27037
|
const wt = M.profile.samplers[Be.id];
|
|
27038
27038
|
let Ue = null;
|
|
27039
27039
|
if (wt !== void 0) {
|
|
27040
|
-
const
|
|
27041
|
-
Ue = le(
|
|
27040
|
+
const yt = M.profile.surfaces[wt.source];
|
|
27041
|
+
Ue = le(yt.init_from);
|
|
27042
27042
|
} else
|
|
27043
27043
|
console.warn("THREE.ColladaLoader: Undefined sampler. Access image directly (see #12530)."), Ue = le(Be.id);
|
|
27044
27044
|
if (Ue !== null) {
|
|
27045
|
-
const
|
|
27046
|
-
if (
|
|
27047
|
-
const pt =
|
|
27045
|
+
const yt = ye(Ue);
|
|
27046
|
+
if (yt !== void 0) {
|
|
27047
|
+
const pt = yt.load(Ue), Dt = Be.extra;
|
|
27048
27048
|
if (Dt !== void 0 && Dt.technique !== void 0 && c(Dt.technique) === !1) {
|
|
27049
27049
|
const Et = Dt.technique;
|
|
27050
27050
|
pt.wrapS = Et.wrapU ? bi : pi, pt.wrapT = Et.wrapV ? bi : pi, pt.offset.set(Et.offsetU || 0, Et.offsetV || 0), pt.repeat.set(Et.repeatU || 1, Et.repeatV || 1);
|
|
@@ -27257,7 +27257,7 @@ class _6 extends _i {
|
|
|
27257
27257
|
switch (U.nodeName) {
|
|
27258
27258
|
case "color":
|
|
27259
27259
|
const oe = r(U.textContent);
|
|
27260
|
-
M.color = new
|
|
27260
|
+
M.color = new Ct().fromArray(oe), jt.colorSpaceToWorking(M.color, tn);
|
|
27261
27261
|
break;
|
|
27262
27262
|
case "falloff_angle":
|
|
27263
27263
|
M.falloffAngle = parseFloat(U.textContent);
|
|
@@ -27410,7 +27410,7 @@ class _6 extends _i {
|
|
|
27410
27410
|
return M;
|
|
27411
27411
|
}
|
|
27412
27412
|
function rn(x, M, F) {
|
|
27413
|
-
const R = {}, U = { array: [], stride: 0 }, oe = { array: [], stride: 0 }, pe = { array: [], stride: 0 }, it = { array: [], stride: 0 }, Be = { array: [], stride: 0 }, Je = { array: [], stride: 4 }, wt = { array: [], stride: 4 }, Ue = new mn(),
|
|
27413
|
+
const R = {}, U = { array: [], stride: 0 }, oe = { array: [], stride: 0 }, pe = { array: [], stride: 0 }, it = { array: [], stride: 0 }, Be = { array: [], stride: 0 }, Je = { array: [], stride: 4 }, wt = { array: [], stride: 4 }, Ue = new mn(), yt = [];
|
|
27414
27414
|
let pt = 0;
|
|
27415
27415
|
for (let Dt = 0; Dt < x.length; Dt++) {
|
|
27416
27416
|
const Et = x[Dt], vn = Et.inputs;
|
|
@@ -27442,7 +27442,7 @@ class _6 extends _i {
|
|
|
27442
27442
|
default:
|
|
27443
27443
|
console.warn("THREE.ColladaLoader: Unknown primitive type:", Et.type);
|
|
27444
27444
|
}
|
|
27445
|
-
Ue.addGroup(pt, on, Dt), pt += on, Et.material &&
|
|
27445
|
+
Ue.addGroup(pt, on, Dt), pt += on, Et.material && yt.push(Et.material);
|
|
27446
27446
|
for (const Zt in vn) {
|
|
27447
27447
|
const Qt = vn[Zt];
|
|
27448
27448
|
switch (Zt) {
|
|
@@ -27490,15 +27490,15 @@ class _6 extends _i {
|
|
|
27490
27490
|
}
|
|
27491
27491
|
}
|
|
27492
27492
|
}
|
|
27493
|
-
return U.array.length > 0 && Ue.setAttribute("position", new Ot(U.array, U.stride)), oe.array.length > 0 && Ue.setAttribute("normal", new Ot(oe.array, oe.stride)), Be.array.length > 0 && Ue.setAttribute("color", new Ot(Be.array, Be.stride)), pe.array.length > 0 && Ue.setAttribute("uv", new Ot(pe.array, pe.stride)), it.array.length > 0 && Ue.setAttribute("uv1", new Ot(it.array, it.stride)), Je.array.length > 0 && Ue.setAttribute("skinIndex", new Ot(Je.array, Je.stride)), wt.array.length > 0 && Ue.setAttribute("skinWeight", new Ot(wt.array, wt.stride)), R.data = Ue, R.type = x[0].type, R.materialKeys =
|
|
27493
|
+
return U.array.length > 0 && Ue.setAttribute("position", new Ot(U.array, U.stride)), oe.array.length > 0 && Ue.setAttribute("normal", new Ot(oe.array, oe.stride)), Be.array.length > 0 && Ue.setAttribute("color", new Ot(Be.array, Be.stride)), pe.array.length > 0 && Ue.setAttribute("uv", new Ot(pe.array, pe.stride)), it.array.length > 0 && Ue.setAttribute("uv1", new Ot(it.array, it.stride)), Je.array.length > 0 && Ue.setAttribute("skinIndex", new Ot(Je.array, Je.stride)), wt.array.length > 0 && Ue.setAttribute("skinWeight", new Ot(wt.array, wt.stride)), R.data = Ue, R.type = x[0].type, R.materialKeys = yt, R;
|
|
27494
27494
|
}
|
|
27495
27495
|
function Bt(x, M, F, R, U = !1) {
|
|
27496
27496
|
const oe = x.p, pe = x.stride, it = x.vcount;
|
|
27497
27497
|
function Be(Ue) {
|
|
27498
|
-
let
|
|
27499
|
-
const pt =
|
|
27500
|
-
for (;
|
|
27501
|
-
R.push(Je[
|
|
27498
|
+
let yt = oe[Ue + F] * wt;
|
|
27499
|
+
const pt = yt + wt;
|
|
27500
|
+
for (; yt < pt; yt++)
|
|
27501
|
+
R.push(Je[yt]);
|
|
27502
27502
|
if (U) {
|
|
27503
27503
|
const Dt = R.length - wt - 1;
|
|
27504
27504
|
tt.setRGB(
|
|
@@ -27512,8 +27512,8 @@ class _6 extends _i {
|
|
|
27512
27512
|
const Je = M.array, wt = M.stride;
|
|
27513
27513
|
if (x.vcount !== void 0) {
|
|
27514
27514
|
let Ue = 0;
|
|
27515
|
-
for (let
|
|
27516
|
-
const Dt = it[
|
|
27515
|
+
for (let yt = 0, pt = it.length; yt < pt; yt++) {
|
|
27516
|
+
const Dt = it[yt];
|
|
27517
27517
|
if (Dt === 4) {
|
|
27518
27518
|
const Et = Ue + pe * 0, vn = Ue + pe * 1, on = Ue + pe * 2, Zt = Ue + pe * 3;
|
|
27519
27519
|
Be(Et), Be(vn), Be(Zt), Be(vn), Be(on), Be(Zt);
|
|
@@ -27528,10 +27528,10 @@ class _6 extends _i {
|
|
|
27528
27528
|
Ue += pe * Dt;
|
|
27529
27529
|
}
|
|
27530
27530
|
} else
|
|
27531
|
-
for (let Ue = 0,
|
|
27531
|
+
for (let Ue = 0, yt = oe.length; Ue < yt; Ue += pe)
|
|
27532
27532
|
Be(Ue);
|
|
27533
27533
|
}
|
|
27534
|
-
function
|
|
27534
|
+
function K(x) {
|
|
27535
27535
|
return _(dt.geometries[x], Nt);
|
|
27536
27536
|
}
|
|
27537
27537
|
function q(x) {
|
|
@@ -27545,7 +27545,7 @@ class _6 extends _i {
|
|
|
27545
27545
|
if (R.nodeType === 1)
|
|
27546
27546
|
switch (R.nodeName) {
|
|
27547
27547
|
case "technique_common":
|
|
27548
|
-
|
|
27548
|
+
Ae(R, M);
|
|
27549
27549
|
break;
|
|
27550
27550
|
}
|
|
27551
27551
|
}
|
|
@@ -27554,10 +27554,10 @@ class _6 extends _i {
|
|
|
27554
27554
|
function he(x) {
|
|
27555
27555
|
return x.build !== void 0 ? x.build : x;
|
|
27556
27556
|
}
|
|
27557
|
-
function
|
|
27557
|
+
function Se(x) {
|
|
27558
27558
|
return _(dt.kinematicsModels[x], he);
|
|
27559
27559
|
}
|
|
27560
|
-
function
|
|
27560
|
+
function Ae(x, M) {
|
|
27561
27561
|
for (let F = 0; F < x.childNodes.length; F++) {
|
|
27562
27562
|
const R = x.childNodes[F];
|
|
27563
27563
|
if (R.nodeType === 1)
|
|
@@ -27627,7 +27627,7 @@ class _6 extends _i {
|
|
|
27627
27627
|
if (R.nodeType === 1)
|
|
27628
27628
|
switch (R.nodeName) {
|
|
27629
27629
|
case "attachment_full":
|
|
27630
|
-
M.attachments.push(
|
|
27630
|
+
M.attachments.push(we(R));
|
|
27631
27631
|
break;
|
|
27632
27632
|
case "matrix":
|
|
27633
27633
|
case "translate":
|
|
@@ -27638,7 +27638,7 @@ class _6 extends _i {
|
|
|
27638
27638
|
}
|
|
27639
27639
|
return M;
|
|
27640
27640
|
}
|
|
27641
|
-
function
|
|
27641
|
+
function we(x) {
|
|
27642
27642
|
const M = {
|
|
27643
27643
|
joint: x.getAttribute("joint").split("/").pop(),
|
|
27644
27644
|
transforms: [],
|
|
@@ -27757,23 +27757,23 @@ class _6 extends _i {
|
|
|
27757
27757
|
function lt(x) {
|
|
27758
27758
|
return _(dt.kinematicsScenes[x], Kt);
|
|
27759
27759
|
}
|
|
27760
|
-
function
|
|
27760
|
+
function vt() {
|
|
27761
27761
|
const x = Object.keys(dt.kinematicsModels)[0], M = Object.keys(dt.kinematicsScenes)[0], F = Object.keys(dt.visualScenes)[0];
|
|
27762
27762
|
if (x === void 0 || M === void 0) return;
|
|
27763
|
-
const R =
|
|
27763
|
+
const R = Se(x), U = lt(M), oe = Ft(F), pe = U.bindJointAxis, it = {};
|
|
27764
27764
|
for (let wt = 0, Ue = pe.length; wt < Ue; wt++) {
|
|
27765
|
-
const
|
|
27765
|
+
const yt = pe[wt], pt = Te.querySelector('[sid="' + yt.target + '"]');
|
|
27766
27766
|
if (pt) {
|
|
27767
27767
|
const Dt = pt.parentElement;
|
|
27768
|
-
Be(
|
|
27768
|
+
Be(yt.jointIndex, Dt);
|
|
27769
27769
|
}
|
|
27770
27770
|
}
|
|
27771
27771
|
function Be(wt, Ue) {
|
|
27772
|
-
const
|
|
27772
|
+
const yt = Ue.getAttribute("name"), pt = R.joints[wt];
|
|
27773
27773
|
oe.traverse(function(Dt) {
|
|
27774
|
-
Dt.name ===
|
|
27774
|
+
Dt.name === yt && (it[wt] = {
|
|
27775
27775
|
object: Dt,
|
|
27776
|
-
transforms:
|
|
27776
|
+
transforms: Ee(Ue),
|
|
27777
27777
|
joint: pt,
|
|
27778
27778
|
position: pt.zeroPosition
|
|
27779
27779
|
});
|
|
@@ -27789,15 +27789,15 @@ class _6 extends _i {
|
|
|
27789
27789
|
console.warn("THREE.ColladaLoader: Joint " + wt + " doesn't exist.");
|
|
27790
27790
|
},
|
|
27791
27791
|
setJointValue: function(wt, Ue) {
|
|
27792
|
-
const
|
|
27793
|
-
if (
|
|
27794
|
-
const pt =
|
|
27792
|
+
const yt = it[wt];
|
|
27793
|
+
if (yt) {
|
|
27794
|
+
const pt = yt.joint;
|
|
27795
27795
|
if (Ue > pt.limits.max || Ue < pt.limits.min)
|
|
27796
27796
|
console.warn("THREE.ColladaLoader: Joint " + wt + " value " + Ue + " outside of limits (min: " + pt.limits.min + ", max: " + pt.limits.max + ").");
|
|
27797
27797
|
else if (pt.static)
|
|
27798
27798
|
console.warn("THREE.ColladaLoader: Joint " + wt + " is static.");
|
|
27799
27799
|
else {
|
|
27800
|
-
const Dt =
|
|
27800
|
+
const Dt = yt.object, Et = pt.axis, vn = yt.transforms;
|
|
27801
27801
|
O.identity();
|
|
27802
27802
|
for (let on = 0; on < vn.length; on++) {
|
|
27803
27803
|
const Zt = vn[on];
|
|
@@ -27836,7 +27836,7 @@ class _6 extends _i {
|
|
|
27836
27836
|
}
|
|
27837
27837
|
};
|
|
27838
27838
|
}
|
|
27839
|
-
function
|
|
27839
|
+
function Ee(x) {
|
|
27840
27840
|
const M = [], F = Te.querySelector('[id="' + x.id + '"]');
|
|
27841
27841
|
for (let R = 0; R < F.childNodes.length; R++) {
|
|
27842
27842
|
const U = F.childNodes[R];
|
|
@@ -27974,9 +27974,9 @@ class _6 extends _i {
|
|
|
27974
27974
|
if (Xe(Je))
|
|
27975
27975
|
wt = ct(Je), ge(wt, M, F);
|
|
27976
27976
|
else if (qt(Je)) {
|
|
27977
|
-
const
|
|
27978
|
-
for (let pt = 0; pt <
|
|
27979
|
-
const Dt =
|
|
27977
|
+
const yt = dt.visualScenes[Je].children;
|
|
27978
|
+
for (let pt = 0; pt < yt.length; pt++) {
|
|
27979
|
+
const Dt = yt[pt];
|
|
27980
27980
|
if (Dt.type === "JOINT") {
|
|
27981
27981
|
const Et = ct(Dt.id);
|
|
27982
27982
|
ge(Et, M, F);
|
|
@@ -28015,29 +28015,29 @@ class _6 extends _i {
|
|
|
28015
28015
|
}
|
|
28016
28016
|
function Ie(x) {
|
|
28017
28017
|
const M = [], F = x.matrix, R = x.nodes, U = x.type, oe = x.instanceCameras, pe = x.instanceControllers, it = x.instanceLights, Be = x.instanceGeometries, Je = x.instanceNodes;
|
|
28018
|
-
for (let Ue = 0,
|
|
28018
|
+
for (let Ue = 0, yt = R.length; Ue < yt; Ue++)
|
|
28019
28019
|
M.push(ct(R[Ue]));
|
|
28020
|
-
for (let Ue = 0,
|
|
28020
|
+
for (let Ue = 0, yt = oe.length; Ue < yt; Ue++) {
|
|
28021
28021
|
const pt = rt(oe[Ue]);
|
|
28022
28022
|
pt !== null && M.push(pt.clone());
|
|
28023
28023
|
}
|
|
28024
|
-
for (let Ue = 0,
|
|
28025
|
-
const pt = pe[Ue], Dt = X(pt.id), Et =
|
|
28024
|
+
for (let Ue = 0, yt = pe.length; Ue < yt; Ue++) {
|
|
28025
|
+
const pt = pe[Ue], Dt = X(pt.id), Et = K(Dt.id), vn = He(Et, pt.materials), on = pt.skeletons, Zt = Dt.skin.joints, Qt = ne(on, Zt);
|
|
28026
28026
|
for (let Ei = 0, jn = vn.length; Ei < jn; Ei++) {
|
|
28027
28027
|
const Ts = vn[Ei];
|
|
28028
28028
|
Ts.isSkinnedMesh && (Ts.bind(Qt, Dt.skin.bindMatrix), Ts.normalizeSkinWeights()), M.push(Ts);
|
|
28029
28029
|
}
|
|
28030
28030
|
}
|
|
28031
|
-
for (let Ue = 0,
|
|
28031
|
+
for (let Ue = 0, yt = it.length; Ue < yt; Ue++) {
|
|
28032
28032
|
const pt = $(it[Ue]);
|
|
28033
28033
|
pt !== null && M.push(pt.clone());
|
|
28034
28034
|
}
|
|
28035
|
-
for (let Ue = 0,
|
|
28036
|
-
const pt = Be[Ue], Dt =
|
|
28035
|
+
for (let Ue = 0, yt = Be.length; Ue < yt; Ue++) {
|
|
28036
|
+
const pt = Be[Ue], Dt = K(pt.id), Et = He(Dt, pt.materials);
|
|
28037
28037
|
for (let vn = 0, on = Et.length; vn < on; vn++)
|
|
28038
28038
|
M.push(Et[vn]);
|
|
28039
28039
|
}
|
|
28040
|
-
for (let Ue = 0,
|
|
28040
|
+
for (let Ue = 0, yt = Je.length; Ue < yt; Ue++)
|
|
28041
28041
|
M.push(ct(Je[Ue]).clone());
|
|
28042
28042
|
let wt;
|
|
28043
28043
|
if (R.length === 0 && M.length === 1)
|
|
@@ -28069,8 +28069,8 @@ class _6 extends _i {
|
|
|
28069
28069
|
for (let Je = 0, wt = oe.length; Je < wt; Je++) {
|
|
28070
28070
|
const Ue = oe[Je];
|
|
28071
28071
|
if (Ue.isMeshPhongMaterial === !0 || Ue.isMeshLambertMaterial === !0) {
|
|
28072
|
-
const
|
|
28073
|
-
|
|
28072
|
+
const yt = new zi();
|
|
28073
|
+
yt.color.copy(Ue.color), yt.opacity = Ue.opacity, yt.transparent = Ue.transparent, oe[Je] = yt;
|
|
28074
28074
|
}
|
|
28075
28075
|
}
|
|
28076
28076
|
const pe = U.data.attributes.skinIndex !== void 0, it = oe.length === 1 ? oe[0] : oe;
|
|
@@ -28142,7 +28142,7 @@ class _6 extends _i {
|
|
|
28142
28142
|
}
|
|
28143
28143
|
} else
|
|
28144
28144
|
for (const M in x)
|
|
28145
|
-
Le.push(
|
|
28145
|
+
Le.push(J(M));
|
|
28146
28146
|
}
|
|
28147
28147
|
function Ht(x) {
|
|
28148
28148
|
let M = "";
|
|
@@ -28169,7 +28169,7 @@ class _6 extends _i {
|
|
|
28169
28169
|
Sn.setPath(this.resourcePath || t).setCrossOrigin(this.crossOrigin);
|
|
28170
28170
|
let gn;
|
|
28171
28171
|
N0 && (gn = new N0(this.manager), gn.setPath(this.resourcePath || t));
|
|
28172
|
-
const tt = new
|
|
28172
|
+
const tt = new Ct(), Le = [];
|
|
28173
28173
|
let xn = {}, An = 0;
|
|
28174
28174
|
const dt = {
|
|
28175
28175
|
animations: {},
|
|
@@ -28187,7 +28187,7 @@ class _6 extends _i {
|
|
|
28187
28187
|
physicsModels: {},
|
|
28188
28188
|
kinematicsScenes: {}
|
|
28189
28189
|
};
|
|
28190
|
-
h(Te, "library_animations", "animation", p), h(Te, "library_animation_clips", "animation_clip", H), h(Te, "library_controllers", "controller", de), h(Te, "library_images", "image", te), h(Te, "library_effects", "effect", j), h(Te, "library_materials", "material", re), h(Te, "library_cameras", "camera", _t), h(Te, "library_lights", "light", Pt), h(Te, "library_geometries", "geometry", Qe), h(Te, "library_nodes", "node", k), h(Te, "library_visual_scenes", "visual_scene", It), h(Te, "library_kinematics_models", "kinematics_model", q), h(Te, "library_physics_models", "physics_model", ee), h(Te, "scene", "instance_kinematics_scene", At), g(dt.animations, y), g(dt.clips, ae), g(dt.controllers, ie), g(dt.images, Q), g(dt.effects, B), g(dt.materials, Ce), g(dt.cameras, Pe), g(dt.lights, Ut), g(dt.geometries, Nt), g(dt.visualScenes, Vt), cn(),
|
|
28190
|
+
h(Te, "library_animations", "animation", p), h(Te, "library_animation_clips", "animation_clip", H), h(Te, "library_controllers", "controller", de), h(Te, "library_images", "image", te), h(Te, "library_effects", "effect", j), h(Te, "library_materials", "material", re), h(Te, "library_cameras", "camera", _t), h(Te, "library_lights", "light", Pt), h(Te, "library_geometries", "geometry", Qe), h(Te, "library_nodes", "node", k), h(Te, "library_visual_scenes", "visual_scene", It), h(Te, "library_kinematics_models", "kinematics_model", q), h(Te, "library_physics_models", "physics_model", ee), h(Te, "scene", "instance_kinematics_scene", At), g(dt.animations, y), g(dt.clips, ae), g(dt.controllers, ie), g(dt.images, Q), g(dt.effects, B), g(dt.materials, Ce), g(dt.cameras, Pe), g(dt.lights, Ut), g(dt.geometries, Nt), g(dt.visualScenes, Vt), cn(), vt();
|
|
28191
28191
|
const On = mt(n(Te, "scene")[0]);
|
|
28192
28192
|
return On.animations = Le, zt.upAxis === "Z_UP" && (console.warn("THREE.ColladaLoader: You are loading an asset with a Z-UP coordinate system. The loader just rotates the asset to transform it into Y-UP. The vertex data are not converted, see #24289."), On.rotation.set(-Math.PI / 2, 0, 0)), On.scale.multiplyScalar(zt.unit), {
|
|
28193
28193
|
get animations() {
|
|
@@ -28532,7 +28532,7 @@ class Hc {
|
|
|
28532
28532
|
No loader available`);
|
|
28533
28533
|
}
|
|
28534
28534
|
}
|
|
28535
|
-
const b6 = /^[og]\s*(.+)?/, S6 = /^mtllib /, A6 = /^usemtl /, w6 = /^usemap /, V0 = /\s+/, H0 = new I(), hl = new I(), G0 = new I(), W0 = new I(), ii = new I(), Ia = new
|
|
28535
|
+
const b6 = /^[og]\s*(.+)?/, S6 = /^mtllib /, A6 = /^usemtl /, w6 = /^usemap /, V0 = /\s+/, H0 = new I(), hl = new I(), G0 = new I(), W0 = new I(), ii = new I(), Ia = new Ct();
|
|
28536
28536
|
function E6() {
|
|
28537
28537
|
const s = {
|
|
28538
28538
|
objects: [],
|
|
@@ -29018,13 +29018,13 @@ class T6 {
|
|
|
29018
29018
|
switch (a.toLowerCase()) {
|
|
29019
29019
|
// Ns is material specular exponent
|
|
29020
29020
|
case "kd":
|
|
29021
|
-
i.color = jt.colorSpaceToWorking(new
|
|
29021
|
+
i.color = jt.colorSpaceToWorking(new Ct().fromArray(l), tn);
|
|
29022
29022
|
break;
|
|
29023
29023
|
case "ks":
|
|
29024
|
-
i.specular = jt.colorSpaceToWorking(new
|
|
29024
|
+
i.specular = jt.colorSpaceToWorking(new Ct().fromArray(l), tn);
|
|
29025
29025
|
break;
|
|
29026
29026
|
case "ke":
|
|
29027
|
-
i.emissive = jt.colorSpaceToWorking(new
|
|
29027
|
+
i.emissive = jt.colorSpaceToWorking(new Ct().fromArray(l), tn);
|
|
29028
29028
|
break;
|
|
29029
29029
|
case "map_kd":
|
|
29030
29030
|
o("map", l);
|
|
@@ -29077,7 +29077,7 @@ class T6 {
|
|
|
29077
29077
|
return t !== void 0 && (l.mapping = t), l;
|
|
29078
29078
|
}
|
|
29079
29079
|
}
|
|
29080
|
-
const ul = "http://
|
|
29080
|
+
const ul = "http://222.92.178.198:60000/chfs/shared/Insofrobot/urdf";
|
|
29081
29081
|
function $s(s) {
|
|
29082
29082
|
if (s == null || !isFinite(s)) return "";
|
|
29083
29083
|
const e = s / (1024 * 1024);
|
|
@@ -29318,7 +29318,7 @@ class Wu extends _i {
|
|
|
29318
29318
|
g.data === "ascii" ? g.offset[g.fields[L]] = L : (g.offset[g.fields[L]] = C, C += g.size[L] * g.count[L]);
|
|
29319
29319
|
return g.rowSize = C, g;
|
|
29320
29320
|
}
|
|
29321
|
-
const i = n(e), r = [], o = [], a = [], l = [], c = [], d = new
|
|
29321
|
+
const i = n(e), r = [], o = [], a = [], l = [], c = [], d = new Ct();
|
|
29322
29322
|
if (i.data === "ascii") {
|
|
29323
29323
|
const h = i.offset, p = new TextDecoder().decode(e).slice(i.headerLen).split(`
|
|
29324
29324
|
`);
|
|
@@ -29498,11 +29498,11 @@ function P6(s, e, t, n, i) {
|
|
|
29498
29498
|
case ".obj":
|
|
29499
29499
|
const v = await h.text();
|
|
29500
29500
|
if (f === ".txt" || f === ".cpt") {
|
|
29501
|
-
const j = /^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,
|
|
29501
|
+
const j = /^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm, be = [...v.matchAll(j)].map((z) => ({
|
|
29502
29502
|
x: parseFloat(z[1]),
|
|
29503
29503
|
y: parseFloat(z[2]),
|
|
29504
29504
|
z: parseFloat(z[3])
|
|
29505
|
-
})), Ye = new mn(), ke =
|
|
29505
|
+
})), Ye = new mn(), ke = be.flatMap((z) => [z.x, z.y, z.z]);
|
|
29506
29506
|
if (Ye.setAttribute("position", new Ot(ke, 3)), f === ".txt") {
|
|
29507
29507
|
const z = new Qi({
|
|
29508
29508
|
color: "#5B5C99",
|
|
@@ -29521,8 +29521,8 @@ function P6(s, e, t, n, i) {
|
|
|
29521
29521
|
const j = new bs();
|
|
29522
29522
|
if (g && g.length > 0) {
|
|
29523
29523
|
const ce = new Ss();
|
|
29524
|
-
for (const
|
|
29525
|
-
const Ye = await
|
|
29524
|
+
for (const be of g) {
|
|
29525
|
+
const Ye = await be.text(), ke = ce.parse(Ye);
|
|
29526
29526
|
ke.preload(), j.setMaterials(ke);
|
|
29527
29527
|
break;
|
|
29528
29528
|
}
|
|
@@ -29554,7 +29554,7 @@ function P6(s, e, t, n, i) {
|
|
|
29554
29554
|
"Mach_X_Axis_0.STL": "rgb(125,158,192)",
|
|
29555
29555
|
"Mach_Z_Axis_0.STL": "rgb(248,228,118)",
|
|
29556
29556
|
"Mach_Spindle_0.STL": "rgb(145,145,145)"
|
|
29557
|
-
}, A = new Vn(), S = C.map((j) => new Promise((ce,
|
|
29557
|
+
}, A = new Vn(), S = C.map((j) => new Promise((ce, be) => {
|
|
29558
29558
|
new ss().load(
|
|
29559
29559
|
X0.value === "" ? `/model/${j}` : `${X0.value}\\${j}`,
|
|
29560
29560
|
(ke) => {
|
|
@@ -29565,7 +29565,7 @@ function P6(s, e, t, n, i) {
|
|
|
29565
29565
|
ce(Mt);
|
|
29566
29566
|
},
|
|
29567
29567
|
void 0,
|
|
29568
|
-
|
|
29568
|
+
be
|
|
29569
29569
|
);
|
|
29570
29570
|
}));
|
|
29571
29571
|
try {
|
|
@@ -29587,12 +29587,12 @@ function P6(s, e, t, n, i) {
|
|
|
29587
29587
|
}
|
|
29588
29588
|
), ce = new Blob([j.data], {
|
|
29589
29589
|
type: "application/octet-stream;charset=UTF-8"
|
|
29590
|
-
}),
|
|
29590
|
+
}), be = await Ks.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd", {
|
|
29591
29591
|
responseType: "blob",
|
|
29592
29592
|
headers: {
|
|
29593
29593
|
"Content-Type": "application/json"
|
|
29594
29594
|
}
|
|
29595
|
-
}), Ye = new Blob([
|
|
29595
|
+
}), Ye = new Blob([be.data], {
|
|
29596
29596
|
type: "application/octet-stream;charset=UTF-8"
|
|
29597
29597
|
}), ke = await new Promise((Mt, ht) => {
|
|
29598
29598
|
const nt = URL.createObjectURL(ce);
|
|
@@ -29640,7 +29640,7 @@ function P6(s, e, t, n, i) {
|
|
|
29640
29640
|
// 共享材质
|
|
29641
29641
|
enableInstancing: !0
|
|
29642
29642
|
// 启用实例化
|
|
29643
|
-
}, ae = /* @__PURE__ */ new Map(),
|
|
29643
|
+
}, ae = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), de = /* @__PURE__ */ new Map(), xe = async (j) => {
|
|
29644
29644
|
if (ae.has(j))
|
|
29645
29645
|
return console.log(`从缓存加载: ${j}`), ae.get(j);
|
|
29646
29646
|
try {
|
|
@@ -29651,16 +29651,16 @@ function P6(s, e, t, n, i) {
|
|
|
29651
29651
|
},
|
|
29652
29652
|
timeout: 6e5
|
|
29653
29653
|
// 10秒超时
|
|
29654
|
-
}),
|
|
29654
|
+
}), be = new Blob([ce.data], {
|
|
29655
29655
|
type: "application/octet-stream;charset=UTF-8"
|
|
29656
29656
|
});
|
|
29657
|
-
return H.enableCache && ae.set(j,
|
|
29657
|
+
return H.enableCache && ae.set(j, be), be;
|
|
29658
29658
|
} catch (ce) {
|
|
29659
29659
|
throw console.error(`加载文件失败: ${j}`, ce), new Error(`无法加载文件: ${j}`);
|
|
29660
29660
|
}
|
|
29661
29661
|
}, ve = (j = "default") => {
|
|
29662
|
-
if (
|
|
29663
|
-
return
|
|
29662
|
+
if (J.has(j))
|
|
29663
|
+
return J.get(j);
|
|
29664
29664
|
const ce = new Mn({
|
|
29665
29665
|
color: 12303291,
|
|
29666
29666
|
shininess: 30,
|
|
@@ -29669,7 +29669,7 @@ function P6(s, e, t, n, i) {
|
|
|
29669
29669
|
alphaTest: 0.1,
|
|
29670
29670
|
side: ai
|
|
29671
29671
|
});
|
|
29672
|
-
return
|
|
29672
|
+
return J.set(j, ce), ce;
|
|
29673
29673
|
}, ue = (j) => {
|
|
29674
29674
|
try {
|
|
29675
29675
|
j.isBufferGeometry && j.mergeVertices && j.mergeVertices(), j.computeVertexNormals && j.computeVertexNormals(), j.computeBoundingSphere && j.computeBoundingSphere(), j.deleteAttribute && j.deleteAttribute("uv2");
|
|
@@ -29677,22 +29677,22 @@ function P6(s, e, t, n, i) {
|
|
|
29677
29677
|
console.warn("几何体优化失败,使用原始几何体:", ce);
|
|
29678
29678
|
}
|
|
29679
29679
|
return j;
|
|
29680
|
-
}, ie = async (j, ce,
|
|
29680
|
+
}, ie = async (j, ce, be) => {
|
|
29681
29681
|
const Ye = `stl_${ce}`;
|
|
29682
29682
|
if (de.has(Ye)) {
|
|
29683
29683
|
const ht = de.get(Ye);
|
|
29684
29684
|
return new kt(ht, ve());
|
|
29685
29685
|
}
|
|
29686
29686
|
const ke = await j.arrayBuffer();
|
|
29687
|
-
let Mt = new ss(
|
|
29687
|
+
let Mt = new ss(be).parse(ke);
|
|
29688
29688
|
return Mt = ue(Mt), de.set(Ye, Mt), new kt(Mt, ve());
|
|
29689
|
-
}, G = async (j, ce,
|
|
29689
|
+
}, G = async (j, ce, be) => {
|
|
29690
29690
|
const Ye = `obj_${ce}`;
|
|
29691
29691
|
if (ae.has(Ye))
|
|
29692
29692
|
return ae.get(Ye).clone();
|
|
29693
|
-
const ke = await j.text(), z = new bs(
|
|
29693
|
+
const ke = await j.text(), z = new bs(be), Mt = ce.replace(".obj", ".mtl");
|
|
29694
29694
|
try {
|
|
29695
|
-
const Fe = await (await xe(Mt)).text(), Re = new Ss(
|
|
29695
|
+
const Fe = await (await xe(Mt)).text(), Re = new Ss(be).parse(Fe);
|
|
29696
29696
|
Re.preload(), z.setMaterials(Re);
|
|
29697
29697
|
} catch {
|
|
29698
29698
|
console.warn(`MTL文件加载失败,使用默认材质: ${Mt}`);
|
|
@@ -29702,17 +29702,17 @@ function P6(s, e, t, n, i) {
|
|
|
29702
29702
|
nt.isMesh && (nt.geometry = ue(nt.geometry), nt.castShadow = !0, nt.receiveShadow = !0, nt.renderOrder = 1);
|
|
29703
29703
|
}), ae.set(Ye, ht), ht;
|
|
29704
29704
|
}, X = (j, ce) => {
|
|
29705
|
-
const
|
|
29706
|
-
if (
|
|
29705
|
+
const be = new yu();
|
|
29706
|
+
if (be.addLevel(j, 0), j.geometry) {
|
|
29707
29707
|
const Ye = j.geometry.clone(), ke = new kt(Ye, j.material);
|
|
29708
|
-
|
|
29708
|
+
be.addLevel(ke, 50);
|
|
29709
29709
|
}
|
|
29710
|
-
return
|
|
29710
|
+
return be;
|
|
29711
29711
|
};
|
|
29712
29712
|
let te = 0, Q = 0;
|
|
29713
29713
|
const le = [];
|
|
29714
|
-
Z.loadMeshCb = async (j, ce,
|
|
29715
|
-
const z = j.split("/").pop(), Mt =
|
|
29714
|
+
Z.loadMeshCb = async (j, ce, be, Ye, ke) => {
|
|
29715
|
+
const z = j.split("/").pop(), Mt = be || (() => {
|
|
29716
29716
|
});
|
|
29717
29717
|
te++;
|
|
29718
29718
|
const ht = new Promise(async (nt, Fe) => {
|
|
@@ -29755,11 +29755,11 @@ function P6(s, e, t, n, i) {
|
|
|
29755
29755
|
if (p = await Z.loadAsync(V), console.log(`URDF文件加载完成,等待${te}个mesh文件加载...`), le.length > 0)
|
|
29756
29756
|
try {
|
|
29757
29757
|
await Promise.allSettled(le), console.log(`所有mesh文件处理完成,成功加载: ${Q}/${te}`);
|
|
29758
|
-
} catch (
|
|
29759
|
-
console.warn("部分mesh文件加载失败,但继续显示模型",
|
|
29758
|
+
} catch (be) {
|
|
29759
|
+
console.warn("部分mesh文件加载失败,但继续显示模型", be);
|
|
29760
29760
|
}
|
|
29761
|
-
p.traverse((
|
|
29762
|
-
|
|
29761
|
+
p.traverse((be) => {
|
|
29762
|
+
be.isMesh && (be.castShadow = !0, be.receiveShadow = !0, be.renderOrder = 1, be.material && (be.material.needsUpdate = !0));
|
|
29763
29763
|
}), console.time("计算包围盒");
|
|
29764
29764
|
const j = new Xn();
|
|
29765
29765
|
j.expandByObject(p);
|
|
@@ -29941,9 +29941,9 @@ const L6 = { class: "panel-content" }, D6 = {
|
|
|
29941
29941
|
j.localX.applyMatrix4(ce), j.localZ.applyMatrix4(ce);
|
|
29942
29942
|
}
|
|
29943
29943
|
if (X > 0 && (j.pos.add(j.localY.clone().multiplyScalar(X * Ar)), G.push(j.pos.clone())), Q > 0 && le > 0) {
|
|
29944
|
-
const ce = _(Q),
|
|
29944
|
+
const ce = _(Q), be = le * Ar, Ye = j.pos.clone().add(j.localX.clone().multiplyScalar(-be)), ke = Math.max(16, Math.ceil(Q / 5));
|
|
29945
29945
|
for (let z = 1; z <= ke; z++) {
|
|
29946
|
-
const Mt = ce * z / ke, ht = new Tt().makeRotationAxis(j.localZ, Mt), Fe = j.localX.clone().multiplyScalar(
|
|
29946
|
+
const Mt = ce * z / ke, ht = new Tt().makeRotationAxis(j.localZ, Mt), Fe = j.localX.clone().multiplyScalar(be).applyMatrix4(ht), Ze = Ye.clone().add(Fe);
|
|
29947
29947
|
G.push(Ze);
|
|
29948
29948
|
}
|
|
29949
29949
|
}
|
|
@@ -29965,7 +29965,7 @@ const L6 = { class: "panel-content" }, D6 = {
|
|
|
29965
29965
|
j.push(new I(0, 0, 0));
|
|
29966
29966
|
const ce = new I(0, le * Ar, 0);
|
|
29967
29967
|
le > 0 && j.push(ce);
|
|
29968
|
-
let
|
|
29968
|
+
let be = {
|
|
29969
29969
|
pos: ce.clone(),
|
|
29970
29970
|
localY: new I(0, 1, 0),
|
|
29971
29971
|
localX: new I(1, 0, 0),
|
|
@@ -29977,19 +29977,19 @@ const L6 = { class: "panel-content" }, D6 = {
|
|
|
29977
29977
|
if (Mt.length > 0) {
|
|
29978
29978
|
const ht = Mt.map((Re) => {
|
|
29979
29979
|
const st = Re.clone(), nn = new Tt();
|
|
29980
|
-
return nn.makeBasis(
|
|
29980
|
+
return nn.makeBasis(be.localX, be.localY, be.localZ), st.applyMatrix4(nn), st.add(be.pos);
|
|
29981
29981
|
});
|
|
29982
29982
|
Ye.push(ht);
|
|
29983
29983
|
const nt = ht[ht.length - 1];
|
|
29984
|
-
|
|
29984
|
+
be.pos = nt.clone();
|
|
29985
29985
|
const Fe = z.B ?? 0, Ze = z.C ?? 0;
|
|
29986
29986
|
if (Fe !== 0) {
|
|
29987
|
-
const Re = new Tt().makeRotationAxis(
|
|
29988
|
-
|
|
29987
|
+
const Re = new Tt().makeRotationAxis(be.localY, _(Fe));
|
|
29988
|
+
be.localX.applyMatrix4(Re), be.localZ.applyMatrix4(Re);
|
|
29989
29989
|
}
|
|
29990
29990
|
if (Ze > 0) {
|
|
29991
|
-
const Re = _(Ze), st = new Tt().makeRotationAxis(
|
|
29992
|
-
|
|
29991
|
+
const Re = _(Ze), st = new Tt().makeRotationAxis(be.localZ, Re);
|
|
29992
|
+
be.localY.applyMatrix4(st), be.localX.applyMatrix4(st);
|
|
29993
29993
|
}
|
|
29994
29994
|
}
|
|
29995
29995
|
}
|
|
@@ -30086,16 +30086,16 @@ const L6 = { class: "panel-content" }, D6 = {
|
|
|
30086
30086
|
key: X.name,
|
|
30087
30087
|
class: "joint-item"
|
|
30088
30088
|
}, [
|
|
30089
|
-
|
|
30090
|
-
|
|
30091
|
-
|
|
30092
|
-
|
|
30089
|
+
xt("div", N6, [
|
|
30090
|
+
xt("div", z6, [
|
|
30091
|
+
xt("span", O6, Cn(X.name), 1),
|
|
30092
|
+
xt("span", B6, " [" + Cn(((te = X.limit) == null ? void 0 : te.lower.toFixed(2)) ?? (X.type === "revolute" ? "-3.14" : "-1.00")) + ", " + Cn(((Q = X.limit) == null ? void 0 : Q.upper.toFixed(2)) ?? (X.type === "revolute" ? "3.14" : "1.00")) + "] ", 1)
|
|
30093
30093
|
]),
|
|
30094
|
-
|
|
30094
|
+
xt("span", k6, Cn(X.type), 1)
|
|
30095
30095
|
]),
|
|
30096
30096
|
X.type === "revolute" || X.type === "prismatic" ? ($t(), pn("div", V6, [
|
|
30097
|
-
|
|
30098
|
-
|
|
30097
|
+
xt("div", H6, [
|
|
30098
|
+
xt("input", {
|
|
30099
30099
|
type: "range",
|
|
30100
30100
|
min: ((le = X.limit) == null ? void 0 : le.lower) ?? (X.type === "revolute" ? -Math.PI : -1),
|
|
30101
30101
|
max: ((j = X.limit) == null ? void 0 : j.upper) ?? (X.type === "revolute" ? Math.PI : 1),
|
|
@@ -30106,15 +30106,15 @@ const L6 = { class: "panel-content" }, D6 = {
|
|
|
30106
30106
|
disabled: d.value && !m.value
|
|
30107
30107
|
}, null, 40, G6)
|
|
30108
30108
|
]),
|
|
30109
|
-
|
|
30110
|
-
|
|
30111
|
-
|
|
30109
|
+
xt("div", W6, [
|
|
30110
|
+
xt("span", X6, Cn(X.currentValue ? Number(X.currentValue).toFixed(3) : "0.000"), 1),
|
|
30111
|
+
xt("span", j6, Cn(X.type === "revolute" ? "rad" : "m"), 1)
|
|
30112
30112
|
])
|
|
30113
30113
|
])) : ui("", !0)
|
|
30114
30114
|
]);
|
|
30115
30115
|
}), 128))
|
|
30116
30116
|
])) : ($t(), pn("div", q6, G[0] || (G[0] = [
|
|
30117
|
-
|
|
30117
|
+
xt("p", null, "未检测到可控制的关节", -1)
|
|
30118
30118
|
])))
|
|
30119
30119
|
]));
|
|
30120
30120
|
}
|
|
@@ -30195,7 +30195,7 @@ const L6 = { class: "panel-content" }, D6 = {
|
|
|
30195
30195
|
), (h, g) => {
|
|
30196
30196
|
const _ = Zn("el-tree");
|
|
30197
30197
|
return $t(), pn("div", K6, [
|
|
30198
|
-
|
|
30198
|
+
Rt(_, {
|
|
30199
30199
|
data: i.value,
|
|
30200
30200
|
props: r,
|
|
30201
30201
|
"default-expanded-keys": m.value,
|
|
@@ -30237,7 +30237,7 @@ const L6 = { class: "panel-content" }, D6 = {
|
|
|
30237
30237
|
style: $a(i.value),
|
|
30238
30238
|
"aria-hidden": "true"
|
|
30239
30239
|
}, [
|
|
30240
|
-
|
|
30240
|
+
xt("use", { "xlink:href": n.value }, null, 8, t5)
|
|
30241
30241
|
], 6))
|
|
30242
30242
|
], 6));
|
|
30243
30243
|
}
|
|
@@ -30333,8 +30333,8 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30333
30333
|
if (!ve || !ue) return;
|
|
30334
30334
|
ue.enabled = !0;
|
|
30335
30335
|
const ie = (j) => j < 0.5 ? 4 * j * j * j : 1 - Math.pow(-2 * j + 2, 3) / 2, G = ve.position.clone(), X = ue.target.clone(), te = 1500, Q = Date.now(), le = () => {
|
|
30336
|
-
const j = Date.now() - Q, ce = Math.min(j / te, 1),
|
|
30337
|
-
ve.position.lerpVectors(G, p.value,
|
|
30336
|
+
const j = Date.now() - Q, ce = Math.min(j / te, 1), be = ie(ce);
|
|
30337
|
+
ve.position.lerpVectors(G, p.value, be), ue.target.lerpVectors(X, f.value, be), ce < 1 ? requestAnimationFrame(le) : c.value = !1;
|
|
30338
30338
|
};
|
|
30339
30339
|
le();
|
|
30340
30340
|
}, ae = async () => r ? Promise.resolve() : new Promise((ve) => {
|
|
@@ -30342,7 +30342,7 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30342
30342
|
r ? ve() : requestAnimationFrame(ue);
|
|
30343
30343
|
};
|
|
30344
30344
|
ue();
|
|
30345
|
-
}),
|
|
30345
|
+
}), J = (ve) => {
|
|
30346
30346
|
d.value = !0, m.value = ve, ve === "剖面视图" && !P.value && V();
|
|
30347
30347
|
}, de = (ve) => {
|
|
30348
30348
|
u.value = !0, h.value = ve, ve === "动画仿真" && t("getAnimationData");
|
|
@@ -30377,145 +30377,145 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30377
30377
|
var G, X, te, Q;
|
|
30378
30378
|
const ie = Zn("el-scrollbar");
|
|
30379
30379
|
return $t(), pn("div", i5, [
|
|
30380
|
-
|
|
30380
|
+
xt("div", {
|
|
30381
30381
|
ref_key: "threejsContainer",
|
|
30382
30382
|
ref: o,
|
|
30383
30383
|
class: "threejs-container"
|
|
30384
30384
|
}, null, 512),
|
|
30385
|
-
|
|
30386
|
-
|
|
30385
|
+
xt("div", s5, [
|
|
30386
|
+
Rt(_n, {
|
|
30387
30387
|
name: "guanjianjiexi",
|
|
30388
30388
|
size: "34"
|
|
30389
30389
|
}),
|
|
30390
|
-
|
|
30390
|
+
Rt(_n, {
|
|
30391
30391
|
name: "guanjiekongzhi",
|
|
30392
30392
|
size: "34"
|
|
30393
30393
|
}),
|
|
30394
|
-
|
|
30394
|
+
Rt(_n, {
|
|
30395
30395
|
name: "gongyishengcheng",
|
|
30396
30396
|
size: "34"
|
|
30397
30397
|
}),
|
|
30398
|
-
|
|
30398
|
+
Rt(_n, {
|
|
30399
30399
|
name: "buchangshezhi",
|
|
30400
30400
|
size: "34"
|
|
30401
30401
|
}),
|
|
30402
|
-
|
|
30402
|
+
Rt(_n, {
|
|
30403
30403
|
name: "shuchujiagongchengxu",
|
|
30404
30404
|
size: "34"
|
|
30405
30405
|
})
|
|
30406
30406
|
]),
|
|
30407
|
-
|
|
30408
|
-
|
|
30407
|
+
xt("div", r5, [
|
|
30408
|
+
Rt(_n, {
|
|
30409
30409
|
name: "viewReset",
|
|
30410
30410
|
size: "24",
|
|
30411
30411
|
onClick: H,
|
|
30412
30412
|
title: "重置"
|
|
30413
30413
|
}),
|
|
30414
|
-
|
|
30414
|
+
Rt(_n, {
|
|
30415
30415
|
name: "fangda",
|
|
30416
30416
|
size: "24",
|
|
30417
30417
|
title: "放大"
|
|
30418
30418
|
}),
|
|
30419
|
-
|
|
30419
|
+
Rt(_n, {
|
|
30420
30420
|
name: "suoxiao",
|
|
30421
30421
|
size: "24",
|
|
30422
30422
|
title: "缩小"
|
|
30423
30423
|
}),
|
|
30424
|
-
|
|
30424
|
+
Rt(_n, {
|
|
30425
30425
|
name: "lookAround",
|
|
30426
30426
|
size: "24",
|
|
30427
30427
|
onClick: Tn(A),
|
|
30428
30428
|
title: Tn(L) ? "停止动画" : "动画视图"
|
|
30429
30429
|
}, null, 8, ["onClick", "title"])
|
|
30430
30430
|
]),
|
|
30431
|
-
|
|
30432
|
-
|
|
30431
|
+
xt("div", a5, [
|
|
30432
|
+
Rt(_n, {
|
|
30433
30433
|
name: "jiegoushu",
|
|
30434
30434
|
size: "24",
|
|
30435
|
-
onClick: ue[0] || (ue[0] = (le) =>
|
|
30435
|
+
onClick: ue[0] || (ue[0] = (le) => J("场景树")),
|
|
30436
30436
|
active: d.value && m.value === "场景树",
|
|
30437
30437
|
title: "场景树"
|
|
30438
30438
|
}, null, 8, ["active"]),
|
|
30439
|
-
|
|
30439
|
+
Rt(_n, {
|
|
30440
30440
|
name: "clipping",
|
|
30441
30441
|
size: "24",
|
|
30442
|
-
onClick: ue[1] || (ue[1] = (le) =>
|
|
30442
|
+
onClick: ue[1] || (ue[1] = (le) => J("剖面视图")),
|
|
30443
30443
|
active: d.value && m.value === "剖面视图",
|
|
30444
30444
|
title: "剖面视图"
|
|
30445
30445
|
}, null, 8, ["active"]),
|
|
30446
|
-
|
|
30446
|
+
Rt(_n, {
|
|
30447
30447
|
name: "donghuafangzhen",
|
|
30448
30448
|
size: "24",
|
|
30449
|
-
onClick: ue[2] || (ue[2] = (le) =>
|
|
30449
|
+
onClick: ue[2] || (ue[2] = (le) => J("场景树3"))
|
|
30450
30450
|
}),
|
|
30451
|
-
|
|
30451
|
+
Rt(_n, {
|
|
30452
30452
|
name: "donghuafangzhen",
|
|
30453
30453
|
size: "24",
|
|
30454
|
-
onClick: ue[3] || (ue[3] = (le) =>
|
|
30454
|
+
onClick: ue[3] || (ue[3] = (le) => J("场景4"))
|
|
30455
30455
|
})
|
|
30456
30456
|
]),
|
|
30457
|
-
|
|
30458
|
-
|
|
30457
|
+
xt("div", o5, [
|
|
30458
|
+
Rt(_n, {
|
|
30459
30459
|
name: "donghuafangzhen",
|
|
30460
30460
|
size: "24"
|
|
30461
30461
|
}),
|
|
30462
|
-
|
|
30462
|
+
Rt(_n, {
|
|
30463
30463
|
name: "donghuafangzhen",
|
|
30464
30464
|
size: "24"
|
|
30465
30465
|
}),
|
|
30466
|
-
|
|
30466
|
+
Rt(_n, {
|
|
30467
30467
|
name: "guanjiekongzhi",
|
|
30468
30468
|
size: "24",
|
|
30469
30469
|
onClick: ue[4] || (ue[4] = (le) => de("关节控制")),
|
|
30470
30470
|
active: u.value && h.value === "关节控制",
|
|
30471
30471
|
title: "关节控制"
|
|
30472
30472
|
}, null, 8, ["active"]),
|
|
30473
|
-
|
|
30473
|
+
Rt(_n, {
|
|
30474
30474
|
name: "donghuafangzhen",
|
|
30475
30475
|
size: "24",
|
|
30476
30476
|
title: "动画仿真",
|
|
30477
30477
|
onClick: ue[5] || (ue[5] = (le) => de("动画仿真")),
|
|
30478
30478
|
active: u.value && h.value === "动画仿真"
|
|
30479
30479
|
}, null, 8, ["active"]),
|
|
30480
|
-
|
|
30480
|
+
Rt(_n, {
|
|
30481
30481
|
name: "donghuafangzhen",
|
|
30482
30482
|
size: "24"
|
|
30483
30483
|
}),
|
|
30484
|
-
|
|
30484
|
+
Rt(_n, {
|
|
30485
30485
|
name: "donghuafangzhen",
|
|
30486
30486
|
size: "24"
|
|
30487
30487
|
})
|
|
30488
30488
|
]),
|
|
30489
|
-
|
|
30490
|
-
|
|
30489
|
+
xt("div", l5, [
|
|
30490
|
+
Rt(_n, {
|
|
30491
30491
|
name: "kuaitui",
|
|
30492
30492
|
size: "24",
|
|
30493
30493
|
backgroundColor: "#ffffff",
|
|
30494
30494
|
title: "快退",
|
|
30495
30495
|
onClick: (G = g.value) == null ? void 0 : G.fastBackward
|
|
30496
30496
|
}, null, 8, ["onClick"]),
|
|
30497
|
-
|
|
30497
|
+
Rt(_n, {
|
|
30498
30498
|
name: "bofang",
|
|
30499
30499
|
size: "24",
|
|
30500
30500
|
backgroundColor: "#ffffff",
|
|
30501
30501
|
title: "播放",
|
|
30502
30502
|
onClick: xe
|
|
30503
30503
|
}),
|
|
30504
|
-
|
|
30504
|
+
Rt(_n, {
|
|
30505
30505
|
name: "kuaijin",
|
|
30506
30506
|
size: "24",
|
|
30507
30507
|
backgroundColor: "#ffffff",
|
|
30508
30508
|
title: "快进",
|
|
30509
30509
|
onClick: (X = g.value) == null ? void 0 : X.fastForward
|
|
30510
30510
|
}, null, 8, ["onClick"]),
|
|
30511
|
-
|
|
30511
|
+
Rt(_n, {
|
|
30512
30512
|
name: "zanting",
|
|
30513
30513
|
size: "24",
|
|
30514
30514
|
backgroundColor: "#ffffff",
|
|
30515
30515
|
title: "暂停",
|
|
30516
30516
|
onClick: (te = g.value) == null ? void 0 : te.pauseAnimation
|
|
30517
30517
|
}, null, 8, ["onClick"]),
|
|
30518
|
-
|
|
30518
|
+
Rt(_n, {
|
|
30519
30519
|
name: "zhongzhi",
|
|
30520
30520
|
size: "24",
|
|
30521
30521
|
backgroundColor: "#ffffff",
|
|
@@ -30523,24 +30523,24 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30523
30523
|
onClick: (Q = g.value) == null ? void 0 : Q.resetAll
|
|
30524
30524
|
}, null, 8, ["onClick"])
|
|
30525
30525
|
]),
|
|
30526
|
-
Hi(
|
|
30527
|
-
|
|
30528
|
-
|
|
30529
|
-
|
|
30526
|
+
Hi(xt("div", c5, [
|
|
30527
|
+
xt("div", h5, [
|
|
30528
|
+
xt("span", null, Cn(m.value), 1),
|
|
30529
|
+
xt("span", {
|
|
30530
30530
|
class: "close",
|
|
30531
30531
|
onClick: ue[6] || (ue[6] = (le) => d.value = !1)
|
|
30532
30532
|
}, " X ")
|
|
30533
30533
|
]),
|
|
30534
|
-
|
|
30534
|
+
Rt(ie, { "max-height": "650px" }, {
|
|
30535
30535
|
default: en(() => [
|
|
30536
30536
|
m.value === "场景树" ? ($t(), hi(e5, {
|
|
30537
30537
|
key: 0,
|
|
30538
30538
|
model: Tn(se)
|
|
30539
30539
|
}, null, 8, ["model"])) : ui("", !0),
|
|
30540
30540
|
m.value === "剖面视图" ? ($t(), pn("div", u5, [
|
|
30541
|
-
|
|
30542
|
-
|
|
30543
|
-
Hi(
|
|
30541
|
+
xt("div", d5, [
|
|
30542
|
+
xt("label", f5, [
|
|
30543
|
+
Hi(xt("input", {
|
|
30544
30544
|
type: "radio",
|
|
30545
30545
|
name: "clipping-axis",
|
|
30546
30546
|
value: "none",
|
|
@@ -30549,10 +30549,10 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30549
30549
|
}, null, 544), [
|
|
30550
30550
|
[Wr, Tn(N)]
|
|
30551
30551
|
]),
|
|
30552
|
-
ue[16] || (ue[16] =
|
|
30552
|
+
ue[16] || (ue[16] = xt("span", { class: "radio-text" }, "无切割", -1))
|
|
30553
30553
|
]),
|
|
30554
|
-
|
|
30555
|
-
Hi(
|
|
30554
|
+
xt("label", p5, [
|
|
30555
|
+
Hi(xt("input", {
|
|
30556
30556
|
type: "radio",
|
|
30557
30557
|
name: "clipping-axis",
|
|
30558
30558
|
value: "x",
|
|
@@ -30561,10 +30561,10 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30561
30561
|
}, null, 544), [
|
|
30562
30562
|
[Wr, Tn(N)]
|
|
30563
30563
|
]),
|
|
30564
|
-
ue[17] || (ue[17] =
|
|
30564
|
+
ue[17] || (ue[17] = xt("span", { class: "radio-text" }, "X轴切割", -1))
|
|
30565
30565
|
]),
|
|
30566
|
-
|
|
30567
|
-
Hi(
|
|
30566
|
+
xt("label", m5, [
|
|
30567
|
+
Hi(xt("input", {
|
|
30568
30568
|
type: "radio",
|
|
30569
30569
|
name: "clipping-axis",
|
|
30570
30570
|
value: "y",
|
|
@@ -30573,10 +30573,10 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30573
30573
|
}, null, 544), [
|
|
30574
30574
|
[Wr, Tn(N)]
|
|
30575
30575
|
]),
|
|
30576
|
-
ue[18] || (ue[18] =
|
|
30576
|
+
ue[18] || (ue[18] = xt("span", { class: "radio-text" }, "Y轴切割", -1))
|
|
30577
30577
|
]),
|
|
30578
|
-
|
|
30579
|
-
Hi(
|
|
30578
|
+
xt("label", g5, [
|
|
30579
|
+
Hi(xt("input", {
|
|
30580
30580
|
type: "radio",
|
|
30581
30581
|
name: "clipping-axis",
|
|
30582
30582
|
value: "z",
|
|
@@ -30585,7 +30585,7 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30585
30585
|
}, null, 544), [
|
|
30586
30586
|
[Wr, Tn(N)]
|
|
30587
30587
|
]),
|
|
30588
|
-
ue[19] || (ue[19] =
|
|
30588
|
+
ue[19] || (ue[19] = xt("span", { class: "radio-text" }, "Z轴切割", -1))
|
|
30589
30589
|
])
|
|
30590
30590
|
])
|
|
30591
30591
|
])) : ui("", !0)
|
|
@@ -30595,17 +30595,17 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30595
30595
|
], 512), [
|
|
30596
30596
|
[Xr, d.value]
|
|
30597
30597
|
]),
|
|
30598
|
-
Hi(
|
|
30599
|
-
|
|
30600
|
-
|
|
30601
|
-
|
|
30598
|
+
Hi(xt("div", _5, [
|
|
30599
|
+
xt("div", v5, [
|
|
30600
|
+
xt("span", null, Cn(h.value), 1),
|
|
30601
|
+
xt("span", {
|
|
30602
30602
|
class: "close",
|
|
30603
30603
|
onClick: ue[15] || (ue[15] = (le) => u.value = !1)
|
|
30604
30604
|
}, " X ")
|
|
30605
30605
|
]),
|
|
30606
|
-
|
|
30606
|
+
Rt(ie, { "max-height": "650px" }, {
|
|
30607
30607
|
default: en(() => [
|
|
30608
|
-
Hi(
|
|
30608
|
+
Hi(Rt(J6, {
|
|
30609
30609
|
ref_key: "jointRef",
|
|
30610
30610
|
ref: g,
|
|
30611
30611
|
model: Tn(se),
|
|
@@ -30614,7 +30614,7 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30614
30614
|
}, null, 8, ["model", "scene", "animationData"]), [
|
|
30615
30615
|
[Xr, h.value === "关节控制"]
|
|
30616
30616
|
]),
|
|
30617
|
-
Hi(
|
|
30617
|
+
Hi(Rt(F6, { animationData: s.animationData }, null, 8, ["animationData"]), [
|
|
30618
30618
|
[Xr, h.value === "动画仿真"]
|
|
30619
30619
|
])
|
|
30620
30620
|
]),
|
|
@@ -30624,8 +30624,8 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30624
30624
|
[Xr, u.value]
|
|
30625
30625
|
]),
|
|
30626
30626
|
a.value ? ($t(), pn("div", y5, [
|
|
30627
|
-
ue[20] || (ue[20] =
|
|
30628
|
-
|
|
30627
|
+
ue[20] || (ue[20] = xt("div", { class: "loading-spinner" }, null, -1)),
|
|
30628
|
+
xt("p", null, Cn(l.value), 1)
|
|
30629
30629
|
])) : ui("", !0)
|
|
30630
30630
|
]);
|
|
30631
30631
|
};
|
|
@@ -30695,19 +30695,19 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30695
30695
|
var f;
|
|
30696
30696
|
const g = Zn("svg-icon"), _ = Zn("el-input"), p = Zn("el-button");
|
|
30697
30697
|
return $t(), pn("div", b5, [
|
|
30698
|
-
|
|
30698
|
+
xt("div", {
|
|
30699
30699
|
class: Ya(s.compName ? "table-name-wrap" : "")
|
|
30700
30700
|
}, Cn(s.compName), 3),
|
|
30701
|
-
|
|
30702
|
-
|
|
30703
|
-
|
|
30701
|
+
xt("div", S5, [
|
|
30702
|
+
xt("div", A5, [
|
|
30703
|
+
Rt(_2, {
|
|
30704
30704
|
title: "",
|
|
30705
30705
|
width: 800,
|
|
30706
30706
|
placement: "bottom-start",
|
|
30707
30707
|
isVisible: r.value
|
|
30708
30708
|
}, {
|
|
30709
30709
|
reference: en(() => [
|
|
30710
|
-
|
|
30710
|
+
Rt(_, {
|
|
30711
30711
|
modelValue: i.value,
|
|
30712
30712
|
"onUpdate:modelValue": h[1] || (h[1] = (v) => i.value = v),
|
|
30713
30713
|
style: { width: "240px" },
|
|
@@ -30717,8 +30717,8 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30717
30717
|
onInput: l
|
|
30718
30718
|
}, {
|
|
30719
30719
|
append: en(() => [
|
|
30720
|
-
|
|
30721
|
-
|
|
30720
|
+
xt("span", w5, [
|
|
30721
|
+
Rt(g, {
|
|
30722
30722
|
onClick: h[0] || (h[0] = (v) => r.value = !r.value),
|
|
30723
30723
|
name: "query",
|
|
30724
30724
|
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
@@ -30729,7 +30729,7 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30729
30729
|
}, 8, ["modelValue", "prefix-icon"])
|
|
30730
30730
|
]),
|
|
30731
30731
|
content: en(() => [
|
|
30732
|
-
|
|
30732
|
+
xt("div", E5, [
|
|
30733
30733
|
($t(), hi(Ja, {
|
|
30734
30734
|
rowContents: o.value,
|
|
30735
30735
|
buttonValue: a.value,
|
|
@@ -30750,7 +30750,7 @@ const i5 = { class: "obj-viewer-container" }, s5 = { class: "buttonGroup-top" },
|
|
|
30750
30750
|
class: "extra-contents",
|
|
30751
30751
|
key: y
|
|
30752
30752
|
}, [
|
|
30753
|
-
|
|
30753
|
+
Rt(p, {
|
|
30754
30754
|
id: "themeButton",
|
|
30755
30755
|
style: $a({ background: (v == null ? void 0 : v.background) ?? "var(--ssbutton-theme-bg)", color: "var(--ssbutton-theme-color)" }),
|
|
30756
30756
|
onClick: (b) => c(v == null ? void 0 : v.label)
|
|
@@ -30909,11 +30909,11 @@ function d8(s, e, t, n, i) {
|
|
|
30909
30909
|
case ".obj":
|
|
30910
30910
|
const v = await h.text();
|
|
30911
30911
|
if (f === ".txt" || f === ".cpt") {
|
|
30912
|
-
const j = /^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm,
|
|
30912
|
+
const j = /^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm, be = [...v.matchAll(j)].map((z) => ({
|
|
30913
30913
|
x: parseFloat(z[1]),
|
|
30914
30914
|
y: parseFloat(z[2]),
|
|
30915
30915
|
z: parseFloat(z[3])
|
|
30916
|
-
})), Ye = new mn(), ke =
|
|
30916
|
+
})), Ye = new mn(), ke = be.flatMap((z) => [z.x, z.y, z.z]);
|
|
30917
30917
|
if (Ye.setAttribute("position", new Ot(ke, 3)), f === ".txt") {
|
|
30918
30918
|
const z = new Qi({
|
|
30919
30919
|
color: "#5B5C99",
|
|
@@ -30932,8 +30932,8 @@ function d8(s, e, t, n, i) {
|
|
|
30932
30932
|
const j = new bs();
|
|
30933
30933
|
if (g && g.length > 0) {
|
|
30934
30934
|
const ce = new Ss();
|
|
30935
|
-
for (const
|
|
30936
|
-
const Ye = await
|
|
30935
|
+
for (const be of g) {
|
|
30936
|
+
const Ye = await be.text(), ke = ce.parse(Ye);
|
|
30937
30937
|
ke.preload(), j.setMaterials(ke);
|
|
30938
30938
|
break;
|
|
30939
30939
|
}
|
|
@@ -30965,7 +30965,7 @@ function d8(s, e, t, n, i) {
|
|
|
30965
30965
|
"Mach_X_Axis_0.STL": "rgb(125,158,192)",
|
|
30966
30966
|
"Mach_Z_Axis_0.STL": "rgb(248,228,118)",
|
|
30967
30967
|
"Mach_Spindle_0.STL": "rgb(145,145,145)"
|
|
30968
|
-
}, A = new Vn(), S = C.map((j) => new Promise((ce,
|
|
30968
|
+
}, A = new Vn(), S = C.map((j) => new Promise((ce, be) => {
|
|
30969
30969
|
new ss().load(
|
|
30970
30970
|
q0.value === "" ? `/model/${j}` : `${q0.value}\\${j}`,
|
|
30971
30971
|
(ke) => {
|
|
@@ -30976,7 +30976,7 @@ function d8(s, e, t, n, i) {
|
|
|
30976
30976
|
ce(Mt);
|
|
30977
30977
|
},
|
|
30978
30978
|
void 0,
|
|
30979
|
-
|
|
30979
|
+
be
|
|
30980
30980
|
);
|
|
30981
30981
|
}));
|
|
30982
30982
|
try {
|
|
@@ -30998,12 +30998,12 @@ function d8(s, e, t, n, i) {
|
|
|
30998
30998
|
}
|
|
30999
30999
|
), ce = new Blob([j.data], {
|
|
31000
31000
|
type: "application/octet-stream;charset=UTF-8"
|
|
31001
|
-
}),
|
|
31001
|
+
}), be = await Ks.get("http://139.196.154.85:20026/chfs/shared/重大专项/重大专项文件/final.pcd", {
|
|
31002
31002
|
responseType: "blob",
|
|
31003
31003
|
headers: {
|
|
31004
31004
|
"Content-Type": "application/json"
|
|
31005
31005
|
}
|
|
31006
|
-
}), Ye = new Blob([
|
|
31006
|
+
}), Ye = new Blob([be.data], {
|
|
31007
31007
|
type: "application/octet-stream;charset=UTF-8"
|
|
31008
31008
|
}), ke = await new Promise((Mt, ht) => {
|
|
31009
31009
|
const nt = URL.createObjectURL(ce);
|
|
@@ -31051,7 +31051,7 @@ function d8(s, e, t, n, i) {
|
|
|
31051
31051
|
// 共享材质
|
|
31052
31052
|
enableInstancing: !0
|
|
31053
31053
|
// 启用实例化
|
|
31054
|
-
}, ae = /* @__PURE__ */ new Map(),
|
|
31054
|
+
}, ae = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), de = /* @__PURE__ */ new Map(), xe = async (j) => {
|
|
31055
31055
|
if (ae.has(j))
|
|
31056
31056
|
return console.log(`从缓存加载: ${j}`), ae.get(j);
|
|
31057
31057
|
try {
|
|
@@ -31062,16 +31062,16 @@ function d8(s, e, t, n, i) {
|
|
|
31062
31062
|
},
|
|
31063
31063
|
timeout: 6e5
|
|
31064
31064
|
// 10秒超时
|
|
31065
|
-
}),
|
|
31065
|
+
}), be = new Blob([ce.data], {
|
|
31066
31066
|
type: "application/octet-stream;charset=UTF-8"
|
|
31067
31067
|
});
|
|
31068
|
-
return H.enableCache && ae.set(j,
|
|
31068
|
+
return H.enableCache && ae.set(j, be), be;
|
|
31069
31069
|
} catch (ce) {
|
|
31070
31070
|
throw console.error(`加载文件失败: ${j}`, ce), new Error(`无法加载文件: ${j}`);
|
|
31071
31071
|
}
|
|
31072
31072
|
}, ve = (j = "default") => {
|
|
31073
|
-
if (
|
|
31074
|
-
return
|
|
31073
|
+
if (J.has(j))
|
|
31074
|
+
return J.get(j);
|
|
31075
31075
|
const ce = new Mn({
|
|
31076
31076
|
color: 12303291,
|
|
31077
31077
|
shininess: 30,
|
|
@@ -31080,7 +31080,7 @@ function d8(s, e, t, n, i) {
|
|
|
31080
31080
|
alphaTest: 0.1,
|
|
31081
31081
|
side: ai
|
|
31082
31082
|
});
|
|
31083
|
-
return
|
|
31083
|
+
return J.set(j, ce), ce;
|
|
31084
31084
|
}, ue = (j) => {
|
|
31085
31085
|
try {
|
|
31086
31086
|
j.isBufferGeometry && j.mergeVertices && j.mergeVertices(), j.computeVertexNormals && j.computeVertexNormals(), j.computeBoundingSphere && j.computeBoundingSphere(), j.deleteAttribute && j.deleteAttribute("uv2");
|
|
@@ -31088,22 +31088,22 @@ function d8(s, e, t, n, i) {
|
|
|
31088
31088
|
console.warn("几何体优化失败,使用原始几何体:", ce);
|
|
31089
31089
|
}
|
|
31090
31090
|
return j;
|
|
31091
|
-
}, ie = async (j, ce,
|
|
31091
|
+
}, ie = async (j, ce, be) => {
|
|
31092
31092
|
const Ye = `stl_${ce}`;
|
|
31093
31093
|
if (de.has(Ye)) {
|
|
31094
31094
|
const ht = de.get(Ye);
|
|
31095
31095
|
return new kt(ht, ve());
|
|
31096
31096
|
}
|
|
31097
31097
|
const ke = await j.arrayBuffer();
|
|
31098
|
-
let Mt = new ss(
|
|
31098
|
+
let Mt = new ss(be).parse(ke);
|
|
31099
31099
|
return Mt = ue(Mt), de.set(Ye, Mt), new kt(Mt, ve());
|
|
31100
|
-
}, G = async (j, ce,
|
|
31100
|
+
}, G = async (j, ce, be) => {
|
|
31101
31101
|
const Ye = `obj_${ce}`;
|
|
31102
31102
|
if (ae.has(Ye))
|
|
31103
31103
|
return ae.get(Ye).clone();
|
|
31104
|
-
const ke = await j.text(), z = new bs(
|
|
31104
|
+
const ke = await j.text(), z = new bs(be), Mt = ce.replace(".obj", ".mtl");
|
|
31105
31105
|
try {
|
|
31106
|
-
const Fe = await (await xe(Mt)).text(), Re = new Ss(
|
|
31106
|
+
const Fe = await (await xe(Mt)).text(), Re = new Ss(be).parse(Fe);
|
|
31107
31107
|
Re.preload(), z.setMaterials(Re);
|
|
31108
31108
|
} catch {
|
|
31109
31109
|
console.warn(`MTL文件加载失败,使用默认材质: ${Mt}`);
|
|
@@ -31113,17 +31113,17 @@ function d8(s, e, t, n, i) {
|
|
|
31113
31113
|
nt.isMesh && (nt.geometry = ue(nt.geometry), nt.castShadow = !0, nt.receiveShadow = !0, nt.renderOrder = 1);
|
|
31114
31114
|
}), ae.set(Ye, ht), ht;
|
|
31115
31115
|
}, X = (j, ce) => {
|
|
31116
|
-
const
|
|
31117
|
-
if (
|
|
31116
|
+
const be = new yu();
|
|
31117
|
+
if (be.addLevel(j, 0), j.geometry) {
|
|
31118
31118
|
const Ye = j.geometry.clone(), ke = new kt(Ye, j.material);
|
|
31119
|
-
|
|
31119
|
+
be.addLevel(ke, 50);
|
|
31120
31120
|
}
|
|
31121
|
-
return
|
|
31121
|
+
return be;
|
|
31122
31122
|
};
|
|
31123
31123
|
let te = 0, Q = 0;
|
|
31124
31124
|
const le = [];
|
|
31125
|
-
Z.loadMeshCb = async (j, ce,
|
|
31126
|
-
const z = j.split("/").pop(), Mt =
|
|
31125
|
+
Z.loadMeshCb = async (j, ce, be, Ye, ke) => {
|
|
31126
|
+
const z = j.split("/").pop(), Mt = be || (() => {
|
|
31127
31127
|
});
|
|
31128
31128
|
te++;
|
|
31129
31129
|
const ht = new Promise(async (nt, Fe) => {
|
|
@@ -31166,11 +31166,11 @@ function d8(s, e, t, n, i) {
|
|
|
31166
31166
|
if (p = await Z.loadAsync(V), console.log(`URDF文件加载完成,等待${te}个mesh文件加载...`), le.length > 0)
|
|
31167
31167
|
try {
|
|
31168
31168
|
await Promise.allSettled(le), console.log(`所有mesh文件处理完成,成功加载: ${Q}/${te}`);
|
|
31169
|
-
} catch (
|
|
31170
|
-
console.warn("部分mesh文件加载失败,但继续显示模型",
|
|
31169
|
+
} catch (be) {
|
|
31170
|
+
console.warn("部分mesh文件加载失败,但继续显示模型", be);
|
|
31171
31171
|
}
|
|
31172
|
-
p.traverse((
|
|
31173
|
-
|
|
31172
|
+
p.traverse((be) => {
|
|
31173
|
+
be.isMesh && (be.castShadow = !0, be.receiveShadow = !0, be.renderOrder = 1, be.material && (be.material.needsUpdate = !0));
|
|
31174
31174
|
}), console.time("计算包围盒");
|
|
31175
31175
|
const j = new Xn();
|
|
31176
31176
|
j.expandByObject(p);
|
|
@@ -31288,14 +31288,14 @@ const F5 = ao("formToTableComp", {
|
|
|
31288
31288
|
}
|
|
31289
31289
|
];
|
|
31290
31290
|
}), (n, i) => ($t(), pn("div", U5, [
|
|
31291
|
-
|
|
31292
|
-
|
|
31291
|
+
xt("div", I5, [
|
|
31292
|
+
Rt(Ja, {
|
|
31293
31293
|
rowContents: e.value,
|
|
31294
31294
|
isRowFlex: !0
|
|
31295
31295
|
}, null, 8, ["rowContents"])
|
|
31296
31296
|
]),
|
|
31297
|
-
|
|
31298
|
-
|
|
31297
|
+
xt("div", N5, [
|
|
31298
|
+
Rt(Ja, {
|
|
31299
31299
|
rowContents: t.value,
|
|
31300
31300
|
isEdit: !1,
|
|
31301
31301
|
isRowFlex: !0
|
|
@@ -31462,42 +31462,42 @@ const F5 = ao("formToTableComp", {
|
|
|
31462
31462
|
je();
|
|
31463
31463
|
const b = je(!0), D = je(0), T = je(!1), C = je(""), L = je(!1), A = je({
|
|
31464
31464
|
label: "查看三维模型"
|
|
31465
|
-
}), S = je(!1), P = je(), N = je([]), V = je([]), Z = je(!1), se = je(), H = je([]), ae = je([]),
|
|
31466
|
-
Ye.value =
|
|
31467
|
-
}, ht = (
|
|
31465
|
+
}), S = je(!1), P = je(), N = je([]), V = je([]), Z = je(!1), se = je(), H = je([]), ae = je([]), J = je([]), de = je(), xe = je(), ve = F5(Ji), ue = je(), ie = B5(Ji), { selectIndex: G, selectMenu: X, selectTitle: te } = _s(ie), { selectString: Q } = _s(ve), le = m2(Ji), { loginUserInfo: j } = _s(le), ce = je(720), be = je(!1), Ye = je([]), ke = je(), z = je(!0), Mt = (K) => {
|
|
31466
|
+
Ye.value = K;
|
|
31467
|
+
}, ht = (K, q) => {
|
|
31468
31468
|
ke.value === q ? z.value = !1 : z.value = !0, ke.value = q == null ? void 0 : q.changeProp;
|
|
31469
31469
|
}, nt = xs(() => {
|
|
31470
|
-
var
|
|
31471
|
-
return (
|
|
31470
|
+
var K;
|
|
31471
|
+
return (K = a.value) == null ? void 0 : K.filter((q) => (q == null ? void 0 : q.label) !== "操作");
|
|
31472
31472
|
}), Fe = () => {
|
|
31473
31473
|
L.value = !1;
|
|
31474
|
-
}, Ze = (
|
|
31475
|
-
o("clickTrigger",
|
|
31476
|
-
}, Re = async (
|
|
31477
|
-
var
|
|
31478
|
-
const q =
|
|
31479
|
-
if ((
|
|
31474
|
+
}, Ze = (K) => {
|
|
31475
|
+
o("clickTrigger", K);
|
|
31476
|
+
}, Re = async (K) => {
|
|
31477
|
+
var Se, Ae, me, Oe, _e, we, We, ee, Ve, St;
|
|
31478
|
+
const q = K == null ? void 0 : K.row;
|
|
31479
|
+
if ((Se = q == null ? void 0 : q.toString()) != null && Se.includes(".urdf")) {
|
|
31480
31480
|
se.value = q, c.value = !0;
|
|
31481
31481
|
return;
|
|
31482
31482
|
}
|
|
31483
31483
|
let he = [];
|
|
31484
|
-
if ((
|
|
31484
|
+
if ((Ae = q == null ? void 0 : q.toString()) != null && Ae.includes(".stl") || (me = q == null ? void 0 : q.toString()) != null && me.includes(".STL") || (Oe = q == null ? void 0 : q.toString()) != null && Oe.includes(".obj") || (_e = q == null ? void 0 : q.toString()) != null && _e.includes(".mtl")) {
|
|
31485
31485
|
let At, Jt = [], Kt = {};
|
|
31486
31486
|
if (Array.isArray(q) ? At = q : At = q == null ? void 0 : q.split(","), At == null || At.forEach((lt) => {
|
|
31487
31487
|
lt.includes(".mtl") ? Jt.push(lt) : Kt.blob = Kt.blob ? Kt.blob + "," + lt : lt;
|
|
31488
|
-
}), (Jt == null ? void 0 : Jt.length) > 0 && (Kt.mtlBlobs = Jt), (We = (
|
|
31488
|
+
}), (Jt == null ? void 0 : Jt.length) > 0 && (Kt.mtlBlobs = Jt), (We = (we = Object.values(Kt)) == null ? void 0 : we[0]) != null && We.includes("http:"))
|
|
31489
31489
|
he.push(Kt);
|
|
31490
31490
|
else {
|
|
31491
31491
|
const lt = new Blob([Kt.blob], {
|
|
31492
31492
|
type: "application/octet-stream;charset=UTF-8"
|
|
31493
31493
|
});
|
|
31494
|
-
let
|
|
31494
|
+
let vt = URL.createObjectURL(lt), Ee = "";
|
|
31495
31495
|
(ee = q == null ? void 0 : q.split("/")) == null || ee.forEach((w, O) => {
|
|
31496
31496
|
var Y;
|
|
31497
|
-
O === ((Y = q == null ? void 0 : q.split("/")) == null ? void 0 : Y.length) - 1 && (
|
|
31498
|
-
}), (Ve = Kt.blob) != null && Ve.includes(".stl") && (
|
|
31499
|
-
name:
|
|
31500
|
-
blobUrl:
|
|
31497
|
+
O === ((Y = q == null ? void 0 : q.split("/")) == null ? void 0 : Y.length) - 1 && (Ee = w);
|
|
31498
|
+
}), (Ve = Kt.blob) != null && Ve.includes(".stl") && (Ee = (Ee == null ? void 0 : Ee.replaceAll(">", "")) + ".urdf"), u.value = [{
|
|
31499
|
+
name: Ee,
|
|
31500
|
+
blobUrl: vt
|
|
31501
31501
|
}], m.value = !0;
|
|
31502
31502
|
}
|
|
31503
31503
|
} else {
|
|
@@ -31510,101 +31510,101 @@ const F5 = ao("formToTableComp", {
|
|
|
31510
31510
|
type: "application/octet-stream;charset=UTF-8"
|
|
31511
31511
|
});
|
|
31512
31512
|
let Kt = URL.createObjectURL(Jt), lt = "";
|
|
31513
|
-
(St = q == null ? void 0 : q.split("/")) == null || St.forEach((
|
|
31513
|
+
(St = q == null ? void 0 : q.split("/")) == null || St.forEach((vt, Ee) => {
|
|
31514
31514
|
var w;
|
|
31515
|
-
|
|
31515
|
+
Ee === ((w = q == null ? void 0 : q.split("/")) == null ? void 0 : w.length) - 1 && (lt = vt);
|
|
31516
31516
|
}), u.value = [{
|
|
31517
31517
|
name: lt,
|
|
31518
31518
|
blobUrl: Kt
|
|
31519
31519
|
}], m.value = !0;
|
|
31520
31520
|
}
|
|
31521
31521
|
(he == null ? void 0 : he.length) > 0 && n.setBlobUrls(he);
|
|
31522
|
-
}, st = (
|
|
31522
|
+
}, st = (K, q) => {
|
|
31523
31523
|
if (Object.values(q).length !== 0)
|
|
31524
31524
|
return Object.values(q).find((he) => {
|
|
31525
|
-
var
|
|
31526
|
-
return ((
|
|
31527
|
-
}) ? [...
|
|
31528
|
-
}, nn = (
|
|
31529
|
-
var
|
|
31530
|
-
Q.value === "" ?
|
|
31531
|
-
let q =
|
|
31532
|
-
(
|
|
31525
|
+
var Se, Ae, me;
|
|
31526
|
+
return ((Se = he == null ? void 0 : he.toString()) == null ? void 0 : Se.includes(".txt")) || ((Ae = he == null ? void 0 : he.toString()) == null ? void 0 : Ae.includes(".cpt")) || ((me = he == null ? void 0 : he.toString()) == null ? void 0 : me.includes(".obj"));
|
|
31527
|
+
}) ? [...K, A.value] : K;
|
|
31528
|
+
}, nn = (K) => {
|
|
31529
|
+
var Ae;
|
|
31530
|
+
Q.value === "" ? K == null || K[0] : (K == null ? void 0 : K.find((me) => (me == null ? void 0 : me.selectLabel) === "(" + Q.value + ")")) ?? (K == null || K.find((me) => !(me != null && me.selectLabel)));
|
|
31531
|
+
let q = K;
|
|
31532
|
+
(Ae = a.value) != null && Ae.find((me) => me.prop === "index");
|
|
31533
31533
|
let he = de.value;
|
|
31534
|
-
const
|
|
31534
|
+
const Se = [];
|
|
31535
31535
|
return q == null || q.forEach((me, Oe) => {
|
|
31536
|
-
var
|
|
31536
|
+
var we;
|
|
31537
31537
|
let _e = {};
|
|
31538
31538
|
if (Array.isArray(me)) {
|
|
31539
31539
|
let We = [];
|
|
31540
31540
|
me == null || me.filter((ee) => !(ee != null && ee.id)).forEach((ee, Ve) => {
|
|
31541
31541
|
var St, At, Jt, Kt, lt;
|
|
31542
31542
|
if ((St = he == null ? void 0 : he[Ve]) != null && St.prop && !Array.isArray(ee)) {
|
|
31543
|
-
let
|
|
31544
|
-
|
|
31543
|
+
let vt = {};
|
|
31544
|
+
vt[he[Ve].column] = ee, f != null && f.value && ((At = f == null ? void 0 : f.value) == null ? void 0 : At.length) > 0 && ((Jt = f == null ? void 0 : f.value) != null && Jt.find((Ee) => JSON.stringify(Ee == null ? void 0 : Ee[0]) === JSON.stringify(vt))) && (We = (Kt = f == null ? void 0 : f.value) == null ? void 0 : Kt.find((Ee) => JSON.stringify(Ee == null ? void 0 : Ee[0]) === JSON.stringify(vt))), We && We.length > 0 ? _e[he[Ve].prop] = We != null && We.find((Ee) => {
|
|
31545
31545
|
var w;
|
|
31546
|
-
return ((w = Object.keys(
|
|
31547
|
-
}) ? (lt = We == null ? void 0 : We.find((
|
|
31546
|
+
return ((w = Object.keys(Ee)) == null ? void 0 : w[0]) === he[Ve].column;
|
|
31547
|
+
}) ? (lt = We == null ? void 0 : We.find((Ee) => {
|
|
31548
31548
|
var w;
|
|
31549
|
-
return ((w = Object.keys(
|
|
31549
|
+
return ((w = Object.keys(Ee)) == null ? void 0 : w[0]) === he[Ve].column;
|
|
31550
31550
|
})) == null ? void 0 : lt[he[Ve].column] : ee : _e[he[Ve].prop] = ee;
|
|
31551
31551
|
}
|
|
31552
31552
|
});
|
|
31553
31553
|
} else
|
|
31554
31554
|
_e = me;
|
|
31555
|
-
Array.isArray(me) && me.some((We) => We == null ? void 0 : We.id) ?
|
|
31556
|
-
}),
|
|
31557
|
-
}, B = async (
|
|
31558
|
-
var
|
|
31555
|
+
Array.isArray(me) && me.some((We) => We == null ? void 0 : We.id) ? Se.push(Object.assign(_e, { id: (we = me == null ? void 0 : me.find((We) => We.id)) == null ? void 0 : we.id })) : _e.id ? Se.push(_e) : Se.push(Object.assign(_e, { id: Oe }));
|
|
31556
|
+
}), Se;
|
|
31557
|
+
}, B = async (K) => {
|
|
31558
|
+
var Ae, me, Oe, _e, we;
|
|
31559
31559
|
let q = {};
|
|
31560
|
-
for (let We in
|
|
31561
|
-
|
|
31560
|
+
for (let We in K)
|
|
31561
|
+
K[We] !== "" && (q["tableData." + We] = K[We]);
|
|
31562
31562
|
const he = await d2({
|
|
31563
31563
|
type: "data",
|
|
31564
31564
|
tableId: r == null ? void 0 : r.index,
|
|
31565
31565
|
systemKey: sessionStorage.getItem("systemKey"),
|
|
31566
31566
|
pageKey: g.value
|
|
31567
|
-
}, q),
|
|
31567
|
+
}, q), Se = (Oe = (me = (Ae = at(he)) == null ? void 0 : Ae.data) == null ? void 0 : me.result) == null ? void 0 : Oe.map((We) => {
|
|
31568
31568
|
var Ve;
|
|
31569
31569
|
let ee = [];
|
|
31570
31570
|
return ee.push({
|
|
31571
31571
|
id: We.id
|
|
31572
31572
|
}), ee.push((Ve = We == null ? void 0 : We.value) == null ? void 0 : Ve.tableData), ee;
|
|
31573
31573
|
});
|
|
31574
|
-
v.value = nn(f2(
|
|
31575
|
-
}, E = async (
|
|
31576
|
-
var
|
|
31577
|
-
const q = (
|
|
31574
|
+
v.value = nn(f2(Se, (we = (_e = at(a.value)) == null ? void 0 : _e.map((We) => We.label)) == null ? void 0 : we.filter((We) => We !== "操作")));
|
|
31575
|
+
}, E = async (K) => {
|
|
31576
|
+
var Se, Ae, me, Oe, _e, we, We, ee, Ve, St, At, Jt, Kt, lt;
|
|
31577
|
+
const q = (Se = at(a.value)) == null ? void 0 : Se.filter((vt) => vt == null ? void 0 : vt.isRoute);
|
|
31578
31578
|
if ((q == null ? void 0 : q.length) > 0) {
|
|
31579
|
-
let
|
|
31579
|
+
let vt = (Ae = q == null ? void 0 : q[0]) == null ? void 0 : Ae.prop, Ee = at(g).value + "/" + (K == null ? void 0 : K[vt]), w = at(g).value, O = await jr(Ee, sessionStorage.getItem("systemKey"), "");
|
|
31580
31580
|
if ((O == null ? void 0 : O.length) > 0)
|
|
31581
|
-
await qr(
|
|
31581
|
+
await qr(Ee, Ee + `/updateLoading${(me = j.value) == null ? void 0 : me.account}`), p.setRouteToChildPath(w), h.setActiveMenuPath(Ee + `/updateLoading${(Oe = j.value) == null ? void 0 : Oe.account}`);
|
|
31582
31582
|
else {
|
|
31583
|
-
let Y = (_e = q == null ? void 0 : q[0]) == null ? void 0 : _e.prop, k = at(g).value + "/" + (
|
|
31584
|
-
await jr(W + "/", sessionStorage.getItem("systemKey"), ""), await qr(W + "/", k), await qr(k, k + `/updateLoading${(
|
|
31583
|
+
let Y = (_e = q == null ? void 0 : q[0]) == null ? void 0 : _e.prop, k = at(g).value + "/" + (K == null ? void 0 : K[Y]), W = at(g).value;
|
|
31584
|
+
await jr(W + "/", sessionStorage.getItem("systemKey"), ""), await qr(W + "/", k), await qr(k, k + `/updateLoading${(we = j.value) == null ? void 0 : we.account}`), p.setRouteToChildPath(W), h.setActiveMenuPath(k + `/updateLoading${(We = j.value) == null ? void 0 : We.account}`);
|
|
31585
31585
|
}
|
|
31586
31586
|
}
|
|
31587
|
-
let he = await jr(g.value, sessionStorage.getItem("systemKey"),
|
|
31588
|
-
if (he = he == null ? void 0 : he.filter((
|
|
31589
|
-
const
|
|
31590
|
-
|
|
31591
|
-
key: X.value === "" ? (Ve =
|
|
31592
|
-
value:
|
|
31593
|
-
}), ie.setSelectMenu(X.value === "" ? (Jt =
|
|
31587
|
+
let he = await jr(g.value, sessionStorage.getItem("systemKey"), K.id);
|
|
31588
|
+
if (he = he == null ? void 0 : he.filter((vt) => vt.comp !== "methodButton"), he && he.length > 0) {
|
|
31589
|
+
const vt = !Array.isArray(te.value) && ((ee = te.value) == null ? void 0 : ee.key) !== "main" ? [] : te.value;
|
|
31590
|
+
vt.push({
|
|
31591
|
+
key: X.value === "" ? (Ve = K == null ? void 0 : K.id) == null ? void 0 : Ve.toString() : X.value + "-" + ((St = K == null ? void 0 : K.id) == null ? void 0 : St.toString()),
|
|
31592
|
+
value: K[(At = Object.keys(K)) == null ? void 0 : At.filter((Ee) => Ee !== "index" && Ee !== "id")[0]]
|
|
31593
|
+
}), ie.setSelectMenu(X.value === "" ? (Jt = K == null ? void 0 : K.id) == null ? void 0 : Jt.toString() : X.value + "-" + ((Kt = K == null ? void 0 : K.id) == null ? void 0 : Kt.toString())), ie.setSelectTitle(vt), ie.setSelectIndex((lt = K == null ? void 0 : K.id) == null ? void 0 : lt.toString()), o("pageChange", he);
|
|
31594
31594
|
}
|
|
31595
|
-
}, re = (
|
|
31595
|
+
}, re = (K) => {
|
|
31596
31596
|
var q;
|
|
31597
|
-
(q = at(r.itemData)) == null || q.map((he) => ((he == null ? void 0 : he.key) === "tableContents" && (he.contents =
|
|
31598
|
-
}, ye = async (
|
|
31599
|
-
var
|
|
31600
|
-
if ((
|
|
31601
|
-
let me = at(
|
|
31602
|
-
me = await ((
|
|
31597
|
+
(q = at(r.itemData)) == null || q.map((he) => ((he == null ? void 0 : he.key) === "tableContents" && (he.contents = K), he));
|
|
31598
|
+
}, ye = async (K, q, he, Se) => {
|
|
31599
|
+
var Ae;
|
|
31600
|
+
if ((Se == null ? void 0 : Se.data) === "查看" && (K != null && K.every((me) => (me == null ? void 0 : me.url) && (me == null ? void 0 : me.name)))) {
|
|
31601
|
+
let me = at(K);
|
|
31602
|
+
me = await ((Ae = at(me)) == null ? void 0 : Ae.map(async (_e) => {
|
|
31603
31603
|
var ee, Ve, St, At;
|
|
31604
|
-
const
|
|
31604
|
+
const we = await fc({
|
|
31605
31605
|
url: _e == null ? void 0 : _e.url
|
|
31606
31606
|
});
|
|
31607
|
-
let We = URL.createObjectURL(
|
|
31607
|
+
let We = URL.createObjectURL(we.data);
|
|
31608
31608
|
return {
|
|
31609
31609
|
name: (_e == null ? void 0 : _e.name) + "." + ((At = (ee = _e == null ? void 0 : _e.url) == null ? void 0 : ee.split(".")) == null ? void 0 : At[((St = (Ve = _e == null ? void 0 : _e.url) == null ? void 0 : Ve.split(".")) == null ? void 0 : St.length) - 1]),
|
|
31610
31610
|
blobUrl: We
|
|
@@ -31613,30 +31613,30 @@ const F5 = ao("formToTableComp", {
|
|
|
31613
31613
|
let Oe = await Promise.all(me);
|
|
31614
31614
|
u.value = Oe, m.value = !0;
|
|
31615
31615
|
}
|
|
31616
|
-
o("contentClick",
|
|
31616
|
+
o("contentClick", K, q, he, { id: r == null ? void 0 : r.index, type: "table" });
|
|
31617
31617
|
}, Ce = () => {
|
|
31618
31618
|
m.value = !1;
|
|
31619
|
-
}, fe = (
|
|
31620
|
-
o("rowClick",
|
|
31619
|
+
}, fe = (K) => {
|
|
31620
|
+
o("rowClick", K);
|
|
31621
31621
|
};
|
|
31622
31622
|
mi(
|
|
31623
31623
|
() => r.changedContent,
|
|
31624
31624
|
() => {
|
|
31625
|
-
var he,
|
|
31625
|
+
var he, Se;
|
|
31626
31626
|
if (!r.changedContent) return;
|
|
31627
|
-
let
|
|
31627
|
+
let K = (he = v.value) == null ? void 0 : he.map((Ae) => {
|
|
31628
31628
|
var me;
|
|
31629
|
-
return
|
|
31629
|
+
return Ae.id === ((me = r.changedContent) == null ? void 0 : me.id) && (Ae = {
|
|
31630
31630
|
...r.changedContent,
|
|
31631
31631
|
id: r.changedContent.newId ? r.changedContent.newId : r.changedContent.id
|
|
31632
|
-
}, delete
|
|
31632
|
+
}, delete Ae.newId), Ae;
|
|
31633
31633
|
});
|
|
31634
|
-
const q = (
|
|
31635
|
-
v.value =
|
|
31634
|
+
const q = (Se = r.itemData) == null ? void 0 : Se.map((Ae) => ((Ae == null ? void 0 : Ae.key) === "tableContents" && (Ae.contents = K), Ae));
|
|
31635
|
+
v.value = K, o("contentChange", {
|
|
31636
31636
|
contents: q,
|
|
31637
31637
|
index: r.index
|
|
31638
31638
|
}), o("change", {
|
|
31639
|
-
content:
|
|
31639
|
+
content: K,
|
|
31640
31640
|
index: r == null ? void 0 : r.index,
|
|
31641
31641
|
buttonName: "",
|
|
31642
31642
|
id: r == null ? void 0 : r.index
|
|
@@ -31645,21 +31645,21 @@ const F5 = ao("formToTableComp", {
|
|
|
31645
31645
|
{ deep: !0, immediate: !0 }
|
|
31646
31646
|
);
|
|
31647
31647
|
const _t = () => {
|
|
31648
|
-
}, Ge = (
|
|
31649
|
-
var
|
|
31650
|
-
if (y.value = "", Z.value = !0, b.value = !0, o("onButtonClick",
|
|
31651
|
-
v.value = (
|
|
31648
|
+
}, Ge = (K, q, he) => {
|
|
31649
|
+
var Se, Ae, me, Oe, _e, we, We;
|
|
31650
|
+
if (y.value = "", Z.value = !0, b.value = !0, o("onButtonClick", K, q), K === "删除") {
|
|
31651
|
+
v.value = (Se = at(v.value)) == null ? void 0 : Se.filter((Ve) => (Ve == null ? void 0 : Ve.id) !== (q == null ? void 0 : q.id));
|
|
31652
31652
|
const ee = k5(ue.value, X.value, q == null ? void 0 : q.id);
|
|
31653
31653
|
re(ee), o("change", {
|
|
31654
31654
|
content: v.value,
|
|
31655
31655
|
singleContent: q,
|
|
31656
31656
|
index: r == null ? void 0 : r.index,
|
|
31657
31657
|
type: "delete",
|
|
31658
|
-
buttonName:
|
|
31658
|
+
buttonName: K,
|
|
31659
31659
|
column: a.value
|
|
31660
31660
|
});
|
|
31661
|
-
} else if (
|
|
31662
|
-
if (((
|
|
31661
|
+
} else if (K === "批量删除") {
|
|
31662
|
+
if (((Ae = Ye.value) == null ? void 0 : Ae.length) === 0)
|
|
31663
31663
|
return Ka.warning("请先勾选操作的数据");
|
|
31664
31664
|
o("change", {
|
|
31665
31665
|
content: v.value,
|
|
@@ -31667,55 +31667,55 @@ const F5 = ao("formToTableComp", {
|
|
|
31667
31667
|
selectItems: Ye.value,
|
|
31668
31668
|
index: r == null ? void 0 : r.index,
|
|
31669
31669
|
type: "batchDelete",
|
|
31670
|
-
buttonName:
|
|
31670
|
+
buttonName: K,
|
|
31671
31671
|
column: a.value
|
|
31672
31672
|
});
|
|
31673
|
-
} else if (
|
|
31673
|
+
} else if (K === "复制新增") {
|
|
31674
31674
|
C.value = "新增";
|
|
31675
|
-
const ee = at(q), Ve = (me = a.value) == null ? void 0 : me[0], St = (Oe = ae.value) == null ? void 0 : Oe.find((At) => (At == null ? void 0 : At.label) === "
|
|
31675
|
+
const ee = at(q), Ve = (me = a.value) == null ? void 0 : me[0], St = (Oe = ae.value) == null ? void 0 : Oe.find((At) => (At == null ? void 0 : At.label) === "新建");
|
|
31676
31676
|
rt(!0, St, { data: ee, firstCol: Ve });
|
|
31677
|
-
} else if (
|
|
31677
|
+
} else if (K === "新增")
|
|
31678
31678
|
C.value = "新增", bt(""), L.value = !0;
|
|
31679
|
-
else if (
|
|
31679
|
+
else if (K === "编辑")
|
|
31680
31680
|
C.value = "编辑", bt(q), L.value = !0;
|
|
31681
|
-
else if (
|
|
31681
|
+
else if (K === "查看")
|
|
31682
31682
|
C.value = "查看", bt(q), Z.value = !1, b.value = !1, L.value = !0;
|
|
31683
|
-
else if (
|
|
31683
|
+
else if (K === "查看三维模型") {
|
|
31684
31684
|
const ee = {};
|
|
31685
31685
|
for (let St in q)
|
|
31686
31686
|
St !== "id" && (ee[St] = q[St]);
|
|
31687
31687
|
let Ve = (_e = Object.values(ee)) == null ? void 0 : _e[1];
|
|
31688
31688
|
_.setTableShowThree(Ve);
|
|
31689
|
-
} else if (((
|
|
31690
|
-
C.value =
|
|
31691
|
-
else if (
|
|
31692
|
-
const ee = (We = ae.value) == null ? void 0 : We.find((Ve) => (Ve == null ? void 0 : Ve.label) === "
|
|
31689
|
+
} else if (((we = he == null ? void 0 : he.extra) == null ? void 0 : we.type) === "modelExample")
|
|
31690
|
+
C.value = K, S.value = !0;
|
|
31691
|
+
else if (K === "新建") {
|
|
31692
|
+
const ee = (We = ae.value) == null ? void 0 : We.find((Ve) => (Ve == null ? void 0 : Ve.label) === "新建");
|
|
31693
31693
|
rt(!1, ee);
|
|
31694
|
-
} else if (
|
|
31694
|
+
} else if (K === "修改模板") {
|
|
31695
31695
|
let ee = at(g).value;
|
|
31696
31696
|
p.setRouteToChildPath(ee), h.setActiveMenuPath(ee + "/");
|
|
31697
31697
|
}
|
|
31698
|
-
}, ft = async (
|
|
31699
|
-
var he,
|
|
31698
|
+
}, ft = async (K) => {
|
|
31699
|
+
var he, Se, Ae, me, Oe, _e;
|
|
31700
31700
|
const q = await o2({
|
|
31701
31701
|
key: {
|
|
31702
|
-
pageKey:
|
|
31702
|
+
pageKey: K,
|
|
31703
31703
|
type: "structure",
|
|
31704
31704
|
systemKey: sessionStorage.getItem("systemKey")
|
|
31705
31705
|
}
|
|
31706
31706
|
});
|
|
31707
31707
|
if (((he = q == null ? void 0 : q.data) == null ? void 0 : he.code) === 200)
|
|
31708
|
-
return Array.isArray((
|
|
31708
|
+
return Array.isArray((Se = q == null ? void 0 : q.data) == null ? void 0 : Se.result) && ((me = (Ae = q == null ? void 0 : q.data) == null ? void 0 : Ae.result) == null ? void 0 : me.length) > 0 ? (_e = (Oe = q == null ? void 0 : q.data) == null ? void 0 : Oe.result) == null ? void 0 : _e.map((we) => {
|
|
31709
31709
|
var We;
|
|
31710
31710
|
return {
|
|
31711
|
-
id:
|
|
31712
|
-
...(We =
|
|
31711
|
+
id: we == null ? void 0 : we.id,
|
|
31712
|
+
...(We = we == null ? void 0 : we.value) == null ? void 0 : We.pageData
|
|
31713
31713
|
};
|
|
31714
31714
|
}) : [];
|
|
31715
|
-
}, gt = (
|
|
31716
|
-
var
|
|
31715
|
+
}, gt = (K, q, he, Se) => {
|
|
31716
|
+
var Ae;
|
|
31717
31717
|
o("contentChange", {
|
|
31718
|
-
contents: (
|
|
31718
|
+
contents: (Ae = K == null ? void 0 : K.compData) == null ? void 0 : Ae.map((me) => {
|
|
31719
31719
|
var Oe;
|
|
31720
31720
|
return (me == null ? void 0 : me.key) === "formContent" ? {
|
|
31721
31721
|
...me,
|
|
@@ -31725,34 +31725,34 @@ const F5 = ao("formToTableComp", {
|
|
|
31725
31725
|
} : _e)
|
|
31726
31726
|
} : me;
|
|
31727
31727
|
}),
|
|
31728
|
-
index:
|
|
31729
|
-
}), h.setActiveMenuPath(""), h.setActiveMenuPath(
|
|
31730
|
-
}, Pe = (
|
|
31731
|
-
let he =
|
|
31732
|
-
if (v.value.some((
|
|
31733
|
-
const
|
|
31734
|
-
for (; v.value.some((me) => (me == null ? void 0 : me[q == null ? void 0 : q.prop]) === `${
|
|
31735
|
-
|
|
31736
|
-
he = `${
|
|
31728
|
+
index: K == null ? void 0 : K.id
|
|
31729
|
+
}), h.setActiveMenuPath(""), h.setActiveMenuPath(Se);
|
|
31730
|
+
}, Pe = (K, q) => {
|
|
31731
|
+
let he = K == null ? void 0 : K[q == null ? void 0 : q.prop], Se = 1;
|
|
31732
|
+
if (v.value.some((Ae) => (Ae == null ? void 0 : Ae[q == null ? void 0 : q.prop]) === he)) {
|
|
31733
|
+
const Ae = he;
|
|
31734
|
+
for (; v.value.some((me) => (me == null ? void 0 : me[q == null ? void 0 : q.prop]) === `${Ae}(${Se})`); )
|
|
31735
|
+
Se++;
|
|
31736
|
+
he = `${Ae}(${Se})`;
|
|
31737
31737
|
}
|
|
31738
31738
|
return he;
|
|
31739
|
-
}, rt = async (
|
|
31740
|
-
var Oe, _e,
|
|
31741
|
-
let
|
|
31739
|
+
}, rt = async (K, q, he) => {
|
|
31740
|
+
var Oe, _e, we, We, ee;
|
|
31741
|
+
let Se, Ae;
|
|
31742
31742
|
const me = Pe(he == null ? void 0 : he.data, he == null ? void 0 : he.firstCol);
|
|
31743
|
-
if (
|
|
31744
|
-
const Ve = await jr(
|
|
31743
|
+
if (K ? (Se = at(g).value + "/" + ((we = he == null ? void 0 : he.data) == null ? void 0 : we[(_e = he == null ? void 0 : he.firstCol) == null ? void 0 : _e.prop]), Ae = at(g).value + "/" + me) : (Se = at(g).value + "/", Ae = at(Se) + `loading${(Oe = j.value) == null ? void 0 : Oe.account}`), q) {
|
|
31744
|
+
const Ve = await jr(Ae, sessionStorage.getItem("systemKey"), "");
|
|
31745
31745
|
if ((Ve == null ? void 0 : Ve.length) > 0)
|
|
31746
|
-
if (
|
|
31746
|
+
if (K) {
|
|
31747
31747
|
const St = Ve == null ? void 0 : Ve.find((At) => {
|
|
31748
31748
|
var Jt;
|
|
31749
31749
|
return ((Jt = At == null ? void 0 : At.comp) == null ? void 0 : Jt.toUpperCase()) === "FORM";
|
|
31750
31750
|
});
|
|
31751
31751
|
St && gt(St, (We = he == null ? void 0 : he.firstCol) == null ? void 0 : We.label, me, g.value);
|
|
31752
31752
|
} else
|
|
31753
|
-
p.setRouteToChildPath(at(g).value), h.setActiveMenuPath(
|
|
31754
|
-
else if (await qr(
|
|
31755
|
-
const St = await ft(
|
|
31753
|
+
p.setRouteToChildPath(at(g).value), h.setActiveMenuPath(Ae);
|
|
31754
|
+
else if (await qr(Se, Ae), K) {
|
|
31755
|
+
const St = await ft(Ae);
|
|
31756
31756
|
if ((St == null ? void 0 : St.length) > 0) {
|
|
31757
31757
|
const At = St == null ? void 0 : St.find((Jt) => {
|
|
31758
31758
|
var Kt;
|
|
@@ -31761,24 +31761,24 @@ const F5 = ao("formToTableComp", {
|
|
|
31761
31761
|
At && gt(At, (ee = he == null ? void 0 : he.firstCol) == null ? void 0 : ee.label, me, g.value);
|
|
31762
31762
|
}
|
|
31763
31763
|
} else
|
|
31764
|
-
p.setRouteToChildPath(at(g).value), h.setActiveMenuPath(
|
|
31764
|
+
p.setRouteToChildPath(at(g).value), h.setActiveMenuPath(Ae);
|
|
31765
31765
|
} else
|
|
31766
|
-
|
|
31766
|
+
K ? (y.value = "", xe.value = he == null ? void 0 : he.data, $(!0, he == null ? void 0 : he.firstCol, me)) : (p.setRouteToChildPath(at(g).value), h.setActiveMenuPath(Ae));
|
|
31767
31767
|
}, Pt = () => {
|
|
31768
31768
|
c.value = !1, se.value = null;
|
|
31769
|
-
}, bt = (
|
|
31770
|
-
var
|
|
31769
|
+
}, bt = (K) => {
|
|
31770
|
+
var Ae, me, Oe, _e, we, We;
|
|
31771
31771
|
const q = [];
|
|
31772
31772
|
let he = [];
|
|
31773
|
-
for (let ee in
|
|
31774
|
-
Array.isArray(
|
|
31775
|
-
l.value = at(a.value), (me = Oa((
|
|
31773
|
+
for (let ee in K)
|
|
31774
|
+
Array.isArray(K == null ? void 0 : K[ee]) && he.push(ee);
|
|
31775
|
+
l.value = at(a.value), (me = Oa((Ae = at(a.value)) == null ? void 0 : Ae.filter((ee) => (ee == null ? void 0 : ee.label) !== "操作"))) == null || me.forEach((ee, Ve) => {
|
|
31776
31776
|
var St;
|
|
31777
31777
|
he.find((At) => At === (ee == null ? void 0 : ee.prop)) || (ee != null && ee.formType && ((St = ee == null ? void 0 : ee.formType) == null ? void 0 : St.toUpperCase()) === "SELECT" ? q.push({
|
|
31778
31778
|
label: (ee == null ? void 0 : ee.label) ?? "",
|
|
31779
31779
|
name: (ee == null ? void 0 : ee.prop) ?? "t" + Ve,
|
|
31780
31780
|
type: !(ee != null && ee.formType) || (ee == null ? void 0 : ee.formType) === "" ? "Input" : ee == null ? void 0 : ee.formType,
|
|
31781
|
-
value: (
|
|
31781
|
+
value: (K == null ? void 0 : K[ee == null ? void 0 : ee.prop]) ?? (ee == null ? void 0 : ee.value) ?? "",
|
|
31782
31782
|
id: (ee == null ? void 0 : ee.id) ?? Ve,
|
|
31783
31783
|
contents: (ee == null ? void 0 : ee.options) ?? [],
|
|
31784
31784
|
width: 1,
|
|
@@ -31793,35 +31793,35 @@ const F5 = ao("formToTableComp", {
|
|
|
31793
31793
|
label: (ee == null ? void 0 : ee.label) ?? "",
|
|
31794
31794
|
name: (ee == null ? void 0 : ee.prop) ?? "t" + Ve,
|
|
31795
31795
|
type: !(ee != null && ee.formType) || (ee == null ? void 0 : ee.formType) === "" ? "Input" : ee == null ? void 0 : ee.formType,
|
|
31796
|
-
value: (
|
|
31796
|
+
value: (K == null ? void 0 : K[ee == null ? void 0 : ee.prop]) ?? (ee == null ? void 0 : ee.value) ?? "",
|
|
31797
31797
|
id: (ee == null ? void 0 : ee.id) ?? Ve,
|
|
31798
31798
|
contents: (ee == null ? void 0 : ee.options) ?? [],
|
|
31799
31799
|
width: 1,
|
|
31800
31800
|
isFormColHidden: ee == null ? void 0 : ee.isFormColHidden
|
|
31801
31801
|
}));
|
|
31802
|
-
}),
|
|
31803
|
-
let
|
|
31804
|
-
N.value && ((_e = N.value) == null ? void 0 : _e.length) > 0 && (N.value = (
|
|
31802
|
+
}), K === "" || !K || (y.value = (K == null ? void 0 : K.id) ?? "");
|
|
31803
|
+
let Se = Oa((Oe = at(a.value)) == null ? void 0 : Oe.filter((ee) => (ee == null ? void 0 : ee.label) !== "操作"));
|
|
31804
|
+
N.value && ((_e = N.value) == null ? void 0 : _e.length) > 0 && (N.value = (we = at(N).value) == null ? void 0 : we.map((ee) => {
|
|
31805
31805
|
var St;
|
|
31806
|
-
let Ve = (St =
|
|
31807
|
-
return Ve && (ee.value =
|
|
31808
|
-
})),
|
|
31806
|
+
let Ve = (St = Se == null ? void 0 : Se.find((At) => (At == null ? void 0 : At.label) === (ee == null ? void 0 : ee.label))) == null ? void 0 : St.prop;
|
|
31807
|
+
return Ve && (ee.value = K[Ve]), ee;
|
|
31808
|
+
})), J.value = N.value && ((We = N.value) == null ? void 0 : We.length) > 0 ? u2(N.value) : q;
|
|
31809
31809
|
}, qe = async () => {
|
|
31810
31810
|
var q;
|
|
31811
31811
|
await Pr();
|
|
31812
|
-
const
|
|
31813
|
-
|
|
31812
|
+
const K = (q = i.value) == null ? void 0 : q.$el;
|
|
31813
|
+
K && p2.create(K, {
|
|
31814
31814
|
animation: 150,
|
|
31815
31815
|
handle: ".col-drag-icon",
|
|
31816
31816
|
ghostClass: "sortable-ghost",
|
|
31817
31817
|
onEnd: (he) => {
|
|
31818
31818
|
var Oe;
|
|
31819
|
-
const { oldIndex:
|
|
31820
|
-
if (
|
|
31821
|
-
const me = nt.value.splice(
|
|
31822
|
-
nt.value.splice(
|
|
31819
|
+
const { oldIndex: Se, newIndex: Ae } = he;
|
|
31820
|
+
if (Se === Ae) return;
|
|
31821
|
+
const me = nt.value.splice(Se, 1)[0];
|
|
31822
|
+
nt.value.splice(Ae, 0, me), a.value = (Oe = a.value) == null ? void 0 : Oe.slice().sort((_e, we) => {
|
|
31823
31823
|
var We, ee;
|
|
31824
|
-
return _e.label === "操作" ? 1 :
|
|
31824
|
+
return _e.label === "操作" ? 1 : we.label === "操作" ? -1 : ((We = nt.value) == null ? void 0 : We.indexOf(_e)) - ((ee = nt.value) == null ? void 0 : ee.indexOf(we));
|
|
31825
31825
|
});
|
|
31826
31826
|
}
|
|
31827
31827
|
});
|
|
@@ -31833,9 +31833,9 @@ const F5 = ao("formToTableComp", {
|
|
|
31833
31833
|
Pr(() => {
|
|
31834
31834
|
qe();
|
|
31835
31835
|
});
|
|
31836
|
-
}, $ = (
|
|
31836
|
+
}, $ = (K = !0, q, he) => {
|
|
31837
31837
|
var Oe;
|
|
31838
|
-
let
|
|
31838
|
+
let Se = Oa((Oe = at(a.value)) == null ? void 0 : Oe.filter((_e) => (_e == null ? void 0 : _e.label) !== "操作")), Ae, me = at(v.value);
|
|
31839
31839
|
if (!xe.value) {
|
|
31840
31840
|
L.value = !1;
|
|
31841
31841
|
return;
|
|
@@ -31846,34 +31846,34 @@ const F5 = ao("formToTableComp", {
|
|
|
31846
31846
|
q && he ? _e = {
|
|
31847
31847
|
id: D.value,
|
|
31848
31848
|
[q == null ? void 0 : q.prop]: he
|
|
31849
|
-
} : _e = { id: D.value }, me.push(Object.assign(xe.value, _e)),
|
|
31849
|
+
} : _e = { id: D.value }, me.push(Object.assign(xe.value, _e)), Ae = Object.assign(xe.value, _e);
|
|
31850
31850
|
} else
|
|
31851
31851
|
me = me == null ? void 0 : me.map((_e) => {
|
|
31852
|
-
var
|
|
31852
|
+
var we, We;
|
|
31853
31853
|
if ((_e == null ? void 0 : _e.id) === y.value) {
|
|
31854
31854
|
let ee = {};
|
|
31855
31855
|
for (let Ve in _e) {
|
|
31856
|
-
let St = (
|
|
31856
|
+
let St = (we = Se == null ? void 0 : Se.find((At) => (At == null ? void 0 : At.prop) === Ve)) == null ? void 0 : we.label;
|
|
31857
31857
|
St ? ee[Ve] = (We = xe.value) == null ? void 0 : We[St] : ee[Ve] = _e[Ve];
|
|
31858
31858
|
}
|
|
31859
|
-
_e = Object.assign(ee, xe.value),
|
|
31859
|
+
_e = Object.assign(ee, xe.value), Ae = _e;
|
|
31860
31860
|
}
|
|
31861
31861
|
return _e;
|
|
31862
31862
|
});
|
|
31863
|
-
if (v.value = me,
|
|
31863
|
+
if (v.value = me, K) {
|
|
31864
31864
|
const _e = H5(ue.value, X.value, me);
|
|
31865
31865
|
re(_e), L.value = !1, xe.value = void 0, o("change", {
|
|
31866
31866
|
content: _e,
|
|
31867
|
-
singleContent:
|
|
31867
|
+
singleContent: Ae,
|
|
31868
31868
|
index: r == null ? void 0 : r.index,
|
|
31869
31869
|
buttonName: C.value,
|
|
31870
31870
|
column: a.value
|
|
31871
31871
|
});
|
|
31872
31872
|
}
|
|
31873
|
-
}, Qe = async (
|
|
31874
|
-
var We, ee, Ve, St, At, Jt, Kt, lt,
|
|
31873
|
+
}, Qe = async (K, q, he) => {
|
|
31874
|
+
var We, ee, Ve, St, At, Jt, Kt, lt, vt, Ee, w;
|
|
31875
31875
|
ke.value = he == null ? void 0 : he.prop;
|
|
31876
|
-
const
|
|
31876
|
+
const Se = at(r.itemData), Ae = Se == null ? void 0 : Se.map((O) => {
|
|
31877
31877
|
var Y;
|
|
31878
31878
|
return (O == null ? void 0 : O.key) === "header" && ((Y = O.contents) == null || Y.map((k, W) => {
|
|
31879
31879
|
var ne, ge, Ie, ze, et, He, Xe, ct, It, Vt, qt, Ft, mt, cn, Ht, an, Te, Lt, hn;
|
|
@@ -31891,29 +31891,29 @@ const F5 = ao("formToTableComp", {
|
|
|
31891
31891
|
} : null, k;
|
|
31892
31892
|
})), O;
|
|
31893
31893
|
});
|
|
31894
|
-
let me = at(
|
|
31894
|
+
let me = at(J.value), Oe = (ee = (We = at(Ae)) == null ? void 0 : We.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : ee.contents;
|
|
31895
31895
|
me = me == null ? void 0 : me.map((O) => {
|
|
31896
31896
|
var Y;
|
|
31897
31897
|
return O.value = (Y = Oe == null ? void 0 : Oe.find((k, W) => W === (O == null ? void 0 : O.id))) == null ? void 0 : Y.value, O;
|
|
31898
31898
|
});
|
|
31899
|
-
let _e = "",
|
|
31899
|
+
let _e = "", we = (At = (St = (Ve = at(Ae)) == null ? void 0 : Ve.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : St.contents) == null ? void 0 : At.find((O, Y) => {
|
|
31900
31900
|
var k, W;
|
|
31901
31901
|
return (O == null ? void 0 : O.label) === ke.value || (Y == null ? void 0 : Y.toString()) === ((W = (k = ke.value) == null ? void 0 : k.split("a")) == null ? void 0 : W[1].toString());
|
|
31902
31902
|
});
|
|
31903
|
-
if ((lt = (Kt = (Jt = at(
|
|
31903
|
+
if ((lt = (Kt = (Jt = at(Ae)) == null ? void 0 : Jt.find((O) => (O == null ? void 0 : O.key) === "header")) == null ? void 0 : Kt.contents) == null || lt.forEach((O) => {
|
|
31904
31904
|
var Y, k, W, ne, ge;
|
|
31905
31905
|
_e === "" && ((W = (k = (Y = O == null ? void 0 : O.optionUrl) == null ? void 0 : Y.groupSelect) == null ? void 0 : k[1]) != null && W.includes("[")) && (_e = (ge = (ne = O == null ? void 0 : O.optionUrl) == null ? void 0 : ne.groupSelect) == null ? void 0 : ge[1]);
|
|
31906
|
-
}), (
|
|
31907
|
-
let O = await Y0(
|
|
31906
|
+
}), (vt = we == null ? void 0 : we.optionUrl) != null && vt.menuSelect) {
|
|
31907
|
+
let O = await Y0(we), Y;
|
|
31908
31908
|
if (O == null || O.forEach((k) => {
|
|
31909
31909
|
var W, ne, ge, Ie, ze, et, He, Xe, ct, It;
|
|
31910
|
-
_e === ((ne = (W =
|
|
31910
|
+
_e === ((ne = (W = we == null ? void 0 : we.optionUrl) == null ? void 0 : W.groupSelect) == null ? void 0 : ne[1]) && ((ze = (Ie = (ge = we == null ? void 0 : we.optionUrl) == null ? void 0 : ge.groupSelect) == null ? void 0 : Ie[1]) != null && ze.includes("[")) && ((It = at(k)) == null ? void 0 : It[(ct = (Xe = (He = (et = we == null ? void 0 : we.optionUrl) == null ? void 0 : et.groupSelect) == null ? void 0 : He[1]) == null ? void 0 : Xe.replaceAll("[", "")) == null ? void 0 : ct.replaceAll("]", "")]) === (we == null ? void 0 : we.value) && (Y = k);
|
|
31911
31911
|
}), Y) {
|
|
31912
31912
|
let k = at(me);
|
|
31913
31913
|
k = k == null ? void 0 : k.map((ne) => {
|
|
31914
31914
|
var ge, Ie, ze, et, He, Xe, ct, It, Vt, qt, Ft;
|
|
31915
31915
|
return (Y != null && Y[ne == null ? void 0 : ne.label] || Y != null && Y[(et = (ze = (Ie = (ge = ne == null ? void 0 : ne.optionUrl) == null ? void 0 : ge.groupSelect) == null ? void 0 : Ie[1]) == null ? void 0 : ze.replaceAll("[", "")) == null ? void 0 : et.replaceAll("]", "")]) && ((ct = (Xe = (He = ne == null ? void 0 : ne.optionUrl) == null ? void 0 : He.groupSelect) == null ? void 0 : Xe[1]) != null && ct.includes("[")) && (ne.value = (Y == null ? void 0 : Y[ne == null ? void 0 : ne.label]) || (Y == null ? void 0 : Y[(Ft = (qt = (Vt = (It = ne == null ? void 0 : ne.optionUrl) == null ? void 0 : It.groupSelect) == null ? void 0 : Vt[1]) == null ? void 0 : qt.replaceAll("[", "")) == null ? void 0 : Ft.replaceAll("]", "")])), ne;
|
|
31916
|
-
}), v.value = (
|
|
31916
|
+
}), v.value = (Ee = at(v.value)) == null ? void 0 : Ee.map((ne) => {
|
|
31917
31917
|
if ((ne == null ? void 0 : ne.id) === (q == null ? void 0 : q.id)) {
|
|
31918
31918
|
const ge = {};
|
|
31919
31919
|
return k == null || k.forEach((Ie) => {
|
|
@@ -31944,108 +31944,108 @@ const F5 = ao("formToTableComp", {
|
|
|
31944
31944
|
});
|
|
31945
31945
|
}
|
|
31946
31946
|
}
|
|
31947
|
-
}, De = async (
|
|
31948
|
-
var _e,
|
|
31949
|
-
if (!
|
|
31950
|
-
xe.value =
|
|
31947
|
+
}, De = async (K) => {
|
|
31948
|
+
var _e, we, We, ee, Ve, St, At, Jt, Kt;
|
|
31949
|
+
if (!K) return;
|
|
31950
|
+
xe.value = K, o("onFormChange", K);
|
|
31951
31951
|
const q = at(r.itemData), he = q == null ? void 0 : q.map((lt) => {
|
|
31952
|
-
var
|
|
31953
|
-
return (lt == null ? void 0 : lt.key) === "header" && ((
|
|
31952
|
+
var vt;
|
|
31953
|
+
return (lt == null ? void 0 : lt.key) === "header" && ((vt = lt.contents) == null || vt.map((Ee, w) => {
|
|
31954
31954
|
var O, Y, k, W, ne, ge, Ie, ze, et, He, Xe, ct, It, Vt, qt, Ft, mt, cn, Ht;
|
|
31955
|
-
return
|
|
31955
|
+
return Ee.type = Ee != null && Ee.type ? Ee.type : (W = (k = (Y = (O = Ee == null ? void 0 : Ee.key) == null ? void 0 : O.split("$")) == null ? void 0 : Y[1]) == null ? void 0 : k.split("(")) != null && W[0] ? (ge = (ne = jc) == null ? void 0 : ne.find((an) => {
|
|
31956
31956
|
var Te, Lt, hn, zt;
|
|
31957
|
-
return (an == null ? void 0 : an.key) === ((zt = (hn = (Lt = (Te =
|
|
31958
|
-
})) == null ? void 0 : ge.value : "Input",
|
|
31957
|
+
return (an == null ? void 0 : an.key) === ((zt = (hn = (Lt = (Te = Ee == null ? void 0 : Ee.key) == null ? void 0 : Te.split("$")) == null ? void 0 : Lt[1]) == null ? void 0 : hn.split("(")) == null ? void 0 : zt[0]);
|
|
31958
|
+
})) == null ? void 0 : ge.value : "Input", Ee.options = Ee != null && Ee.options ? Ee.options : ((et = (ze = (Ie = Ee == null ? void 0 : Ee.key) == null ? void 0 : Ie.split("$")) == null ? void 0 : ze[1]) == null ? void 0 : et.length) > 0 ? (It = (ct = $c((Xe = (He = Ee == null ? void 0 : Ee.key) == null ? void 0 : He.split("$")) == null ? void 0 : Xe[1])) == null ? void 0 : ct.split(",")) == null ? void 0 : It.map((an) => ({
|
|
31959
31959
|
label: an,
|
|
31960
31960
|
value: an
|
|
31961
|
-
})) : [], (Vt =
|
|
31962
|
-
groupSelect: (Ht =
|
|
31963
|
-
menuSelect:
|
|
31961
|
+
})) : [], (Vt = Ee == null ? void 0 : Ee.key) != null && Vt.includes("$") && (Ee.key = (Ft = (qt = Ee == null ? void 0 : Ee.key) == null ? void 0 : qt.split("$")) == null ? void 0 : Ft[0]), Ee.value = (mt = Object.values(K)) == null ? void 0 : mt[w], Ee.optionUrl = Ee != null && Ee.formMenuSelect && ((cn = Ee == null ? void 0 : Ee.formMenuSelect) == null ? void 0 : cn.length) > 0 ? {
|
|
31962
|
+
groupSelect: (Ht = Ee == null ? void 0 : Ee.groupSelect) == null ? void 0 : Ht.split(/[::]/).map((an) => an.trim()),
|
|
31963
|
+
menuSelect: Ee == null ? void 0 : Ee.formMenuSelect,
|
|
31964
31964
|
selectRelateType: "",
|
|
31965
|
-
type: (
|
|
31966
|
-
} : null,
|
|
31965
|
+
type: (Ee == null ? void 0 : Ee.formType) ?? (Ee != null && Ee.groupSelect ? "Select" : "")
|
|
31966
|
+
} : null, Ee;
|
|
31967
31967
|
})), lt;
|
|
31968
31968
|
});
|
|
31969
|
-
let
|
|
31970
|
-
if (
|
|
31971
|
-
var
|
|
31972
|
-
return lt.value = (
|
|
31969
|
+
let Se = at(J.value), Ae = (we = (_e = at(he)) == null ? void 0 : _e.find((lt) => (lt == null ? void 0 : lt.key) === "header")) == null ? void 0 : we.contents;
|
|
31970
|
+
if (Se = Se == null ? void 0 : Se.map((lt) => {
|
|
31971
|
+
var vt;
|
|
31972
|
+
return lt.value = (vt = Ae == null ? void 0 : Ae.find((Ee, w) => w === (lt == null ? void 0 : lt.id))) == null ? void 0 : vt.value, lt;
|
|
31973
31973
|
}), !z.value) return;
|
|
31974
|
-
let me = "", Oe = (Ve = (ee = (We = at(he)) == null ? void 0 : We.find((lt) => (lt == null ? void 0 : lt.key) === "header")) == null ? void 0 : ee.contents) == null ? void 0 : Ve.find((lt,
|
|
31975
|
-
var
|
|
31976
|
-
return (lt == null ? void 0 : lt.label) === ke.value || (
|
|
31974
|
+
let me = "", Oe = (Ve = (ee = (We = at(he)) == null ? void 0 : We.find((lt) => (lt == null ? void 0 : lt.key) === "header")) == null ? void 0 : ee.contents) == null ? void 0 : Ve.find((lt, vt) => {
|
|
31975
|
+
var Ee, w;
|
|
31976
|
+
return (lt == null ? void 0 : lt.label) === ke.value || (vt == null ? void 0 : vt.toString()) === ((w = (Ee = ke.value) == null ? void 0 : Ee.split("a")) == null ? void 0 : w[1].toString());
|
|
31977
31977
|
});
|
|
31978
31978
|
if ((Jt = (At = (St = at(he)) == null ? void 0 : St.find((lt) => (lt == null ? void 0 : lt.key) === "header")) == null ? void 0 : At.contents) == null || Jt.forEach((lt) => {
|
|
31979
|
-
var
|
|
31980
|
-
me === "" && ((w = (
|
|
31979
|
+
var vt, Ee, w, O, Y;
|
|
31980
|
+
me === "" && ((w = (Ee = (vt = lt == null ? void 0 : lt.optionUrl) == null ? void 0 : vt.groupSelect) == null ? void 0 : Ee[1]) != null && w.includes("[")) && (me = (Y = (O = lt == null ? void 0 : lt.optionUrl) == null ? void 0 : O.groupSelect) == null ? void 0 : Y[1]);
|
|
31981
31981
|
}), (Kt = Oe == null ? void 0 : Oe.optionUrl) != null && Kt.menuSelect && z.value) {
|
|
31982
|
-
let lt = await Y0(Oe),
|
|
31983
|
-
if (lt == null || lt.forEach((
|
|
31982
|
+
let lt = await Y0(Oe), vt;
|
|
31983
|
+
if (lt == null || lt.forEach((Ee) => {
|
|
31984
31984
|
var w, O, Y, k, W, ne, ge, Ie, ze, et;
|
|
31985
|
-
me === ((O = (w = Oe == null ? void 0 : Oe.optionUrl) == null ? void 0 : w.groupSelect) == null ? void 0 : O[1]) && ((W = (k = (Y = Oe == null ? void 0 : Oe.optionUrl) == null ? void 0 : Y.groupSelect) == null ? void 0 : k[1]) != null && W.includes("[")) && ((et = at(
|
|
31986
|
-
}),
|
|
31987
|
-
let
|
|
31988
|
-
|
|
31985
|
+
me === ((O = (w = Oe == null ? void 0 : Oe.optionUrl) == null ? void 0 : w.groupSelect) == null ? void 0 : O[1]) && ((W = (k = (Y = Oe == null ? void 0 : Oe.optionUrl) == null ? void 0 : Y.groupSelect) == null ? void 0 : k[1]) != null && W.includes("[")) && ((et = at(Ee)) == null ? void 0 : et[(ze = (Ie = (ge = (ne = Oe == null ? void 0 : Oe.optionUrl) == null ? void 0 : ne.groupSelect) == null ? void 0 : ge[1]) == null ? void 0 : Ie.replaceAll("[", "")) == null ? void 0 : ze.replaceAll("]", "")]) === (Oe == null ? void 0 : Oe.value) && (vt = Ee);
|
|
31986
|
+
}), vt) {
|
|
31987
|
+
let Ee = at(Se);
|
|
31988
|
+
Ee = Ee == null ? void 0 : Ee.map((O) => {
|
|
31989
31989
|
var Y, k, W, ne, ge, Ie, ze, et, He, Xe, ct;
|
|
31990
|
-
return (
|
|
31991
|
-
}),
|
|
31992
|
-
let w = at(
|
|
31990
|
+
return (vt != null && vt[O == null ? void 0 : O.label] || vt != null && vt[(ne = (W = (k = (Y = O == null ? void 0 : O.optionUrl) == null ? void 0 : Y.groupSelect) == null ? void 0 : k[1]) == null ? void 0 : W.replaceAll("[", "")) == null ? void 0 : ne.replaceAll("]", "")]) && ((ze = (Ie = (ge = O == null ? void 0 : O.optionUrl) == null ? void 0 : ge.groupSelect) == null ? void 0 : Ie[1]) != null && ze.includes("[")) && (O.value = (vt == null ? void 0 : vt[O == null ? void 0 : O.label]) || (vt == null ? void 0 : vt[(ct = (Xe = (He = (et = O == null ? void 0 : O.optionUrl) == null ? void 0 : et.groupSelect) == null ? void 0 : He[1]) == null ? void 0 : Xe.replaceAll("[", "")) == null ? void 0 : ct.replaceAll("]", "")])), O;
|
|
31991
|
+
}), J.value = Ee;
|
|
31992
|
+
let w = at(Ee);
|
|
31993
31993
|
w = w == null ? void 0 : w.map((O) => {
|
|
31994
31994
|
var Y, k, W, ne;
|
|
31995
31995
|
return (k = (Y = O == null ? void 0 : O.optionUrl) == null ? void 0 : Y.menuSelect) != null && k.some((ge) => ge == null ? void 0 : ge.includes) && (O.optionUrl.menuSelect = (ne = (W = O == null ? void 0 : O.optionUrl) == null ? void 0 : W.menuSelect) == null ? void 0 : ne.map((ge) => {
|
|
31996
31996
|
var Ie, ze, et, He;
|
|
31997
31997
|
if (ge != null && ge.includes("[")) {
|
|
31998
31998
|
let Xe = (ze = (Ie = ge == null ? void 0 : ge.replaceAll("[", "").replaceAll("]", "")) == null ? void 0 : Ie.split(":")) == null ? void 0 : ze[1];
|
|
31999
|
-
ge = (He = (et = at(
|
|
31999
|
+
ge = (He = (et = at(Ee)) == null ? void 0 : et.find((ct) => (ct == null ? void 0 : ct.label) === Xe)) == null ? void 0 : He.value;
|
|
32000
32000
|
}
|
|
32001
32001
|
return ge;
|
|
32002
32002
|
})), O;
|
|
32003
|
-
}),
|
|
32003
|
+
}), J.value = w;
|
|
32004
32004
|
}
|
|
32005
32005
|
}
|
|
32006
32006
|
z.value = !1;
|
|
32007
|
-
}, ot = (
|
|
32007
|
+
}, ot = (K) => K ? (K == null ? void 0 : K.toUpperCase()) === "INPUT" ? "TEXTAREA" : K : "TEXTAREA", Ne = (K) => {
|
|
32008
32008
|
var me, Oe;
|
|
32009
|
-
const q = (Oe = (me = N.value) == null ? void 0 : me.find((_e) => (_e == null ? void 0 : _e.label) === (
|
|
32010
|
-
if ((
|
|
32009
|
+
const q = (Oe = (me = N.value) == null ? void 0 : me.find((_e) => (_e == null ? void 0 : _e.label) === (K == null ? void 0 : K.label))) == null ? void 0 : Oe.multiple, he = K == null ? void 0 : K.prop;
|
|
32010
|
+
if ((K == null ? void 0 : K.formType) != "Select")
|
|
32011
32011
|
return;
|
|
32012
32012
|
v.value.forEach((_e) => {
|
|
32013
|
-
const
|
|
32014
|
-
q && qc(
|
|
32013
|
+
const we = _e == null ? void 0 : _e[he];
|
|
32014
|
+
q && qc(we) && (_e[he] = [we]), !q && !qc(we) && (_e[he] = "");
|
|
32015
32015
|
});
|
|
32016
|
-
}, Me = (
|
|
32017
|
-
var he,
|
|
32016
|
+
}, Me = (K) => {
|
|
32017
|
+
var he, Se, Ae, me, Oe, _e;
|
|
32018
32018
|
bt("");
|
|
32019
|
-
const q = (he =
|
|
32020
|
-
((
|
|
32019
|
+
const q = (he = J.value) == null ? void 0 : he.reduce((we, We) => (we[We.name] = We.value, we), {});
|
|
32020
|
+
((Se = Object.keys(q)) == null ? void 0 : Se.length) > 0 && (xe.value = q, y.value = "", D.value = (Ae = v.value) == null ? void 0 : Ae.length, H.value = (me = ae.value) == null ? void 0 : me.filter((we) => (we == null ? void 0 : we.label) !== "新增"), a.value = (_e = (Oe = l.value) == null ? void 0 : Oe.filter((we) => (we == null ? void 0 : we.label) !== "操作")) == null ? void 0 : _e.map((we) => {
|
|
32021
32021
|
var ee, Ve, St;
|
|
32022
|
-
const We = (Ve = (ee = N.value) == null ? void 0 : ee.find((At) => (At == null ? void 0 : At.label) === (
|
|
32023
|
-
return Ne(
|
|
32024
|
-
...
|
|
32022
|
+
const We = (Ve = (ee = N.value) == null ? void 0 : ee.find((At) => (At == null ? void 0 : At.label) === (we == null ? void 0 : we.label))) == null ? void 0 : Ve.multiple;
|
|
32023
|
+
return Ne(we), {
|
|
32024
|
+
...we,
|
|
32025
32025
|
type: "edit",
|
|
32026
|
-
optionUrl:
|
|
32027
|
-
groupSelect:
|
|
32028
|
-
menuSelect:
|
|
32026
|
+
optionUrl: we != null && we.formMenuSelect && ((St = we == null ? void 0 : we.formMenuSelect) == null ? void 0 : St.length) > 0 ? {
|
|
32027
|
+
groupSelect: we == null ? void 0 : we.groupSelect,
|
|
32028
|
+
menuSelect: we == null ? void 0 : we.formMenuSelect,
|
|
32029
32029
|
selectRelateType: "",
|
|
32030
|
-
type:
|
|
32030
|
+
type: we == null ? void 0 : we.formType,
|
|
32031
32031
|
multiple: We
|
|
32032
32032
|
} : null,
|
|
32033
|
-
columnType: ot(
|
|
32033
|
+
columnType: ot(we == null ? void 0 : we.formType)
|
|
32034
32034
|
};
|
|
32035
|
-
}),
|
|
32035
|
+
}), K === "createClick" && $(!1));
|
|
32036
32036
|
};
|
|
32037
32037
|
mi(
|
|
32038
32038
|
() => [r.itemData, Q.value, G.value, X.value, f == null ? void 0 : f.value],
|
|
32039
32039
|
() => {
|
|
32040
|
-
var
|
|
32041
|
-
const
|
|
32040
|
+
var we, We, ee, Ve, St, At, Jt, Kt, lt, vt, Ee, w, O, Y, k, W, ne, ge, Ie, ze, et, He, Xe, ct, It, Vt, qt, Ft, mt, cn, Ht, an;
|
|
32041
|
+
const K = (we = at(r.itemData)) == null ? void 0 : we.filter((Te) => (Te == null ? void 0 : Te.key) === "header");
|
|
32042
32042
|
(We = at(r.itemData)) == null || We.filter((Te) => (Te == null ? void 0 : Te.key) === "tableIndexColumn")[0];
|
|
32043
|
-
const q = (ee = at(r.itemData)) == null ? void 0 : ee.find((Te) => (Te == null ? void 0 : Te.key) === "page"), he = (Ve = at(r.itemData)) == null ? void 0 : Ve.find((Te) => (Te == null ? void 0 : Te.key) === "rowButton"),
|
|
32044
|
-
N.value = (
|
|
32043
|
+
const q = (ee = at(r.itemData)) == null ? void 0 : ee.find((Te) => (Te == null ? void 0 : Te.key) === "page"), he = (Ve = at(r.itemData)) == null ? void 0 : Ve.find((Te) => (Te == null ? void 0 : Te.key) === "rowButton"), Se = (St = at(r.itemData)) == null ? void 0 : St.find((Te) => (Te == null ? void 0 : Te.key) === "extraButton"), Ae = (At = at(r.itemData)) == null ? void 0 : At.filter((Te) => (Te == null ? void 0 : Te.key) === "tableContents"), me = (Jt = at(r.itemData)) == null ? void 0 : Jt.filter((Te) => (Te == null ? void 0 : Te.key) === "tableIndex");
|
|
32044
|
+
N.value = (vt = (lt = (Kt = at(r.itemData)) == null ? void 0 : Kt.filter((Te) => (Te == null ? void 0 : Te.key) === "tableToForm")) == null ? void 0 : lt[0]) == null ? void 0 : vt.contents, T.value = (q == null ? void 0 : q.contents) ?? !1;
|
|
32045
32045
|
let Oe = [];
|
|
32046
|
-
Q.value === "" ? Oe =
|
|
32046
|
+
Q.value === "" ? Oe = K == null ? void 0 : K[0] : Oe = (K == null ? void 0 : K.find((Te) => (Te == null ? void 0 : Te.selectLabel) === "(" + Q.value + ")")) ?? (K == null ? void 0 : K.find((Te) => !(Te != null && Te.selectLabel)));
|
|
32047
32047
|
let _e = [];
|
|
32048
|
-
if (Q.value === "" ? _e = me == null ? void 0 : me[0] : _e = (me == null ? void 0 : me.find((Te) => (Te == null ? void 0 : Te.selectLabel) === "(" + Q.value + ")")) ?? (me == null ? void 0 : me.find((Te) => !(Te != null && Te.selectLabel))), ((
|
|
32048
|
+
if (Q.value === "" ? _e = me == null ? void 0 : me[0] : _e = (me == null ? void 0 : me.find((Te) => (Te == null ? void 0 : Te.selectLabel) === "(" + Q.value + ")")) ?? (me == null ? void 0 : me.find((Te) => !(Te != null && Te.selectLabel))), ((Ee = Oe == null ? void 0 : Oe.contents) == null ? void 0 : Ee.length) > 0) {
|
|
32049
32049
|
let Te = [];
|
|
32050
32050
|
if (Oe != null && Oe.contents.some((tt) => Array.isArray(tt) && (tt == null ? void 0 : tt.find((Le) => Le.children))))
|
|
32051
32051
|
X.value === "" ? Te = (O = (w = Xc(at(Oe == null ? void 0 : Oe.contents))) == null ? void 0 : w[0]) == null ? void 0 : O.filter((tt) => !Array.isArray(tt)) : (X.value.split("-"), Te = (Y = Xc(at(Oe == null ? void 0 : Oe.contents))) == null ? void 0 : Y[0]);
|
|
@@ -32085,7 +32085,7 @@ const F5 = ao("formToTableComp", {
|
|
|
32085
32085
|
}));
|
|
32086
32086
|
de.value = Lt;
|
|
32087
32087
|
let hn = [];
|
|
32088
|
-
Q.value === "" ? hn =
|
|
32088
|
+
Q.value === "" ? hn = Ae == null ? void 0 : Ae[0] : hn = (Ae == null ? void 0 : Ae.find((tt) => (tt == null ? void 0 : tt.selectLabel) === "(" + Q.value + ")")) ?? (Ae == null ? void 0 : Ae.find((tt) => !(tt != null && tt.selectLabel)));
|
|
32089
32089
|
let zt = Array.isArray((Ie = hn == null ? void 0 : hn.contents) == null ? void 0 : Ie[0]) && ((ze = hn == null ? void 0 : hn.contents) != null && ze[0].every((tt) => Array.isArray(tt))) ? (et = at(hn == null ? void 0 : hn.contents)) == null ? void 0 : et[0] : at(hn == null ? void 0 : hn.contents);
|
|
32090
32090
|
_e != null && _e.contents && ((He = _e == null ? void 0 : _e.contents) == null ? void 0 : He.length) !== 0 && (zt = (Xe = at(zt)) == null ? void 0 : Xe.map((tt, Le) => {
|
|
32091
32091
|
if (!Array.isArray(tt)) {
|
|
@@ -32123,9 +32123,9 @@ const F5 = ao("formToTableComp", {
|
|
|
32123
32123
|
}), v.value = gn;
|
|
32124
32124
|
} else
|
|
32125
32125
|
a.value = [], l.value = [], v.value = [];
|
|
32126
|
-
((It = he == null ? void 0 : he.contents) == null ? void 0 : It.length) > 0 ? V.value = he == null ? void 0 : he.contents : V.value = [], ((Vt =
|
|
32127
|
-
label: "
|
|
32128
|
-
}) :
|
|
32126
|
+
((It = he == null ? void 0 : he.contents) == null ? void 0 : It.length) > 0 ? V.value = he == null ? void 0 : he.contents : V.value = [], ((Vt = Se == null ? void 0 : Se.contents) == null ? void 0 : Vt.length) > 0 ? (((Ft = (qt = at(a.value)) == null ? void 0 : qt.filter((Lt) => (Lt == null ? void 0 : Lt.type) !== "operate")) == null ? void 0 : Ft.every((Lt) => (Lt == null ? void 0 : Lt.formType) === "Select")) ? Se == null || Se.contents.push({
|
|
32127
|
+
label: "新建"
|
|
32128
|
+
}) : Se.contents = (mt = Se == null ? void 0 : Se.contents) == null ? void 0 : mt.filter((Lt) => (Lt == null ? void 0 : Lt.label) !== "修改模板"), H.value = Se == null ? void 0 : Se.contents, ae.value = Se == null ? void 0 : Se.contents) : (H.value = [], ae.value = []), D.value = ((cn = v == null ? void 0 : v.value) == null ? void 0 : cn.length) ?? 0, ue.value = v.value, be.value && (a.value = (an = (Ht = l.value) == null ? void 0 : Ht.filter((Te) => (Te == null ? void 0 : Te.label) !== "操作")) == null ? void 0 : an.map((Te) => {
|
|
32129
32129
|
var Lt;
|
|
32130
32130
|
return {
|
|
32131
32131
|
...Te,
|
|
@@ -32140,34 +32140,34 @@ const F5 = ao("formToTableComp", {
|
|
|
32140
32140
|
}), Me());
|
|
32141
32141
|
},
|
|
32142
32142
|
{ deep: !0, immediate: !0 }
|
|
32143
|
-
), mi(() => r == null ? void 0 : r.operatingForm, (
|
|
32144
|
-
|
|
32143
|
+
), mi(() => r == null ? void 0 : r.operatingForm, (K) => {
|
|
32144
|
+
K != null && K.form && (bt(K == null ? void 0 : K.form), C.value = K == null ? void 0 : K.dialogTitle, Z.value = !0, L.value = !0);
|
|
32145
32145
|
}, { immediate: !0, deep: !0 });
|
|
32146
|
-
const ut = (
|
|
32147
|
-
|
|
32146
|
+
const ut = (K) => {
|
|
32147
|
+
be.value = !be.value, be.value ? Me("viewChange") : (H.value = ae.value, a.value = d.value);
|
|
32148
32148
|
};
|
|
32149
32149
|
je(!1);
|
|
32150
|
-
const Nt = (
|
|
32150
|
+
const Nt = (K) => {
|
|
32151
32151
|
Me("createClick");
|
|
32152
|
-
}, rn = (
|
|
32153
|
-
var
|
|
32154
|
-
xe.value = at(
|
|
32155
|
-
}, Bt = (
|
|
32156
|
-
var
|
|
32157
|
-
const { row: q, column: he, item:
|
|
32158
|
-
let me = q != null && q[he == null ? void 0 : he.prop] ? ((We = (
|
|
32152
|
+
}, rn = (K, q, he) => {
|
|
32153
|
+
var Se, Ae;
|
|
32154
|
+
xe.value = at(K), y.value = K == null ? void 0 : K.id, D.value = (Se = v.value) == null ? void 0 : Se.length, C.value = (K == null ? void 0 : K.id) === ((Ae = v.value) == null ? void 0 : Ae.length) ? "新增" : "编辑", $(!0);
|
|
32155
|
+
}, Bt = (K) => {
|
|
32156
|
+
var we, We, ee, Ve, St, At, Jt, Kt, lt, vt;
|
|
32157
|
+
const { row: q, column: he, item: Se, slotData: Ae } = K;
|
|
32158
|
+
let me = q != null && q[he == null ? void 0 : he.prop] ? ((We = (we = q == null ? void 0 : q[he == null ? void 0 : he.prop]) == null ? void 0 : we[0]) == null ? void 0 : We.contents) ?? (q == null ? void 0 : q[he == null ? void 0 : he.prop]) : ((Ve = (ee = q == null ? void 0 : q[Se == null ? void 0 : Se.prop]) == null ? void 0 : ee[0]) == null ? void 0 : Ve.contents) ?? (q == null ? void 0 : q[Se == null ? void 0 : Se.prop]) ?? ((At = (St = Ae == null ? void 0 : Ae[Se == null ? void 0 : Se.prop]) == null ? void 0 : St[0]) == null ? void 0 : At.contents) ?? (Ae == null ? void 0 : Ae[Se == null ? void 0 : Se.prop]) ?? ((lt = (Kt = q == null ? void 0 : q[(Jt = Se == null ? void 0 : Se.child) == null ? void 0 : Jt.prop]) == null ? void 0 : Kt[0]) == null ? void 0 : lt.contents) ?? (q == null ? void 0 : q[(vt = Se == null ? void 0 : Se.child) == null ? void 0 : vt.prop]), _e = Array.isArray(me) && !(me != null && me.every((Ee) => typeof Ee == "string" || typeof Ee == "number")) ? "查看" : me;
|
|
32159
32159
|
return _e = Array.isArray(_e) ? _e.join(",") : _e, _e;
|
|
32160
32160
|
};
|
|
32161
|
-
return (
|
|
32162
|
-
var
|
|
32163
|
-
const he = Zn("el-icon"),
|
|
32161
|
+
return (K, q) => {
|
|
32162
|
+
var we, We;
|
|
32163
|
+
const he = Zn("el-icon"), Se = Zn("el-popover"), Ae = Zn("svg-icon"), me = Zn("el-checkbox"), Oe = Zn("el-checkbox-group"), _e = Zn("el-button");
|
|
32164
32164
|
return $t(), pn("div", j5, [
|
|
32165
32165
|
($t(), hi(e2, {
|
|
32166
32166
|
columns: a.value,
|
|
32167
32167
|
checkedColumns: t.value,
|
|
32168
32168
|
key: a.value,
|
|
32169
32169
|
tableData: v.value,
|
|
32170
|
-
|
|
32170
|
+
isEditViewport: be.value,
|
|
32171
32171
|
isShowPagination: T.value,
|
|
32172
32172
|
isShowEdit: !1,
|
|
32173
32173
|
isShowDelete: !1,
|
|
@@ -32194,20 +32194,11 @@ const F5 = ao("formToTableComp", {
|
|
|
32194
32194
|
var ee;
|
|
32195
32195
|
return [
|
|
32196
32196
|
((ee = v.value) == null ? void 0 : ee.length) > 0 ? ($t(), pn("div", Y5, [
|
|
32197
|
-
|
|
32198
|
-
title: "只读视图",
|
|
32199
|
-
onClick: q[2] || (q[2] = (Ve) => ut("read"))
|
|
32200
|
-
}, [
|
|
32201
|
-
Ct(Se, {
|
|
32202
|
-
name: "readTable",
|
|
32203
|
-
class: "view-icon"
|
|
32204
|
-
})
|
|
32205
|
-
]),
|
|
32206
|
-
vt("span", {
|
|
32197
|
+
xt("span", {
|
|
32207
32198
|
title: "编辑视图",
|
|
32208
|
-
onClick: q[
|
|
32199
|
+
onClick: q[2] || (q[2] = (Ve) => ut())
|
|
32209
32200
|
}, [
|
|
32210
|
-
|
|
32201
|
+
Rt(Ae, {
|
|
32211
32202
|
name: "editTable",
|
|
32212
32203
|
class: "view-icon"
|
|
32213
32204
|
})
|
|
@@ -32216,19 +32207,19 @@ const F5 = ao("formToTableComp", {
|
|
|
32216
32207
|
];
|
|
32217
32208
|
}),
|
|
32218
32209
|
rowCreate: en(({ row: ee }) => [
|
|
32219
|
-
|
|
32210
|
+
xt("span", {
|
|
32220
32211
|
title: "新增",
|
|
32221
32212
|
class: "row-create-wrap",
|
|
32222
32213
|
onClick: (Ve) => Nt()
|
|
32223
32214
|
}, [
|
|
32224
|
-
|
|
32215
|
+
Rt(Ae, {
|
|
32225
32216
|
name: "rowCreate",
|
|
32226
32217
|
style: { width: "10px", height: "10px" }
|
|
32227
32218
|
})
|
|
32228
32219
|
], 8, J5)
|
|
32229
32220
|
]),
|
|
32230
32221
|
operateCol: en(() => [
|
|
32231
|
-
|
|
32222
|
+
Rt(Se, {
|
|
32232
32223
|
title: "选择显示列信息",
|
|
32233
32224
|
placement: "left-start",
|
|
32234
32225
|
"popper-class": "menu-operate-popover",
|
|
@@ -32236,18 +32227,18 @@ const F5 = ao("formToTableComp", {
|
|
|
32236
32227
|
onShow: Ut
|
|
32237
32228
|
}, {
|
|
32238
32229
|
reference: en(() => [
|
|
32239
|
-
|
|
32240
|
-
|
|
32230
|
+
xt("span", K5, [
|
|
32231
|
+
Rt(Ae, {
|
|
32241
32232
|
name: "operate",
|
|
32242
32233
|
style: { width: "15px", height: "15px", cursor: "pointer" }
|
|
32243
32234
|
})
|
|
32244
32235
|
])
|
|
32245
32236
|
]),
|
|
32246
32237
|
default: en(() => [
|
|
32247
|
-
|
|
32248
|
-
|
|
32238
|
+
xt("div", Z5, [
|
|
32239
|
+
Rt(Oe, {
|
|
32249
32240
|
modelValue: t.value,
|
|
32250
|
-
"onUpdate:modelValue": q[
|
|
32241
|
+
"onUpdate:modelValue": q[3] || (q[3] = (ee) => t.value = ee),
|
|
32251
32242
|
style: { height: "100%" },
|
|
32252
32243
|
min: 2,
|
|
32253
32244
|
ref_key: "checkboxGroupRef",
|
|
@@ -32261,8 +32252,8 @@ const F5 = ao("formToTableComp", {
|
|
|
32261
32252
|
style: { width: "100%", marginRight: 0 }
|
|
32262
32253
|
}, {
|
|
32263
32254
|
default: en(() => [
|
|
32264
|
-
|
|
32265
|
-
|
|
32255
|
+
xt("span", null, Cn(ee.label), 1),
|
|
32256
|
+
Rt(Ae, {
|
|
32266
32257
|
name: "drag",
|
|
32267
32258
|
class: "col-drag-icon",
|
|
32268
32259
|
style: { width: "15px", height: "15px", cursor: "move", color: "grey", position: "absolute", right: "5px" }
|
|
@@ -32283,30 +32274,30 @@ const F5 = ao("formToTableComp", {
|
|
|
32283
32274
|
]),
|
|
32284
32275
|
_: 2
|
|
32285
32276
|
}, [
|
|
32286
|
-
((
|
|
32277
|
+
((we = V.value) == null ? void 0 : we.length) > 0 ? {
|
|
32287
32278
|
name: "actions",
|
|
32288
32279
|
fn: en(({ item: ee }) => [
|
|
32289
|
-
|
|
32280
|
+
Rt(Se, {
|
|
32290
32281
|
title: "",
|
|
32291
32282
|
placement: "left-start",
|
|
32292
32283
|
"popper-class": "menu-operate-popover"
|
|
32293
32284
|
}, {
|
|
32294
32285
|
reference: en(() => [
|
|
32295
|
-
|
|
32286
|
+
Rt(he, null, {
|
|
32296
32287
|
default: en(() => [
|
|
32297
|
-
|
|
32288
|
+
Rt(Tn(a2))
|
|
32298
32289
|
]),
|
|
32299
32290
|
_: 1
|
|
32300
32291
|
})
|
|
32301
32292
|
]),
|
|
32302
32293
|
default: en(() => [
|
|
32303
|
-
|
|
32294
|
+
xt("div", q5, [
|
|
32304
32295
|
($t(!0), pn(Lr, null, Dr(st(V.value, ee), (Ve, St) => ($t(), pn("div", {
|
|
32305
32296
|
class: "menu-config-item",
|
|
32306
32297
|
key: St,
|
|
32307
32298
|
onClick: (At) => Ge(Ve == null ? void 0 : Ve.label, ee, { extra: Ve })
|
|
32308
32299
|
}, [
|
|
32309
|
-
|
|
32300
|
+
xt("div", {
|
|
32310
32301
|
style: $a({ color: Ve == null ? void 0 : Ve.textColor }),
|
|
32311
32302
|
class: "extra-button-label"
|
|
32312
32303
|
}, Cn(Ve == null ? void 0 : Ve.label), 5)
|
|
@@ -32321,24 +32312,24 @@ const F5 = ao("formToTableComp", {
|
|
|
32321
32312
|
((We = v.value) == null ? void 0 : We.length) > 0 ? {
|
|
32322
32313
|
name: "batchButton",
|
|
32323
32314
|
fn: en((ee) => [
|
|
32324
|
-
|
|
32315
|
+
Rt(L5, {
|
|
32325
32316
|
buttons: ee.buttons,
|
|
32326
32317
|
onButtonClick: q[1] || (q[1] = (Ve) => Ge(Ve, "", {}))
|
|
32327
32318
|
}, null, 8, ["buttons"])
|
|
32328
32319
|
]),
|
|
32329
32320
|
key: "1"
|
|
32330
32321
|
} : void 0
|
|
32331
|
-
]), 1032, ["columns", "checkedColumns", "tableData", "
|
|
32332
|
-
|
|
32322
|
+
]), 1032, ["columns", "checkedColumns", "tableData", "isEditViewport", "isShowPagination", "extraButton"])),
|
|
32323
|
+
Rt(vo, {
|
|
32333
32324
|
title: C.value,
|
|
32334
32325
|
visible: L.value,
|
|
32335
32326
|
width: ce.value,
|
|
32336
32327
|
onBeforeDestroy: Fe
|
|
32337
32328
|
}, {
|
|
32338
32329
|
default: en(() => [
|
|
32339
|
-
|
|
32340
|
-
|
|
32341
|
-
rowContents:
|
|
32330
|
+
xt("div", Q5, [
|
|
32331
|
+
Rt(Ja, {
|
|
32332
|
+
rowContents: J.value,
|
|
32342
32333
|
isEnableWrap: !1,
|
|
32343
32334
|
onChange: De,
|
|
32344
32335
|
onClickTrigger: Ze,
|
|
@@ -32349,63 +32340,63 @@ const F5 = ao("formToTableComp", {
|
|
|
32349
32340
|
]),
|
|
32350
32341
|
footer: en(() => [
|
|
32351
32342
|
Z.value ? ($t(), pn("div", e8, [
|
|
32352
|
-
|
|
32353
|
-
onClick: q[
|
|
32343
|
+
Rt(_e, {
|
|
32344
|
+
onClick: q[4] || (q[4] = (ee) => L.value = !1),
|
|
32354
32345
|
id: "themeBorderButton"
|
|
32355
32346
|
}, {
|
|
32356
|
-
default: en(() => q[
|
|
32347
|
+
default: en(() => q[7] || (q[7] = [
|
|
32357
32348
|
gs(Cn("取消"))
|
|
32358
32349
|
])),
|
|
32359
32350
|
_: 1,
|
|
32360
|
-
__: [
|
|
32351
|
+
__: [7]
|
|
32361
32352
|
}),
|
|
32362
|
-
|
|
32353
|
+
Rt(_e, {
|
|
32363
32354
|
class: "ok-button",
|
|
32364
32355
|
onClick: $,
|
|
32365
32356
|
id: "themeButton"
|
|
32366
32357
|
}, {
|
|
32367
|
-
default: en(() => q[
|
|
32358
|
+
default: en(() => q[8] || (q[8] = [
|
|
32368
32359
|
gs(Cn("确认"))
|
|
32369
32360
|
])),
|
|
32370
32361
|
_: 1,
|
|
32371
|
-
__: [
|
|
32362
|
+
__: [8]
|
|
32372
32363
|
})
|
|
32373
32364
|
])) : ui("", !0)
|
|
32374
32365
|
]),
|
|
32375
32366
|
_: 1
|
|
32376
32367
|
}, 8, ["title", "visible", "width"]),
|
|
32377
|
-
|
|
32368
|
+
Rt(vo, {
|
|
32378
32369
|
title: C.value,
|
|
32379
32370
|
visible: S.value,
|
|
32380
32371
|
width: P.value,
|
|
32381
|
-
onBeforeDestroy: q[
|
|
32372
|
+
onBeforeDestroy: q[6] || (q[6] = (ee) => S.value = !1)
|
|
32382
32373
|
}, {
|
|
32383
32374
|
default: en(() => [
|
|
32384
|
-
|
|
32375
|
+
Rt(O5)
|
|
32385
32376
|
]),
|
|
32386
32377
|
footer: en(() => [
|
|
32387
|
-
|
|
32388
|
-
|
|
32389
|
-
onClick: q[
|
|
32378
|
+
xt("div", t8, [
|
|
32379
|
+
Rt(_e, {
|
|
32380
|
+
onClick: q[5] || (q[5] = (ee) => S.value = !1),
|
|
32390
32381
|
class: "cancel-button",
|
|
32391
32382
|
id: "themeBorderButton"
|
|
32392
32383
|
}, {
|
|
32393
|
-
default: en(() => q[
|
|
32384
|
+
default: en(() => q[9] || (q[9] = [
|
|
32394
32385
|
gs(Cn("取消"))
|
|
32395
32386
|
])),
|
|
32396
32387
|
_: 1,
|
|
32397
|
-
__: [
|
|
32388
|
+
__: [9]
|
|
32398
32389
|
}),
|
|
32399
|
-
|
|
32390
|
+
Rt(_e, {
|
|
32400
32391
|
class: "ok-button",
|
|
32401
32392
|
onClick: _t,
|
|
32402
32393
|
id: "themeButton"
|
|
32403
32394
|
}, {
|
|
32404
|
-
default: en(() => q[
|
|
32395
|
+
default: en(() => q[10] || (q[10] = [
|
|
32405
32396
|
gs(Cn("确认"))
|
|
32406
32397
|
])),
|
|
32407
32398
|
_: 1,
|
|
32408
|
-
__: [
|
|
32399
|
+
__: [10]
|
|
32409
32400
|
})
|
|
32410
32401
|
])
|
|
32411
32402
|
]),
|
|
@@ -32433,11 +32424,11 @@ const F5 = ao("formToTableComp", {
|
|
|
32433
32424
|
]);
|
|
32434
32425
|
};
|
|
32435
32426
|
}
|
|
32436
|
-
}, i8 = /* @__PURE__ */ Bi(n8, [["__scopeId", "data-v-
|
|
32427
|
+
}, i8 = /* @__PURE__ */ Bi(n8, [["__scopeId", "data-v-de92b74f"]]);
|
|
32437
32428
|
export {
|
|
32438
32429
|
Z0 as A,
|
|
32439
32430
|
Xn as B,
|
|
32440
|
-
|
|
32431
|
+
Ct as C,
|
|
32441
32432
|
Wa as D,
|
|
32442
32433
|
zn as E,
|
|
32443
32434
|
Hd as G,
|