ss-component-new 1.2.28 → 1.2.30

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 (140) hide show
  1. package/dist/{MTLLoader-Cqv49Ps8.cjs → MTLLoader-CGJ_BoN_.cjs} +1 -1
  2. package/dist/{MTLLoader-BreJsr54.js → MTLLoader-DKu2hJu8.js} +1 -1
  3. package/dist/{OrbitControls-BCu-cP7k.js → OrbitControls-BqqUzhiB.js} +1 -1
  4. package/dist/{OrbitControls-C956u7BP.cjs → OrbitControls-CcSIJs8U.cjs} +1 -1
  5. package/dist/{animationData-CMjNjOqc.js → animationData-C9-csPUd.js} +4 -4
  6. package/dist/{animationData-C3-BiUgV.cjs → animationData-CqnPk9Xj.cjs} +1 -1
  7. package/dist/array-CNff52dF.cjs +11 -0
  8. package/dist/array-GAxUIYkk.js +626 -0
  9. package/dist/config.js +1 -0
  10. package/dist/{dataUtil-BFjWNDM1.cjs → dataUtil-B8GQMfU9.cjs} +1 -1
  11. package/dist/{dataUtil-D9l7-XhR.js → dataUtil-CUqnwA-C.js} +2 -2
  12. package/dist/{fileUtil-D7XVXEhb.js → fileUtil-2jbB0UOW.js} +1 -1
  13. package/dist/{fileUtil-BFtJHTM0.cjs → fileUtil-DmlOwzdA.cjs} +1 -1
  14. package/dist/{iconfont-BDfcbq2v.cjs → iconfont-BRjtaT1w.cjs} +1 -1
  15. package/dist/{iconfont-B9Cj3DQM.js → iconfont-Clbumxhq.js} +2 -2
  16. package/dist/icons/svg/LowCodeEvent.svg +1 -1
  17. package/dist/icons/svg/LowCodeExtend.svg +1 -1
  18. package/dist/icons/svg/LowCodeSetting.svg +1 -1
  19. package/dist/icons/svg/LowCodeStyle.svg +1 -1
  20. package/dist/{index-DE-uHAMH.cjs → index-4vFpZiro.cjs} +1 -1
  21. package/dist/{index-DR7aNxVH.js → index-B1K65cVA.js} +4 -4
  22. package/dist/{index-C5UpEVah.js → index-B1TG4KX4.js} +2 -2
  23. package/dist/{index-C_cWjavY.cjs → index-B4kwMjRZ.cjs} +1 -1
  24. package/dist/{index-BaE0DPgC.js → index-B524ZAt_.js} +52 -52
  25. package/dist/{index-CMIGSPjz.cjs → index-B5KCSN4c.cjs} +1 -1
  26. package/dist/index-B6nEh_Jv.js +2865 -0
  27. package/dist/{index-zLkhy4JK.cjs → index-BDHmuN0R.cjs} +1 -1
  28. package/dist/{index-Rr9ZBYig.js → index-BH-dztWs.js} +2 -2
  29. package/dist/{index-DMyPjpxO.cjs → index-BKH5yrms.cjs} +1 -1
  30. package/dist/index-BQ4Ui0xZ.cjs +1 -0
  31. package/dist/{index-DqR3IwgZ.js → index-BR2gy9VY.js} +12 -12
  32. package/dist/{index-CC9RkSBT.cjs → index-BUqXSmZN.cjs} +1 -1
  33. package/dist/index-BVaHwt5f.cjs +1 -0
  34. package/dist/{index-gXbhagnF.js → index-BVx8ubcY.js} +3 -3
  35. package/dist/{index-Dx2X9pR1.js → index-Bf_EwhXB.js} +40 -40
  36. package/dist/{index-DVqfroe6.cjs → index-Bg67M1I0.cjs} +1 -1
  37. package/dist/index-Bnlo1Vn9.cjs +1 -0
  38. package/dist/{index-gPnrvvE9.js → index-BuPMGirQ.js} +3123 -3043
  39. package/dist/{index-Cwh5m4lg.cjs → index-C4sVFEb2.cjs} +1 -1
  40. package/dist/{index-CP7b7BrB.cjs → index-C5bKf4Rc.cjs} +1 -1
  41. package/dist/{index-DY5-ctYG.cjs → index-C8YYklCT.cjs} +1 -1
  42. package/dist/index-CBzeyNqc.cjs +1 -0
  43. package/dist/{index-Boazv8yC.js → index-CF3_9CuM.js} +2 -2
  44. package/dist/index-CGrK7vLD.cjs +15 -0
  45. package/dist/index-CJz9KUlK.js +2761 -0
  46. package/dist/index-CLYAJN6W.js +12157 -0
  47. package/dist/index-CPUuPtdW.cjs +1 -0
  48. package/dist/index-CQGU-KUl.cjs +1 -0
  49. package/dist/{index-BZwQB2HO.js → index-CSkbFCKk.js} +8 -8
  50. package/dist/{index-DiTYB-a4.js → index-CVduLh5F.js} +4 -4
  51. package/dist/{index-Cd9j5j41.cjs → index-CVfE7lev.cjs} +1 -1
  52. package/dist/{index-C5fTUrKx.js → index-CWvU6SMj.js} +80 -80
  53. package/dist/{index-CZu3TggJ.js → index-CkTqgfCV.js} +1 -1
  54. package/dist/{index-CBFF2bsB.cjs → index-Ct1BlKod.cjs} +1 -1
  55. package/dist/{index-BqRVuEsE.js → index-Cx-hhVVM.js} +6 -6
  56. package/dist/{index-LcnC2GQ4.cjs → index-D-vSuC_W.cjs} +1 -1
  57. package/dist/{index-HduGypr9.js → index-DBDeHECn.js} +7888 -8186
  58. package/dist/{index-CK5VdzmO.cjs → index-DC41esc7.cjs} +1 -1
  59. package/dist/index-DEBf-IBT.cjs +21 -0
  60. package/dist/{index-BwLaQntz.js → index-DKQfWQa7.js} +1 -1
  61. package/dist/index-DLNYVMBT.js +718 -0
  62. package/dist/{index-CKY0sj_X.js → index-DNmodmj5.js} +3 -3
  63. package/dist/{index-D5Dtcn-_.js → index-DOqV1gv2.js} +10 -10
  64. package/dist/{index-BWxbWhC9.cjs → index-DPJaR6_y.cjs} +1 -1
  65. package/dist/{index-B8bpiPXB.js → index-DQEoNTv9.js} +1 -1
  66. package/dist/{index-3QB55tXZ.js → index-D_vF-xur.js} +8 -8
  67. package/dist/{index-C9_Cxm8G.cjs → index-Dc_H7_4Q.cjs} +1 -1
  68. package/dist/{index-DsCD1neC.js → index-DnxJ5v5h.js} +2 -2
  69. package/dist/{index-DHOcRi3S.js → index-DpHuDey-.js} +6 -6
  70. package/dist/{index-mpoVA-DC.cjs → index-Dyk6Ept4.cjs} +1 -1
  71. package/dist/{index-zZ9bfGNx.js → index-LjM9Nk8B.js} +17 -17
  72. package/dist/{index-B33wtiif.cjs → index-M0XPuhvZ.cjs} +1 -1
  73. package/dist/index-NsYVgt6J.cjs +1 -0
  74. package/dist/{index-GGokR_Lx.cjs → index-T8lPGzLV.cjs} +1 -1
  75. package/dist/{index-Sa2hQZ0h.js → index-ZxdNFChm.js} +2 -2
  76. package/dist/{index-BccOOMaP.cjs → index-eU4qzdNW.cjs} +1 -1
  77. package/dist/{index-C-8LROmP.js → index-h2jxROLW.js} +2 -2
  78. package/dist/index-rlStojTL.js +52 -0
  79. package/dist/{index-TKouySTA.cjs → index-zfSd0dDx.cjs} +1 -1
  80. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BAJOxaYG.js +38119 -0
  81. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bz5a6KNq.cjs +56 -0
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs} +105 -105
  83. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js} +2 -2
  84. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-B5pFO8Nu.js} +13 -13
  85. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CfeHVTqR.cjs} +1 -1
  86. package/dist/{index.vue_vue_type_style_index_1_lang-9ANlnWKt.js → index.vue_vue_type_style_index_1_lang-C_-spRZf.js} +5 -5
  87. package/dist/index.vue_vue_type_style_index_1_lang-C_c9xkIT.js +8381 -0
  88. package/dist/index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs +32 -0
  89. package/dist/{index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs → index.vue_vue_type_style_index_1_lang-Dn15anMU.cjs} +1 -1
  90. package/dist/{isString-Cqq3-gAK.cjs → isString-D6Z6SOrb.cjs} +1 -1
  91. package/dist/{isString-BuBBWjRr.js → isString-DBnuELeA.js} +1 -1
  92. package/dist/{main-Mx9r7ydp.cjs → main-Cqs48dh5.cjs} +1 -1
  93. package/dist/{main-DpLQlLK2.js → main-D13CgkQa.js} +5 -5
  94. package/dist/ss-component.cjs +1 -1
  95. package/dist/ss-component.css +2 -2
  96. package/dist/ss-component.js +12 -12
  97. package/dist/ss-component2.cjs +1 -1
  98. package/dist/ss-component2.js +12 -12
  99. package/dist/{threeModel-DTwQnnAO.cjs → threeModel-B1Q-W8uT.cjs} +1 -1
  100. package/dist/{threeModel-CZ-qFwwk.js → threeModel-CdhAh8Bx.js} +5 -5
  101. package/dist/{threePreview-CUGoEzKf.cjs → threePreview-DFaqe_Df.cjs} +1 -1
  102. package/dist/{threePreview-DutKTPWH.js → threePreview-qK1L0B-6.js} +4 -4
  103. package/dist/{threeSceneView-CzgWYHBw.js → threeSceneView-D7A2EUjB.js} +87 -87
  104. package/dist/{threeSceneView-f1V-z4jr.cjs → threeSceneView-MV6u29zj.cjs} +1 -1
  105. package/dist/{threeSceneViewForCPMPIP-2sXIw3I1.js → threeSceneViewForCPMPIP-CFMeh1a1.js} +59 -59
  106. package/dist/{threeSceneViewForCPMPIP-CojHDVHC.cjs → threeSceneViewForCPMPIP-DWIRSSMI.cjs} +1 -1
  107. package/dist/{threeTrackPathView-BGHiOyJo.cjs → threeTrackPathView-jcnhqw1L.cjs} +1 -1
  108. package/dist/{threeTrackPathView-DA4_8jas.js → threeTrackPathView-zpNY2aoY.js} +6 -6
  109. package/dist/{threeViewerHost-D3WDKrIQ.cjs → threeViewerHost-Bmk1dyAX.cjs} +1 -1
  110. package/dist/{threeViewerHost-BNObp9oA.js → threeViewerHost-SnFuinLz.js} +14 -14
  111. package/dist/{urdfTree-CWStzmk2.cjs → urdfTree-BhIdc1in.cjs} +1 -1
  112. package/dist/{urdfTree-CnkPddyT.js → urdfTree-BqMKYhyU.js} +1 -1
  113. package/dist/{workpieceTreePanel-BvhFt3Xw.js → workpieceTreePanel-CrJBeLgr.js} +5 -5
  114. package/dist/{workpieceTreePanel-DXyb_Wnw.cjs → workpieceTreePanel-ugZl4wP-.cjs} +1 -1
  115. package/package.json +2 -2
  116. package/public/config.js +1 -0
  117. package/public/icons/svg/LowCodeEvent.svg +1 -1
  118. package/public/icons/svg/LowCodeExtend.svg +1 -1
  119. package/public/icons/svg/LowCodeSetting.svg +1 -1
  120. package/public/icons/svg/LowCodeStyle.svg +1 -1
  121. package/dist/array-0u9Sf3UC.cjs +0 -11
  122. package/dist/array-BGIM4b6g.js +0 -1142
  123. package/dist/index-B9TlIok8.cjs +0 -15
  124. package/dist/index-BgHY8wmn.cjs +0 -1
  125. package/dist/index-C1lZkQG-.js +0 -7298
  126. package/dist/index-CMwwUi6o.js +0 -3621
  127. package/dist/index-D0XPyuy4.cjs +0 -1
  128. package/dist/index-D3TgRd-7.cjs +0 -1
  129. package/dist/index-DEEZPcpU.cjs +0 -1
  130. package/dist/index-DiRBJiMW.js +0 -43
  131. package/dist/index-DnFxL5wb.cjs +0 -1
  132. package/dist/index-Dv1G67_Q.cjs +0 -21
  133. package/dist/index-OTxJnh9Z.js +0 -2570
  134. package/dist/index-uIVtG4RY.cjs +0 -1
  135. package/dist/index-wQJN1jpI.js +0 -2466
  136. package/dist/index-znR89ub7.cjs +0 -1
  137. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs +0 -37
  138. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js +0 -38930
  139. package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +0 -32
  140. package/dist/index.vue_vue_type_style_index_1_lang-DwvuVXW6.js +0 -8249
