ss-component-new 1.3.644 → 1.3.646

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/{MTLLoader-CzUQTGKY.js → MTLLoader-CZqN7Zrs.js} +2 -2
  2. package/dist/{URDFLoader-Cpc_aT68.js → URDFLoader-5yxKptss.js} +589 -584
  3. package/dist/{animationData-BgDqzRLe.js → animationData-_pwKquvD.js} +3 -3
  4. package/dist/{array-D8M1X1Ro.js → array-O8Kxp5jI.js} +13 -14
  5. package/dist/{clone-DqQwDoSV.js → clone-BjJ_R9XN.js} +1 -1
  6. package/dist/{eleIcon-Dtsx377t.js → eleIcon-BWVKfp5t.js} +2 -2
  7. package/dist/{iconfont-B4WPRBLy.js → iconfont-DGtoabuW.js} +91 -91
  8. package/dist/{index-BIxhrXtt.js → index--khMgoSl.js} +3 -3
  9. package/dist/{index-BrtXf90v.js → index-8vLuP9mO.js} +23036 -22951
  10. package/dist/{index-CFjNYQu4.js → index-BB_8QEV4.js} +5 -5
  11. package/dist/{index-rlStojTL.js → index-BFqUz4pN.js} +1 -1
  12. package/dist/{index-C9y1HVim.js → index-BU8pWPcl.js} +6 -6
  13. package/dist/{index-BvrZtqVU.js → index-Ba47LLQD.js} +18 -20
  14. package/dist/{index-IXxKIj3h.js → index-BcWf6LmN.js} +4 -4
  15. package/dist/{index-B2i-wZ7I.js → index-BibSA99e.js} +17 -20
  16. package/dist/index-BuRhsuYg.js +11586 -0
  17. package/dist/{index-BI3gwdBk.js → index-Bvvz41NY.js} +1 -1
  18. package/dist/{index-NwTP3AQl.js → index-BwEO2Ckl.js} +7 -7
  19. package/dist/{index-FCnO8UeA.js → index-C6ZyziE9.js} +4 -4
  20. package/dist/{index-DT7MjPj0.js → index-CCHCUfkj.js} +60 -62
  21. package/dist/index-CEBVoJT9.js +2623 -0
  22. package/dist/{index-D8cOzz3g.js → index-CUB0YIQp.js} +5 -5
  23. package/dist/{index-awI81WIz.js → index-CUUkM-MP.js} +43 -47
  24. package/dist/{index-Cnet9-km.js → index-CcdSuqPt.js} +8 -8
  25. package/dist/{index-z5wovvkI.js → index-CdGcTCI1.js} +8 -8
  26. package/dist/{index-CB2B4YM9.js → index-CmGpt__g.js} +3 -3
  27. package/dist/{index-DLZVUgaP.js → index-CwKQTNJ6.js} +2 -2
  28. package/dist/{index-11kpzK0A.js → index-DJrzqi4-.js} +17 -17
  29. package/dist/{index-C_proWoC.js → index-DNlWMJrl.js} +4 -4
  30. package/dist/{index-0Pw9Txsz.js → index-DTocCaLK.js} +167 -176
  31. package/dist/{index-C_c-5ZAh.js → index-DV-y9RNF.js} +57 -61
  32. package/dist/{index-DGmjWChr.js → index-DW6CZC2b.js} +1053 -1051
  33. package/dist/{index-CDpLX430.js → index-D_kI6aHR.js} +7 -8
  34. package/dist/{index-DzZWEErj.js → index-Dae7KcRH.js} +3 -3
  35. package/dist/{index-DpcGBPYo.js → index-DlH7-Quf.js} +3 -3
  36. package/dist/{index-BjSS0ovo.js → index-DwmZbmjQ.js} +74 -80
  37. package/dist/{index-C4OLi6tq.js → index-FPf0BzIG.js} +554 -551
  38. package/dist/{index-fxJSVddL.js → index-JxFaaWxD.js} +1 -1
  39. package/dist/{index-tLd2cEHX.js → index-YVR3acYT.js} +1 -1
  40. package/dist/{index-BHtNKL1L.js → index-dD-mKgue.js} +2 -2
  41. package/dist/{index-DHmpeyMt.js → index-p7BMuuhh.js} +9318 -8866
  42. package/dist/{index-BkAYMm70.js → index-qv_1lhhv.js} +2 -2
  43. package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
  44. package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js} +27760 -27735
  45. package/dist/isString-CoCw_sp3.js +8 -0
  46. package/dist/{localIcon-D5UoFBU5.js → localIcon-CoJHw5ss.js} +1 -1
  47. package/dist/{main-CAAw_Zsf.js → main-B2M0A-TQ.js} +9 -9
  48. package/dist/{menuIndex-2JX7SuB8.js → menuIndex-CY5XD7Ny.js} +1 -1
  49. package/dist/{request-D-LN5bvn.js → request-DiogHwkN.js} +3481 -3062
  50. package/dist/ss-component.css +3 -3
  51. package/dist/ss-component.js +14 -14
  52. package/dist/ss-component2.js +13 -13
  53. package/dist/ss-component3.js +1 -1
  54. package/dist/{threeModel-D7pZcypI.js → threeModel-BpuW7rIv.js} +174 -174
  55. package/dist/{threePreview-Cjupz9HK.js → threePreview-BC0mxp0t.js} +12 -12
  56. package/dist/{threeSceneView-DzpPQCjn.js → threeSceneView-Dk8H_CF6.js} +110 -111
  57. package/dist/{threeSceneViewForCPMPIP-C39zZNzT.js → threeSceneViewForCPMPIP-DSKXueAv.js} +16 -17
  58. package/dist/{threeTrackPathView-DuiNPnon.js → threeTrackPathView-C8RcSYdk.js} +7 -7
  59. package/dist/{threeViewerHost-URHOdtr5.js → threeViewerHost-DQt5_D31.js} +4 -4
  60. package/dist/{urdfTree-CymLIkE8.js → urdfTree-BGPikD3W.js} +9 -9
  61. package/dist/{workpieceTreePanel-DaTdJC9q.js → workpieceTreePanel-DO6BojnM.js} +56 -60
  62. package/package.json +1 -1
  63. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  64. package/dist/index-C9QM6oa1.js +0 -11397
  65. package/dist/index-Dzmh37xZ.js +0 -572
  66. package/dist/isString-CXX7MUiv.js +0 -8
  67. package/dist/obj/model.mtl +0 -42
  68. package/dist/obj/model.obj +0 -26110
  69. package/public/obj/model.mtl +0 -42
  70. package/public/obj/model.obj +0 -26110
