ss-component-new 1.3.49 → 1.3.50

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 (100) hide show
  1. package/dist/{MTLLoader-D-urUdrf.cjs → MTLLoader-CEOtxyh2.cjs} +1 -1
  2. package/dist/{MTLLoader-EdMOXCr9.js → MTLLoader-GkOcupU3.js} +40 -40
  3. package/dist/{OrbitControls-Bqm95jie.js → OrbitControls-BFsEQ8wY.js} +1 -1
  4. package/dist/{OrbitControls-CsZhoVbh.cjs → OrbitControls-Cg-eGwSp.cjs} +1 -1
  5. package/dist/{URDFLoader-Dv2_yu9H.cjs → URDFLoader-VqEU-Bt0.cjs} +1 -1
  6. package/dist/{URDFLoader-Dj_qDDyi.js → URDFLoader-ehXmhBFT.js} +200 -200
  7. package/dist/{animationData-B3clqdCz.js → animationData-5o0D2SPA.js} +18 -18
  8. package/dist/{animationData-j8q9GL9s.cjs → animationData-h3_OEBhG.cjs} +1 -1
  9. package/dist/{array-DBmb_dbA.cjs → array-DN-yv0nl.cjs} +1 -1
  10. package/dist/{array-CuxW2kDp.js → array-_E6SKuKJ.js} +4 -4
  11. package/dist/{iconfont-CNymCHn6.cjs → iconfont-D0Cr9kuj.cjs} +1 -1
  12. package/dist/{iconfont-CvYchHEP.js → iconfont-DCFi7bPb.js} +46 -46
  13. package/dist/{index-CNydDYrN.cjs → index-B-1umMBk.cjs} +1 -1
  14. package/dist/{index-DQQGHkNg.cjs → index-B1U12Kov.cjs} +1 -1
  15. package/dist/{index-CISOplCk.js → index-B2iB_sIJ.js} +7 -8
  16. package/dist/{index-C2uQtrJb.js → index-B6jDYtpC.js} +8 -8
  17. package/dist/{index-BU_tmMwb.js → index-B7QR-Lou.js} +2 -2
  18. package/dist/index-BEQHIheQ.cjs +1 -0
  19. package/dist/{index-BeljvnZD.cjs → index-BFKHCjkd.cjs} +1 -1
  20. package/dist/{index-DAMlyIHp.js → index-BFMsMcD8.js} +4936 -5119
  21. package/dist/{index-C--Cb4yz.cjs → index-BJWrNIga.cjs} +1 -1
  22. package/dist/index-BJac5xKn.cjs +1 -0
  23. package/dist/{index-DOMPCPNk.js → index-BQSHrnLz.js} +3 -3
  24. package/dist/{index-Dqqp33r1.cjs → index-BZST7lPo.cjs} +11 -11
  25. package/dist/{index-COudEqtW.js → index-B_4AbtRg.js} +7 -7
  26. package/dist/{index-DVccu9rG.js → index-BdgLWDfL.js} +2111 -2353
  27. package/dist/{index-XroQ9gxP.js → index-BfEF_JC6.js} +7 -7
  28. package/dist/{index-CS4i2VJg.js → index-BgDSEEhr.js} +7 -7
  29. package/dist/{index-BRRItZG6.js → index-BnlicLlu.js} +2 -2
  30. package/dist/{index-N47WYmXL.cjs → index-C0KanvaS.cjs} +1 -1
  31. package/dist/{index-DvkpICHb.js → index-C1QaJ_Nu.js} +3 -3
  32. package/dist/{index-BvlEnbTN.js → index-CFn5-3eu.js} +2 -2
  33. package/dist/index-CGchY9n4.cjs +1 -0
  34. package/dist/{index-DQdNqcDC.js → index-CJIRsR3f.js} +2 -2
  35. package/dist/{index-CwhxnRyA.js → index-CX12hzsx.js} +1545 -1510
  36. package/dist/{index-D7dH9fVy.js → index-ClKAqw9M.js} +8 -8
  37. package/dist/{index-Dnry90NJ.js → index-CnKvPKWE.js} +3 -3
  38. package/dist/{index-CW3QZYd0.cjs → index-Cw_ZOIg_.cjs} +1 -1
  39. package/dist/{index-CaQxsLai.js → index-CwiUgaGI.js} +5 -5
  40. package/dist/index-D3MoBe24.cjs +15 -0
  41. package/dist/index-D6D9SCPa.cjs +1 -0
  42. package/dist/{index-DfcsvIY5.cjs → index-DB8oLdoK.cjs} +1 -1
  43. package/dist/{index-B94M9CMw.cjs → index-DLPQoVA6.cjs} +1 -1
  44. package/dist/{index-D3_jq7cX.cjs → index-DQJPWEqk.cjs} +1 -1
  45. package/dist/{index-9nY56-QR.cjs → index-DYQ5ZvYh.cjs} +1 -1
  46. package/dist/{index-CVLV7-M9.js → index-DYSziVz4.js} +9 -9
  47. package/dist/{index-BKrkAcBB.cjs → index-DcLb0XZD.cjs} +1 -1
  48. package/dist/{index-C9K9NG79.cjs → index-Dg5D5xCR.cjs} +1 -1
  49. package/dist/{index-DO_oafZe.js → index-Dg8irIqw.js} +5 -5
  50. package/dist/{index-DECdW2FW.js → index-DgVgB13t.js} +1 -1
  51. package/dist/{index-7G6RnWL-.js → index-DnkflWQf.js} +1 -1
  52. package/dist/{index-DLsU_7sc.js → index-DrFxQ8Ki.js} +2 -2
  53. package/dist/{index-D1TGlpbP.cjs → index-DwaW_eAE.cjs} +1 -1
  54. package/dist/{index-CGAzwavt.js → index-DzkWy2PD.js} +638 -639
  55. package/dist/{index-osT7gQ0k.cjs → index-F3XHv6p-.cjs} +1 -1
  56. package/dist/{index-DaObODQd.cjs → index-FrwJsit5.cjs} +1 -1
  57. package/dist/{index-CebyFRzl.cjs → index-KJ5I6heb.cjs} +1 -1
  58. package/dist/{index-CVhEAMxc.cjs → index-WSa1Enje.cjs} +1 -1
  59. package/dist/{index-C4Y_0Pqx.js → index-Wkp3bFzx.js} +1 -1
  60. package/dist/{index-MtuCSFch.js → index-XyzV8czh.js} +3 -3
  61. package/dist/{index-BBpfH3U5.cjs → index-aliiazw8.cjs} +1 -1
  62. package/dist/{index-B_ab3YNj.js → index-hkchRNAV.js} +10 -11
  63. package/dist/{index-CZ_1yrbo.cjs → index-tADecIkG.cjs} +1 -1
  64. package/dist/{index-DhdGSuCy.cjs → index-z2md-yku.cjs} +1 -1
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dim6PXfX.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCz-I5jm.js} +27358 -26694
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BimFR8f6.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DD10WrJ2.cjs} +392 -382
  67. package/dist/{index.vue_vue_type_style_index_1_lang-DlkNXxzZ.cjs → index.vue_vue_type_style_index_1_lang-CdWzb_V-.cjs} +1 -1
  68. package/dist/{index.vue_vue_type_style_index_1_lang-RJi0lv4v.js → index.vue_vue_type_style_index_1_lang-LDqCgKnI.js} +57 -57
  69. package/dist/{main-aZoig-Ic.cjs → main-Bv2Plrj7.cjs} +1 -1
  70. package/dist/{main-CKRcAjah.js → main-CsLazQpe.js} +4 -4
  71. package/dist/{menuIndex-BOUigvDC.cjs → menuIndex-CnGLkky9.cjs} +1 -1
  72. package/dist/{menuIndex-C1JdgI18.js → menuIndex-I5ECgNWt.js} +1 -1
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.js +15 -15
  75. package/dist/ss-component2.cjs +1 -1
  76. package/dist/ss-component2.js +11 -11
  77. package/dist/{threeModel-BZ92nN2I.js → threeModel-Cnyc_Xfm.js} +45 -45
  78. package/dist/{threeModel-DocL2Wps.cjs → threeModel-Dy7yCJzh.cjs} +1 -1
  79. package/dist/{threePreview-Bg9IDV16.js → threePreview-CAXTHct3.js} +137 -137
  80. package/dist/{threePreview-rZ-Mn3yx.cjs → threePreview-rc0Y3L69.cjs} +1 -1
  81. package/dist/{threeSceneView-D9GroZ9j.cjs → threeSceneView-BUb8pd-o.cjs} +1 -1
  82. package/dist/{threeSceneView-FqQJ7ZrG.js → threeSceneView-DsioOlOb.js} +137 -137
  83. package/dist/{threeSceneViewForCPMPIP-WugeC6sT.cjs → threeSceneViewForCPMPIP-D6en-lGr.cjs} +1 -1
  84. package/dist/{threeSceneViewForCPMPIP-BKeIA1xt.js → threeSceneViewForCPMPIP-vG44vNGe.js} +8 -8
  85. package/dist/{threeTrackPathView-Dx18ZIwF.js → threeTrackPathView-BaONHAhM.js} +56 -56
  86. package/dist/{threeTrackPathView-BE28zw_v.cjs → threeTrackPathView-CZTeW2Pq.cjs} +1 -1
  87. package/dist/{threeViewerHost-Dn4RvDFi.js → threeViewerHost-CLtCJAE_.js} +14 -14
  88. package/dist/{threeViewerHost-ZjhprZMr.cjs → threeViewerHost-DO4F_9O0.cjs} +1 -1
  89. package/dist/{urdfTree-C_IB0S4H.cjs → urdfTree-CnCpOTGQ.cjs} +1 -1
  90. package/dist/{urdfTree-D4JGxfMF.js → urdfTree-DrdQVTXa.js} +1 -1
  91. package/dist/{workpieceTreePanel-Di9vo3vC.cjs → workpieceTreePanel-BFPaqDJD.cjs} +1 -1
  92. package/dist/{workpieceTreePanel-jgqhd2py.js → workpieceTreePanel-BLpxZYf-.js} +72 -72
  93. package/package.json +1 -1
  94. package/dist/index-3m8kfH7_.js +0 -38
  95. package/dist/index-BM--4cI-.cjs +0 -1
  96. package/dist/index-DX9jk8Sp.cjs +0 -11
  97. package/dist/index-Dc1Bh93L.cjs +0 -1
  98. package/dist/index-LEeC_fJN.cjs +0 -1
  99. package/dist/index-syxWjmqB.cjs +0 -15
  100. package/dist/index-ytduJbtp.cjs +0 -1
