ss-component-new 1.2.320 → 1.2.321

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.
Files changed (82) hide show
  1. package/dist/{MTLLoader-CDSTkv2r.js → MTLLoader-DPOghquc.js} +44 -44
  2. package/dist/{MTLLoader-CzQIVnkW.cjs → MTLLoader-WtlM9u4_.cjs} +1 -1
  3. package/dist/{OrbitControls-D-H9X2Xc.cjs → OrbitControls-B4WKzU1G.cjs} +1 -1
  4. package/dist/{OrbitControls-DcmX9nvA.js → OrbitControls-D-nkCRIf.js} +1 -1
  5. package/dist/{URDFLoader-B_kf63rV.cjs → URDFLoader-BCALUmPB.cjs} +1 -1
  6. package/dist/{URDFLoader-CdN4_DgF.js → URDFLoader-CWlOHauP.js} +95 -95
  7. package/dist/{animationData-Clpy-I6C.cjs → animationData-C0UguIKQ.cjs} +1 -1
  8. package/dist/{animationData-CEhF6uNe.js → animationData-Dzdp9nas.js} +22 -22
  9. package/dist/{array-hFAdDlKV.cjs → array-CK9adN1S.cjs} +1 -1
  10. package/dist/{array-BnbdEheX.js → array-DsXvI7kM.js} +36 -36
  11. package/dist/{iconfont-D0jIkQMM.js → iconfont-BnHV6N2N.js} +21 -21
  12. package/dist/{iconfont-CdKkdWWU.cjs → iconfont-lNXhZpFp.cjs} +1 -1
  13. package/dist/{index-acHXwlR5.cjs → index--86Gn2ru.cjs} +1 -1
  14. package/dist/{index-DMzQ5VfV.cjs → index-0mdQIssU.cjs} +1 -1
  15. package/dist/index-1Owg_Mf-.cjs +1 -0
  16. package/dist/{index-BN6O_Eek.js → index-9UoNKztf.js} +1 -1
  17. package/dist/{index-DGWdVqDd.cjs → index-A_jMsoyr.cjs} +1 -1
  18. package/dist/{index-Hsb03y-r.js → index-B1H0LkPE.js} +1 -1
  19. package/dist/{index-Dtm1Qjht.js → index-BBclOeFM.js} +1 -1
  20. package/dist/{index-B63s-JlF.js → index-BGMypXCK.js} +4 -4
  21. package/dist/{index-ChY5FLQd.js → index-BSgP28TB.js} +2 -2
  22. package/dist/{index-CsYuwsiy.cjs → index-B_ocki10.cjs} +1 -1
  23. package/dist/{index-CZmHTDer.cjs → index-BcDHAiO3.cjs} +1 -1
  24. package/dist/{index-B9biCv6N.js → index-BsIOE41E.js} +1 -1
  25. package/dist/{index-BUgBjm_0.cjs → index-BykHr1Eg.cjs} +1 -1
  26. package/dist/{index-BULVh0UT.js → index-C7bPptTr.js} +1 -1
  27. package/dist/{index-BbLk-2Gd.js → index-CZ6fkXHY.js} +5 -5
  28. package/dist/index-CZXiiKiM.cjs +11 -0
  29. package/dist/index-CigkH2AZ.js +12465 -0
  30. package/dist/{index-CuaMF-D0.js → index-Cxsfl10z.js} +3 -3
  31. package/dist/{index-BMobTVwt.cjs → index-D0xh6m7C.cjs} +1 -1
  32. package/dist/{index-CKJP2psW.cjs → index-D2lip588.cjs} +1 -1
  33. package/dist/{index-BBYRL3BD.js → index-D7Gyeuk1.js} +4 -4
  34. package/dist/{index-CmYzo1h5.cjs → index-DCYH5zL4.cjs} +1 -1
  35. package/dist/{index-CIWoZH8M.cjs → index-DN4tn4Q1.cjs} +1 -1
  36. package/dist/{index-DhORf5Ca.cjs → index-DRTEyrqM.cjs} +1 -1
  37. package/dist/{index-C_mznIEq.js → index-DTAyw_rT.js} +5 -5
  38. package/dist/{index-ChkaCKRr.js → index-DWpSqmnH.js} +2150 -2152
  39. package/dist/{index-WhfGtq5k.js → index-DeINnO1a.js} +1 -1
  40. package/dist/{index-CDxSv4Fm.cjs → index-DlRKKRIJ.cjs} +1 -1
  41. package/dist/{index-2pT_YeoR.cjs → index-DmUZr5rN.cjs} +1 -1
  42. package/dist/{index-Dcvmiima.js → index-DuAd7WnG.js} +1 -1
  43. package/dist/{index-gII2yOS-.js → index-Dz0Yy_aU.js} +3 -3
  44. package/dist/{index-DsWNgreC.js → index-EEdSZ0XK.js} +1 -1
  45. package/dist/{index-D-EuGZq6.cjs → index-HIz3WqB6.cjs} +1 -1
  46. package/dist/{index-an4li1M5.cjs → index-HZa2fjvR.cjs} +1 -1
  47. package/dist/{index-auR6PIXZ.js → index-McjYxFmy.js} +4 -4
  48. package/dist/{index-B2NXMUwG.cjs → index-NT3-shBq.cjs} +1 -1
  49. package/dist/{index-BkR1ZyW0.cjs → index-Y-aMAtUz.cjs} +1 -1
  50. package/dist/{index-q3TzHC9c.cjs → index-ZDxZcfNU.cjs} +1 -1
  51. package/dist/{index-B--dkiC3.js → index-r0hSh3Ho.js} +1 -1
  52. package/dist/{index-Cz3X-nTr.js → index-seLSz6FS.js} +1 -1
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bo3GWmfl.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B-jMTZLT.cjs} +107 -107
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C7EqnG9z.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-gYZo9wwL.js} +152 -151
  55. package/dist/{index.vue_vue_type_style_index_1_lang-CCAvftWy.js → index.vue_vue_type_style_index_1_lang-BlEiaBVX.js} +182 -182
  56. package/dist/{index.vue_vue_type_style_index_1_lang-C82aG_1o.cjs → index.vue_vue_type_style_index_1_lang-Dl0UrVqn.cjs} +1 -1
  57. package/dist/{main-TVcRSKDf.cjs → main-D9dcB2l7.cjs} +1 -1
  58. package/dist/{main-CGEK-Lu3.js → main-DrHv50I2.js} +3 -3
  59. package/dist/ss-component.cjs +1 -1
  60. package/dist/ss-component.js +8 -8
  61. package/dist/ss-component2.cjs +1 -1
  62. package/dist/ss-component2.js +10 -10
  63. package/dist/{threeModel-BWNBsSte.cjs → threeModel-CU32ZPcV.cjs} +1 -1
  64. package/dist/{threeModel-DiqA6QHp.js → threeModel-D99aHX_f.js} +24 -24
  65. package/dist/{threePreview-_Y77vG5u.js → threePreview-Br0EE4Ud.js} +114 -114
  66. package/dist/{threePreview-Ceu1jsHj.cjs → threePreview-DVU8LB-6.cjs} +1 -1
  67. package/dist/{threeSceneView-KzaY14zK.js → threeSceneView-COmqJFJG.js} +8 -8
  68. package/dist/{threeSceneView-CQIft8NI.cjs → threeSceneView-DqdT1Ddr.cjs} +1 -1
  69. package/dist/{threeSceneViewForCPMPIP-Cb79-tDO.js → threeSceneViewForCPMPIP-B51x6Ync.js} +7 -7
  70. package/dist/{threeSceneViewForCPMPIP-B77HstZi.cjs → threeSceneViewForCPMPIP-ra01ZlH4.cjs} +1 -1
  71. package/dist/{threeTrackPathView-CmZ0-vAj.js → threeTrackPathView-C22dVYEt.js} +88 -88
  72. package/dist/{threeTrackPathView-Bb5aCZ93.cjs → threeTrackPathView-DAoYI7KH.cjs} +1 -1
  73. package/dist/{threeViewerHost-C7xRsvtB.js → threeViewerHost-CxfATzg5.js} +15 -15
  74. package/dist/{threeViewerHost-9ZQ5PlEH.cjs → threeViewerHost-dB3mMvbG.cjs} +1 -1
  75. package/dist/{urdfTree-BIfrcTrZ.js → urdfTree-B7vFAieq.js} +4 -4
  76. package/dist/{urdfTree-Cf82F-ZA.cjs → urdfTree-Un6KDIVy.cjs} +1 -1
  77. package/dist/{workpieceTreePanel-CoG2RuKE.js → workpieceTreePanel-CgNiyUrm.js} +27 -27
  78. package/dist/{workpieceTreePanel-BjrztNlC.cjs → workpieceTreePanel-D6QEaOh8.cjs} +1 -1
  79. package/package.json +1 -1
  80. package/dist/index-CbJ7Fc-s.js +0 -12271
  81. package/dist/index-GVffFAZv.cjs +0 -1
  82. package/dist/index-J-1vJ4iC.cjs +0 -11
