ss-component-new 1.1.283 → 1.1.284
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/{array-OfJiRRgb.js → array-CXpM8VLE.js} +2 -2
- package/dist/{array-DkOB1RPq.cjs → array-CYXVrhQ2.cjs} +1 -1
- package/dist/{cloneDeep-feqhv94b.js → cloneDeep-Cu4J5N0F.js} +1 -1
- package/dist/{cloneDeep-DtoO4-hj.cjs → cloneDeep-DulWrX2z.cjs} +1 -1
- package/dist/{index-21q_r2qi.js → index-0CvWYYy4.js} +4 -4
- package/dist/{index-CgwIdEIC.js → index-7sXrS1yV.js} +4 -4
- package/dist/{index-OELQNgDG.cjs → index-9Ch923O9.cjs} +1 -1
- package/dist/{index-XI8zAW6i.js → index-B-G6AYGU.js} +1 -1
- package/dist/{index-BQbPMt7-.js → index-B40N_RE8.js} +197 -197
- package/dist/{index-DgMiGg54.js → index-B5qq-x7u.js} +6 -6
- package/dist/{index-E8PcFpi_.cjs → index-B7cysJ4B.cjs} +1 -1
- package/dist/{index-B8BUDNQV.cjs → index-B9GZsKv8.cjs} +1 -1
- package/dist/{index-DnZnemNQ.js → index-BBgdD9SQ.js} +7 -7
- package/dist/{index-w64gOHK1.cjs → index-BIlUPWxQ.cjs} +1 -1
- package/dist/{index-zvl3EJCG.js → index-BJNvTKJa.js} +5 -5
- package/dist/{index-YbDGy2Hl.cjs → index-BNl_32Pt.cjs} +1 -1
- package/dist/{index-NzwejrFt.cjs → index-BRGNMZ86.cjs} +1 -1
- package/dist/{index-Dd7jAc5p.cjs → index-BTEbjfBy.cjs} +1 -1
- package/dist/{index-BqxMgu7N.js → index-BUV-XDv5.js} +5 -5
- package/dist/{index-CQP0eVmd.cjs → index-BnIAoUM7.cjs} +1 -1
- package/dist/{index-BwdLQp1l.js → index-BuceFihY.js} +6 -6
- package/dist/{index-Bm7Vy3C0.cjs → index-C1A-zCVm.cjs} +1 -1
- package/dist/{index-B8wIWX1k.cjs → index-C7SCYeaB.cjs} +1 -1
- package/dist/{index-Djv8nCg7.js → index-C8ufltkd.js} +3 -3
- package/dist/{index-nlOB0AES.cjs → index-CUYS_7_G.cjs} +1 -1
- package/dist/{index-BFmZTgN7.js → index-Cd88IGF7.js} +8 -8
- package/dist/{index-DKTz3kI0.cjs → index-Ch6ikSG5.cjs} +1 -1
- package/dist/{index-C2SlsA3y.cjs → index-CitjQ8BE.cjs} +1 -1
- package/dist/{index-YxWDvp-_.js → index-CvEGh5vC.js} +4 -4
- package/dist/{index-dY-IDkNQ.cjs → index-D0sHlQ2L.cjs} +1 -1
- package/dist/{index-B663Py01.js → index-D5bqw366.js} +1 -1
- package/dist/{index-ByEUCEWg.cjs → index-DLeWsgTA.cjs} +1 -1
- package/dist/{index-C4Ub-L22.js → index-DLkcsreR.js} +8 -8
- package/dist/{index-ClJJvbGm.cjs → index-DLw2PLSD.cjs} +1 -1
- package/dist/{index-D8UZLzB0.cjs → index-DPz_98e5.cjs} +1 -1
- package/dist/{index-C007Wt0w.js → index-DVViKWsC.js} +1 -1
- package/dist/{index-C_0LsBW5.cjs → index-DerKVJ8K.cjs} +1 -1
- package/dist/{index-C9nT_KGU.js → index-DknRkncm.js} +5 -5
- package/dist/{index-Bprey4k0.js → index-Dn84Ec2c.js} +7 -7
- package/dist/{index-CsU3gCDp.js → index-DnjK3D-s.js} +4 -4
- package/dist/{index-q5GflUT_.cjs → index-Dwe8wTVx.cjs} +1 -1
- package/dist/{index-hlNCcblo.js → index-GeCpVfka.js} +1 -1
- package/dist/{index-APKNvUt7.cjs → index-Trhg47DP.cjs} +1 -1
- package/dist/{index-BKjc21Ys.js → index-VFPFY5-Z.js} +3 -3
- package/dist/{index-DnS2KYIg.cjs → index-XFMwwtaT.cjs} +1 -1
- package/dist/{index-Df166ahL.js → index-YEm-6sfT.js} +4 -4
- package/dist/{index-B8wfeCzZ.js → index-_T0mcTGp.js} +3 -3
- package/dist/{index-CJKrOdLx.js → index-__2G_x90.js} +5 -5
- package/dist/{index-CfC1jcnz.cjs → index-_a5bo92d.cjs} +1 -1
- package/dist/{index-B248K3kY.cjs → index-aA-E4fpW.cjs} +6 -6
- package/dist/{index-DuomDRmQ.js → index-arqkqMyt.js} +3 -3
- package/dist/{index-DKcKx5uf.cjs → index-auVQAWKg.cjs} +1 -1
- package/dist/{index-McaHJu9i.cjs → index-dl7sUt6b.cjs} +1 -1
- package/dist/{index-BbTRv2Vp.cjs → index-jyE54Nke.cjs} +1 -1
- package/dist/{index-1iHgUiEZ.js → index-lTY8kkcS.js} +3 -3
- package/dist/{index-DLI8GkMO.js → index-wxhd6XdQ.js} +9 -9
- package/dist/{index.vue_vue_type_script_setup_true_lang-BQptFrJw.js → index.vue_vue_type_script_setup_true_lang-2hVlD-xw.js} +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-dhgdZ5o2.cjs → index.vue_vue_type_script_setup_true_lang-BXFLrQHw.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_4bf164f6_lang-DVVPYqC1.js → index.vue_vue_type_style_index_0_scoped_4bf164f6_lang-CNdG-bkl.js} +134 -133
- package/dist/index.vue_vue_type_style_index_0_scoped_4bf164f6_lang-fkN1tNN3.cjs +1 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-DBO96k1V.js → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-D51c0Mj0.js} +8 -8
- package/dist/{index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-BazDrTIZ.cjs → index.vue_vue_type_style_index_0_scoped_d9b749a8_lang-U3bECJf9.cjs} +1 -1
- package/dist/{login-RORcCkh3.js → login-CnEIhZuS.js} +2 -2
- package/dist/{login-CN-yXGLY.cjs → login-DBXmJeJa.cjs} +1 -1
- package/dist/{main-De8FBBtG.cjs → main-mO0yG0t0.cjs} +1 -1
- package/dist/{main-BlDYCrgW.js → main-oGBZDTyg.js} +7 -7
- package/dist/{menu-DtWVo0q5.cjs → menu-MBS9ZmYw.cjs} +1 -1
- package/dist/{menu-BX5rzD13.js → menu-tAoAC3NP.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +7 -7
- package/dist/ss-component3.cjs +1 -1
- package/dist/ss-component3.js +1 -1
- package/package.json +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_4bf164f6_lang-jHQcansV.cjs +0 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { ref as me, onMounted as gn, nextTick as Qt, onBeforeUnmount as go, createElementBlock as ye, openBlock as le, createElementVNode as Y, createCommentVNode as Be, normalizeClass as en, unref as U, withDirectives as Bt, isRef as tn, vModelRadio as nn, toDisplayString as qe, watch as it, Fragment as un, renderList as hn, normalizeStyle as bo, resolveComponent as Pe, resolveDirective as Ts, createBlock as Ie, withCtx as fe, createVNode as oe, createTextVNode as yt, renderSlot as Yt, resolveDynamicComponent as Pn, defineComponent as yo } from "vue";
|
|
2
|
-
import { m as Bn, a as zn, b as Vn } from "./index-
|
|
3
|
-
import Ln from "./index-
|
|
4
|
-
import { p as tt } from "./index-
|
|
5
|
-
import { C as wo, V as ce, M as Vt, T as zt, Q as pn, S as ls, a as Ge, R as _o, P as an, b as Ut, c as Es, d as wt, e as Sn, W as vo, f as ko, A as xo, g as Oe, X as Co, h as
|
|
6
|
-
import { s as et, u as wn, b as ot, g as qo } from "./menu-
|
|
7
|
-
import { u as Yo } from "./index-
|
|
8
|
-
import { o as Rs, c as Ds, a as Fs, b as mn, s as We, g as Fn, d as jn, e as On, f as In, _ as Ko, h as Wo, i as Zo } from "./index.vue_vue_type_style_index_0_scoped_4bf164f6_lang-
|
|
9
|
-
import { _ as
|
|
10
|
-
import { i as Xo, e as Jo, b as ms, c as gs, a as Qo } from "./array-
|
|
11
|
-
import { u as js } from "./login-
|
|
2
|
+
import { m as Bn, a as zn, b as Vn } from "./index-DLkcsreR.js";
|
|
3
|
+
import Ln from "./index-D5bqw366.js";
|
|
4
|
+
import { p as tt } from "./index-DVViKWsC.js";
|
|
5
|
+
import { C as wo, V as ce, M as Vt, T as zt, Q as pn, S as ls, a as Ge, R as _o, P as an, b as Ut, c as Es, d as wt, e as Sn, W as vo, f as ko, A as xo, g as Oe, X as Co, h as Ns, D as rn, H as Ao, i as Rn, B as Hn, j as xn, k as $e, l as Tt, m as Ze, E as ln, L as Kt, F as bn, G as fn, n as Gt, o as Ue, p as Ht, q as cs, r as $t, s as Dn, t as cn, v as Gn, w as Ms, x as qt, y as Et, z as Ps, I as $n, J as Cn, K as To, N as Eo, O as ut, U as ds, Y as us, Z as No, _ as Mo, $ as Po, a0 as hs, a1 as Lo, a2 as So, a3 as Ro, a4 as Ls, a5 as Do, a6 as ps, a7 as Fo, a8 as fs, a9 as jo, aa as Oo, ab as Io, ac as Uo, ad as Bo, ae as zo, af as Vo, u as yn, ag as Ho, ah as qn, ai as Go, aj as $o, ak as Ss } from "./index-__2G_x90.js";
|
|
6
|
+
import { s as et, u as wn, b as ot, g as qo } from "./menu-tAoAC3NP.js";
|
|
7
|
+
import { u as Yo } from "./index-Dn84Ec2c.js";
|
|
8
|
+
import { o as Rs, c as Ds, a as Fs, b as mn, s as We, g as Fn, d as jn, e as On, f as In, _ as Ko, h as Wo, i as Zo } from "./index.vue_vue_type_style_index_0_scoped_4bf164f6_lang-CNdG-bkl.js";
|
|
9
|
+
import { _ as Mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
+
import { i as Xo, e as Jo, b as ms, c as gs, a as Qo } from "./array-CXpM8VLE.js";
|
|
11
|
+
import { u as js } from "./login-CnEIhZuS.js";
|
|
12
12
|
import { S as bt } from "./index-BHtNKL1L.js";
|
|
13
|
-
import { E as ei, s as ti } from "./index-
|
|
14
|
-
import { c as
|
|
15
|
-
import { d as Un } from "./index-
|
|
16
|
-
import { _ as ni } from "./index-
|
|
13
|
+
import { E as ei, s as ti } from "./index-wxhd6XdQ.js";
|
|
14
|
+
import { c as Nt } from "./cloneDeep-Cu4J5N0F.js";
|
|
15
|
+
import { d as Un } from "./index-_T0mcTGp.js";
|
|
16
|
+
import { _ as ni } from "./index-7sXrS1yV.js";
|
|
17
17
|
const bs = { type: "change" }, Yn = { type: "start" }, Os = { type: "end" }, sn = new _o(), ys = new an(), si = Math.cos(70 * Ut.DEG2RAD), Se = new ce(), He = 2 * Math.PI, xe = {
|
|
18
18
|
NONE: -1,
|
|
19
19
|
ROTATE: 0,
|
|
@@ -490,7 +490,7 @@ function bi(E) {
|
|
|
490
490
|
}
|
|
491
491
|
}), l.attachControls(c), D(), S();
|
|
492
492
|
}, D = () => {
|
|
493
|
-
const C = new
|
|
493
|
+
const C = new Ns(4210752, 0.6);
|
|
494
494
|
n.add(C);
|
|
495
495
|
const w = new rn(16777215, 2);
|
|
496
496
|
w.position.set(10, 10, 8), w.castShadow = !0, w.shadow.mapSize.width = 2048, w.shadow.mapSize.height = 2048, w.shadow.camera.near = 0.5, w.shadow.camera.far = 50, n.add(w);
|
|
@@ -578,24 +578,24 @@ function yi(E, n) {
|
|
|
578
578
|
const a = me(!1);
|
|
579
579
|
let r = null, c = 12700, l = new ce(), y = new ce(), u = new ce(), b = 0, g = null;
|
|
580
580
|
const L = (p) => p < 0.5 ? 4 * p * p * p : 1 - Math.pow(-2 * p + 2, 3) / 2, D = (p) => {
|
|
581
|
-
const
|
|
581
|
+
const N = new ce(), x = b * 1.2, O = new ce(u.x + x, u.y, u.z), C = new ce(u.x, u.y + x, u.z), w = new ce(u.x, u.y - x, u.z);
|
|
582
582
|
if (p <= 0.567) {
|
|
583
583
|
const j = p / 0.567 * Math.PI * 2;
|
|
584
|
-
|
|
584
|
+
N.x = u.x + Math.cos(j) * x, N.z = u.z + Math.sin(j) * x, N.y = u.y;
|
|
585
585
|
} else if (p <= 0.724) {
|
|
586
586
|
const f = (p - 0.567) / 0.157, j = L(f);
|
|
587
|
-
|
|
587
|
+
N.lerpVectors(O, C, j);
|
|
588
588
|
} else if (p <= 0.881) {
|
|
589
589
|
const f = (p - 0.724) / 0.157, T = L(f) * Math.PI;
|
|
590
|
-
|
|
590
|
+
N.x = u.x + Math.sin(T) * x, N.y = u.y + Math.cos(T) * x, N.z = u.z;
|
|
591
591
|
} else {
|
|
592
592
|
const f = (p - 0.881) / 0.119, j = L(f);
|
|
593
|
-
|
|
593
|
+
N.lerpVectors(w, l, j);
|
|
594
594
|
}
|
|
595
|
-
return
|
|
595
|
+
return N;
|
|
596
596
|
}, S = () => {
|
|
597
|
-
const { camera: p, controls:
|
|
598
|
-
if (!p || !
|
|
597
|
+
const { camera: p, controls: N } = E();
|
|
598
|
+
if (!p || !N) return;
|
|
599
599
|
r || (r = Date.now());
|
|
600
600
|
const x = Date.now() - r, O = Math.min(x / c, 1);
|
|
601
601
|
if (O >= 1) {
|
|
@@ -603,12 +603,12 @@ function yi(E, n) {
|
|
|
603
603
|
return;
|
|
604
604
|
}
|
|
605
605
|
const C = D(O);
|
|
606
|
-
p.position.copy(C), p.lookAt(u),
|
|
606
|
+
p.position.copy(C), p.lookAt(u), N.target.copy(u), g = requestAnimationFrame(S);
|
|
607
607
|
}, A = () => {
|
|
608
608
|
if (n.value.length === 0) return;
|
|
609
|
-
const { camera: p, controls:
|
|
610
|
-
if (!p || !
|
|
611
|
-
l.copy(p.position), y.copy(
|
|
609
|
+
const { camera: p, controls: N } = E();
|
|
610
|
+
if (!p || !N) return;
|
|
611
|
+
l.copy(p.position), y.copy(N.target);
|
|
612
612
|
const x = new Hn();
|
|
613
613
|
n.value.forEach((k) => {
|
|
614
614
|
x.expandByObject(k);
|
|
@@ -616,10 +616,10 @@ function yi(E, n) {
|
|
|
616
616
|
const O = x.getSize(new ce());
|
|
617
617
|
u = x.getCenter(new ce()), b = Math.max(O.x, O.y, O.z) * 1.2;
|
|
618
618
|
const C = new ce(u.x + b * 1.2, u.y, u.z);
|
|
619
|
-
|
|
619
|
+
N.enabled = !1;
|
|
620
620
|
const w = p.position.clone(), f = 1e3, j = Date.now(), T = () => {
|
|
621
621
|
const k = Date.now() - j, H = Math.min(k / f, 1), F = L(H);
|
|
622
|
-
p.position.lerpVectors(w, C, F), p.lookAt(u),
|
|
622
|
+
p.position.lerpVectors(w, C, F), p.lookAt(u), N.target.copy(u), H < 1 ? requestAnimationFrame(T) : (a.value = !0, r = null, S());
|
|
623
623
|
};
|
|
624
624
|
T();
|
|
625
625
|
}, R = () => {
|
|
@@ -632,12 +632,12 @@ function yi(E, n) {
|
|
|
632
632
|
toggleAnimation: () => {
|
|
633
633
|
if (a.value) {
|
|
634
634
|
a.value = !1, r = null, g && (cancelAnimationFrame(g), g = null);
|
|
635
|
-
const { camera: p, controls:
|
|
636
|
-
if (!p || !
|
|
637
|
-
|
|
638
|
-
const x = p.position.clone(), O =
|
|
635
|
+
const { camera: p, controls: N } = E();
|
|
636
|
+
if (!p || !N) return;
|
|
637
|
+
N.enabled = !0;
|
|
638
|
+
const x = p.position.clone(), O = N.target.clone(), C = 1500, w = Date.now(), f = () => {
|
|
639
639
|
const j = Date.now() - w, T = Math.min(j / C, 1), k = L(T);
|
|
640
|
-
p.position.lerpVectors(x, l, k),
|
|
640
|
+
p.position.lerpVectors(x, l, k), N.target.lerpVectors(O, y, k), T < 1 && requestAnimationFrame(f);
|
|
641
641
|
};
|
|
642
642
|
f();
|
|
643
643
|
} else
|
|
@@ -665,15 +665,15 @@ function wi(E, n) {
|
|
|
665
665
|
}), u = y.getCenter(new ce());
|
|
666
666
|
}, L = (v) => {
|
|
667
667
|
const p = y.getSize(new ce());
|
|
668
|
-
let
|
|
669
|
-
v === "x" ? (
|
|
668
|
+
let N, x, O;
|
|
669
|
+
v === "x" ? (N = new xn(p.z * 1.2, p.y * 1.2), x = new ce(u.x, u.y, u.z), O = new ln(0, Math.PI / 2, 0)) : v === "y" ? (N = new xn(p.x * 1.2, p.z * 1.2), x = new ce(u.x, u.y, u.z), O = new ln(Math.PI / 2, 0, 0)) : v === "z" && (N = new xn(p.x * 1.2, p.y * 1.2), x = new ce(u.x, u.y, u.z), O = new ln(0, 0, 0));
|
|
670
670
|
const C = new $e({
|
|
671
671
|
color: 8900331,
|
|
672
672
|
transparent: !0,
|
|
673
673
|
opacity: 0.3,
|
|
674
674
|
side: Tt,
|
|
675
675
|
depthWrite: !1
|
|
676
|
-
}), w = new Ze(
|
|
676
|
+
}), w = new Ze(N, C);
|
|
677
677
|
return w.position.copy(x), w.rotation.copy(O), w;
|
|
678
678
|
}, D = () => {
|
|
679
679
|
if (S(), A(), r.value === "none")
|
|
@@ -681,8 +681,8 @@ function wi(E, n) {
|
|
|
681
681
|
g();
|
|
682
682
|
let v = null;
|
|
683
683
|
if (r.value === "x" ? (c[0].constant = -u.x, v = c[0]) : r.value === "y" ? (c[1].constant = -u.y, v = c[1]) : r.value === "z" && (c[2].constant = -u.z, v = c[2]), v) {
|
|
684
|
-
n.value.forEach((
|
|
685
|
-
|
|
684
|
+
n.value.forEach((N) => {
|
|
685
|
+
N.traverse((x) => {
|
|
686
686
|
x.isMesh && x.material && (Array.isArray(x.material) ? x.material.forEach((O) => {
|
|
687
687
|
O.clippingPlanes = [v];
|
|
688
688
|
}) : x.material.clippingPlanes = [v]);
|
|
@@ -690,15 +690,15 @@ function wi(E, n) {
|
|
|
690
690
|
});
|
|
691
691
|
const { scene: p } = E();
|
|
692
692
|
if (p) {
|
|
693
|
-
const
|
|
694
|
-
p.add(
|
|
693
|
+
const N = L(r.value);
|
|
694
|
+
p.add(N), l.push(N);
|
|
695
695
|
}
|
|
696
696
|
}
|
|
697
697
|
}, S = () => {
|
|
698
698
|
n.value.forEach((v) => {
|
|
699
699
|
v.traverse((p) => {
|
|
700
|
-
p.isMesh && p.material && (Array.isArray(p.material) ? p.material.forEach((
|
|
701
|
-
|
|
700
|
+
p.isMesh && p.material && (Array.isArray(p.material) ? p.material.forEach((N) => {
|
|
701
|
+
N.clippingPlanes = [];
|
|
702
702
|
}) : p.material.clippingPlanes = []);
|
|
703
703
|
});
|
|
704
704
|
});
|
|
@@ -969,24 +969,24 @@ class En extends Kt {
|
|
|
969
969
|
} else if (L === "f") {
|
|
970
970
|
const S = g.slice(1).trim().split(ws), A = [];
|
|
971
971
|
for (let v = 0, p = S.length; v < p; v++) {
|
|
972
|
-
const
|
|
973
|
-
if (
|
|
974
|
-
const x =
|
|
972
|
+
const N = S[v];
|
|
973
|
+
if (N.length > 0) {
|
|
974
|
+
const x = N.split("/");
|
|
975
975
|
A.push(x);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
978
|
const R = A[0];
|
|
979
979
|
for (let v = 1, p = A.length - 1; v < p; v++) {
|
|
980
|
-
const
|
|
980
|
+
const N = A[v], x = A[v + 1];
|
|
981
981
|
a.addFace(
|
|
982
982
|
R[0],
|
|
983
|
-
|
|
983
|
+
N[0],
|
|
984
984
|
x[0],
|
|
985
985
|
R[1],
|
|
986
|
-
|
|
986
|
+
N[1],
|
|
987
987
|
x[1],
|
|
988
988
|
R[2],
|
|
989
|
-
|
|
989
|
+
N[2],
|
|
990
990
|
x[2]
|
|
991
991
|
);
|
|
992
992
|
}
|
|
@@ -1051,16 +1051,16 @@ class En extends Kt {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
f === void 0 && (S ? f = new Ht() : A ? f = new $t({ size: 1, sizeAttenuation: !1 }) : f = new $e(), f.name = C.name, f.flatShading = !C.smooth, f.vertexColors = R, a.materials[w] = f), p.push(f);
|
|
1053
1053
|
}
|
|
1054
|
-
let
|
|
1054
|
+
let N;
|
|
1055
1055
|
if (p.length > 1) {
|
|
1056
1056
|
for (let x = 0, O = D.length; x < O; x++) {
|
|
1057
1057
|
const C = D[x];
|
|
1058
1058
|
v.addGroup(C.groupStart, C.groupCount, x);
|
|
1059
1059
|
}
|
|
1060
|
-
S ?
|
|
1060
|
+
S ? N = new Dn(v, p) : A ? N = new cn(v, p) : N = new Ze(v, p);
|
|
1061
1061
|
} else
|
|
1062
|
-
S ?
|
|
1063
|
-
|
|
1062
|
+
S ? N = new Dn(v, p[0]) : A ? N = new cn(v, p[0]) : N = new Ze(v, p[0]);
|
|
1063
|
+
N.name = g.name, l.add(N);
|
|
1064
1064
|
}
|
|
1065
1065
|
else if (a.vertices.length > 0) {
|
|
1066
1066
|
const u = new $t({ size: 1, sizeAttenuation: !1 }), b = new Gt();
|
|
@@ -1071,7 +1071,7 @@ class En extends Kt {
|
|
|
1071
1071
|
return l;
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
|
-
class
|
|
1074
|
+
class Nn extends Kt {
|
|
1075
1075
|
constructor(n) {
|
|
1076
1076
|
super(n);
|
|
1077
1077
|
}
|
|
@@ -1137,7 +1137,7 @@ class Mn extends Kt {
|
|
|
1137
1137
|
}
|
|
1138
1138
|
class Ai {
|
|
1139
1139
|
constructor(n = "", a = {}) {
|
|
1140
|
-
this.baseUrl = n, this.options = a, this.materialsInfo = {}, this.materials = {}, this.materialsArray = [], this.nameLookup = {}, this.crossOrigin = "anonymous", this.side = this.options.side !== void 0 ? this.options.side :
|
|
1140
|
+
this.baseUrl = n, this.options = a, this.materialsInfo = {}, this.materials = {}, this.materialsArray = [], this.nameLookup = {}, this.crossOrigin = "anonymous", this.side = this.options.side !== void 0 ? this.options.side : Ms, this.wrap = this.options.wrap !== void 0 ? this.options.wrap : qt;
|
|
1141
1141
|
}
|
|
1142
1142
|
setCrossOrigin(n) {
|
|
1143
1143
|
return this.crossOrigin = n, this;
|
|
@@ -1315,15 +1315,15 @@ class dn extends Kt {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
function c(g) {
|
|
1317
1317
|
const L = new DataView(g), D = L.getUint32(80, !0);
|
|
1318
|
-
let S, A, R, v = !1, p,
|
|
1318
|
+
let S, A, R, v = !1, p, N, x, O, C;
|
|
1319
1319
|
for (let F = 0; F < 70; F++)
|
|
1320
|
-
L.getUint32(F, !1) == 1129270351 && L.getUint8(F + 4) == 82 && L.getUint8(F + 5) == 61 && (v = !0, p = new Float32Array(D * 3 * 3),
|
|
1320
|
+
L.getUint32(F, !1) == 1129270351 && L.getUint8(F + 4) == 82 && L.getUint8(F + 5) == 61 && (v = !0, p = new Float32Array(D * 3 * 3), N = L.getUint8(F + 6) / 255, x = L.getUint8(F + 7) / 255, O = L.getUint8(F + 8) / 255, C = L.getUint8(F + 9) / 255);
|
|
1321
1321
|
const w = 84, f = 12 * 4 + 2, j = new Gt(), T = new Float32Array(D * 3 * 3), k = new Float32Array(D * 3 * 3), H = new wt();
|
|
1322
1322
|
for (let F = 0; F < D; F++) {
|
|
1323
1323
|
const B = w + F * f, ie = L.getFloat32(B, !0), he = L.getFloat32(B + 4, !0), m = L.getFloat32(B + 8, !0);
|
|
1324
1324
|
if (v) {
|
|
1325
1325
|
const d = L.getUint16(B + 48, !0);
|
|
1326
|
-
(d & 32768) === 0 ? (S = (d & 31) / 31, A = (d >> 5 & 31) / 31, R = (d >> 10 & 31) / 31) : (S =
|
|
1326
|
+
(d & 32768) === 0 ? (S = (d & 31) / 31, A = (d >> 5 & 31) / 31, R = (d >> 10 & 31) / 31) : (S = N, A = x, R = O);
|
|
1327
1327
|
}
|
|
1328
1328
|
for (let d = 1; d <= 3; d++) {
|
|
1329
1329
|
const I = B + d * 12, $ = F * 3 * 3 + (d - 1) * 3;
|
|
@@ -1335,7 +1335,7 @@ class dn extends Kt {
|
|
|
1335
1335
|
function l(g) {
|
|
1336
1336
|
const L = new Gt(), D = /solid([\s\S]*?)endsolid/g, S = /facet([\s\S]*?)endfacet/g, A = /solid\s(.+)/;
|
|
1337
1337
|
let R = 0;
|
|
1338
|
-
const v = /[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source, p = new RegExp("vertex" + v + v + v, "g"),
|
|
1338
|
+
const v = /[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source, p = new RegExp("vertex" + v + v + v, "g"), N = new RegExp("normal" + v + v + v, "g"), x = [], O = [], C = [], w = new ce();
|
|
1339
1339
|
let f, j = 0, T = 0, k = 0;
|
|
1340
1340
|
for (; (f = D.exec(g)) !== null; ) {
|
|
1341
1341
|
T = k;
|
|
@@ -1343,7 +1343,7 @@ class dn extends Kt {
|
|
|
1343
1343
|
for (C.push(F); (f = S.exec(H)) !== null; ) {
|
|
1344
1344
|
let he = 0, m = 0;
|
|
1345
1345
|
const d = f[0];
|
|
1346
|
-
for (; (f =
|
|
1346
|
+
for (; (f = N.exec(d)) !== null; )
|
|
1347
1347
|
w.x = parseFloat(f[1]), w.y = parseFloat(f[2]), w.z = parseFloat(f[3]), m++;
|
|
1348
1348
|
for (; (f = p.exec(d)) !== null; )
|
|
1349
1349
|
x.push(parseFloat(f[1]), parseFloat(f[2]), parseFloat(f[3])), O.push(w.x, w.y, w.z), he++, k++;
|
|
@@ -1398,7 +1398,7 @@ class xs extends To {
|
|
|
1398
1398
|
case A:
|
|
1399
1399
|
case R:
|
|
1400
1400
|
case p:
|
|
1401
|
-
case
|
|
1401
|
+
case N:
|
|
1402
1402
|
if (d.colormap_type)
|
|
1403
1403
|
throw new Error("THREE.TGALoader: Invalid type colormap data for colormap type.");
|
|
1404
1404
|
break;
|
|
@@ -1415,10 +1415,10 @@ class xs extends To {
|
|
|
1415
1415
|
throw new Error("THREE.TGALoader: Invalid pixel size " + d.pixel_size);
|
|
1416
1416
|
}
|
|
1417
1417
|
function r(d, I, $, G, de) {
|
|
1418
|
-
let
|
|
1418
|
+
let M, ae;
|
|
1419
1419
|
const X = $.pixel_size >> 3, K = $.width * $.height * X;
|
|
1420
1420
|
if (I && (ae = de.subarray(G, G += $.colormap_length * ($.colormap_size >> 3))), d) {
|
|
1421
|
-
|
|
1421
|
+
M = new Uint8Array(K);
|
|
1422
1422
|
let W, V, J, ge = 0;
|
|
1423
1423
|
const be = new Uint8Array(X);
|
|
1424
1424
|
for (; ge < K; )
|
|
@@ -1426,96 +1426,96 @@ class xs extends To {
|
|
|
1426
1426
|
for (J = 0; J < X; ++J)
|
|
1427
1427
|
be[J] = de[G++];
|
|
1428
1428
|
for (J = 0; J < V; ++J)
|
|
1429
|
-
|
|
1429
|
+
M.set(be, ge + J * X);
|
|
1430
1430
|
ge += X * V;
|
|
1431
1431
|
} else {
|
|
1432
1432
|
for (V *= X, J = 0; J < V; ++J)
|
|
1433
|
-
|
|
1433
|
+
M[ge + J] = de[G++];
|
|
1434
1434
|
ge += V;
|
|
1435
1435
|
}
|
|
1436
1436
|
} else
|
|
1437
|
-
|
|
1437
|
+
M = de.subarray(
|
|
1438
1438
|
G,
|
|
1439
1439
|
G += I ? $.width * $.height : K
|
|
1440
1440
|
);
|
|
1441
1441
|
return {
|
|
1442
|
-
pixel_data:
|
|
1442
|
+
pixel_data: M,
|
|
1443
1443
|
palettes: ae
|
|
1444
1444
|
};
|
|
1445
1445
|
}
|
|
1446
|
-
function c(d, I, $, G, de,
|
|
1446
|
+
function c(d, I, $, G, de, M, ae, X, K) {
|
|
1447
1447
|
const W = K;
|
|
1448
1448
|
let V, J = 0, ge, be;
|
|
1449
1449
|
const ue = H.width;
|
|
1450
1450
|
for (be = I; be !== G; be += $)
|
|
1451
|
-
for (ge = de; ge !== ae; ge +=
|
|
1451
|
+
for (ge = de; ge !== ae; ge += M, J++)
|
|
1452
1452
|
V = X[J], d[(ge + ue * be) * 4 + 3] = 255, d[(ge + ue * be) * 4 + 2] = W[V * 3 + 0], d[(ge + ue * be) * 4 + 1] = W[V * 3 + 1], d[(ge + ue * be) * 4 + 0] = W[V * 3 + 2];
|
|
1453
1453
|
return d;
|
|
1454
1454
|
}
|
|
1455
|
-
function l(d, I, $, G, de,
|
|
1455
|
+
function l(d, I, $, G, de, M, ae, X) {
|
|
1456
1456
|
let K, W = 0, V, J;
|
|
1457
1457
|
const ge = H.width;
|
|
1458
1458
|
for (J = I; J !== G; J += $)
|
|
1459
|
-
for (V = de; V !== ae; V +=
|
|
1459
|
+
for (V = de; V !== ae; V += M, W += 2)
|
|
1460
1460
|
K = X[W + 0] + (X[W + 1] << 8), d[(V + ge * J) * 4 + 0] = (K & 31744) >> 7, d[(V + ge * J) * 4 + 1] = (K & 992) >> 2, d[(V + ge * J) * 4 + 2] = (K & 31) << 3, d[(V + ge * J) * 4 + 3] = K & 32768 ? 0 : 255;
|
|
1461
1461
|
return d;
|
|
1462
1462
|
}
|
|
1463
|
-
function y(d, I, $, G, de,
|
|
1463
|
+
function y(d, I, $, G, de, M, ae, X) {
|
|
1464
1464
|
let K = 0, W, V;
|
|
1465
1465
|
const J = H.width;
|
|
1466
1466
|
for (V = I; V !== G; V += $)
|
|
1467
|
-
for (W = de; W !== ae; W +=
|
|
1467
|
+
for (W = de; W !== ae; W += M, K += 3)
|
|
1468
1468
|
d[(W + J * V) * 4 + 3] = 255, d[(W + J * V) * 4 + 2] = X[K + 0], d[(W + J * V) * 4 + 1] = X[K + 1], d[(W + J * V) * 4 + 0] = X[K + 2];
|
|
1469
1469
|
return d;
|
|
1470
1470
|
}
|
|
1471
|
-
function u(d, I, $, G, de,
|
|
1471
|
+
function u(d, I, $, G, de, M, ae, X) {
|
|
1472
1472
|
let K = 0, W, V;
|
|
1473
1473
|
const J = H.width;
|
|
1474
1474
|
for (V = I; V !== G; V += $)
|
|
1475
|
-
for (W = de; W !== ae; W +=
|
|
1475
|
+
for (W = de; W !== ae; W += M, K += 4)
|
|
1476
1476
|
d[(W + J * V) * 4 + 2] = X[K + 0], d[(W + J * V) * 4 + 1] = X[K + 1], d[(W + J * V) * 4 + 0] = X[K + 2], d[(W + J * V) * 4 + 3] = X[K + 3];
|
|
1477
1477
|
return d;
|
|
1478
1478
|
}
|
|
1479
|
-
function b(d, I, $, G, de,
|
|
1479
|
+
function b(d, I, $, G, de, M, ae, X) {
|
|
1480
1480
|
let K, W = 0, V, J;
|
|
1481
1481
|
const ge = H.width;
|
|
1482
1482
|
for (J = I; J !== G; J += $)
|
|
1483
|
-
for (V = de; V !== ae; V +=
|
|
1483
|
+
for (V = de; V !== ae; V += M, W++)
|
|
1484
1484
|
K = X[W], d[(V + ge * J) * 4 + 0] = K, d[(V + ge * J) * 4 + 1] = K, d[(V + ge * J) * 4 + 2] = K, d[(V + ge * J) * 4 + 3] = 255;
|
|
1485
1485
|
return d;
|
|
1486
1486
|
}
|
|
1487
|
-
function g(d, I, $, G, de,
|
|
1487
|
+
function g(d, I, $, G, de, M, ae, X) {
|
|
1488
1488
|
let K = 0, W, V;
|
|
1489
1489
|
const J = H.width;
|
|
1490
1490
|
for (V = I; V !== G; V += $)
|
|
1491
|
-
for (W = de; W !== ae; W +=
|
|
1491
|
+
for (W = de; W !== ae; W += M, K += 2)
|
|
1492
1492
|
d[(W + J * V) * 4 + 0] = X[K + 0], d[(W + J * V) * 4 + 1] = X[K + 0], d[(W + J * V) * 4 + 2] = X[K + 0], d[(W + J * V) * 4 + 3] = X[K + 1];
|
|
1493
1493
|
return d;
|
|
1494
1494
|
}
|
|
1495
1495
|
function L(d, I, $, G, de) {
|
|
1496
|
-
let
|
|
1496
|
+
let M, ae, X, K, W, V;
|
|
1497
1497
|
switch ((H.flags & x) >> O) {
|
|
1498
1498
|
default:
|
|
1499
1499
|
case f:
|
|
1500
|
-
|
|
1500
|
+
M = 0, X = 1, W = I, ae = 0, K = 1, V = $;
|
|
1501
1501
|
break;
|
|
1502
1502
|
case C:
|
|
1503
|
-
|
|
1503
|
+
M = 0, X = 1, W = I, ae = $ - 1, K = -1, V = -1;
|
|
1504
1504
|
break;
|
|
1505
1505
|
case j:
|
|
1506
|
-
|
|
1506
|
+
M = I - 1, X = -1, W = -1, ae = 0, K = 1, V = $;
|
|
1507
1507
|
break;
|
|
1508
1508
|
case w:
|
|
1509
|
-
|
|
1509
|
+
M = I - 1, X = -1, W = -1, ae = $ - 1, K = -1, V = -1;
|
|
1510
1510
|
break;
|
|
1511
1511
|
}
|
|
1512
1512
|
if (ie)
|
|
1513
1513
|
switch (H.pixel_size) {
|
|
1514
1514
|
case 8:
|
|
1515
|
-
b(d, ae, K, V,
|
|
1515
|
+
b(d, ae, K, V, M, X, W, G);
|
|
1516
1516
|
break;
|
|
1517
1517
|
case 16:
|
|
1518
|
-
g(d, ae, K, V,
|
|
1518
|
+
g(d, ae, K, V, M, X, W, G);
|
|
1519
1519
|
break;
|
|
1520
1520
|
default:
|
|
1521
1521
|
throw new Error("THREE.TGALoader: Format not supported.");
|
|
@@ -1523,23 +1523,23 @@ class xs extends To {
|
|
|
1523
1523
|
else
|
|
1524
1524
|
switch (H.pixel_size) {
|
|
1525
1525
|
case 8:
|
|
1526
|
-
c(d, ae, K, V,
|
|
1526
|
+
c(d, ae, K, V, M, X, W, G, de);
|
|
1527
1527
|
break;
|
|
1528
1528
|
case 16:
|
|
1529
|
-
l(d, ae, K, V,
|
|
1529
|
+
l(d, ae, K, V, M, X, W, G);
|
|
1530
1530
|
break;
|
|
1531
1531
|
case 24:
|
|
1532
|
-
y(d, ae, K, V,
|
|
1532
|
+
y(d, ae, K, V, M, X, W, G);
|
|
1533
1533
|
break;
|
|
1534
1534
|
case 32:
|
|
1535
|
-
u(d, ae, K, V,
|
|
1535
|
+
u(d, ae, K, V, M, X, W, G);
|
|
1536
1536
|
break;
|
|
1537
1537
|
default:
|
|
1538
1538
|
throw new Error("THREE.TGALoader: Format not supported.");
|
|
1539
1539
|
}
|
|
1540
1540
|
return d;
|
|
1541
1541
|
}
|
|
1542
|
-
const D = 0, S = 1, A = 2, R = 3, v = 9, p = 10,
|
|
1542
|
+
const D = 0, S = 1, A = 2, R = 3, v = 9, p = 10, N = 11, x = 48, O = 4, C = 0, w = 1, f = 2, j = 3;
|
|
1543
1543
|
if (n.length < 19) throw new Error("THREE.TGALoader: Not enough data to contain header.");
|
|
1544
1544
|
let T = 0;
|
|
1545
1545
|
const k = new Uint8Array(n), H = {
|
|
@@ -1574,7 +1574,7 @@ class xs extends To {
|
|
|
1574
1574
|
break;
|
|
1575
1575
|
case A:
|
|
1576
1576
|
break;
|
|
1577
|
-
case
|
|
1577
|
+
case N:
|
|
1578
1578
|
F = !0, ie = !0;
|
|
1579
1579
|
break;
|
|
1580
1580
|
case R:
|
|
@@ -1704,7 +1704,7 @@ class Ti extends Kt {
|
|
|
1704
1704
|
_ = h.getAttribute("id"), e.sources[_] = at(h);
|
|
1705
1705
|
break;
|
|
1706
1706
|
case "sampler":
|
|
1707
|
-
_ = h.getAttribute("id"), e.samplers[_] =
|
|
1707
|
+
_ = h.getAttribute("id"), e.samplers[_] = N(h);
|
|
1708
1708
|
break;
|
|
1709
1709
|
case "channel":
|
|
1710
1710
|
_ = h.getAttribute("target"), e.channels[_] = x(h);
|
|
@@ -1718,7 +1718,7 @@ class Ti extends Kt {
|
|
|
1718
1718
|
}
|
|
1719
1719
|
o === !1 && (re.animations[t.getAttribute("id") || Ut.generateUUID()] = e);
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function N(t) {
|
|
1722
1722
|
const e = {
|
|
1723
1723
|
inputs: {}
|
|
1724
1724
|
};
|
|
@@ -1926,7 +1926,7 @@ class Ti extends Kt {
|
|
|
1926
1926
|
e.sources[h] = at(i);
|
|
1927
1927
|
break;
|
|
1928
1928
|
case "joints":
|
|
1929
|
-
e.joints =
|
|
1929
|
+
e.joints = M(i);
|
|
1930
1930
|
break;
|
|
1931
1931
|
case "vertex_weights":
|
|
1932
1932
|
e.vertexWeights = ae(i);
|
|
@@ -1935,7 +1935,7 @@ class Ti extends Kt {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
return e;
|
|
1937
1937
|
}
|
|
1938
|
-
function
|
|
1938
|
+
function M(t) {
|
|
1939
1939
|
const e = {
|
|
1940
1940
|
inputs: {}
|
|
1941
1941
|
};
|
|
@@ -2189,12 +2189,12 @@ class Ti extends Kt {
|
|
|
2189
2189
|
if (i.nodeType === 1)
|
|
2190
2190
|
switch (i.nodeName) {
|
|
2191
2191
|
case "technique":
|
|
2192
|
-
|
|
2192
|
+
Ne(i, e);
|
|
2193
2193
|
break;
|
|
2194
2194
|
}
|
|
2195
2195
|
}
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function Ne(t, e) {
|
|
2198
2198
|
for (let o = 0, s = t.childNodes.length; o < s; o++) {
|
|
2199
2199
|
const i = t.childNodes[o];
|
|
2200
2200
|
if (i.nodeType === 1)
|
|
@@ -2222,13 +2222,13 @@ class Ti extends Kt {
|
|
|
2222
2222
|
if (i.nodeType === 1)
|
|
2223
2223
|
switch (i.nodeName) {
|
|
2224
2224
|
case "technique":
|
|
2225
|
-
e.technique =
|
|
2225
|
+
e.technique = Me(i);
|
|
2226
2226
|
break;
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
2229
|
return e;
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function Me(t) {
|
|
2232
2232
|
const e = {};
|
|
2233
2233
|
for (let o = 0, s = t.childNodes.length; o < s; o++) {
|
|
2234
2234
|
const i = t.childNodes[o];
|
|
@@ -2298,7 +2298,7 @@ class Ti extends Kt {
|
|
|
2298
2298
|
s = new $e();
|
|
2299
2299
|
break;
|
|
2300
2300
|
case "lambert":
|
|
2301
|
-
s = new
|
|
2301
|
+
s = new No();
|
|
2302
2302
|
break;
|
|
2303
2303
|
default:
|
|
2304
2304
|
s = new ds();
|
|
@@ -2390,7 +2390,7 @@ class Ti extends Kt {
|
|
|
2390
2390
|
const te = z[q];
|
|
2391
2391
|
switch (q) {
|
|
2392
2392
|
case "double_sided":
|
|
2393
|
-
s.side = te === 1 ? Tt :
|
|
2393
|
+
s.side = te === 1 ? Tt : Ms;
|
|
2394
2394
|
break;
|
|
2395
2395
|
case "bump":
|
|
2396
2396
|
s.normalMap = i(te.texture), s.normalScale = new Ge(1, 1);
|
|
@@ -2473,7 +2473,7 @@ class Ti extends Kt {
|
|
|
2473
2473
|
case "orthographic":
|
|
2474
2474
|
let o = t.optics.parameters.ymag, s = t.optics.parameters.xmag;
|
|
2475
2475
|
const i = t.optics.parameters.aspect_ratio;
|
|
2476
|
-
s = s === void 0 ? o * i : s, o = o === void 0 ? s / i : o, s *= 0.5, o *= 0.5, e = new
|
|
2476
|
+
s = s === void 0 ? o * i : s, o = o === void 0 ? s / i : o, s *= 0.5, o *= 0.5, e = new Mo(
|
|
2477
2477
|
-s,
|
|
2478
2478
|
s,
|
|
2479
2479
|
o,
|
|
@@ -2555,7 +2555,7 @@ class Ti extends Kt {
|
|
|
2555
2555
|
e = new Po();
|
|
2556
2556
|
break;
|
|
2557
2557
|
case "ambient":
|
|
2558
|
-
e = new
|
|
2558
|
+
e = new Ns();
|
|
2559
2559
|
break;
|
|
2560
2560
|
}
|
|
2561
2561
|
return t.parameters.color && e.color.copy(t.parameters.color), t.parameters.distance && (e.distance = t.parameters.distance), e;
|
|
@@ -3471,12 +3471,12 @@ class Ti extends Kt {
|
|
|
3471
3471
|
};
|
|
3472
3472
|
}
|
|
3473
3473
|
}
|
|
3474
|
-
const
|
|
3474
|
+
const Mn = new pn(), Cs = new ln();
|
|
3475
3475
|
function It(E) {
|
|
3476
3476
|
return E ? E.trim().split(/\s+/g).map((n) => parseFloat(n)) : [0, 0, 0];
|
|
3477
3477
|
}
|
|
3478
3478
|
function As(E, n, a = !1) {
|
|
3479
|
-
a || E.rotation.set(0, 0, 0), Cs.set(n[0], n[1], n[2], "ZYX"),
|
|
3479
|
+
a || E.rotation.set(0, 0, 0), Cs.set(n[0], n[1], n[2], "ZYX"), Mn.setFromEuler(Cs), Mn.multiply(E.quaternion), E.quaternion.copy(Mn);
|
|
3480
3480
|
}
|
|
3481
3481
|
class Ei {
|
|
3482
3482
|
constructor(n) {
|
|
@@ -3576,13 +3576,13 @@ class Ei {
|
|
|
3576
3576
|
w === null && (w = new Oo());
|
|
3577
3577
|
const f = [...x.children];
|
|
3578
3578
|
return w.name = x.getAttribute("name"), w.urdfName = w.name, w.urdfNode = x, l && f.filter((T) => T.nodeName.toLowerCase() === "visual").forEach((T) => {
|
|
3579
|
-
const k =
|
|
3579
|
+
const k = N(T, L);
|
|
3580
3580
|
if (w.add(k), T.hasAttribute("name")) {
|
|
3581
3581
|
const H = T.getAttribute("name");
|
|
3582
3582
|
k.name = H, k.urdfName = H, O[H] = k;
|
|
3583
3583
|
}
|
|
3584
3584
|
}), y && f.filter((T) => T.nodeName.toLowerCase() === "collision").forEach((T) => {
|
|
3585
|
-
const k =
|
|
3585
|
+
const k = N(T);
|
|
3586
3586
|
if (w.add(k), T.hasAttribute("name")) {
|
|
3587
3587
|
const H = T.getAttribute("name");
|
|
3588
3588
|
k.name = H, k.urdfName = H, C[H] = k;
|
|
@@ -3605,7 +3605,7 @@ class Ei {
|
|
|
3605
3605
|
}
|
|
3606
3606
|
}), C;
|
|
3607
3607
|
}
|
|
3608
|
-
function
|
|
3608
|
+
function N(x, O = {}) {
|
|
3609
3609
|
const C = x.nodeName.toLowerCase() === "collision", w = [...x.children];
|
|
3610
3610
|
let f = null;
|
|
3611
3611
|
const j = w.filter((k) => k.nodeName.toLowerCase() === "material")[0];
|
|
@@ -3664,7 +3664,7 @@ class Ei {
|
|
|
3664
3664
|
No loader available`);
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
|
-
function
|
|
3667
|
+
function Ni(E, n, a, r, c) {
|
|
3668
3668
|
const l = async (S) => {
|
|
3669
3669
|
try {
|
|
3670
3670
|
const A = await Un({ url: S });
|
|
@@ -3678,10 +3678,10 @@ function Mi(E, n, a, r, c) {
|
|
|
3678
3678
|
const v = new FileReader();
|
|
3679
3679
|
v.onload = (p) => {
|
|
3680
3680
|
try {
|
|
3681
|
-
const
|
|
3681
|
+
const N = p.target.result, O = new Nn().parse(N);
|
|
3682
3682
|
O.preload(), A(O);
|
|
3683
|
-
} catch (
|
|
3684
|
-
R(
|
|
3683
|
+
} catch (N) {
|
|
3684
|
+
R(N);
|
|
3685
3685
|
}
|
|
3686
3686
|
}, v.onerror = () => {
|
|
3687
3687
|
R(new Error("MTL文件读取失败"));
|
|
@@ -3713,9 +3713,9 @@ function Mi(E, n, a, r, c) {
|
|
|
3713
3713
|
return A.preload(), A;
|
|
3714
3714
|
}, b = async (S, A = []) => new Promise((R, v) => {
|
|
3715
3715
|
const p = new FileReader();
|
|
3716
|
-
p.onload = async (
|
|
3716
|
+
p.onload = async (N) => {
|
|
3717
3717
|
try {
|
|
3718
|
-
const x =
|
|
3718
|
+
const x = N.target.result;
|
|
3719
3719
|
let O = null;
|
|
3720
3720
|
A && A.length > 0 && (A.length === 1 ? O = await y(A[0]) : O = await u(A));
|
|
3721
3721
|
const C = new En();
|
|
@@ -3743,12 +3743,12 @@ function Mi(E, n, a, r, c) {
|
|
|
3743
3743
|
c();
|
|
3744
3744
|
const v = [];
|
|
3745
3745
|
for (let p = 0; p < S.length; p++) {
|
|
3746
|
-
const
|
|
3746
|
+
const N = S[p];
|
|
3747
3747
|
r.value = `正在加载模型 ${p + 1}/${S.length}...`;
|
|
3748
|
-
const x = await l(
|
|
3748
|
+
const x = await l(N.objUrl), O = ((A = N.objUrl) == null ? void 0 : A.split("/").pop()) || `model_${p}.obj`, C = new File([x], O, { type: x.type });
|
|
3749
3749
|
let w = [];
|
|
3750
|
-
if (
|
|
3751
|
-
const j = Array.isArray(
|
|
3750
|
+
if (N.mtlUrls) {
|
|
3751
|
+
const j = Array.isArray(N.mtlUrls) ? N.mtlUrls : [N.mtlUrls];
|
|
3752
3752
|
for (let T = 0; T < j.length; T++) {
|
|
3753
3753
|
const k = j[T], H = await l(k), F = (k == null ? void 0 : k.split("/").pop()) || `material_${p}_${T}.mtl`, B = new File([H], F, { type: H.type });
|
|
3754
3754
|
w.push(B);
|
|
@@ -3763,36 +3763,36 @@ function Mi(E, n, a, r, c) {
|
|
|
3763
3763
|
}
|
|
3764
3764
|
}, L = async (S, A, R = [], v = []) => {
|
|
3765
3765
|
let p;
|
|
3766
|
-
const
|
|
3767
|
-
switch (
|
|
3766
|
+
const N = S.toLowerCase();
|
|
3767
|
+
switch (N) {
|
|
3768
3768
|
case ".txt":
|
|
3769
3769
|
case ".cpt":
|
|
3770
3770
|
case ".obj":
|
|
3771
3771
|
const x = await A.text();
|
|
3772
|
-
if (
|
|
3772
|
+
if (N === ".txt" || N === ".cpt") {
|
|
3773
3773
|
const he = /^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm, d = [...x.matchAll(he)].map((G) => ({
|
|
3774
3774
|
x: parseFloat(G[1]),
|
|
3775
3775
|
y: parseFloat(G[2]),
|
|
3776
3776
|
z: parseFloat(G[3])
|
|
3777
3777
|
})), I = new Gt(), $ = d.flatMap((G) => [G.x, G.y, G.z]);
|
|
3778
|
-
if (I.setAttribute("position", new Ue($, 3)),
|
|
3778
|
+
if (I.setAttribute("position", new Ue($, 3)), N === ".txt") {
|
|
3779
3779
|
const G = new $t({
|
|
3780
3780
|
color: "#5B5C99",
|
|
3781
3781
|
size: 1,
|
|
3782
3782
|
sizeAttenuation: !1
|
|
3783
3783
|
});
|
|
3784
3784
|
p = new cn(I, G);
|
|
3785
|
-
} else if (
|
|
3785
|
+
} else if (N === ".cpt") {
|
|
3786
3786
|
const G = new Ht({
|
|
3787
3787
|
color: "#5B5C99",
|
|
3788
3788
|
linewidth: 100
|
|
3789
3789
|
});
|
|
3790
3790
|
p = new Ls(I, G);
|
|
3791
3791
|
}
|
|
3792
|
-
} else if (
|
|
3792
|
+
} else if (N === ".obj") {
|
|
3793
3793
|
const he = new En();
|
|
3794
3794
|
if (R && R.length > 0) {
|
|
3795
|
-
const m = new
|
|
3795
|
+
const m = new Nn();
|
|
3796
3796
|
for (const d of R) {
|
|
3797
3797
|
const I = await d.text(), $ = m.parse(I);
|
|
3798
3798
|
$.preload(), he.setMaterials($);
|
|
@@ -3821,8 +3821,8 @@ function Mi(E, n, a, r, c) {
|
|
|
3821
3821
|
$(new Error(`找不到文件: ${G}`));
|
|
3822
3822
|
return;
|
|
3823
3823
|
}
|
|
3824
|
-
const
|
|
3825
|
-
switch (
|
|
3824
|
+
const M = G.split(".").pop().toLowerCase();
|
|
3825
|
+
switch (M) {
|
|
3826
3826
|
case "stl":
|
|
3827
3827
|
const ae = await de.arrayBuffer(), K = new dn(m).parse(ae), W = new Ze(K, new $e());
|
|
3828
3828
|
d(W);
|
|
@@ -3830,14 +3830,14 @@ function Mi(E, n, a, r, c) {
|
|
|
3830
3830
|
case "obj":
|
|
3831
3831
|
const V = await de.text(), J = new En(m), ge = G.replace(".obj", ".mtl"), be = k.get(ge);
|
|
3832
3832
|
if (be) {
|
|
3833
|
-
const Fe = await be.text(), Xe = new
|
|
3833
|
+
const Fe = await be.text(), Xe = new Nn(m).parse(Fe);
|
|
3834
3834
|
Xe.preload(), J.setMaterials(Xe);
|
|
3835
3835
|
}
|
|
3836
3836
|
const ue = J.parse(V);
|
|
3837
3837
|
d(ue);
|
|
3838
3838
|
break;
|
|
3839
3839
|
default:
|
|
3840
|
-
$(new Error(`不支持的文件格式: ${
|
|
3840
|
+
$(new Error(`不支持的文件格式: ${M}`));
|
|
3841
3841
|
}
|
|
3842
3842
|
}, p = T.parse(j);
|
|
3843
3843
|
break;
|
|
@@ -3893,13 +3893,13 @@ function Mi(E, n, a, r, c) {
|
|
|
3893
3893
|
c(), await new Promise((v) => setTimeout(v, 100));
|
|
3894
3894
|
const R = [];
|
|
3895
3895
|
for (let v = 0; v < S.length; v++) {
|
|
3896
|
-
const p = S[v],
|
|
3896
|
+
const p = S[v], N = await L(
|
|
3897
3897
|
p.suffix,
|
|
3898
3898
|
p.blob,
|
|
3899
3899
|
p.mtlBlobs || [],
|
|
3900
3900
|
p.meshFiles || []
|
|
3901
3901
|
);
|
|
3902
|
-
A.add(
|
|
3902
|
+
A.add(N), n.value.push(N), R.push(N);
|
|
3903
3903
|
}
|
|
3904
3904
|
return a.value = !1, r.value = "", R;
|
|
3905
3905
|
} catch (A) {
|
|
@@ -3908,7 +3908,7 @@ function Mi(E, n, a, r, c) {
|
|
|
3908
3908
|
}
|
|
3909
3909
|
};
|
|
3910
3910
|
}
|
|
3911
|
-
const
|
|
3911
|
+
const Mi = { class: "obj-viewer-container" }, Pi = { class: "floating-controls" }, Li = ["disabled"], Si = ["disabled", "title"], Ri = {
|
|
3912
3912
|
key: 0,
|
|
3913
3913
|
viewBox: "0 0 24 24",
|
|
3914
3914
|
fill: "none",
|
|
@@ -3951,10 +3951,10 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
3951
3951
|
getThreeJSObjects: A,
|
|
3952
3952
|
clearAllModels: R,
|
|
3953
3953
|
cleanup: v
|
|
3954
|
-
} = bi(a), { isAnimating: p, toggleAnimation:
|
|
3954
|
+
} = bi(a), { isAnimating: p, toggleAnimation: N, stopAnimation: x } = yi(A, u), { isClipping: O, activeClippingAxis: C, toggleClipping: w, updateClippingPlanes: f } = wi(
|
|
3955
3955
|
A,
|
|
3956
3956
|
u
|
|
3957
|
-
), { addModelsFromUrls: j, loadModelByDefaultPath: T } =
|
|
3957
|
+
), { addModelsFromUrls: j, loadModelByDefaultPath: T } = Ni(
|
|
3958
3958
|
A,
|
|
3959
3959
|
u,
|
|
3960
3960
|
r,
|
|
@@ -3966,8 +3966,8 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
3966
3966
|
const { camera: m, controls: d } = A();
|
|
3967
3967
|
if (!m || !d) return;
|
|
3968
3968
|
d.enabled = !0;
|
|
3969
|
-
const I = (X) => X < 0.5 ? 4 * X * X * X : 1 - Math.pow(-2 * X + 2, 3) / 2, $ = m.position.clone(), G = d.target.clone(), de = 1500,
|
|
3970
|
-
const X = Date.now() -
|
|
3969
|
+
const I = (X) => X < 0.5 ? 4 * X * X * X : 1 - Math.pow(-2 * X + 2, 3) / 2, $ = m.position.clone(), G = d.target.clone(), de = 1500, M = Date.now(), ae = () => {
|
|
3970
|
+
const X = Date.now() - M, K = Math.min(X / de, 1), W = I(K);
|
|
3971
3971
|
m.position.lerpVectors($, b.value, W), d.target.lerpVectors(G, g.value, W), K < 1 ? requestAnimationFrame(ae) : y.value = !1;
|
|
3972
3972
|
};
|
|
3973
3973
|
ae();
|
|
@@ -4005,7 +4005,7 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
4005
4005
|
}), n({
|
|
4006
4006
|
addModelsFromUrls: ie,
|
|
4007
4007
|
loadModelByDefaultPath: he
|
|
4008
|
-
}), (m, d) => (le(), ye("div",
|
|
4008
|
+
}), (m, d) => (le(), ye("div", Mi, [
|
|
4009
4009
|
Y("div", {
|
|
4010
4010
|
ref_key: "threejsContainer",
|
|
4011
4011
|
ref: a,
|
|
@@ -4029,7 +4029,7 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
4029
4029
|
], -1)
|
|
4030
4030
|
]), 8, Li),
|
|
4031
4031
|
Y("button", {
|
|
4032
|
-
onClick: d[0] || (d[0] = (...I) => U(
|
|
4032
|
+
onClick: d[0] || (d[0] = (...I) => U(N) && U(N)(...I)),
|
|
4033
4033
|
class: en(["control-btn", "animation-btn", { active: U(p) }]),
|
|
4034
4034
|
disabled: r.value || U(u).length === 0,
|
|
4035
4035
|
title: U(p) ? "停止动画" : "动画视图"
|
|
@@ -4165,7 +4165,7 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
4165
4165
|
])) : Be("", !0)
|
|
4166
4166
|
]));
|
|
4167
4167
|
}
|
|
4168
|
-
}, Ki = /* @__PURE__ */
|
|
4168
|
+
}, Ki = /* @__PURE__ */ Mt(Yi, [["__scopeId", "data-v-4d1111d9"]]), Wi = { class: "bread-content" }, Zi = ["onClick"], Xi = {
|
|
4169
4169
|
key: 0,
|
|
4170
4170
|
class: "split-title"
|
|
4171
4171
|
}, Ji = {
|
|
@@ -4208,7 +4208,7 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
4208
4208
|
}), 128))
|
|
4209
4209
|
]));
|
|
4210
4210
|
}
|
|
4211
|
-
}, Is = /* @__PURE__ */
|
|
4211
|
+
}, Is = /* @__PURE__ */ Mt(Ji, [["__scopeId", "data-v-ded7e2bd"]]), Qi = { class: "item-menu-content" }, ea = { class: "item-left-content" }, ta = {
|
|
4212
4212
|
key: 0,
|
|
4213
4213
|
class: "page-icon"
|
|
4214
4214
|
}, na = { class: "avatar" }, sa = { style: { display: "flex" } }, oa = { class: "select-icon" }, ia = {
|
|
@@ -4243,7 +4243,7 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
4243
4243
|
const y = wn();
|
|
4244
4244
|
me(!0);
|
|
4245
4245
|
const { itemData: u, isEdit: b, isRefreshCurStructure: g, curStructureCompIds: L } = et(l), D = qn(tt), { activeMenuPath: S, menus: A, importLoading: R } = et(y), { selectIndex: v, selectTitle: p } = et(D);
|
|
4246
|
-
return me([]), me(!1), (
|
|
4246
|
+
return me([]), me(!1), (N, x) => {
|
|
4247
4247
|
const O = Pe("el-aside"), C = Pe("el-button"), w = Pe("el-avatar"), f = Pe("el-header"), j = Pe("router-view"), T = Pe("el-main"), k = Pe("el-container"), H = Ts("loading");
|
|
4248
4248
|
return Bt((le(), Ie(k, { "element-loading-text": "正在加载页面数据..." }, {
|
|
4249
4249
|
default: fe(() => [
|
|
@@ -4313,7 +4313,7 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
4313
4313
|
x[4] || (x[4] = Y("div", { class: "layout-trigger" }, qe("修改布局"), -1))
|
|
4314
4314
|
])) : Be("", !0),
|
|
4315
4315
|
Y("div", oa, [
|
|
4316
|
-
Yt(
|
|
4316
|
+
Yt(N.$slots, "default", {}, void 0, !0)
|
|
4317
4317
|
]),
|
|
4318
4318
|
oe(w, {
|
|
4319
4319
|
size: 35,
|
|
@@ -4343,20 +4343,20 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
4343
4343
|
]),
|
|
4344
4344
|
(le(), ye("div", {
|
|
4345
4345
|
class: "model-show",
|
|
4346
|
-
key:
|
|
4346
|
+
key: N.innerWidth
|
|
4347
4347
|
}, [
|
|
4348
4348
|
oe(zn)
|
|
4349
4349
|
])),
|
|
4350
4350
|
Y("div", ra, [
|
|
4351
4351
|
oe(Vn)
|
|
4352
4352
|
])
|
|
4353
|
-
])) :
|
|
4353
|
+
])) : N.$route.path === "/" && ((F = U(We)) == null ? void 0 : F.length) > 0 && U(b) === "view" ? (le(), ye("div", la, [
|
|
4354
4354
|
Y("div", ca, [
|
|
4355
|
-
(B = U(
|
|
4355
|
+
(B = U(Nt)(U(We))) != null && B.find((m) => m.comp === "FormTop") ? (le(), ye("div", {
|
|
4356
4356
|
class: "show-header",
|
|
4357
|
-
key:
|
|
4357
|
+
key: N.index
|
|
4358
4358
|
}, [
|
|
4359
|
-
(le(!0), ye(un, null, hn((ie = U(
|
|
4359
|
+
(le(!0), ye(un, null, hn((ie = U(Nt)(U(We))) == null ? void 0 : ie.filter((m) => m.comp === "FormTop"), (m, d) => (le(), ye("div", {
|
|
4360
4360
|
class: "item-content",
|
|
4361
4361
|
key: d
|
|
4362
4362
|
}, [
|
|
@@ -4373,7 +4373,7 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
4373
4373
|
]))), 128))
|
|
4374
4374
|
])) : Be("", !0),
|
|
4375
4375
|
Y("div", ua, [
|
|
4376
|
-
(le(!0), ye(un, null, hn((he = U(
|
|
4376
|
+
(le(!0), ye(un, null, hn((he = U(Nt)(U(We))) == null ? void 0 : he.filter((m) => m.comp !== "FormTop"), (m, d) => (le(), ye("div", {
|
|
4377
4377
|
class: "item-content",
|
|
4378
4378
|
key: d
|
|
4379
4379
|
}, [
|
|
@@ -4407,7 +4407,7 @@ const Ni = { class: "obj-viewer-container" }, Pi = { class: "floating-controls"
|
|
|
4407
4407
|
]);
|
|
4408
4408
|
};
|
|
4409
4409
|
}
|
|
4410
|
-
}, ma = /* @__PURE__ */
|
|
4410
|
+
}, ma = /* @__PURE__ */ Mt(fa, [["__scopeId", "data-v-d2611062"]]);
|
|
4411
4411
|
function ga(E, n, a, r, c, l) {
|
|
4412
4412
|
const y = Pe("svg-icon"), u = Pe("ssMenu");
|
|
4413
4413
|
return le(), Ie(u, {
|
|
@@ -4427,7 +4427,7 @@ function ga(E, n, a, r, c, l) {
|
|
|
4427
4427
|
_: 1
|
|
4428
4428
|
}, 8, ["mode", "menuList", "onClickMenu", "onOpenMenu", "onCloseMenu"]);
|
|
4429
4429
|
}
|
|
4430
|
-
const ba = /* @__PURE__ */
|
|
4430
|
+
const ba = /* @__PURE__ */ Mt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdbb"]]), De = [
|
|
4431
4431
|
{
|
|
4432
4432
|
key: "FitCurve_Eleven",
|
|
4433
4433
|
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35326658522693",
|
|
@@ -4462,7 +4462,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4462
4462
|
key: "DetectionAlgorithm",
|
|
4463
4463
|
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35459977498949",
|
|
4464
4464
|
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35459977498949",
|
|
4465
|
-
download: ""
|
|
4465
|
+
download: "http://139.196.154.85:20024/api/algorithmRun/downloadFileByFileName/35459977498949/outputResources"
|
|
4466
4466
|
},
|
|
4467
4467
|
{
|
|
4468
4468
|
key: "FeatureSelectionAlgorithm_FFS",
|
|
@@ -4475,7 +4475,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4475
4475
|
value: "http://139.196.154.85:20024/api/algorithmRun/verificationAlgorithm/35788169784389",
|
|
4476
4476
|
resources: "http://139.196.154.85:20024/api/algorithmRun/allFilesByFolderName/35788169784389"
|
|
4477
4477
|
}
|
|
4478
|
-
], ya = { class: "structure-buttons" }, wa = { class: "structure-paths" }, _a = { class: "client-header-user" }, va = { class: "select-icon" }, ka = { class: "model-select" }, xa = { class: "model-show" }, Ca = { class: "model-fill" }, Aa = { class: "client-header-logo" }, Ta = { class: "client-header-menu" }, Ea = { class: "client-header-user" },
|
|
4478
|
+
], ya = { class: "structure-buttons" }, wa = { class: "structure-paths" }, _a = { class: "client-header-user" }, va = { class: "select-icon" }, ka = { class: "model-select" }, xa = { class: "model-show" }, Ca = { class: "model-fill" }, Aa = { class: "client-header-logo" }, Ta = { class: "client-header-menu" }, Ea = { class: "client-header-user" }, Na = { style: { display: "flex" } }, Ma = { class: "select-icon" }, Pa = { class: "client-main-content" }, La = {
|
|
4479
4479
|
key: 0,
|
|
4480
4480
|
class: "item-view-group"
|
|
4481
4481
|
}, Sa = {
|
|
@@ -4491,12 +4491,12 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4491
4491
|
}
|
|
4492
4492
|
},
|
|
4493
4493
|
setup(E) {
|
|
4494
|
-
const n = qn(tt), a = me(0), r = me(!1), { selectTitle: c } = et(n), l = me(!1), y = Go(tt), { tableShowThree: u } = et(y), b = js(), { loginUserInfo: g } = et(b), L = yn(tt), { isEdit: D } = et(L), S = wn(tt), A = Yo(tt), { objUrl: R, blobUrls: v } = et(A), p = me(null),
|
|
4494
|
+
const n = qn(tt), a = me(0), r = me(!1), { selectTitle: c } = et(n), l = me(!1), y = Go(tt), { tableShowThree: u } = et(y), b = js(), { loginUserInfo: g } = et(b), L = yn(tt), { isEdit: D } = et(L), S = wn(tt), A = Yo(tt), { objUrl: R, blobUrls: v } = et(A), p = me(null), N = me(!0), { importLoading: x, activeMenuPath: O, platName: C } = et(S), w = me(!1);
|
|
4495
4495
|
it(() => O.value, async (m) => {
|
|
4496
4496
|
m && (w.value = !0);
|
|
4497
4497
|
}, { immediate: !0 });
|
|
4498
4498
|
const f = async (m) => {
|
|
4499
|
-
var $, G, de,
|
|
4499
|
+
var $, G, de, M, ae, X, K;
|
|
4500
4500
|
const d = ($ = m == null ? void 0 : m.split("/")) == null ? void 0 : $[0], I = await qo({
|
|
4501
4501
|
key: {
|
|
4502
4502
|
type: "mainEquip",
|
|
@@ -4504,7 +4504,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4504
4504
|
pageKey: d
|
|
4505
4505
|
}
|
|
4506
4506
|
});
|
|
4507
|
-
return ((G = I == null ? void 0 : I.data) == null ? void 0 : G.type) === "success" ? ((K = (X = (ae = (
|
|
4507
|
+
return ((G = I == null ? void 0 : I.data) == null ? void 0 : G.type) === "success" ? ((K = (X = (ae = (M = (de = I == null ? void 0 : I.data) == null ? void 0 : de.result) == null ? void 0 : M[0]) == null ? void 0 : ae.value) == null ? void 0 : X.tableData) == null ? void 0 : K.隐藏三维显示) !== !0 : !0;
|
|
4508
4508
|
};
|
|
4509
4509
|
it(
|
|
4510
4510
|
() => We.value,
|
|
@@ -4516,7 +4516,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4516
4516
|
), it(
|
|
4517
4517
|
() => O.value,
|
|
4518
4518
|
async () => {
|
|
4519
|
-
O.value && (
|
|
4519
|
+
O.value && (N.value = await f(O.value));
|
|
4520
4520
|
},
|
|
4521
4521
|
{ deep: !0, immediate: !0 }
|
|
4522
4522
|
), it(
|
|
@@ -4532,21 +4532,21 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4532
4532
|
var m, d, I, $;
|
|
4533
4533
|
if (v != null && v.value && ((m = v == null ? void 0 : v.value) == null ? void 0 : m.length) > 0 && !((d = We.value) != null && d.find((G) => (G == null ? void 0 : G.name) === "输入") && ((I = We.value) != null && I.find((G) => (G == null ? void 0 : G.name) === "输出")))) {
|
|
4534
4534
|
let G = [];
|
|
4535
|
-
const de = await (($ =
|
|
4536
|
-
var W, V, J, ge, be, ue, Fe, ze, Xe, _t, vt, ht, pt, kt,
|
|
4537
|
-
let ae, X, K = (W =
|
|
4535
|
+
const de = await (($ = Nt(v == null ? void 0 : v.value)) == null ? void 0 : $.map(async (M) => {
|
|
4536
|
+
var W, V, J, ge, be, ue, Fe, ze, Xe, _t, vt, ht, pt, kt, Ne;
|
|
4537
|
+
let ae, X, K = (W = M == null ? void 0 : M.blob) == null ? void 0 : W.split(",");
|
|
4538
4538
|
if ((K == null ? void 0 : K.length) > 1) {
|
|
4539
|
-
let nt = await (K == null ? void 0 : K.map(async (
|
|
4539
|
+
let nt = await (K == null ? void 0 : K.map(async (Me) => {
|
|
4540
4540
|
var pe, Pt, Lt, Te, ft, xt;
|
|
4541
|
-
ae = await ot.get(
|
|
4541
|
+
ae = await ot.get(Me, {
|
|
4542
4542
|
responseType: "blob",
|
|
4543
4543
|
headers: {
|
|
4544
4544
|
"Content-Type": "application/json"
|
|
4545
4545
|
}
|
|
4546
4546
|
});
|
|
4547
4547
|
let je = [];
|
|
4548
|
-
if (((pe =
|
|
4549
|
-
let St = await ((Pt =
|
|
4548
|
+
if (((pe = M == null ? void 0 : M.mtlBlobs) == null ? void 0 : pe.length) > 0) {
|
|
4549
|
+
let St = await ((Pt = M == null ? void 0 : M.mtlBlobs) == null ? void 0 : Pt.map(async (Rt) => {
|
|
4550
4550
|
let Ct = await ot.get(Rt, {
|
|
4551
4551
|
responseType: "blob",
|
|
4552
4552
|
headers: {
|
|
@@ -4559,8 +4559,8 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4559
4559
|
}));
|
|
4560
4560
|
await Promise.all(St);
|
|
4561
4561
|
}
|
|
4562
|
-
return ((Te =
|
|
4563
|
-
suffix: "." + ((xt =
|
|
4562
|
+
return ((Te = Me == null ? void 0 : Me.split(".")) == null ? void 0 : Te[((Lt = Me == null ? void 0 : Me.split(".")) == null ? void 0 : Lt.length) - 1]) !== "undefined" && G.push({
|
|
4563
|
+
suffix: "." + ((xt = Me == null ? void 0 : Me.split(".")) == null ? void 0 : xt[((ft = Me == null ? void 0 : Me.split(".")) == null ? void 0 : ft.length) - 1]),
|
|
4564
4564
|
blob: new Blob([ae.data], {
|
|
4565
4565
|
type: "application/octet-stream;charset=UTF-8"
|
|
4566
4566
|
}),
|
|
@@ -4568,13 +4568,13 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4568
4568
|
}), ae;
|
|
4569
4569
|
}));
|
|
4570
4570
|
await Promise.all(nt);
|
|
4571
|
-
} else if (!((V =
|
|
4571
|
+
} else if (!((V = M == null ? void 0 : M.blob) != null && V.includes("https://")) && !((J = M == null ? void 0 : M.blob) != null && J.includes("http://"))) {
|
|
4572
4572
|
ae = await Un({
|
|
4573
|
-
url:
|
|
4573
|
+
url: M == null ? void 0 : M.blob
|
|
4574
4574
|
});
|
|
4575
4575
|
let nt = [];
|
|
4576
|
-
if (((ge =
|
|
4577
|
-
let
|
|
4576
|
+
if (((ge = M == null ? void 0 : M.mtlBlobs) == null ? void 0 : ge.length) > 0) {
|
|
4577
|
+
let Me = await ((be = M == null ? void 0 : M.mtlBlobs) == null ? void 0 : be.map(async (je) => {
|
|
4578
4578
|
let pe = await Un({
|
|
4579
4579
|
url: je
|
|
4580
4580
|
});
|
|
@@ -4582,25 +4582,25 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4582
4582
|
type: "application/octet-stream;charset=UTF-8"
|
|
4583
4583
|
})), pe;
|
|
4584
4584
|
}));
|
|
4585
|
-
await Promise.all(
|
|
4585
|
+
await Promise.all(Me);
|
|
4586
4586
|
}
|
|
4587
4587
|
X = {
|
|
4588
|
-
suffix: "." + ((Xe = (ue =
|
|
4588
|
+
suffix: "." + ((Xe = (ue = M == null ? void 0 : M.blob) == null ? void 0 : ue.split(".")) == null ? void 0 : Xe[((ze = (Fe = M == null ? void 0 : M.blob) == null ? void 0 : Fe.split(".")) == null ? void 0 : ze.length) - 1]),
|
|
4589
4589
|
blob: new Blob([ae.data], {
|
|
4590
4590
|
type: "application/octet-stream;charset=UTF-8"
|
|
4591
4591
|
}),
|
|
4592
4592
|
mtlBlobs: nt
|
|
4593
4593
|
};
|
|
4594
4594
|
} else {
|
|
4595
|
-
ae = await ot.get(
|
|
4595
|
+
ae = await ot.get(M == null ? void 0 : M.blob, {
|
|
4596
4596
|
responseType: "blob",
|
|
4597
4597
|
headers: {
|
|
4598
4598
|
"Content-Type": "application/json"
|
|
4599
4599
|
}
|
|
4600
4600
|
});
|
|
4601
4601
|
let nt = [];
|
|
4602
|
-
if (((_t =
|
|
4603
|
-
let
|
|
4602
|
+
if (((_t = M == null ? void 0 : M.mtlBlobs) == null ? void 0 : _t.length) > 0) {
|
|
4603
|
+
let Me = await ((vt = M == null ? void 0 : M.mtlBlobs) == null ? void 0 : vt.map(async (je) => {
|
|
4604
4604
|
let pe = await ot.get(je, {
|
|
4605
4605
|
responseType: "blob",
|
|
4606
4606
|
headers: {
|
|
@@ -4611,10 +4611,10 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4611
4611
|
type: "application/octet-stream;charset=UTF-8"
|
|
4612
4612
|
})), pe;
|
|
4613
4613
|
}));
|
|
4614
|
-
await Promise.all(
|
|
4614
|
+
await Promise.all(Me);
|
|
4615
4615
|
}
|
|
4616
4616
|
X = {
|
|
4617
|
-
suffix: "." + ((
|
|
4617
|
+
suffix: "." + ((Ne = (ht = M == null ? void 0 : M.blob) == null ? void 0 : ht.split(".")) == null ? void 0 : Ne[((kt = (pt = M == null ? void 0 : M.blob) == null ? void 0 : pt.split(".")) == null ? void 0 : kt.length) - 1]),
|
|
4618
4618
|
blob: new Blob([ae.data], {
|
|
4619
4619
|
type: "application/octet-stream;charset=UTF-8"
|
|
4620
4620
|
}),
|
|
@@ -4632,8 +4632,8 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4632
4632
|
async () => {
|
|
4633
4633
|
var d, I, $, G;
|
|
4634
4634
|
if (u.value !== "" && u.value) {
|
|
4635
|
-
let de = (d = O.value) == null ? void 0 : d.split("/"),
|
|
4636
|
-
const X = (((I = De == null ? void 0 : De.find((J) => (J == null ? void 0 : J.key) ===
|
|
4635
|
+
let de = (d = O.value) == null ? void 0 : d.split("/"), M = de[(de == null ? void 0 : de.length) - 2];
|
|
4636
|
+
const X = (((I = De == null ? void 0 : De.find((J) => (J == null ? void 0 : J.key) === M)) == null ? void 0 : I.download) ?? "") + "/" + u.value, K = sessionStorage.getItem("magicToken") === "" ? "123456" : sessionStorage.getItem("magicToken"), W = await ot.post(X, null, {
|
|
4637
4637
|
responseType: "blob",
|
|
4638
4638
|
// 必须设置
|
|
4639
4639
|
headers: {
|
|
@@ -4661,7 +4661,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4661
4661
|
var ae, X, K, W, V, J, ge, be, ue, Fe, ze, Xe, _t, vt, ht, pt, kt;
|
|
4662
4662
|
r.value = !0;
|
|
4663
4663
|
let m = (ae = O.value) == null ? void 0 : ae.split("/"), d = m[(m == null ? void 0 : m.length) - 2];
|
|
4664
|
-
const I = ((X = De == null ? void 0 : De.find((
|
|
4664
|
+
const I = ((X = De == null ? void 0 : De.find((Ne) => (Ne == null ? void 0 : Ne.key) === d)) == null ? void 0 : X.value) ?? "";
|
|
4665
4665
|
let $ = "";
|
|
4666
4666
|
const G = await ot.post("http://139.196.154.85:20024/api/sysAuth/login", {
|
|
4667
4667
|
account: "superadmin",
|
|
@@ -4670,15 +4670,15 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4670
4670
|
code: ""
|
|
4671
4671
|
});
|
|
4672
4672
|
((K = G == null ? void 0 : G.data) == null ? void 0 : K.code) === 200 && ($ = `Bearer ${(V = (W = G.data) == null ? void 0 : W.result) == null ? void 0 : V.accessToken}`, sessionStorage.setItem("magicToken", $));
|
|
4673
|
-
const de = $ === "" ? "123456" : $,
|
|
4673
|
+
const de = $ === "" ? "123456" : $, M = await ot.post(I, null, {
|
|
4674
4674
|
headers: {
|
|
4675
4675
|
Authorization: de,
|
|
4676
4676
|
baseURL: "http://139.196.154.85:20025",
|
|
4677
4677
|
"Content-Type": "multipart/form-data"
|
|
4678
4678
|
}
|
|
4679
4679
|
});
|
|
4680
|
-
if (((J =
|
|
4681
|
-
const
|
|
4680
|
+
if (((J = M == null ? void 0 : M.data) == null ? void 0 : J.type) === "success" && $o((be = (ge = M == null ? void 0 : M.data) == null ? void 0 : ge.result) == null ? void 0 : be.result)) {
|
|
4681
|
+
const Ne = (_t = (Xe = (ze = JSON.parse((Fe = (ue = M == null ? void 0 : M.data) == null ? void 0 : ue.result) == null ? void 0 : Fe.result)) == null ? void 0 : ze.lines_file_paths) == null ? void 0 : Xe[0]) == null ? void 0 : _t.split("\\"), Me = (((vt = De == null ? void 0 : De.find((pe) => (pe == null ? void 0 : pe.key) === d)) == null ? void 0 : vt.resources) ?? "") + "/" + (((Ne == null ? void 0 : Ne[(Ne == null ? void 0 : Ne.length) - 2]) === "inputResources" ? "outputResources" : Ne == null ? void 0 : Ne[(Ne == null ? void 0 : Ne.length) - 2]) ?? "outputResources"), je = await ot.post(Me, null, {
|
|
4682
4682
|
headers: {
|
|
4683
4683
|
Authorization: de,
|
|
4684
4684
|
baseURL: "http://139.196.154.85:20025",
|
|
@@ -4686,7 +4686,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4686
4686
|
}
|
|
4687
4687
|
});
|
|
4688
4688
|
if (((ht = je == null ? void 0 : je.data) == null ? void 0 : ht.type) === "success") {
|
|
4689
|
-
const pe = (pt = je == null ? void 0 : je.data) == null ? void 0 : pt.result, Pt = We.value, Lt = await ((kt =
|
|
4689
|
+
const pe = (pt = je == null ? void 0 : je.data) == null ? void 0 : pt.result, Pt = We.value, Lt = await ((kt = Nt(Pt)) == null ? void 0 : kt.map(async (Te) => {
|
|
4690
4690
|
var ft, xt, St, Rt, Ct, Wt;
|
|
4691
4691
|
if ((Te == null ? void 0 : Te.name) === "输出") {
|
|
4692
4692
|
if ((Te == null ? void 0 : Te.comp) === "Table")
|
|
@@ -4783,7 +4783,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4783
4783
|
F.value ? (d.style.width = "18.75rem", m.style.width = "calc(100% - 24rem)") : m.style.width = "400px";
|
|
4784
4784
|
};
|
|
4785
4785
|
return (m, d) => {
|
|
4786
|
-
const I = Pe("el-button"), $ = Pe("el-avatar"), G = Pe("el-header"), de = Pe("el-container"),
|
|
4786
|
+
const I = Pe("el-button"), $ = Pe("el-avatar"), G = Pe("el-header"), de = Pe("el-container"), M = Pe("el-icon"), ae = Pe("el-input"), X = Pe("el-aside"), K = Pe("el-collapse-item"), W = Pe("el-collapse"), V = Pe("el-main"), J = Pe("router-view"), ge = Ts("loading");
|
|
4787
4787
|
return U(D) === "edit" ? (le(), Ie(de, {
|
|
4788
4788
|
key: 0,
|
|
4789
4789
|
class: "client-container"
|
|
@@ -4898,7 +4898,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4898
4898
|
style: { width: "130px" }
|
|
4899
4899
|
}, {
|
|
4900
4900
|
prefix: fe(() => [
|
|
4901
|
-
oe(
|
|
4901
|
+
oe(M, { class: "el-input__icon" }, {
|
|
4902
4902
|
default: fe(() => [
|
|
4903
4903
|
oe(U(ti))
|
|
4904
4904
|
]),
|
|
@@ -4913,7 +4913,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4913
4913
|
onClick: d[2] || (d[2] = //@ts-ignore
|
|
4914
4914
|
(...ue) => U(mn) && U(mn)(...ue))
|
|
4915
4915
|
}, [
|
|
4916
|
-
Y("div",
|
|
4916
|
+
Y("div", Na, [
|
|
4917
4917
|
oe(bt, {
|
|
4918
4918
|
name: "write",
|
|
4919
4919
|
style: { width: "clamp(12px, 0.9375rem, 15px)", height: "clamp(12px, 0.9375rem, 15px)" }
|
|
@@ -4921,7 +4921,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
4921
4921
|
]),
|
|
4922
4922
|
d[8] || (d[8] = Y("div", { class: "layout-trigger" }, qe("修改布局"), -1))
|
|
4923
4923
|
])) : Be("", !0),
|
|
4924
|
-
Y("div",
|
|
4924
|
+
Y("div", Ma, [
|
|
4925
4925
|
Yt(m.$slots, "default", {}, void 0, !0)
|
|
4926
4926
|
]),
|
|
4927
4927
|
oe($, {
|
|
@@ -5010,7 +5010,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
5010
5010
|
name: F.value ? "Right" : "Left",
|
|
5011
5011
|
onClick: he
|
|
5012
5012
|
}, null, 8, ["name"]),
|
|
5013
|
-
(le(!0), ye(un, null, hn((be = U(
|
|
5013
|
+
(le(!0), ye(un, null, hn((be = U(Nt)(U(We))) == null ? void 0 : be.filter((ue) => ue.comp !== "FormTop"), (ue, Fe) => {
|
|
5014
5014
|
var ze;
|
|
5015
5015
|
return le(), ye("div", {
|
|
5016
5016
|
class: "item-view-content",
|
|
@@ -5079,7 +5079,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
5079
5079
|
]);
|
|
5080
5080
|
};
|
|
5081
5081
|
}
|
|
5082
|
-
}), Fa = /* @__PURE__ */
|
|
5082
|
+
}), Fa = /* @__PURE__ */ Mt(Da, [["__scopeId", "data-v-d718292a"]]), ja = { class: "system-wrap" }, Oa = {
|
|
5083
5083
|
__name: "index",
|
|
5084
5084
|
props: {
|
|
5085
5085
|
windowConfig: {
|
|
@@ -5132,7 +5132,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
5132
5132
|
}, 8, ["windowConfig"]))
|
|
5133
5133
|
]));
|
|
5134
5134
|
}
|
|
5135
|
-
}, Ia = /* @__PURE__ */
|
|
5135
|
+
}, Ia = /* @__PURE__ */ Mt(Oa, [["__scopeId", "data-v-65a44ad9"]]), Ua = { class: "add-model-content" }, Ba = {
|
|
5136
5136
|
key: 0,
|
|
5137
5137
|
class: "model-operate"
|
|
5138
5138
|
}, za = { class: "model-select" }, Va = { class: "model-fill" }, Ha = {
|
|
@@ -5165,11 +5165,11 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
5165
5165
|
setup(E, { emit: n }) {
|
|
5166
5166
|
const a = E, r = n, c = me([]), l = me([]), y = me([]), u = me(0), b = yn(tt), g = wn(tt), { itemData: L, originalData: D } = et(b), { activeMenuPath: S, platform: A } = et(g), R = me(null), v = me(0), p = me([]);
|
|
5167
5167
|
me("");
|
|
5168
|
-
const
|
|
5168
|
+
const N = me(0), x = (f) => {
|
|
5169
5169
|
r("contentChange", f);
|
|
5170
5170
|
}, O = (f) => {
|
|
5171
5171
|
var T;
|
|
5172
|
-
const j = (T =
|
|
5172
|
+
const j = (T = Nt(f == null ? void 0 : f.wholeValue)) == null ? void 0 : T.map((k) => {
|
|
5173
5173
|
var H;
|
|
5174
5174
|
return (k == null ? void 0 : k.comp) === "Form" && (k.compData = (H = k.compData) == null ? void 0 : H.map((F) => ((F == null ? void 0 : F.key) === "formContent" && (F.contents = Qo(F == null ? void 0 : F.contents)), F))), k;
|
|
5175
5175
|
});
|
|
@@ -5183,7 +5183,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
5183
5183
|
it(
|
|
5184
5184
|
() => l.value,
|
|
5185
5185
|
() => {
|
|
5186
|
-
|
|
5186
|
+
N.value === l.value.length && l.value.length !== 0 && (c.value = l.value);
|
|
5187
5187
|
},
|
|
5188
5188
|
{ deep: !0, immediate: !0 }
|
|
5189
5189
|
);
|
|
@@ -5192,7 +5192,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
5192
5192
|
}, w = async (f) => {
|
|
5193
5193
|
const j = f.target.files;
|
|
5194
5194
|
if (!j) return;
|
|
5195
|
-
new FileReader(), c.value = [], l.value = [],
|
|
5195
|
+
new FileReader(), c.value = [], l.value = [], N.value = j.length;
|
|
5196
5196
|
const T = Array.from(j).map(async (k) => await new Promise((H) => {
|
|
5197
5197
|
const F = new FileReader();
|
|
5198
5198
|
F.onload = (B) => {
|
|
@@ -5277,7 +5277,7 @@ const ba = /* @__PURE__ */ Nt(Ko, [["render", ga], ["__scopeId", "data-v-e003bdb
|
|
|
5277
5277
|
]);
|
|
5278
5278
|
};
|
|
5279
5279
|
}
|
|
5280
|
-
}, lr = /* @__PURE__ */
|
|
5280
|
+
}, lr = /* @__PURE__ */ Mt($a, [["__scopeId", "data-v-4bf164f6"]]);
|
|
5281
5281
|
export {
|
|
5282
5282
|
lr as default
|
|
5283
5283
|
};
|