@@ -1,18 +1,18 @@
1
- import { defineComponent as Le, ref as h, watch as ne, shallowRef as be, computed as Pe, onUnmounted as Ie, resolveComponent as U, createElementBlock as De, openBlock as Q, createElementVNode as u, createVNode as l, withCtx as M, createBlock as ye, createCommentVNode as ke, unref as X, toDisplayString as he, onMounted as Ge, onBeforeUnmount as Ze, Fragment as He, renderList as qe, nextTick as Ke, withDirectives as pe, vShow as de, renderSlot as Me } from "vue";
2
- import { r as Te, s as Ye } from "./threeViewerHost-Dn4RvDFi.js";
3
- import { u as Je, a as Qe, b as et, C as tt } from "./iconfont-CvYchHEP.js";
4
- import { U as lt, u as ot, a as at, W as nt } from "./workpieceTreePanel-jgqhd2py.js";
5
- import { c as st } from "./index-CwhxnRyA.js";
1
+ import { defineComponent as Le, ref as h, watch as ne, shallowRef as be, computed as ke, onUnmounted as Ie, resolveComponent as U, createElementBlock as Te, openBlock as Q, createElementVNode as u, createVNode as l, withCtx as M, createBlock as ye, createCommentVNode as Pe, unref as X, toDisplayString as he, onMounted as Ge, onBeforeUnmount as Ze, Fragment as He, renderList as Ke, nextTick as qe, withDirectives as pe, vShow as de, renderSlot as Me } from "vue";
2
+ import { r as De, s as Ye } from "./threeViewerHost-CLtCJAE_.js";
3
+ import { u as Je, a as Qe, b as et, C as tt } from "./iconfont-DCFi7bPb.js";
4
+ import { U as lt, u as ot, a as at, W as nt } from "./workpieceTreePanel-BLpxZYf-.js";
5
+ import { c as st } from "./index-CX12hzsx.js";
6
6
  import { a6 as it, E, at as rt, an as ct } from "./index-B8HqIYd5.js";