@@ -1,16 +1,16 @@
1
- import { defineComponent as we, ref as u, computed as U, watch as Z, onUnmounted as He, resolveComponent as q, createElementBlock as M, openBlock as z, createElementVNode as l, createCommentVNode as G, createVNode as i, toDisplayString as B, Fragment as Ke, renderList as We, withCtx as ne, inject as he, shallowRef as ue, onMounted as Ye, nextTick as Ze, onBeforeUnmount as qe, withDirectives as $, vShow as W, renderSlot as Y, unref as d, createBlock as ye, isRef as re, vModelRadio as de } from "vue";
2
- import { aA as Qe } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
3
- import { U as et, s as ke, u as tt, a as lt, W as at } from "./workpieceTreePanel-BvhFt3Xw.js";
4
- import { u as nt, a as ot, b as st } from "./iconfont-B9Cj3DQM.js";
5
- import { c as it, E as y } from "./index-HduGypr9.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
7
- import { _ as pe } from "./index-zZ9bfGNx.js";
8
- import { g as ut, b as rt, U as dt, J as ct, d as vt } from "./urdfTree-CnkPddyT.js";
1
+ import { defineComponent as we, ref as u, computed as U, watch as Z, onUnmounted as Ke, resolveComponent as q, createElementBlock as M, openBlock as z, createElementVNode as l, createCommentVNode as G, createVNode as i, toDisplayString as B, Fragment as Xe, renderList as We, withCtx as ne, inject as he, shallowRef as ue, onMounted as Ye, nextTick as Ze, onBeforeUnmount as qe, withDirectives as $, vShow as W, renderSlot as Y, unref as d, createBlock as ye, isRef as re, vModelRadio as de } from "vue";
2
+ import { aH as Qe } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
3
+ import { U as et, s as ke, u as tt, a as lt, W as at } from "./workpieceTreePanel-CrJBeLgr.js";
4
+ import { u as nt, a as ot, b as st } from "./iconfont-Clbumxhq.js";
5
+ import { c as it, E as y } from "./index-DBDeHECn.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
7
+ import { _ as pe } from "./index-LjM9Nk8B.js";
8
+ import { g as ut, b as rt, U as dt, J as ct, d as vt } from "./urdfTree-BqMKYhyU.js";
9
9
  import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { T as h } from "./svgIcon-D-_fXUBL.js";
