ss-component-new 1.3.641 → 1.3.643

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 (70) hide show
  1. package/dist/JSEncrypt-B36c1iN5.js +1983 -0
  2. package/dist/{MTLLoader-CZqN7Zrs.js → MTLLoader-CzUQTGKY.js} +2 -2
  3. package/dist/{URDFLoader-5yxKptss.js → URDFLoader-Cpc_aT68.js} +584 -589
  4. package/dist/{animationData-_pwKquvD.js → animationData-BgDqzRLe.js} +3 -3
  5. package/dist/{array-CHe-DoyQ.js → array-x70XTJSv.js} +14 -13
  6. package/dist/{clone-BjJ_R9XN.js → clone-DqQwDoSV.js} +1 -1
  7. package/dist/{eleIcon-BWVKfp5t.js → eleIcon-Dtsx377t.js} +2 -2
  8. package/dist/{iconfont-DGtoabuW.js → iconfont-B4WPRBLy.js} +91 -91
  9. package/dist/{index-DJrzqi4-.js → index-11kpzK0A.js} +17 -17
  10. package/dist/{index-BEuZVqx1.js → index-B0w8-AEa.js} +9164 -9616
  11. package/dist/{index-BibSA99e.js → index-B2i-wZ7I.js} +20 -17
  12. package/dist/{index-BSIx33n6.js → index-B9g43cVc.js} +62 -60
  13. package/dist/index-BDfs7pV0.js +11397 -0
  14. package/dist/{index-dD-mKgue.js → index-BHtNKL1L.js} +2 -2
  15. package/dist/{index-Bvvz41NY.js → index-BI3gwdBk.js} +1 -1
  16. package/dist/{index-DwmZbmjQ.js → index-BjSS0ovo.js} +80 -74
  17. package/dist/{index-qv_1lhhv.js → index-BkAYMm70.js} +2 -2
  18. package/dist/{index-FPf0BzIG.js → index-C4OLi6tq.js} +551 -554
  19. package/dist/{index-CmGpt__g.js → index-CB2B4YM9.js} +3 -3
  20. package/dist/{index-D_kI6aHR.js → index-CDpLX430.js} +8 -7
  21. package/dist/{index-CmrtXrCW.js → index-CMXhAlkY.js} +8 -8
  22. package/dist/{index-DV-y9RNF.js → index-C_c-5ZAh.js} +61 -57
  23. package/dist/index-Cb5fCewf.js +572 -0
  24. package/dist/{index-CcdSuqPt.js → index-Cnet9-km.js} +8 -8
  25. package/dist/{index-BYTAx6bL.js → index-Czz3dB6u.js} +5 -5
  26. package/dist/{index-CUB0YIQp.js → index-D8cOzz3g.js} +5 -5
  27. package/dist/{index-DW6CZC2b.js → index-DGmjWChr.js} +1051 -1053
  28. package/dist/{index-CwKQTNJ6.js → index-DLZVUgaP.js} +2 -2
  29. package/dist/{index-DW2-bo7z.js → index-DNl2K8-4.js} +176 -167
  30. package/dist/{index-CIFdtwKG.js → index-DaOXFFsu.js} +20 -18
  31. package/dist/{index-CT3n6jZB.js → index-DllVa0Ze.js} +6 -6
  32. package/dist/{index-DlH7-Quf.js → index-DpcGBPYo.js} +3 -3
  33. package/dist/{index-Dae7KcRH.js → index-DzZWEErj.js} +3 -3
  34. package/dist/{index-C6ZyziE9.js → index-FCnO8UeA.js} +4 -4
  35. package/dist/{index-BcWf6LmN.js → index-IXxKIj3h.js} +4 -4
  36. package/dist/{index-B6zWduiC.js → index-LED1qeo2.js} +3 -3
  37. package/dist/{index-BwEO2Ckl.js → index-NwTP3AQl.js} +7 -7
  38. package/dist/{index-rVTDSJ7d.js → index-_fheIMoz.js} +22950 -23035
  39. package/dist/{index-CUUkM-MP.js → index-awI81WIz.js} +47 -43
  40. package/dist/{index-JxFaaWxD.js → index-fxJSVddL.js} +1 -1
  41. package/dist/{index-BFqUz4pN.js → index-rlStojTL.js} +1 -1
  42. package/dist/{index-YVR3acYT.js → index-tLd2cEHX.js} +1 -1
  43. package/dist/{index-DIimK4we.js → index-yJckrmsT.js} +4 -4
  44. package/dist/{index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js → index.vue_vue_type_script_setup_true_lang-DRzriV-s.js} +2 -2
  45. package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js} +27735 -27760
  46. package/dist/isString-CXX7MUiv.js +8 -0
  47. package/dist/{localIcon-CoJHw5ss.js → localIcon-D5UoFBU5.js} +1 -1
  48. package/dist/{main-B7yRqx5R.js → main-nJu2K4N-.js} +9 -9
  49. package/dist/{menuIndex-CY5XD7Ny.js → menuIndex-2JX7SuB8.js} +1 -1
  50. package/dist/obj/model.mtl +42 -0
  51. package/dist/obj/model.obj +26110 -0
  52. package/dist/{request-DiogHwkN.js → request-D-LN5bvn.js} +3075 -3494
  53. package/dist/ss-component.css +3 -3
  54. package/dist/ss-component.js +14 -14
  55. package/dist/ss-component2.js +13 -13
  56. package/dist/ss-component3.js +1 -1
  57. package/dist/{threeModel-D2NPH9rB.js → threeModel-BbNw-rXE.js} +174 -174
  58. package/dist/{threePreview-BC0mxp0t.js → threePreview-Cjupz9HK.js} +12 -12
  59. package/dist/{threeSceneView-CYA_dl9b.js → threeSceneView-4bCcg3w6.js} +111 -110
  60. package/dist/{threeSceneViewForCPMPIP-BeAfVkav.js → threeSceneViewForCPMPIP-D6nwYUWT.js} +17 -16
  61. package/dist/{threeTrackPathView-C8RcSYdk.js → threeTrackPathView-DuiNPnon.js} +7 -7
  62. package/dist/{threeViewerHost-EI6zUnYp.js → threeViewerHost-CsGXf4BF.js} +4 -4
  63. package/dist/{urdfTree-BGPikD3W.js → urdfTree-CymLIkE8.js} +9 -9
  64. package/dist/{workpieceTreePanel-DO6BojnM.js → workpieceTreePanel-DaTdJC9q.js} +60 -56
  65. package/package.json +1 -1
  66. package/public/obj/model.mtl +42 -0
  67. package/public/obj/model.obj +26110 -0
  68. package/dist/index-D23qc_Ne.js +0 -2623
  69. package/dist/index-DT8oA7Bc.js +0 -11550
  70. package/dist/isString-CoCw_sp3.js +0 -8