@@ -1,22 +1,22 @@
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-URHOdtr5.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";
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-DQt5_D31.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";
7
7
  /* empty css */
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-BrtXf90v.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-Dzmh37xZ.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";
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-8vLuP9mO.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-CEBVoJT9.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";
17
17
  import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
18
- import { s as Ft } from "./index-11kpzK0A.js";
19
- const I = 1e-3, oe = ut.degToRad, je = new dt({
18
+ import { s as Ft } from "./index-DJrzqi4-.js";
19
+ const I = 1e-3, oe = pt.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 Je = (y) => y.reduce((v, d) => {
30
+ const Ne = (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 Je = (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, k = new H().makeRotationAxis(s.localZ, p), c = s.localX.clone().multiplyScalar(f).applyMatrix4(k), T = w.clone().add(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);
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 pt();
56
+ const d = new ut();
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 k = n.pos.clone(), r = Lt(p, k, v * I);
74
+ const P = n.pos.clone(), r = Lt(p, P, 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), k = C * I, r = [];
86
+ const p = oe(a), P = C * I, r = [];
87
87
  r.push(n.pos.clone());
88
- const c = n.pos.clone().add(n.localX.clone().multiplyScalar(-k)), T = Math.max(16, Math.ceil(a / 5));
88
+ const c = n.pos.clone().add(n.localX.clone().multiplyScalar(-P)), 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(k).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(P).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), k = new bt({
119
+ const p = new ht(a), P = new bt({
120
120
  map: p,
121
121
  transparent: !0,
122
122
  depthTest: !1,
123
123
  depthWrite: !1
124
- }), r = new yt(k), c = n * 3;
124
+ }), r = new yt(P), 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 = Je(s), w = Math.max(0, d - f), a = [];
148
+ const f = Ne(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 k = [];
158
+ const P = [];
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
- k.push(A);
166
+ P.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 k)
180
+ for (const r of P)
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 = Je(m), b = Math.max(0, v - s), f = [];
203
+ const s = Ne(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 k = m[p], r = We(k);
215
+ const P = m[p], r = We(P);
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 = k.B ?? 0, $ = k.C ?? 0;
224
+ const A = P.B ?? 0, $ = P.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 k = [...p, ...a];
243
+ const P = [...p, ...a];
244
244
  try {
245
- const r = new De(k, !1, "catmullrom", 0.01), c = new xe(r, Math.max(2, k.length * 4), _ * I, 18, !1);
245
+ const r = new De(P, !1, "catmullrom", 0.01), c = new xe(r, Math.max(2, P.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" }, Nt = { class: "control-row" }, Jt = { 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" }, Jt = { class: "control-row" }, Nt = { 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 Pt()), m.value === Te.DOUBLE && (e = await xt());
267
+ m.value === Te.SINGLE && (e = await kt()), 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 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 分隔):
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 分隔):
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
- }, P = (e) => {
324
+ }, k = (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
- }, N = async () => {
338
+ }, J = 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, k = !1, s.value.length - 1 === a.value && (a.value = 0);
344
+ w.value = !0, P = !1, s.value.length - 1 === a.value && (a.value = 0);
345
345
  try {
346
- for (let e = a.value + 1; e < s.value.length && !k; e++) {
346
+ for (let e = a.value + 1; e < s.value.length && !P; 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
- k || j.success("动画播放完成");
360
+ P || 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
- k = !0, w.value = !1, C.value = 0, j.info("动画已停止");
369
- }, J = () => {
368
+ P = !0, w.value = !1, C.value = 0, j.info("动画已停止");
369
+ }, N = () => {
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(), J(), j.success("机器人和管件已重置");
397
+ r.value && r.value.resetToZero(), O(), N(), j.success("机器人和管件已重置");
398
398
  }, q = (e) => `第 ${e + 1} 帧`, W = (e) => {
399
- w.value && E(), P(e);
399
+ w.value && E(), k(e);
400
400
  }, ie = () => {
401
- w.value && E(), !(a.value + 1 >= s.value.length) && P(a.value + 1);
401
+ w.value && E(), !(a.value + 1 >= s.value.length) && k(a.value + 1);
402
402
  }, F = () => {
403
- w.value && E(), a.value !== 0 && P(a.value - 1);
403
+ w.value && E(), a.value !== 0 && k(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(), k = !0;
501
- }), v({ playAnimation: N, stopAnimation: E, forwardFrame: ie, backwardFrame: F }), (e, o) => {
500
+ ne(), P = !0;
501
+ }), v({ playAnimation: J, 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: N,
516
+ onClick: J,
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
- })) : ke("", !0)
529
+ })) : Pe("", !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", Nt, [
620
+ u("div", Jt, [
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", Jt, [
634
+ u("div", Nt, [
635
635
  l(K, {
636
636
  percentage: C.value,
637
637
  "show-text": !1,
@@ -668,8 +668,7 @@ ${G.value.join(" ")}
668
668
  placeholder: _e.value
669
669
  }, null, 8, ["modelValue", "placeholder"])
670
670
  ]),
671
- _: 1,
672
- __: [11]
671
+ _: 1
673
672
  }, 8, ["modelValue"])
674
673
  ]);
675
674
  };