@@ -1,12 +1,12 @@
1
- var U3 = Object.defineProperty;
2
- var j3 = (c, e, h) => e in c ? U3(c, e, { enumerable: !0, configurable: !0, writable: !0, value: h }) : c[e] = h;
1
+ var O3 = Object.defineProperty;
2
+ var j3 = (c, e, h) => e in c ? O3(c, e, { enumerable: !0, configurable: !0, writable: !0, value: h }) : c[e] = h;
3
3
  var x3 = (c, e, h) => j3(c, typeof e != "symbol" ? e + "" : e, h);
4
- import { S as d3, O as m3, M as f3 } from "./MTLLoader-CDSTkv2r.js";
5
- import { c as c3, aO as o3, ar as w3, aP as C3, aQ as N3, O as $3, T as v3, aE as F3, aR as t3, aS as k3, aT as D3, aU as T3, aB as z3, aV as P3, aC as G3, $ as Y, M as W3, V as u3, aW as H3, a4 as J, a5 as i3, aX as Z3, aG as K3, d as Y3, aY as X3, aZ as J3, ag as L3, u as Q3 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C7EqnG9z.js";
6
- import { b as n3, s as M3, p as g3, ap as e1, aw as a1, g as V3, f as l1, c as i1 } from "./index-BUf2BDmR.js";
4
+ import { S as d3, O as m3, M as f3 } from "./MTLLoader-DPOghquc.js";
5
+ import { c as c3, aP as o3, as as w3, aQ as C3, aR as N3, Q as $3, X as v3, aF as F3, aS as t3, aT as k3, aU as D3, aV as T3, aC as z3, aW as P3, aD as G3, a1 as X, O as W3, V as u3, aX as H3, a6 as J, a7 as l3, aY as Z3, aH as K3, d as X3, aZ as Y3, a_ as J3, ai as L3, u as Q3 } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-gYZo9wwL.js";
6
+ import { b as n3, s as M3, p as g3, ap as e1, aw as a1, g as V3, f as i1, c as l1 } from "./index-BUf2BDmR.js";
7
7
  import { ref as t1 } from "vue";
8
8
  import { c as b3, a as c1, u as o1 } from "./index-BjCGdt04.js";
9
- import { U as r1 } from "./URDFLoader-CdN4_DgF.js";
9
+ import { U as r1 } from "./URDFLoader-CWlOHauP.js";
10
10
  const Q = "$R", s1 = (c) => {
11
11
  let e = c == null ? void 0 : c.contents, h = c == null ? void 0 : c.valueString, x = c == null ? void 0 : c.prop, a = c == null ? void 0 : c.headers, m;
12
12
  return Array.isArray(e) && (e == null ? void 0 : e.length) !== 1 && (e = c3(e, o3(a))), h == null || h.forEach((b) => {
@@ -29,7 +29,7 @@ const Q = "$R", s1 = (c) => {
29
29
  }, h1 = (c) => {
30
30
  let e = c == null ? void 0 : c.contents, h = c == null ? void 0 : c.valueString, x = c == null ? void 0 : c.prop, a = c == null ? void 0 : c.headers, m = c == null ? void 0 : c.typeString, b = c == null ? void 0 : c.allContents, t = 0;
31
31
  if (Array.isArray(e) && (e == null ? void 0 : e.length) !== 1 && (e = c3(e, o3(a))), h == null || h.forEach((f) => {
32
- var v, u, p, n, o, i, M, r, l;
32
+ var v, u, p, n, o, l, M, r, i;
33
33
  if (e != null && e[f]) {
34
34
  if (m === "Row")
35
35
  if (!((u = ((v = e == null ? void 0 : e[f]) == null ? void 0 : v.toString()) ?? "") != null && u.includes(":")) && !((p = t == null ? void 0 : t.toString()) != null && p.includes(":"))) {
@@ -39,11 +39,11 @@ const Q = "$R", s1 = (c) => {
39
39
  t = S(t.toString()) + S((n = e == null ? void 0 : e[f]) == null ? void 0 : n.toString()), t = Z(t);
40
40
  } else if (m === "Row") {
41
41
  let s = (o = a == null ? void 0 : a.find((d) => (d == null ? void 0 : d.label) === f)) == null ? void 0 : o.prop;
42
- if (!((M = Number.isNaN(e == null ? void 0 : e[s]) ? "" : (i = e == null ? void 0 : e[s]) == null ? void 0 : i.toString()) != null && M.includes(":")) && !((r = t == null ? void 0 : t.toString()) != null && r.includes(":"))) {
42
+ if (!((M = Number.isNaN(e == null ? void 0 : e[s]) ? "" : (l = e == null ? void 0 : e[s]) == null ? void 0 : l.toString()) != null && M.includes(":")) && !((r = t == null ? void 0 : t.toString()) != null && r.includes(":"))) {
43
43
  let d = +((e == null ? void 0 : e[s]) ?? 0);
44
44
  t = t + d;
45
45
  } else
46
- t = S(t == null ? void 0 : t.toString()) + S((l = (e == null ? void 0 : e[s]) ?? 0) == null ? void 0 : l.toString()), t = Z(t);
46
+ t = S(t == null ? void 0 : t.toString()) + S((i = (e == null ? void 0 : e[s]) ?? 0) == null ? void 0 : i.toString()), t = Z(t);
47
47
  }
48
48
  }), m === "Column") {
49
49
  let f = [];
@@ -64,7 +64,7 @@ const Q = "$R", s1 = (c) => {
64
64
  }, n1 = (c) => {
65
65
  let e = c == null ? void 0 : c.contents, h = c == null ? void 0 : c.valueString, x = c == null ? void 0 : c.prop, a = c == null ? void 0 : c.headers, m = c == null ? void 0 : c.typeString, b = c == null ? void 0 : c.allContents, t = 0;
66
66
  if (Array.isArray(e) && (e == null ? void 0 : e.length) !== 1 && (e = c3(e, o3(a))), h == null || h.forEach((f) => {
67
- var v, u, p, n, o, i, M;
67
+ var v, u, p, n, o, l, M;
68
68
  if (e != null && e[f]) {
69
69
  if (m === "Row")
70
70
  if (!((u = (v = e == null ? void 0 : e[f]) == null ? void 0 : v.toString()) != null && u.includes(":")) && !((p = t == null ? void 0 : t.toString()) != null && p.includes(":"))) {
@@ -73,10 +73,10 @@ const Q = "$R", s1 = (c) => {
73
73
  } else
74
74
  t = t === 0 ? S(t.toString()) + S(e == null ? void 0 : e[f].toString()) : S(t.toString()) - S(e == null ? void 0 : e[f].toString()), t = Z(t);
75
75
  } else if (m === "Row") {
76
- let r = (n = a == null ? void 0 : a.find((l) => (l == null ? void 0 : l.label) === f)) == null ? void 0 : n.prop;
77
- if (!((i = Number.isNaN(e == null ? void 0 : e[r]) ? "" : (o = e == null ? void 0 : e[r]) == null ? void 0 : o.toString()) != null && i.includes(":")) && !((M = t == null ? void 0 : t.toString()) != null && M.includes(":"))) {
78
- let l = +((e == null ? void 0 : e[r]) ?? 0);
79
- t = t === 0 ? t + l : t - l;
76
+ let r = (n = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.label) === f)) == null ? void 0 : n.prop;
77
+ if (!((l = Number.isNaN(e == null ? void 0 : e[r]) ? "" : (o = e == null ? void 0 : e[r]) == null ? void 0 : o.toString()) != null && l.includes(":")) && !((M = t == null ? void 0 : t.toString()) != null && M.includes(":"))) {
78
+ let i = +((e == null ? void 0 : e[r]) ?? 0);
79
+ t = t === 0 ? t + i : t - i;
80
80
  } else
81
81
  t = t === 0 ? S(t.toString()) + S(((e == null ? void 0 : e[r]) ?? 0).toString()) : S(t.toString()) - S(((e == null ? void 0 : e[r]) ?? 0).toString()), t = Z(t);
82
82
  }
@@ -99,7 +99,7 @@ const Q = "$R", s1 = (c) => {
99
99
  }, p1 = (c) => {
100
100
  let e = c == null ? void 0 : c.contents, h = c == null ? void 0 : c.valueString, x = c == null ? void 0 : c.prop, a = c == null ? void 0 : c.headers, m = c == null ? void 0 : c.typeString, b = c == null ? void 0 : c.allContents, t = 0;
101
101
  if (Array.isArray(e) && (e == null ? void 0 : e.length) !== 1 && (e = c3(e, o3(a))), h == null || h.forEach((f) => {
102
- var v, u, p, n, o, i, M;
102
+ var v, u, p, n, o, l, M;
103
103
  if (e != null && e[f]) {
104
104
  if (m === "Row")
105
105
  if (!((u = (v = e == null ? void 0 : e[f]) == null ? void 0 : v.toString()) != null && u.includes(":")) && !((p = t == null ? void 0 : t.toString()) != null && p.includes(":"))) {
@@ -108,12 +108,12 @@ const Q = "$R", s1 = (c) => {
108
108
  } else
109
109
  t = t === 0 ? S(t.toString()) + S(e == null ? void 0 : e[f].toString()) : S(t.toString()) * S(e == null ? void 0 : e[f].toString()), t = Z(t);
110
110
  } else if (m === "Row") {
111
- let r = (n = a == null ? void 0 : a.find((l) => (l == null ? void 0 : l.label) === f)) == null ? void 0 : n.prop;
111
+ let r = (n = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.label) === f)) == null ? void 0 : n.prop;
112
112
  if (!(e != null && e[r]))
113
113
  t = void 0;
114
- else if (!((i = Number.isNaN(e == null ? void 0 : e[r]) ? "" : (o = e == null ? void 0 : e[r]) == null ? void 0 : o.toString()) != null && i.includes(":")) && !((M = t == null ? void 0 : t.toString()) != null && M.includes(":"))) {
115
- let l = +((e == null ? void 0 : e[r]) ?? 0);
116
- t = t === 0 ? t + l : t * l;
114
+ else if (!((l = Number.isNaN(e == null ? void 0 : e[r]) ? "" : (o = e == null ? void 0 : e[r]) == null ? void 0 : o.toString()) != null && l.includes(":")) && !((M = t == null ? void 0 : t.toString()) != null && M.includes(":"))) {
115
+ let i = +((e == null ? void 0 : e[r]) ?? 0);
116
+ t = t === 0 ? t + i : t * i;
117
117
  } else
118
118
  t = t === 0 ? S(t.toString()) + S(((e == null ? void 0 : e[r]) ?? 0).toString()) : S(t.toString()) * S(((e == null ? void 0 : e[r]) ?? 0).toString()), t = Z(t);
119
119
  }
@@ -136,7 +136,7 @@ const Q = "$R", s1 = (c) => {
136
136
  }, d1 = (c) => {
137
137
  let e = c == null ? void 0 : c.contents, h = c == null ? void 0 : c.valueString, x = c == null ? void 0 : c.prop, a = c == null ? void 0 : c.headers, m = c == null ? void 0 : c.typeString, b = c == null ? void 0 : c.allContents, t = 0;
138
138
  if (Array.isArray(e) && (e == null ? void 0 : e.length) !== 1 && (e = c3(e, o3(a))), h == null || h.forEach((f) => {
139
- var v, u, p, n, o, i, M;
139
+ var v, u, p, n, o, l, M;
140
140
  if (e != null && e[f]) {
141
141
  if (m === "Row")
142
142
  if (!((u = (v = e == null ? void 0 : e[f]) == null ? void 0 : v.toString()) != null && u.includes(":")) && !((p = t == null ? void 0 : t.toString()) != null && p.includes(":"))) {
@@ -145,10 +145,10 @@ const Q = "$R", s1 = (c) => {
145
145
  } else
146
146
  t = t === 0 ? S(t.toString()) + S(e == null ? void 0 : e[f].toString()) : S(t.toString()) / S(e == null ? void 0 : e[f].toString()), t = Z(t);
147
147
  } else if (m === "Row") {
148
- let r = (n = a == null ? void 0 : a.find((l) => (l == null ? void 0 : l.label) === f)) == null ? void 0 : n.prop;
149
- if (!((i = Number.isNaN(e == null ? void 0 : e[r]) ? "" : (o = e == null ? void 0 : e[r]) == null ? void 0 : o.toString()) != null && i.includes(":")) && !((M = t == null ? void 0 : t.toString()) != null && M.includes(":"))) {
150
- let l = +((e == null ? void 0 : e[r]) ?? 0);
151
- t = t === 0 ? t + l : t / l;
148
+ let r = (n = a == null ? void 0 : a.find((i) => (i == null ? void 0 : i.label) === f)) == null ? void 0 : n.prop;
149
+ if (!((l = Number.isNaN(e == null ? void 0 : e[r]) ? "" : (o = e == null ? void 0 : e[r]) == null ? void 0 : o.toString()) != null && l.includes(":")) && !((M = t == null ? void 0 : t.toString()) != null && M.includes(":"))) {
150
+ let i = +((e == null ? void 0 : e[r]) ?? 0);
151
+ t = t === 0 ? t + i : t / i;
152
152
  } else
153
153
  t = t === 0 ? S(t.toString()) + S(((e == null ? void 0 : e[r]) ?? 0).toString()) : S(t.toString()) / S(((e == null ? void 0 : e[r]) ?? 0).toString()), t = Z(t);
154
154
  }
@@ -175,16 +175,16 @@ const Q = "$R", s1 = (c) => {
175
175
  Divide: d1,
176
176
  Compare: s1
177
177
  }, m1 = async (c, e, h, x = "Auto", a) => {
178
- var b, t, f, v, u, p, n, o, i, M, r, l, s, d, z, g, w, B, H, A, j, D, I, K, e3, r3;
178
+ var b, t, f, v, u, p, n, o, l, M, r, i, s, d, z, g, w, B, H, A, j, D, I, K, e3, r3;
179
179
  let m = c;
180
180
  for (let P in e) {
181
181
  let G = (u = (v = (f = (t = (b = e == null ? void 0 : e[P]) == null ? void 0 : b.methods) == null ? void 0 : t.replace("(", Q)) == null ? void 0 : f.split(Q)) == null ? void 0 : v[0]) == null ? void 0 : u.replaceAll("$", "");
182
182
  const a3 = y3 == null ? void 0 : y3[G];
183
- let N = (l = (r = (M = (i = (o = (n = (p = e == null ? void 0 : e[P]) == null ? void 0 : p.methods) == null ? void 0 : n.replace("(", Q)) == null ? void 0 : o.split(Q)) == null ? void 0 : i[1]) == null ? void 0 : M.replace("(", Q)) == null ? void 0 : r.split(Q)) == null ? void 0 : l[0];
183
+ let N = (i = (r = (M = (l = (o = (n = (p = e == null ? void 0 : e[P]) == null ? void 0 : p.methods) == null ? void 0 : n.replace("(", Q)) == null ? void 0 : o.split(Q)) == null ? void 0 : l[1]) == null ? void 0 : M.replace("(", Q)) == null ? void 0 : r.split(Q)) == null ? void 0 : i[0];
184
184
  N = (z = (d = (s = N == null ? void 0 : N.slice(0, (N == null ? void 0 : N.length) - 1)) == null ? void 0 : s.replaceAll("[", "")) == null ? void 0 : d.replaceAll("]", "")) == null ? void 0 : z.split(",");
185
185
  let T = (j = (w = (g = e == null ? void 0 : e[P]) == null ? void 0 : g.methods) == null ? void 0 : w.split("(")) == null ? void 0 : j[((A = (H = (B = e == null ? void 0 : e[P]) == null ? void 0 : B.methods) == null ? void 0 : H.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(x)) {
187
- let W = (e3 = (K = (I = T == null ? void 0 : T.find((X) => X == null ? void 0 : X.includes("@Extent"))) == null ? void 0 : I.replace(":", "=")) == null ? void 0 : K.split("=")) == null ? void 0 : e3[1];
187
+ let W = (e3 = (K = (I = T == null ? void 0 : T.find((Y) => Y == null ? void 0 : Y.includes("@Extent"))) == null ? void 0 : I.replace(":", "=")) == null ? void 0 : K.split("=")) == null ? void 0 : e3[1];
188
188
  await new Function("return ")(), m = a3({
189
189
  contents: m,
190
190
  valueString: N,
@@ -251,64 +251,64 @@ class f1 extends C3 {
251
251
  * @return {Points} The parsed point cloud.
252
252
  */
253
253
  parse(e) {
254
- function h(o, i) {
255
- const M = o.length, r = new Uint8Array(i);
256
- let l = 0, s = 0, d, z, g;
254
+ function h(o, l) {
255
+ const M = o.length, r = new Uint8Array(l);
256
+ let i = 0, s = 0, d, z, g;
257
257
  do
258
- if (d = o[l++], d < 32) {
259
- if (d++, s + d > i) throw new Error("Output buffer is not large enough");
260
- if (l + d > M) throw new Error("Invalid compressed data");
258
+ if (d = o[i++], d < 32) {
259
+ if (d++, s + d > l) throw new Error("Output buffer is not large enough");
260
+ if (i + d > M) throw new Error("Invalid compressed data");
261
261
  do
262
- r[s++] = o[l++];
262
+ r[s++] = o[i++];
263
263
  while (--d);
264
264
  } else {
265
- if (z = d >> 5, g = s - ((d & 31) << 8) - 1, l >= M) throw new Error("Invalid compressed data");
266
- if (z === 7 && (z += o[l++], l >= M))
265
+ if (z = d >> 5, g = s - ((d & 31) << 8) - 1, i >= M) throw new Error("Invalid compressed data");
266
+ if (z === 7 && (z += o[i++], i >= M))
267
267
  throw new Error("Invalid compressed data");
268
- if (g -= o[l++], s + z + 2 > i) throw new Error("Output buffer is not large enough");
268
+ if (g -= o[i++], s + z + 2 > l) throw new Error("Output buffer is not large enough");
269
269
  if (g < 0) throw new Error("Invalid compressed data");
270
270
  if (g >= s) throw new Error("Invalid compressed data");
271
271
  do
272
272
  r[s++] = r[g++];
273
273
  while (--z + 2);
274
274
  }
275
- while (l < M);
275
+ while (i < M);
276
276
  return r;
277
277
  }
278
278
  function x(o) {
279
- const i = {}, M = new Uint8Array(o);
280
- let r = "", l = "", s = 0, d = !1;
279
+ const l = {}, M = new Uint8Array(o);
280
+ let r = "", i = "", s = 0, d = !1;
281
281
  const z = M.length;
282
282
  for (; s < z && d === !1; ) {
283
283
  const H = String.fromCharCode(M[s++]);
284
284
  H === `
285
- ` || H === "\r" ? (l.trim().toLowerCase().startsWith("data") && (d = !0), l = "") : l += H, r += H;
285
+ ` || H === "\r" ? (i.trim().toLowerCase().startsWith("data") && (d = !0), i = "") : i += H, r += H;
286
286
  }
287
287
  const g = r.search(/[\r\n]DATA\s(\S*)\s/i), w = /[\r\n]DATA\s(\S*)\s/i.exec(r.slice(g - 1));
288
- if (i.data = w[1], i.headerLen = w[0].length + g, i.str = r.slice(0, i.headerLen), i.str = i.str.replace(/#.*/gi, ""), i.version = /^VERSION (.*)/im.exec(i.str), i.fields = /^FIELDS (.*)/im.exec(i.str), i.size = /^SIZE (.*)/im.exec(i.str), i.type = /^TYPE (.*)/im.exec(i.str), i.count = /^COUNT (.*)/im.exec(i.str), i.width = /^WIDTH (.*)/im.exec(i.str), i.height = /^HEIGHT (.*)/im.exec(i.str), i.viewpoint = /^VIEWPOINT (.*)/im.exec(i.str), i.points = /^POINTS (.*)/im.exec(i.str), i.version !== null && (i.version = parseFloat(i.version[1])), i.fields = i.fields !== null ? i.fields[1].split(" ") : [], i.type !== null && (i.type = i.type[1].split(" ")), i.width !== null && (i.width = parseInt(i.width[1])), i.height !== null && (i.height = parseInt(i.height[1])), i.viewpoint !== null && (i.viewpoint = i.viewpoint[1]), i.points !== null && (i.points = parseInt(i.points[1], 10)), i.points === null && (i.points = i.width * i.height), i.size !== null && (i.size = i.size[1].split(" ").map(function(H) {
288
+ if (l.data = w[1], l.headerLen = w[0].length + g, l.str = r.slice(0, l.headerLen), l.str = l.str.replace(/#.*/gi, ""), l.version = /^VERSION (.*)/im.exec(l.str), l.fields = /^FIELDS (.*)/im.exec(l.str), l.size = /^SIZE (.*)/im.exec(l.str), l.type = /^TYPE (.*)/im.exec(l.str), l.count = /^COUNT (.*)/im.exec(l.str), l.width = /^WIDTH (.*)/im.exec(l.str), l.height = /^HEIGHT (.*)/im.exec(l.str), l.viewpoint = /^VIEWPOINT (.*)/im.exec(l.str), l.points = /^POINTS (.*)/im.exec(l.str), l.version !== null && (l.version = parseFloat(l.version[1])), l.fields = l.fields !== null ? l.fields[1].split(" ") : [], l.type !== null && (l.type = l.type[1].split(" ")), l.width !== null && (l.width = parseInt(l.width[1])), l.height !== null && (l.height = parseInt(l.height[1])), l.viewpoint !== null && (l.viewpoint = l.viewpoint[1]), l.points !== null && (l.points = parseInt(l.points[1], 10)), l.points === null && (l.points = l.width * l.height), l.size !== null && (l.size = l.size[1].split(" ").map(function(H) {
289
289
  return parseInt(H, 10);
290
- })), i.count !== null)
291
- i.count = i.count[1].split(" ").map(function(H) {
290
+ })), l.count !== null)
291
+ l.count = l.count[1].split(" ").map(function(H) {
292
292
  return parseInt(H, 10);
293
293
  });
294
294
  else {
295
- i.count = [];
296
- for (let H = 0, A = i.fields.length; H < A; H++)
297
- i.count.push(1);
295
+ l.count = [];
296
+ for (let H = 0, A = l.fields.length; H < A; H++)
297
+ l.count.push(1);
298
298
  }
299
- i.offset = {};
299
+ l.offset = {};
300
300
  let B = 0;
301
- for (let H = 0, A = i.fields.length; H < A; H++)
302
- i.data === "ascii" ? i.offset[i.fields[H]] = H : (i.offset[i.fields[H]] = B, B += i.size[H] * i.count[H]);
303
- return i.rowSize = B, i;
301
+ for (let H = 0, A = l.fields.length; H < A; H++)
302
+ l.data === "ascii" ? l.offset[l.fields[H]] = H : (l.offset[l.fields[H]] = B, B += l.size[H] * l.count[H]);
303
+ return l.rowSize = B, l;
304
304
  }
305
305
  const a = x(e), m = [], b = [], t = [], f = [], v = [], u = new $3();
306
306
  if (a.data === "ascii") {
307
307
  const o = a.offset, r = new TextDecoder().decode(e).slice(a.headerLen).split(`
308
308
  `);
309
- for (let l = 0, s = r.length; l < s; l++) {
310
- if (r[l] === "") continue;
311
- const d = r[l].split(" ");
309
+ for (let i = 0, s = r.length; i < s; i++) {
310
+ if (r[i] === "") continue;
311
+ const d = r[i].split(" ");
312
312
  if (o.x !== void 0 && (m.push(parseFloat(d[o.x])), m.push(parseFloat(d[o.y])), m.push(parseFloat(d[o.z]))), o.rgb !== void 0) {
313
313
  const z = a.fields.findIndex((D) => D === "rgb"), g = a.type[z], w = parseFloat(d[o.rgb]);
314
314
  let B = w;
@@ -323,50 +323,50 @@ class f1 extends C3 {
323
323
  }
324
324
  }
325
325
  if (a.data === "binary_compressed") {
326
- const o = new Uint32Array(e.slice(a.headerLen, a.headerLen + 8)), i = o[0], M = o[1], r = h(new Uint8Array(e, a.headerLen + 8, i), M), l = new DataView(r.buffer), s = a.offset;
326
+ const o = new Uint32Array(e.slice(a.headerLen, a.headerLen + 8)), l = o[0], M = o[1], r = h(new Uint8Array(e, a.headerLen + 8, l), M), i = new DataView(r.buffer), s = a.offset;
327
327
  for (let d = 0; d < a.points; d++) {
328
328
  if (s.x !== void 0) {
329
329
  const z = a.fields.indexOf("x"), g = a.fields.indexOf("y"), w = a.fields.indexOf("z");
330
- m.push(this._getDataView(l, a.points * s.x + a.size[z] * d, a.type[z], a.size[z])), m.push(this._getDataView(l, a.points * s.y + a.size[g] * d, a.type[g], a.size[g])), m.push(this._getDataView(l, a.points * s.z + a.size[w] * d, a.type[w], a.size[w]));
330
+ m.push(this._getDataView(i, a.points * s.x + a.size[z] * d, a.type[z], a.size[z])), m.push(this._getDataView(i, a.points * s.y + a.size[g] * d, a.type[g], a.size[g])), m.push(this._getDataView(i, a.points * s.z + a.size[w] * d, a.type[w], a.size[w]));
331
331
  }
332
332
  if (s.rgb !== void 0) {
333
- const z = a.fields.indexOf("rgb"), g = l.getUint8(a.points * s.rgb + a.size[z] * d + 2) / 255, w = l.getUint8(a.points * s.rgb + a.size[z] * d + 1) / 255, B = l.getUint8(a.points * s.rgb + a.size[z] * d + 0) / 255;
333
+ const z = a.fields.indexOf("rgb"), g = i.getUint8(a.points * s.rgb + a.size[z] * d + 2) / 255, w = i.getUint8(a.points * s.rgb + a.size[z] * d + 1) / 255, B = i.getUint8(a.points * s.rgb + a.size[z] * d + 0) / 255;
334
334
  u.setRGB(g, w, B, v3), t.push(u.r, u.g, u.b);
335
335
  }
336
336
  if (s.normal_x !== void 0) {
337
337
  const z = a.fields.indexOf("normal_x"), g = a.fields.indexOf("normal_y"), w = a.fields.indexOf("normal_z");
338
- b.push(this._getDataView(l, a.points * s.normal_x + a.size[z] * d, a.type[z], a.size[z])), b.push(this._getDataView(l, a.points * s.normal_y + a.size[g] * d, a.type[g], a.size[g])), b.push(this._getDataView(l, a.points * s.normal_z + a.size[w] * d, a.type[w], a.size[w]));
338
+ b.push(this._getDataView(i, a.points * s.normal_x + a.size[z] * d, a.type[z], a.size[z])), b.push(this._getDataView(i, a.points * s.normal_y + a.size[g] * d, a.type[g], a.size[g])), b.push(this._getDataView(i, a.points * s.normal_z + a.size[w] * d, a.type[w], a.size[w]));
339
339
  }
340
340
  if (s.intensity !== void 0) {
341
341
  const z = a.fields.indexOf("intensity");
342
- f.push(this._getDataView(l, a.points * s.intensity + a.size[z] * d, a.type[z], a.size[z]));
342
+ f.push(this._getDataView(i, a.points * s.intensity + a.size[z] * d, a.type[z], a.size[z]));
343
343
  }
344
344
  if (s.label !== void 0) {
345
345
  const z = a.fields.indexOf("label");
346
- v.push(l.getInt32(a.points * s.label + a.size[z] * d, this.littleEndian));
346
+ v.push(i.getInt32(a.points * s.label + a.size[z] * d, this.littleEndian));
347
347
  }
348
348
  }
349
349
  }
350
350
  if (a.data === "binary") {
351
- const o = new DataView(e, a.headerLen), i = a.offset;
351
+ const o = new DataView(e, a.headerLen), l = a.offset;
352
352
  for (let M = 0, r = 0; M < a.points; M++, r += a.rowSize) {
353
- if (i.x !== void 0) {
354
- const l = a.fields.indexOf("x"), s = a.fields.indexOf("y"), d = a.fields.indexOf("z");
355
- m.push(this._getDataView(o, r + i.x, a.type[l], a.size[l])), m.push(this._getDataView(o, r + i.y, a.type[s], a.size[s])), m.push(this._getDataView(o, r + i.z, a.type[d], a.size[d]));
353
+ if (l.x !== void 0) {
354
+ const i = a.fields.indexOf("x"), s = a.fields.indexOf("y"), d = a.fields.indexOf("z");
355
+ m.push(this._getDataView(o, r + l.x, a.type[i], a.size[i])), m.push(this._getDataView(o, r + l.y, a.type[s], a.size[s])), m.push(this._getDataView(o, r + l.z, a.type[d], a.size[d]));
356
356
  }
357
- if (i.rgb !== void 0) {
358
- const l = o.getUint8(r + i.rgb + 2) / 255, s = o.getUint8(r + i.rgb + 1) / 255, d = o.getUint8(r + i.rgb + 0) / 255;
359
- u.setRGB(l, s, d, v3), t.push(u.r, u.g, u.b);
357
+ if (l.rgb !== void 0) {
358
+ const i = o.getUint8(r + l.rgb + 2) / 255, s = o.getUint8(r + l.rgb + 1) / 255, d = o.getUint8(r + l.rgb + 0) / 255;
359
+ u.setRGB(i, s, d, v3), t.push(u.r, u.g, u.b);
360
360
  }
361
- if (i.normal_x !== void 0) {
362
- const l = a.fields.indexOf("normal_x"), s = a.fields.indexOf("normal_y"), d = a.fields.indexOf("normal_z");
363
- b.push(this._getDataView(o, r + i.normal_x, a.type[l], a.size[l])), b.push(this._getDataView(o, r + i.normal_y, a.type[s], a.size[s])), b.push(this._getDataView(o, r + i.normal_z, a.type[d], a.size[d]));
361
+ if (l.normal_x !== void 0) {
362
+ const i = a.fields.indexOf("normal_x"), s = a.fields.indexOf("normal_y"), d = a.fields.indexOf("normal_z");
363
+ b.push(this._getDataView(o, r + l.normal_x, a.type[i], a.size[i])), b.push(this._getDataView(o, r + l.normal_y, a.type[s], a.size[s])), b.push(this._getDataView(o, r + l.normal_z, a.type[d], a.size[d]));
364
364
  }
365
- if (i.intensity !== void 0) {
366
- const l = a.fields.indexOf("intensity");
367
- f.push(this._getDataView(o, r + i.intensity, a.type[l], a.size[l]));
365
+ if (l.intensity !== void 0) {
366
+ const i = a.fields.indexOf("intensity");
367
+ f.push(this._getDataView(o, r + l.intensity, a.type[i], a.size[i]));
368
368
  }
369
- i.label !== void 0 && v.push(o.getInt32(r + i.label, this.littleEndian));
369
+ l.label !== void 0 && v.push(o.getInt32(r + l.label, this.littleEndian));
370
370
  }
371
371
  }
372
372
  const p = new F3();
@@ -379,55 +379,55 @@ const v1 = c1(g3), { systemPath: B3 } = M3(v1), h3 = t1(), S3 = /* @__PURE__ */
379
379
  function B1(c, e, h, x, a) {
380
380
  const m = async (n) => {
381
381
  try {
382
- const o = await Y3({ url: n });
382
+ const o = await X3({ url: n });
383
383
  if (o.status !== 200)
384
384
  throw new Error(`下载失败: ${o.status}`);
385
385
  return o.data;
386
386
  } catch (o) {
387
387
  throw console.error("addModelFromUrl失败:", o), o;
388
388
  }
389
- }, b = (n) => new Promise((o, i) => {
389
+ }, b = (n) => new Promise((o, l) => {
390
390
  const M = new FileReader();
391
391
  M.onload = (r) => {
392
392
  try {
393
- const l = r.target.result, d = new f3().parse(l);
393
+ const i = r.target.result, d = new f3().parse(i);
394
394
  d.preload(), o(d);
395
- } catch (l) {
396
- i(l);
395
+ } catch (i) {
396
+ l(i);
397
397
  }
398
398
  }, M.onerror = () => {
399
- i(new Error("MTL文件读取失败"));
399
+ l(new Error("MTL文件读取失败"));
400
400
  }, M.readAsText(n);
401
401
  }), t = async (n) => {
402
402
  const o = {
403
403
  materials: {},
404
- create: function(i) {
405
- return this.materials[i] ? this.materials[i] : (console.warn(`Material '${i}' not found, using default material`), new J({
404
+ create: function(l) {
405
+ return this.materials[l] ? this.materials[l] : (console.warn(`Material '${l}' not found, using default material`), new J({
406
406
  color: 8947848,
407
- side: i3
407
+ side: l3
408
408
  }));
409
409
  },
410
410
  getAsArray: function() {
411
- const i = [];
411
+ const l = [];
412
412
  for (const M in this.materials)
413
- i.push(this.materials[M]);
414
- return i;
413
+ l.push(this.materials[M]);
414
+ return l;
415
415
  },
416
416
  preload: function() {
417
- for (const i in this.materials)
418
- this.materials[i].map && (this.materials[i].map.needsUpdate = !0);
417
+ for (const l in this.materials)
418
+ this.materials[l].map && (this.materials[l].map.needsUpdate = !0);
419
419
  }
420
420
  };
421
- for (const i of n) {
422
- const M = await b(i);
421
+ for (const l of n) {
422
+ const M = await b(l);
423
423
  Object.assign(o.materials, M.materials);
424
424
  }
425
425
  return o.preload(), o;
426
- }, f = async (n, o = []) => new Promise((i, M) => {
426
+ }, f = async (n, o = []) => new Promise((l, M) => {
427
427
  const r = new FileReader();
428
- r.onload = async (l) => {
428
+ r.onload = async (i) => {
429
429
  try {
430
- const s = l.target.result;
430
+ const s = i.target.result;
431
431
  let d = null;
432
432
  o && o.length > 0 && (o.length === 1 ? d = await b(o[0]) : d = await t(o));
433
433
  const z = new m3();
@@ -436,9 +436,9 @@ function B1(c, e, h, x, a) {
436
436
  d || g.traverse((w) => {
437
437
  w.isMesh && (w.material = new J({
438
438
  color: 8947848,
439
- side: i3
439
+ side: l3
440
440
  }));
441
- }), i(g);
441
+ }), l(g);
442
442
  } catch (s) {
443
443
  M(s);
444
444
  }
@@ -449,79 +449,79 @@ function B1(c, e, h, x, a) {
449
449
  var o;
450
450
  try {
451
451
  h.value = !0;
452
- const { scene: i } = c();
453
- if (!i)
452
+ const { scene: l } = c();
453
+ if (!l)
454
454
  throw new Error("Scene not initialized");
455
455
  a();
456
456
  const M = [];
457
457
  for (let r = 0; r < n.length; r++) {
458
- const l = n[r];
458
+ const i = n[r];
459
459
  x.value = `正在加载模型 ${r + 1}/${n.length}...`;
460
- const s = await m(l.objUrl), d = ((o = l.objUrl) == null ? void 0 : o.split("/").pop()) || `model_${r}.obj`, z = new File([s], d, { type: s.type });
460
+ const s = await m(i.objUrl), d = ((o = i.objUrl) == null ? void 0 : o.split("/").pop()) || `model_${r}.obj`, z = new File([s], d, { type: s.type });
461
461
  let g = [];
462
- if (l.mtlUrls) {
463
- const B = Array.isArray(l.mtlUrls) ? l.mtlUrls : [l.mtlUrls];
462
+ if (i.mtlUrls) {
463
+ const B = Array.isArray(i.mtlUrls) ? i.mtlUrls : [i.mtlUrls];
464
464
  for (let H = 0; H < B.length; H++) {
465
465
  const A = B[H], j = await m(A), D = (A == null ? void 0 : A.split("/").pop()) || `material_${r}_${H}.mtl`, I = new File([j], D, { type: j.type });
466
466
  g.push(I);
467
467
  }
468
468
  }
469
469
  const w = await f(z, g);
470
- i.add(w), e.value.push(w), M.push(w);
470
+ l.add(w), e.value.push(w), M.push(w);
471
471
  }
472
472
  return h.value = !1, M;
473
- } catch (i) {
474
- throw console.error("加载模型失败:", i), h.value = !1, i;
473
+ } catch (l) {
474
+ throw console.error("加载模型失败:", l), h.value = !1, l;
475
475
  }
476
- }, u = async (n, o, i = [], M = []) => {
476
+ }, u = async (n, o, l = [], M = []) => {
477
477
  let r;
478
- const l = n.toLowerCase();
479
- switch (l) {
478
+ const i = n.toLowerCase();
479
+ switch (i) {
480
480
  case ".txt":
481
481
  case ".cpt":
482
482
  case ".obj":
483
483
  const s = await o.text();
484
- if (l === ".txt" || l === ".cpt") {
484
+ if (i === ".txt" || i === ".cpt") {
485
485
  const y = /^(?!.*\bf\b)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?(-?\d*\.?\d+)[^\n]*?$/gm, V = [...s.matchAll(y)].map((_) => ({
486
486
  x: parseFloat(_[1]),
487
487
  y: parseFloat(_[2]),
488
488
  z: parseFloat(_[3])
489
489
  })), q = new F3(), C = V.flatMap((_) => [_.x, _.y, _.z]);
490
- if (q.setAttribute("position", new t3(C, 3)), l === ".txt") {
490
+ if (q.setAttribute("position", new t3(C, 3)), i === ".txt") {
491
491
  const _ = new D3({
492
492
  color: "#5B5C99",
493
493
  size: 1,
494
494
  sizeAttenuation: !1
495
495
  });
496
496
  r = new T3(q, _);
497
- } else if (l === ".cpt") {
497
+ } else if (i === ".cpt") {
498
498
  const _ = new Z3({
499
499
  color: "#5B5C99",
500
500
  linewidth: 100
501
501
  });
502
502
  r = new K3(q, _);
503
503
  }
504
- } else if (l === ".obj") {
504
+ } else if (i === ".obj") {
505
505
  const y = new m3();
506
- if (i && i.length > 0) {
506
+ if (l && l.length > 0) {
507
507
  const L = new f3();
508
- for (const V of i) {
508
+ for (const V of l) {
509
509
  const q = await V.text(), C = L.parse(q);
510
510
  C.preload(), y.setMaterials(C);
511
511
  break;
512
512
  }
513
513
  }
514
- r = y.parse(s), (!i || i.length === 0) && r.traverse((L) => {
515
- L.isMesh && (L.material = new J({ color: "#B3B3D4" })), L instanceof Y && (L.material.side = i3);
514
+ r = y.parse(s), (!l || l.length === 0) && r.traverse((L) => {
515
+ L.isMesh && (L.material = new J({ color: "#B3B3D4" })), L instanceof X && (L.material.side = l3);
516
516
  });
517
517
  }
518
518
  break;
519
519
  case ".stl":
520
520
  const d = await o.arrayBuffer(), g = new d3().parse(d), w = new J({
521
521
  color: "#B3B3D4",
522
- side: i3
522
+ side: l3
523
523
  });
524
- r = new Y(g, w);
524
+ r = new X(g, w);
525
525
  break;
526
526
  case ".nc":
527
527
  const B = [
@@ -544,9 +544,9 @@ function B1(c, e, h, x, a) {
544
544
  (C) => {
545
545
  const _ = new J({
546
546
  color: H[y] || "#B3B3D4",
547
- side: i3
548
- }), O = new Y(C, _);
549
- L(O);
547
+ side: l3
548
+ }), U = new X(C, _);
549
+ L(U);
550
550
  },
551
551
  void 0,
552
552
  V
@@ -578,28 +578,28 @@ function B1(c, e, h, x, a) {
578
578
  }
579
579
  }), q = new Blob([V.data], {
580
580
  type: "application/octet-stream;charset=UTF-8"
581
- }), C = await new Promise((O, $) => {
581
+ }), C = await new Promise((U, $) => {
582
582
  const E = URL.createObjectURL(L);
583
583
  D.load(
584
584
  E,
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++)
585
+ (O) => {
586
+ const R = new Float32Array(O.geometry.attributes.position.count * 3);
587
+ for (let F = 0; F < O.geometry.attributes.position.count; F++)
588
588
  R[F * 3] = 1, R[F * 3 + 1] = 0, R[F * 3 + 2] = 0;
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);
589
+ O.geometry.setAttribute("color", new H3(R, 3)), O.material.vertexColors = !0, O.scale.set(0.3, 0.3, 0.3), URL.revokeObjectURL(E), U(O);
590
590
  },
591
591
  void 0,
592
592
  $
593
593
  );
594
- }), _ = await new Promise((O, $) => {
594
+ }), _ = await new Promise((U, $) => {
595
595
  const E = URL.createObjectURL(q);
596
596
  D.load(
597
597
  E,
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++)
598
+ (O) => {
599
+ const R = new Float32Array(O.geometry.attributes.position.count * 3);
600
+ for (let F = 0; F < O.geometry.attributes.position.count; F++)
601
601
  R[F * 3] = 0, R[F * 3 + 1] = 1, R[F * 3 + 2] = 0;
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);
602
+ O.geometry.setAttribute("color", new H3(R, 3)), O.material.vertexColors = !0, O.scale.set(0.3, 0.3, 0.3), URL.revokeObjectURL(E), U(O);
603
603
  },
604
604
  void 0,
605
605
  $
@@ -654,7 +654,7 @@ function B1(c, e, h, x, a) {
654
654
  side: J3
655
655
  });
656
656
  return a3.set(y, L), L;
657
- }, X = (y) => {
657
+ }, Y = (y) => {
658
658
  try {
659
659
  y.isBufferGeometry && y.mergeVertices && y.mergeVertices(), y.computeVertexNormals && y.computeVertexNormals(), y.computeBoundingSphere && y.computeBoundingSphere(), y.deleteAttribute && y.deleteAttribute("uv2");
660
660
  } catch (L) {
@@ -665,41 +665,41 @@ function B1(c, e, h, x, a) {
665
665
  const q = `stl_${L}`;
666
666
  if (N.has(q)) {
667
667
  const $ = N.get(q);
668
- return new Y($, W());
668
+ return new X($, W());
669
669
  }
670
670
  const C = await y.arrayBuffer();
671
- let O = new d3(V).parse(C);
672
- return O = X(O), N.set(q, O), new Y(O, W());
671
+ let U = new d3(V).parse(C);
672
+ return U = Y(U), N.set(q, U), new X(U, W());
673
673
  }, R3 = async (y, L, V) => {
674
674
  const q = `obj_${L}`;
675
675
  if (G.has(q))
676
676
  return G.get(q).clone();
677
- const C = await y.text(), _ = new m3(V), O = L.replace(".obj", ".mtl");
677
+ const C = await y.text(), _ = new m3(V), U = L.replace(".obj", ".mtl");
678
678
  try {
679
- const U = await (await T(O)).text(), F = new f3(V).parse(U);
679
+ const O = await (await T(U)).text(), F = new f3(V).parse(O);
680
680
  F.preload(), _.setMaterials(F);
681
681
  } catch {
682
- console.warn(`MTL文件加载失败,使用默认材质: ${O}`);
682
+ console.warn(`MTL文件加载失败,使用默认材质: ${U}`);
683
683
  }
684
684
  const $ = _.parse(C);
685
685
  return $.traverse((E) => {
686
- E.isMesh && (E.geometry = X(E.geometry), E.castShadow = !0, E.receiveShadow = !0, E.renderOrder = 1);
686
+ E.isMesh && (E.geometry = Y(E.geometry), E.castShadow = !0, E.receiveShadow = !0, E.renderOrder = 1);
687
687
  }), G.set(q, $), $;
688
688
  }, I3 = (y, L) => {
689
- const V = new X3();
689
+ const V = new Y3();
690
690
  if (V.addLevel(y, 0), y.geometry) {
691
- const q = y.geometry.clone(), C = new Y(q, y.material);
691
+ const q = y.geometry.clone(), C = new X(q, y.material);
692
692
  V.addLevel(C, 50);
693
693
  }
694
694
  return V;
695
695
  };
696
- let l3 = 0, s3 = 0;
696
+ let i3 = 0, s3 = 0;
697
697
  const p3 = [];
698
698
  e3.loadMeshCb = async (y, L, V, q, C) => {
699
- const _ = y.split("/").pop(), O = V || (() => {
699
+ const _ = y.split("/").pop(), U = V || (() => {
700
700
  });
701
- l3++;
702
- const $ = new Promise(async (E, U) => {
701
+ i3++;
702
+ const $ = new Promise(async (E, O) => {
703
703
  try {
704
704
  const R = await T(_);
705
705
  if (!R || R.size === 0)
@@ -716,17 +716,17 @@ function B1(c, e, h, x, a) {
716
716
  default:
717
717
  throw new Error(`不支持的文件格式: ${F}`);
718
718
  }
719
- P.enableLOD && k.isMesh && (k = I3(k, _)), O(k), s3++, q && q({
719
+ P.enableLOD && k.isMesh && (k = I3(k, _)), U(k), s3++, q && q({
720
720
  loaded: s3,
721
- total: l3,
722
- progress: s3 / l3
721
+ total: i3,
722
+ progress: s3 / i3
723
723
  }), E(k);
724
724
  } catch (R) {
725
725
  console.error(`mesh文件加载失败: ${_}`, R);
726
726
  const F = new z3();
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);
727
+ U(F), E(F);
728
+ const k = new P3(0.1, 0.1, 0.1), U3 = new G3({ color: 16711680, wireframe: !0 });
729
+ return new X(k, U3);
730
730
  }
731
731
  });
732
732
  p3.push($);
@@ -736,9 +736,9 @@ function B1(c, e, h, x, a) {
736
736
  h3.value = void 0;
737
737
  break;
738
738
  }
739
- if (r = await e3.loadAsync(K), console.log(`URDF文件加载完成,等待${l3}个mesh文件加载...`), p3.length > 0)
739
+ if (r = await e3.loadAsync(K), console.log(`URDF文件加载完成,等待${i3}个mesh文件加载...`), p3.length > 0)
740
740
  try {
741
- await Promise.allSettled(p3), console.log(`所有mesh文件处理完成,成功加载: ${s3}/${l3}`);
741
+ await Promise.allSettled(p3), console.log(`所有mesh文件处理完成,成功加载: ${s3}/${i3}`);
742
742
  } catch (V) {
743
743
  console.warn("部分mesh文件加载失败,但继续显示模型", V);
744
744
  }
@@ -775,17 +775,17 @@ function B1(c, e, h, x, a) {
775
775
  if (!o)
776
776
  throw new Error("Scene not initialized");
777
777
  a(), await new Promise((M) => setTimeout(M, 100));
778
- const i = [];
778
+ const l = [];
779
779
  for (let M = 0; M < n.length; M++) {
780
- const r = n[M], l = await u(
780
+ const r = n[M], i = await u(
781
781
  r.suffix,
782
782
  r.blob,
783
783
  r.mtlBlobs || [],
784
784
  r.meshFiles || []
785
785
  );
786
- l && (o.add(l), e.value.push(l), i.push(l));
786
+ i && (o.add(i), e.value.push(i), l.push(i));
787
787
  }
788
- return h.value = !1, x.value = "", i;
788
+ return h.value = !1, x.value = "", l;
789
789
  } catch (o) {
790
790
  throw console.error("加载模型失败:", o), h.value = !1, x.value = "", o;
791
791
  }
@@ -920,31 +920,31 @@ function u1(c) {
920
920
  }
921
921
  u1();
922
922
  const y1 = o1(g3), { activeMenuPath: _3 } = M3(y1), b1 = Q3(g3), { chooseTitle: q3 } = M3(b1), S1 = async (c, e, h, x) => {
923
- var o, i, M, r;
923
+ var o, l, M, r;
924
924
  let a = c;
925
925
  Array.isArray(a) || (a = [a]);
926
- let m = (o = e == null ? void 0 : e.filter((l) => {
926
+ let m = (o = e == null ? void 0 : e.filter((i) => {
927
927
  var s;
928
- return (l == null ? void 0 : l.methodContent) && ((s = l == null ? void 0 : l.methodContent) == null ? void 0 : s.includes("Manual"));
929
- })) == null ? void 0 : o.map((l) => ({
930
- prop: l == null ? void 0 : l.prop,
931
- label: l == null ? void 0 : l.label,
932
- methods: l == null ? void 0 : l.methodContent
928
+ return (i == null ? void 0 : i.methodContent) && ((s = i == null ? void 0 : i.methodContent) == null ? void 0 : s.includes("Manual"));
929
+ })) == null ? void 0 : o.map((i) => ({
930
+ prop: i == null ? void 0 : i.prop,
931
+ label: i == null ? void 0 : i.label,
932
+ methods: i == null ? void 0 : i.methodContent
933
933
  }));
934
- ((i = m == null ? void 0 : m.filter((l) => {
934
+ ((l = m == null ? void 0 : m.filter((i) => {
935
935
  var s, d, z, g, w, B, H, A, j, D;
936
- return ((D = (j = (A = (H = L3((B = (w = (g = (z = (d = (s = l == null ? void 0 : l.methods) == null ? void 0 : s.replace("(", "$R")) == null ? void 0 : d.split("$R")) == null ? void 0 : z[1]) == null ? void 0 : g.replace("(", "$R")) == null ? void 0 : w.split("$R")) == null ? void 0 : B[1], ",")) == null ? void 0 : H.find((I) => I == null ? void 0 : I.includes("@Button"))) == null ? void 0 : A.split(",")) == null ? void 0 : j[1]) == null ? void 0 : D.replaceAll("]", "")) === h;
937
- })) == null ? void 0 : i.length) > 0 && (m = m == null ? void 0 : m.filter((l) => {
936
+ return ((D = (j = (A = (H = L3((B = (w = (g = (z = (d = (s = i == null ? void 0 : i.methods) == null ? void 0 : s.replace("(", "$R")) == null ? void 0 : d.split("$R")) == null ? void 0 : z[1]) == null ? void 0 : g.replace("(", "$R")) == null ? void 0 : w.split("$R")) == null ? void 0 : B[1], ",")) == null ? void 0 : H.find((I) => I == null ? void 0 : I.includes("@Button"))) == null ? void 0 : A.split(",")) == null ? void 0 : j[1]) == null ? void 0 : D.replaceAll("]", "")) === h;
937
+ })) == null ? void 0 : l.length) > 0 && (m = m == null ? void 0 : m.filter((i) => {
938
938
  var s, d, z, g, w, B, H, A, j, D;
939
- return ((D = (j = (A = (H = L3((B = (w = (g = (z = (d = (s = l == null ? void 0 : l.methods) == null ? void 0 : s.replace("(", "$R")) == null ? void 0 : d.split("$R")) == null ? void 0 : z[1]) == null ? void 0 : g.replace("(", "$R")) == null ? void 0 : w.split("$R")) == null ? void 0 : B[1], ",")) == null ? void 0 : H.find((I) => I == null ? void 0 : I.includes("@Button"))) == null ? void 0 : A.split(",")) == null ? void 0 : j[1]) == null ? void 0 : D.replaceAll("]", "")) === h;
940
- })), a = a == null ? void 0 : a.map(async (l) => (l = await m1(l, m, e, "Manual", a), l)), a = await Promise.all(a);
941
- let b = e == null ? void 0 : e.filter((l) => l == null ? void 0 : l.methodId), t = (M = e == null ? void 0 : e[0]) == null ? void 0 : M.prop, f = a == null ? void 0 : a.map((l) => l == null ? void 0 : l[t]);
939
+ return ((D = (j = (A = (H = L3((B = (w = (g = (z = (d = (s = i == null ? void 0 : i.methods) == null ? void 0 : s.replace("(", "$R")) == null ? void 0 : d.split("$R")) == null ? void 0 : z[1]) == null ? void 0 : g.replace("(", "$R")) == null ? void 0 : w.split("$R")) == null ? void 0 : B[1], ",")) == null ? void 0 : H.find((I) => I == null ? void 0 : I.includes("@Button"))) == null ? void 0 : A.split(",")) == null ? void 0 : j[1]) == null ? void 0 : D.replaceAll("]", "")) === h;
940
+ })), a = a == null ? void 0 : a.map(async (i) => (i = await m1(i, m, e, "Manual", a), i)), a = await Promise.all(a);
941
+ let b = e == null ? void 0 : e.filter((i) => i == null ? void 0 : i.methodId), t = (M = e == null ? void 0 : e[0]) == null ? void 0 : M.prop, f = a == null ? void 0 : a.map((i) => i == null ? void 0 : i[t]);
942
942
  f = [...new Set(f)];
943
- let v = [], u = b == null ? void 0 : b.map(async (l) => {
943
+ let v = [], u = b == null ? void 0 : b.map(async (i) => {
944
944
  var d;
945
945
  let s = await V3({
946
946
  key: {
947
- tableId: l == null ? void 0 : l.methodId
947
+ tableId: i == null ? void 0 : i.methodId
948
948
  }
949
949
  });
950
950
  s = (d = s == null ? void 0 : s.data) == null ? void 0 : d.result, s = s == null ? void 0 : s.map((z) => {
@@ -973,10 +973,10 @@ const y1 = o1(g3), { activeMenuPath: _3 } = M3(y1), b1 = Q3(g3), { chooseTitle:
973
973
  });
974
974
  await Promise.all(u);
975
975
  let p = [];
976
- a == null || a.forEach((l) => {
976
+ a == null || a.forEach((i) => {
977
977
  var s, d, z, g;
978
- if (typeof (l == null ? void 0 : l.id) == "string") {
979
- let w = (d = (s = q3.value) == null ? void 0 : s[0]) != null && d.value ? _3.value + "/" + ((g = (z = q3.value) == null ? void 0 : z[0]) == null ? void 0 : g.value) : _3.value, B = l == null ? void 0 : l.id, H = x, A = b3(l);
978
+ if (typeof (i == null ? void 0 : i.id) == "string") {
979
+ let w = (d = (s = q3.value) == null ? void 0 : s[0]) != null && d.value ? _3.value + "/" + ((g = (z = q3.value) == null ? void 0 : z[0]) == null ? void 0 : g.value) : _3.value, B = i == null ? void 0 : i.id, H = x, A = b3(i);
980
980
  A == null || delete A.id, p.push({
981
981
  key: {
982
982
  type: "data",
@@ -990,9 +990,9 @@ const y1 = o1(g3), { activeMenuPath: _3 } = M3(y1), b1 = Q3(g3), { chooseTitle:
990
990
  }
991
991
  });
992
992
  } else {
993
- let w = b3(l);
993
+ let w = b3(i);
994
994
  w == null || delete w.id, v.push({
995
- id: l == null ? void 0 : l.id,
995
+ id: i == null ? void 0 : i.id,
996
996
  value: {
997
997
  tableData: w
998
998
  }
@@ -1000,20 +1000,20 @@ const y1 = o1(g3), { activeMenuPath: _3 } = M3(y1), b1 = Q3(g3), { chooseTitle:
1000
1000
  }
1001
1001
  });
1002
1002
  const n = /* @__PURE__ */ new Map();
1003
- if (v.forEach((l) => {
1004
- n.has(l.id) || n.set(l.id, l);
1005
- }), v = [...n.values()], (v == null ? void 0 : v.length) > 0 && await l1({
1003
+ if (v.forEach((i) => {
1004
+ n.has(i.id) || n.set(i.id, i);
1005
+ }), v = [...n.values()], (v == null ? void 0 : v.length) > 0 && await i1({
1006
1006
  dataList: v
1007
1007
  }), (p == null ? void 0 : p.length) > 0) {
1008
- await i1({
1008
+ await l1({
1009
1009
  dataList: p
1010
1010
  });
1011
- let l = await V3({
1011
+ let i = await V3({
1012
1012
  key: {
1013
1013
  tableId: x
1014
1014
  }
1015
1015
  });
1016
- l = (r = l == null ? void 0 : l.data) == null ? void 0 : r.result;
1016
+ i = (r = i == null ? void 0 : i.data) == null ? void 0 : r.result;
1017
1017
  }
1018
1018
  return a;
1019
1019
  };