ss-component-new 1.2.36 → 1.2.37

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 (119) hide show
  1. package/dist/{MTLLoader-CkNQ5SUP.cjs → MTLLoader-Dihj5ymj.cjs} +1 -1
  2. package/dist/{MTLLoader-B4lJr_ku.js → MTLLoader-gxq5Kvds.js} +1 -1
  3. package/dist/{OrbitControls-CpTJa--7.cjs → OrbitControls-Ba8QWDQU.cjs} +1 -1
  4. package/dist/{OrbitControls-CwAfnF56.js → OrbitControls-BonUITsH.js} +1 -1
  5. package/dist/{animationData-CF6-_eBc.cjs → animationData-AAFCWE58.cjs} +1 -1
  6. package/dist/{animationData-ETdtTXwF.js → animationData-DOlVDTlo.js} +4 -4
  7. package/dist/{array-CbzJvO5y.cjs → array-Bvce3EAi.cjs} +1 -1
  8. package/dist/{array-BUiCaQsR.js → array-D7EDjc7l.js} +35 -35
  9. package/dist/config.js +2 -2
  10. package/dist/{dataUtil-DFkONpps.cjs → dataUtil-B98txAs6.cjs} +1 -1
  11. package/dist/{dataUtil-oabcbdyY.js → dataUtil-VNsK7cTO.js} +2 -2
  12. package/dist/{fileUtil-BezA0XEu.cjs → fileUtil-BeIaOSMH.cjs} +1 -1
  13. package/dist/{fileUtil-xUu_aleM.js → fileUtil-D7S_1Tde.js} +1 -1
  14. package/dist/{iconfont-Cj5twyUW.js → iconfont-Dnc_kFzN.js} +2 -2
  15. package/dist/{iconfont-Bc_5-mGm.cjs → iconfont-wtkqkYlV.cjs} +1 -1
  16. package/dist/{index-Cs1m0QHY.cjs → index-A2nYF-1f.cjs} +1 -1
  17. package/dist/{index-C-4KKbC7.js → index-B-xelo5W.js} +3 -3
  18. package/dist/{index-CkTqgfCV.js → index-B3sDwg_c.js} +1 -1
  19. package/dist/{index-LcSS6r-3.cjs → index-B8HWTwDz.cjs} +1 -1
  20. package/dist/{index-7jCqww1w.cjs → index-B8bUR1Ri.cjs} +1 -1
  21. package/dist/{index-B35gkDgD.js → index-BCLRJLSj.js} +1 -1
  22. package/dist/{index-CfKLvZ17.cjs → index-BJoRCnr3.cjs} +1 -1
  23. package/dist/{index-DKQfWQa7.js → index-BLTsYYci.js} +1 -1
  24. package/dist/{index-bFFymrtu.js → index-BMaVaPUc.js} +2 -2
  25. package/dist/{index-DK1sT-Gv.js → index-BPzUmT8-.js} +12 -12
  26. package/dist/{index-CnW0XyMI.cjs → index-BU5DWXf0.cjs} +1 -1
  27. package/dist/{index-B5KCSN4c.cjs → index-BbzUzdxF.cjs} +1 -1
  28. package/dist/{index-BnNI_rxz.js → index-BeawnQ97.js} +3 -3
  29. package/dist/{index-C_FC7JhD.js → index-BiNILQi8.js} +6 -6
  30. package/dist/{index-CvrlW6Kj.cjs → index-BiPzhKBB.cjs} +1 -1
  31. package/dist/{index-Bp59pdeu.js → index-BrvAeT7w.js} +10 -10
  32. package/dist/{index-BjLowWoy.js → index-BwoXi1LQ.js} +2 -2
  33. package/dist/index-C8qRkCgn.cjs +21 -0
  34. package/dist/{index-ixEWAWI8.js → index-CBpSEFvE.js} +4 -4
  35. package/dist/{index-BsQpRUkg.cjs → index-CCAXN_VF.cjs} +1 -1
  36. package/dist/{index-DBDeHECn.js → index-CExeGHij.js} +5410 -5111
  37. package/dist/{index-vDXPLbzt.cjs → index-CQNvplpY.cjs} +13 -13
  38. package/dist/{index-BntUSUuQ.cjs → index-CagsR3TK.cjs} +1 -1
  39. package/dist/{index-Bsj_M3tu.cjs → index-CeJI9fRM.cjs} +1 -1
  40. package/dist/{index-CUeHiWp_.js → index-ChfpFIIo.js} +52 -52
  41. package/dist/{index-GOk9tc6o.js → index-Cjn-Nipt.js} +2 -2
  42. package/dist/{index-BHkXSoxP.cjs → index-ClnJ1K8q.cjs} +1 -1
  43. package/dist/{index-DPLITXsJ.js → index-CqzA5JZV.js} +21 -21
  44. package/dist/{index-DbW_sD5N.cjs → index-Ct6AnOh0.cjs} +1 -1
  45. package/dist/{index-B3_Z46NG.cjs → index-Cv9MOPos.cjs} +1 -1
  46. package/dist/{index-BopRIRaa.js → index-D2FUUF0p.js} +3311 -3300
  47. package/dist/{index-bhZxftEb.js → index-D62RCkPJ.js} +6 -6
  48. package/dist/{index-CV-9wRXp.cjs → index-DATWIRSp.cjs} +1 -1
  49. package/dist/{index-RfA-XD5A.cjs → index-DBiP81co.cjs} +1 -1
  50. package/dist/{index-BahsZur-.cjs → index-DBpviAty.cjs} +1 -1
  51. package/dist/{index-CvI-Xndo.js → index-DHUPGceO.js} +1 -1
  52. package/dist/{index-CizvuDrT.cjs → index-DKnofcM3.cjs} +1 -1
  53. package/dist/{index-BA_mOmgl.js → index-DWR446SX.js} +40 -40
  54. package/dist/{index-CnasZ7DR.cjs → index-DXY5_0gS.cjs} +1 -1
  55. package/dist/{index-D4X5ZbsB.cjs → index-DcSxvtLy.cjs} +1 -1
  56. package/dist/{index-CcKVjgvm.js → index-DdWJf1s4.js} +2 -2
  57. package/dist/{index-DHOgfCKk.js → index-De7WEvrP.js} +6 -6
  58. package/dist/{index-Ci05kJVO.cjs → index-DeakNivq.cjs} +1 -1
  59. package/dist/{index-Bha2dAuG.cjs → index-DfdAKUNR.cjs} +1 -1
  60. package/dist/{index-w9_VhKWc.cjs → index-DpzDQdE3.cjs} +1 -1
  61. package/dist/{index-DynEv7dZ.cjs → index-Idro_h24.cjs} +1 -1
  62. package/dist/{index-CTIVfb14.js → index-K4IHDJhC.js} +3 -3
  63. package/dist/{index-BOfa3R-1.cjs → index-XPbPRVHs.cjs} +1 -1
  64. package/dist/{index-DalL4U6b.js → index-XWSpT0ba.js} +8 -8
  65. package/dist/{index-C8YYklCT.cjs → index-Z3NUprRN.cjs} +1 -1
  66. package/dist/{index-ExjSK4s1.cjs → index-a9MrfjsX.cjs} +1 -1
  67. package/dist/{index-CowSp0mU.js → index-d2eZUUOL.js} +4 -4
  68. package/dist/{index-BwL33eO2.js → index-dg2e5vzL.js} +2 -2
  69. package/dist/{index-CX9ZToOe.js → index-diSrIKAW.js} +303 -303
  70. package/dist/{index-BWDmAGYH.js → index-dz7-iyTs.js} +8 -8
  71. package/dist/{index-CWQAImyg.js → index-nvemkzcE.js} +2 -2
  72. package/dist/{index-h5XWazmL.cjs → index-osFjwxXn.cjs} +1 -1
  73. package/dist/{index-peUgec1X.js → index-rGGHn9oX.js} +1268 -1267
  74. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BV1JZ-3O.js +38949 -0
  75. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DNHgx7h4.cjs +37 -0
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CinJxfAX.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTRnGkVw.js} +1649 -1644
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DNsyaAD5.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DupRlL-E.cjs} +124 -124
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DTRpzofW.js → index.vue_vue_type_style_index_0_scoped_92477073_lang--woCJ_em.js} +13 -13
  79. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-DaxZVXAO.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-COe_Ck32.cjs} +1 -1
  80. package/dist/index.vue_vue_type_style_index_1_lang-6KO-EDQa.js +8293 -0
  81. package/dist/{index.vue_vue_type_style_index_1_lang-BgqA98cE.cjs → index.vue_vue_type_style_index_1_lang-CKpfQuiD.cjs} +1 -1
  82. package/dist/index.vue_vue_type_style_index_1_lang-Cb4_k0AS.cjs +32 -0
  83. package/dist/{index.vue_vue_type_style_index_1_lang-BX_Iweoa.js → index.vue_vue_type_style_index_1_lang-jt5oqPmv.js} +5 -5
  84. package/dist/{isString-D6Z6SOrb.cjs → isString--eJE54G5.cjs} +1 -1
  85. package/dist/{isString-DBnuELeA.js → isString-By6KKNvg.js} +1 -1
  86. package/dist/{main-BnGiV5RB.cjs → main-Brifss3R.cjs} +1 -1
  87. package/dist/{main-DHZFoZje.js → main-DENbrJLK.js} +5 -5
  88. package/dist/obj/model.mtl +42 -0
  89. package/dist/obj/model.obj +26110 -0
  90. package/dist/ss-component.cjs +1 -1
  91. package/dist/ss-component.css +1 -1
  92. package/dist/ss-component.js +11 -11
  93. package/dist/ss-component2.cjs +1 -1
  94. package/dist/ss-component2.js +12 -12
  95. package/dist/{threeModel-BkNMl4gC.js → threeModel-CpklGUZ5.js} +5 -5
  96. package/dist/{threeModel-BHsadPD8.cjs → threeModel-DxxkXyt5.cjs} +1 -1
  97. package/dist/{threePreview-BhHpGgi8.js → threePreview-BsPiIokT.js} +4 -4
  98. package/dist/{threePreview-q2XmhoL-.cjs → threePreview-Sh0ABsnX.cjs} +1 -1
  99. package/dist/{threeSceneView-D_2JHUdz.cjs → threeSceneView-DfiXbOBr.cjs} +1 -1
  100. package/dist/{threeSceneView-CDFoPU6x.js → threeSceneView-Dm3k49Mh.js} +87 -87
  101. package/dist/{threeSceneViewForCPMPIP-BBelwG21.js → threeSceneViewForCPMPIP-Czp3KJaA.js} +57 -57
  102. package/dist/{threeSceneViewForCPMPIP-DSIkOvjL.cjs → threeSceneViewForCPMPIP-XTc0zag-.cjs} +1 -1
  103. package/dist/{threeTrackPathView-CeCre9ru.js → threeTrackPathView-DaEDYBsf.js} +6 -6
  104. package/dist/{threeTrackPathView-CClVyd1p.cjs → threeTrackPathView-Dmp5NZVO.cjs} +1 -1
  105. package/dist/{threeViewerHost-B2ROtL1I.cjs → threeViewerHost-C07FM01K.cjs} +1 -1
  106. package/dist/{threeViewerHost-DLd9bynL.js → threeViewerHost-tA5hwts8.js} +14 -14
  107. package/dist/{urdfTree-vu4m_HnH.js → urdfTree-C5eDsIZV.js} +1 -1
  108. package/dist/{urdfTree-B2NsYdY-.cjs → urdfTree-CNAusPWp.cjs} +1 -1
  109. package/dist/{workpieceTreePanel-CXVtdZfX.js → workpieceTreePanel-BE_ayLjw.js} +5 -5
  110. package/dist/{workpieceTreePanel-Dif_gJAG.cjs → workpieceTreePanel-DMnR0vK-.cjs} +1 -1
  111. package/package.json +1 -1
  112. package/public/config.js +2 -2
  113. package/public/obj/model.mtl +42 -0
  114. package/public/obj/model.obj +26110 -0
  115. package/dist/index-DEBf-IBT.cjs +0 -21
  116. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B8Lpp-LG.js +0 -38138
  117. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-yBjOSB4T.cjs +0 -56
  118. package/dist/index.vue_vue_type_style_index_1_lang-CWCaf0OP.js +0 -8415
  119. package/dist/index.vue_vue_type_style_index_1_lang-Dhkn6DXN.cjs +0 -32