@@ -681,7 +680,7 @@ ${G.value.join(" ")}
681
680
  mainKey: _
682
681
  }));
683
682
  }, Kt = async (y) => {
684
- const d = await kt(["工件库", "弯管"], y), n = Be("弯管基础参数", d), m = Be("弯管特征尺寸", d), _ = {
683
+ const d = await Pt(["工件库", "弯管"], y), n = Be("弯管基础参数", d), m = Be("弯管特征尺寸", d), _ = {
685
684
  outerDiameter: 0,
686
685
  ybcrList: []
687
686
  }, s = Mt(n), b = wt(m);
@@ -699,10 +698,10 @@ ${G.value.join(" ")}
699
698
  cleanup: a,
700
699
  setModels: C,
701
700
  clearAllModels: p,
702
- axesHelperVisible: k,
701
+ axesHelperVisible: P,
703
702
  toggleAxesVisibility: r,
704
703
  addModelAndFit: c
705
- } = Ne(n);
704
+ } = Je(n);
706
705
  h(null);
707
706
  const T = h({ file: null, pipe: "" });
708
707
  h(null), h(!1);
@@ -715,17 +714,17 @@ ${G.value.join(" ")}
715
714
  list: [],
716
715
  reverse: !1
717
716
  }), V = (S) => {
718
- const { length: P, outerDiameter: N, innerDiameter: E, thickness: J, ybcrList: O } = S || {};
717
+ const { length: k, outerDiameter: J, innerDiameter: E, thickness: N, ybcrList: O } = S || {};
719
718
  g.value.form = {
720
- length: P,
721
- outerDiameter: N,
719
+ length: k,
720
+ outerDiameter: J,
722
721
  innerDiameter: E,
723
- thickness: J
722
+ thickness: N
724
723
  }, g.value.list = O;
725
724
  }, B = () => {
726
- const { form: S, list: P } = g.value, {
727
- outerDiameter: N
728
- } = S, E = N / 2, J = P == null ? void 0 : P.map((te) => {
725
+ const { form: S, list: k } = g.value, {
726
+ outerDiameter: J
727
+ } = S, E = J / 2, N = k == null ? void 0 : k.map(((te) => {
729
728
  const { y: q, b: W, c: ie, r: F, Y: ne, B: fe, C: re, R: we } = te;
730
729
  return ne ? {
731
730
  Y: ne,
@@ -738,9 +737,9 @@ ${G.value.join(" ")}
738
737
  C: ie,
739
738
  R: F
740
739
  };
741
- });
740
+ }));
742
741
  p();
743
- const O = Yt(J, E);
742
+ const O = Yt(N, E);
744
743
  c(O);
745
744
  }, L = h(!1), Z = () => {
746
745
  const S = L.value;
@@ -753,8 +752,8 @@ ${G.value.join(" ")}
753
752
  const S = await qt();
754
753
  $(S);
755
754
  }, se = async (S) => {
756
- const P = await Kt(S);
757
- V(P);
755
+ const k = await Kt(S);
756
+ V(k);
758
757
  };