@@ -1,22 +1,22 @@
1
- import { defineComponent as Le, ref as h, watch as ae, shallowRef as be, computed as ke, onUnmounted as Ie, resolveComponent as U, openBlock as Q, createElementBlock as Ve, createElementVNode as u, createVNode as l, withCtx as M, createBlock as ye, unref as X, createCommentVNode as Pe, 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-EI6zUnYp.js";
3
- import { u as Je, a as Qe, b as et, T as Y, C as tt } from "./iconfont-DGtoabuW.js";
4
- import { U as lt, u as ot, W as nt, a as at } from "./workpieceTreePanel-DO6BojnM.js";
5
- import { c as st } from "./index-DW6CZC2b.js";
6
- import { ax as it, E as j, aO as rt, aP as ct } from "./request-DiogHwkN.js";
1
+ import { defineComponent as Le, ref as h, watch as ae, shallowRef as be, computed as Pe, onUnmounted as Ie, resolveComponent as U, createElementBlock as Ve, 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-CsGXf4BF.js";
3
+ import { u as Ne, a as Qe, b as et, T as Y, C as tt } from "./iconfont-B4WPRBLy.js";
4
+ import { U as lt, u as ot, a as nt, W as at } from "./workpieceTreePanel-DaTdJC9q.js";
5
+ import { c as st } from "./index-DGmjWChr.js";
6
+ import { av as it, E as j, aM as rt, aN as ct } from "./request-D-LN5bvn.js";
7
7
  /* empty css */
8
- import { o as De, T as xe, V as D, n as H, s as ut, p as pt, h as Se, t as dt, L as mt, u as vt, v as ft, w as gt, x as ht, y as bt, z as yt, l as _t, F as wt } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js";
9
- import "./index-rVTDSJ7d.js";
10
- import "./index-dD-mKgue.js";
11
- import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js";
12
- import { y as Be, z as Ct, A as Pt } from "./index-FPf0BzIG.js";
13
- import "./index-D23qc_Ne.js";
14
- import "./index-DlH7-Quf.js";
15
- import { f as kt, a as xt, g as Rt, b as Mt } from "./animationData-_pwKquvD.js";
16
- import { g as Tt, a as Vt, b as Dt, c as St, U as At, J as $t } from "./urdfTree-BGPikD3W.js";
8
+ import { p as De, T as xe, V as D, n as H, o as ut, s as pt, h as Se, t as dt, L as mt, u as vt, v as ft, w as gt, x as ht, y as bt, z as yt, l as _t, F as wt } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js";
9
+ import "./index-_fheIMoz.js";
10
+ import "./index-BHtNKL1L.js";
11
+ import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
12
+ import { y as Be, z as Ct, A as kt } from "./index-C4OLi6tq.js";
13
+ import "./index-Cb5fCewf.js";
14
+ import "./index-DpcGBPYo.js";
15
+ import { f as Pt, a as xt, g as Rt, b as Mt } from "./animationData-BgDqzRLe.js";
16
+ import { g as Tt, a as Vt, b as Dt, c as St, U as At, J as $t } from "./urdfTree-CymLIkE8.js";
17
17
  import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- import { s as Ft } from "./index-DJrzqi4-.js";
19
- const I = 1e-3, oe = pt.degToRad, je = new dt({
18
+ import { s as Ft } from "./index-11kpzK0A.js";
19
+ const I = 1e-3, oe = ut.degToRad, je = new dt({
20
20
  // 灰色
21
21
  color: 13421772,
22
22
  metalness: 0.3,
@@ -27,7 +27,7 @@ function zt(y = 5e-3, v = 64) {
27
27
  const d = new De([new D(0, 0, 0), new D(0, 0, 0)]), n = new xe(d, v, y, 16, !1), m = je;
28
28
  return new Se(n, m);
29
29
  }
30
- const Ne = (y) => y.reduce((v, d) => {
30
+ const Je = (y) => y.reduce((v, d) => {
31
31
  let n = 0;
32
32
  const m = d.Y ?? 0, _ = d.C ?? 0, s = d.R ?? 0;
33
33
  return m > 0 && (n += m), _ > 0 && s > 0 && (n += s * oe(_)), v + n;
@@ -46,14 +46,14 @@ const Ne = (y) => y.reduce((v, d) => {
46
46
  if (d > 0 && (s.pos.add(s.localY.clone().multiplyScalar(d * I)), v.push(s.pos.clone())), m > 0 && _ > 0) {
47
47
  const b = oe(m), f = _ * I, w = s.pos.clone().add(s.localX.clone().multiplyScalar(-f)), a = Math.max(16, Math.ceil(m / 5));
48
48
  for (let C = 1; C <= a; C++) {
49
- const p = b * C / a, P = new H().makeRotationAxis(s.localZ, p), c = s.localX.clone().multiplyScalar(f).applyMatrix4(P), T = w.clone().add(c);
49
+ const p = b * C / a, k = new H().makeRotationAxis(s.localZ, p), c = s.localX.clone().multiplyScalar(f).applyMatrix4(k), T = w.clone().add(c);
50
50
  v.push(T);
51
51
  }
52
52
  }
53
53
  return v;
54
54
  };
55
55
  function Yt(y, v) {
56
- const d = new ut();
56
+ const d = new pt();
57
57
  d.name = "CompletePipe";
58
58
  const n = {
59
59
  pos: new D(0, 0, 0),
@@ -71,7 +71,7 @@ function Yt(y, v) {
71
71
  if (f > 0) {
72
72
  const p = n.pos.clone();
73
73
  n.pos.add(n.localY.clone().multiplyScalar(f * I));
74
- const P = n.pos.clone(), r = Lt(p, P, v * I);
74
+ const k = n.pos.clone(), r = Lt(p, k, v * I);
75
75
  r.userData = {
76
76
  segmentType: "straight",
77
77
  segmentIndex: m,
@@ -83,11 +83,11 @@ function Yt(y, v) {
83
83
  Bt(d, _, c, v * I), m++;
84
84
  }
85
85
  if (a > 0 && C > 0) {
86
- const p = oe(a), P = C * I, r = [];
86
+ const p = oe(a), k = C * I, r = [];
87
87
  r.push(n.pos.clone());
88
- const c = n.pos.clone().add(n.localX.clone().multiplyScalar(-P)), T = Math.max(16, Math.ceil(a / 5));
88
+ const c = n.pos.clone().add(n.localX.clone().multiplyScalar(-k)), T = Math.max(16, Math.ceil(a / 5));
89
89
  for (let g = 1; g <= T; g++) {
90
- const V = p * g / T, B = new H().makeRotationAxis(n.localZ, V), Z = n.localX.clone().multiplyScalar(P).applyMatrix4(B), ee = c.clone().add(Z);
90
+ const V = p * g / T, B = new H().makeRotationAxis(n.localZ, V), Z = n.localX.clone().multiplyScalar(k).applyMatrix4(B), ee = c.clone().add(Z);
91
91
  r.push(ee);
92
92
  }
93
93
  const A = Ut(r, v * I);
@@ -116,12 +116,12 @@ function Bt(y, v, d, n) {
116
116
  w.computeLineDistances(), y.add(w);
117
117
  const a = document.createElement("canvas"), C = a.getContext("2d");
118
118
  a.width = 128, a.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);
119
- const p = new ht(a), P = new bt({
119
+ const p = new ht(a), k = new bt({
120
120
  map: p,
121
121
  transparent: !0,
122
122
  depthTest: !1,
123
123
  depthWrite: !1
124
- }), r = new yt(P), c = n * 3;
124
+ }), r = new yt(k), c = n * 3;
125
125
  r.scale.set(c, c, 1), r.position.copy(_), r.name = `Label_${v}`, r.userData = { labelNumber: v }, y.add(r);
126
126
  }
127
127
  function Lt(y, v, d) {
@@ -145,7 +145,7 @@ function Ee(y, v, d, n, m, _ = 0) {
145
145
  };
146
146
  s.push(r);
147
147
  }
148
- const f = Ne(s), w = Math.max(0, d - f), a = [];
148
+ const f = Je(s), w = Math.max(0, d - f), a = [];
149
149
  a.push(new D(0, 0, 0));
150
150
  const C = new D(0, w * I, 0);
151
151
  w > 0 && a.push(C);
@@ -155,7 +155,7 @@ function Ee(y, v, d, n, m, _ = 0) {
155
155
  localX: new D(1, 0, 0),
156
156
  localZ: new D(0, 0, 1)
157
157
  };
158
- const P = [];
158
+ const k = [];
159
159
  for (let r = s.length - 1; r >= 0; r--) {
160
160
  const c = s[r], T = We(c);
161
161
  if (T.length > 0) {
@@ -163,7 +163,7 @@ function Ee(y, v, d, n, m, _ = 0) {
163
163
  const L = B.clone(), Z = new H();
164
164
  return Z.makeBasis(p.localX, p.localY, p.localZ), L.applyMatrix4(Z), L.add(p.pos);
165
165
  });
166
- P.push(A);
166
+ k.push(A);
167
167
  const $ = A[A.length - 1];
168
168
  p.pos = $.clone();
169
169
  const g = c.B ?? 0, V = c.C ?? 0;
@@ -177,7 +177,7 @@ function Ee(y, v, d, n, m, _ = 0) {
177
177
  }
178
178
  }
179
179
  }
180
- for (const r of P)
180
+ for (const r of k)
181
181
  r.length > 1 && a.push(...r.slice(1));
182
182
  a.length < 2 && a.push(new D(0, 1e-3, 0));
183
183
  try {
@@ -200,7 +200,7 @@ function Oe(y, v, d, n = 0) {
200
200
  };
201
201
  m.push(p);
202
202
  }
203
- const s = Ne(m), b = Math.max(0, v - s), f = [];
203
+ const s = Je(m), b = Math.max(0, v - s), f = [];
204
204
  f.push(new D(0, 0, 0));
205
205
  const w = new D(0, b * I, 0);
206
206
  b > 0 && f.push(w);
@@ -212,7 +212,7 @@ function Oe(y, v, d, n = 0) {
212
212
  };
213
213
  const C = [];
214
214
  for (let p = m.length - 1; p >= 0; p--) {
215
- const P = m[p], r = We(P);
215
+ const k = m[p], r = We(k);
216
216
  if (r.length > 0) {
217
217
  const c = r.map((g) => {
218
218
  const V = g.clone(), B = new H();
@@ -221,7 +221,7 @@ function Oe(y, v, d, n = 0) {
221
221
  C.push(c);
222
222
  const T = c[c.length - 1];
223
223
  a.pos = T.clone();
224
- const A = P.B ?? 0, $ = P.C ?? 0;
224
+ const A = k.B ?? 0, $ = k.C ?? 0;
225
225
  if (A !== 0) {
226
226
  const g = new H().makeRotationAxis(a.localY, oe(A));
227
227
  a.localX.applyMatrix4(g), a.localZ.applyMatrix4(g);
@@ -240,15 +240,15 @@ function Xe(y, v, d, n, m, _, s, b = 0, f = 0) {
240
240
  const w = m - f, a = Oe(n, w, s, b);
241
241
  let p = Oe(d, f, s, b);
242
242
  p.forEach((r) => r.y = -r.y), p.reverse();
243
- const P = [...p, ...a];
243
+ const k = [...p, ...a];
244
244
  try {
245
- const r = new De(P, !1, "catmullrom", 0.01), c = new xe(r, Math.max(2, P.length * 4), _ * I, 18, !1);
245
+ const r = new De(k, !1, "catmullrom", 0.01), c = new xe(r, Math.max(2, k.length * 4), _ * I, 18, !1);
246
246
  v.geometry.dispose(), y.geometry.dispose(), v.parent && v.parent.remove(v), y.geometry = c;
247
247
  } catch (r) {
248
248
  console.error("管件更新失败", r);
249
249
  }
250
250
  }
251
- const jt = { class: "panel-content" }, Et = { class: "action-bar" }, Ot = { class: "animation-controls" }, Xt = { class: "control-row" }, Gt = { class: "control-row" }, Zt = { class: "frame-info" }, Jt = { class: "control-row" }, Nt = { class: "progress-bar" }, Wt = { class: "dialog-footer" }, It = /* @__PURE__ */ Le({
251
+ const jt = { class: "panel-content" }, Et = { class: "action-bar" }, Ot = { class: "animation-controls" }, Xt = { class: "control-row" }, Gt = { class: "control-row" }, Zt = { class: "frame-info" }, Nt = { class: "control-row" }, Jt = { class: "progress-bar" }, Wt = { class: "dialog-footer" }, It = /* @__PURE__ */ Le({
252
252
  __name: "animationPanel",
253
253
  props: {
254
254
  model: {},
@@ -264,7 +264,7 @@ const jt = { class: "panel-content" }, Et = { class: "action-bar" }, Ot = { clas
264
264
  });
265
265
  const _ = async () => {
266
266
  let e = {};
267
- m.value === Te.SINGLE && (e = await kt()), m.value === Te.DOUBLE && (e = await xt());
267
+ m.value === Te.SINGLE && (e = await Pt()), m.value === Te.DOUBLE && (e = await xt());
268
268
  const {
269
269
  initialPipeLength: o = 0,
270
270
  pipeRadius: t = 0,
@@ -275,8 +275,8 @@ const jt = { class: "panel-content" }, Et = { class: "action-bar" }, Ot = { clas
275
275
  const x = st(n.value), le = fe(G.value), K = (x == null ? void 0 : x["输出(动画数据)"]) || [];
276
276
  s.value = K.length ? K : [le];
277
277
  }, s = h([]), b = h(!1), f = h(""), w = h(!1), a = h(0), C = h(0), p = h(1e3);
278
- let P = !1;
279
- const r = h(null), c = be(null), T = be(null), A = be(null), $ = h(0), g = h(12.5), V = h(30), B = h([]), L = h(null), Z = ke(() => d.model ? Tt(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
+ let k = !1;
279
+ const r = h(null), c = be(null), T = be(null), A = be(null), $ = h(0), g = h(12.5), V = 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 分隔):
280
280
  ${G.value.join(" ")}
281
281
  0 0 0 ...
282
282
  1 2 3 ...` : "请先加载模型。"), ve = () => s.value.map((e) => ({
@@ -321,7 +321,7 @@ ${G.value.join(" ")}
321
321
  const t = ve();
322
322
  Ee(c.value, t, $.value, g.value, e, o);
323
323
  }
324
- }, k = (e) => {
324
+ }, P = (e) => {
325
325
  if (e < 0 || e >= s.value.length) {
326
326
  console.error(`帧索引 ${e} 超出范围`);
327
327
  return;
@@ -335,15 +335,15 @@ ${G.value.join(" ")}
335
335
  }), r.value.setJointAngles(t);
336
336
  }
337
337
  S(e, 0);
338
- }, J = async () => {
338
+ }, N = async () => {
339
339
  if (s.value.length === 0) {
340
340
  j.error("无法播放动画:无数据");
341
341
  return;
342
342
  }
343
343
  if (!w.value) {
344
- w.value = !0, P = !1, s.value.length - 1 === a.value && (a.value = 0);
344
+ w.value = !0, k = !1, s.value.length - 1 === a.value && (a.value = 0);
345
345
  try {
346
- for (let e = a.value + 1; e < s.value.length && !P; e++) {
346
+ for (let e = a.value + 1; e < s.value.length && !k; e++) {
347
347
  a.value = e;
348
348
  const o = s.value[e], t = {};
349
349
  r.value && Z.value.forEach((i) => {
@@ -357,7 +357,7 @@ ${G.value.join(" ")}
357
357
  }
358
358
  ) : (await new Promise((i) => setTimeout(i, p.value)), C.value = (e + 1) / s.value.length * 100);
359
359
  }
360
- P || j.success("动画播放完成");
360
+ k || j.success("动画播放完成");
361
361
  } catch (e) {
362
362
  console.error("动画播放出错:", e), j.error("动画播放出错");
363
363
  } finally {
@@ -365,8 +365,8 @@ ${G.value.join(" ")}
365
365
  }
366
366
  }
367
367
  }, E = () => {
368
- P = !0, w.value = !1, C.value = 0, j.info("动画已停止");
369
- }, N = () => {
368
+ k = !0, w.value = !1, C.value = 0, j.info("动画已停止");
369
+ }, J = () => {
370
370
  a.value = 0;
371
371
  }, O = () => {
372
372
  if (c.value && T.value) {
@@ -394,13 +394,13 @@ ${G.value.join(" ")}
394
394
  );
395
395
  }
396
396
  }, te = () => {
397
- r.value && r.value.resetToZero(), O(), N(), j.success("机器人和管件已重置");
397
+ r.value && r.value.resetToZero(), O(), J(), j.success("机器人和管件已重置");
398
398
  }, q = (e) => `第 ${e + 1} 帧`, W = (e) => {
399
- w.value && E(), k(e);
399
+ w.value && E(), P(e);
400
400
  }, ie = () => {
401
- w.value && E(), !(a.value + 1 >= s.value.length) && k(a.value + 1);
401
+ w.value && E(), !(a.value + 1 >= s.value.length) && P(a.value + 1);
402
402
  }, F = () => {
403
- w.value && E(), a.value !== 0 && k(a.value - 1);
403
+ w.value && E(), a.value !== 0 && P(a.value - 1);
404
404
  }, ne = () => {
405
405
  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;
406
406
  }, fe = (e) => e == null ? void 0 : e.reduce((o, t) => (o[t] = "0", o), {});
@@ -497,8 +497,8 @@ ${G.value.join(" ")}
497
497
  R.length > 0 ? (s.value = R, j.success(`成功导入 ${R.length} 行数据!`), b.value = !1, f.value = "") : j.error("未能解析到有效数据,请检查格式。");
498
498
  };
499
499
  return Ie(() => {
500
- ne(), P = !0;
501
- }), v({ playAnimation: J, stopAnimation: E, forwardFrame: ie, backwardFrame: F }), (e, o) => {
500
+ ne(), k = !0;
501
+ }), v({ playAnimation: N, stopAnimation: E, forwardFrame: ie, backwardFrame: F }), (e, o) => {
502
502
  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");
503
503
  return Q(), Ve("div", jt, [
504
504
  u("div", Et, [
@@ -513,7 +513,7 @@ ${G.value.join(" ")}
513
513
  }, null, 8, ["disabled"]),
514
514
  l(me, {
515
515
  modelValue: "播放",
516
- onClick: J,
516
+ onClick: N,
517
517
  disabled: s.value.length === 0 || w.value,
518
518
  buttonType: "primary"
519
519
  }, {
@@ -526,7 +526,7 @@ ${G.value.join(" ")}
526
526
  l(X(it))
527
527
  ]),
528
528
  _: 1
529
- })) : Pe("", !0)
529
+ })) : ke("", !0)
530
530
  ]),
531
531
  _: 1
532
532
  }, 8, ["disabled"]),
@@ -617,7 +617,7 @@ ${G.value.join(" ")}
617
617
  o[8] || (o[8] = u("label", null, "当前帧:", -1)),
618
618
  u("span", Zt, he(a.value + 1) + " / " + he(s.value.length), 1)
619
619
  ]),
620
- u("div", Jt, [
620
+ u("div", Nt, [
621
621
  o[9] || (o[9] = u("label", null, "动画进度:", -1)),
622
622
  l(le, {
623
623
  modelValue: a.value,
@@ -631,7 +631,7 @@ ${G.value.join(" ")}
631
631
  style: { "flex-grow": "1", margin: "0 10px" }
632
632
  }, null, 8, ["modelValue", "max", "disabled"])
633
633
  ]),
634
- u("div", Nt, [
634
+ u("div", Jt, [
635
635
  l(K, {
636
636
  percentage: C.value,
637
637
  "show-text": !1,
@@ -668,7 +668,8 @@ ${G.value.join(" ")}
668
668
  placeholder: _e.value
669
669
  }, null, 8, ["modelValue", "placeholder"])
670
670
  ]),
671
- _: 1
671
+ _: 1,
672
+ __: [11]
672
673
  }, 8, ["modelValue"])
673
674
  ]);
674
675
  };
@@ -680,7 +681,7 @@ ${G.value.join(" ")}
680
681
  mainKey: _
681
682
  }));
682
683
  }, Kt = async (y) => {
683
- const d = await Pt(["工件库", "弯管"], y), n = Be("弯管基础参数", d), m = Be("弯管特征尺寸", d), _ = {
684
+ const d = await kt(["工件库", "弯管"], y), n = Be("弯管基础参数", d), m = Be("弯管特征尺寸", d), _ = {
684
685
  outerDiameter: 0,
685
686
  ybcrList: []
686
687
  }, s = Mt(n), b = wt(m);
@@ -698,10 +699,10 @@ ${G.value.join(" ")}
698
699
  cleanup: a,
699
700
  setModels: C,
700
701
  clearAllModels: p,
701
- axesHelperVisible: P,
702
+ axesHelperVisible: k,
702
703
  toggleAxesVisibility: r,
703
704
  addModelAndFit: c
704
- } = Je(n);
705
+ } = Ne(n);
705
706
  h(null);
706
707
  const T = h({ file: null, pipe: "" });
707
708
  h(null), h(!1);
@@ -714,17 +715,17 @@ ${G.value.join(" ")}
714
715
  list: [],
715
716
  reverse: !1
716
717
  }), V = (S) => {
717
- const { length: k, outerDiameter: J, innerDiameter: E, thickness: N, ybcrList: O } = S || {};
718
+ const { length: P, outerDiameter: N, innerDiameter: E, thickness: J, ybcrList: O } = S || {};
718
719
  g.value.form = {
719
- length: k,
720
- outerDiameter: J,
720
+ length: P,
721
+ outerDiameter: N,
721
722
  innerDiameter: E,
722
- thickness: N
723
+ thickness: J
723
724
  }, g.value.list = O;
724
725
  }, B = () => {
725
- const { form: S, list: k } = g.value, {
726
- outerDiameter: J
727
- } = S, E = J / 2, N = k == null ? void 0 : k.map(((te) => {
726
+ const { form: S, list: P } = g.value, {
727
+ outerDiameter: N
728
+ } = S, E = N / 2, J = P == null ? void 0 : P.map((te) => {
728
729
  const { y: q, b: W, c: ie, r: F, Y: ne, B: fe, C: re, R: we } = te;
729
730
  return ne ? {
730
731
  Y: ne,
@@ -737,9 +738,9 @@ ${G.value.join(" ")}
737
738
  C: ie,
738
739
  R: F
739
740
  };
740
- }));
741
+ });
741
742
  p();
742
- const O = Yt(N, E);
743
+ const O = Yt(J, E);
743
744
  c(O);
744
745
  }, L = h(!1), Z = () => {
745
746
  const S = L.value;
@@ -752,8 +753,8 @@ ${G.value.join(" ")}
752
753
  const S = await qt();
753
754
  $(S);
754
755
  }, se = async (S) => {
755
- const k = await Kt(S);
756
- V(k);
756
+ const P = await Kt(S);
757
+ V(P);
757
758
  };
758
759
  return ae(() => g, () => {
759
760
  B();
@@ -773,8 +774,8 @@ ${G.value.join(" ")}
773
774
  ve();
774
775
  }), Ze(() => {
775
776
  window.removeEventListener("resize", f), a();
776
- }), v({ openDialog: _e }), (S, k) => {
777
- const J = U("el-icon"), E = 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");
777
+ }), v({ openDialog: _e }), (S, P) => {
778
+ const N = U("el-icon"), E = U("el-option"), J = 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");
778
779
  return Q(), ye(Ft, {
779
780
  class: "pipe-analysis-dialog",
780
781
  visible: ee.value,
@@ -784,18 +785,18 @@ ${G.value.join(" ")}
784
785
  }, {
785
786
  header: M(() => [
786
787
  u("div", Qt, [
787
- k[6] || (k[6] = u("div", {
788
+ P[6] || (P[6] = u("div", {
788
789
  class: "header-left",
789
790
  title: "管件解析"
790
791
  }, " 管件解析 ", -1)),
791
792
  u("div", el, [
792
- l(J, null, {
793
+ l(N, null, {
793
794
  default: M(() => [
794
795
  l(X(rt), { onClick: Z })
795
796
  ]),
796
797
  _: 1
797
798
  }),
798
- l(J, null, {
799
+ l(N, null, {
799
800
  default: M(() => [
800
801
  l(X(ct), { onClick: G })
801
802
  ]),
@@ -808,7 +809,7 @@ ${G.value.join(" ")}
808
809
  u("div", tl, [
809
810
  u("div", ll, [
810
811
  u("div", ol, [
811
- k[7] || (k[7] = u("span", { class: "item-view-group" }, [
812
+ P[7] || (P[7] = u("span", { class: "item-view-group" }, [
812
813
  u("span", { class: "group-name-wrap" }, "输入")
813
814
  ], -1)),
814
815
  u("div", nl, [
@@ -820,9 +821,9 @@ ${G.value.join(" ")}
820
821
  default: M(() => [
821
822
  l(O, { label: "弯管" }, {
822
823
  default: M(() => [
823
- l(N, {
824
+ l(J, {
824
825
  modelValue: T.value.pipe,
825
- "onUpdate:modelValue": k[0] || (k[0] = (F) => T.value.pipe = F),
826
+ "onUpdate:modelValue": P[0] || (P[0] = (F) => T.value.pipe = F),
826
827
  placeholder: "请选择弯管",
827
828
  onChange: se
828
829
  }, {
@@ -845,9 +846,9 @@ ${G.value.join(" ")}
845
846
  u("div", al, [
846
847
  l(O, { label: "加工方向" }, {
847
848
  default: M(() => [
848
- l(N, {
849
+ l(J, {
849
850
  modelValue: g.value.reverse,
850
- "onUpdate:modelValue": k[1] || (k[1] = (F) => g.value.reverse = F),
851
+ "onUpdate:modelValue": P[1] || (P[1] = (F) => g.value.reverse = F),
851
852
  placeholder: "请选择加工方向"
852
853
  }, {
853
854
  default: M(() => [
@@ -865,7 +866,7 @@ ${G.value.join(" ")}
865
866
  ]),
866
867
  _: 1
867
868
  }),
868
- k[8] || (k[8] = u("span", { class: "item-view-group" }, [
869
+ P[8] || (P[8] = u("span", { class: "item-view-group" }, [
869
870
  u("span", { class: "group-name-wrap" }, "输出(弯管基础参数)")
870
871
  ], -1)),
871
872
  u("div", sl, [
@@ -880,7 +881,7 @@ ${G.value.join(" ")}
880
881
  default: M(() => [
881
882
  l(q, {
882
883
  modelValue: g.value.form.length,
883
- "onUpdate:modelValue": k[2] || (k[2] = (F) => g.value.form.length = F)
884
+ "onUpdate:modelValue": P[2] || (P[2] = (F) => g.value.form.length = F)
884
885
  }, null, 8, ["modelValue"])
885
886
  ]),
886
887
  _: 1
@@ -889,7 +890,7 @@ ${G.value.join(" ")}
889
890
  default: M(() => [
890
891
  l(q, {
891
892
  modelValue: g.value.form.outerDiameter,
892
- "onUpdate:modelValue": k[3] || (k[3] = (F) => g.value.form.outerDiameter = F)
893
+ "onUpdate:modelValue": P[3] || (P[3] = (F) => g.value.form.outerDiameter = F)
893
894
  }, null, 8, ["modelValue"])
894
895
  ]),
895
896
  _: 1
@@ -898,7 +899,7 @@ ${G.value.join(" ")}
898
899
  default: M(() => [
899
900
  l(q, {
900
901
  modelValue: g.value.form.innerDiameter,
901
- "onUpdate:modelValue": k[4] || (k[4] = (F) => g.value.form.innerDiameter = F)
902
+ "onUpdate:modelValue": P[4] || (P[4] = (F) => g.value.form.innerDiameter = F)
902
903
  }, null, 8, ["modelValue"])
903
904
  ]),
904
905
  _: 1
@@ -907,7 +908,7 @@ ${G.value.join(" ")}
907
908
  default: M(() => [
908
909
  l(q, {
909
910
  modelValue: g.value.form.thickness,
910
- "onUpdate:modelValue": k[5] || (k[5] = (F) => g.value.form.thickness = F)
911
+ "onUpdate:modelValue": P[5] || (P[5] = (F) => g.value.form.thickness = F)
911
912
  }, null, 8, ["modelValue"])
912
913
  ]),
913
914
  _: 1
@@ -964,7 +965,7 @@ ${G.value.join(" ")}
964
965
  }, dl = {
965
966
  ref: "pipe2",
966
967
  class: "pipe-container"
967
- }, 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 = {
968
+ }, 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 = {
968
969
  key: 0,
969
970
  class: "loading-overlay"
970
971
  }, Ml = /* @__PURE__ */ Le({
@@ -974,7 +975,7 @@ ${G.value.join(" ")}
974
975
  threeData: {}
975
976
  },
976
977
  setup(y) {
977
- const v = y, d = h(Ye.ROBOT), n = h(null), m = h(), _ = h(!1), s = h(""), b = h(!1), f = h(""), w = h(!1), a = h(""), C = h(!1), p = h(""), P = be(null), r = be(null), c = h(), {
978
+ const v = y, d = h(Ye.ROBOT), n = h(null), m = h(), _ = h(!1), s = h(""), b = h(!1), f = h(""), w = h(!1), a = h(""), C = h(!1), p = h(""), k = be(null), r = be(null), c = h(), {
978
979
  currentModels: T,
979
980
  resetView: A,
980
981
  initThreeJS: $,
@@ -986,16 +987,16 @@ ${G.value.join(" ")}
986
987
  toggleAxesVisibility: ee,
987
988
  zoomIn: G,
988
989
  zoomOut: _e
989
- } = Je(n), { loadSceneFromFile: ve } = at(
990
+ } = Ne(n), { loadSceneFromFile: ve } = nt(
990
991
  V,
991
992
  T,
992
993
  _,
993
994
  s
994
- ), { isAnimating: se, toggleAnimation: S, startAnimation: k, stopAnimation: J } = Qe(V, T), { isClipping: E, activeClippingAxis: N, toggleClipping: O, updateClippingPlanes: te } = et(V, T), { initRaycaster: q, selectedObject3D: W, setSelectedObjVisible: ie, updatePosition: F, updateRotation: ne, dispose: fe } = ot(n, V, T), re = () => {
995
+ ), { isAnimating: se, toggleAnimation: S, startAnimation: P, stopAnimation: N } = Qe(V, T), { isClipping: E, activeClippingAxis: J, toggleClipping: O, updateClippingPlanes: te } = et(V, T), { initRaycaster: q, selectedObject3D: W, setSelectedObjVisible: ie, updatePosition: F, updateRotation: ne, dispose: fe } = ot(n, V, T), re = () => {
995
996
  ee();
996
997
  }, we = (t) => {
997
- N.value = t, te();
998
- }, Ae = ke(() => d.value === Ye.ROBOT), $e = ke(() => d.value === Ye.PIPECOMPARSION), ce = (t) => {
998
+ J.value = t, te();
999
+ }, Ae = Pe(() => d.value === Ye.ROBOT), $e = Pe(() => d.value === Ye.PIPECOMPARSION), ce = (t) => {
999
1000
  b.value = !0, f.value = t, t === "剖面视图" && !E.value && O();
1000
1001
  }, ge = (t) => {
1001
1002
  w.value = !0, a.value = t;
@@ -1018,16 +1019,16 @@ ${G.value.join(" ")}
1018
1019
  if (!i.name.toLowerCase().endsWith(".urdf"))
1019
1020
  return;
1020
1021
  ve(i).then((R) => {
1021
- P.value = R;
1022
+ k.value = R;
1022
1023
  }).catch((R) => {
1023
- console.error("加载URDF文件时发生错误:", R), j.error("加载urdf模型失败"), P.value = null;
1024
+ console.error("加载URDF文件时发生错误:", R), j.error("加载urdf模型失败"), k.value = null;
1024
1025
  });
1025
1026
  } else
1026
- P.value = null;
1027
+ k.value = null;
1027
1028
  }, {
1028
1029
  immediate: !0,
1029
1030
  deep: !0
1030
- }), ae(P, (t) => {
1031
+ }), ae(k, (t) => {
1031
1032
  L(t ? [t] : []), q();
1032
1033
  });
1033
1034
  let o = null;
@@ -1041,7 +1042,7 @@ ${G.value.join(" ")}
1041
1042
  console.error("Three.js 初始化失败:", t), j.error("渲染引擎初始化失败!");
1042
1043
  }
1043
1044
  }), Ze(() => {
1044
- f.value = "", a.value = "", o && o.disconnect(), se.value && J(), B(), fe();
1045
+ f.value = "", a.value = "", o && o.disconnect(), se.value && N(), B(), fe();
1045
1046
  }), (t, i) => {
1046
1047
  const R = U("el-scrollbar");
1047
1048
  return Q(), Ve("div", cl, [
@@ -1220,20 +1221,20 @@ ${G.value.join(" ")}
1220
1221
  return [
1221
1222
  f.value === "场景树" ? (Q(), ye(At, {
1222
1223
  key: 0,
1223
- model: P.value
1224
- }, null, 8, ["model"])) : Pe("", !0),
1224
+ model: k.value
1225
+ }, null, 8, ["model"])) : ke("", !0),
1225
1226
  f.value === "剖面视图" ? (Q(), ye(tt, {
1226
1227
  key: 1,
1227
- value: X(N),
1228
+ value: X(J),
1228
1229
  onChange: we
1229
- }, null, 8, ["value"])) : Pe("", !0),
1230
- f.value === "工件树" ? (Q(), ye(nt, {
1230
+ }, null, 8, ["value"])) : ke("", !0),
1231
+ f.value === "工件树" ? (Q(), ye(at, {
1231
1232
  key: 2,
1232
1233
  model: (x = X(W)) == null ? void 0 : x.obj,
1233
1234
  onVisibleChange: X(ie),
1234
1235
  onUpdatePosition: X(F),
1235
1236
  onUpdateRotation: X(ne)
1236
- }, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : Pe("", !0)
1237
+ }, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : ke("", !0)
1237
1238
  ];
1238
1239
  }),
1239
1240
  _: 1
@@ -1242,8 +1243,8 @@ ${G.value.join(" ")}
1242
1243
  ], 512), [
1243
1244
  [de, b.value]
1244
1245
  ]),
1245
- pe(u("div", Pl, [
1246
- u("div", kl, [
1246
+ pe(u("div", kl, [
1247
+ u("div", Pl, [
1247
1248
  u("span", null, he(a.value), 1),
1248
1249
  u("span", {
1249
1250
  class: "close",
@@ -1253,13 +1254,13 @@ ${G.value.join(" ")}
1253
1254
  u("div", xl, [
1254
1255
  l(R, { height: "100%" }, {
1255
1256
  default: M(() => [
1256
- pe(l($t, { model: P.value }, null, 8, ["model"]), [
1257
+ pe(l($t, { model: k.value }, null, 8, ["model"]), [
1257
1258
  [de, a.value === "关节控制"]
1258
1259
  ]),
1259
1260
  pe(l(Ht, {
1260
1261
  ref_key: "animationPanelRef",
1261
1262
  ref: c,
1262
- model: P.value,
1263
+ model: k.value,
1263
1264
  threeData: v.threeData
1264
1265
  }, null, 8, ["model", "threeData"]), [
1265
1266
  [de, a.value === "动画仿真"]
@@ -1275,7 +1276,7 @@ ${G.value.join(" ")}
1275
1276
  _.value ? (Q(), Ve("div", Rl, [
1276
1277
  i[10] || (i[10] = u("div", { class: "loading-spinner" }, null, -1)),
1277
1278
  u("p", null, he(s.value), 1)
1278
- ])) : Pe("", !0),
1279
+ ])) : ke("", !0),
1279
1280
  l(rl, {
1280
1281
  ref_key: "pipeAnalysisPanelRef",
1281
1282
  ref: m
@@ -1283,7 +1284,7 @@ ${G.value.join(" ")}
1283
1284
  ]);
1284
1285
  };
1285
1286
  }
1286
- }), Jl = /* @__PURE__ */ Ue(Ml, [["__scopeId", "data-v-ec34be42"]]);
1287
+ }), Nl = /* @__PURE__ */ Ue(Ml, [["__scopeId", "data-v-ec34be42"]]);
1287
1288
  export {
1288
- Jl as default
1289
+ Nl as default
1289
1290
  };