ss-component-new 1.2.57 → 1.2.59

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 (110) hide show
  1. package/dist/animationData-CEkMmPAJ.js +111 -0
  2. package/dist/animationData-FLuoH13j.cjs +1 -0
  3. package/dist/{iconfont-Du5a0yIR.js → iconfont-Dp3iGl32.js} +318 -244
  4. package/dist/iconfont-ji7A-_XJ.cjs +1 -0
  5. package/dist/icons/svg/CopyAddMenu.svg +1 -0
  6. package/dist/icons/svg/DeleteMenu.svg +1 -0
  7. package/dist/icons/svg/FixedMenu.svg +1 -0
  8. package/dist/icons/svg//345/273/272/346/250/241/345/210/206/346/236/220.svg +1 -0
  9. package/dist/icons/svg//347/256/227/346/263/225.svg +1 -1
  10. package/dist/{index-BMMCYEsB.js → index--qwZeW47.js} +1 -1
  11. package/dist/{index-DtlFU8RR.cjs → index-B1U77nyf.cjs} +1 -1
  12. package/dist/index-BEfSpHE6.js +17 -0
  13. package/dist/{index-CEkY4nFt.js → index-BFHCLxvz.js} +1 -1
  14. package/dist/index-BN4opOSk.cjs +1 -0
  15. package/dist/{index-B55haWsS.js → index-BNES2eKm.js} +1 -1
  16. package/dist/{index-kXlrQUA8.js → index-BTwRUubF.js} +2 -2
  17. package/dist/{index-DmfzZIKw.cjs → index-BYIlecoJ.cjs} +1 -1
  18. package/dist/{index-D0NMKMU8.cjs → index-BgwYXT31.cjs} +1 -1
  19. package/dist/{index-hL7adbcf.js → index-BiUFu7a_.js} +1500 -1636
  20. package/dist/{index-DYopbovE.js → index-BooTgcW2.js} +1633 -1632
  21. package/dist/{index-CJVA_tHw.cjs → index-BxEjroD6.cjs} +1 -1
  22. package/dist/index-C14Eek69.js +32 -0
  23. package/dist/index-C8IFPtAJ.js +12233 -0
  24. package/dist/index-C9C84gkB.cjs +1 -0
  25. package/dist/{index-BO7R6DCb.cjs → index-CDW8XzWT.cjs} +1 -1
  26. package/dist/index-CHzlphv9.cjs +1 -0
  27. package/dist/{index-vrO7i-BX.cjs → index-CWG2zhJZ.cjs} +1 -1
  28. package/dist/{index-DURGsNBh.js → index-ChyicQIl.js} +1 -1
  29. package/dist/index-D57Bv8co.cjs +1 -0
  30. package/dist/{index-BPiXU1VF.js → index-DAJoy_Z5.js} +1 -1
  31. package/dist/{index-DhbAgrix.cjs → index-DIpWkFjh.cjs} +1 -1
  32. package/dist/index-DLU6Qv3w.cjs +15 -0
  33. package/dist/{index-BQWUpvXk.js → index-DN40xEbb.js} +2 -2
  34. package/dist/{index-HsZY-XbO.js → index-DNs7ujiq.js} +1 -1
  35. package/dist/{index-C8x2JQx7.cjs → index-DXGiAs1G.cjs} +1 -1
  36. package/dist/{index-D3cFqWf8.js → index-DZQjq0ZR.js} +1 -1
  37. package/dist/index-DkNldOC0.cjs +1 -0
  38. package/dist/{index-CgHWXZbW.cjs → index-DuamAhUi.cjs} +1 -1
  39. package/dist/index-DvgAOa6m.js +2858 -0
  40. package/dist/{index-By-PfzqJ.js → index-FUWILZwY.js} +16 -16
  41. package/dist/{index-C9QGZutp.cjs → index-JXXdn01K.cjs} +1 -1
  42. package/dist/{index-Du-GlV8c.cjs → index-LVKvj2hU.cjs} +1 -1
  43. package/dist/{index-D2vsFTnY.js → index-OLQpbvuS.js} +6 -6
  44. package/dist/{index-JGSZNtiO.js → index-YoJfAd5X.js} +1 -1
  45. package/dist/{index-BgLb2tvo.js → index-bcbWOGXs.js} +3 -3
  46. package/dist/{index-cOj9uZ5B.cjs → index-gcSJbApQ.cjs} +1 -1
  47. package/dist/index-lP-_9Gsb.cjs +1 -0
  48. package/dist/index-qDBAJZN2.cjs +1 -0
  49. package/dist/{index-GShz2NEi.js → index-rPWz6KHn.js} +2 -2
  50. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bff2sYnQ.cjs +37 -0
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DkxmFS5P.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-D6uh0ooh.js} +10026 -10039
  52. package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-DlyCfLDJ.cjs +1 -0
  53. package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-Dt5lXvbN.js +195 -0
  54. package/dist/{index.vue_vue_type_style_index_1_lang-BEmLh6pe.js → index.vue_vue_type_style_index_1_lang-BUhvhTqt.js} +1 -1
  55. package/dist/{index.vue_vue_type_style_index_1_lang-Dsas9C9w.cjs → index.vue_vue_type_style_index_1_lang-DDYxgdQk.cjs} +1 -1
  56. package/dist/{main-B59ixZA7.js → main-ChUyYPuq.js} +2 -2
  57. package/dist/{main-B3gx12Xo.cjs → main-D-bdppOV.cjs} +1 -1
  58. package/dist/ss-component.cjs +1 -1
  59. package/dist/ss-component.css +2 -2
  60. package/dist/ss-component.js +6 -6
  61. package/dist/ss-component2.cjs +1 -1
  62. package/dist/ss-component2.js +10 -10
  63. package/dist/{threeModel-CxRJigCx.cjs → threeModel-CDFo3As-.cjs} +1 -1
  64. package/dist/{threeModel-ardn7Q2K.js → threeModel-DcuAlWjb.js} +2 -2
  65. package/dist/{threePreview-L8T-JdQL.js → threePreview-DhMkG1np.js} +350 -380
  66. package/dist/threePreview-q4R-oAs6.cjs +1 -0
  67. package/dist/threeSceneView-CAsVH82L.cjs +5 -0
  68. package/dist/threeSceneView-Dav7AGkH.js +1288 -0
  69. package/dist/threeSceneViewForCPMPIP-9__8NGa5.cjs +5 -0
  70. package/dist/threeSceneViewForCPMPIP-DxFYivgN.js +599 -0
  71. package/dist/threeTrackPathView-B7yrSLKq.cjs +370 -0
  72. package/dist/{threeTrackPathView-gTDb6Ckq.js → threeTrackPathView-DXCMl3aZ.js} +307 -376
  73. package/dist/{xlsx-ByPOQ6N_.js → threeViewerHost-BNnzz6WM.js} +4414 -4032
  74. package/dist/threeViewerHost-D70yS3z2.cjs +104 -0
  75. package/dist/{workpieceTreePanel-GlMrvoGI.js → workpieceTreePanel-CCbVIIlm.js} +92 -101
  76. package/dist/workpieceTreePanel-KdP9UaVe.cjs +1 -0
  77. package/package.json +1 -1
  78. package/public/icons/svg/CopyAddMenu.svg +1 -0
  79. package/public/icons/svg/DeleteMenu.svg +1 -0
  80. package/public/icons/svg/FixedMenu.svg +1 -0
  81. package/public/icons/svg//345/273/272/346/250/241/345/210/206/346/236/220.svg +1 -0
  82. package/public/icons/svg//347/256/227/346/263/225.svg +1 -1
  83. package/dist/animationData-CSjRG83z.cjs +0 -1
  84. package/dist/animationData-DgukZCiZ.js +0 -69
  85. package/dist/dataUtil-Bg8jgTaT.js +0 -52
  86. package/dist/dataUtil-CflXOlIl.cjs +0 -1
  87. package/dist/fileUtil-CVIZ039M.js +0 -99
  88. package/dist/fileUtil-DugRTZPB.cjs +0 -1
  89. package/dist/iconfont-BUDQryy4.cjs +0 -1
  90. package/dist/index-BAkz3vaY.js +0 -12229
  91. package/dist/index-BE76NHis.js +0 -2848
  92. package/dist/index-CXGkiovm.cjs +0 -1
  93. package/dist/index-CaV-J52G.cjs +0 -1
  94. package/dist/index-D4y4pCNq.cjs +0 -1
  95. package/dist/index-DKQuP1UM.cjs +0 -1
  96. package/dist/index-DhPNGzbc.cjs +0 -1
  97. package/dist/index-fw0RZg-d.cjs +0 -15
  98. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-til9urRl.cjs +0 -37
  99. package/dist/index.vue_vue_type_style_index_0_scoped_92477073_lang-5Hi_RNl1.cjs +0 -1
  100. package/dist/index.vue_vue_type_style_index_0_scoped_92477073_lang-DIFWhOl8.js +0 -212
  101. package/dist/threePreview-5-O-sZIc.cjs +0 -1
  102. package/dist/threeSceneView-BYl4rYgi.js +0 -1369
  103. package/dist/threeSceneView-igg9HZ8X.cjs +0 -5
  104. package/dist/threeSceneViewForCPMPIP-C-o-rOZ9.js +0 -662
  105. package/dist/threeSceneViewForCPMPIP-DfPj5iau.cjs +0 -5
  106. package/dist/threeTrackPathView-CgjLFXmL.cjs +0 -370
  107. package/dist/threeViewerHost-DvAkN_z-.js +0 -322
  108. package/dist/threeViewerHost-PGblwq3d.cjs +0 -1
  109. package/dist/workpieceTreePanel-Cr4nTOQE.cjs +0 -1
  110. package/dist/xlsx-BPHygxEf.cjs +0 -104