7
- import { a5 as Ve, a6 as xe, V, a3 as H, a4 as ut, av as pt, T as Se, aw as dt, ax as mt, ay as vt, az as ft, aA as gt, aB as ht, aC as bt, aD as yt, a0 as _t, aE as Be, aF as wt, aG as Ct, aH as kt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dim6PXfX.js";
8
- import "./index.vue_vue_type_style_index_1_lang-RJi0lv4v.js";
7
+ import { ac as Ve, ad as xe, V, aa as H, ab as ut, aD as pt, a1 as Se, aE as dt, aF as mt, aG as vt, aH as ft, aI as gt, aJ as ht, aK as bt, aL as yt, a7 as _t, aM as Be, aN as wt, aO as Ct, aP as Pt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DCz-I5jm.js";
8
+ import "./index.vue_vue_type_style_index_1_lang-LDqCgKnI.js";
9
9
  import "./index-BHtNKL1L.js";
10
10
  import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
11
- import "./index-CVLV7-M9.js";
12
- import { f as Pt, a as xt, g as Rt, b as Mt } from "./animationData-B3clqdCz.js";
13
- import { g as Tt, a as Dt, b as Vt, c as St, U as At, J as $t } from "./urdfTree-D4JGxfMF.js";
11
+ import "./index-DYSziVz4.js";
12
+ import { f as kt, a as xt, g as Rt, b as Mt } from "./animationData-5o0D2SPA.js";
13
+ import { g as Dt, a as Tt, b as Vt, c as St, U as At, J as $t } from "./urdfTree-DrdQVTXa.js";
14
14
  import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
- import { s as Ft } from "./index-7G6RnWL-.js";
15
+ import { s as Ft } from "./index-DnkflWQf.js";
16
16
  import { T as Y } from "./svgIcon-4u4PW7Is.js";
17
17
  const I = 1e-3, oe = ut.degToRad, Ee = new dt({
18
18
  // 灰色
@@ -44,8 +44,8 @@ const Ne = (y) => y.reduce((v, d) => {
44
44
  if (d > 0 && (s.pos.add(s.localY.clone().multiplyScalar(d * I)), v.push(s.pos.clone())), m > 0 && _ > 0) {
45
45
  const b = oe(m), f = _ * I, w = s.pos.clone().add(s.localX.clone().multiplyScalar(-f)), n = Math.max(16, Math.ceil(m / 5));
46
46
  for (let C = 1; C <= n; C++) {
47
- const p = b * C / n, k = new H().makeRotationAxis(s.localZ, p), c = s.localX.clone().multiplyScalar(f).applyMatrix4(k), T = w.clone().add(c);
48
- v.push(T);
47
+ const p = b * C / n, P = new H().makeRotationAxis(s.localZ, p), c = s.localX.clone().multiplyScalar(f).applyMatrix4(P), D = w.clone().add(c);
48
+ v.push(D);
49
49
  }
50
50
  }
51
51
  return v;
@@ -69,7 +69,7 @@ function Yt(y, v) {
69
69
  if (f > 0) {
70
70
  const p = a.pos.clone();
71
71
  a.pos.add(a.localY.clone().multiplyScalar(f * I));
72
- const k = a.pos.clone(), r = Lt(p, k, v * I);
72
+ const P = a.pos.clone(), r = Lt(p, P, v * I);
73
73
  r.userData = {
74
74
  segmentType: "straight",
75
75
  segmentIndex: m,
@@ -81,11 +81,11 @@ function Yt(y, v) {
81
81
  Bt(d, _, c, v * I), m++;
82
82
  }
83
83
  if (n > 0 && C > 0) {
84
- const p = oe(n), k = C * I, r = [];
84
+ const p = oe(n), P = C * I, r = [];
85
85
  r.push(a.pos.clone());
86
- const c = a.pos.clone().add(a.localX.clone().multiplyScalar(-k)), T = Math.max(16, Math.ceil(n / 5));
87
- for (let g = 1; g <= T; g++) {
88
- const D = p * g / T, B = new H().makeRotationAxis(a.localZ, D), Z = a.localX.clone().multiplyScalar(k).applyMatrix4(B), ee = c.clone().add(Z);
86
+ const c = a.pos.clone().add(a.localX.clone().multiplyScalar(-P)), D = Math.max(16, Math.ceil(n / 5));
87
+ for (let g = 1; g <= D; g++) {
88
+ const T = p * g / D, B = new H().makeRotationAxis(a.localZ, T), Z = a.localX.clone().multiplyScalar(P).applyMatrix4(B), ee = c.clone().add(Z);
89
89
  r.push(ee);
90
90
  }
91
91
  const A = Ut(r, v * I);
@@ -114,12 +114,12 @@ function Bt(y, v, d, a) {
114
114
  w.computeLineDistances(), y.add(w);
115
115
  const n = document.createElement("canvas"), C = n.getContext("2d");
116
116
  n.width = 128, n.height = 128, C.clearRect(0, 0, 128, 128), C.fillStyle = "#FF0000", C.font = "bold 80px Arial", C.textAlign = "center", C.textBaseline = "middle", C.fillText(v.toString(), 64, 64);
117
- const p = new ht(n), k = new bt({
117
+ const p = new ht(n), P = new bt({
118
118
  map: p,
119
119
  transparent: !0,
120
120
  depthTest: !1,
121
121
  depthWrite: !1
122
- }), r = new yt(k), c = a * 3;
122
+ }), r = new yt(P), c = a * 3;
123
123
  r.scale.set(c, c, 1), r.position.copy(_), r.name = `Label_${v}`, r.userData = { labelNumber: v }, y.add(r);
124
124
  }
125
125
  function Lt(y, v, d) {
@@ -153,29 +153,29 @@ function je(y, v, d, a, m, _ = 0) {
153
153
  localX: new V(1, 0, 0),
154
154
  localZ: new V(0, 0, 1)
155
155
  };
156
- const k = [];
156
+ const P = [];
157
157
  for (let r = s.length - 1; r >= 0; r--) {
158
- const c = s[r], T = We(c);
159
- if (T.length > 0) {
160
- const A = T.map((B) => {
158
+ const c = s[r], D = We(c);
159
+ if (D.length > 0) {
160
+ const A = D.map((B) => {
161
161
  const L = B.clone(), Z = new H();
162
162
  return Z.makeBasis(p.localX, p.localY, p.localZ), L.applyMatrix4(Z), L.add(p.pos);
163
163
  });
164
- k.push(A);
164
+ P.push(A);
165
165
  const $ = A[A.length - 1];
166
166
  p.pos = $.clone();
167
- const g = c.B ?? 0, D = c.C ?? 0;
167
+ const g = c.B ?? 0, T = c.C ?? 0;
168
168
  if (g !== 0) {
169
169
  const B = new H().makeRotationAxis(p.localY, oe(g));
170
170
  p.localX.applyMatrix4(B), p.localZ.applyMatrix4(B);
171
171
  }
172
- if (D > 0) {
173
- const B = oe(D), L = new H().makeRotationAxis(p.localZ, B);
172
+ if (T > 0) {
173
+ const B = oe(T), L = new H().makeRotationAxis(p.localZ, B);
174
174
  p.localY.applyMatrix4(L), p.localX.applyMatrix4(L);
175
175
  }
176
176
  }
177
177
  }
178
- for (const r of k)
178
+ for (const r of P)
179
179
  r.length > 1 && n.push(...r.slice(1));
180
180
  n.length < 2 && n.push(new V(0, 1e-3, 0));
181
181
  try {
@@ -210,23 +210,23 @@ function Oe(y, v, d, a = 0) {
210
210
  };
211
211
  const C = [];
212
212
  for (let p = m.length - 1; p >= 0; p--) {
213
- const k = m[p], r = We(k);
213
+ const P = m[p], r = We(P);
214
214
  if (r.length > 0) {
215
215
  const c = r.map((g) => {
216
- const D = g.clone(), B = new H();
217
- return B.makeBasis(n.localX, n.localY, n.localZ), D.applyMatrix4(B), D.add(n.pos);
216
+ const T = g.clone(), B = new H();
217
+ return B.makeBasis(n.localX, n.localY, n.localZ), T.applyMatrix4(B), T.add(n.pos);
218
218
  });
219
219
  C.push(c);
220
- const T = c[c.length - 1];
221
- n.pos = T.clone();
222
- const A = k.B ?? 0, $ = k.C ?? 0;
220
+ const D = c[c.length - 1];
221
+ n.pos = D.clone();
222
+ const A = P.B ?? 0, $ = P.C ?? 0;
223
223
  if (A !== 0) {
224
224
  const g = new H().makeRotationAxis(n.localY, oe(A));
225
225
  n.localX.applyMatrix4(g), n.localZ.applyMatrix4(g);
226
226
  }
227
227
  if ($ > 0) {
228
- const g = oe($), D = new H().makeRotationAxis(n.localZ, g);
229
- n.localY.applyMatrix4(D), n.localX.applyMatrix4(D);
228
+ const g = oe($), T = new H().makeRotationAxis(n.localZ, g);
229
+ n.localY.applyMatrix4(T), n.localX.applyMatrix4(T);
230
230
  }
231
231
  }
232
232
  }
@@ -238,9 +238,9 @@ function Xe(y, v, d, a, m, _, s, b = 0, f = 0) {
238
238
  const w = m - f, n = Oe(a, w, s, b);
239
239
  let p = Oe(d, f, s, b);
240
240
  p.forEach((r) => r.y = -r.y), p.reverse();
241
- const k = [...p, ...n];
241
+ const P = [...p, ...n];
242
242
  try {
243
- const r = new Ve(k, !1, "catmullrom", 0.01), c = new xe(r, Math.max(2, k.length * 4), _ * I, 18, !1);
243
+ const r = new Ve(P, !1, "catmullrom", 0.01), c = new xe(r, Math.max(2, P.length * 4), _ * I, 18, !1);
244
244
  v.geometry.dispose(), y.geometry.dispose(), v.parent && v.parent.remove(v), y.geometry = c;
245
245
  } catch (r) {
246
246
  console.error("管件更新失败", r);
@@ -262,19 +262,19 @@ const Et = { class: "panel-content" }, jt = { class: "action-bar" }, Ot = { clas
262
262
  });
263
263
  const _ = async () => {
264
264
  let e = {};
265
- m.value === Te.SINGLE && (e = await Pt()), m.value === Te.DOUBLE && (e = await xt());
265
+ m.value === De.SINGLE && (e = await kt()), m.value === De.DOUBLE && (e = await xt());
266
266
  const {
267
267
  initialPipeLength: o = 0,
268
268
  pipeRadius: t = 0,
269
269
  clampLength: i = 0,
270
270
  animationData: R
271
271
  } = e;
272
- $.value = o, g.value = t, D.value = i, a.value = R;
273
- const x = st(a.value), le = fe(G.value), K = (x == null ? void 0 : x["输出(动画数据)"]) || [];
274
- s.value = K.length ? K : [le];
272
+ $.value = o, g.value = t, T.value = i, a.value = R;
273
+ const x = st(a.value), le = fe(G.value), q = (x == null ? void 0 : x["输出(动画数据)"]) || [];
274
+ s.value = q.length ? q : [le];
275
275
  }, s = h([]), b = h(!1), f = h(""), w = h(!1), n = h(0), C = h(0), p = h(1e3);
276
- let k = !1;
277
- const r = h(null), c = be(null), T = be(null), A = be(null), $ = h(0), g = h(12.5), D = h(30), B = h([]), L = h(null), Z = Pe(() => d.model ? Tt(d.model).map((t) => t.name) : []), ee = h(["Y", "B", "C", "R"]), G = Pe(() => [...Z.value, ...ee.value]), _e = Pe(() => G.value.length > 0 ? `请按以下格式粘贴数据 (第一行为表头,使用 Tab 分隔):
276
+ let P = !1;
277
+ const r = h(null), c = be(null), D = be(null), A = be(null), $ = h(0), g = h(12.5), T = h(30), B = h([]), L = h(null), Z = ke(() => d.model ? Dt(d.model).map((t) => t.name) : []), ee = h(["Y", "B", "C", "R"]), G = ke(() => [...Z.value, ...ee.value]), _e = ke(() => G.value.length > 0 ? `请按以下格式粘贴数据 (第一行为表头,使用 Tab 分隔):
278
278
  ${G.value.join(" ")}
279
279
  0 0 0 ...
280
280
  1 2 3 ...` : "请先加载模型。"), ve = () => s.value.map((e) => ({
@@ -285,14 +285,14 @@ ${G.value.join(" ")}
285
285
  })), se = () => {
286
286
  const e = [], o = [];
287
287
  return s.value.forEach((t) => {
288
- const { Y1: i, B1: R, C1: x, R1: le, Y2: K, B2: ue, C2: Ce, R2: z } = t;
288
+ const { Y1: i, B1: R, C1: x, R1: le, Y2: q, B2: ue, C2: Ce, R2: z } = t;
289
289
  e.push({
290
290
  Y: parseFloat(i) || 0,
291
291
  B: parseFloat(R) || 0,
292
292
  C: parseFloat(x) || 0,
293
293
  R: parseFloat(le) || 0
294
294
  }), o.push({
295
- Y: parseFloat(K) || 0,
295
+ Y: parseFloat(q) || 0,
296
296
  B: parseFloat(ue) || 0,
297
297
  C: parseFloat(Ce) || 0,
298
298
  R: parseFloat(z) || 0
@@ -302,24 +302,24 @@ ${G.value.join(" ")}
302
302
  negPipeYbcr: o
303
303
  };
304
304
  }, S = (e = 0, o = 0) => {
305
- if (c.value && T.value) {
305
+ if (c.value && D.value) {
306
306
  const t = se();
307
307
  Xe(
308
308
  c.value,
309
- T.value,
309
+ D.value,
310
310
  t.posPipeYbcr,
311
311
  t.negPipeYbcr,
312
312
  $.value,
313
313
  g.value,
314
314
  e,
315
315
  o,
316
- D.value
316
+ T.value
317
317
  );
318
318
  } else if (c.value) {
319
319
  const t = ve();
320
320
  je(c.value, t, $.value, g.value, e, o);
321
321
  }
322
- }, P = (e) => {
322
+ }, k = (e) => {
323
323
  if (e < 0 || e >= s.value.length) {
324
324
  console.error(`帧索引 ${e} 超出范围`);
325
325
  return;
@@ -339,9 +339,9 @@ ${G.value.join(" ")}
339
339
  return;
340
340
  }
341
341
  if (!w.value) {
342
- w.value = !0, k = !1, s.value.length - 1 === n.value && (n.value = 0);
342
+ w.value = !0, P = !1, s.value.length - 1 === n.value && (n.value = 0);
343
343
  try {
344
- for (let e = n.value + 1; e < s.value.length && !k; e++) {
344
+ for (let e = n.value + 1; e < s.value.length && !P; e++) {
345
345
  n.value = e;
346
346
  const o = s.value[e], t = {};
347
347
  r.value && Z.value.forEach((i) => {
@@ -355,7 +355,7 @@ ${G.value.join(" ")}
355
355
  }
356
356
  ) : (await new Promise((i) => setTimeout(i, p.value)), C.value = (e + 1) / s.value.length * 100);
357
357
  }
358
- k || E.success("动画播放完成");
358
+ P || E.success("动画播放完成");
359
359
  } catch (e) {
360
360
  console.error("动画播放出错:", e), E.error("动画播放出错");
361
361
  } finally {
@@ -363,22 +363,22 @@ ${G.value.join(" ")}
363
363
  }
364
364
  }
365
365
  }, j = () => {
366
- k = !0, w.value = !1, C.value = 0, E.info("动画已停止");
366
+ P = !0, w.value = !1, C.value = 0, E.info("动画已停止");
367
367
  }, N = () => {
368
368
  n.value = 0;
369
369
  }, O = () => {
370
- if (c.value && T.value) {
370
+ if (c.value && D.value) {
371
371
  const e = se();
372
372
  Xe(
373
373
  c.value,
374
- T.value,
374
+ D.value,
375
375
  e.posPipeYbcr,
376
376
  e.negPipeYbcr,
377
377
  $.value,
378
378
  g.value,
379
379
  -1,
380
380
  0,
381
- D.value
381
+ T.value
382
382
  );
383
383
  } else if (c.value) {
384
384
  const e = ve();
@@ -393,14 +393,14 @@ ${G.value.join(" ")}
393
393
  }
394
394
  }, te = () => {
395
395
  r.value && r.value.resetToZero(), O(), N(), E.success("机器人和管件已重置");
396
- }, q = (e) => `第 ${e + 1} 帧`, W = (e) => {
397
- w.value && j(), P(e);
396
+ }, K = (e) => `第 ${e + 1} 帧`, W = (e) => {
397
+ w.value && j(), k(e);
398
398
  }, ie = () => {
399
- w.value && j(), !(n.value + 1 >= s.value.length) && P(n.value + 1);
399
+ w.value && j(), !(n.value + 1 >= s.value.length) && k(n.value + 1);
400
400
  }, F = () => {
401
- w.value && j(), n.value !== 0 && P(n.value - 1);
401
+ w.value && j(), n.value !== 0 && k(n.value - 1);
402
402
  }, ae = () => {
403
- A.value && (A.value.visible = !0), c.value && c.value.parent && c.value.parent.remove(c.value), A.value = null, c.value = null, T.value = null;
403
+ A.value && (A.value.visible = !0), c.value && c.value.parent && c.value.parent.remove(c.value), A.value = null, c.value = null, D.value = null;
404
404
  }, fe = (e) => e == null ? void 0 : e.reduce((o, t) => (o[t] = "0", o), {});
405
405
  ne(G, (e, o) => {
406
406
  if (JSON.stringify(e) !== JSON.stringify(o))
@@ -439,15 +439,15 @@ ${G.value.join(" ")}
439
439
  );
440
440
  return o.name = "managed_pipe_clone", (i = (t = e == null ? void 0 : e.parent) == null ? void 0 : t.add) == null || i.call(t, o), o.position.copy(e.position), o.rotation.copy(e.rotation), o.scale.copy(e.scale), o;
441
441
  };
442
- ne([L, D, $, re], ([e, o]) => {
442
+ ne([L, T, $, re], ([e, o]) => {
443
443
  if (ae(), d.model && e) {
444
- const t = Dt(d.model, e);
444
+ const t = Tt(d.model, e);
445
445
  if (console.log(t, "meshToReplace"), t && t.parent) {
446
446
  A.value = t, t.visible = !1;
447
447
  const i = Re(t);
448
- if (m.value === Te.SINGLE && (i.position.y -= o * 1e-3), c.value = i, m.value === Te.DOUBLE) {
448
+ if (m.value === De.SINGLE && (i.position.y -= o * 1e-3), c.value = i, m.value === De.DOUBLE) {
449
449
  const R = Re(t);
450
- T.value = R;
450
+ D.value = R;
451
451
  }
452
452
  S(0, 0);
453
453
  } else
@@ -484,21 +484,21 @@ ${G.value.join(" ")}
484
484
  return;
485
485
  }
486
486
  const R = e.slice(1).map((x) => {
487
- const le = x.split(" "), K = {};
487
+ const le = x.split(" "), q = {};
488
488
  return G.value.forEach((ue) => {
489
- K[ue] = "0";
489
+ q[ue] = "0";
490
490
  }), Object.entries(t).forEach(([ue, Ce]) => {
491
491
  const z = le[parseInt(ue)];
492
- z !== void 0 && z.trim() !== "" && (K[Ce] = z.trim());
493
- }), K;
492
+ z !== void 0 && z.trim() !== "" && (q[Ce] = z.trim());
493
+ }), q;
494
494
  });
495
495
  R.length > 0 ? (s.value = R, E.success(`成功导入 ${R.length} 行数据!`), b.value = !1, f.value = "") : E.error("未能解析到有效数据,请检查格式。");
496
496
  };
497
497
  return Ie(() => {
498
- ae(), k = !0;
498
+ ae(), P = !0;
499
499
  }), v({ playAnimation: J, stopAnimation: j, forwardFrame: ie, backwardFrame: F }), (e, o) => {
500
- const t = U("el-icon"), i = U("el-input-number"), R = U("el-form-item"), x = U("el-form"), le = U("el-slider"), K = U("el-progress"), ue = U("el-input"), Ce = U("el-dialog");
501
- return Q(), De("div", Et, [
500
+ const t = U("el-icon"), i = U("el-input-number"), R = U("el-form-item"), x = U("el-form"), le = U("el-slider"), q = U("el-progress"), ue = U("el-input"), Ce = U("el-dialog");
501
+ return Q(), Te("div", Et, [
502
502
  u("div", jt, [
503
503
  l(me, {
504
504
  onClick: _,
@@ -524,7 +524,7 @@ ${G.value.join(" ")}
524
524
  l(X(it))
525
525
  ]),
526
526
  _: 1
527
- })) : ke("", !0)
527
+ })) : Pe("", !0)
528
528
  ]),
529
529
  _: 1
530
530
  }, 8, ["disabled"]),
@@ -596,8 +596,8 @@ ${G.value.join(" ")}
596
596
  }, {
597
597
  default: M(() => [
598
598
  l(i, {
599
- modelValue: D.value,
600
- "onUpdate:modelValue": o[3] || (o[3] = (z) => D.value = z),
599
+ modelValue: T.value,
600
+ "onUpdate:modelValue": o[3] || (o[3] = (z) => T.value = z),
601
601
  min: 0,
602
602
  style: { width: "100%" }
603
603
  }, null, 8, ["modelValue"])
@@ -623,14 +623,14 @@ ${G.value.join(" ")}
623
623
  min: 0,
624
624
  max: s.value.length > 0 ? s.value.length - 1 : 0,
625
625
  step: 1,
626
- "format-tooltip": q,
626
+ "format-tooltip": K,
627
627
  onInput: W,
628
628
  disabled: s.value.length === 0,
629
629
  style: { "flex-grow": "1", margin: "0 10px" }
630
630
  }, null, 8, ["modelValue", "max", "disabled"])
631
631
  ]),
632
632
  u("div", Nt, [
633
- l(K, {
633
+ l(q, {
634
634
  percentage: C.value,
635
635
  "show-text": !1,
636
636
  "stroke-width": 6
@@ -672,17 +672,17 @@ ${G.value.join(" ")}
672
672
  ]);
673
673
  };
674
674
  }
675
- }), Ht = /* @__PURE__ */ Ue(It, [["__scopeId", "data-v-49a19db9"]]), qt = async () => {
675
+ }), Ht = /* @__PURE__ */ Ue(It, [["__scopeId", "data-v-49a19db9"]]), Kt = async () => {
676
676
  const v = await Rt(["工件库", "弯管"]), d = Be("工件列表", v), a = wt(d);
677
677
  return a == null ? void 0 : a.map((_) => ({
678
678
  name: _,
679
679
  mainKey: _
680
680
  }));
681
- }, Kt = async (y) => {
681
+ }, qt = async (y) => {
682
682
  const d = await Ct(["工件库", "弯管"], y), a = Be("弯管基础参数", d), m = Be("弯管特征尺寸", d), _ = {
683
683
  outerDiameter: 0,
684
684
  ybcrList: []
685
- }, s = Mt(a), b = kt(m);
685
+ }, s = Mt(a), b = Pt(m);
686
686
  return _.outerDiameter = (s == null ? void 0 : s.外径) || 0, _.ybcrList = b || [], _;
687
687
  }, Qt = { class: "pipe-analysis-dialog-header" }, el = { class: "header-right" }, tl = { class: "pipe-analysis-dialog-body" }, ll = { class: "panel-left" }, ol = { class: "pipe-analysis-input" }, al = { class: "input-params" }, nl = { class: "pipe-analysis-output" }, sl = { class: "ouput-params" }, il = /* @__PURE__ */ Le({
688
688
  __name: "pipeAnalysisPanel",
@@ -697,12 +697,12 @@ ${G.value.join(" ")}
697
697
  cleanup: n,
698
698
  setModels: C,
699
699
  clearAllModels: p,
700
- axesHelperVisible: k,
700
+ axesHelperVisible: P,
701
701
  toggleAxesVisibility: r,
702
702
  addModelAndFit: c
703
703
  } = Je(a);
704
704
  h(null);
705
- const T = h({ file: null, pipe: "" });
705
+ const D = h({ file: null, pipe: "" });
706
706
  h(null), h(!1);
707
707
  const A = h([]), $ = (S) => {
708
708
  A.value = S;
@@ -712,26 +712,26 @@ ${G.value.join(" ")}
712
712
  form: {},
713
713
  list: [],
714
714
  reverse: !1
715
- }), D = (S) => {
716
- const { length: P, outerDiameter: J, innerDiameter: j, thickness: N, ybcrList: O } = S || {};
715
+ }), T = (S) => {
716
+ const { length: k, outerDiameter: J, innerDiameter: j, thickness: N, ybcrList: O } = S || {};
717
717
  g.value.form = {
718
- length: P,
718
+ length: k,
719
719
  outerDiameter: J,
720
720
  innerDiameter: j,
721
721
  thickness: N
722
722
  }, g.value.list = O;
723
723
  }, B = () => {
724
- const { form: S, list: P } = g.value, {
724
+ const { form: S, list: k } = g.value, {
725
725
  outerDiameter: J
726
- } = S, j = J / 2, N = P == null ? void 0 : P.map((te) => {
727
- const { y: q, b: W, c: ie, r: F, Y: ae, B: fe, C: re, R: we } = te;
726
+ } = S, j = J / 2, N = k == null ? void 0 : k.map((te) => {
727
+ const { y: K, b: W, c: ie, r: F, Y: ae, B: fe, C: re, R: we } = te;
728
728
  return ae ? {
729
729
  Y: ae,
730
730
  B: fe,
731
731
  C: re,
732
732
  R: we
733
733
  } : {
734
- Y: q,
734
+ Y: K,
735
735
  B: W,
736
736
  C: ie,
737
737
  R: F
@@ -748,11 +748,11 @@ ${G.value.join(" ")}
748
748
  }, _e = () => {
749
749
  ee.value = !0;
750
750
  }, ve = async () => {
751
- const S = await qt();
751
+ const S = await Kt();
752
752
  $(S);
753
753
  }, se = async (S) => {
754
- const P = await Kt(S);
755
- D(P);
754
+ const k = await qt(S);
755
+ T(k);
756
756
  };
757
757
  return ne(() => g, () => {
758
758
  B();
@@ -772,8 +772,8 @@ ${G.value.join(" ")}
772
772
  ve();
773
773
  }), Ze(() => {
774
774
  window.removeEventListener("resize", f), n();
775
- }), v({ openDialog: _e }), (S, P) => {
776
- const J = U("el-icon"), j = U("el-option"), N = U("el-select"), O = U("el-form-item"), te = U("el-form"), q = U("el-input"), W = U("el-table-column"), ie = U("el-table");
775
+ }), v({ openDialog: _e }), (S, k) => {
776
+ const J = U("el-icon"), j = U("el-option"), N = U("el-select"), O = U("el-form-item"), te = U("el-form"), K = U("el-input"), W = U("el-table-column"), ie = U("el-table");
777
777
  return Q(), ye(Ft, {
778
778
  class: "pipe-analysis-dialog",
779
779
  visible: ee.value,
@@ -783,7 +783,7 @@ ${G.value.join(" ")}
783
783
  }, {
784
784
  header: M(() => [
785
785
  u("div", Qt, [
786
- P[6] || (P[6] = u("div", {
786
+ k[6] || (k[6] = u("div", {
787
787
  class: "header-left",
788
788
  title: "管件解析"
789
789
  }, " 管件解析 ", -1)),
@@ -807,12 +807,12 @@ ${G.value.join(" ")}
807
807
  u("div", tl, [
808
808
  u("div", ll, [
809
809
  u("div", ol, [
810
- P[7] || (P[7] = u("span", { class: "item-view-group" }, [
810
+ k[7] || (k[7] = u("span", { class: "item-view-group" }, [
811
811
  u("span", { class: "group-name-wrap" }, "输入")
812
812
  ], -1)),
813
813
  u("div", al, [
814
814
  l(te, {
815
- model: T.value,
815
+ model: D.value,
816
816
  "label-width": "auto",
817
817
  "label-position": "top"
818
818
  }, {
@@ -820,13 +820,13 @@ ${G.value.join(" ")}
820
820
  l(O, { label: "弯管" }, {
821
821
  default: M(() => [
822
822
  l(N, {
823
- modelValue: T.value.pipe,
824
- "onUpdate:modelValue": P[0] || (P[0] = (F) => T.value.pipe = F),
823
+ modelValue: D.value.pipe,
824
+ "onUpdate:modelValue": k[0] || (k[0] = (F) => D.value.pipe = F),
825
825
  placeholder: "请选择弯管",
826
826
  onChange: se
827
827
  }, {
828
828
  default: M(() => [
829
- (Q(!0), De(He, null, qe(A.value, (F) => (Q(), ye(j, {
829
+ (Q(!0), Te(He, null, Ke(A.value, (F) => (Q(), ye(j, {
830
830
  label: F.name,
831
831
  value: F.mainKey
832
832
  }, null, 8, ["label", "value"]))), 256))
@@ -846,7 +846,7 @@ ${G.value.join(" ")}
846
846
  default: M(() => [
847
847
  l(N, {
848
848
  modelValue: g.value.reverse,
849
- "onUpdate:modelValue": P[1] || (P[1] = (F) => g.value.reverse = F),
849
+ "onUpdate:modelValue": k[1] || (k[1] = (F) => g.value.reverse = F),
850
850
  placeholder: "请选择加工方向"
851
851
  }, {
852
852
  default: M(() => [
@@ -864,7 +864,7 @@ ${G.value.join(" ")}
864
864
  ]),
865
865
  _: 1
866
866
  }),
867
- P[8] || (P[8] = u("span", { class: "item-view-group" }, [
867
+ k[8] || (k[8] = u("span", { class: "item-view-group" }, [
868
868
  u("span", { class: "group-name-wrap" }, "输出(弯管基础参数)")
869
869
  ], -1)),
870
870
  u("div", sl, [
@@ -877,36 +877,36 @@ ${G.value.join(" ")}
877
877
  default: M(() => [
878
878
  l(O, { label: "管长" }, {
879
879
  default: M(() => [
880
- l(q, {
880
+ l(K, {
881
881
  modelValue: g.value.form.length,
882
- "onUpdate:modelValue": P[2] || (P[2] = (F) => g.value.form.length = F)
882
+ "onUpdate:modelValue": k[2] || (k[2] = (F) => g.value.form.length = F)
883
883
  }, null, 8, ["modelValue"])
884
884
  ]),
885
885
  _: 1
886
886
  }),
887
887
  l(O, { label: "外径" }, {
888
888
  default: M(() => [
889
- l(q, {
889
+ l(K, {
890
890
  modelValue: g.value.form.outerDiameter,
891
- "onUpdate:modelValue": P[3] || (P[3] = (F) => g.value.form.outerDiameter = F)
891
+ "onUpdate:modelValue": k[3] || (k[3] = (F) => g.value.form.outerDiameter = F)
892
892
  }, null, 8, ["modelValue"])
893
893
  ]),
894
894
  _: 1
895
895
  }),
896
896
  l(O, { label: "内径" }, {
897
897
  default: M(() => [
898
- l(q, {
898
+ l(K, {
899
899
  modelValue: g.value.form.innerDiameter,
900
- "onUpdate:modelValue": P[4] || (P[4] = (F) => g.value.form.innerDiameter = F)
900
+ "onUpdate:modelValue": k[4] || (k[4] = (F) => g.value.form.innerDiameter = F)
901
901
  }, null, 8, ["modelValue"])
902
902
  ]),
903
903
  _: 1
904
904
  }),
905
905
  l(O, { label: "壁厚" }, {
906
906
  default: M(() => [
907
- l(q, {
907
+ l(K, {
908
908
  modelValue: g.value.form.thickness,
909
- "onUpdate:modelValue": P[5] || (P[5] = (F) => g.value.form.thickness = F)
909
+ "onUpdate:modelValue": k[5] || (k[5] = (F) => g.value.form.thickness = F)
910
910
  }, null, 8, ["modelValue"])
911
911
  ]),
912
912
  _: 1
@@ -963,7 +963,7 @@ ${G.value.join(" ")}
963
963
  }, dl = {
964
964
  ref: "pipe2",
965
965
  class: "pipe-container"
966
- }, ml = { class: "buttonGroup-topLeft" }, vl = { class: "buttonGroup-left" }, fl = { class: "buttonGroup-right" }, gl = { class: "buttonGroup-bottom" }, hl = { class: "top-panel" }, bl = { class: "panel-header" }, yl = { class: "panel-body" }, _l = { class: "left-panel" }, wl = { class: "panel-header" }, Cl = { class: "panel-body" }, kl = { class: "right-panel" }, Pl = { class: "panel-header" }, xl = { class: "panel-body" }, Rl = {
966
+ }, ml = { class: "buttonGroup-topLeft" }, vl = { class: "buttonGroup-left" }, fl = { class: "buttonGroup-right" }, gl = { class: "buttonGroup-bottom" }, hl = { class: "top-panel" }, bl = { class: "panel-header" }, yl = { class: "panel-body" }, _l = { class: "left-panel" }, wl = { class: "panel-header" }, Cl = { class: "panel-body" }, Pl = { class: "right-panel" }, kl = { class: "panel-header" }, xl = { class: "panel-body" }, Rl = {
967
967
  key: 0,
968
968
  class: "loading-overlay"
969
969
  }, Ml = /* @__PURE__ */ Le({
@@ -973,12 +973,12 @@ ${G.value.join(" ")}
973
973
  threeData: {}
974
974
  },
975
975
  setup(y) {
976
- const v = y, d = h(Ye.ROBOT), a = h(null), m = h(), _ = h(!1), s = h(""), b = h(!1), f = h(""), w = h(!1), n = h(""), C = h(!1), p = h(""), k = be(null), r = be(null), c = h(), {
977
- currentModels: T,
976
+ const v = y, d = h(Ye.ROBOT), a = h(null), m = h(), _ = h(!1), s = h(""), b = h(!1), f = h(""), w = h(!1), n = h(""), C = h(!1), p = h(""), P = be(null), r = be(null), c = h(), {
977
+ currentModels: D,
978
978
  resetView: A,
979
979
  initThreeJS: $,
980
980
  handleResize: g,
981
- getThreeJSObjects: D,
981
+ getThreeJSObjects: T,
982
982
  cleanup: B,
983
983
  setAndFitModels: L,
984
984
  axesHelperVisible: Z,
@@ -986,15 +986,15 @@ ${G.value.join(" ")}
986
986
  zoomIn: G,
987
987
  zoomOut: _e
988
988
  } = Je(a), { loadSceneFromFile: ve } = at(
989
- D,
990
989
  T,
990
+ D,
991
991
  _,
992
992
  s
993
- ), { isAnimating: se, toggleAnimation: S, startAnimation: P, stopAnimation: J } = Qe(D, T), { isClipping: j, activeClippingAxis: N, toggleClipping: O, updateClippingPlanes: te } = et(D, T), { initRaycaster: q, selectedObject3D: W, setSelectedObjVisible: ie, updatePosition: F, updateRotation: ae, dispose: fe } = ot(a, D, T), re = () => {
993
+ ), { isAnimating: se, toggleAnimation: S, startAnimation: k, stopAnimation: J } = Qe(T, D), { isClipping: j, activeClippingAxis: N, toggleClipping: O, updateClippingPlanes: te } = et(T, D), { initRaycaster: K, selectedObject3D: W, setSelectedObjVisible: ie, updatePosition: F, updateRotation: ae, dispose: fe } = ot(a, T, D), re = () => {
994
994
  ee();
995
995
  }, we = (t) => {
996
996
  N.value = t, te();
997
- }, Ae = Pe(() => d.value === Ye.ROBOT), $e = Pe(() => d.value === Ye.PIPECOMPARSION), ce = (t) => {
997
+ }, Ae = ke(() => d.value === Ye.ROBOT), $e = ke(() => d.value === Ye.PIPECOMPARSION), ce = (t) => {
998
998
  b.value = !0, f.value = t, t === "剖面视图" && !j.value && O();
999
999
  }, ge = (t) => {
1000
1000
  w.value = !0, n.value = t;
@@ -1017,24 +1017,24 @@ ${G.value.join(" ")}
1017
1017
  if (!i.name.toLowerCase().endsWith(".urdf"))
1018
1018
  return;
1019
1019
  ve(i).then((R) => {
1020
- k.value = R;
1020
+ P.value = R;
1021
1021
  }).catch((R) => {
1022
- console.error("加载URDF文件时发生错误:", R), E.error("加载urdf模型失败"), k.value = null;
1022
+ console.error("加载URDF文件时发生错误:", R), E.error("加载urdf模型失败"), P.value = null;
1023
1023
  });
1024
1024
  } else
1025
- k.value = null;
1025
+ P.value = null;
1026
1026
  }, {
1027
1027
  immediate: !0,
1028
1028
  deep: !0
1029
- }), ne(k, (t) => {
1030
- L(t ? [t] : []), q();
1029
+ }), ne(P, (t) => {
1030
+ L(t ? [t] : []), K();
1031
1031
  });
1032
1032
  let o = null;
1033
1033
  return Ge(async () => {
1034
- await Ke();
1034
+ await qe();
1035
1035
  try {
1036
1036
  $(), a.value && (o = new ResizeObserver(g), o.observe(a.value));
1037
- const t = D();
1037
+ const t = T();
1038
1038
  r.value = t.scene;
1039
1039
  } catch (t) {
1040
1040
  console.error("Three.js 初始化失败:", t), E.error("渲染引擎初始化失败!");
@@ -1043,7 +1043,7 @@ ${G.value.join(" ")}
1043
1043
  f.value = "", n.value = "", o && o.disconnect(), se.value && J(), B(), fe();
1044
1044
  }), (t, i) => {
1045
1045
  const R = U("el-scrollbar");
1046
- return Q(), De("div", cl, [
1046
+ return Q(), Te("div", cl, [
1047
1047
  pe(u("div", {
1048
1048
  ref_key: "threejsContainer",
1049
1049
  ref: a,
@@ -1219,20 +1219,20 @@ ${G.value.join(" ")}
1219
1219
  return [
1220
1220
  f.value === "场景树" ? (Q(), ye(At, {
1221
1221
  key: 0,
1222
- model: k.value
1223
- }, null, 8, ["model"])) : ke("", !0),
1222
+ model: P.value
1223
+ }, null, 8, ["model"])) : Pe("", !0),
1224
1224
  f.value === "剖面视图" ? (Q(), ye(tt, {
1225
1225
  key: 1,
1226
1226
  value: X(N),
1227
1227
  onChange: we
1228
- }, null, 8, ["value"])) : ke("", !0),
1228
+ }, null, 8, ["value"])) : Pe("", !0),
1229
1229
  f.value === "工件树" ? (Q(), ye(nt, {
1230
1230
  key: 2,
1231
1231
  model: (x = X(W)) == null ? void 0 : x.obj,
1232
1232
  onVisibleChange: X(ie),
1233
1233
  onUpdatePosition: X(F),
1234
1234
  onUpdateRotation: X(ae)
1235
- }, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : ke("", !0)
1235
+ }, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : Pe("", !0)
1236
1236
  ];
1237
1237
  }),
1238
1238
  _: 1
@@ -1241,8 +1241,8 @@ ${G.value.join(" ")}
1241
1241
  ], 512), [
1242
1242
  [de, b.value]
1243
1243
  ]),
1244
- pe(u("div", kl, [
1245
- u("div", Pl, [
1244
+ pe(u("div", Pl, [
1245
+ u("div", kl, [
1246
1246
  u("span", null, he(n.value), 1),
1247
1247
  u("span", {
1248
1248
  class: "close",
@@ -1252,13 +1252,13 @@ ${G.value.join(" ")}
1252
1252
  u("div", xl, [
1253
1253
  l(R, { height: "100%" }, {
1254
1254
  default: M(() => [
1255
- pe(l($t, { model: k.value }, null, 8, ["model"]), [
1255
+ pe(l($t, { model: P.value }, null, 8, ["model"]), [
1256
1256
  [de, n.value === "关节控制"]
1257
1257
  ]),
1258
1258
  pe(l(Ht, {
1259
1259
  ref_key: "animationPanelRef",
1260
1260
  ref: c,
1261
- model: k.value,
1261
+ model: P.value,
1262
1262
  threeData: v.threeData
1263
1263
  }, null, 8, ["model", "threeData"]), [
1264
1264
  [de, n.value === "动画仿真"]
@@ -1271,10 +1271,10 @@ ${G.value.join(" ")}
1271
1271
  ], 512), [
1272
1272
  [de, w.value]
1273
1273
  ]),
1274
- _.value ? (Q(), De("div", Rl, [
1274
+ _.value ? (Q(), Te("div", Rl, [
1275
1275
  i[10] || (i[10] = u("div", { class: "loading-spinner" }, null, -1)),
1276
1276
  u("p", null, he(s.value), 1)
1277
- ])) : ke("", !0),
1277
+ ])) : Pe("", !0),
1278
1278
  l(rl, {
1279
1279
  ref_key: "pipeAnalysisPanelRef",
1280
1280
  ref: m