ss-component-new 1.3.13 → 1.3.14
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/{MTLLoader-C_XCtjSi.cjs → MTLLoader-B3diP_CH.cjs} +1 -1
- package/dist/{MTLLoader-YR-bfx1D.js → MTLLoader-D0AtmWHn.js} +37 -37
- package/dist/{OrbitControls-CktvE4iE.cjs → OrbitControls-BEMjDphC.cjs} +1 -1
- package/dist/{OrbitControls-BGsXD_A7.js → OrbitControls-C2bjXeWs.js} +1 -1
- package/dist/{URDFLoader-10oVp_KW.cjs → URDFLoader-GlKgq4QK.cjs} +1 -1
- package/dist/{URDFLoader-m1gMdnSQ.js → URDFLoader-qmyg9fYK.js} +189 -189
- package/dist/{animationData-CpK8d_Vm.js → animationData-Bi3_TyWE.js} +26 -26
- package/dist/{animationData-Cr2ra7rm.cjs → animationData-IwjfXQMn.cjs} +1 -1
- package/dist/{array-DSgiHp_j.cjs → array-DUQ3K_U3.cjs} +1 -1
- package/dist/{array-Bg-M1dRR.js → array-UVmZuEFZ.js} +46 -46
- package/dist/{iconfont-DsF7kuG5.cjs → iconfont-CAsy8t6b.cjs} +1 -1
- package/dist/{iconfont-0yJB130V.js → iconfont-DSIYZm9L.js} +29 -29
- package/dist/{index-i0GbQYT8.js → index-34N9MmAJ.js} +3 -3
- package/dist/{index-D8HD14bz.js → index-B2ktP1tY.js} +1 -1
- package/dist/{index-Ez8Heyym.js → index-B8Plk6_G.js} +915 -924
- package/dist/{index-BJPBBWWH.cjs → index-BLxE_tkf.cjs} +1 -1
- package/dist/{index-gfdgTjvQ.js → index-BNjvOnNL.js} +3 -3
- package/dist/{index-Ddoq7kRQ.js → index-BT6DSXQW.js} +9 -9
- package/dist/{index-CVXrjDFh.cjs → index-BWaSs-dx.cjs} +1 -1
- package/dist/{index-DIo9kT8l.cjs → index-BYJp0q3a.cjs} +1 -1
- package/dist/{index-DaoKeyl8.cjs → index-BaZ8Dz9C.cjs} +12 -12
- package/dist/{index-DHZOXdHe.js → index-BbZzjjV4.js} +7 -7
- package/dist/{index-BXUByyre.js → index-BfJ9-vQE.js} +2 -2
- package/dist/{index-DNmw0pc6.js → index-BoPqoH3C.js} +41 -41
- package/dist/index-BteE57Nz.js +103 -0
- package/dist/{index-dQFlJRrM.js → index-C-1cJ11C.js} +7 -7
- package/dist/{index-h_-N0ZtQ.js → index-C00SsoBw.js} +7 -7
- package/dist/{index-BcipoSQA.js → index-C5Q1KlY_.js} +2 -2
- package/dist/{index-Cwt7s25B.cjs → index-C7G7qNVy.cjs} +1 -1
- package/dist/index-C8FzkPpO.cjs +1 -0
- package/dist/{index-DRTxe12U.cjs → index-C8fMwErX.cjs} +13 -13
- package/dist/{index-N6U5R7pz.cjs → index-CD3-vCG-.cjs} +1 -1
- package/dist/{index-nr6V1FzX.js → index-CEq2QX9L.js} +7 -7
- package/dist/{index-CXiOVgoz.js → index-CEzEaG0d.js} +1 -1
- package/dist/{index-AgxmhjXT.js → index-CFZzQ_84.js} +8 -8
- package/dist/{index-Cjqg29ul.cjs → index-CIrXKpNl.cjs} +1 -1
- package/dist/{index-CBJCu7IU.cjs → index-Cd1xYGsa.cjs} +1 -1
- package/dist/{index-D_Yhv_HV.cjs → index-CdV2vSOK.cjs} +1 -1
- package/dist/index-CnuuKF1t.js +12544 -0
- package/dist/{index-C9SfnCpQ.js → index-CvqHcSC4.js} +2 -2
- package/dist/{index-DU9e5EhS.cjs → index-Cw4Pm2PQ.cjs} +1 -1
- package/dist/{index-bwtexcx2.cjs → index-D1X1OeUR.cjs} +1 -1
- package/dist/{index-gzS894Xb.cjs → index-DGIfO1LO.cjs} +1 -1
- package/dist/{index-Va8AOLWi.js → index-DGRL8SEt.js} +1 -1
- package/dist/{index-D3ixok8t.cjs → index-DJjHIf5F.cjs} +1 -1
- package/dist/{index-Bi76KPTH.js → index-DLF_1ATs.js} +5 -5
- package/dist/{index-DaIE9uY1.cjs → index-DMHNlcTB.cjs} +1 -1
- package/dist/{index-BfpxkTBr.cjs → index-DnMehixw.cjs} +1 -1
- package/dist/index-DowlDm_R.cjs +11 -0
- package/dist/{index-BTVKWZt_.js → index-DppPsJwa.js} +2 -2
- package/dist/{index-BPwYtuzg.cjs → index-Dy5qQAC3.cjs} +1 -1
- package/dist/{index-DS-YTop9.cjs → index-Jytyg12u.cjs} +1 -1
- package/dist/{index-CJJzXv2E.cjs → index-L_qyO2xf.cjs} +1 -1
- package/dist/{index-DhEfvV0x.js → index-US_KTUv7.js} +5 -5
- package/dist/{index-CtiuIHrN.cjs → index-bmTqenMO.cjs} +1 -1
- package/dist/{index-D7054IS6.cjs → index-dSga-Sqb.cjs} +1 -1
- package/dist/{index-NaWMtdUV.js → index-fuCgJzzm.js} +2 -2
- package/dist/{index-DVNEBZvu.js → index-fuVLvPhz.js} +3 -3
- package/dist/index-hh3Ozhvs.cjs +1 -0
- package/dist/{index-DBh5Z73C.js → index-i7Q6x7Zz.js} +1 -1
- package/dist/{index-B-SYbelE.js → index-jDCU1Wp9.js} +2 -2
- package/dist/{index-COQpDVsv.js → index-sMsCzNtW.js} +1535 -1570
- package/dist/{index-BWCv7zxy.cjs → index-vCTVD7cV.cjs} +1 -1
- package/dist/{index-Bo9X-gZk.cjs → index-wIeZl5t7.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRc8dG0E.js} +31601 -32166
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CbFQ2oZH.cjs} +394 -404
- package/dist/{index.vue_vue_type_style_index_1_lang-CNh42_ZH.js → index.vue_vue_type_style_index_1_lang-Cqe1NPUQ.js} +78 -78
- package/dist/{index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs → index.vue_vue_type_style_index_1_lang-D5dZrna1.cjs} +1 -1
- package/dist/{main-CwhQ7pet.cjs → main-DMEkPrPQ.cjs} +1 -1
- package/dist/{main-DQ4rxh2x.js → main-JQX3whvo.js} +4 -4
- package/dist/{menuIndex-D52EAwtb.cjs → menuIndex-8RF_0N_y.cjs} +1 -1
- package/dist/{menuIndex-DYaogp2R.js → menuIndex-BwWrdu20.js} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +10 -10
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +11 -11
- package/dist/{threeModel-B28hvnHw.js → threeModel-BYeWWze5.js} +45 -45
- package/dist/{threeModel-DnKfIIgn.cjs → threeModel-cUS9-ww3.cjs} +1 -1
- package/dist/{threePreview-DOD9HOZn.cjs → threePreview-BtspqluS.cjs} +1 -1
- package/dist/{threePreview-CkKl3frr.js → threePreview-CZI4Z6PT.js} +103 -103
- package/dist/{threeSceneView-DZvOLWv6.cjs → threeSceneView-B5L-Drf9.cjs} +1 -1
- package/dist/{threeSceneView-DlL9pZlj.js → threeSceneView-Cr_KXNx5.js} +38 -38
- package/dist/{threeSceneViewForCPMPIP-DB0Eczbs.js → threeSceneViewForCPMPIP-BuuDHRI4.js} +8 -8
- package/dist/{threeSceneViewForCPMPIP-CZvKvfDx.cjs → threeSceneViewForCPMPIP-Dp8auXh3.cjs} +1 -1
- package/dist/{threeTrackPathView-DgyAEYfV.cjs → threeTrackPathView-78ve4cJ3.cjs} +1 -1
- package/dist/{threeTrackPathView-Eb1bvUXJ.js → threeTrackPathView-DWMtEQZW.js} +66 -66
- package/dist/{threeViewerHost-BMU1tg9c.cjs → threeViewerHost-Mm-Ez-7E.cjs} +1 -1
- package/dist/{threeViewerHost-Bdzv9iPb.js → threeViewerHost-Yx0xoLgc.js} +20 -20
- package/dist/{urdfTree-hLtm0aFY.js → urdfTree-DMMvqDhp.js} +10 -10
- package/dist/{urdfTree-CoK2r17Y.cjs → urdfTree-npoVarfp.cjs} +1 -1
- package/dist/{workpieceTreePanel-mWvCQyyw.cjs → workpieceTreePanel-B2ICcFLW.cjs} +1 -1
- package/dist/{workpieceTreePanel-Ne_ACq86.js → workpieceTreePanel-C6ceilqa.js} +56 -56
- package/package.json +1 -1
- package/dist/index-Bb1M3ASi.cjs +0 -1
- package/dist/index-CpbBe_mV.cjs +0 -1
- package/dist/index-DIWralYr.js +0 -67
- package/dist/index-DbnDlzwg.cjs +0 -1
- package/dist/index-Dw4-rPvA.js +0 -11883
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var j3 = (c, e, n) => e in c ?
|
|
1
|
+
var U3 = Object.defineProperty;
|
|
2
|
+
var j3 = (c, e, n) => e in c ? U3(c, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : c[e] = n;
|
|
3
3
|
var x3 = (c, e, n) => j3(c, typeof e != "symbol" ? e + "" : e, n);
|
|
4
|
-
import { S as d3, O as m3, M as f3 } from "./MTLLoader-
|
|
5
|
-
import { c as c3,
|
|
4
|
+
import { S as d3, O as m3, M as f3 } from "./MTLLoader-D0AtmWHn.js";
|
|
5
|
+
import { c as c3, aK as r3, ao as w3, aL as N3, aM as C3, L as $3, O as u3, aA as F3, aN as t3, aO as k3, aP as D3, aQ as T3, ax as v3, aR as P3, ay as G3, Y, J as W3, V as z3, aS as H3, a1 as X, a2 as l3, aT as K3, aC as Z3, d as Y3, aU as J3, aV as X3, af as L3, u as Q3 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BRc8dG0E.js";
|
|
6
6
|
import { a as n3, ao as e1, aw as a1, g as V3, e as i1, b as l1 } from "./index-B8HqIYd5.js";
|
|
7
|
-
import { c as b3, s as M3, a as t1, p as g3, u as c1 } from "./index-
|
|
7
|
+
import { c as b3, s as M3, a as t1, p as g3, u as c1 } from "./index-sMsCzNtW.js";
|
|
8
8
|
import { ref as r1 } from "vue";
|
|
9
|
-
import { U as o1 } from "./URDFLoader-
|
|
9
|
+
import { U as o1 } from "./URDFLoader-qmyg9fYK.js";
|
|
10
10
|
const Q = "$R", s1 = (c) => {
|
|
11
11
|
let e = c == null ? void 0 : c.contents, n = c == null ? void 0 : c.valueString, H = c == null ? void 0 : c.prop, a = c == null ? void 0 : c.headers, s;
|
|
12
12
|
return Array.isArray(e) && (e == null ? void 0 : e.length) !== 1 && (e = c3(e, r3(a))), n == null || n.forEach((f) => {
|
|
@@ -23,7 +23,7 @@ const Q = "$R", s1 = (c) => {
|
|
|
23
23
|
const [e, n, H] = b3(c).split(":").map(Number);
|
|
24
24
|
let a = +c;
|
|
25
25
|
return !c || !(c != null && c.includes(":")) ? a : (e ?? 0) * 3600 + (n ?? 0) * 60 + (H ?? 0);
|
|
26
|
-
},
|
|
26
|
+
}, K = (c) => {
|
|
27
27
|
const e = (s) => s.toString().padStart(2, "0"), n = Math.floor(c / 3600), H = Math.floor(c % 3600 / 60), a = c % 60;
|
|
28
28
|
return `${e(n)}:${e(H)}:${parseInt(e(a))}`;
|
|
29
29
|
}, h1 = (c) => {
|
|
@@ -36,14 +36,14 @@ const Q = "$R", s1 = (c) => {
|
|
|
36
36
|
let h = +(e == null ? void 0 : e[u]);
|
|
37
37
|
t = t + h;
|
|
38
38
|
} else
|
|
39
|
-
t = S(t.toString()) + S((p = e == null ? void 0 : e[u]) == null ? void 0 : p.toString()), t =
|
|
39
|
+
t = S(t.toString()) + S((p = e == null ? void 0 : e[u]) == null ? void 0 : p.toString()), t = K(t);
|
|
40
40
|
} else if (s === "Row") {
|
|
41
41
|
let h = (r = a == null ? void 0 : a.find((m) => (m == null ? void 0 : m.label) === u)) == null ? void 0 : r.prop;
|
|
42
42
|
if (!((M = Number.isNaN(e == null ? void 0 : e[h]) ? "" : (l = e == null ? void 0 : e[h]) == null ? void 0 : l.toString()) != null && M.includes(":")) && !((o = t == null ? void 0 : t.toString()) != null && o.includes(":"))) {
|
|
43
43
|
let m = +((e == null ? void 0 : e[h]) ?? 0);
|
|
44
44
|
t = t + m;
|
|
45
45
|
} else
|
|
46
|
-
t = S(t == null ? void 0 : t.toString()) + S((i = (e == null ? void 0 : e[h]) ?? 0) == null ? void 0 : i.toString()), t =
|
|
46
|
+
t = S(t == null ? void 0 : t.toString()) + S((i = (e == null ? void 0 : e[h]) ?? 0) == null ? void 0 : i.toString()), t = K(t);
|
|
47
47
|
}
|
|
48
48
|
}), s === "Column") {
|
|
49
49
|
let u = [];
|
|
@@ -71,14 +71,14 @@ const Q = "$R", s1 = (c) => {
|
|
|
71
71
|
let o = +(e == null ? void 0 : e[u]);
|
|
72
72
|
t = t === 0 ? t + o : t - o;
|
|
73
73
|
} else
|
|
74
|
-
t = t === 0 ? S(t.toString()) + S(e == null ? void 0 : e[u].toString()) : S(t.toString()) - S(e == null ? void 0 : e[u].toString()), t =
|
|
74
|
+
t = t === 0 ? S(t.toString()) + S(e == null ? void 0 : e[u].toString()) : S(t.toString()) - S(e == null ? void 0 : e[u].toString()), t = K(t);
|
|
75
75
|
} else if (s === "Row") {
|
|
76
76
|
let o = (p = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.label) === u)) == null ? void 0 : p.prop;
|
|
77
77
|
if (!((l = Number.isNaN(e == null ? void 0 : e[o]) ? "" : (r = e == null ? void 0 : e[o]) == null ? void 0 : r.toString()) != null && l.includes(":")) && !((M = t == null ? void 0 : t.toString()) != null && M.includes(":"))) {
|
|
78
78
|
let i = +((e == null ? void 0 : e[o]) ?? 0);
|
|
79
79
|
t = t === 0 ? t + i : t - i;
|
|
80
80
|
} else
|
|
81
|
-
t = t === 0 ? S(t.toString()) + S(((e == null ? void 0 : e[o]) ?? 0).toString()) : S(t.toString()) - S(((e == null ? void 0 : e[o]) ?? 0).toString()), t =
|
|
81
|
+
t = t === 0 ? S(t.toString()) + S(((e == null ? void 0 : e[o]) ?? 0).toString()) : S(t.toString()) - S(((e == null ? void 0 : e[o]) ?? 0).toString()), t = K(t);
|
|
82
82
|
}
|
|
83
83
|
}), s === "Column") {
|
|
84
84
|
let u = [];
|
|
@@ -106,7 +106,7 @@ const Q = "$R", s1 = (c) => {
|
|
|
106
106
|
let o = +(e == null ? void 0 : e[u]);
|
|
107
107
|
t = t === 0 ? t + o : t * o;
|
|
108
108
|
} else
|
|
109
|
-
t = t === 0 ? S(t.toString()) + S(e == null ? void 0 : e[u].toString()) : S(t.toString()) * S(e == null ? void 0 : e[u].toString()), t =
|
|
109
|
+
t = t === 0 ? S(t.toString()) + S(e == null ? void 0 : e[u].toString()) : S(t.toString()) * S(e == null ? void 0 : e[u].toString()), t = K(t);
|
|
110
110
|
} else if (s === "Row") {
|
|
111
111
|
let o = (p = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.label) === u)) == null ? void 0 : p.prop;
|
|
112
112
|
if (!(e != null && e[o]))
|
|
@@ -115,7 +115,7 @@ const Q = "$R", s1 = (c) => {
|
|
|
115
115
|
let i = +((e == null ? void 0 : e[o]) ?? 0);
|
|
116
116
|
t = t === 0 ? t + i : t * i;
|
|
117
117
|
} else
|
|
118
|
-
t = t === 0 ? S(t.toString()) + S(((e == null ? void 0 : e[o]) ?? 0).toString()) : S(t.toString()) * S(((e == null ? void 0 : e[o]) ?? 0).toString()), t =
|
|
118
|
+
t = t === 0 ? S(t.toString()) + S(((e == null ? void 0 : e[o]) ?? 0).toString()) : S(t.toString()) * S(((e == null ? void 0 : e[o]) ?? 0).toString()), t = K(t);
|
|
119
119
|
}
|
|
120
120
|
}), s === "Column") {
|
|
121
121
|
let u = [];
|
|
@@ -143,14 +143,14 @@ const Q = "$R", s1 = (c) => {
|
|
|
143
143
|
let o = +(e == null ? void 0 : e[u]);
|
|
144
144
|
t = t === 0 ? t + o : t / o;
|
|
145
145
|
} else
|
|
146
|
-
t = t === 0 ? S(t.toString()) + S(e == null ? void 0 : e[u].toString()) : S(t.toString()) / S(e == null ? void 0 : e[u].toString()), t =
|
|
146
|
+
t = t === 0 ? S(t.toString()) + S(e == null ? void 0 : e[u].toString()) : S(t.toString()) / S(e == null ? void 0 : e[u].toString()), t = K(t);
|
|
147
147
|
} else if (s === "Row") {
|
|
148
148
|
let o = (p = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.label) === u)) == null ? void 0 : p.prop;
|
|
149
149
|
if (!((l = Number.isNaN(e == null ? void 0 : e[o]) ? "" : (r = e == null ? void 0 : e[o]) == null ? void 0 : r.toString()) != null && l.includes(":")) && !((M = t == null ? void 0 : t.toString()) != null && M.includes(":"))) {
|
|
150
150
|
let i = +((e == null ? void 0 : e[o]) ?? 0);
|
|
151
151
|
t = t === 0 ? t + i : t / i;
|
|
152
152
|
} else
|
|
153
|
-
t = t === 0 ? S(t.toString()) + S(((e == null ? void 0 : e[o]) ?? 0).toString()) : S(t.toString()) / S(((e == null ? void 0 : e[o]) ?? 0).toString()), t =
|
|
153
|
+
t = t === 0 ? S(t.toString()) + S(((e == null ? void 0 : e[o]) ?? 0).toString()) : S(t.toString()) / S(((e == null ? void 0 : e[o]) ?? 0).toString()), t = K(t);
|
|
154
154
|
}
|
|
155
155
|
}), s === "Column") {
|
|
156
156
|
let u = [];
|
|
@@ -175,19 +175,19 @@ const Q = "$R", s1 = (c) => {
|
|
|
175
175
|
Divide: d1,
|
|
176
176
|
Compare: s1
|
|
177
177
|
}, m1 = async (c, e, n, H = "Auto", a) => {
|
|
178
|
-
var f, t, u, v, y, d, p, r, l, M, o, i, h, m, z, g, x, B, w, A, j, D, I,
|
|
178
|
+
var f, t, u, v, y, d, p, r, l, M, o, i, h, m, z, g, x, B, w, A, j, D, I, Z, e3, o3;
|
|
179
179
|
let s = c;
|
|
180
180
|
for (let P in e) {
|
|
181
181
|
let G = (y = (v = (u = (t = (f = e == null ? void 0 : e[P]) == null ? void 0 : f.methods) == null ? void 0 : t.replace("(", Q)) == null ? void 0 : u.split(Q)) == null ? void 0 : v[0]) == null ? void 0 : y.replaceAll("$", "");
|
|
182
182
|
const a3 = y3 == null ? void 0 : y3[G];
|
|
183
|
-
let
|
|
184
|
-
|
|
183
|
+
let C = (i = (o = (M = (l = (r = (p = (d = e == null ? void 0 : e[P]) == null ? void 0 : d.methods) == null ? void 0 : p.replace("(", Q)) == null ? void 0 : r.split(Q)) == null ? void 0 : l[1]) == null ? void 0 : M.replace("(", Q)) == null ? void 0 : o.split(Q)) == null ? void 0 : i[0];
|
|
184
|
+
C = (z = (m = (h = C == null ? void 0 : C.slice(0, (C == null ? void 0 : C.length) - 1)) == null ? void 0 : h.replaceAll("[", "")) == null ? void 0 : m.replaceAll("]", "")) == null ? void 0 : z.split(",");
|
|
185
185
|
let T = (j = (x = (g = e == null ? void 0 : e[P]) == null ? void 0 : g.methods) == null ? void 0 : x.split("(")) == null ? void 0 : j[((A = (w = (B = e == null ? void 0 : e[P]) == null ? void 0 : B.methods) == null ? void 0 : w.split("(")) == null ? void 0 : A.length) - 1];
|
|
186
186
|
if (T = T == null ? void 0 : T.replaceAll(")", ""), T = T == null ? void 0 : T.split(","), (D = T == null ? void 0 : T.find((W) => W == null ? void 0 : W.includes("@Type"))) != null && D.includes(H)) {
|
|
187
|
-
let W = (e3 = (
|
|
187
|
+
let W = (e3 = (Z = (I = T == null ? void 0 : T.find((J) => J == null ? void 0 : J.includes("@Extent"))) == null ? void 0 : I.replace(":", "=")) == null ? void 0 : Z.split("=")) == null ? void 0 : e3[1];
|
|
188
188
|
await new Function("return ")(), s = a3({
|
|
189
189
|
contents: s,
|
|
190
|
-
valueString:
|
|
190
|
+
valueString: C,
|
|
191
191
|
prop: (o3 = e == null ? void 0 : e[P]) == null ? void 0 : o3.prop,
|
|
192
192
|
headers: n,
|
|
193
193
|
typeString: W,
|
|
@@ -197,7 +197,7 @@ const Q = "$R", s1 = (c) => {
|
|
|
197
197
|
}
|
|
198
198
|
return s;
|
|
199
199
|
};
|
|
200
|
-
class f1 extends
|
|
200
|
+
class f1 extends N3 {
|
|
201
201
|
/**
|
|
202
202
|
* Constructs a new PCD loader.
|
|
203
203
|
*
|
|
@@ -216,7 +216,7 @@ class f1 extends C3 {
|
|
|
216
216
|
* @param {onErrorCallback} onError - Executed when errors occur.
|
|
217
217
|
*/
|
|
218
218
|
load(e, n, H, a) {
|
|
219
|
-
const s = this, f = new
|
|
219
|
+
const s = this, f = new C3(s.manager);
|
|
220
220
|
f.setPath(s.path), f.setResponseType("arraybuffer"), f.setRequestHeader(s.requestHeader), f.setWithCredentials(s.withCredentials), f.load(e, function(t) {
|
|
221
221
|
try {
|
|
222
222
|
n(s.parse(t));
|
|
@@ -379,7 +379,7 @@ const u1 = t1(g3), { systemPath: B3 } = M3(u1), h3 = r1(), S3 = /* @__PURE__ */
|
|
|
379
379
|
function B1(c, e, n, H, a) {
|
|
380
380
|
const s = async (p) => {
|
|
381
381
|
try {
|
|
382
|
-
const r = await
|
|
382
|
+
const r = await Y3({ url: p });
|
|
383
383
|
if (r.status !== 200)
|
|
384
384
|
throw new Error(`下载失败: ${r.status}`);
|
|
385
385
|
return r.data;
|
|
@@ -402,7 +402,7 @@ function B1(c, e, n, H, a) {
|
|
|
402
402
|
const r = {
|
|
403
403
|
materials: {},
|
|
404
404
|
create: function(l) {
|
|
405
|
-
return this.materials[l] ? this.materials[l] : (console.warn(`Material '${l}' not found, using default material`), new
|
|
405
|
+
return this.materials[l] ? this.materials[l] : (console.warn(`Material '${l}' not found, using default material`), new X({
|
|
406
406
|
color: 8947848,
|
|
407
407
|
side: l3
|
|
408
408
|
}));
|
|
@@ -434,7 +434,7 @@ function B1(c, e, n, H, a) {
|
|
|
434
434
|
m && z.setMaterials(m);
|
|
435
435
|
const g = z.parse(h);
|
|
436
436
|
m || g.traverse((x) => {
|
|
437
|
-
x.isMesh && (x.material = new
|
|
437
|
+
x.isMesh && (x.material = new X({
|
|
438
438
|
color: 8947848,
|
|
439
439
|
side: l3
|
|
440
440
|
}));
|
|
@@ -486,8 +486,8 @@ function B1(c, e, n, H, a) {
|
|
|
486
486
|
x: parseFloat(_[1]),
|
|
487
487
|
y: parseFloat(_[2]),
|
|
488
488
|
z: parseFloat(_[3])
|
|
489
|
-
})), q = new F3(),
|
|
490
|
-
if (q.setAttribute("position", new t3(
|
|
489
|
+
})), q = new F3(), N = V.flatMap((_) => [_.x, _.y, _.z]);
|
|
490
|
+
if (q.setAttribute("position", new t3(N, 3)), i === ".txt") {
|
|
491
491
|
const _ = new D3({
|
|
492
492
|
color: "#5B5C99",
|
|
493
493
|
size: 1,
|
|
@@ -495,33 +495,33 @@ function B1(c, e, n, H, a) {
|
|
|
495
495
|
});
|
|
496
496
|
o = new T3(q, _);
|
|
497
497
|
} else if (i === ".cpt") {
|
|
498
|
-
const _ = new
|
|
498
|
+
const _ = new K3({
|
|
499
499
|
color: "#5B5C99",
|
|
500
500
|
linewidth: 100
|
|
501
501
|
});
|
|
502
|
-
o = new
|
|
502
|
+
o = new Z3(q, _);
|
|
503
503
|
}
|
|
504
504
|
} else if (i === ".obj") {
|
|
505
505
|
const b = new m3();
|
|
506
506
|
if (l && l.length > 0) {
|
|
507
507
|
const L = new f3();
|
|
508
508
|
for (const V of l) {
|
|
509
|
-
const q = await V.text(),
|
|
510
|
-
|
|
509
|
+
const q = await V.text(), N = L.parse(q);
|
|
510
|
+
N.preload(), b.setMaterials(N);
|
|
511
511
|
break;
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
o = b.parse(h), (!l || l.length === 0) && o.traverse((L) => {
|
|
515
|
-
L.isMesh && (L.material = new
|
|
515
|
+
L.isMesh && (L.material = new X({ color: "#B3B3D4" })), L instanceof Y && (L.material.side = l3);
|
|
516
516
|
});
|
|
517
517
|
}
|
|
518
518
|
break;
|
|
519
519
|
case ".stl":
|
|
520
|
-
const m = await r.arrayBuffer(), g = new d3().parse(m), x = new
|
|
520
|
+
const m = await r.arrayBuffer(), g = new d3().parse(m), x = new X({
|
|
521
521
|
color: "#B3B3D4",
|
|
522
522
|
side: l3
|
|
523
523
|
});
|
|
524
|
-
o = new
|
|
524
|
+
o = new Y(g, x);
|
|
525
525
|
break;
|
|
526
526
|
case ".nc":
|
|
527
527
|
const B = [
|
|
@@ -541,12 +541,12 @@ function B1(c, e, n, H, a) {
|
|
|
541
541
|
}, A = new v3(), j = B.map((b) => new Promise((L, V) => {
|
|
542
542
|
new d3().load(
|
|
543
543
|
B3.value === "" ? `/model/${b}` : `${B3.value}\\${b}`,
|
|
544
|
-
(
|
|
545
|
-
const _ = new
|
|
544
|
+
(N) => {
|
|
545
|
+
const _ = new X({
|
|
546
546
|
color: w[b] || "#B3B3D4",
|
|
547
547
|
side: l3
|
|
548
|
-
}),
|
|
549
|
-
L(
|
|
548
|
+
}), O = new Y(N, _);
|
|
549
|
+
L(O);
|
|
550
550
|
},
|
|
551
551
|
void 0,
|
|
552
552
|
V
|
|
@@ -578,40 +578,40 @@ function B1(c, e, n, H, a) {
|
|
|
578
578
|
}
|
|
579
579
|
}), q = new Blob([V.data], {
|
|
580
580
|
type: "application/octet-stream;charset=UTF-8"
|
|
581
|
-
}),
|
|
581
|
+
}), N = await new Promise((O, $) => {
|
|
582
582
|
const E = URL.createObjectURL(L);
|
|
583
583
|
D.load(
|
|
584
584
|
E,
|
|
585
|
-
(
|
|
586
|
-
const R = new Float32Array(
|
|
587
|
-
for (let F = 0; F <
|
|
585
|
+
(U) => {
|
|
586
|
+
const R = new Float32Array(U.geometry.attributes.position.count * 3);
|
|
587
|
+
for (let F = 0; F < U.geometry.attributes.position.count; F++)
|
|
588
588
|
R[F * 3] = 1, R[F * 3 + 1] = 0, R[F * 3 + 2] = 0;
|
|
589
|
-
|
|
589
|
+
U.geometry.setAttribute("color", new H3(R, 3)), U.material.vertexColors = !0, U.scale.set(0.3, 0.3, 0.3), URL.revokeObjectURL(E), O(U);
|
|
590
590
|
},
|
|
591
591
|
void 0,
|
|
592
592
|
$
|
|
593
593
|
);
|
|
594
|
-
}), _ = await new Promise((
|
|
594
|
+
}), _ = await new Promise((O, $) => {
|
|
595
595
|
const E = URL.createObjectURL(q);
|
|
596
596
|
D.load(
|
|
597
597
|
E,
|
|
598
|
-
(
|
|
599
|
-
const R = new Float32Array(
|
|
600
|
-
for (let F = 0; F <
|
|
598
|
+
(U) => {
|
|
599
|
+
const R = new Float32Array(U.geometry.attributes.position.count * 3);
|
|
600
|
+
for (let F = 0; F < U.geometry.attributes.position.count; F++)
|
|
601
601
|
R[F * 3] = 0, R[F * 3 + 1] = 1, R[F * 3 + 2] = 0;
|
|
602
|
-
|
|
602
|
+
U.geometry.setAttribute("color", new H3(R, 3)), U.material.vertexColors = !0, U.scale.set(0.3, 0.3, 0.3), URL.revokeObjectURL(E), O(U);
|
|
603
603
|
},
|
|
604
604
|
void 0,
|
|
605
605
|
$
|
|
606
606
|
);
|
|
607
607
|
});
|
|
608
|
-
I.add(
|
|
608
|
+
I.add(N), I.add(_), o = I;
|
|
609
609
|
} catch (b) {
|
|
610
610
|
throw console.error("PCD文件加载失败:", b), new Error("无法加载PCD文件");
|
|
611
611
|
}
|
|
612
612
|
break;
|
|
613
613
|
case ".urdf":
|
|
614
|
-
const
|
|
614
|
+
const Z = URL.createObjectURL(r), e3 = new o1(), o3 = "http://139.196.154.85:20026/chfs/shared/机器人/urdf/SmallBender_R-2000iC-165F/meshes", P = {
|
|
615
615
|
maxConcurrentLoads: 4,
|
|
616
616
|
// 最大并发加载数
|
|
617
617
|
enableCache: !0,
|
|
@@ -624,7 +624,7 @@ function B1(c, e, n, H, a) {
|
|
|
624
624
|
// 共享材质
|
|
625
625
|
enableInstancing: !0
|
|
626
626
|
// 启用实例化
|
|
627
|
-
}, G = /* @__PURE__ */ new WeakMap(), a3 = /* @__PURE__ */ new WeakMap(),
|
|
627
|
+
}, G = /* @__PURE__ */ new WeakMap(), a3 = /* @__PURE__ */ new WeakMap(), C = /* @__PURE__ */ new WeakMap(), T = async (b) => {
|
|
628
628
|
if (G.has(b))
|
|
629
629
|
return console.log(`从缓存加载: ${b}`), G.get(b);
|
|
630
630
|
try {
|
|
@@ -645,16 +645,16 @@ function B1(c, e, n, H, a) {
|
|
|
645
645
|
}, W = (b = "default") => {
|
|
646
646
|
if (a3.has(b))
|
|
647
647
|
return a3.get(b);
|
|
648
|
-
const L = new
|
|
648
|
+
const L = new X({
|
|
649
649
|
color: 12303291,
|
|
650
650
|
shininess: 30,
|
|
651
651
|
// 性能优化设置
|
|
652
652
|
transparent: !1,
|
|
653
653
|
alphaTest: 0.1,
|
|
654
|
-
side:
|
|
654
|
+
side: X3
|
|
655
655
|
});
|
|
656
656
|
return a3.set(b, L), L;
|
|
657
|
-
},
|
|
657
|
+
}, J = (b) => {
|
|
658
658
|
try {
|
|
659
659
|
b.isBufferGeometry && b.mergeVertices && b.mergeVertices(), b.computeVertexNormals && b.computeVertexNormals(), b.computeBoundingSphere && b.computeBoundingSphere(), b.deleteAttribute && b.deleteAttribute("uv2");
|
|
660
660
|
} catch (L) {
|
|
@@ -663,43 +663,43 @@ function B1(c, e, n, H, a) {
|
|
|
663
663
|
return b;
|
|
664
664
|
}, E3 = async (b, L, V) => {
|
|
665
665
|
const q = `stl_${L}`;
|
|
666
|
-
if (
|
|
667
|
-
const $ =
|
|
668
|
-
return new
|
|
666
|
+
if (C.has(q)) {
|
|
667
|
+
const $ = C.get(q);
|
|
668
|
+
return new Y($, W());
|
|
669
669
|
}
|
|
670
|
-
const
|
|
671
|
-
let
|
|
672
|
-
return
|
|
670
|
+
const N = await b.arrayBuffer();
|
|
671
|
+
let O = new d3(V).parse(N);
|
|
672
|
+
return O = J(O), C.set(q, O), new Y(O, W());
|
|
673
673
|
}, R3 = async (b, L, V) => {
|
|
674
674
|
const q = `obj_${L}`;
|
|
675
675
|
if (G.has(q))
|
|
676
676
|
return G.get(q).clone();
|
|
677
|
-
const
|
|
677
|
+
const N = await b.text(), _ = new m3(V), O = L.replace(".obj", ".mtl");
|
|
678
678
|
try {
|
|
679
|
-
const
|
|
679
|
+
const U = await (await T(O)).text(), F = new f3(V).parse(U);
|
|
680
680
|
F.preload(), _.setMaterials(F);
|
|
681
681
|
} catch {
|
|
682
|
-
console.warn(`MTL文件加载失败,使用默认材质: ${
|
|
682
|
+
console.warn(`MTL文件加载失败,使用默认材质: ${O}`);
|
|
683
683
|
}
|
|
684
|
-
const $ = _.parse(
|
|
684
|
+
const $ = _.parse(N);
|
|
685
685
|
return $.traverse((E) => {
|
|
686
|
-
E.isMesh && (E.geometry =
|
|
686
|
+
E.isMesh && (E.geometry = J(E.geometry), E.castShadow = !0, E.receiveShadow = !0, E.renderOrder = 1);
|
|
687
687
|
}), G.set(q, $), $;
|
|
688
688
|
}, I3 = (b, L) => {
|
|
689
|
-
const V = new
|
|
689
|
+
const V = new J3();
|
|
690
690
|
if (V.addLevel(b, 0), b.geometry) {
|
|
691
|
-
const q = b.geometry.clone(),
|
|
692
|
-
V.addLevel(
|
|
691
|
+
const q = b.geometry.clone(), N = new Y(q, b.material);
|
|
692
|
+
V.addLevel(N, 50);
|
|
693
693
|
}
|
|
694
694
|
return V;
|
|
695
695
|
};
|
|
696
696
|
let i3 = 0, s3 = 0;
|
|
697
697
|
const p3 = [];
|
|
698
|
-
e3.loadMeshCb = async (b, L, V, q,
|
|
699
|
-
const _ = b.split("/").pop(),
|
|
698
|
+
e3.loadMeshCb = async (b, L, V, q, N) => {
|
|
699
|
+
const _ = b.split("/").pop(), O = V || (() => {
|
|
700
700
|
});
|
|
701
701
|
i3++;
|
|
702
|
-
const $ = new Promise(async (E,
|
|
702
|
+
const $ = new Promise(async (E, U) => {
|
|
703
703
|
try {
|
|
704
704
|
const R = await T(_);
|
|
705
705
|
if (!R || R.size === 0)
|
|
@@ -716,7 +716,7 @@ function B1(c, e, n, H, a) {
|
|
|
716
716
|
default:
|
|
717
717
|
throw new Error(`不支持的文件格式: ${F}`);
|
|
718
718
|
}
|
|
719
|
-
P.enableLOD && k.isMesh && (k = I3(k, _)),
|
|
719
|
+
P.enableLOD && k.isMesh && (k = I3(k, _)), O(k), s3++, q && q({
|
|
720
720
|
loaded: s3,
|
|
721
721
|
total: i3,
|
|
722
722
|
progress: s3 / i3
|
|
@@ -724,19 +724,19 @@ function B1(c, e, n, H, a) {
|
|
|
724
724
|
} catch (R) {
|
|
725
725
|
console.error(`mesh文件加载失败: ${_}`, R);
|
|
726
726
|
const F = new v3();
|
|
727
|
-
|
|
728
|
-
const k = new P3(0.1, 0.1, 0.1),
|
|
729
|
-
return new
|
|
727
|
+
O(F), E(F);
|
|
728
|
+
const k = new P3(0.1, 0.1, 0.1), O3 = new G3({ color: 16711680, wireframe: !0 });
|
|
729
|
+
return new Y(k, O3);
|
|
730
730
|
}
|
|
731
731
|
});
|
|
732
732
|
p3.push($);
|
|
733
733
|
};
|
|
734
734
|
try {
|
|
735
|
-
if (!
|
|
735
|
+
if (!Z) {
|
|
736
736
|
h3.value = void 0;
|
|
737
737
|
break;
|
|
738
738
|
}
|
|
739
|
-
if (o = await e3.loadAsync(
|
|
739
|
+
if (o = await e3.loadAsync(Z), console.log(`URDF文件加载完成,等待${i3}个mesh文件加载...`), p3.length > 0)
|
|
740
740
|
try {
|
|
741
741
|
await Promise.allSettled(p3), console.log(`所有mesh文件处理完成,成功加载: ${s3}/${i3}`);
|
|
742
742
|
} catch (V) {
|
|
@@ -757,7 +757,7 @@ function B1(c, e, n, H, a) {
|
|
|
757
757
|
} catch (b) {
|
|
758
758
|
console.error("URDF加载失败:", b), h3.value = void 0;
|
|
759
759
|
} finally {
|
|
760
|
-
|
|
760
|
+
Z && URL.revokeObjectURL(Z);
|
|
761
761
|
}
|
|
762
762
|
break;
|
|
763
763
|
default:
|