@@ -1,30 +1,30 @@
1
1
  var ce = Object.defineProperty;
2
2
  var de = (b, l, t) => l in b ? ce(b, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[l] = t;
3
- var E = (b, l, t) => de(b, typeof l != "symbol" ? l + "" : l, t);
4
- import { U as me } from "./index.vue_vue_type_style_index_1_lang-BEmLh6pe.js";
3
+ var J = (b, l, t) => de(b, typeof l != "symbol" ? l + "" : l, t);
4
+ import { U as me } from "./index.vue_vue_type_style_index_1_lang-BUhvhTqt.js";
5
5
  import { S as ve, M as pe, O as fe } from "./MTLLoader-Bl6JMZD-.js";
6
- import { g as re, f as F } from "./fileUtil-CVIZ039M.js";
7
- import { bB as be, U as J, J as we, z as he, B as _e, bC as ge, ab as ye, V as Le } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZPnZF-N.js";
8
- import { ref as k, defineComponent as je, computed as O, watch as ue, resolveComponent as x, createElementBlock as P, openBlock as T, createVNode as U, createElementVNode as c, withCtx as $, createTextVNode as D, toDisplayString as S } from "vue";
9
- import { c as Re, e as Ue, g as Ce } from "./iconfont-Du5a0yIR.js";
10
- import { _ as Se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const Me = "http://222.92.178.198:60000/chfs/shared/Insofrobot/urdf";
12
- function Oe(b) {
6
+ import { i as re, j as O } from "./threeViewerHost-BNnzz6WM.js";
7
+ import { bB as be, U as E, J as we, z as he, B as _e, bC as ge, ab as je, V as ye } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZPnZF-N.js";
8
+ import { ref as z, defineComponent as Le, computed as M, watch as ue, resolveComponent as x, createElementBlock as k, openBlock as V, createVNode as U, createElementVNode as c, withCtx as F, createTextVNode as D, toDisplayString as $ } from "vue";
9
+ import { c as Re, e as Ue, g as Ce } from "./iconfont-Dp3iGl32.js";
10
+ import { _ as $e } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ const Se = "http://222.92.178.198:60000/chfs/shared/Insofrobot/urdf";
12
+ function Me(b) {
13
13
  const { mtlUrl: l, manager: t, resourcePath: s, onLoad: m, onProgress: i, onError: h } = b, v = new pe(t);
14
14
  return s && v.setResourcePath(s), v.load(l, m, i, h), v;
15
15
  }
16
- function $e(b) {
16
+ function Fe(b) {
17
17
  const { objUrl: l, manager: t, materials: s, onLoad: m, onProgress: i, onError: h } = b, v = new fe(t);
18
18
  return s && v.setMaterials(s), v.load(l, m, i, h), v;
19
19
  }
20
20
  function De(b) {
21
21
  const { manager: l, baseFolderUrl: t, onFileProgress: s } = b, m = new me(l);
22
22
  return m.packages = (i) => `${t.endsWith("/") ? t : t + "/"}${i}/`, m.loadMeshCb = (i, h, v) => {
23
- const L = (() => {
23
+ const y = (() => {
24
24
  const _ = i.split("?")[0].split("#")[0], r = _.lastIndexOf(".");
25
25
  return r >= 0 ? _.slice(r + 1).toLowerCase() : void 0;
26
26
  })();
27
- switch (L) {
27
+ switch (y) {
28
28
  // OBJ+MTL
29
29
  case "obj": {
30
30
  const _ = (() => {
@@ -38,18 +38,18 @@ function De(b) {
38
38
  var u;
39
39
  return (((u = i.split("/").pop()) == null ? void 0 : u.split("?")[0].split("#")[0]) ?? "").replace(/\.[^/.?#]+$/, "");
40
40
  })(), f = `${_}${r}.mtl`, g = (n) => {
41
- $e({
41
+ Fe({
42
42
  objUrl: i,
43
43
  manager: h,
44
44
  materials: n,
45
45
  onLoad: (u) => v(u),
46
46
  onProgress: (u) => s == null ? void 0 : s(i, u == null ? void 0 : u.loaded, u == null ? void 0 : u.total),
47
47
  onError: (u) => {
48
- console.error(`[URDF 资源加载失败,已跳过] 无法加载 OBJ 模型: ${i}`, u), v(new J());
48
+ console.error(`[URDF 资源加载失败,已跳过] 无法加载 OBJ 模型: ${i}`, u), v(new E());
49
49
  }
50
50
  });
51
51
  };
52
- Oe({
52
+ Me({
53
53
  mtlUrl: f,
54
54
  manager: h,
55
55
  resourcePath: _,
@@ -76,27 +76,27 @@ function De(b) {
76
76
  },
77
77
  (r) => s == null ? void 0 : s(i, r == null ? void 0 : r.loaded, r == null ? void 0 : r.total),
78
78
  (r) => {
79
- console.error(`[URDF 资源加载失败,已跳过] 无法加载 STL 模型: ${i}`, r), v(new J());
79
+ console.error(`[URDF 资源加载失败,已跳过] 无法加载 STL 模型: ${i}`, r), v(new E());
80
80
  }
81
81
  );
82
82
  break;
83
83
  }
84
84
  default:
85
- console.error(`[URDF 资源加载失败,已跳过] 不支持的网格格式: .${L} (路径: ${i})`), v(new J());
85
+ console.error(`[URDF 资源加载失败,已跳过] 不支持的网格格式: .${y} (路径: ${i})`), v(new E());
86
86
  }
87
87
  }, m;
88
88
  }
89
89
  function mt(b, l, t, s) {
90
90
  return { loadSceneFromFile: (i) => new Promise((h, v) => {
91
91
  t.value = !0, s.value = "正在初始化 URDF 加载器...";
92
- let L = 0, _ = 0, r = null;
92
+ let y = 0, _ = 0, r = null;
93
93
  const f = new be();
94
- f.onStart = (n, u, y) => {
95
- L = y || 0, _ = u || 0, s.value = L > 0 ? `开始下载资源: 0 / ${L}` : "开始下载资源...", t.value = !0;
96
- }, f.onProgress = (n, u, y) => {
97
- _ = u, L = y;
98
- const C = `正在加载 ${u} / ${y} 个文件: ${re(n)}`;
99
- s.value = C, u === y && (s.value = "资源加载完成,正在处理模型...", setTimeout(() => {
94
+ f.onStart = (n, u, j) => {
95
+ y = j || 0, _ = u || 0, s.value = y > 0 ? `开始下载资源: 0 / ${y}` : "开始下载资源...", t.value = !0;
96
+ }, f.onProgress = (n, u, j) => {
97
+ _ = u, y = j;
98
+ const C = `正在加载 ${u} / ${j} 个文件: ${re(n)}`;
99
+ s.value = C, u === j && (s.value = "资源加载完成,正在处理模型...", setTimeout(() => {
100
100
  if (r) {
101
101
  r.updateMatrixWorld(!0);
102
102
  const p = new _e().setFromObject(r);
@@ -112,25 +112,25 @@ function mt(b, l, t, s) {
112
112
  }, f.onError = (n) => {
113
113
  console.warn(`LoadingManager 报告一个资源加载失败: ${n}。加载流程将继续。`);
114
114
  };
115
- const g = (n, u, y) => {
115
+ const g = (n, u, j) => {
116
116
  const C = re(n);
117
117
  let p;
118
- y && y > 0 ? p = `${C}(${F(u)} / ${F(y)})` : u && u > 0 ? p = `${C}(已下载 ${F(u)})` : p = `${C}`, s.value = `正在下载第 ${_ + 1} / ${L} 个文件: ${p}`;
118
+ j && j > 0 ? p = `${C}(${O(u)} / ${O(j)})` : u && u > 0 ? p = `${C}(已下载 ${O(u)})` : p = `${C}`, s.value = `正在下载第 ${_ + 1} / ${y} 个文件: ${p}`;
119
119
  };
120
120
  try {
121
121
  const n = URL.createObjectURL(i);
122
122
  De({
123
123
  manager: f,
124
- baseFolderUrl: Me,
124
+ baseFolderUrl: Se,
125
125
  onFileProgress: g
126
126
  }).load(
127
127
  n,
128
- (y) => {
129
- r = y;
128
+ (j) => {
129
+ r = j;
130
130
  },
131
131
  void 0,
132
- (y) => {
133
- console.error(`加载 URDF 文件 (${i.name}) 时发生致命错误:`, y), s.value = "URDF 文件解析失败", t.value = !1, v(new Error(`加载 URDF 文件失败: ${i.name}`));
132
+ (j) => {
133
+ console.error(`加载 URDF 文件 (${i.name}) 时发生致命错误:`, j), s.value = "URDF 文件解析失败", t.value = !1, v(new Error(`加载 URDF 文件失败: ${i.name}`));
134
134
  }
135
135
  );
136
136
  } catch (n) {
@@ -140,13 +140,13 @@ function mt(b, l, t, s) {
140
140
  }
141
141
  function vt(b, l, t, s = ["URDFVisual"]) {
142
142
  let m = null;
143
- const i = k(null), h = new ge(), v = new ye(), L = /* @__PURE__ */ new Map();
143
+ const i = z(null), h = new ge(), v = new je(), y = /* @__PURE__ */ new Map();
144
144
  function _() {
145
145
  t.value.forEach((p) => {
146
146
  p.traverse((d) => {
147
- s != null && s.includes(d.type) && L.set(d.id, {
147
+ s != null && s.includes(d.type) && y.set(d.id, {
148
148
  obj: d,
149
- axis: d.axis || new Le(1, 0, 0),
149
+ axis: d.axis || new ye(1, 0, 0),
150
150
  // URDF 里的 <axis>
151
151
  limits: d.limits
152
152
  });
@@ -169,8 +169,8 @@ function vt(b, l, t, s = ["URDFVisual"]) {
169
169
  if (e.length === 0) return;
170
170
  let o = e[0].object, w = null;
171
171
  for (; o; ) {
172
- if (L.has(o.id)) {
173
- w = L.get(o.id);
172
+ if (y.has(o.id)) {
173
+ w = y.get(o.id);
174
174
  break;
175
175
  }
176
176
  o = o.parent;
@@ -187,7 +187,7 @@ function vt(b, l, t, s = ["URDFVisual"]) {
187
187
  function u(p) {
188
188
  i.value && (i.value.obj.visible = p);
189
189
  }
190
- function y(p) {
190
+ function j(p) {
191
191
  var o;
192
192
  const { axis: d, value: e } = p;
193
193
  Ue((o = i.value) == null ? void 0 : o.obj, d, e);
@@ -202,21 +202,14 @@ function vt(b, l, t, s = ["URDFVisual"]) {
202
202
  dispose: g,
203
203
  selectedObject3D: i,
204
204
  setSelectedObjVisible: u,
205
- updatePosition: y,
205
+ updatePosition: j,
206
206
  updateRotation: C
207
207
  };
208
208
  }
209
- const pt = {
210
- SINGLE: "单机",
211
- DOUBLE: "双机"
212
- }, ft = {
213
- ROBOT: 1,
214
- PIPECOMPARSION: 2
215
- };
216
- class bt {
209
+ class pt {
217
210
  constructor(l) {
218
- E(this, "robot");
219
- E(this, "movableJoints");
211
+ J(this, "robot");
212
+ J(this, "movableJoints");
220
213
  this.robot = l, this.movableJoints = this.getMovableJoints();
221
214
  }
222
215
  /**
@@ -287,7 +280,7 @@ class bt {
287
280
  const m = this.getCurrentJointStates(), i = Date.now();
288
281
  return new Promise((h) => {
289
282
  const v = () => {
290
- const L = Date.now() - i, _ = Math.min(L / t, 1), r = this.easeInOutCubic(_), f = {};
283
+ const y = Date.now() - i, _ = Math.min(y / t, 1), r = this.easeInOutCubic(_), f = {};
291
284
  Object.keys(l).forEach((g) => {
292
285
  const n = m[g] || 0, u = l[g];
293
286
  f[g] = n + (u - n) * r;
@@ -312,10 +305,10 @@ class bt {
312
305
  });
313
306
  }
314
307
  }
315
- const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
308
+ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
316
309
  key: 0,
317
310
  class: "obj-base"
318
- }, xe = ["title"], Pe = ["title"], Te = { key: 1 }, ke = { class: "obj-position" }, Ve = { class: "coord-item" }, ze = { class: "coord-item" }, Ie = { class: "coord-item" }, Ae = { class: "obj-rotation" }, Be = { class: "coord-item" }, Ne = { class: "coord-item" }, We = { class: "coord-item" }, qe = { class: "world" }, Xe = { class: "coord-line" }, Ye = { class: "coord-text" }, Ze = { class: "world-position-item" }, Ge = { class: "world-position-item" }, Ke = { class: "world-position-item" }, He = { class: "coord-line" }, Qe = { class: "coord-text" }, et = { class: "world-rotation-item" }, tt = { class: "world-rotation-item" }, ot = { class: "world-rotation-item" }, st = /* @__PURE__ */ je({
311
+ }, xe = ["title"], ke = ["title"], Ve = { key: 1 }, ze = { class: "obj-position" }, Te = { class: "coord-item" }, Pe = { class: "coord-item" }, Ae = { class: "coord-item" }, Ie = { class: "obj-rotation" }, Be = { class: "coord-item" }, Ne = { class: "coord-item" }, We = { class: "coord-item" }, qe = { class: "world" }, Xe = { class: "coord-line" }, Ye = { class: "coord-text" }, Ze = { class: "world-position-item" }, Ke = { class: "world-position-item" }, Ge = { class: "world-position-item" }, He = { class: "coord-line" }, Qe = { class: "coord-text" }, et = { class: "world-rotation-item" }, tt = { class: "world-rotation-item" }, ot = { class: "world-rotation-item" }, st = /* @__PURE__ */ Le({
319
312
  __name: "workpieceTreePanel",
320
313
  props: {
321
314
  model: {},
@@ -324,11 +317,11 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
324
317
  },
325
318
  emits: ["nodeClick", "visibleChange", "updatePosition", "updateRotation"],
326
319
  setup(b, { emit: l }) {
327
- const t = b, s = l, m = k([]), i = k({}), h = (e, o = 0) => {
320
+ const t = b, s = l, m = z([]), i = z({}), h = (e, o = 0) => {
328
321
  const w = [];
329
322
  return Array.isArray(e) && (e == null ? void 0 : e.length) > 0 && e.forEach((a) => {
330
323
  if (!(a != null && a.isMesh)) {
331
- const j = {
324
+ const L = {
332
325
  name: a == null ? void 0 : a.name,
333
326
  label: (a == null ? void 0 : a.name) || (a == null ? void 0 : a.type),
334
327
  show: !0,
@@ -340,7 +333,7 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
340
333
  children: h(a == null ? void 0 : a.children, o + 1),
341
334
  path: a == null ? void 0 : a.name
342
335
  };
343
- w.push(j);
336
+ w.push(L);
344
337
  }
345
338
  }), w;
346
339
  }, v = (e) => e ? [{
@@ -354,11 +347,11 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
354
347
  limit: (e == null ? void 0 : e.limit) ?? "",
355
348
  children: h(e == null ? void 0 : e.children, 1),
356
349
  path: e == null ? void 0 : e.name
357
- }] : [], L = (e, o) => {
350
+ }] : [], y = (e, o) => {
358
351
  const w = [], a = [...e];
359
352
  for (; a.length > 0 && w.length < o; ) {
360
- const j = a.shift();
361
- j.children && j.children.length > 0 && (w.push(j.id), a.push(...j.children));
353
+ const L = a.shift();
354
+ L.children && L.children.length > 0 && (w.push(L.id), a.push(...L.children));
362
355
  }
363
356
  return w;
364
357
  }, _ = (e, o) => {
@@ -366,12 +359,12 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
366
359
  return e.forEach((a) => {
367
360
  if (a.children && a.children.length > 0) {
368
361
  w.push(a.id);
369
- const j = a.children.filter((M) => M.children && M.children.length > 0).slice(0, o).map((M) => M.id);
370
- w.push(...j);
362
+ const L = a.children.filter((S) => S.children && S.children.length > 0).slice(0, o).map((S) => S.id);
363
+ w.push(...L);
371
364
  }
372
365
  }), w.slice(0, o + 1);
373
366
  };
374
- O(() => !m.value || m.value.length === 0 ? [] : t.expandStrategy === "firstLevel" ? _(m.value, t.maxExpandCount) : L(m.value, t.maxExpandCount));
367
+ M(() => !m.value || m.value.length === 0 ? [] : t.expandStrategy === "firstLevel" ? _(m.value, t.maxExpandCount) : y(m.value, t.maxExpandCount));
375
368
  const r = (e) => e ? parseFloat(e.toFixed(3)) : 0, f = (e) => e ? parseFloat(e.toFixed(1)) : 0, g = (e, o) => {
376
369
  s("updatePosition", {
377
370
  obj: t.model,
@@ -386,13 +379,13 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
386
379
  });
387
380
  }, u = (e) => {
388
381
  s("visibleChange", e);
389
- }, y = O(() => t != null && t.model ? v(t.model) : []), C = O(() => {
382
+ }, j = M(() => t != null && t.model ? v(t.model) : []), C = M(() => {
390
383
  var e, o;
391
384
  return ((e = t == null ? void 0 : t.model) == null ? void 0 : e.name) || ((o = t == null ? void 0 : t.model) == null ? void 0 : o.type);
392
- }), p = O(() => {
385
+ }), p = M(() => {
393
386
  var e;
394
387
  return (e = t == null ? void 0 : t.model) == null ? void 0 : e.type;
395
- }), d = O(() => {
388
+ }), d = M(() => {
396
389
  var e;
397
390
  return (e = t == null ? void 0 : t.model) == null ? void 0 : e.visible;
398
391
  });
@@ -402,50 +395,50 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
402
395
  deep: !0,
403
396
  immediate: !0
404
397
  }), ue(
405
- y,
398
+ j,
406
399
  (e) => {
407
400
  m.value = JSON.parse(JSON.stringify(e));
408
401
  },
409
402
  { immediate: !0 }
410
403
  ), (e, o) => {
411
- var M, V, z, I, A, B, N, W, q, X, Y, Z, G, K, H, Q, ee, te, oe, se, ie, le, ae, ne;
412
- const w = x("el-divider"), a = x("el-switch"), j = x("el-input-number");
413
- return T(), P("div", Ee, [
404
+ var S, T, P, A, I, B, N, W, q, X, Y, Z, K, G, H, Q, ee, te, oe, se, ie, le, ae, ne;
405
+ const w = x("el-divider"), a = x("el-switch"), L = x("el-input-number");
406
+ return V(), k("div", Je, [
414
407
  U(w, null, {
415
- default: $(() => o[6] || (o[6] = [
408
+ default: F(() => o[6] || (o[6] = [
416
409
  D("对象")
417
410
  ])),
418
411
  _: 1,
419
412
  __: [6]
420
413
  }),
421
- c("div", Fe, [
422
- t.model ? (T(), P("div", Je, [
414
+ c("div", Oe, [
415
+ t.model ? (V(), k("div", Ee, [
423
416
  c("div", {
424
417
  class: "obj-name",
425
418
  title: C.value
426
- }, S(C.value), 9, xe),
419
+ }, $(C.value), 9, xe),
427
420
  c("div", {
428
421
  class: "obj-type",
429
422
  title: p.value
430
- }, "[" + S(p.value) + "]", 9, Pe)
431
- ])) : (T(), P("div", Te, "空")),
423
+ }, "[" + $(p.value) + "]", 9, ke)
424
+ ])) : (V(), k("div", Ve, "空")),
432
425
  U(a, {
433
426
  "model-value": d.value,
434
427
  onChange: u
435
428
  }, null, 8, ["model-value"])
436
429
  ]),
437
430
  U(w, null, {
438
- default: $(() => o[7] || (o[7] = [
431
+ default: F(() => o[7] || (o[7] = [
439
432
  D("相对位置")
440
433
  ])),
441
434
  _: 1,
442
435
  __: [7]
443
436
  }),
444
- c("div", ke, [
445
- c("div", Ve, [
437
+ c("div", ze, [
438
+ c("div", Te, [
446
439
  o[8] || (o[8] = c("span", { class: "axis-label" }, "X", -1)),
447
- U(j, {
448
- "model-value": r((V = (M = i.value) == null ? void 0 : M.position) == null ? void 0 : V.x),
440
+ U(L, {
441
+ "model-value": r((T = (S = i.value) == null ? void 0 : S.position) == null ? void 0 : T.x),
449
442
  onChange: o[0] || (o[0] = (R) => g(R, "x")),
450
443
  size: "small",
451
444
  class: "coord-input-compact",
@@ -455,10 +448,10 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
455
448
  "controls-position": "right"
456
449
  }, null, 8, ["model-value"])
457
450
  ]),
458
- c("div", ze, [
451
+ c("div", Pe, [
459
452
  o[9] || (o[9] = c("span", { class: "axis-label" }, "Y", -1)),
460
- U(j, {
461
- "model-value": r((I = (z = i.value) == null ? void 0 : z.position) == null ? void 0 : I.y),
453
+ U(L, {
454
+ "model-value": r((A = (P = i.value) == null ? void 0 : P.position) == null ? void 0 : A.y),
462
455
  onChange: o[1] || (o[1] = (R) => g(R, "y")),
463
456
  size: "small",
464
457
  class: "coord-input-compact",
@@ -468,10 +461,10 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
468
461
  "controls-position": "right"
469
462
  }, null, 8, ["model-value"])
470
463
  ]),
471
- c("div", Ie, [
464
+ c("div", Ae, [
472
465
  o[10] || (o[10] = c("span", { class: "axis-label" }, "Z", -1)),
473
- U(j, {
474
- "model-value": r((B = (A = i.value) == null ? void 0 : A.position) == null ? void 0 : B.z),
466
+ U(L, {
467
+ "model-value": r((B = (I = i.value) == null ? void 0 : I.position) == null ? void 0 : B.z),
475
468
  onChange: o[2] || (o[2] = (R) => g(R, "z")),
476
469
  size: "small",
477
470
  class: "coord-input-compact",
@@ -483,16 +476,16 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
483
476
  ])
484
477
  ]),
485
478
  U(w, null, {
486
- default: $(() => o[11] || (o[11] = [
479
+ default: F(() => o[11] || (o[11] = [
487
480
  D("相对旋转")
488
481
  ])),
489
482
  _: 1,
490
483
  __: [11]
491
484
  }),
492
- c("div", Ae, [
485
+ c("div", Ie, [
493
486
  c("div", Be, [
494
487
  o[12] || (o[12] = c("span", { class: "axis-label" }, "X°", -1)),
495
- U(j, {
488
+ U(L, {
496
489
  "model-value": f((W = (N = i.value) == null ? void 0 : N.rotation) == null ? void 0 : W.x),
497
490
  onChange: o[3] || (o[3] = (R) => n(R, "x")),
498
491
  size: "small",
@@ -505,7 +498,7 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
505
498
  ]),
506
499
  c("div", Ne, [
507
500
  o[13] || (o[13] = c("span", { class: "axis-label" }, "Y°", -1)),
508
- U(j, {
501
+ U(L, {
509
502
  "model-value": f((X = (q = i.value) == null ? void 0 : q.rotation) == null ? void 0 : X.y),
510
503
  onChange: o[4] || (o[4] = (R) => n(R, "y")),
511
504
  size: "small",
@@ -518,7 +511,7 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
518
511
  ]),
519
512
  c("div", We, [
520
513
  o[14] || (o[14] = c("span", { class: "axis-label" }, "Z°", -1)),
521
- U(j, {
514
+ U(L, {
522
515
  "model-value": f((Z = (Y = i.value) == null ? void 0 : Y.rotation) == null ? void 0 : Z.z),
523
516
  onChange: o[5] || (o[5] = (R) => n(R, "z")),
524
517
  size: "small",
@@ -531,7 +524,7 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
531
524
  ])
532
525
  ]),
533
526
  U(w, null, {
534
- default: $(() => o[15] || (o[15] = [
527
+ default: F(() => o[15] || (o[15] = [
535
528
  D("世界信息")
536
529
  ])),
537
530
  _: 1,
@@ -541,29 +534,27 @@ const Ee = { class: "panel-content" }, Fe = { class: "obj" }, Je = {
541
534
  c("div", Xe, [
542
535
  o[16] || (o[16] = c("span", { class: "coord-label" }, "世界位置:", -1)),
543
536
  c("span", Ye, [
544
- c("div", Ze, S(r((K = (G = i.value) == null ? void 0 : G.worldPosition) == null ? void 0 : K.x)) + ", ", 1),
545
- c("div", Ge, S(r((Q = (H = i.value) == null ? void 0 : H.worldPosition) == null ? void 0 : Q.y)) + ", ", 1),
546
- c("div", Ke, S(r((te = (ee = i.value) == null ? void 0 : ee.worldPosition) == null ? void 0 : te.z)), 1)
537
+ c("div", Ze, $(r((G = (K = i.value) == null ? void 0 : K.worldPosition) == null ? void 0 : G.x)) + ", ", 1),
538
+ c("div", Ke, $(r((Q = (H = i.value) == null ? void 0 : H.worldPosition) == null ? void 0 : Q.y)) + ", ", 1),
539
+ c("div", Ge, $(r((te = (ee = i.value) == null ? void 0 : ee.worldPosition) == null ? void 0 : te.z)), 1)
547
540
  ])
548
541
  ]),
549
542
  c("div", He, [
550
543
  o[17] || (o[17] = c("span", { class: "coord-label" }, "世界旋转:", -1)),
551
544
  c("span", Qe, [
552
- c("div", et, S(f((se = (oe = i.value) == null ? void 0 : oe.worldRotation) == null ? void 0 : se.x)) + "°, ", 1),
553
- c("div", tt, S(f((le = (ie = i.value) == null ? void 0 : ie.worldRotation) == null ? void 0 : le.y)) + "°, ", 1),
554
- c("div", ot, S(f((ne = (ae = i.value) == null ? void 0 : ae.worldRotation) == null ? void 0 : ne.z)) + "° ", 1)
545
+ c("div", et, $(f((se = (oe = i.value) == null ? void 0 : oe.worldRotation) == null ? void 0 : se.x)) + "°, ", 1),
546
+ c("div", tt, $(f((le = (ie = i.value) == null ? void 0 : ie.worldRotation) == null ? void 0 : le.y)) + "°, ", 1),
547
+ c("div", ot, $(f((ne = (ae = i.value) == null ? void 0 : ae.worldRotation) == null ? void 0 : ne.z)) + "° ", 1)
555
548
  ])
556
549
  ])
557
550
  ])
558
551
  ]);
559
552
  };
560
553
  }
561
- }), wt = /* @__PURE__ */ Se(st, [["__scopeId", "data-v-00d48931"]]);
554
+ }), ft = /* @__PURE__ */ $e(st, [["__scopeId", "data-v-00d48931"]]);
562
555
  export {
563
- bt as U,
564
- wt as W,
556
+ pt as U,
557
+ ft as W,
565
558
  mt as a,
566
- pt as r,
567
- ft as s,
568
559
  vt as u
569
560
  };
@@ -0,0 +1 @@
1
+ "use strict";var te=Object.defineProperty;var oe=(b,i,o)=>i in b?te(b,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):b[i]=o;var S=(b,i,o)=>oe(b,typeof i!="symbol"?i+"":i,o);const se=require("./index.vue_vue_type_style_index_1_lang-DDYxgdQk.cjs"),U=require("./MTLLoader-BlLfoBce.cjs"),C=require("./threeViewerHost-D70yS3z2.cjs"),R=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fAuSnfOH.cjs"),e=require("vue"),D=require("./iconfont-ji7A-_XJ.cjs"),le=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),re="http://222.92.178.198:60000/chfs/shared/Insofrobot/urdf";function ie(b){const{mtlUrl:i,manager:o,resourcePath:l,onLoad:m,onProgress:r,onError:w}=b,p=new U.MTLLoader(o);return l&&p.setResourcePath(l),p.load(i,m,r,w),p}function ne(b){const{objUrl:i,manager:o,materials:l,onLoad:m,onProgress:r,onError:w}=b,p=new U.OBJLoader(o);return l&&p.setMaterials(l),p.load(i,m,r,w),p}function ae(b){const{manager:i,baseFolderUrl:o,onFileProgress:l}=b,m=new se.URDFLoader(i);return m.packages=r=>`${o.endsWith("/")?o:o+"/"}${r}/`,m.loadMeshCb=(r,w,p)=>{const g=(()=>{const h=r.split("?")[0].split("#")[0],c=h.lastIndexOf(".");return c>=0?h.slice(c+1).toLowerCase():void 0})();switch(g){case"obj":{const h=(()=>{try{return new URL(".",r).toString()}catch{const a=r.lastIndexOf("/");return a>=0?r.slice(0,a+1):r}})(),c=(()=>{var u;return(((u=r.split("/").pop())==null?void 0:u.split("?")[0].split("#")[0])??"").replace(/\.[^/.?#]+$/,"")})(),f=`${h}${c}.mtl`,V=a=>{ne({objUrl:r,manager:w,materials:a,onLoad:u=>p(u),onProgress:u=>l==null?void 0:l(r,u==null?void 0:u.loaded,u==null?void 0:u.total),onError:u=>{console.error(`[URDF 资源加载失败,已跳过] 无法加载 OBJ 模型: ${r}`,u),p(new R.Group)}})};ie({mtlUrl:f,manager:w,resourcePath:h,onLoad:a=>{try{a.preload()}catch{}V(a)},onProgress:a=>l==null?void 0:l(f,a==null?void 0:a.loaded,a==null?void 0:a.total),onError:a=>{console.warn(`[URDF 资源警告] 未找到或加载材质失败: ${f}。将尝试无材质加载。`),V(void 0)}});break}case"stl":{new U.STLLoader(w).load(r,c=>{const f=new R.MeshPhongMaterial({color:12303291,shininess:30}),V=new R.Mesh(c,f);V.castShadow=!0,V.receiveShadow=!0,p(V)},c=>l==null?void 0:l(r,c==null?void 0:c.loaded,c==null?void 0:c.total),c=>{console.error(`[URDF 资源加载失败,已跳过] 无法加载 STL 模型: ${r}`,c),p(new R.Group)});break}default:console.error(`[URDF 资源加载失败,已跳过] 不支持的网格格式: .${g} (路径: ${r})`),p(new R.Group)}},m}function ce(b,i,o,l){return{loadSceneFromFile:r=>new Promise((w,p)=>{o.value=!0,l.value="正在初始化 URDF 加载器...";let g=0,h=0,c=null;const f=new R.LoadingManager;f.onStart=(a,u,E)=>{g=E||0,h=u||0,l.value=g>0?`开始下载资源: 0 / ${g}`:"开始下载资源...",o.value=!0},f.onProgress=(a,u,E)=>{h=u,g=E;const L=`正在加载 ${u} / ${E} 个文件: ${C.getFilenameFromUrl(a)}`;l.value=L,u===E&&(l.value="资源加载完成,正在处理模型...",setTimeout(()=>{if(c){c.updateMatrixWorld(!0);const v=new R.Box3().setFromObject(c);v.isEmpty()&&console.warn("模型加载完成,但所有可视化网格均加载失败,模型将不可见。"),c.userData.boundingBox=v,c.traverse(d=>{d.isMesh&&(d.castShadow=!0,d.receiveShadow=!0)}),w(c)}else p(new Error("URDF 文件本身加载失败。"));l.value="模型加载完成",setTimeout(()=>{l.value==="模型加载完成"&&(o.value=!1,l.value="")},500)},100))},f.onError=a=>{console.warn(`LoadingManager 报告一个资源加载失败: ${a}。加载流程将继续。`)};const V=(a,u,E)=>{const L=C.getFilenameFromUrl(a);let v;E&&E>0?v=`${L}(${C.formatBytes(u)} / ${C.formatBytes(E)})`:u&&u>0?v=`${L}(已下载 ${C.formatBytes(u)})`:v=`${L}`,l.value=`正在下载第 ${h+1} / ${g} 个文件: ${v}`};try{const a=URL.createObjectURL(r);ae({manager:f,baseFolderUrl:re,onFileProgress:V}).load(a,E=>{c=E},void 0,E=>{console.error(`加载 URDF 文件 (${r.name}) 时发生致命错误:`,E),l.value="URDF 文件解析失败",o.value=!1,p(new Error(`加载 URDF 文件失败: ${r.name}`))})}catch(a){console.error("初始化 URDF 加载时发生致命错误:",a),l.value="模型加载失败",o.value=!1,p(a)}})}}function ue(b,i,o,l=["URDFVisual"]){let m=null;const r=e.ref(null),w=new R.Raycaster,p=new R.Vector2,g=new Map;function h(){o.value.forEach(v=>{v.traverse(d=>{l!=null&&l.includes(d.type)&&g.set(d.id,{obj:d,axis:d.axis||new R.Vector3(1,0,0),limits:d.limits})})})}function c(v){r.value&&r.value.obj.traverse(d=>{var t;d.material&&((t=d.material.emissive)==null||t.set(0))}),r.value=v,v.obj.traverse(d=>{var t;d.material&&((t=d.material.emissive)==null||t.set(65280))})}function f(v){const d=b.value.getBoundingClientRect();p.x=(v.clientX-d.left)/d.width*2-1,p.y=-((v.clientY-d.top)/d.height)*2+1,w.setFromCamera(p,m);const t=w.intersectObjects(o.value,!0);if(t.length===0)return;let s=t[0].object,_=null;for(;s;){if(g.has(s.id)){_=g.get(s.id);break}s=s.parent}_&&c(_)}function V(){b.value&&b.value.removeEventListener("click",f,!1)}function a(){const{scene:v,camera:d}=i();m=d,h(),b.value&&b.value.addEventListener("click",f,!1)}function u(v){r.value&&(r.value.obj.visible=v)}function E(v){var s;const{axis:d,value:t}=v;D.updateObjectPosition((s=r.value)==null?void 0:s.obj,d,t)}function L(v){var s;const{axis:d,value:t}=v;D.updateObjectRotation((s=r.value)==null?void 0:s.obj,d,t)}return{initRaycaster:a,dispose:V,selectedObject3D:r,setSelectedObjVisible:u,updatePosition:E,updateRotation:L}}class de{constructor(i){S(this,"robot");S(this,"movableJoints");this.robot=i,this.movableJoints=this.getMovableJoints()}getMovableJoints(){return Object.values(this.robot.joints).filter(i=>i.jointType!=="fixed")}getMovableJointNames(){return this.movableJoints.map(i=>i.name)}setJointAngle(i,o){const l=this.robot.joints[i];if(!l||l.jointType==="fixed")return console.warn(`关节 ${i} 不存在或不可动`),!1;if(l.limit){const m=Math.max(l.limit.lower,Math.min(l.limit.upper,o));m!==o&&console.warn(`关节 ${i} 角度被限制在 [${l.limit.lower}, ${l.limit.upper}]`),l.setJointValue(m)}else l.setJointValue(o);return!0}setJointAngles(i){Object.entries(i).forEach(([o,l])=>{typeof l=="number"&&!isNaN(l)&&this.setJointAngle(o,l)})}getCurrentJointStates(){const i={};return this.movableJoints.forEach(o=>{i[o.name]=o.angle||0}),i}resetToZero(){this.movableJoints.forEach(i=>{i.setJointValue(0)})}getJointLimits(i){const o=this.robot.joints[i];return!o||!o.limit?null:{lower:o.limit.lower,upper:o.limit.upper}}async animateToState(i,o=1e3,l){const m=this.getCurrentJointStates(),r=Date.now();return new Promise(w=>{const p=()=>{const g=Date.now()-r,h=Math.min(g/o,1),c=this.easeInOutCubic(h),f={};Object.keys(i).forEach(V=>{const a=m[V]||0,u=i[V];f[V]=a+(u-a)*c}),this.setJointAngles(f),l&&l(h),h<1?requestAnimationFrame(p):w()};p()})}easeInOutCubic(i){return i<.5?4*i*i*i:1-Math.pow(-2*i+2,3)/2}async playSequence(i,o=1e3,l){for(let m=0;m<i.length;m++)await this.animateToState(i[m],o,r=>{l&&l(m,r)})}}const me={class:"panel-content"},pe={class:"obj"},ve={key:0,class:"obj-base"},fe=["title"],be=["title"],_e={key:1},we={class:"obj-position"},he={class:"coord-item"},Ve={class:"coord-item"},Ee={class:"coord-item"},ge={class:"obj-rotation"},ye={class:"coord-item"},Ne={class:"coord-item"},Le={class:"coord-item"},Re={class:"world"},je={class:"coord-line"},Ce={class:"coord-text"},Se={class:"world-position-item"},De={class:"world-position-item"},Ue={class:"world-position-item"},Fe={class:"coord-line"},$e={class:"coord-text"},xe={class:"world-rotation-item"},Me={class:"world-rotation-item"},Je={class:"world-rotation-item"},Oe=e.defineComponent({__name:"workpieceTreePanel",props:{model:{},maxExpandCount:{default:10},expandStrategy:{default:"breadth"}},emits:["nodeClick","visibleChange","updatePosition","updateRotation"],setup(b,{emit:i}){const o=b,l=i,m=e.ref([]),r=e.ref({}),w=(t,s=0)=>{const _=[];return Array.isArray(t)&&(t==null?void 0:t.length)>0&&t.forEach(n=>{if(!(n!=null&&n.isMesh)){const y={name:n==null?void 0:n.name,label:(n==null?void 0:n.name)||(n==null?void 0:n.type),show:!0,level:s+1,isPenultimate:!1,type:n==null?void 0:n.type,id:n==null?void 0:n.id,limit:(n==null?void 0:n.limit)??"",children:w(n==null?void 0:n.children,s+1),path:n==null?void 0:n.name};_.push(y)}}),_},p=t=>t?[{name:t==null?void 0:t.name,label:(t==null?void 0:t.name)||(t==null?void 0:t.type),show:!0,level:1,isPenultimate:!1,type:t==null?void 0:t.type,id:t==null?void 0:t.id,limit:(t==null?void 0:t.limit)??"",children:w(t==null?void 0:t.children,1),path:t==null?void 0:t.name}]:[],g=(t,s)=>{const _=[],n=[...t];for(;n.length>0&&_.length<s;){const y=n.shift();y.children&&y.children.length>0&&(_.push(y.id),n.push(...y.children))}return _},h=(t,s)=>{const _=[];return t.forEach(n=>{if(n.children&&n.children.length>0){_.push(n.id);const y=n.children.filter(j=>j.children&&j.children.length>0).slice(0,s).map(j=>j.id);_.push(...y)}}),_.slice(0,s+1)};e.computed(()=>!m.value||m.value.length===0?[]:o.expandStrategy==="firstLevel"?h(m.value,o.maxExpandCount):g(m.value,o.maxExpandCount));const c=t=>t?parseFloat(t.toFixed(3)):0,f=t=>t?parseFloat(t.toFixed(1)):0,V=(t,s)=>{l("updatePosition",{obj:o.model,axis:s,value:(t==null?void 0:t.toString())||"0"})},a=(t,s)=>{l("updateRotation",{obj:o.model,axis:s,value:(t==null?void 0:t.toString())||"0"})},u=t=>{l("visibleChange",t)},E=e.computed(()=>o!=null&&o.model?p(o.model):[]),L=e.computed(()=>{var t,s;return((t=o==null?void 0:o.model)==null?void 0:t.name)||((s=o==null?void 0:o.model)==null?void 0:s.type)}),v=e.computed(()=>{var t;return(t=o==null?void 0:o.model)==null?void 0:t.type}),d=e.computed(()=>{var t;return(t=o==null?void 0:o.model)==null?void 0:t.visible});return e.watch(()=>o.model,()=>{o.model&&(r.value=D.getObject3DData(o.model))},{deep:!0,immediate:!0}),e.watch(E,t=>{m.value=JSON.parse(JSON.stringify(t))},{immediate:!0}),(t,s)=>{var j,F,$,x,M,J,O,k,T,P,z,B,q,A,I,W,G,X,Y,Z,H,K,Q,ee;const _=e.resolveComponent("el-divider"),n=e.resolveComponent("el-switch"),y=e.resolveComponent("el-input-number");return e.openBlock(),e.createElementBlock("div",me,[e.createVNode(_,null,{default:e.withCtx(()=>s[6]||(s[6]=[e.createTextVNode("对象")])),_:1,__:[6]}),e.createElementVNode("div",pe,[o.model?(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",{class:"obj-name",title:L.value},e.toDisplayString(L.value),9,fe),e.createElementVNode("div",{class:"obj-type",title:v.value},"["+e.toDisplayString(v.value)+"]",9,be)])):(e.openBlock(),e.createElementBlock("div",_e,"空")),e.createVNode(n,{"model-value":d.value,onChange:u},null,8,["model-value"])]),e.createVNode(_,null,{default:e.withCtx(()=>s[7]||(s[7]=[e.createTextVNode("相对位置")])),_:1,__:[7]}),e.createElementVNode("div",we,[e.createElementVNode("div",he,[s[8]||(s[8]=e.createElementVNode("span",{class:"axis-label"},"X",-1)),e.createVNode(y,{"model-value":c((F=(j=r.value)==null?void 0:j.position)==null?void 0:F.x),onChange:s[0]||(s[0]=N=>V(N,"x")),size:"small",class:"coord-input-compact",precision:3,step:.1,controls:!0,"controls-position":"right"},null,8,["model-value"])]),e.createElementVNode("div",Ve,[s[9]||(s[9]=e.createElementVNode("span",{class:"axis-label"},"Y",-1)),e.createVNode(y,{"model-value":c((x=($=r.value)==null?void 0:$.position)==null?void 0:x.y),onChange:s[1]||(s[1]=N=>V(N,"y")),size:"small",class:"coord-input-compact",precision:3,step:.1,controls:!0,"controls-position":"right"},null,8,["model-value"])]),e.createElementVNode("div",Ee,[s[10]||(s[10]=e.createElementVNode("span",{class:"axis-label"},"Z",-1)),e.createVNode(y,{"model-value":c((J=(M=r.value)==null?void 0:M.position)==null?void 0:J.z),onChange:s[2]||(s[2]=N=>V(N,"z")),size:"small",class:"coord-input-compact",precision:3,step:.1,controls:!0,"controls-position":"right"},null,8,["model-value"])])]),e.createVNode(_,null,{default:e.withCtx(()=>s[11]||(s[11]=[e.createTextVNode("相对旋转")])),_:1,__:[11]}),e.createElementVNode("div",ge,[e.createElementVNode("div",ye,[s[12]||(s[12]=e.createElementVNode("span",{class:"axis-label"},"X°",-1)),e.createVNode(y,{"model-value":f((k=(O=r.value)==null?void 0:O.rotation)==null?void 0:k.x),onChange:s[3]||(s[3]=N=>a(N,"x")),size:"small",class:"coord-input-compact",precision:3,step:.1,controls:!0,"controls-position":"right"},null,8,["model-value"])]),e.createElementVNode("div",Ne,[s[13]||(s[13]=e.createElementVNode("span",{class:"axis-label"},"Y°",-1)),e.createVNode(y,{"model-value":f((P=(T=r.value)==null?void 0:T.rotation)==null?void 0:P.y),onChange:s[4]||(s[4]=N=>a(N,"y")),size:"small",class:"coord-input-compact",precision:3,step:.1,controls:!0,"controls-position":"right"},null,8,["model-value"])]),e.createElementVNode("div",Le,[s[14]||(s[14]=e.createElementVNode("span",{class:"axis-label"},"Z°",-1)),e.createVNode(y,{"model-value":f((B=(z=r.value)==null?void 0:z.rotation)==null?void 0:B.z),onChange:s[5]||(s[5]=N=>a(N,"z")),size:"small",class:"coord-input-compact",precision:3,step:.1,controls:!0,"controls-position":"right"},null,8,["model-value"])])]),e.createVNode(_,null,{default:e.withCtx(()=>s[15]||(s[15]=[e.createTextVNode("世界信息")])),_:1,__:[15]}),e.createElementVNode("div",Re,[e.createElementVNode("div",je,[s[16]||(s[16]=e.createElementVNode("span",{class:"coord-label"},"世界位置:",-1)),e.createElementVNode("span",Ce,[e.createElementVNode("div",Se,e.toDisplayString(c((A=(q=r.value)==null?void 0:q.worldPosition)==null?void 0:A.x))+", ",1),e.createElementVNode("div",De,e.toDisplayString(c((W=(I=r.value)==null?void 0:I.worldPosition)==null?void 0:W.y))+", ",1),e.createElementVNode("div",Ue,e.toDisplayString(c((X=(G=r.value)==null?void 0:G.worldPosition)==null?void 0:X.z)),1)])]),e.createElementVNode("div",Fe,[s[17]||(s[17]=e.createElementVNode("span",{class:"coord-label"},"世界旋转:",-1)),e.createElementVNode("span",$e,[e.createElementVNode("div",xe,e.toDisplayString(f((Z=(Y=r.value)==null?void 0:Y.worldRotation)==null?void 0:Z.x))+"°, ",1),e.createElementVNode("div",Me,e.toDisplayString(f((K=(H=r.value)==null?void 0:H.worldRotation)==null?void 0:K.y))+"°, ",1),e.createElementVNode("div",Je,e.toDisplayString(f((ee=(Q=r.value)==null?void 0:Q.worldRotation)==null?void 0:ee.z))+"° ",1)])])])])}}}),ke=le._export_sfc(Oe,[["__scopeId","data-v-00d48931"]]);exports.URDFRobotController=de;exports.WorkpieceTreePanel=ke;exports.useRaycaster=ue;exports.useUrdfLoader=ce;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ss-component-new",
3
3
  "private": false,
4
- "version": "1.2.57",
4
+ "version": "1.2.59",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763100249237" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3686" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M813.098667 638.464a42.666667 42.666667 0 0 0 42.666666-42.666667v-189.866666a21.333333 21.333333 0 0 1 21.333334-21.333334h42.666666a21.333333 21.333333 0 0 1 21.333334 21.333334v275.2a42.666667 42.666667 0 0 1-42.666667 42.666666H341.333333a42.666667 42.666667 0 0 1-42.666666-42.666666V128a42.666667 42.666667 0 0 1 42.666666-42.666667h276.48a21.333333 21.333333 0 0 1 21.333334 21.333334v42.666666a21.333333 21.333333 0 0 1-21.333334 21.333334H426.666667a42.666667 42.666667 0 0 0-42.666667 42.666666v382.464a42.666667 42.666667 0 0 0 42.666667 42.666667h386.432z m-213.333334 213.333333a42.666667 42.666667 0 0 0 42.666667-42.666666v-85.12a42.666667 42.666667 0 1 1 85.333333 0v170.453333a42.666667 42.666667 0 0 1-42.666666 42.666667H128a42.666667 42.666667 0 0 1-42.666667-42.666667V341.333333a42.666667 42.666667 0 0 1 42.666667-42.666666h170.581333a42.666667 42.666667 0 1 1 0 85.333333H213.333333a42.666667 42.666667 0 0 0-42.666666 42.666667v382.464a42.666667 42.666667 0 0 0 42.666666 42.666666h386.432zM724.053333 212.906667V106.666667a21.333333 21.333333 0 0 1 21.333334-21.333334h42.666666a21.333333 21.333333 0 0 1 21.333334 21.333334v106.24h107.52a21.333333 21.333333 0 0 1 21.333333 21.333333v42.666667a21.333333 21.333333 0 0 1-21.333333 21.333333h-107.52v107.690667a21.333333 21.333333 0 0 1-21.333334 21.333333h-42.666666a21.333333 21.333333 0 0 1-21.333334-21.333333V298.24H618.666667a21.333333 21.333333 0 0 1-21.333334-21.333333v-42.666667a21.333333 21.333333 0 0 1 21.333334-21.333333h105.386666z" p-id="3687"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763100078816" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3537" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M384 256h256V213.333333a42.666667 42.666667 0 0 0-42.666667-42.666666h-170.666666a42.666667 42.666667 0 0 0-42.666667 42.666666v42.666667zM298.666667 256V128a42.666667 42.666667 0 0 1 42.666666-42.666667h341.333334a42.666667 42.666667 0 0 1 42.666666 42.666667v128h149.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v42.666667a21.333333 21.333333 0 0 1-21.333333 21.333333h-725.333334a21.333333 21.333333 0 0 1-21.333333-21.333333v-42.666667a21.333333 21.333333 0 0 1 21.333333-21.333333H298.666667z m384 597.333333a42.666667 42.666667 0 0 0 42.666666-42.666666v-362.666667a21.333333 21.333333 0 0 1 21.333334-21.333333h42.666666a21.333333 21.333333 0 0 1 21.333334 21.333333V896a42.666667 42.666667 0 0 1-42.666667 42.666667H256a42.666667 42.666667 0 0 1-42.666667-42.666667V448a21.333333 21.333333 0 0 1 21.333334-21.333333h42.666666a21.333333 21.333333 0 0 1 21.333334 21.333333V810.666667a42.666667 42.666667 0 0 0 42.666666 42.666666h341.333334z m-106.666667-426.666666h42.666667a21.333333 21.333333 0 0 1 21.333333 21.333333v298.666667a21.333333 21.333333 0 0 1-21.333333 21.333333h-42.666667a21.333333 21.333333 0 0 1-21.333333-21.333333v-298.666667a21.333333 21.333333 0 0 1 21.333333-21.333333z m-170.666667 0h42.666667a21.333333 21.333333 0 0 1 21.333333 21.333333v298.666667a21.333333 21.333333 0 0 1-21.333333 21.333333h-42.666667a21.333333 21.333333 0 0 1-21.333333-21.333333v-298.666667a21.333333 21.333333 0 0 1 21.333333-21.333333z" p-id="3538"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1763099754662" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3388" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M213.333333 810.666667a42.666667 42.666667 0 0 0 42.666667 42.666666h512a42.666667 42.666667 0 0 0 42.666667-42.666666v-191.36a21.333333 21.333333 0 0 1 21.333333-21.333334h42.666667a21.333333 21.333333 0 0 1 21.333333 21.333334V896a42.666667 42.666667 0 0 1-42.666667 42.666667H170.666667a42.666667 42.666667 0 0 1-42.666667-42.666667V128a42.666667 42.666667 0 0 1 42.666667-42.666667h682.666666a42.666667 42.666667 0 0 1 42.666667 42.666667v108.16a21.333333 21.333333 0 0 1-21.333333 21.333333h-42.666667a21.333333 21.333333 0 0 1-21.333333-21.333333V213.333333a42.666667 42.666667 0 0 0-42.666667-42.666666H256a42.666667 42.666667 0 0 0-42.666667 42.666666v597.333334z m285.994667 0.426666l-101.674667-0.853333a12.8 12.8 0 0 1-12.672-12.714667L384 695.850667a12.8 12.8 0 0 1 3.754667-9.173334l288.853333-288.853333a12.8 12.8 0 0 1 18.090667 0l102.570666 102.613333a12.8 12.8 0 0 1 0 18.090667l-288.853333 288.853333a12.8 12.8 0 0 1-9.130667 3.754667z m328.192-340.864L724.906667 367.658667a12.8 12.8 0 0 1 0-18.090667l42.24-42.24a12.8 12.8 0 0 1 18.133333 0l102.570667 102.570667a12.8 12.8 0 0 1 0 18.133333l-42.24 42.24a12.8 12.8 0 0 1-18.090667 0z" p-id="3389"></path></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762934404078" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3497" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M512 998.912c-12.288 0-24.576-3.584-34.304-9.728l-352.256-207.872c-22.016-12.8-34.816-36.352-34.816-61.44V304.128c0-25.088 13.312-48.64 34.816-61.952l56.32-33.28 295.424-174.08C487.936 28.672 499.712 25.6 512 25.6c12.288 0 24.576 3.584 34.304 9.728v-0.512l352.256 207.872c21.504 13.312 34.816 36.352 34.816 61.952v415.744c0 25.088-13.312 48.64-34.816 61.44l-351.744 207.872c-10.752 5.632-22.528 9.216-34.816 9.216z" fill="#AAAAAA" p-id="3498"></path><path d="M259.072 325.632c-9.728 0-18.432 5.12-23.552 13.824-7.168 12.8-3.072 29.184 9.728 36.352L499.712 522.24v295.424c0 14.848 12.288 26.624 26.624 26.624 14.848 0 26.624-12.288 26.624-26.624V517.12l244.736-141.312c12.8-7.168 16.896-24.064 9.728-36.352-5.12-8.192-13.824-13.824-23.552-13.824-5.12 0-9.216 1.536-13.824 3.584L524.8 471.04c-1.536 0.512-2.56 1.536-4.096 2.56l-249.856-143.36c-3.072-3.072-7.168-4.608-11.776-4.608z" fill="#FFFFFF" p-id="3499"></path><path d="M818.176 427.008c-4.096 0-7.68 1.024-10.752 3.584l-186.88 106.496c-12.8 7.168-21.504 20.48-23.552 34.816v181.76c-0.512 4.096 1.024 7.168 3.584 10.24 2.048 2.048 5.12 3.584 7.68 3.072 4.096 0 7.68-1.536 10.752-3.584l181.76-99.328c12.8-7.168 21.504-19.968 23.552-34.816l4.608-188.928c0.512-4.096-1.024-7.168-3.584-10.24-1.024-2.048-4.096-3.072-7.168-3.072z" fill="#72B02D" p-id="3500"></path><path d="M247.808 510.464c-9.728 0-18.432 5.12-23.552 13.824-7.168 12.8-3.072 29.184 9.728 36.352l159.232 92.16c4.096 2.56 8.704 4.096 13.824 4.096 9.728 0 18.432-5.12 23.552-13.824 7.168-12.8 3.072-29.184-9.728-36.352l-159.744-92.16c-4.096-2.56-8.192-4.096-13.312-4.096z" fill="#FFFFFF" p-id="3501"></path></svg>
@@ -1 +1 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1753766068495" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2552" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M816 161H208c-44.183 0-80 35.817-80 80v542c0 44.183 35.817 80 80 80h608c44.183 0 80-35.817 80-80V241c0-44.183-35.817-80-80-80zM325.379 516.243l55.154 55.154c12.497 12.497 12.497 32.758 0 45.255s-32.758 12.497-45.255 0l-59.397-59.396-22.627-22.628c-12.497-12.497-12.497-32.758 0-45.255l22.627-22.627 59.397-59.397c12.497-12.496 32.758-12.496 45.255 0 12.497 12.497 12.497 32.759 0 45.255l-55.154 55.154a6 6 0 0 0 0 8.485z m263.065-84.345L492.65 621.021c-7.986 15.767-27.24 22.073-43.006 14.088s-22.073-27.24-14.087-43.007l95.793-189.123c7.985-15.766 27.24-22.073 43.006-14.087 15.766 7.985 22.073 27.24 14.088 43.006z m182.302 102.729l-22.627 22.628-59.397 59.396c-12.497 12.497-32.758 12.497-45.255 0s-12.497-32.758 0-45.255l55.154-55.154a6 6 0 0 0 0-8.485l-55.154-55.154c-12.497-12.496-12.497-32.758 0-45.255 12.497-12.496 32.758-12.496 45.255 0l59.397 59.397 22.627 22.627c12.497 12.498 12.497 32.758 0 45.255z" p-id="2553"></path></svg>
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762934410758" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3645" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M953.856 251.904V200.192c0-50.688-40.96-92.16-92.16-92.16H162.304c-50.688 0-92.16 40.96-92.16 92.16v52.224h883.712z" fill="#72B02D" p-id="3646"></path><path d="M70.144 273.92v549.888c0 50.688 40.96 92.16 92.16 92.16h699.392c50.688 0 92.16-40.96 92.16-92.16V273.92H70.144z m227.328 326.144l63.488 63.488c14.336 14.336 14.336 37.888 0 52.224-14.336 14.336-37.888 14.336-52.224 0L240.64 647.68l-26.112-26.112c-14.336-14.336-14.336-37.888 0-52.224l26.112-26.112 68.096-68.096c14.336-14.336 37.888-14.336 52.224 0 14.336 14.336 14.336 37.888 0 52.224l-63.488 63.488c-3.072 2.048-3.072 6.144 0 9.216z m302.592-97.28l-110.08 217.6c-9.216 17.92-31.232 25.6-49.664 16.384-17.92-9.216-25.6-31.232-16.384-49.664l110.08-217.6c9.216-17.92 31.232-25.6 49.664-16.384 18.432 9.216 25.6 31.744 16.384 49.664z m209.92 118.272l-26.112 26.112-68.096 68.096c-14.336 14.336-37.888 14.336-52.224 0-14.336-14.336-14.336-37.888 0-52.224l63.488-63.488c2.56-2.56 2.56-7.168 0-9.728l-63.488-63.488c-14.336-14.336-14.336-37.888 0-52.224 14.336-14.336 37.888-14.336 52.224 0l68.096 68.096 26.112 26.112c14.336 14.848 14.336 38.4 0 52.736z" fill="#AAAAAA" p-id="3647"></path></svg>
@@ -1 +0,0 @@
1
- "use strict";const k=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-fAuSnfOH.cjs"),q=require("./fileUtil-DugRTZPB.cjs"),a=require("./dataUtil-CflXOlIl.cjs"),E=require("./index-C8qRkCgn.cjs"),O=async()=>{let n={};const c=["弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["弯管仿真加工分析","加工位姿生成"],_=await a.getMenuData(T),G=a.getTargetGroup("输入",_),g=a.getFormData(G),D=g.夹持长度||0;console.log("夹持长度",D,g);const R=Number(D),s={},A=["弯管仿真加工分析","仿真动画生成"],r=await a.getMenuData(A);r==null||r.forEach(t=>{var h,f,b,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(b=(f=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:f.contents)==null?void 0:b.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(k.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),s[t.name]=w,s[t.name+"Content"]=t}});const x=E.cloneDeep(s)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:R,animationData:x},n},V=async()=>{let n={};const c=["双弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["双弯管仿真加工分析","加工工艺生成"],_=await a.getMenuData(T),G=a.getTargetGroup("输入",_),g=a.getFormData(G),D=g.夹持位置||0;console.log("夹持长度",D,g);const R=Number(D),s={},A=["双弯管仿真加工分析","仿真动画生成"],r=await a.getMenuData(A);r==null||r.forEach(t=>{var h,f,b,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(b=(f=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:f.contents)==null?void 0:b.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(k.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),s[t.name]=w,s[t.name+"Content"]=t}});const x=E.cloneDeep(s)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:R,animationData:x},n},B=async n=>await q.downloadFile(n),X=async n=>await q.readCsv(n),Y=async n=>{const c=await B(n);return await X(c)};exports.fetchDoubleRobotAnimationData=V;exports.fetchSingleRobotAnimationData=O;exports.initXYZBCList=Y;