@@ -1,17 +1,17 @@
1
- import { defineComponent as Oe, ref as h, watch as se, shallowRef as ve, computed as we, onUnmounted as Qe, resolveComponent as O, createElementBlock as _e, openBlock as te, createElementVNode as n, createVNode as o, withCtx as T, createBlock as Ce, createCommentVNode as ye, unref as V, toDisplayString as me, onMounted as Ie, onBeforeUnmount as We, Fragment as et, renderList as tt, nextTick as lt, withDirectives as q, vShow as re, renderSlot as de, isRef as Te, vModelRadio as Re } from "vue";
2
- import { r as Me, U as ot, s as je, u as nt, a as at, W as st } from "./workpieceTreePanel-CXVtdZfX.js";
3
- import { u as Ke, a as it, b as rt } from "./iconfont-Cj5twyUW.js";
4
- import { a9 as ut, c as ct, E as X, aM as pt, ao as dt } from "./index-DBDeHECn.js";
5
- import { t as Ve, T as ke, V as F, r as Q, s as mt, u as vt, k as Se, v as ft, L as gt, w as ht, x as bt, y as yt, z as wt, F as _t, I as Ct, p as kt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CinJxfAX.js";
6
- import "./index.vue_vue_type_style_index_1_lang-CWCaf0OP.js";
1
+ import { defineComponent as Oe, ref as h, watch as se, shallowRef as ve, computed as we, onUnmounted as Qe, resolveComponent as O, createElementBlock as _e, openBlock as te, createElementVNode as n, createVNode as o, withCtx as T, createBlock as Ce, createCommentVNode as ye, unref as M, toDisplayString as me, onMounted as We, onBeforeUnmount as Ie, Fragment as et, renderList as tt, nextTick as lt, withDirectives as q, vShow as re, renderSlot as de, isRef as Te, vModelRadio as Re } from "vue";
2
+ import { r as Ve, U as ot, s as je, u as nt, a as at, W as st } from "./workpieceTreePanel-BE_ayLjw.js";
3
+ import { u as Ke, a as it, b as rt } from "./iconfont-Dnc_kFzN.js";
4
+ import { ag as ut, c as ct, E as X, aW as pt, aw as dt } from "./index-CExeGHij.js";
5
+ import { t as Me, T as ke, V as F, r as Q, s as mt, u as vt, k as Se, v as ft, L as gt, w as ht, x as bt, y as yt, z as wt, F as _t, I as Ct, p as kt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTRnGkVw.js";
6
+ import "./index.vue_vue_type_style_index_1_lang-6KO-EDQa.js";
7
7
  import "./index-BHtNKL1L.js";
8
- import { _ as ue, s as Pt } from "./index-B35gkDgD.js";
9
- import "./index.vue_vue_type_style_index_1_lang-BX_Iweoa.js";
10
- import "./index-DalL4U6b.js";
11
- import { f as xt, a as Dt } from "./animationData-ETdtTXwF.js";
12
- import { g as Tt, a as Rt, b as Mt, c as Vt, U as St, J as At } from "./urdfTree-vu4m_HnH.js";
8
+ import { _ as ue, s as Pt } from "./index-BCLRJLSj.js";
9
+ import "./index.vue_vue_type_style_index_1_lang-jt5oqPmv.js";
10
+ import "./index-XWSpT0ba.js";
11
+ import { f as xt, a as Dt } from "./animationData-DOlVDTlo.js";
12
+ import { g as Tt, a as Rt, b as Vt, c as Mt, U as St, J as At } from "./urdfTree-C5eDsIZV.js";
13
13
  import { _ as Xe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- import { g as zt, a as Ee, d as $t, c as Ft, e as Yt, b as Lt } from "./dataUtil-oabcbdyY.js";
14
+ import { g as zt, a as Ee, d as $t, c as Ft, e as Yt, b as Lt } from "./dataUtil-VNsK7cTO.js";
15
15
  import { T as A } from "./svgIcon-D-_fXUBL.js";
16
16
  const H = 1e-3, ae = mt.degToRad, Ge = new ft({
17
17
  // 灰色
@@ -21,7 +21,7 @@ const H = 1e-3, ae = mt.degToRad, Ge = new ft({
21
21
  side: kt
22
22
  });
23
23
  function Bt(_ = 5e-3, v = 64) {
24
- const f = new Ve([new F(0, 0, 0), new F(0, 0, 0)]), a = new ke(f, v, _, 16, !1), g = Ge;
24
+ const f = new Me([new F(0, 0, 0), new F(0, 0, 0)]), a = new ke(f, v, _, 16, !1), g = Ge;
25
25
  return new Se(a, g);
26
26
  }
27
27
  const qe = (_) => _.reduce((v, f) => {
@@ -84,7 +84,7 @@ function Ut(_, v) {
84
84
  r.push(a.pos.clone());
85
85
  const y = a.pos.clone().add(a.localX.clone().multiplyScalar(-p)), R = Math.max(16, Math.ceil(i / 5));
86
86
  for (let Y = 1; Y <= R; Y++) {
87
- const $ = s * Y / R, S = new Q().makeRotationAxis(a.localZ, $), M = a.localX.clone().multiplyScalar(p).applyMatrix4(S), C = y.clone().add(M);
87
+ const $ = s * Y / R, S = new Q().makeRotationAxis(a.localZ, $), V = a.localX.clone().multiplyScalar(p).applyMatrix4(S), C = y.clone().add(V);
88
88
  r.push(C);
89
89
  }
90
90
  const m = Ot(r, v * H);
@@ -126,7 +126,7 @@ function Et(_, v, f) {
126
126
  return new Se(g, Ge);
127
127
  }
128
128
  function Ot(_, v) {
129
- const f = new Ve(_, !1, "catmullrom", 0.01), a = new ke(f, Math.max(16, _.length * 2), v, 18, !1);
129
+ const f = new Me(_, !1, "catmullrom", 0.01), a = new ke(f, Math.max(16, _.length * 2), v, 18, !1);
130
130
  return new Se(a, Ge);
131
131
  }
132
132
  function Ze(_, v, f, a, g, b = 0) {
@@ -157,8 +157,8 @@ function Ze(_, v, f, a, g, b = 0) {
157
157
  const y = u[r], R = He(y);
158
158
  if (R.length > 0) {
159
159
  const m = R.map((S) => {
160
- const L = S.clone(), M = new Q();
161
- return M.makeBasis(s.localX, s.localY, s.localZ), L.applyMatrix4(M), L.add(s.pos);
160
+ const L = S.clone(), V = new Q();
161
+ return V.makeBasis(s.localX, s.localY, s.localZ), L.applyMatrix4(V), L.add(s.pos);
162
162
  });
163
163
  p.push(m);
164
164
  const z = m[m.length - 1];
@@ -178,7 +178,7 @@ function Ze(_, v, f, a, g, b = 0) {
178
178
  r.length > 1 && i.push(...r.slice(1));
179
179
  i.length < 2 && i.push(new F(0, 1e-3, 0));
180
180
  try {
181
- const r = new Ve(i, !1, "catmullrom", 0.01), y = new ke(r, Math.max(2, i.length * 4), a * H, 18, !1);
181
+ const r = new Me(i, !1, "catmullrom", 0.01), y = new ke(r, Math.max(2, i.length * 4), a * H, 18, !1);
182
182
  _.geometry.dispose(), _.geometry = y;
183
183
  } catch (r) {
184
184
  console.error("管件更新失败", r);
@@ -239,13 +239,13 @@ function Je(_, v, f, a, g, b, u, P = 0, c = 0) {
239
239
  s.forEach((r) => r.y = -r.y), s.reverse();
240
240
  const p = [...s, ...i];
241
241
  try {
242
- const r = new Ve(p, !1, "catmullrom", 0.01), y = new ke(r, Math.max(2, p.length * 4), b * H, 18, !1);
242
+ const r = new Me(p, !1, "catmullrom", 0.01), y = new ke(r, Math.max(2, p.length * 4), b * H, 18, !1);
243
243
  v.geometry.dispose(), _.geometry.dispose(), v.parent && v.parent.remove(v), _.geometry = y;
244
244
  } catch (r) {
245
245
  console.error("管件更新失败", r);
246
246
  }
247
247
  }
248
- const Xt = { class: "panel-content" }, Gt = { class: "action-bar" }, Zt = { class: "animation-controls" }, Nt = { class: "control-row" }, Jt = { class: "control-row" }, It = { class: "frame-info" }, Wt = { class: "control-row" }, Kt = { class: "progress-bar" }, qt = { class: "dialog-footer" }, Ht = /* @__PURE__ */ Oe({
248
+ const Xt = { class: "panel-content" }, Gt = { class: "action-bar" }, Zt = { class: "animation-controls" }, Nt = { class: "control-row" }, Jt = { class: "control-row" }, Wt = { class: "frame-info" }, It = { class: "control-row" }, Kt = { class: "progress-bar" }, qt = { class: "dialog-footer" }, Ht = /* @__PURE__ */ Oe({
249
249
  __name: "animationPanel",
250
250
  props: {
251
251
  model: {},
@@ -266,7 +266,7 @@ const Xt = { class: "panel-content" }, Gt = { class: "action-bar" }, Zt = { clas
266
266
  return;
267
267
  }
268
268
  let e = {};
269
- u.value === Me.SINGLE && (e = await xt()), u.value === Me.DOUBLE && (e = await Dt());
269
+ u.value === Ve.SINGLE && (e = await xt()), u.value === Ve.DOUBLE && (e = await Dt());
270
270
  const {
271
271
  initialPipeLength: t = 0,
272
272
  pipeRadius: w = 0,
@@ -278,7 +278,7 @@ const Xt = { class: "panel-content" }, Gt = { class: "action-bar" }, Zt = { clas
278
278
  c.value = ee.length ? ee : [ne];
279
279
  }, c = h([]), x = h(!1), i = h(""), d = h(!1), s = h(0), p = h(0), r = h(1e3);
280
280
  let y = !1;
281
- const R = h(null), m = ve(null), z = ve(null), Y = ve(null), $ = h(0), S = h(12.5), L = h(30), M = h([]), C = h(null), N = we(() => a.model ? Tt(a.model).map((t) => t.name) : []), W = h(["Y", "B", "C", "R"]), E = we(() => [...N.value, ...W.value]), G = we(() => E.value.length > 0 ? `请按以下格式粘贴数据 (第一行为表头,使用 Tab 分隔):
281
+ const R = h(null), m = ve(null), z = ve(null), Y = ve(null), $ = h(0), S = h(12.5), L = h(30), V = h([]), C = h(null), N = we(() => a.model ? Tt(a.model).map((t) => t.name) : []), I = h(["Y", "B", "C", "R"]), E = we(() => [...N.value, ...I.value]), G = we(() => E.value.length > 0 ? `请按以下格式粘贴数据 (第一行为表头,使用 Tab 分隔):
282
282
  ${E.value.join(" ")}
283
283
  0 0 0 ...
284
284
  1 2 3 ...` : "请先加载模型。"), le = () => c.value.map((l) => ({
@@ -370,7 +370,7 @@ ${E.value.join(" ")}
370
370
  y = !0, d.value = !1, p.value = 0, X.info("动画已停止");
371
371
  }, fe = () => {
372
372
  s.value = 0;
373
- }, I = () => {
373
+ }, W = () => {
374
374
  if (m.value && z.value) {
375
375
  const l = J();
376
376
  Je(
@@ -396,7 +396,7 @@ ${E.value.join(" ")}
396
396
  );
397
397
  }
398
398
  }, ce = () => {
399
- R.value && R.value.resetToZero(), I(), fe(), X.success("机器人和管件已重置");
399
+ R.value && R.value.resetToZero(), W(), fe(), X.success("机器人和管件已重置");
400
400
  }, Ae = (l) => `第 ${l + 1} 帧`, ze = (l) => {
401
401
  d.value && U(), oe(l);
402
402
  }, $e = () => {
@@ -419,12 +419,12 @@ ${E.value.join(" ")}
419
419
  }, xe = (l, e) => {
420
420
  if (!l || !e)
421
421
  return;
422
- const t = Vt(l, e), w = Bt();
422
+ const t = Mt(l, e), w = Bt();
423
423
  w.visible = !1, t == null || t.add(w);
424
424
  }, ie = (l) => {
425
- R.value = new ot(l), M.value = Mt(l), C.value = "Pipe_Joint";
425
+ R.value = new ot(l), V.value = Vt(l), C.value = "Pipe_Joint";
426
426
  }, pe = () => {
427
- R.value = null, M.value = [], C.value = null;
427
+ R.value = null, V.value = [], C.value = null;
428
428
  }, Le = (l) => {
429
429
  ie(l), xe(l, C.value), Ye(he.value + 1), ce();
430
430
  };
@@ -449,7 +449,7 @@ ${E.value.join(" ")}
449
449
  if (console.log(t, "meshToReplace"), t && t.parent) {
450
450
  Y.value = t, t.visible = !1;
451
451
  const w = De(t);
452
- if (u.value === Me.SINGLE && (w.position.y -= e * 1e-3), m.value = w, u.value === Me.DOUBLE) {
452
+ if (u.value === Ve.SINGLE && (w.position.y -= e * 1e-3), m.value = w, u.value === Ve.DOUBLE) {
453
453
  const k = De(t);
454
454
  z.value = k;
455
455
  }
@@ -525,7 +525,7 @@ ${E.value.join(" ")}
525
525
  class: "is-loading"
526
526
  }, {
527
527
  default: T(() => [
528
- o(V(ut))
528
+ o(M(ut))
529
529
  ]),
530
530
  _: 1
531
531
  })) : ye("", !0)
@@ -617,9 +617,9 @@ ${E.value.join(" ")}
617
617
  ], -1)),
618
618
  n("div", Jt, [
619
619
  e[8] || (e[8] = n("label", null, "当前帧:", -1)),
620
- n("span", It, me(s.value + 1) + " / " + me(c.value.length), 1)
620
+ n("span", Wt, me(s.value + 1) + " / " + me(c.value.length), 1)
621
621
  ]),
622
- n("div", Wt, [
622
+ n("div", It, [
623
623
  e[9] || (e[9] = n("label", null, "动画进度:", -1)),
624
624
  o(K, {
625
625
  modelValue: s.value,
@@ -702,31 +702,31 @@ ${E.value.join(" ")}
702
702
  h(null);
703
703
  const i = h({ file: null, pipe: "" });
704
704
  h(null), h(!1);
705
- const d = h([]), s = (M) => {
706
- d.value = M;
705
+ const d = h([]), s = (V) => {
706
+ d.value = V;
707
707
  };
708
708
  h("ybcr");
709
709
  const p = h({
710
710
  form: {},
711
711
  list: [],
712
712
  reverse: !1
713
- }), r = (M) => {
714
- const { length: C, outerDiameter: N, innerDiameter: W, thickness: E, ybcrList: G } = M || {};
713
+ }), r = (V) => {
714
+ const { length: C, outerDiameter: N, innerDiameter: I, thickness: E, ybcrList: G } = V || {};
715
715
  p.value.form = {
716
716
  length: C,
717
717
  outerDiameter: N,
718
- innerDiameter: W,
718
+ innerDiameter: I,
719
719
  thickness: E
720
720
  }, p.value.list = G;
721
721
  }, y = () => {
722
- const { form: M, list: C } = p.value, {
722
+ const { form: V, list: C } = p.value, {
723
723
  outerDiameter: N
724
- } = M, W = N / 2, E = C == null ? void 0 : C.map((le) => {
725
- const { y: J, b: Z, c: oe, r: B, Y: U, B: fe, C: I, R: ce } = le;
724
+ } = V, I = N / 2, E = C == null ? void 0 : C.map((le) => {
725
+ const { y: J, b: Z, c: oe, r: B, Y: U, B: fe, C: W, R: ce } = le;
726
726
  return U ? {
727
727
  Y: U,
728
728
  B: fe,
729
- C: I,
729
+ C: W,
730
730
  R: ce
731
731
  } : {
732
732
  Y: J,
@@ -736,20 +736,20 @@ ${E.value.join(" ")}
736
736
  };
737
737
  });
738
738
  c();
739
- const G = Ut(E, W);
739
+ const G = Ut(E, I);
740
740
  x(G);
741
741
  }, R = h(!1), m = () => {
742
- const M = R.value;
743
- R.value = !M;
742
+ const V = R.value;
743
+ R.value = !V;
744
744
  }, z = h(!1), Y = () => {
745
745
  z.value = !1;
746
746
  }, $ = () => {
747
747
  z.value = !0;
748
748
  }, S = async () => {
749
- const M = await el();
750
- s(M);
751
- }, L = async (M) => {
752
- const C = await tl(M);
749
+ const V = await el();
750
+ s(V);
751
+ }, L = async (V) => {
752
+ const C = await tl(V);
753
753
  r(C);
754
754
  };
755
755
  return se(() => p, () => {
@@ -761,21 +761,21 @@ ${E.value.join(" ")}
761
761
  if (g.value)
762
762
  return;
763
763
  b(), window.addEventListener("resize", u);
764
- } catch (M) {
765
- console.error("Three.js 初始化失败:", M), X.error("渲染引擎初始化失败!");
764
+ } catch (V) {
765
+ console.error("Three.js 初始化失败:", V), X.error("渲染引擎初始化失败!");
766
766
  }
767
767
  }, {
768
768
  deep: !0
769
- }), Ie(async () => {
769
+ }), We(async () => {
770
770
  S();
771
- }), We(() => {
771
+ }), Ie(() => {
772
772
  window.removeEventListener("resize", u), P();
773
- }), v({ openDialog: $ }), (M, C) => {
774
- const N = O("el-icon"), W = O("el-option"), E = O("el-select"), G = O("el-form-item"), le = O("el-form"), J = O("el-input"), Z = O("el-table-column"), oe = O("el-table");
773
+ }), v({ openDialog: $ }), (V, C) => {
774
+ const N = O("el-icon"), I = O("el-option"), E = O("el-select"), G = O("el-form-item"), le = O("el-form"), J = O("el-input"), Z = O("el-table-column"), oe = O("el-table");
775
775
  return te(), Ce(Pt, {
776
776
  class: "pipe-analysis-dialog",
777
777
  visible: z.value,
778
- onBeforeDestroy: M.onDestroy,
778
+ onBeforeDestroy: V.onDestroy,
779
779
  showClose: !1,
780
780
  fullScreen: R.value
781
781
  }, {
@@ -788,13 +788,13 @@ ${E.value.join(" ")}
788
788
  n("div", ol, [
789
789
  o(N, null, {
790
790
  default: T(() => [
791
- o(V(pt), { onClick: m })
791
+ o(M(pt), { onClick: m })
792
792
  ]),
793
793
  _: 1
794
794
  }),
795
795
  o(N, null, {
796
796
  default: T(() => [
797
- o(V(dt), { onClick: Y })
797
+ o(M(dt), { onClick: Y })
798
798
  ]),
799
799
  _: 1
800
800
  })
@@ -824,7 +824,7 @@ ${E.value.join(" ")}
824
824
  onChange: L
825
825
  }, {
826
826
  default: T(() => [
827
- (te(!0), _e(et, null, tt(d.value, (B) => (te(), Ce(W, {
827
+ (te(!0), _e(et, null, tt(d.value, (B) => (te(), Ce(I, {
828
828
  label: B.name,
829
829
  value: B.mainKey
830
830
  }, null, 8, ["label", "value"]))), 256))
@@ -848,11 +848,11 @@ ${E.value.join(" ")}
848
848
  placeholder: "请选择加工方向"
849
849
  }, {
850
850
  default: T(() => [
851
- o(W, {
851
+ o(I, {
852
852
  label: "正向",
853
853
  value: !1
854
854
  }),
855
- o(W, {
855
+ o(I, {
856
856
  label: "反向",
857
857
  value: !0
858
858
  })
@@ -964,7 +964,7 @@ ${E.value.join(" ")}
964
964
  }, gl = { class: "buttonGroup-top" }, hl = { class: "buttonGroup-topLeft" }, bl = { class: "buttonGroup-left" }, yl = { class: "buttonGroup-right" }, wl = { class: "buttonGroup-bottom" }, _l = { class: "top-panel" }, Cl = { class: "panel-header" }, kl = { class: "panel-body" }, Pl = { class: "left-panel" }, xl = { class: "panel-header" }, Dl = { class: "panel-body" }, Tl = {
965
965
  key: 1,
966
966
  class: "clipping-content"
967
- }, Rl = { class: "radio-group" }, Ml = { class: "radio-label" }, Vl = { class: "radio-label" }, Sl = { class: "radio-label" }, Al = { class: "radio-label" }, zl = { class: "right-panel" }, $l = { class: "panel-header" }, Fl = { class: "panel-body" }, Yl = {
967
+ }, Rl = { class: "radio-group" }, Vl = { class: "radio-label" }, Ml = { class: "radio-label" }, Sl = { class: "radio-label" }, Al = { class: "radio-label" }, zl = { class: "right-panel" }, $l = { class: "panel-header" }, Fl = { class: "panel-body" }, Yl = {
968
968
  key: 0,
969
969
  class: "loading-overlay"
970
970
  }, Ll = /* @__PURE__ */ Oe({
@@ -982,10 +982,10 @@ ${E.value.join(" ")}
982
982
  initThreeJS: $,
983
983
  handleResize: S,
984
984
  getThreeJSObjects: L,
985
- cleanup: M,
985
+ cleanup: V,
986
986
  setModels: C,
987
987
  axesHelperVisible: N,
988
- toggleAxesVisibility: W,
988
+ toggleAxesVisibility: I,
989
989
  zoomIn: E,
990
990
  zoomOut: G
991
991
  } = Ke(b), { loadSceneFromFile: le } = at(
@@ -993,8 +993,8 @@ ${E.value.join(" ")}
993
993
  z,
994
994
  P,
995
995
  c
996
- ), { isAnimating: J, toggleAnimation: Z, stopAnimation: oe } = it(L, z), { isClipping: B, activeClippingAxis: U, toggleClipping: fe, updateClippingPlanes: I } = rt(L, z), { initRaycaster: ce, selectedObject3D: Ae, setSelectedObjVisible: ze, updatePosition: $e, updateRotation: Fe, dispose: ge } = nt(b, L, z), Pe = () => {
997
- W();
996
+ ), { isAnimating: J, toggleAnimation: Z, stopAnimation: oe } = it(L, z), { isClipping: B, activeClippingAxis: U, toggleClipping: fe, updateClippingPlanes: W } = rt(L, z), { initRaycaster: ce, selectedObject3D: Ae, setSelectedObjVisible: ze, updatePosition: $e, updateRotation: Fe, dispose: ge } = nt(b, L, z), Pe = () => {
997
+ I();
998
998
  }, he = we(() => g.value === je.ROBOT), Ye = we(() => g.value === je.PIPECOMPARSION), xe = (e) => {
999
999
  var t;
1000
1000
  r.value = e, r.value === "弯管解析" ? (t = u.value) == null || t.openDialog() : p.value = !0;
@@ -1034,7 +1034,7 @@ ${E.value.join(" ")}
1034
1034
  deep: !0
1035
1035
  }), se(y, (e) => {
1036
1036
  C(e ? [e] : []), ce();
1037
- }), Ie(async () => {
1037
+ }), We(async () => {
1038
1038
  await lt();
1039
1039
  try {
1040
1040
  $(), window.addEventListener("resize", S);
@@ -1043,8 +1043,8 @@ ${E.value.join(" ")}
1043
1043
  } catch (e) {
1044
1044
  console.error("Three.js 初始化失败:", e), X.error("渲染引擎初始化失败!");
1045
1045
  }
1046
- }), We(() => {
1047
- i.value = "", s.value = "", window.removeEventListener("resize", S), J.value && oe(), M(), ge();
1046
+ }), Ie(() => {
1047
+ i.value = "", s.value = "", window.removeEventListener("resize", S), J.value && oe(), V(), ge();
1048
1048
  }), (e, t) => {
1049
1049
  const w = O("el-scrollbar");
1050
1050
  return te(), _e("div", dl, [
@@ -1090,31 +1090,31 @@ ${E.value.join(" ")}
1090
1090
  o(A, {
1091
1091
  name: "viewReset",
1092
1092
  size: "24",
1093
- onClick: V(Y),
1093
+ onClick: M(Y),
1094
1094
  title: "重置"
1095
1095
  }, null, 8, ["onClick"]),
1096
1096
  o(A, {
1097
1097
  name: "fangda",
1098
1098
  size: "24",
1099
1099
  title: "放大",
1100
- onClick: V(E)
1100
+ onClick: M(E)
1101
1101
  }, null, 8, ["onClick"]),
1102
1102
  o(A, {
1103
1103
  name: "suoxiao",
1104
1104
  size: "24",
1105
1105
  title: "缩小",
1106
- onClick: V(G)
1106
+ onClick: M(G)
1107
1107
  }, null, 8, ["onClick"]),
1108
1108
  o(A, {
1109
1109
  name: "lookAround",
1110
1110
  size: "24",
1111
- onClick: V(Z),
1112
- title: V(J) ? "停止动画" : "动画视图"
1111
+ onClick: M(Z),
1112
+ title: M(J) ? "停止动画" : "动画视图"
1113
1113
  }, null, 8, ["onClick", "title"]),
1114
1114
  o(A, {
1115
1115
  name: "zuobiaoxi",
1116
1116
  size: "24",
1117
- active: V(N),
1117
+ active: M(N),
1118
1118
  onClick: Pe,
1119
1119
  title: "显隐坐标轴"
1120
1120
  }, null, 8, ["active"])
@@ -1252,29 +1252,29 @@ ${E.value.join(" ")}
1252
1252
  }, null, 8, ["model"])) : ye("", !0),
1253
1253
  i.value === "剖面视图" ? (te(), _e("div", Tl, [
1254
1254
  n("div", Rl, [
1255
- n("label", Ml, [
1255
+ n("label", Vl, [
1256
1256
  q(n("input", {
1257
1257
  type: "radio",
1258
1258
  name: "clipping-axis",
1259
1259
  value: "none",
1260
1260
  "onUpdate:modelValue": t[10] || (t[10] = (D) => Te(U) ? U.value = D : null),
1261
1261
  onChange: t[11] || (t[11] = //@ts-ignore
1262
- (...D) => V(I) && V(I)(...D))
1262
+ (...D) => M(W) && M(W)(...D))
1263
1263
  }, null, 544), [
1264
- [Re, V(U)]
1264
+ [Re, M(U)]
1265
1265
  ]),
1266
1266
  t[19] || (t[19] = n("span", { class: "radio-text" }, "无切割", -1))
1267
1267
  ]),
1268
- n("label", Vl, [
1268
+ n("label", Ml, [
1269
1269
  q(n("input", {
1270
1270
  type: "radio",
1271
1271
  name: "clipping-axis",
1272
1272
  value: "x",
1273
1273
  "onUpdate:modelValue": t[12] || (t[12] = (D) => Te(U) ? U.value = D : null),
1274
1274
  onChange: t[13] || (t[13] = //@ts-ignore
1275
- (...D) => V(I) && V(I)(...D))
1275
+ (...D) => M(W) && M(W)(...D))
1276
1276
  }, null, 544), [
1277
- [Re, V(U)]
1277
+ [Re, M(U)]
1278
1278
  ]),
1279
1279
  t[20] || (t[20] = n("span", { class: "radio-text" }, "X轴切割", -1))
1280
1280
  ]),
@@ -1285,9 +1285,9 @@ ${E.value.join(" ")}
1285
1285
  value: "y",
1286
1286
  "onUpdate:modelValue": t[14] || (t[14] = (D) => Te(U) ? U.value = D : null),
1287
1287
  onChange: t[15] || (t[15] = //@ts-ignore
1288
- (...D) => V(I) && V(I)(...D))
1288
+ (...D) => M(W) && M(W)(...D))
1289
1289
  }, null, 544), [
1290
- [Re, V(U)]
1290
+ [Re, M(U)]
1291
1291
  ]),
1292
1292
  t[21] || (t[21] = n("span", { class: "radio-text" }, "Y轴切割", -1))
1293
1293
  ]),
@@ -1298,9 +1298,9 @@ ${E.value.join(" ")}
1298
1298
  value: "z",
1299
1299
  "onUpdate:modelValue": t[16] || (t[16] = (D) => Te(U) ? U.value = D : null),
1300
1300
  onChange: t[17] || (t[17] = //@ts-ignore
1301
- (...D) => V(I) && V(I)(...D))
1301
+ (...D) => M(W) && M(W)(...D))
1302
1302
  }, null, 544), [
1303
- [Re, V(U)]
1303
+ [Re, M(U)]
1304
1304
  ]),
1305
1305
  t[22] || (t[22] = n("span", { class: "radio-text" }, "Z轴切割", -1))
1306
1306
  ])
@@ -1308,10 +1308,10 @@ ${E.value.join(" ")}
1308
1308
  ])) : ye("", !0),
1309
1309
  i.value === "工件树" ? (te(), Ce(st, {
1310
1310
  key: 2,
1311
- model: (k = V(Ae)) == null ? void 0 : k.obj,
1312
- onVisibleChange: V(ze),
1313
- onUpdatePosition: V($e),
1314
- onUpdateRotation: V(Fe)
1311
+ model: (k = M(Ae)) == null ? void 0 : k.obj,
1312
+ onVisibleChange: M(ze),
1313
+ onUpdatePosition: M($e),
1314
+ onUpdateRotation: M(Fe)
1315
1315
  }, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : ye("", !0)
1316
1316
  ];
1317
1317
  }),