759
758
  return ae(() => g, () => {
760
759
  B();
@@ -774,8 +773,8 @@ ${G.value.join(" ")}
774
773
  ve();
775
774
  }), Ze(() => {
776
775
  window.removeEventListener("resize", f), a();
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");
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");
779
778
  return Q(), ye(Ft, {
780
779
  class: "pipe-analysis-dialog",
781
780
  visible: ee.value,
@@ -785,18 +784,18 @@ ${G.value.join(" ")}
785
784
  }, {
786
785
  header: M(() => [
787
786
  u("div", Qt, [
788
- P[6] || (P[6] = u("div", {
787
+ k[6] || (k[6] = u("div", {
789
788
  class: "header-left",
790
789
  title: "管件解析"
791
790
  }, " 管件解析 ", -1)),
792
791
  u("div", el, [
793
- l(N, null, {
792
+ l(J, null, {
794
793
  default: M(() => [
795
794
  l(X(rt), { onClick: Z })
796
795
  ]),
797
796
  _: 1
798
797
  }),
799
- l(N, null, {
798
+ l(J, null, {
800
799
  default: M(() => [
801
800
  l(X(ct), { onClick: G })
802
801
  ]),
@@ -809,7 +808,7 @@ ${G.value.join(" ")}
809
808
  u("div", tl, [
810
809
  u("div", ll, [
811
810
  u("div", ol, [
812
- P[7] || (P[7] = u("span", { class: "item-view-group" }, [
811
+ k[7] || (k[7] = u("span", { class: "item-view-group" }, [
813
812
  u("span", { class: "group-name-wrap" }, "输入")
814
813
  ], -1)),
815
814
  u("div", nl, [
@@ -821,9 +820,9 @@ ${G.value.join(" ")}
821
820
  default: M(() => [
822
821
  l(O, { label: "弯管" }, {
823
822
  default: M(() => [
824
- l(J, {
823
+ l(N, {
825
824
  modelValue: T.value.pipe,
826
- "onUpdate:modelValue": P[0] || (P[0] = (F) => T.value.pipe = F),
825
+ "onUpdate:modelValue": k[0] || (k[0] = (F) => T.value.pipe = F),
827
826
  placeholder: "请选择弯管",
828
827
  onChange: se
829
828
  }, {
@@ -846,9 +845,9 @@ ${G.value.join(" ")}
846
845
  u("div", al, [
847
846
  l(O, { label: "加工方向" }, {
848
847
  default: M(() => [
849
- l(J, {
848
+ l(N, {
850
849
  modelValue: g.value.reverse,
851
- "onUpdate:modelValue": P[1] || (P[1] = (F) => g.value.reverse = F),
850
+ "onUpdate:modelValue": k[1] || (k[1] = (F) => g.value.reverse = F),
852
851
  placeholder: "请选择加工方向"
853
852
  }, {
854
853
  default: M(() => [
@@ -866,7 +865,7 @@ ${G.value.join(" ")}
866
865
  ]),
867
866
  _: 1
868
867
  }),
869
- P[8] || (P[8] = u("span", { class: "item-view-group" }, [
868
+ k[8] || (k[8] = u("span", { class: "item-view-group" }, [
870
869
  u("span", { class: "group-name-wrap" }, "输出(弯管基础参数)")
871
870
  ], -1)),
872
871
  u("div", sl, [
@@ -881,7 +880,7 @@ ${G.value.join(" ")}
881
880
  default: M(() => [
882
881
  l(q, {
883
882
  modelValue: g.value.form.length,
884
- "onUpdate:modelValue": P[2] || (P[2] = (F) => g.value.form.length = F)
883
+ "onUpdate:modelValue": k[2] || (k[2] = (F) => g.value.form.length = F)
885
884
  }, null, 8, ["modelValue"])
886
885
  ]),
887
886
  _: 1
@@ -890,7 +889,7 @@ ${G.value.join(" ")}
890
889
  default: M(() => [
891
890
  l(q, {
892
891
  modelValue: g.value.form.outerDiameter,
893
- "onUpdate:modelValue": P[3] || (P[3] = (F) => g.value.form.outerDiameter = F)
892
+ "onUpdate:modelValue": k[3] || (k[3] = (F) => g.value.form.outerDiameter = F)
894
893
  }, null, 8, ["modelValue"])
895
894
  ]),
896
895
  _: 1
@@ -899,7 +898,7 @@ ${G.value.join(" ")}
899
898
  default: M(() => [
900
899
  l(q, {
901
900
  modelValue: g.value.form.innerDiameter,
902
- "onUpdate:modelValue": P[4] || (P[4] = (F) => g.value.form.innerDiameter = F)
901
+ "onUpdate:modelValue": k[4] || (k[4] = (F) => g.value.form.innerDiameter = F)
903
902
  }, null, 8, ["modelValue"])
904
903
  ]),
905
904
  _: 1
@@ -908,7 +907,7 @@ ${G.value.join(" ")}
908
907
  default: M(() => [
909
908
  l(q, {
910
909
  modelValue: g.value.form.thickness,
911
- "onUpdate:modelValue": P[5] || (P[5] = (F) => g.value.form.thickness = F)
910
+ "onUpdate:modelValue": k[5] || (k[5] = (F) => g.value.form.thickness = F)
912
911
  }, null, 8, ["modelValue"])
913
912
  ]),
914
913
  _: 1
@@ -965,7 +964,7 @@ ${G.value.join(" ")}
965
964
  }, dl = {
966
965
  ref: "pipe2",
967
966
  class: "pipe-container"
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 = {
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 = {
969
968
  key: 0,
970
969
  class: "loading-overlay"
971
970
  }, Ml = /* @__PURE__ */ Le({
@@ -975,7 +974,7 @@ ${G.value.join(" ")}
975
974
  threeData: {}
976
975
  },
977
976
  setup(y) {
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(), {
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(), {
979
978
  currentModels: T,
980
979
  resetView: A,
981
980
  initThreeJS: $,
@@ -987,16 +986,16 @@ ${G.value.join(" ")}
987
986
  toggleAxesVisibility: ee,
988
987
  zoomIn: G,
989
988
  zoomOut: _e
990
- } = Ne(n), { loadSceneFromFile: ve } = nt(
989
+ } = Je(n), { loadSceneFromFile: ve } = at(
991
990
  V,
992
991
  T,
993
992
  _,
994
993
  s
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 = () => {
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 = () => {
996
995
  ee();
997
996
  }, we = (t) => {
998
- J.value = t, te();
999
- }, Ae = Pe(() => d.value === Ye.ROBOT), $e = Pe(() => d.value === Ye.PIPECOMPARSION), ce = (t) => {
997
+ N.value = t, te();
998
+ }, Ae = ke(() => d.value === Ye.ROBOT), $e = ke(() => d.value === Ye.PIPECOMPARSION), ce = (t) => {
1000
999
  b.value = !0, f.value = t, t === "剖面视图" && !E.value && O();
1001
1000
  }, ge = (t) => {
1002
1001
  w.value = !0, a.value = t;
@@ -1019,16 +1018,16 @@ ${G.value.join(" ")}
1019
1018
  if (!i.name.toLowerCase().endsWith(".urdf"))
1020
1019
  return;
1021
1020
  ve(i).then((R) => {
1022
- k.value = R;
1021
+ P.value = R;
1023
1022
  }).catch((R) => {
1024
- console.error("加载URDF文件时发生错误:", R), j.error("加载urdf模型失败"), k.value = null;
1023
+ console.error("加载URDF文件时发生错误:", R), j.error("加载urdf模型失败"), P.value = null;
1025
1024
  });
1026
1025
  } else
1027
- k.value = null;
1026
+ P.value = null;
1028
1027
  }, {
1029
1028
  immediate: !0,
1030
1029
  deep: !0
1031
- }), ae(k, (t) => {
1030
+ }), ae(P, (t) => {
1032
1031
  L(t ? [t] : []), q();
1033
1032
  });
1034
1033
  let o = null;
@@ -1042,7 +1041,7 @@ ${G.value.join(" ")}
1042
1041
  console.error("Three.js 初始化失败:", t), j.error("渲染引擎初始化失败!");
1043
1042
  }
1044
1043
  }), Ze(() => {
1045
- f.value = "", a.value = "", o && o.disconnect(), se.value && N(), B(), fe();
1044
+ f.value = "", a.value = "", o && o.disconnect(), se.value && J(), B(), fe();
1046
1045
  }), (t, i) => {
1047
1046
  const R = U("el-scrollbar");
1048
1047
  return Q(), Ve("div", cl, [
@@ -1221,20 +1220,20 @@ ${G.value.join(" ")}
1221
1220
  return [
1222
1221
  f.value === "场景树" ? (Q(), ye(At, {
1223
1222
  key: 0,
1224
- model: k.value
1225
- }, null, 8, ["model"])) : ke("", !0),
1223
+ model: P.value
1224
+ }, null, 8, ["model"])) : Pe("", !0),
1226
1225
  f.value === "剖面视图" ? (Q(), ye(tt, {
1227
1226
  key: 1,
1228
- value: X(J),
1227
+ value: X(N),
1229
1228
  onChange: we
1230
- }, null, 8, ["value"])) : ke("", !0),
1231
- f.value === "工件树" ? (Q(), ye(at, {
1229
+ }, null, 8, ["value"])) : Pe("", !0),
1230
+ f.value === "工件树" ? (Q(), ye(nt, {
1232
1231
  key: 2,
1233
1232
  model: (x = X(W)) == null ? void 0 : x.obj,
1234
1233
  onVisibleChange: X(ie),
1235
1234
  onUpdatePosition: X(F),
1236
1235
  onUpdateRotation: X(ne)
1237
- }, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : ke("", !0)
1236
+ }, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : Pe("", !0)
1238
1237
  ];
1239
1238
  }),
1240
1239
  _: 1
@@ -1243,8 +1242,8 @@ ${G.value.join(" ")}
1243
1242
  ], 512), [
1244
1243
  [de, b.value]
1245
1244
  ]),
1246
- pe(u("div", kl, [
1247
- u("div", Pl, [
1245
+ pe(u("div", Pl, [
1246
+ u("div", kl, [
1248
1247
  u("span", null, he(a.value), 1),
1249
1248
  u("span", {
1250
1249
  class: "close",
@@ -1254,13 +1253,13 @@ ${G.value.join(" ")}
1254
1253
  u("div", xl, [
1255
1254
  l(R, { height: "100%" }, {
1256
1255
  default: M(() => [
1257
- pe(l($t, { model: k.value }, null, 8, ["model"]), [
1256
+ pe(l($t, { model: P.value }, null, 8, ["model"]), [
1258
1257
  [de, a.value === "关节控制"]
1259
1258
  ]),
1260
1259
  pe(l(Ht, {
1261
1260
  ref_key: "animationPanelRef",
1262
1261
  ref: c,
1263
- model: k.value,
1262
+ model: P.value,
1264
1263
  threeData: v.threeData
1265
1264
  }, null, 8, ["model", "threeData"]), [
1266
1265
  [de, a.value === "动画仿真"]
@@ -1276,7 +1275,7 @@ ${G.value.join(" ")}
1276
1275
  _.value ? (Q(), Ve("div", Rl, [
1277
1276
  i[10] || (i[10] = u("div", { class: "loading-spinner" }, null, -1)),
1278
1277
  u("p", null, he(s.value), 1)
1279
- ])) : ke("", !0),
1278
+ ])) : Pe("", !0),
1280
1279
  l(rl, {
1281
1280
  ref_key: "pipeAnalysisPanelRef",
1282
1281
  ref: m
@@ -1284,7 +1283,7 @@ ${G.value.join(" ")}
1284
1283
  ]);
1285
1284
  };
1286
1285
  }
1287
- }), Nl = /* @__PURE__ */ Ue(Ml, [["__scopeId", "data-v-ec34be42"]]);
1286
+ }), Jl = /* @__PURE__ */ Ue(Ml, [["__scopeId", "data-v-ec34be42"]]);
1288
1287
  export {
1289
- Nl as default
1288
+ Jl as default
1290
1289
  };