11
- import { i as pt } from "./animationData-CMjNjOqc.js";
12
- import { O as mt } from "./MTLLoader-BreJsr54.js";
13
- import { u as ft, h as gt } from "./index-C1lZkQG-.js";
11
+ import { i as pt } from "./animationData-C9-csPUd.js";
12
+ import { O as mt } from "./MTLLoader-DKu2hJu8.js";
13
+ import { K as ft, j as gt } from "./index-CLYAJN6W.js";
14
14
  const bt = { class: "panel-content" }, ht = { class: "action-bar" }, yt = {
15
15
  key: 0,
16
16
  class: "animation-controls"
@@ -25,16 +25,16 @@ const bt = { class: "panel-content" }, ht = { class: "action-bar" }, yt = {
25
25
  xyzbcList: {}
26
26
  },
27
27
  setup(E, { expose: Q }) {
28
- const T = E, n = u([]), V = u(!1), A = u(""), f = u("stopped"), p = u(0), x = u(0), J = u(10), D = u(null);
28
+ const T = E, n = u([]), V = u(!1), j = u(""), f = u("stopped"), p = u(0), x = u(0), J = u(10), D = u(null);
29
29
  let k = 0;
30
30
  const ee = u([]), R = U(() => T.model ? ut(T.model).map((g) => g.name) : []), L = U(() => [...R.value]), ce = U(() => L.value.length > 0 ? `请按以下格式粘贴数据 (第一行为表头,使用 Tab 分隔):
31
31
  ${L.value.join(" ")}
32
32
  0 0 0 ...
33
- 1 2 3 ...` : "请先加载模型。"), X = U(() => n.value[p.value] || {});
33
+ 1 2 3 ...` : "请先加载模型。"), H = U(() => n.value[p.value] || {});
34
34
  Z(() => T.model, (s) => {
35
35
  s ? (D.value = new et(s), ee.value = rt(s), p.value = 0) : (D.value = null, ee.value = []);
36
36
  }, { immediate: !0 });
37
- const H = (s) => {
37
+ const K = (s) => {
38
38
  if (s < 0 || s >= n.value.length) {
39
39
  console.error(`帧索引 ${s} 超出范围`);
40
40
  return;
@@ -74,26 +74,26 @@ ${L.value.join(" ")}
74
74
  } catch (a) {
75
75
  console.error("动画播放出错:", a), y.error("动画播放出错"), f.value = "stopped";
76
76
  }
77
- }, j = () => {
77
+ }, A = () => {
78
78
  if (n.value.length === 0) {
79
79
  y.error("无动画数据");
80
80
  return;
81
81
  }
82
- f.value === "stopped" && (p.value = 0, H(0)), f.value = "playing", k++, oe(k), y.info("动画播放中");
82
+ f.value === "stopped" && (p.value = 0, K(0)), f.value = "playing", k++, oe(k), y.info("动画播放中");
83
83
  }, P = () => {
84
84
  f.value === "playing" && (k++, f.value = "paused", y.info("动画已暂停"));
85
85
  }, O = () => {
86
- k++, f.value = "stopped", p.value = 0, x.value = 0, H(0), y.info("动画已停止并重置");
86
+ k++, f.value = "stopped", p.value = 0, x.value = 0, K(0), y.info("动画已停止并重置");
87
87
  }, _ = () => {
88
- f.value === "playing" ? P() : j();
88
+ f.value === "playing" ? P() : A();
89
89
  }, te = (s) => {
90
- k++, f.value = "paused", H(s);
90
+ k++, f.value = "paused", K(s);
91
91
  }, le = () => {
92
- if (!A.value.trim()) {
92
+ if (!j.value.trim()) {
93
93
  y.warning("导入内容不能为空");
94
94
  return;
95
95
  }
96
- const s = A.value.trim().split(`
96
+ const s = j.value.trim().split(`
97
97
  `).filter((c) => c.trim() !== "");
98
98
  if (s.length < 2) {
99
99
  y.error("导入数据至少需要包含表头行和一行数据");
@@ -108,14 +108,14 @@ ${L.value.join(" ")}
108
108
  }
109
109
  const r = s.slice(1).map((c) => {
110
110
  const m = c.split(" "), S = {};
111
- return L.value.forEach((K) => {
112
- S[K] = "0";
113
- }), Object.entries(g).forEach(([K, I]) => {
114
- const ae = m[parseInt(K)];
111
+ return L.value.forEach((X) => {
112
+ S[X] = "0";
113
+ }), Object.entries(g).forEach(([X, I]) => {
114
+ const ae = m[parseInt(X)];
115
115
  ae !== void 0 && ae.trim() !== "" && (S[I] = ae.trim());
116
116
  }), S;
117
117
  });
118
- r.length > 0 ? (n.value = r, y.success(`成功导入 ${r.length} 行数据!`), V.value = !1, A.value = "", O()) : y.error("未能解析到有效数据,请检查格式。");
118
+ r.length > 0 ? (n.value = r, y.success(`成功导入 ${r.length} 行数据!`), V.value = !1, j.value = "", O()) : y.error("未能解析到有效数据,请检查格式。");
119
119
  };
120
120
  Z(() => T.xyzbcList, () => {
121
121
  T.xyzbcList && (n.value = it(T.xyzbcList));
@@ -125,10 +125,10 @@ ${L.value.join(" ")}
125
125
  const N = (s) => `第 ${s + 1} 帧`;
126
126
  return Q({
127
127
  handlePlayPause: _,
128
- playAnimation: j,
128
+ playAnimation: A,
129
129
  pauseAnimation: P,
130
130
  stopAnimation: O
131
- }), He(() => {
131
+ }), Ke(() => {
132
132
  k++;
133
133
  }), (s, a) => {
134
134
  const g = q("el-input-number"), C = q("el-slider"), r = q("el-input"), c = q("el-dialog");
@@ -174,7 +174,7 @@ ${L.value.join(" ")}
174
174
  l("div", null, [
175
175
  a[9] || (a[9] = l("label", null, "当前帧数据:", -1)),
176
176
  l("div", null, [
177
- X.value ? (z(!0), M(Ke, { key: 0 }, We(X.value, (m, S) => (z(), M("div", { key: S }, B(S) + ": " + B(m), 1))), 128)) : G("", !0)
177
+ H.value ? (z(!0), M(Xe, { key: 0 }, We(H.value, (m, S) => (z(), M("div", { key: S }, B(S) + ": " + B(m), 1))), 128)) : G("", !0)
178
178
  ])
179
179
  ])
180
180
  ])) : G("", !0),
@@ -203,8 +203,8 @@ ${L.value.join(" ")}
203
203
  default: ne(() => [
204
204
  a[11] || (a[11] = l("p", { class: "import-instructions" }, " 请从Excel或CSV中复制数据 (首行为表头, Tab分隔) ", -1)),
205
205
  i(r, {
206
- modelValue: A.value,
207
- "onUpdate:modelValue": a[3] || (a[3] = (m) => A.value = m),
206
+ modelValue: j.value,
207
+ "onUpdate:modelValue": a[3] || (a[3] = (m) => j.value = m),
208
208
  type: "textarea",
209
209
  rows: 10,
210
210
  placeholder: ce.value
@@ -216,10 +216,10 @@ ${L.value.join(" ")}
216
216
  ]);
217
217
  };
218
218
  }
219
- }), Pe = /* @__PURE__ */ Ce($t, [["__scopeId", "data-v-06bc34b3"]]), Ut = async (E) => await new mt().loadAsync(E), zt = async (E) => await Ut(E), Tt = { class: "obj-viewer-container" }, Vt = { class: "buttonGroup-top" }, At = { class: "buttonGroup-topLeft" }, Lt = { class: "buttonGroup-left" }, jt = { class: "buttonGroup-right" }, Nt = { class: "buttonGroup-bottom" }, Dt = { class: "top-panel" }, Rt = { class: "panel-header" }, Ot = { class: "panel-body" }, St = { class: "left-panel" }, Ft = { class: "panel-header" }, Mt = { class: "panel-body" }, Bt = {
219
+ }), Pe = /* @__PURE__ */ Ce($t, [["__scopeId", "data-v-06bc34b3"]]), Ut = async (E) => await new mt().loadAsync(E), zt = async (E) => await Ut(E), Tt = { class: "obj-viewer-container" }, Vt = { class: "buttonGroup-top" }, jt = { class: "buttonGroup-topLeft" }, Lt = { class: "buttonGroup-left" }, At = { class: "buttonGroup-right" }, Nt = { class: "buttonGroup-bottom" }, Dt = { class: "top-panel" }, Rt = { class: "panel-header" }, Ot = { class: "panel-body" }, St = { class: "left-panel" }, Ft = { class: "panel-header" }, Mt = { class: "panel-body" }, Bt = {
220
220
  key: 1,
221
221
  class: "clipping-content"
222
- }, Et = { class: "radio-group" }, Jt = { class: "radio-label" }, It = { class: "radio-label" }, Gt = { class: "radio-label" }, Xt = { class: "radio-label" }, Ht = { class: "right-panel" }, Kt = { class: "panel-header" }, Wt = { class: "panel-body" }, Yt = {
222
+ }, Et = { class: "radio-group" }, Jt = { class: "radio-label" }, It = { class: "radio-label" }, Gt = { class: "radio-label" }, Ht = { class: "radio-label" }, Kt = { class: "right-panel" }, Xt = { class: "panel-header" }, Wt = { class: "panel-body" }, Yt = {
223
223
  key: 0,
224
224
  class: "loading-overlay"
225
225
  }, Zt = /* @__PURE__ */ we({
@@ -230,7 +230,7 @@ ${L.value.join(" ")}
230
230
  },
231
231
  emits: ["getAnimationData", "getThreeData"],
232
232
  setup(E, { emit: Q }) {
233
- const T = Q, n = E, V = he("setManagementPageTitle"), A = he("setManagementPageVisible"), f = U(() => {
233
+ const T = Q, n = E, V = he("setManagementPageTitle"), j = he("setManagementPageVisible"), f = U(() => {
234
234
  var e, o;
235
235
  return (o = (e = n == null ? void 0 : n.threeData) == null ? void 0 : e.data) == null ? void 0 : o.machine;
236
236
  }), p = U(() => {
@@ -240,7 +240,7 @@ ${L.value.join(" ")}
240
240
  var e, o;
241
241
  return (o = (e = n == null ? void 0 : n.threeData) == null ? void 0 : e.data) == null ? void 0 : o.knife;
242
242
  }), J = u([]), D = async (t) => {
243
- !t || !t.isExtra || (await k(t), V == null || V(t == null ? void 0 : t.pageName), A == null || A(!0));
243
+ !t || !t.isExtra || (await k(t), V == null || V(t == null ? void 0 : t.pageName), j == null || j(!0));
244
244
  }, k = ft(async (t) => {
245
245
  await gt();
246
246
  const { mainKey: e, baseMenuPath: o } = t || {};
@@ -327,27 +327,27 @@ ${L.value.join(" ")}
327
327
  const L = U(() => {
328
328
  var e, o;
329
329
  return (o = (e = n == null ? void 0 : n.threeData) == null ? void 0 : e.data) == null ? void 0 : o.bladeObjUrl;
330
- }), ce = u(ke.ROBOT), X = u(null), H = u(!1), oe = u(""), j = u(!1), P = u(""), O = u(!1), _ = u(""), te = u(!1), le = u(""), N = ue(null), s = u("叶片模型"), a = ue(null), g = ue(null), C = ue(null), r = u(Pe), {
330
+ }), ce = u(ke.ROBOT), H = u(null), K = u(!1), oe = u(""), A = u(!1), P = u(""), O = u(!1), _ = u(""), te = u(!1), le = u(""), N = ue(null), s = u("叶片模型"), a = ue(null), g = ue(null), C = ue(null), r = u(Pe), {
331
331
  currentModels: c,
332
332
  resetView: m,
333
333
  initThreeJS: S,
334
- handleResize: K,
334
+ handleResize: X,
335
335
  getThreeJSObjects: I,
336
336
  cleanup: ae,
337
337
  setModels: me,
338
338
  axesHelperVisible: xe,
339
339
  toggleAxesVisibility: _e
340
- } = nt(X), { loadSceneFromFile: $e } = lt(
340
+ } = nt(H), { loadSceneFromFile: $e } = lt(
341
341
  I,
342
342
  c,
343
- H,
343
+ K,
344
344
  oe
345
- ), { isAnimating: fe, toggleAnimation: Ue, stopAnimation: ze } = ot(I, c), { isClipping: Te, activeClippingAxis: w, toggleClipping: Ve, updateClippingPlanes: F } = st(I, c), { initRaycaster: Ae, selectedObject3D: Le, setSelectedObjVisible: je, updatePosition: Ne, updateRotation: De, dispose: Re } = tt(X, I, c), Oe = () => {
345
+ ), { isAnimating: fe, toggleAnimation: Ue, stopAnimation: ze } = ot(I, c), { isClipping: Te, activeClippingAxis: w, toggleClipping: Ve, updateClippingPlanes: F } = st(I, c), { initRaycaster: je, selectedObject3D: Le, setSelectedObjVisible: Ae, updatePosition: Ne, updateRotation: De, dispose: Re } = tt(H, I, c), Oe = () => {
346
346
  _e();
347
347
  }, Se = U(() => ce.value === ke.ROBOT), Fe = (t) => {
348
348
  le.value = t, te.value = !0;
349
349
  }, se = (t) => {
350
- j.value = !0, P.value = t, t === "剖面视图" && !Te.value && Ve();
350
+ A.value = !0, P.value = t, t === "剖面视图" && !Te.value && Ve();
351
351
  }, ve = (t) => {
352
352
  O.value = !0, _.value = t, t === "动画仿真" && T("getAnimationData");
353
353
  }, Me = () => {
@@ -383,14 +383,14 @@ ${L.value.join(" ")}
383
383
  immediate: !0,
384
384
  deep: !0
385
385
  }), Z(N, (t) => {
386
- me(t ? [t] : []), Ae();
386
+ me(t ? [t] : []), je();
387
387
  });
388
388
  const Ge = () => {
389
- S(), window.addEventListener("resize", K);
389
+ S(), window.addEventListener("resize", X);
390
390
  const t = I();
391
391
  C.value = t.scene;
392
- }, Xe = () => {
393
- P.value = "", _.value = "", window.removeEventListener("resize", K), fe.value && ze(), ae(), Re();
392
+ }, He = () => {
393
+ P.value = "", _.value = "", window.removeEventListener("resize", X), fe.value && ze(), ae(), Re();
394
394
  };
395
395
  return Ye(async () => {
396
396
  await Ze();
@@ -400,13 +400,13 @@ ${L.value.join(" ")}
400
400
  console.error("Three.js 初始化失败:", t), y.error("渲染引擎初始化失败!");
401
401
  }
402
402
  }), qe(() => {
403
- Xe();
403
+ He();
404
404
  }), (t, e) => {
405
405
  const o = q("el-scrollbar"), ie = q("PipeAnalysisPanel");
406
406
  return z(), M("div", Tt, [
407
407
  $(l("div", {
408
408
  ref_key: "threejsContainer",
409
- ref: X,
409
+ ref: H,
410
410
  class: "threejs-container"
411
411
  }, null, 512), [
412
412
  [W, Se.value]
@@ -415,7 +415,7 @@ ${L.value.join(" ")}
415
415
  Y(t.$slots, "button-top", { switchTopPanel: Fe }, void 0, !0),
416
416
  Y(t.$slots, "logout", {}, void 0, !0)
417
417
  ]),
418
- l("div", At, [
418
+ l("div", jt, [
419
419
  i(h, {
420
420
  name: "viewReset",
421
421
  size: "24",
@@ -452,24 +452,24 @@ ${L.value.join(" ")}
452
452
  name: "jiegoushu",
453
453
  size: "24",
454
454
  onClick: e[0] || (e[0] = (b) => se("场景树")),
455
- active: j.value && P.value === "场景树",
455
+ active: A.value && P.value === "场景树",
456
456
  title: "场景树"
457
457
  }, null, 8, ["active"]),
458
458
  i(h, {
459
459
  name: "clipping",
460
460
  size: "24",
461
461
  onClick: e[1] || (e[1] = (b) => se("剖面视图")),
462
- active: j.value && P.value === "剖面视图",
462
+ active: A.value && P.value === "剖面视图",
463
463
  title: "剖面视图"
464
464
  }, null, 8, ["active"]),
465
465
  i(h, {
466
466
  name: "donghuafangzhen",
467
467
  size: "24",
468
468
  onClick: e[2] || (e[2] = (b) => se("工件树")),
469
- active: j.value && P.value === "工件树"
469
+ active: A.value && P.value === "工件树"
470
470
  }, null, 8, ["active"])
471
471
  ]),
472
- l("div", jt, [
472
+ l("div", At, [
473
473
  Y(t.$slots, "button-right", { switchRightPanel: ve }, void 0, !0),
474
474
  i(h, {
475
475
  name: "jichuangxuanze",
@@ -533,7 +533,7 @@ ${L.value.join(" ")}
533
533
  l("span", null, B(P.value), 1),
534
534
  l("span", {
535
535
  class: "close",
536
- onClick: e[6] || (e[6] = (b) => j.value = !1)
536
+ onClick: e[6] || (e[6] = (b) => A.value = !1)
537
537
  }, " X ")
538
538
  ]),
539
539
  l("div", Mt, [
@@ -588,7 +588,7 @@ ${L.value.join(" ")}
588
588
  ]),
589
589
  e[18] || (e[18] = l("span", { class: "radio-text" }, "Y轴切割", -1))
590
590
  ]),
591
- l("label", Xt, [
591
+ l("label", Ht, [
592
592
  $(l("input", {
593
593
  type: "radio",
594
594
  name: "clipping-axis",
@@ -606,7 +606,7 @@ ${L.value.join(" ")}
606
606
  P.value === "工件树" ? (z(), ye(at, {
607
607
  key: 2,
608
608
  model: (b = d(Le)) == null ? void 0 : b.obj,
609
- onVisibleChange: d(je),
609
+ onVisibleChange: d(Ae),
610
610
  onUpdatePosition: d(Ne),
611
611
  onUpdateRotation: d(De)
612
612
  }, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : G("", !0)
@@ -616,10 +616,10 @@ ${L.value.join(" ")}
616
616
  })
617
617
  ])
618
618
  ], 512), [
619
- [W, j.value]
619
+ [W, A.value]
620
620
  ]),
621
- $(l("div", Ht, [
622
- l("div", Kt, [
621
+ $(l("div", Kt, [
622
+ l("div", Xt, [
623
623
  l("span", null, B(_.value), 1),
624
624
  l("span", {
625
625
  class: "close",
@@ -649,7 +649,7 @@ ${L.value.join(" ")}
649
649
  ], 512), [
650
650
  [W, O.value]
651
651
  ]),
652
- H.value ? (z(), M("div", Yt, [
652
+ K.value ? (z(), M("div", Yt, [
653
653
  e[20] || (e[20] = l("div", { class: "loading-spinner" }, null, -1)),
654
654
  l("p", null, B(oe.value), 1)
655
655
  ])) : G("", !0),
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Te=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),A=require("./workpieceTreePanel-DXyb_Wnw.cjs"),Z=require("./iconfont-BDfcbq2v.cjs"),p=require("./index-Dv1G67_Q.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs");const Q=require("./index-uIVtG4RY.cjs"),G=require("./urdfTree-CWStzmk2.cjs"),se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=require("./svgIcon-CUM54R6L.cjs"),De=require("./animationData-C3-BiUgV.cjs"),Me=require("./MTLLoader-Cqv49Ps8.cjs"),oe=require("./index-D3TgRd-7.cjs"),$e={class:"panel-content"},Be={class:"action-bar"},ze={key:0,class:"animation-controls"},Le={class:"control-row"},Re={class:"control-row"},Ue={class:"frame-info"},je={class:"control-row"},Ae={key:1,class:"empty-state"},Ie={class:"dialog-footer"},Oe=e.defineComponent({__name:"urdfAnimationPanel",props:{model:{},scene:{},xyzbcList:{}},setup(B,{expose:I}){const k=B,o=e.ref([]),w=e.ref(!1),C=e.ref(""),v=e.ref("stopped"),c=e.ref(0),y=e.ref(0),z=e.ref(10),S=e.ref(null);let h=0;const O=e.ref([]),T=e.computed(()=>k.model?G.getNonFixedJoints(k.model).map(m=>m.name):[]),P=e.computed(()=>[...T.value]),W=e.computed(()=>P.value.length>0?`请按以下格式粘贴数据 (第一行为表头,使用 Tab 分隔):
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),Te=require("./index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs"),A=require("./workpieceTreePanel-ugZl4wP-.cjs"),Z=require("./iconfont-BRjtaT1w.cjs"),p=require("./index-DEBf-IBT.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs");const Q=require("./index-BQ4Ui0xZ.cjs"),G=require("./urdfTree-BhIdc1in.cjs"),se=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g=require("./svgIcon-CUM54R6L.cjs"),De=require("./animationData-CqnPk9Xj.cjs"),Me=require("./MTLLoader-CGJ_BoN_.cjs"),oe=require("./index-NsYVgt6J.cjs"),$e={class:"panel-content"},Be={class:"action-bar"},ze={key:0,class:"animation-controls"},Le={class:"control-row"},Re={class:"control-row"},Ue={class:"frame-info"},je={class:"control-row"},Ae={key:1,class:"empty-state"},Ie={class:"dialog-footer"},Oe=e.defineComponent({__name:"urdfAnimationPanel",props:{model:{},scene:{},xyzbcList:{}},setup(B,{expose:I}){const k=B,o=e.ref([]),w=e.ref(!1),C=e.ref(""),v=e.ref("stopped"),c=e.ref(0),y=e.ref(0),z=e.ref(10),S=e.ref(null);let h=0;const O=e.ref([]),T=e.computed(()=>k.model?G.getNonFixedJoints(k.model).map(m=>m.name):[]),P=e.computed(()=>[...T.value]),W=e.computed(()=>P.value.length>0?`请按以下格式粘贴数据 (第一行为表头,使用 Tab 分隔):
2
2
  ${P.value.join(" ")}
3
3
  0 0 0 ...
4
4
  1 2 3 ...`:"请先加载模型。"),R=e.computed(()=>o.value[c.value]||{});e.watch(()=>k.model,s=>{s?(S.value=new A.URDFRobotController(s),O.value=G.getAllLinkName(s),c.value=0):(S.value=null,O.value=[])},{immediate:!0});const U=s=>{if(s<0||s>=o.value.length){console.error(`帧索引 ${s} 超出范围`);return}const n=o.value[s];if(S.value){const m={};T.value.forEach(N=>{const i=parseFloat(n[N]);isNaN(i)||(m[N]=i)}),S.value.setJointAngles(m)}c.value=s,y.value=o.value.length>1?s/(o.value.length-1)*100:100},H=async s=>{try{for(let n=c.value;n<o.value.length;n++){if(s!==h)return;const m=o.value[n],N={};if(S.value)T.value.forEach(i=>{const r=parseFloat(m[i]);isNaN(r)||(N[i]=r)}),await S.value.animateToState(N,z.value,i=>{s===h&&(y.value=(n+i)/o.value.length*100)});else{if(await new Promise(i=>setTimeout(i,z.value)),s!==h)return;y.value=(n+1)/o.value.length*100}c.value=n}s===h&&(p.ElMessage.success("动画播放完成"),v.value="stopped",y.value=100)}catch(n){console.error("动画播放出错:",n),p.ElMessage.error("动画播放出错"),v.value="stopped"}},_=()=>{if(o.value.length===0){p.ElMessage.error("无动画数据");return}v.value==="stopped"&&(c.value=0,U(0)),v.value="playing",h++,H(h),p.ElMessage.info("动画播放中")},V=()=>{v.value==="playing"&&(h++,v.value="paused",p.ElMessage.info("动画已暂停"))},D=()=>{h++,v.value="stopped",c.value=0,y.value=0,U(0),p.ElMessage.info("动画已停止并重置")},E=()=>{v.value==="playing"?V():_()},F=s=>{h++,v.value="paused",U(s)},q=()=>{if(!C.value.trim()){p.ElMessage.warning("导入内容不能为空");return}const s=C.value.trim().split(`
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),D=require("./iconfont-BDfcbq2v.cjs"),s=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs"),ye=require("./fileUtil-BFtJHTM0.cjs"),we=require("./index-Dv1G67_Q.cjs"),J=require("./urdfTree-CWStzmk2.cjs"),v=require("./svgIcon-CUM54R6L.cjs"),Se=require("./isString-Cqq3-gAK.cjs"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=new s.Box3,R=new s.Vector3;class oe extends s.InstancedBufferGeometry{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const e=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],i=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],o=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(o),this.setAttribute("position",new s.Float32BufferAttribute(e,3)),this.setAttribute("uv",new s.Float32BufferAttribute(i,2))}applyMatrix4(e){const i=this.attributes.instanceStart,o=this.attributes.instanceEnd;return i!==void 0&&(i.applyMatrix4(e),o.applyMatrix4(e),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(e){let i;e instanceof Float32Array?i=e:Array.isArray(e)&&(i=new Float32Array(e));const o=new s.InstancedInterleavedBuffer(i,6,1);return this.setAttribute("instanceStart",new s.InterleavedBufferAttribute(o,3,0)),this.setAttribute("instanceEnd",new s.InterleavedBufferAttribute(o,3,3)),this.instanceCount=this.attributes.instanceStart.count,this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(e){let i;e instanceof Float32Array?i=e:Array.isArray(e)&&(i=new Float32Array(e));const o=new s.InstancedInterleavedBuffer(i,6,1);return this.setAttribute("instanceColorStart",new s.InterleavedBufferAttribute(o,3,0)),this.setAttribute("instanceColorEnd",new s.InterleavedBufferAttribute(o,3,3)),this}fromWireframeGeometry(e){return this.setPositions(e.attributes.position.array),this}fromEdgesGeometry(e){return this.setPositions(e.attributes.position.array),this}fromMesh(e){return this.fromWireframeGeometry(new s.WireframeGeometry(e.geometry)),this}fromLineSegments(e){const i=e.geometry;return this.setPositions(i.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new s.Box3);const e=this.attributes.instanceStart,i=this.attributes.instanceEnd;e!==void 0&&i!==void 0&&(this.boundingBox.setFromBufferAttribute(e),K.setFromBufferAttribute(i),this.boundingBox.union(K))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new s.Sphere),this.boundingBox===null&&this.computeBoundingBox();const e=this.attributes.instanceStart,i=this.attributes.instanceEnd;if(e!==void 0&&i!==void 0){const o=this.boundingSphere.center;this.boundingBox.getCenter(o);let n=0;for(let c=0,d=e.count;c<d;c++)R.fromBufferAttribute(e,c),n=Math.max(n,o.distanceToSquared(R)),R.fromBufferAttribute(i,c),n=Math.max(n,o.distanceToSquared(R));this.boundingSphere.radius=Math.sqrt(n),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}}s.UniformsLib.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new s.Vector2(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}};s.ShaderLib.line={uniforms:s.UniformsUtils.merge([s.UniformsLib.common,s.UniformsLib.fog,s.UniformsLib.line]),vertexShader:`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),D=require("./iconfont-BRjtaT1w.cjs"),s=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs"),ye=require("./fileUtil-DmlOwzdA.cjs"),we=require("./index-DEBf-IBT.cjs"),J=require("./urdfTree-BhIdc1in.cjs"),v=require("./svgIcon-CUM54R6L.cjs"),Se=require("./isString-D6Z6SOrb.cjs"),xe=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),K=new s.Box3,R=new s.Vector3;class oe extends s.InstancedBufferGeometry{constructor(){super(),this.isLineSegmentsGeometry=!0,this.type="LineSegmentsGeometry";const e=[-1,2,0,1,2,0,-1,1,0,1,1,0,-1,0,0,1,0,0,-1,-1,0,1,-1,0],i=[-1,2,1,2,-1,1,1,1,-1,-1,1,-1,-1,-2,1,-2],o=[0,2,1,2,3,1,2,4,3,4,5,3,4,6,5,6,7,5];this.setIndex(o),this.setAttribute("position",new s.Float32BufferAttribute(e,3)),this.setAttribute("uv",new s.Float32BufferAttribute(i,2))}applyMatrix4(e){const i=this.attributes.instanceStart,o=this.attributes.instanceEnd;return i!==void 0&&(i.applyMatrix4(e),o.applyMatrix4(e),i.needsUpdate=!0),this.boundingBox!==null&&this.computeBoundingBox(),this.boundingSphere!==null&&this.computeBoundingSphere(),this}setPositions(e){let i;e instanceof Float32Array?i=e:Array.isArray(e)&&(i=new Float32Array(e));const o=new s.InstancedInterleavedBuffer(i,6,1);return this.setAttribute("instanceStart",new s.InterleavedBufferAttribute(o,3,0)),this.setAttribute("instanceEnd",new s.InterleavedBufferAttribute(o,3,3)),this.instanceCount=this.attributes.instanceStart.count,this.computeBoundingBox(),this.computeBoundingSphere(),this}setColors(e){let i;e instanceof Float32Array?i=e:Array.isArray(e)&&(i=new Float32Array(e));const o=new s.InstancedInterleavedBuffer(i,6,1);return this.setAttribute("instanceColorStart",new s.InterleavedBufferAttribute(o,3,0)),this.setAttribute("instanceColorEnd",new s.InterleavedBufferAttribute(o,3,3)),this}fromWireframeGeometry(e){return this.setPositions(e.attributes.position.array),this}fromEdgesGeometry(e){return this.setPositions(e.attributes.position.array),this}fromMesh(e){return this.fromWireframeGeometry(new s.WireframeGeometry(e.geometry)),this}fromLineSegments(e){const i=e.geometry;return this.setPositions(i.attributes.position.array),this}computeBoundingBox(){this.boundingBox===null&&(this.boundingBox=new s.Box3);const e=this.attributes.instanceStart,i=this.attributes.instanceEnd;e!==void 0&&i!==void 0&&(this.boundingBox.setFromBufferAttribute(e),K.setFromBufferAttribute(i),this.boundingBox.union(K))}computeBoundingSphere(){this.boundingSphere===null&&(this.boundingSphere=new s.Sphere),this.boundingBox===null&&this.computeBoundingBox();const e=this.attributes.instanceStart,i=this.attributes.instanceEnd;if(e!==void 0&&i!==void 0){const o=this.boundingSphere.center;this.boundingBox.getCenter(o);let n=0;for(let c=0,d=e.count;c<d;c++)R.fromBufferAttribute(e,c),n=Math.max(n,o.distanceToSquared(R)),R.fromBufferAttribute(i,c),n=Math.max(n,o.distanceToSquared(R));this.boundingSphere.radius=Math.sqrt(n),isNaN(this.boundingSphere.radius)&&console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.",this)}}toJSON(){}}s.UniformsLib.line={worldUnits:{value:1},linewidth:{value:1},resolution:{value:new s.Vector2(1,1)},dashOffset:{value:0},dashScale:{value:1},dashSize:{value:1},gapSize:{value:1}};s.ShaderLib.line={uniforms:s.UniformsUtils.merge([s.UniformsLib.common,s.UniformsLib.fog,s.UniformsLib.line]),vertexShader:`
2
2
  #include <common>
3
3
  #include <color_pars_vertex>
4
4
  #include <fog_pars_vertex>
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as We, ref as B, shallowRef as he, computed as $, watch as Ve, onMounted as He, onBeforeUnmount as Ne, resolveComponent as $e, createElementBlock as te, openBlock as X, createElementVNode as d, withDirectives as k, createCommentVNode as ne, createVNode as p, unref as b, renderSlot as ve, toDisplayString as ie, withCtx as ge, createBlock as Xe, isRef as Y, vModelRadio as q, vShow as se } from "vue";
2
- import { u as Ye, a as qe, b as Je, f as Ze, d as Ke } from "./iconfont-B9Cj3DQM.js";
3
- import { aE as Qe, aF as le, aG as de, av as R, aH as et, B as ce, aD as Ce, V as P, aI as tt, aJ as Q, aK as _e, Y as Ue, aL as ee, k as nt, aM as V, aN as it, r as st, s as Ee, t as ot, w as at, ag as rt, ao as lt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
4
- import { r as dt } from "./fileUtil-D7XVXEhb.js";
5
- import { E as ct } from "./index-HduGypr9.js";
6
- import { U as ut, J as ft } from "./urdfTree-CnkPddyT.js";
2
+ import { u as Ye, a as qe, b as Je, f as Ze, d as Ke } from "./iconfont-Clbumxhq.js";
3
+ import { aE as Qe, aF as le, aG as de, av as R, aH as et, B as ce, aD as Ce, V as P, aI as tt, aJ as Q, aK as _e, Y as Ue, aL as ee, k as nt, aM as V, aN as it, r as st, s as Ee, t as ot, w as at, ag as rt, ao as lt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
4
+ import { r as dt } from "./fileUtil-2jbB0UOW.js";
5
+ import { E as ct } from "./index-DBDeHECn.js";
6
+ import { U as ut, J as ft } from "./urdfTree-BqMKYhyU.js";
7
7
  import { T as v } from "./svgIcon-D-_fXUBL.js";
8
- import { i as pt } from "./isString-BuBBWjRr.js";
8
+ import { i as pt } from "./isString-DBnuELeA.js";
9
9
  import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const ye = new ce(), J = new P();
11
11
  class Ae extends Qe {
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),f=require("./index-Dv1G67_Q.cjs"),A=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs");const H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function O(c){const m=sessionStorage.getItem("loginToken")??"123456";return f.service({url:"/api/sysFile/uploadFile",method:"post",data:c,headers:{Authorization:m,"Content-Type":"multipart/form-data"}})}function B(c){const m=sessionStorage.getItem("loginToken")??"123456";return f.service({url:"/api/sysFile/downloadFile",method:"post",data:c,headers:{Authorization:m,Accept:"application/octet-stream"},responseType:"blob"})}function q(c){const m=sessionStorage.getItem("loginToken")??"123456";return f.service({url:"/api/sysFile/uploadFiles",method:"post",data:c,headers:{Authorization:m,"Content-Type":"multipart/form-data"}})}const I=f.defineStore("threeState",{state:()=>({data:{extension:"",url:[],data:{},isThreeScene:!0}}),actions:{setData(c){this.data=c},getData(){return this.data}}});function R(){const c=A.useMenuState(f.pinia),{platform:m}=f.storeToRefs(c),T=I(f.pinia),b=e.computed(()=>{var n;return(n=T==null?void 0:T.data)==null?void 0:n.extension}),p=["uv","cpt","cyd"],y=["urdf"],s=["obj","stl"],o=[...p,...y,...s],F=n=>{if(!C())throw new Error("不是三维系统");T.setData(n)},h=()=>T.getData(),C=()=>m.value==="three",u=n=>{const i=n==null?void 0:n.toLowerCase(),l=i==null?void 0:i.lastIndexOf(".");let v=i;return l>=0&&(v=v==null?void 0:v.slice(l+1)),v},S=n=>{if(!n)return!1;const i=u(n);return o==null?void 0:o.includes(i)};return{getData:h,setData:F,isThreeSystem:C,isUrdf:n=>{if(!n)return!1;const i=u(n);return y==null?void 0:y.includes(i)},isGeneralFile:n=>{if(!n)return!1;const i=u(n);return s==null?void 0:s.includes(i)},isTrackPathFile:n=>{if(!n)return!1;const i=u(n);return p==null?void 0:p.includes(i)},isThreeFile:S,isUseBackdrop:n=>C()&&S(n),initTrackFileType:n=>{if(!n)return{isCpt:!1,isCyd:!1,isUv:!1};const i=u(n),l=p==null?void 0:p.find(k=>k===i);return{isCpt:l==="cpt",isCyd:l==="cyd",isUv:l==="uv"}},getFileExtension:u,extraExtension:b}}const L={class:"top-menu"},x={key:4,class:"loading"},z=e.defineComponent({__name:"threeViewerHost",props:{fileUrls:{default:()=>[]},host:{default:"inline"},extension:{},animationData:{default:()=>({})},width:{default:"100%"},height:{default:"100%"},threeData:{},componentType:{}},emits:["getThreeData"],setup(c,{emit:m}){const T=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeSceneView-f1V-z4jr.cjs"))),b=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threePreview-CUGoEzKf.cjs"))),p=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeTrackPathView-BGHiOyJo.cjs"))),y=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeSceneViewForCPMPIP-CojHDVHC.cjs"))),s={ROBOT_SCENE:"robot",LATHE_SCENE:"latheScene",CPMPIP_SCENE:"cpmpip",PREVIEW:"preview"},o=c,F=A.useMenuState(f.pinia),{platName:h}=f.storeToRefs(F),{isGeneralFile:C,isUrdf:u,isTrackPathFile:S,extraExtension:_}=R(),w=e.computed(()=>(o==null?void 0:o.extension)||_.value),P=e.computed(()=>{var t,r;return(r=(t=o==null?void 0:o.threeData)==null?void 0:t.data)==null?void 0:r.trackFileType}),E=e.computed(()=>{var r;if(o.componentType)switch(o.componentType){case"robot":return s.ROBOT_SCENE;case"latheScene":return s.LATHE_SCENE;case"cpmpip":return s.CPMPIP_SCENE;case"preview":return s.PREVIEW}const t=(r=o==null?void 0:o.fileUrls)==null?void 0:r[0];return C(t)?s.PREVIEW:(h==null?void 0:h.value)==="CPMPIP"&&(u(t)||u(w.value))?s.CPMPIP_SCENE:(h==null?void 0:h.value)==="SFRTubeBend"&&(u(t)||u(w.value))?s.ROBOT_SCENE:S(w.value)&&P.value?s.LATHE_SCENE:s.PREVIEW}),D=m,n=e.ref([]),i=e.ref(!1);function l(t){try{const r=new URL(t).pathname,d=r.substring(r.lastIndexOf("/")+1);return decodeURIComponent(d)}catch(r){return console.error("无法解析URL以提取文件名:",t,r),"未知文件名"}}async function v(t){let r,d;if(/^https?:\/\//.test(t))try{const a=await fetch(t);if(!a.ok)throw new Error(`下载文件失败: ${a.statusText} (URL: ${t})`);r=await a.blob(),d=l(t)}catch(a){throw console.error("使用 fetch 下载文件时出错:",a),a}else try{const a=await B({url:t});if(a.status!==200)throw new Error(`下载失败: ${a.status}`);const g=a.headers["content-disposition"];d=k(g)||"无文件名",r=a.data}catch(a){throw console.error("通过 API 下载文件时出错:",a),a}return new File([r],d,{type:r.type})}function k(t){if(!t)return;const r=t.match(/filename\*\s*=\s*([^;]+)/i);if(r){let a=r[1].trim();a=a.replace(/^"(.*)"$/,"$1");const g=a.split("''");if(g.length===2){const M=g[0].toUpperCase(),U=g[1];try{if(M==="UTF-8")return decodeURIComponent(U)}catch{}return U}try{return decodeURIComponent(a)}catch{return a}}const d=t.match(/filename\s*=\s*("?)([^";]+)\1/i);if(d)return d[2].trim()}async function N(t){if(!t||!t.length){n.value=[];return}i.value=!0;try{const r=await Promise.all(t.map(d=>v(d)));n.value=r}catch(r){console.error("文件下载时发生错误:",r),n.value=[]}finally{i.value=!1}}const $=()=>{D("getThreeData")};return e.watch(()=>o.fileUrls,async t=>{await N(t??[])},{immediate:!0,deep:!0}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.host==="electron"?"mv-electron":"mv-inline","three-platform"])},[e.createElementVNode("div",L,[e.renderSlot(t.$slots,"top-menu",{},void 0,!0)]),E.value===s.ROBOT_SCENE?(e.openBlock(),e.createBlock(e.unref(T),{key:0,"file-blobs":n.value,"animation-data":t.animationData,onGetThreeData:$,threeData:o.threeData},{"button-left":e.withCtx(()=>[e.renderSlot(t.$slots,"management-menu",{},void 0,!0)]),"button-right":e.withCtx(()=>[e.renderSlot(t.$slots,"management-page",{},void 0,!0)]),_:3},8,["file-blobs","animation-data","threeData"])):E.value===s.LATHE_SCENE?(e.openBlock(),e.createBlock(e.unref(p),{key:1,fileUrls:t.fileUrls,threeData:o.threeData,trackFileType:P.value},{"button-left":e.withCtx(()=>[e.renderSlot(t.$slots,"management-menu",{},void 0,!0)]),"button-right":e.withCtx(()=>[e.renderSlot(t.$slots,"management-page",{},void 0,!0)]),_:3},8,["fileUrls","threeData","trackFileType"])):E.value===s.CPMPIP_SCENE?(e.openBlock(),e.createBlock(e.unref(y),{key:2,"file-blobs":n.value,threeData:o.threeData},{"button-left":e.withCtx(()=>[e.renderSlot(t.$slots,"management-menu",{},void 0,!0)]),"button-right":e.withCtx(()=>[e.renderSlot(t.$slots,"management-page",{},void 0,!0)]),_:3},8,["file-blobs","threeData"])):E.value===s.PREVIEW?(e.openBlock(),e.createBlock(e.unref(b),{key:3,"file-blobs":n.value,"animation-data":t.animationData},{"button-left":e.withCtx(()=>[e.renderSlot(t.$slots,"management-menu",{},void 0,!0)]),"button-right":e.withCtx(()=>[e.renderSlot(t.$slots,"management-page",{},void 0,!0)]),_:3},8,["file-blobs","animation-data"])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",x," 文件下载中,请稍候... ")):e.createCommentVNode("",!0)],2))}}),V=H._export_sfc(z,[["__scopeId","data-v-a4f0efb1"]]),W=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));exports.ThreeViewerHost=V;exports.downloadAvatarApi=B;exports.threeViewerHost=W;exports.uploadAmountApi=q;exports.uploadFile=O;exports.useThreeState=I;exports.useThreeSystem=R;
1
+ "use strict";const e=require("vue"),f=require("./index-DEBf-IBT.cjs"),A=require("./index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs");const H=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function O(c){const m=sessionStorage.getItem("loginToken")??"123456";return f.service({url:"/api/sysFile/uploadFile",method:"post",data:c,headers:{Authorization:m,"Content-Type":"multipart/form-data"}})}function B(c){const m=sessionStorage.getItem("loginToken")??"123456";return f.service({url:"/api/sysFile/downloadFile",method:"post",data:c,headers:{Authorization:m,Accept:"application/octet-stream"},responseType:"blob"})}function q(c){const m=sessionStorage.getItem("loginToken")??"123456";return f.service({url:"/api/sysFile/uploadFiles",method:"post",data:c,headers:{Authorization:m,"Content-Type":"multipart/form-data"}})}const I=f.defineStore("threeState",{state:()=>({data:{extension:"",url:[],data:{},isThreeScene:!0}}),actions:{setData(c){this.data=c},getData(){return this.data}}});function R(){const c=A.useMenuState(f.pinia),{platform:m}=f.storeToRefs(c),T=I(f.pinia),b=e.computed(()=>{var n;return(n=T==null?void 0:T.data)==null?void 0:n.extension}),p=["uv","cpt","cyd"],y=["urdf"],s=["obj","stl"],o=[...p,...y,...s],F=n=>{if(!C())throw new Error("不是三维系统");T.setData(n)},h=()=>T.getData(),C=()=>m.value==="three",u=n=>{const i=n==null?void 0:n.toLowerCase(),l=i==null?void 0:i.lastIndexOf(".");let v=i;return l>=0&&(v=v==null?void 0:v.slice(l+1)),v},S=n=>{if(!n)return!1;const i=u(n);return o==null?void 0:o.includes(i)};return{getData:h,setData:F,isThreeSystem:C,isUrdf:n=>{if(!n)return!1;const i=u(n);return y==null?void 0:y.includes(i)},isGeneralFile:n=>{if(!n)return!1;const i=u(n);return s==null?void 0:s.includes(i)},isTrackPathFile:n=>{if(!n)return!1;const i=u(n);return p==null?void 0:p.includes(i)},isThreeFile:S,isUseBackdrop:n=>C()&&S(n),initTrackFileType:n=>{if(!n)return{isCpt:!1,isCyd:!1,isUv:!1};const i=u(n),l=p==null?void 0:p.find(k=>k===i);return{isCpt:l==="cpt",isCyd:l==="cyd",isUv:l==="uv"}},getFileExtension:u,extraExtension:b}}const L={class:"top-menu"},x={key:4,class:"loading"},z=e.defineComponent({__name:"threeViewerHost",props:{fileUrls:{default:()=>[]},host:{default:"inline"},extension:{},animationData:{default:()=>({})},width:{default:"100%"},height:{default:"100%"},threeData:{},componentType:{}},emits:["getThreeData"],setup(c,{emit:m}){const T=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeSceneView-MV6u29zj.cjs"))),b=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threePreview-DFaqe_Df.cjs"))),p=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeTrackPathView-jcnhqw1L.cjs"))),y=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./threeSceneViewForCPMPIP-DWIRSSMI.cjs"))),s={ROBOT_SCENE:"robot",LATHE_SCENE:"latheScene",CPMPIP_SCENE:"cpmpip",PREVIEW:"preview"},o=c,F=A.useMenuState(f.pinia),{platName:h}=f.storeToRefs(F),{isGeneralFile:C,isUrdf:u,isTrackPathFile:S,extraExtension:_}=R(),w=e.computed(()=>(o==null?void 0:o.extension)||_.value),P=e.computed(()=>{var t,r;return(r=(t=o==null?void 0:o.threeData)==null?void 0:t.data)==null?void 0:r.trackFileType}),E=e.computed(()=>{var r;if(o.componentType)switch(o.componentType){case"robot":return s.ROBOT_SCENE;case"latheScene":return s.LATHE_SCENE;case"cpmpip":return s.CPMPIP_SCENE;case"preview":return s.PREVIEW}const t=(r=o==null?void 0:o.fileUrls)==null?void 0:r[0];return C(t)?s.PREVIEW:(h==null?void 0:h.value)==="CPMPIP"&&(u(t)||u(w.value))?s.CPMPIP_SCENE:(h==null?void 0:h.value)==="SFRTubeBend"&&(u(t)||u(w.value))?s.ROBOT_SCENE:S(w.value)&&P.value?s.LATHE_SCENE:s.PREVIEW}),D=m,n=e.ref([]),i=e.ref(!1);function l(t){try{const r=new URL(t).pathname,d=r.substring(r.lastIndexOf("/")+1);return decodeURIComponent(d)}catch(r){return console.error("无法解析URL以提取文件名:",t,r),"未知文件名"}}async function v(t){let r,d;if(/^https?:\/\//.test(t))try{const a=await fetch(t);if(!a.ok)throw new Error(`下载文件失败: ${a.statusText} (URL: ${t})`);r=await a.blob(),d=l(t)}catch(a){throw console.error("使用 fetch 下载文件时出错:",a),a}else try{const a=await B({url:t});if(a.status!==200)throw new Error(`下载失败: ${a.status}`);const g=a.headers["content-disposition"];d=k(g)||"无文件名",r=a.data}catch(a){throw console.error("通过 API 下载文件时出错:",a),a}return new File([r],d,{type:r.type})}function k(t){if(!t)return;const r=t.match(/filename\*\s*=\s*([^;]+)/i);if(r){let a=r[1].trim();a=a.replace(/^"(.*)"$/,"$1");const g=a.split("''");if(g.length===2){const M=g[0].toUpperCase(),U=g[1];try{if(M==="UTF-8")return decodeURIComponent(U)}catch{}return U}try{return decodeURIComponent(a)}catch{return a}}const d=t.match(/filename\s*=\s*("?)([^";]+)\1/i);if(d)return d[2].trim()}async function N(t){if(!t||!t.length){n.value=[];return}i.value=!0;try{const r=await Promise.all(t.map(d=>v(d)));n.value=r}catch(r){console.error("文件下载时发生错误:",r),n.value=[]}finally{i.value=!1}}const $=()=>{D("getThreeData")};return e.watch(()=>o.fileUrls,async t=>{await N(t??[])},{immediate:!0,deep:!0}),(t,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([o.host==="electron"?"mv-electron":"mv-inline","three-platform"])},[e.createElementVNode("div",L,[e.renderSlot(t.$slots,"top-menu",{},void 0,!0)]),E.value===s.ROBOT_SCENE?(e.openBlock(),e.createBlock(e.unref(T),{key:0,"file-blobs":n.value,"animation-data":t.animationData,onGetThreeData:$,threeData:o.threeData},{"button-left":e.withCtx(()=>[e.renderSlot(t.$slots,"management-menu",{},void 0,!0)]),"button-right":e.withCtx(()=>[e.renderSlot(t.$slots,"management-page",{},void 0,!0)]),_:3},8,["file-blobs","animation-data","threeData"])):E.value===s.LATHE_SCENE?(e.openBlock(),e.createBlock(e.unref(p),{key:1,fileUrls:t.fileUrls,threeData:o.threeData,trackFileType:P.value},{"button-left":e.withCtx(()=>[e.renderSlot(t.$slots,"management-menu",{},void 0,!0)]),"button-right":e.withCtx(()=>[e.renderSlot(t.$slots,"management-page",{},void 0,!0)]),_:3},8,["fileUrls","threeData","trackFileType"])):E.value===s.CPMPIP_SCENE?(e.openBlock(),e.createBlock(e.unref(y),{key:2,"file-blobs":n.value,threeData:o.threeData},{"button-left":e.withCtx(()=>[e.renderSlot(t.$slots,"management-menu",{},void 0,!0)]),"button-right":e.withCtx(()=>[e.renderSlot(t.$slots,"management-page",{},void 0,!0)]),_:3},8,["file-blobs","threeData"])):E.value===s.PREVIEW?(e.openBlock(),e.createBlock(e.unref(b),{key:3,"file-blobs":n.value,"animation-data":t.animationData},{"button-left":e.withCtx(()=>[e.renderSlot(t.$slots,"management-menu",{},void 0,!0)]),"button-right":e.withCtx(()=>[e.renderSlot(t.$slots,"management-page",{},void 0,!0)]),_:3},8,["file-blobs","animation-data"])):e.createCommentVNode("",!0),i.value?(e.openBlock(),e.createElementBlock("div",x," 文件下载中,请稍候... ")):e.createCommentVNode("",!0)],2))}}),V=H._export_sfc(z,[["__scopeId","data-v-a4f0efb1"]]),W=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));exports.ThreeViewerHost=V;exports.downloadAvatarApi=B;exports.threeViewerHost=W;exports.uploadAmountApi=q;exports.uploadFile=O;exports.useThreeState=I;exports.useThreeSystem=R;
@@ -1,7 +1,7 @@
1
1
  import { computed as _, defineComponent as Y, defineAsyncComponent as S, ref as B, watch as q, createElementBlock as O, openBlock as y, normalizeClass as J, createElementVNode as K, createBlock as P, createCommentVNode as L, renderSlot as p, unref as D, withCtx as T } from "vue";
2
- import { a as A, cb as Q, p as N, s as H } from "./index-HduGypr9.js";
3
- import { u as z } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
2
+ import { a as A, c0 as Q, p as N, s as H } from "./index-DBDeHECn.js";
3
+ import { u as z } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
5
5
  import { _ as X } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  function ue(l) {
7
7
  const m = sessionStorage.getItem("loginToken") ?? "123456";
@@ -137,7 +137,7 @@ const te = { class: "top-menu" }, ne = {
137
137
  },
138
138
  emits: ["getThreeData"],
139
139
  setup(l, { emit: m }) {
140
- const v = S(() => import("./threeSceneView-CzgWYHBw.js")), k = S(() => import("./threePreview-DutKTPWH.js")), f = S(() => import("./threeTrackPathView-DA4_8jas.js")), E = S(() => import("./threeSceneViewForCPMPIP-2sXIw3I1.js")), o = {
140
+ const v = S(() => import("./threeSceneView-D7A2EUjB.js")), k = S(() => import("./threePreview-qK1L0B-6.js")), f = S(() => import("./threeTrackPathView-zpNY2aoY.js")), E = S(() => import("./threeSceneViewForCPMPIP-CFMeh1a1.js")), o = {
141
141
  ROBOT_SCENE: "robot",
142
142
  // 机器人场景
143
143
  LATHE_SCENE: "latheScene",
@@ -149,7 +149,7 @@ const te = { class: "top-menu" }, ne = {
149
149
  }, r = l, U = z(N), { platName: d } = H(U), { isGeneralFile: g, isUrdf: c, isTrackPathFile: F, extraExtension: $ } = ee(), w = _(() => (r == null ? void 0 : r.extension) || $.value), I = _(() => {
150
150
  var e, n;
151
151
  return (n = (e = r == null ? void 0 : r.threeData) == null ? void 0 : e.data) == null ? void 0 : n.trackFileType;
152
- }), b = _(() => {
152
+ }), C = _(() => {
153
153
  var n;
154
154
  if (r.componentType)
155
155
  switch (r.componentType) {
@@ -189,8 +189,8 @@ const te = { class: "top-menu" }, ne = {
189
189
  const a = await Z({ url: e });
190
190
  if (a.status !== 200)
191
191
  throw new Error(`下载失败: ${a.status}`);
192
- const C = a.headers["content-disposition"];
193
- u = R(C) || "无文件名", n = a.data;
192
+ const b = a.headers["content-disposition"];
193
+ u = R(b) || "无文件名", n = a.data;
194
194
  } catch (a) {
195
195
  throw console.error("通过 API 下载文件时出错:", a), a;
196
196
  }
@@ -202,9 +202,9 @@ const te = { class: "top-menu" }, ne = {
202
202
  if (n) {
203
203
  let a = n[1].trim();
204
204
  a = a.replace(/^"(.*)"$/, "$1");
205
- const C = a.split("''");
206
- if (C.length === 2) {
207
- const j = C[0].toUpperCase(), M = C[1];
205
+ const b = a.split("''");
206
+ if (b.length === 2) {
207
+ const j = b[0].toUpperCase(), M = b[1];
208
208
  try {
209
209
  if (j === "UTF-8")
210
210
  return decodeURIComponent(M);
@@ -252,7 +252,7 @@ const te = { class: "top-menu" }, ne = {
252
252
  K("div", te, [
253
253
  p(e.$slots, "top-menu", {}, void 0, !0)
254
254
  ]),
255
- b.value === o.ROBOT_SCENE ? (y(), P(D(v), {
255
+ C.value === o.ROBOT_SCENE ? (y(), P(D(v), {
256
256
  key: 0,
257
257
  "file-blobs": t.value,
258
258
  "animation-data": e.animationData,
@@ -266,7 +266,7 @@ const te = { class: "top-menu" }, ne = {
266
266
  p(e.$slots, "management-page", {}, void 0, !0)
267
267
  ]),
268
268
  _: 3
269
- }, 8, ["file-blobs", "animation-data", "threeData"])) : b.value === o.LATHE_SCENE ? (y(), P(D(f), {
269
+ }, 8, ["file-blobs", "animation-data", "threeData"])) : C.value === o.LATHE_SCENE ? (y(), P(D(f), {
270
270
  key: 1,
271
271
  fileUrls: e.fileUrls,
272
272
  threeData: r.threeData,
@@ -279,7 +279,7 @@ const te = { class: "top-menu" }, ne = {
279
279
  p(e.$slots, "management-page", {}, void 0, !0)
280
280
  ]),
281
281
  _: 3
282
- }, 8, ["fileUrls", "threeData", "trackFileType"])) : b.value === o.CPMPIP_SCENE ? (y(), P(D(E), {
282
+ }, 8, ["fileUrls", "threeData", "trackFileType"])) : C.value === o.CPMPIP_SCENE ? (y(), P(D(E), {
283
283
  key: 2,
284
284
  "file-blobs": t.value,
285
285
  threeData: r.threeData
@@ -291,7 +291,7 @@ const te = { class: "top-menu" }, ne = {
291
291
  p(e.$slots, "management-page", {}, void 0, !0)
292
292
  ]),
293
293
  _: 3
294
- }, 8, ["file-blobs", "threeData"])) : b.value === o.PREVIEW ? (y(), P(D(k), {
294
+ }, 8, ["file-blobs", "threeData"])) : C.value === o.PREVIEW ? (y(), P(D(k), {
295
295
  key: 3,
296
296
  "file-blobs": t.value,
297
297
  "animation-data": e.animationData
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),x=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),E=(o,i)=>{if(!i)return null;const l=o.joints[i];return l||null},F=(o,i)=>{if(!i)return null;const l=E(o,i);if(!l)return null;let u=null;return l.traverse(c=>{c instanceof x.Mesh&&!u&&(u=c)}),u},N=(o,i)=>{if(!i)return null;const l=o.links[i];return l||null},L=(o,i)=>{if(!i)return null;const l=N(o,i);if(!l)return null;let u=null;return l.traverse(c=>{c instanceof x.Mesh&&!u&&(u=c)}),u},V=o=>{const i=o.joints;return Object.values(i)},M=o=>V(o).filter(u=>u.jointType!=="fixed"),w=o=>{const i=o.links;return Object.keys(i)},B={class:"panel-content"},b={key:0,class:"joints-list"},I={class:"joint-info-row"},S={class:"joint-left"},C={class:"joint-name"},D={class:"joint-range"},P={class:"joint-type"},T={key:0,class:"joint-control-row"},A={class:"slider-container"},U=["min","max","value","onInput"],R={class:"value-display"},q={class:"joint-value"},O={class:"unit"},K={key:1,class:"empty-state"},$=t.defineComponent({__name:"urdfJointPanel",props:{model:{}},setup(o,{expose:i}){const l=o,u=t.ref([]),c=t.ref(null),f=(s,p=!1)=>s==="revolute"?p?Math.PI:-Math.PI:s==="prismatic"?p?1:-1:0,_=s=>{if(!s||!s.joints)return console.warn("URDF模型无效或不包含关节信息"),[];const p=[];return V(s).forEach(r=>{var n,d;if(r.jointType==="fixed")return;let a={lower:((n=r.limit)==null?void 0:n.lower)??f(r.jointType,!1),upper:((d=r.limit)==null?void 0:d.upper)??f(r.jointType,!0)};r.jointType==="continuous"&&(a={lower:-10*Math.PI,upper:10*Math.PI}),p.push({name:r.name,type:r.jointType||"unknown",limit:a,currentValue:r.angle||0,urdfJoint:r})}),p},m=(s,p)=>{var n;const e=u.value.find(d=>d.name===s);if(!e)return;const r=parseFloat(p),a=Math.max(e.limit.lower,Math.min(e.limit.upper,r));e.currentValue=a,(n=l.model)!=null&&n.setJointValue?l.model.setJointValue(s,a):e.urdfJoint.setJointValue(a)},v=()=>{u.value.forEach(s=>{(s.type==="revolute"||s.type==="continuous"||s.type==="prismatic")&&m(s.name,0)})},y=()=>{l.model&&u.value.forEach(s=>{s.urdfJoint.angle!==void 0&&s.currentValue!==s.urdfJoint.angle&&(s.currentValue=s.urdfJoint.angle)})},g=()=>{const s=()=>{y(),c.value=requestAnimationFrame(s)};s()},k=()=>{c.value&&(cancelAnimationFrame(c.value),c.value=null)};return t.watch(()=>l.model,s=>{s?u.value=_(s):u.value=[]},{immediate:!0}),t.onMounted(()=>{g()}),t.onUnmounted(()=>{k()}),i({resetAllJoints:v}),(s,p)=>(t.openBlock(),t.createElementBlock("div",B,[u.value.length>0?(t.openBlock(),t.createElementBlock("div",b,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,e=>(t.openBlock(),t.createElementBlock("div",{key:e.name,class:"joint-item"},[t.createElementVNode("div",I,[t.createElementVNode("div",S,[t.createElementVNode("span",C,t.toDisplayString(e.name),1),t.createElementVNode("span",D," ["+t.toDisplayString(e.limit.lower.toFixed(2))+", "+t.toDisplayString(e.limit.upper.toFixed(2))+"] ",1)]),t.createElementVNode("span",P,t.toDisplayString(e.type),1)]),e.type==="revolute"||e.type==="prismatic"||e.type==="continuous"?(t.openBlock(),t.createElementBlock("div",T,[t.createElementVNode("div",A,[t.createElementVNode("input",{type:"range",min:e.limit.lower,max:e.limit.upper,step:"0.001",value:e.currentValue,onInput:r=>m(e.name,r.target.value),class:"joint-slider"},null,40,U)]),t.createElementVNode("div",R,[t.createElementVNode("span",q,t.toDisplayString(e.currentValue?Number(e.currentValue).toFixed(3):"0.000"),1),t.createElementVNode("span",O,t.toDisplayString(e.type==="prismatic"?"m":"rad"),1)])])):t.createCommentVNode("",!0)]))),128))])):(t.openBlock(),t.createElementBlock("div",K,p[0]||(p[0]=[t.createElementVNode("p",null,"未检测到可控制的关节",-1)])))]))}}),H=J._export_sfc($,[["__scopeId","data-v-750b831d"]]),z={class:"panel-content"},G="id",Q={__name:"urdfTree",props:{model:Object,maxExpandCount:{type:Number,default:10},expandStrategy:{type:String,default:"breadth",validator:o=>["breadth","firstLevel"].includes(o)},extraNodes:{type:Array,default:[]}},emits:["nodeClick"],setup(o,{emit:i}){const l=o,u=i,c=t.ref([]),f={children:"children",label:"label"},_=e=>{u("nodeClick",e)},m=(e,r=0)=>{const a=[];return Array.isArray(e)&&(e==null?void 0:e.length)>0&&e.forEach(n=>{if(!(n!=null&&n.isMesh)&&((n==null?void 0:n.type)==="URDFJoint"||(n==null?void 0:n.type)==="URDFLink")){const d={name:n==null?void 0:n.name,label:n==null?void 0:n.name,show:!0,level:r+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:m(n==null?void 0:n.children,r+1),path:n==null?void 0:n.name};a.push(d)}}),a},v=e=>e?[{name:e==null?void 0:e.name,label:e==null?void 0:e.name,show:!0,level:1,isPenultimate:!1,type:e==null?void 0:e.type,id:e==null?void 0:e.id,limit:(e==null?void 0:e.limit)??"",children:m(e==null?void 0:e.children,1)||[],path:e==null?void 0:e.name}]:[],y=(e,r)=>{const a=[],n=[...e];for(;n.length>0&&a.length<r;){const d=n.shift();d.children&&d.children.length>0&&(a.push(d.id),n.push(...d.children))}return a},g=(e,r)=>{const a=[];return e.forEach(n=>{if(n.children&&n.children.length>0){a.push(n.id);const d=n.children.filter(h=>h.children&&h.children.length>0).slice(0,r).map(h=>h.id);a.push(...d)}}),a.slice(0,r+1)},k=t.computed(()=>!c.value||c.value.length===0?[]:l.expandStrategy==="firstLevel"?g(c.value,l.maxExpandCount):y(c.value,l.maxExpandCount)),s=t.computed(()=>[{name:"场景",label:"场景",show:!0,level:1,isPenultimate:!1,type:"场景",id:"场景",children:l!=null&&l.model?v(l.model):[],path:"场景"}]),p=()=>{const e=l.extraNodes||[],r=e==null?void 0:e.map(a=>({...a,level:0}));c.value.push(...r)};return t.watch(s,e=>{c.value=JSON.parse(JSON.stringify(e)),p()},{immediate:!0}),(e,r)=>{const a=t.resolveComponent("el-tree");return t.openBlock(),t.createElementBlock("div",z,[t.createVNode(a,{data:c.value,props:f,"default-expanded-keys":k.value,"node-key":G,onNodeClick:_},null,8,["data","default-expanded-keys"])])}}},W=J._export_sfc(Q,[["__scopeId","data-v-7f54bf51"]]);exports.JointPanel=H;exports.UrdfTree=W;exports.getAllLinkName=w;exports.getMeshFromJoint=F;exports.getMeshFromLink=L;exports.getNonFixedJoints=M;exports.getTargetJoint=E;
1
+ "use strict";const t=require("vue"),x=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs"),J=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),E=(o,i)=>{if(!i)return null;const l=o.joints[i];return l||null},F=(o,i)=>{if(!i)return null;const l=E(o,i);if(!l)return null;let u=null;return l.traverse(c=>{c instanceof x.Mesh&&!u&&(u=c)}),u},N=(o,i)=>{if(!i)return null;const l=o.links[i];return l||null},L=(o,i)=>{if(!i)return null;const l=N(o,i);if(!l)return null;let u=null;return l.traverse(c=>{c instanceof x.Mesh&&!u&&(u=c)}),u},V=o=>{const i=o.joints;return Object.values(i)},M=o=>V(o).filter(u=>u.jointType!=="fixed"),w=o=>{const i=o.links;return Object.keys(i)},B={class:"panel-content"},b={key:0,class:"joints-list"},I={class:"joint-info-row"},S={class:"joint-left"},C={class:"joint-name"},D={class:"joint-range"},P={class:"joint-type"},T={key:0,class:"joint-control-row"},A={class:"slider-container"},U=["min","max","value","onInput"],R={class:"value-display"},q={class:"joint-value"},O={class:"unit"},K={key:1,class:"empty-state"},$=t.defineComponent({__name:"urdfJointPanel",props:{model:{}},setup(o,{expose:i}){const l=o,u=t.ref([]),c=t.ref(null),f=(s,p=!1)=>s==="revolute"?p?Math.PI:-Math.PI:s==="prismatic"?p?1:-1:0,_=s=>{if(!s||!s.joints)return console.warn("URDF模型无效或不包含关节信息"),[];const p=[];return V(s).forEach(r=>{var n,d;if(r.jointType==="fixed")return;let a={lower:((n=r.limit)==null?void 0:n.lower)??f(r.jointType,!1),upper:((d=r.limit)==null?void 0:d.upper)??f(r.jointType,!0)};r.jointType==="continuous"&&(a={lower:-10*Math.PI,upper:10*Math.PI}),p.push({name:r.name,type:r.jointType||"unknown",limit:a,currentValue:r.angle||0,urdfJoint:r})}),p},m=(s,p)=>{var n;const e=u.value.find(d=>d.name===s);if(!e)return;const r=parseFloat(p),a=Math.max(e.limit.lower,Math.min(e.limit.upper,r));e.currentValue=a,(n=l.model)!=null&&n.setJointValue?l.model.setJointValue(s,a):e.urdfJoint.setJointValue(a)},v=()=>{u.value.forEach(s=>{(s.type==="revolute"||s.type==="continuous"||s.type==="prismatic")&&m(s.name,0)})},y=()=>{l.model&&u.value.forEach(s=>{s.urdfJoint.angle!==void 0&&s.currentValue!==s.urdfJoint.angle&&(s.currentValue=s.urdfJoint.angle)})},g=()=>{const s=()=>{y(),c.value=requestAnimationFrame(s)};s()},k=()=>{c.value&&(cancelAnimationFrame(c.value),c.value=null)};return t.watch(()=>l.model,s=>{s?u.value=_(s):u.value=[]},{immediate:!0}),t.onMounted(()=>{g()}),t.onUnmounted(()=>{k()}),i({resetAllJoints:v}),(s,p)=>(t.openBlock(),t.createElementBlock("div",B,[u.value.length>0?(t.openBlock(),t.createElementBlock("div",b,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,e=>(t.openBlock(),t.createElementBlock("div",{key:e.name,class:"joint-item"},[t.createElementVNode("div",I,[t.createElementVNode("div",S,[t.createElementVNode("span",C,t.toDisplayString(e.name),1),t.createElementVNode("span",D," ["+t.toDisplayString(e.limit.lower.toFixed(2))+", "+t.toDisplayString(e.limit.upper.toFixed(2))+"] ",1)]),t.createElementVNode("span",P,t.toDisplayString(e.type),1)]),e.type==="revolute"||e.type==="prismatic"||e.type==="continuous"?(t.openBlock(),t.createElementBlock("div",T,[t.createElementVNode("div",A,[t.createElementVNode("input",{type:"range",min:e.limit.lower,max:e.limit.upper,step:"0.001",value:e.currentValue,onInput:r=>m(e.name,r.target.value),class:"joint-slider"},null,40,U)]),t.createElementVNode("div",R,[t.createElementVNode("span",q,t.toDisplayString(e.currentValue?Number(e.currentValue).toFixed(3):"0.000"),1),t.createElementVNode("span",O,t.toDisplayString(e.type==="prismatic"?"m":"rad"),1)])])):t.createCommentVNode("",!0)]))),128))])):(t.openBlock(),t.createElementBlock("div",K,p[0]||(p[0]=[t.createElementVNode("p",null,"未检测到可控制的关节",-1)])))]))}}),H=J._export_sfc($,[["__scopeId","data-v-750b831d"]]),z={class:"panel-content"},G="id",Q={__name:"urdfTree",props:{model:Object,maxExpandCount:{type:Number,default:10},expandStrategy:{type:String,default:"breadth",validator:o=>["breadth","firstLevel"].includes(o)},extraNodes:{type:Array,default:[]}},emits:["nodeClick"],setup(o,{emit:i}){const l=o,u=i,c=t.ref([]),f={children:"children",label:"label"},_=e=>{u("nodeClick",e)},m=(e,r=0)=>{const a=[];return Array.isArray(e)&&(e==null?void 0:e.length)>0&&e.forEach(n=>{if(!(n!=null&&n.isMesh)&&((n==null?void 0:n.type)==="URDFJoint"||(n==null?void 0:n.type)==="URDFLink")){const d={name:n==null?void 0:n.name,label:n==null?void 0:n.name,show:!0,level:r+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:m(n==null?void 0:n.children,r+1),path:n==null?void 0:n.name};a.push(d)}}),a},v=e=>e?[{name:e==null?void 0:e.name,label:e==null?void 0:e.name,show:!0,level:1,isPenultimate:!1,type:e==null?void 0:e.type,id:e==null?void 0:e.id,limit:(e==null?void 0:e.limit)??"",children:m(e==null?void 0:e.children,1)||[],path:e==null?void 0:e.name}]:[],y=(e,r)=>{const a=[],n=[...e];for(;n.length>0&&a.length<r;){const d=n.shift();d.children&&d.children.length>0&&(a.push(d.id),n.push(...d.children))}return a},g=(e,r)=>{const a=[];return e.forEach(n=>{if(n.children&&n.children.length>0){a.push(n.id);const d=n.children.filter(h=>h.children&&h.children.length>0).slice(0,r).map(h=>h.id);a.push(...d)}}),a.slice(0,r+1)},k=t.computed(()=>!c.value||c.value.length===0?[]:l.expandStrategy==="firstLevel"?g(c.value,l.maxExpandCount):y(c.value,l.maxExpandCount)),s=t.computed(()=>[{name:"场景",label:"场景",show:!0,level:1,isPenultimate:!1,type:"场景",id:"场景",children:l!=null&&l.model?v(l.model):[],path:"场景"}]),p=()=>{const e=l.extraNodes||[],r=e==null?void 0:e.map(a=>({...a,level:0}));c.value.push(...r)};return t.watch(s,e=>{c.value=JSON.parse(JSON.stringify(e)),p()},{immediate:!0}),(e,r)=>{const a=t.resolveComponent("el-tree");return t.openBlock(),t.createElementBlock("div",z,[t.createVNode(a,{data:c.value,props:f,"default-expanded-keys":k.value,"node-key":G,onNodeClick:_},null,8,["data","default-expanded-keys"])])}}},W=J._export_sfc(Q,[["__scopeId","data-v-7f54bf51"]]);exports.JointPanel=H;exports.UrdfTree=W;exports.getAllLinkName=w;exports.getMeshFromJoint=F;exports.getMeshFromLink=L;exports.getNonFixedJoints=M;exports.getTargetJoint=E;
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as I, ref as L, watch as b, onMounted as C, onUnmounted as P, createElementBlock as m, openBlock as f, Fragment as T, renderList as N, createElementVNode as p, createCommentVNode as U, toDisplayString as h, computed as M, resolveComponent as A, createVNode as S } from "vue";
2
- import { k as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
2
+ import { k as V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
3
3
  import { _ as w } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const D = (i, l) => {
5
5
  if (!l)
@@ -1,12 +1,12 @@
1
1
  var ce = Object.defineProperty;
2
2
  var de = (b, l, o) => l in b ? ce(b, l, { enumerable: !0, configurable: !0, writable: !0, value: o }) : b[l] = o;
3
3
  var E = (b, l, o) => de(b, typeof l != "symbol" ? l + "" : l, o);
4
- import { U as me } from "./index.vue_vue_type_style_index_1_lang-9ANlnWKt.js";
5
- import { S as ve, M as pe, O as fe } from "./MTLLoader-BreJsr54.js";
6
- import { g as re, f as F } from "./fileUtil-D7XVXEhb.js";
7
- import { aZ as be, u as J, o as we, k as he, B as _e, a_ as ge, Y as ye, V as Le } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
4
+ import { U as me } from "./index.vue_vue_type_style_index_1_lang-C_-spRZf.js";
5
+ import { S as ve, M as pe, O as fe } from "./MTLLoader-DKu2hJu8.js";
6
+ import { g as re, f as F } from "./fileUtil-2jbB0UOW.js";
7
+ import { aZ as be, u as J, o as we, k as he, B as _e, a_ as ge, Y as ye, V as Le } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
8
8
  import { ref as T, defineComponent as je, computed as O, watch as ue, resolveComponent as x, createElementBlock as k, openBlock as P, createVNode as S, createElementVNode as c, withCtx as $, createTextVNode as D, toDisplayString as C } from "vue";
9
- import { c as Re, e as Se, g as Ue } from "./iconfont-B9Cj3DQM.js";
9
+ import { c as Re, e as Se, g as Ue } from "./iconfont-Clbumxhq.js";
10
10
  import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
11
  const Me = "http://222.92.178.198:60000/chfs/shared/Insofrobot/urdf";
12
12
  function Oe(b) {