ss-component-new 1.1.821 → 1.1.822

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 (141) hide show
  1. package/dist/{OrbitControls-D6pgin7s.js → OrbitControls-Cm4Xs_Bq.js} +1 -1
  2. package/dist/{OrbitControls-Ff5ikkUQ.cjs → OrbitControls-D-XDZGf-.cjs} +1 -1
  3. package/dist/{STLLoader-BNh7D2zV.cjs → STLLoader-BxpEhvEg.cjs} +161 -161
  4. package/dist/{STLLoader-LGKv5i3H.js → STLLoader-DofhZbOw.js} +522 -593
  5. package/dist/{array-D1hKYLwI.cjs → array-Bfmx0w6P.cjs} +2 -2
  6. package/dist/{array-C60T9pDZ.js → array-DbAuNWGt.js} +1 -1
  7. package/dist/{iconfont-v9CcCMwF.js → iconfont-DQodgJo8.js} +73 -75
  8. package/dist/iconfont-Di4uXnX1.cjs +1 -0
  9. package/dist/icons/svg/editTable.svg +1 -1
  10. package/dist/icons/svg/export.svg +1 -0
  11. package/dist/icons/svg/model.svg +1 -0
  12. package/dist/icons/svg/three.svg +1 -0
  13. package/dist/index-1i-XlS2m.js +101 -0
  14. package/dist/{index-BdsJiFeW.cjs → index-6jSC3unU.cjs} +1 -1
  15. package/dist/{index-2kzGjuzu.js → index-6zbHinQ6.js} +10 -9
  16. package/dist/index-B-oe2x1V.cjs +109 -0
  17. package/dist/index-B-qent3l.cjs +1 -0
  18. package/dist/{index-CukZ8eDZ.js → index-BBo52W9F.js} +4 -4
  19. package/dist/index-BOev8isw.cjs +21 -0
  20. package/dist/index-BQgnYD51.js +6492 -0
  21. package/dist/{index-owcnOlVq.js → index-BYW-ix_Q.js} +5 -5
  22. package/dist/{index-4_M1SpeV.js → index-Bi1gr72d.js} +14 -14
  23. package/dist/{index-DnVaHi8q.js → index-BmHmnXS9.js} +7 -7
  24. package/dist/index-BoS30LXH.cjs +1 -0
  25. package/dist/index-BuBMi9JA.cjs +1 -0
  26. package/dist/{index-Zi9xLtwj.js → index-BvE05H-i.js} +2 -2
  27. package/dist/index-BwpOMKef.cjs +1 -0
  28. package/dist/index-C18ZPRC7.cjs +1 -0
  29. package/dist/{index-HVJSfh2g.js → index-CJx2DcDb.js} +21 -19
  30. package/dist/{index-B3cUSGXB.js → index-CL59qQ_W.js} +9 -8
  31. package/dist/{index-DDsJpzfR.js → index-CLdN0W98.js} +47 -47
  32. package/dist/index-CPP7L10q.cjs +1 -0
  33. package/dist/index-CSWIBSmo.cjs +1 -0
  34. package/dist/{index-DEobyz7r.js → index-CTgZZ96L.js} +6 -5
  35. package/dist/{index-WXpPDsev.js → index-CZ1ui4mT.js} +1 -1
  36. package/dist/index-CfQvGqaX.cjs +1 -0
  37. package/dist/index-CgJYAzeA.cjs +1 -0
  38. package/dist/index-ChtmIuBu.js +29771 -0
  39. package/dist/index-CjFcaJcL.cjs +1 -0
  40. package/dist/index-CjTmkzBO.js +24 -0
  41. package/dist/{index-Dtw4WkUo.cjs → index-CngO0AUc.cjs} +1 -1
  42. package/dist/index-CqCPdyGu.js +1248 -0
  43. package/dist/index-Cr6pWv0l.cjs +1 -0
  44. package/dist/{index-Cw95lvvp.js → index-D8Msszln.js} +223 -223
  45. package/dist/index-DDvUG6fk.js +22 -0
  46. package/dist/{index-CdMrhxHS.js → index-DMlIMlyC.js} +10 -10
  47. package/dist/{index-3Cdyqd1B.cjs → index-DOBeGYzT.cjs} +1 -1
  48. package/dist/index-DP0k43fj.cjs +1 -0
  49. package/dist/index-DTxccgVM.cjs +1 -0
  50. package/dist/{index-JAJeIBYE.cjs → index-DVAGljX0.cjs} +1 -1
  51. package/dist/{index-B5Vi6RBj.cjs → index-DVCrYVKw.cjs} +1 -1
  52. package/dist/{index-Dxoxm0Cc.js → index-DZWNGFC0.js} +22 -22
  53. package/dist/{index-CY2iphpd.cjs → index-DbniLh9G.cjs} +1 -1
  54. package/dist/index-Dj_ofPeK.cjs +1 -0
  55. package/dist/{index-DtogzZej.js → index-DocnYz5P.js} +1 -1
  56. package/dist/index-DrL7vroa.js +319 -0
  57. package/dist/index-Dt2McMki.js +13668 -0
  58. package/dist/{index-Cphx1eY1.js → index-Gba1Qfcc.js} +7 -8
  59. package/dist/{index-DMb9Vu-7.js → index-IUkCD4R_.js} +1 -1
  60. package/dist/{index-DAyzDsjs.js → index-K6BRW_Bw.js} +1 -1
  61. package/dist/{index-DzM8zZqe.js → index-OH9t-y2p.js} +4 -4
  62. package/dist/index-PNDdZKYG.cjs +1 -0
  63. package/dist/{index-Dn04IPFM.js → index-QETLKFyV.js} +10 -10
  64. package/dist/{index-BWHtpT9o.cjs → index-RgTvyK54.cjs} +1 -1
  65. package/dist/{index-Cuj-fGNO.cjs → index-VAIU8vMN.cjs} +1 -1
  66. package/dist/{index-CF_0RdqV.cjs → index-dukFqRog.cjs} +1 -1
  67. package/dist/{index-C9Boo2Cw.cjs → index-dyoOdMKX.cjs} +1 -1
  68. package/dist/index-f9bwREQl.cjs +1 -0
  69. package/dist/index-rPc9VS0S.cjs +1 -0
  70. package/dist/index-tPamnhR2.js +236 -0
  71. package/dist/{index-H3kf9EQv.js → index-tX2Hs05F.js} +11 -10
  72. package/dist/{index-DEU-pXeW.js → index-uvns6W6E.js} +1838 -1812
  73. package/dist/index-weauvEnW.cjs +4 -0
  74. package/dist/{index-B8xEed7C.cjs → index-wlnPb2aB.cjs} +1 -1
  75. package/dist/{index.vue_vue_type_script_setup_true_lang-iyZtrhDf.js → index.vue_vue_type_script_setup_true_lang-C4G6mB7R.js} +28 -28
  76. package/dist/{index.vue_vue_type_script_setup_true_lang-CaYQQb8M.cjs → index.vue_vue_type_script_setup_true_lang-CWi4UVPF.cjs} +1 -1
  77. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-qefZ9E5G.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CtN9Ij0Y.js} +53 -23
  78. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CTcahF4Z.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-mQIxU0SD.cjs} +90 -90
  79. package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-Cxjh1E1z.js → index.vue_vue_type_style_index_0_scoped_1966237d_lang-D3xcEtDT.js} +6488 -6474
  80. package/dist/{index.vue_vue_type_style_index_0_scoped_6bfd62db_lang-0eNHRdYw.cjs → index.vue_vue_type_style_index_0_scoped_1966237d_lang-DwIFJsxs.cjs} +14 -14
  81. package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-kymzIBO8.js → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-D5CTJUDi.js} +17 -17
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-GlR2V0TC.cjs → index.vue_vue_type_style_index_0_scoped_86d2b6b8_lang-VPQBXOPW.cjs} +1 -1
  83. package/dist/index.vue_vue_type_style_index_1_lang-DraQDAAw.cjs +32 -0
  84. package/dist/index.vue_vue_type_style_index_1_lang-hffXwR3x.js +7028 -0
  85. package/dist/isUndefined-4Qg9wncf.js +84 -0
  86. package/dist/isUndefined-BEt4O79g.cjs +1 -0
  87. package/dist/{main-C6I42yaU.js → main-CBCk94h5.js} +30 -29
  88. package/dist/main-DO_PN7jt.cjs +1 -0
  89. package/dist/ss-component.cjs +1 -1
  90. package/dist/ss-component.css +2 -2
  91. package/dist/ss-component.js +11 -11
  92. package/dist/ss-component2.cjs +1 -1
  93. package/dist/ss-component2.js +12 -12
  94. package/dist/threeModel-GKSAzHfe.cjs +1 -0
  95. package/dist/{threeModel-BEt5OVCP.js → threeModel-RJwJMtfW.js} +91 -92
  96. package/dist/{threePreview-BUZRvBRx.js → threePreview-BSqdALPK.js} +3 -3
  97. package/dist/{threePreview-Dyzqu5s7.cjs → threePreview-CKvbwCiX.cjs} +1 -1
  98. package/dist/threeSceneView-BVbVe_Et.js +1277 -0
  99. package/dist/threeSceneView-KvCERteS.cjs +5 -0
  100. package/dist/{threeViewerHost-IhSFkCeD.js → threeViewerHost-AuhfL2Cn.js} +55 -57
  101. package/dist/threeViewerHost-D0pu5wk5.cjs +1 -0
  102. package/package.json +1 -1
  103. package/public/icons/svg/editTable.svg +1 -1
  104. package/public/icons/svg/export.svg +1 -0
  105. package/public/icons/svg/model.svg +1 -0
  106. package/public/icons/svg/three.svg +1 -0
  107. package/dist/animationData-B2T3Oamw.js +0 -108
  108. package/dist/animationData-Db_9HBoM.cjs +0 -1
  109. package/dist/iconfont-CZj6ltAs.cjs +0 -1
  110. package/dist/index-2KKrCkl8.cjs +0 -1
  111. package/dist/index-2OWkrGDh.js +0 -24
  112. package/dist/index-B1iXzkUF.cjs +0 -1
  113. package/dist/index-BBB4VObc.cjs +0 -11
  114. package/dist/index-BIVWMqJQ.cjs +0 -1
  115. package/dist/index-BWpZSzL1.cjs +0 -1
  116. package/dist/index-BllULnvx.cjs +0 -1
  117. package/dist/index-BvO1uTn0.js +0 -21
  118. package/dist/index-C2bI4adc.js +0 -8628
  119. package/dist/index-C9pN8_un.js +0 -548
  120. package/dist/index-CPdKWCSo.cjs +0 -1
  121. package/dist/index-CQfFbeTJ.cjs +0 -1
  122. package/dist/index-CZJOPfp5.js +0 -1152
  123. package/dist/index-Cb0q1Y5b.cjs +0 -1
  124. package/dist/index-Cfomm0G1.cjs +0 -109
  125. package/dist/index-CvvFU_QA.cjs +0 -1
  126. package/dist/index-DYMLmifU.cjs +0 -1
  127. package/dist/index-DfPyuGyq.js +0 -101
  128. package/dist/index-Dm2qfeUm.cjs +0 -1
  129. package/dist/index-DtX1F0sz.cjs +0 -4
  130. package/dist/index-Du3VUDcF.cjs +0 -1
  131. package/dist/index-VWNqRYy9.js +0 -36270
  132. package/dist/index-kmj8K3JX.cjs +0 -1
  133. package/dist/index-ndZw4AQJ.cjs +0 -1
  134. package/dist/index-y5FEcncv.cjs +0 -1
  135. package/dist/index.vue_vue_type_style_index_1_lang-Bmwy3cgo.cjs +0 -42
  136. package/dist/index.vue_vue_type_style_index_1_lang-Rs1M3B8e.js +0 -11984
  137. package/dist/main-2gDZp_zL.cjs +0 -1
  138. package/dist/threeModel-DgOcIXVI.cjs +0 -1
  139. package/dist/threeSceneView-BZx98QgN.js +0 -1450
  140. package/dist/threeSceneView-DSkGJN5d.cjs +0 -5
  141. package/dist/threeViewerHost-T_51aUg5.cjs +0 -1
@@ -1,18 +1,17 @@
1
- import { ref as b, watch as Pe, createElementBlock as q, openBlock as H, createBlock as Le, computed as ie, onMounted as $e, onUnmounted as je, Fragment as Xe, renderList as He, createElementVNode as h, createCommentVNode as xe, toDisplayString as ae, resolveComponent as Je, createVNode as z, defineComponent as Ye, normalizeStyle as Be, normalizeClass as Ee, nextTick as Fe, onBeforeUnmount as qe, withDirectives as se, unref as O, withCtx as Te, isRef as he, vModelRadio as ye, vShow as we } from "vue";
2
- import { V as M, B as be, S as Ze, C as We, P as Ke, W as Ne, a as Qe, A as et, b as tt, M as Re, X as nt, G as at, c as Me, d as ot, e as De, f as st, D as ke, H as lt, g as Ve, h as Oe, i as Ue, j as ze, E as _e, k as de, l as it, m as rt, T as ct } from "./STLLoader-LGKv5i3H.js";
3
- import { O as ut } from "./OrbitControls-D6pgin7s.js";
4
- import { B as dt, C as pt } from "./index-VWNqRYy9.js";
1
+ import { ref as b, watch as Pe, createElementBlock as q, openBlock as H, createBlock as Le, computed as ie, onMounted as $e, onUnmounted as je, Fragment as Xe, renderList as He, createElementVNode as h, createCommentVNode as xe, toDisplayString as ae, resolveComponent as Je, createVNode as z, defineComponent as Ye, normalizeStyle as Ee, normalizeClass as Fe, nextTick as Be, onBeforeUnmount as qe, withDirectives as se, unref as O, withCtx as Te, isRef as he, vModelRadio as ye, vShow as we } from "vue";
2
+ import { V as M, B as be, S as Ze, C as We, P as Ke, W as Ne, a as Qe, A as et, b as tt, M as Re, X as nt, G as at, c as Me, d as ot, e as De, f as st, D as ke, H as lt, g as Ve, h as Oe, i as Ue, j as ze, E as _e, k as de, l as it, m as rt, T as ct } from "./STLLoader-DofhZbOw.js";
3
+ import { O as ut } from "./OrbitControls-Cm4Xs_Bq.js";
4
+ import { s as dt, d as pt } from "./index-ChtmIuBu.js";
5
5
  import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import { c as Ge } from "./index.vue_vue_type_style_index_1_lang-Rs1M3B8e.js";
7
- import { E as Ie } from "./index-C2bI4adc.js";
8
- function mt(B) {
6
+ import { c as Ge, E as Ie } from "./index-Dt2McMki.js";
7
+ function mt(E) {
9
8
  let f = null, r = null, c = null, v = null, w = null, k = null, i = null, A = null;
10
- const E = 1e3 / 30;
9
+ const F = 1e3 / 30;
11
10
  let T = 0;
12
11
  const D = b([]), l = b(new M()), C = b(new M()), g = () => {
13
- if (!B.value) return;
12
+ if (!E.value) return;
14
13
  f = new Ze(), f.background = new We(15790320);
15
- const d = B.value;
14
+ const d = E.value;
16
15
  r = new Ke(75, d.clientWidth / d.clientHeight, 0.1, 1e4), r.position.set(8, -8, 6), r.up.set(0, 0, 1), r.lookAt(0, 0, 0), c = new Ne({
17
16
  antialias: !0,
18
17
  alpha: !0
@@ -103,7 +102,7 @@ function mt(B) {
103
102
  }, _ = () => {
104
103
  k = requestAnimationFrame(_), v && v.update();
105
104
  const d = performance.now(), a = d - T;
106
- a < E || (T = d - a % E, c && f && r && c.render(f, r), w && w.render());
105
+ a < F || (T = d - a % F, c && f && r && c.render(f, r), w && w.render());
107
106
  }, U = (d) => {
108
107
  [
109
108
  "map",
@@ -135,8 +134,8 @@ function mt(B) {
135
134
  // 方法
136
135
  initThreeJS: g,
137
136
  handleResize: () => {
138
- if (!B.value || !r || !c || !w) return;
139
- const d = B.value, a = d.clientWidth, S = d.clientHeight;
137
+ if (!E.value || !r || !c || !w) return;
138
+ const d = E.value, a = d.clientWidth, S = d.clientHeight;
140
139
  r.aspect = a / S, r.updateProjectionMatrix(), c.setSize(a, S), w.update();
141
140
  },
142
141
  fitCameraToAllModels: (d) => {
@@ -183,27 +182,27 @@ function mt(B) {
183
182
  updateGridForModels: u
184
183
  };
185
184
  }
186
- function ft(B, f) {
185
+ function ft(E, f) {
187
186
  const r = b(!1);
188
187
  let c = null, v = 12700, w = new M(), k = new M(), i = new M(), A = 0, L = null;
189
- const E = (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2, T = (e) => {
188
+ const F = (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2, T = (e) => {
190
189
  const u = new M(), p = A * 1.2, _ = new M(i.x + p, i.y, i.z), U = new M(i.x, i.y + p, i.z), V = new M(i.x, i.y - p, i.z);
191
190
  if (e <= 0.567) {
192
191
  const G = e / 0.567 * Math.PI * 2;
193
192
  u.x = i.x + Math.cos(G) * p, u.z = i.z + Math.sin(G) * p, u.y = i.y;
194
193
  } else if (e <= 0.724) {
195
- const J = (e - 0.567) / 0.157, G = E(J);
194
+ const J = (e - 0.567) / 0.157, G = F(J);
196
195
  u.lerpVectors(_, U, G);
197
196
  } else if (e <= 0.881) {
198
- const J = (e - 0.724) / 0.157, j = E(J) * Math.PI;
197
+ const J = (e - 0.724) / 0.157, j = F(J) * Math.PI;
199
198
  u.x = i.x + Math.sin(j) * p, u.y = i.y + Math.cos(j) * p, u.z = i.z;
200
199
  } else {
201
- const J = (e - 0.881) / 0.119, G = E(J);
200
+ const J = (e - 0.881) / 0.119, G = F(J);
202
201
  u.lerpVectors(V, w, G);
203
202
  }
204
203
  return u;
205
204
  }, D = () => {
206
- const { camera: e, controls: u } = B();
205
+ const { camera: e, controls: u } = E();
207
206
  if (!e || !u) return;
208
207
  c || (c = Date.now());
209
208
  const p = Date.now() - c, _ = Math.min(p / v, 1);
@@ -215,7 +214,7 @@ function ft(B, f) {
215
214
  e.position.copy(U), e.lookAt(i), u.target.copy(i), L = requestAnimationFrame(D);
216
215
  }, l = () => {
217
216
  if (f.value.length === 0) return;
218
- const { camera: e, controls: u } = B();
217
+ const { camera: e, controls: u } = E();
219
218
  if (!e || !u) return;
220
219
  w.copy(e.position), k.copy(u.target);
221
220
  const p = new be();
@@ -227,13 +226,13 @@ function ft(B, f) {
227
226
  const U = new M(i.x + A * 1.2, i.y, i.z);
228
227
  u.enabled = !1;
229
228
  const V = e.position.clone(), J = 1e3, G = Date.now(), j = () => {
230
- const Z = Date.now() - G, ee = Math.min(Z / J, 1), d = E(ee);
229
+ const Z = Date.now() - G, ee = Math.min(Z / J, 1), d = F(ee);
231
230
  e.position.lerpVectors(V, U, d), e.lookAt(i), u.target.copy(i), ee < 1 ? requestAnimationFrame(j) : (r.value = !0, c = null, D());
232
231
  };
233
232
  j();
234
233
  }, C = () => {
235
234
  r.value = !1, c = null, L && (cancelAnimationFrame(L), L = null);
236
- const { controls: e } = B();
235
+ const { controls: e } = E();
237
236
  e && (e.enabled = !0, e.target.copy(k));
238
237
  };
239
238
  return {
@@ -241,11 +240,11 @@ function ft(B, f) {
241
240
  toggleAnimation: () => {
242
241
  if (r.value) {
243
242
  r.value = !1, c = null, L && (cancelAnimationFrame(L), L = null);
244
- const { camera: e, controls: u } = B();
243
+ const { camera: e, controls: u } = E();
245
244
  if (!e || !u) return;
246
245
  u.enabled = !0;
247
246
  const p = e.position.clone(), _ = u.target.clone(), U = 1500, V = Date.now(), J = () => {
248
- const G = Date.now() - V, j = Math.min(G / U, 1), Z = E(j);
247
+ const G = Date.now() - V, j = Math.min(G / U, 1), Z = F(j);
249
248
  e.position.lerpVectors(p, w, Z), u.target.lerpVectors(_, k, Z), j < 1 && requestAnimationFrame(J);
250
249
  };
251
250
  J();
@@ -256,7 +255,7 @@ function ft(B, f) {
256
255
  stopAnimation: C
257
256
  };
258
257
  }
259
- function vt(B, f) {
258
+ function vt(E, f) {
260
259
  const r = b(!1), c = b("none");
261
260
  let v = [], w = [], k = new be(), i = new M();
262
261
  const A = () => {
@@ -272,7 +271,7 @@ function vt(B, f) {
272
271
  k.makeEmpty(), f.value.forEach((g) => {
273
272
  k.expandByObject(g);
274
273
  }), i = k.getCenter(new M());
275
- }, E = (g) => {
274
+ }, F = (g) => {
276
275
  const e = k.getSize(new M());
277
276
  let u, p, _;
278
277
  g === "x" ? (u = new Me(e.z * 1.2, e.y * 1.2), p = new M(i.x, i.y, i.z), _ = new _e(0, Math.PI / 2, 0)) : g === "y" ? (u = new Me(e.x * 1.2, e.z * 1.2), p = new M(i.x, i.y, i.z), _ = new _e(Math.PI / 2, 0, 0)) : g === "z" && (u = new Me(e.x * 1.2, e.y * 1.2), p = new M(i.x, i.y, i.z), _ = new _e(0, 0, 0));
@@ -297,9 +296,9 @@ function vt(B, f) {
297
296
  }) : p.material.clippingPlanes = [g]);
298
297
  });
299
298
  });
300
- const { scene: e } = B();
299
+ const { scene: e } = E();
301
300
  if (e) {
302
- const u = E(c.value);
301
+ const u = F(c.value);
303
302
  e.add(u), w.push(u);
304
303
  }
305
304
  }
@@ -312,7 +311,7 @@ function vt(B, f) {
312
311
  });
313
312
  });
314
313
  }, l = () => {
315
- const { scene: g } = B();
314
+ const { scene: g } = E();
316
315
  g && w.forEach((e) => {
317
316
  g.remove(e), e.geometry.dispose(), e.material.dispose();
318
317
  }), w = [];
@@ -334,8 +333,8 @@ const gt = { class: "panel-content" }, ht = {
334
333
  animationData: Object,
335
334
  model: Object
336
335
  },
337
- setup(B) {
338
- const f = B;
336
+ setup(E) {
337
+ const f = E;
339
338
  b();
340
339
  const r = b();
341
340
  return Pe(
@@ -364,20 +363,20 @@ const gt = { class: "panel-content" }, ht = {
364
363
  }, Mt = { class: "joint-info-row" }, Pt = { class: "joint-left" }, bt = { class: "joint-name" }, Ct = { class: "joint-range" }, kt = { class: "joint-type" }, zt = {
365
364
  key: 0,
366
365
  class: "joint-control-row"
367
- }, _t = { class: "slider-container" }, At = ["min", "max", "value", "onInput", "disabled"], Dt = { class: "value-display" }, St = { class: "joint-value" }, Bt = { class: "unit" }, Et = {
366
+ }, _t = { class: "slider-container" }, At = ["min", "max", "value", "onInput", "disabled"], Dt = { class: "value-display" }, St = { class: "joint-value" }, Et = { class: "unit" }, Ft = {
368
367
  key: 1,
369
368
  class: "empty-state"
370
- }, pe = 1e-3, Ft = 1e3, Ae = 60, Tt = {
369
+ }, pe = 1e-3, Bt = 1e3, Ae = 60, Tt = {
371
370
  __name: "jointPanel",
372
371
  props: {
373
372
  model: Object,
374
373
  scene: Object,
375
374
  animationData: Object
376
375
  },
377
- setup(B, { expose: f }) {
378
- const r = B;
376
+ setup(E, { expose: f }) {
377
+ const r = E;
379
378
  b(!0);
380
- const c = b([]), v = b(null), w = b(null), k = b(12.5), i = b(), A = b(1302), L = b(30), E = b(!1), T = b(!1), D = b(0), l = b(0), C = b(null), g = it.degToRad, e = b(1), u = () => Ft / Ae / e.value;
379
+ const c = b([]), v = b(null), w = b(null), k = b(12.5), i = b(), A = b(1302), L = b(30), F = b(!1), T = b(!1), D = b(0), l = b(0), C = b(null), g = it.degToRad, e = b(1), u = () => Bt / Ae / e.value;
381
380
  let p = [];
382
381
  Pe(
383
382
  () => r.animationData,
@@ -537,9 +536,9 @@ const gt = { class: "panel-content" }, ht = {
537
536
  console.warn("没有动画数据");
538
537
  return;
539
538
  }
540
- U(), E.value = !0, T.value = !1, D.value = 0, l.value = 0, R();
539
+ U(), F.value = !0, T.value = !1, D.value = 0, l.value = 0, R();
541
540
  }, R = () => {
542
- if (!E.value || T.value) return;
541
+ if (!F.value || T.value) return;
543
542
  const n = D.value;
544
543
  if (n >= p.length - 1) {
545
544
  const o = p[p.length - 1];
@@ -556,7 +555,7 @@ const gt = { class: "panel-content" }, ht = {
556
555
  }, X = () => {
557
556
  T.value = !0, C.value && (clearTimeout(C.value), C.value = null);
558
557
  }, W = () => {
559
- E.value = !1, T.value = !1, e.value = 1, C.value && (clearTimeout(C.value), C.value = null);
558
+ F.value = !1, T.value = !1, e.value = 1, C.value && (clearTimeout(C.value), C.value = null);
560
559
  };
561
560
  f({
562
561
  startAnimation: S,
@@ -581,7 +580,7 @@ const gt = { class: "panel-content" }, ht = {
581
580
  { immediate: !0 }
582
581
  );
583
582
  const re = () => {
584
- !r.model || E.value && !T.value || c.value.forEach((n) => {
583
+ !r.model || F.value && !T.value || c.value.forEach((n) => {
585
584
  n.urdfJoint && n.urdfJoint.angle !== void 0 && (n.currentValue = n.urdfJoint.angle);
586
585
  });
587
586
  }, fe = () => {
@@ -621,17 +620,17 @@ const gt = { class: "panel-content" }, ht = {
621
620
  value: s.currentValue,
622
621
  onInput: (Y) => J(s.name, Y.target.value),
623
622
  class: "joint-slider",
624
- disabled: E.value && !T.value
623
+ disabled: F.value && !T.value
625
624
  }, null, 40, At)
626
625
  ]),
627
626
  h("div", Dt, [
628
627
  h("span", St, ae(s.currentValue ? Number(s.currentValue).toFixed(3) : "0.000"), 1),
629
- h("span", Bt, ae(s.type === "revolute" ? "rad" : "m"), 1)
628
+ h("span", Et, ae(s.type === "revolute" ? "rad" : "m"), 1)
630
629
  ])
631
630
  ])) : xe("", !0)
632
631
  ]);
633
632
  }), 128))
634
- ])) : (H(), q("div", Et, m[0] || (m[0] = [
633
+ ])) : (H(), q("div", Ft, m[0] || (m[0] = [
635
634
  h("p", null, "未检测到可控制的关节", -1)
636
635
  ])))
637
636
  ]));
@@ -647,12 +646,12 @@ const gt = { class: "panel-content" }, ht = {
647
646
  expandStrategy: {
648
647
  type: String,
649
648
  default: "breadth",
650
- validator: (B) => ["breadth", "firstLevel"].includes(B)
649
+ validator: (E) => ["breadth", "firstLevel"].includes(E)
651
650
  }
652
651
  },
653
652
  emits: ["nodeClick"],
654
- setup(B, { emit: f }) {
655
- const r = B, c = f, v = b([]), w = {
653
+ setup(E, { emit: f }) {
654
+ const r = E, c = f, v = b([]), w = {
656
655
  children: "children",
657
656
  label: "label"
658
657
  }, k = (l) => {
@@ -694,7 +693,7 @@ const gt = { class: "panel-content" }, ht = {
694
693
  u.children && u.children.length > 0 && (g.push(u.id), e.push(...u.children));
695
694
  }
696
695
  return g;
697
- }, E = (l, C) => {
696
+ }, F = (l, C) => {
698
697
  const g = [];
699
698
  return l.forEach((e) => {
700
699
  if (e.children && e.children.length > 0) {
@@ -703,7 +702,7 @@ const gt = { class: "panel-content" }, ht = {
703
702
  g.push(...u);
704
703
  }
705
704
  }), g.slice(0, C + 1);
706
- }, T = ie(() => !v.value || v.value.length === 0 ? [] : r.expandStrategy === "firstLevel" ? E(v.value, r.maxExpandCount) : L(v.value, r.maxExpandCount)), D = ie(() => r != null && r.model ? A(r.model) : []);
705
+ }, T = ie(() => !v.value || v.value.length === 0 ? [] : r.expandStrategy === "firstLevel" ? F(v.value, r.maxExpandCount) : L(v.value, r.maxExpandCount)), D = ie(() => r != null && r.model ? A(r.model) : []);
707
706
  return Pe(
708
707
  D,
709
708
  (l) => {
@@ -733,8 +732,8 @@ const gt = { class: "panel-content" }, ht = {
733
732
  spin: { type: Boolean, default: !1 },
734
733
  active: { type: Boolean, default: !1 }
735
734
  },
736
- setup(B) {
737
- const f = B, r = ie(
735
+ setup(E) {
736
+ const f = E, r = ie(
738
737
  () => ({
739
738
  backgroundColor: f.backgroundColor
740
739
  })
@@ -747,19 +746,19 @@ const gt = { class: "panel-content" }, ht = {
747
746
  };
748
747
  });
749
748
  return (w, k) => (H(), q("div", {
750
- class: Ee(["container", { active: w.active }]),
751
- style: Be(r.value)
749
+ class: Fe(["container", { active: w.active }]),
750
+ style: Ee(r.value)
752
751
  }, [
753
752
  (H(), q("svg", {
754
- class: Ee(["svg-icon", [w.$attrs.class, w.spin && "svg-icon-spin"]]),
755
- style: Be(v.value),
753
+ class: Fe(["svg-icon", [w.$attrs.class, w.spin && "svg-icon-spin"]]),
754
+ style: Ee(v.value),
756
755
  "aria-hidden": "true"
757
756
  }, [
758
757
  h("use", { "xlink:href": c.value }, null, 8, Jt)
759
758
  ], 6))
760
759
  ], 6));
761
760
  }
762
- }), F = /* @__PURE__ */ me(Ot, [["__scopeId", "data-v-3150a90b"]]), Ut = { class: "obj-viewer-container" }, Gt = { class: "buttonGroup-top" }, jt = { class: "buttonGroup-topLeft" }, Xt = { class: "buttonGroup-left" }, Ht = { class: "buttonGroup-right" }, Yt = { class: "buttonGroup-bottom" }, qt = { class: "left-panel" }, Zt = { class: "panel-header" }, Wt = {
761
+ }), B = /* @__PURE__ */ me(Ot, [["__scopeId", "data-v-3150a90b"]]), Ut = { class: "obj-viewer-container" }, Gt = { class: "buttonGroup-top" }, jt = { class: "buttonGroup-topLeft" }, Xt = { class: "buttonGroup-left" }, Ht = { class: "buttonGroup-right" }, Yt = { class: "buttonGroup-bottom" }, qt = { class: "left-panel" }, Zt = { class: "panel-header" }, Wt = {
763
762
  key: 1,
764
763
  class: "clipping-content"
765
764
  }, Kt = { class: "radio-group" }, Nt = { class: "radio-label" }, Qt = { class: "radio-label" }, en = { class: "radio-label" }, tn = { class: "radio-label" }, nn = { class: "right-panel" }, an = { class: "panel-header" }, on = {
@@ -775,12 +774,12 @@ const gt = { class: "panel-content" }, ht = {
775
774
  }
776
775
  },
777
776
  emits: ["getAnimationData"],
778
- setup(B, { expose: f, emit: r }) {
777
+ setup(E, { expose: f, emit: r }) {
779
778
  const c = r;
780
779
  let v = null, w = !1;
781
780
  const k = b(null), i = b(!1), A = b("");
782
781
  b(!1);
783
- const L = b(!1), E = b(!1), T = b(""), D = b(!1), l = b(""), C = b(), {
782
+ const L = b(!1), F = b(!1), T = b(""), D = b(!1), l = b(""), C = b(), {
784
783
  currentModels: g,
785
784
  initialCameraPosition: e,
786
785
  initialTargetPosition: u,
@@ -824,17 +823,17 @@ const gt = { class: "panel-content" }, ht = {
824
823
  throw console.error("加载模型失败:", y), y;
825
824
  }
826
825
  }, Ce = async (o) => fe(o, X), n = async (o) => fe(o, W), m = (o) => {
827
- E.value = !0, T.value = o, o === "剖面视图" && !d.value && S();
826
+ F.value = !0, T.value = o, o === "剖面视图" && !d.value && S();
828
827
  }, s = (o) => {
829
828
  D.value = !0, l.value = o, o === "动画仿真" && c("getAnimationData");
830
829
  }, x = () => {
831
- Fe(() => {
830
+ Be(() => {
832
831
  var o;
833
832
  (o = C.value) == null || o.startAnimation();
834
833
  });
835
834
  };
836
835
  return $e(async () => {
837
- await Fe();
836
+ await Be();
838
837
  try {
839
838
  p(), v = V().scene, w = !0, window.addEventListener("resize", _);
840
839
  } catch (o) {
@@ -855,45 +854,45 @@ const gt = { class: "panel-content" }, ht = {
855
854
  class: "threejs-container"
856
855
  }, null, 512),
857
856
  h("div", Gt, [
858
- z(F, {
857
+ z(B, {
859
858
  name: "guanjianjiexi",
860
859
  size: "34"
861
860
  }),
862
- z(F, {
861
+ z(B, {
863
862
  name: "guanjiekongzhi",
864
863
  size: "34"
865
864
  }),
866
- z(F, {
865
+ z(B, {
867
866
  name: "gongyishengcheng",
868
867
  size: "34"
869
868
  }),
870
- z(F, {
869
+ z(B, {
871
870
  name: "buchangshezhi",
872
871
  size: "34"
873
872
  }),
874
- z(F, {
873
+ z(B, {
875
874
  name: "shuchujiagongchengxu",
876
875
  size: "34"
877
876
  })
878
877
  ]),
879
878
  h("div", jt, [
880
- z(F, {
879
+ z(B, {
881
880
  name: "viewReset",
882
881
  size: "24",
883
882
  onClick: te,
884
883
  title: "重置"
885
884
  }),
886
- z(F, {
885
+ z(B, {
887
886
  name: "fangda",
888
887
  size: "24",
889
888
  title: "放大"
890
889
  }),
891
- z(F, {
890
+ z(B, {
892
891
  name: "suoxiao",
893
892
  size: "24",
894
893
  title: "缩小"
895
894
  }),
896
- z(F, {
895
+ z(B, {
897
896
  name: "lookAround",
898
897
  size: "24",
899
898
  onClick: O(Z),
@@ -901,93 +900,93 @@ const gt = { class: "panel-content" }, ht = {
901
900
  }, null, 8, ["onClick", "title"])
902
901
  ]),
903
902
  h("div", Xt, [
904
- z(F, {
903
+ z(B, {
905
904
  name: "jiegoushu",
906
905
  size: "24",
907
906
  onClick: t[0] || (t[0] = (P) => m("场景树")),
908
- active: E.value && T.value === "场景树",
907
+ active: F.value && T.value === "场景树",
909
908
  title: "场景树"
910
909
  }, null, 8, ["active"]),
911
- z(F, {
910
+ z(B, {
912
911
  name: "clipping",
913
912
  size: "24",
914
913
  onClick: t[1] || (t[1] = (P) => m("剖面视图")),
915
- active: E.value && T.value === "剖面视图",
914
+ active: F.value && T.value === "剖面视图",
916
915
  title: "剖面视图"
917
916
  }, null, 8, ["active"]),
918
- z(F, {
917
+ z(B, {
919
918
  name: "donghuafangzhen",
920
919
  size: "24",
921
920
  onClick: t[2] || (t[2] = (P) => m("场景树3"))
922
921
  }),
923
- z(F, {
922
+ z(B, {
924
923
  name: "donghuafangzhen",
925
924
  size: "24",
926
925
  onClick: t[3] || (t[3] = (P) => m("场景4"))
927
926
  })
928
927
  ]),
929
928
  h("div", Ht, [
930
- z(F, {
929
+ z(B, {
931
930
  name: "donghuafangzhen",
932
931
  size: "24"
933
932
  }),
934
- z(F, {
933
+ z(B, {
935
934
  name: "donghuafangzhen",
936
935
  size: "24"
937
936
  }),
938
- z(F, {
937
+ z(B, {
939
938
  name: "guanjiekongzhi",
940
939
  size: "24",
941
940
  onClick: t[4] || (t[4] = (P) => s("关节控制")),
942
941
  active: D.value && l.value === "关节控制",
943
942
  title: "关节控制"
944
943
  }, null, 8, ["active"]),
945
- z(F, {
944
+ z(B, {
946
945
  name: "donghuafangzhen",
947
946
  size: "24",
948
947
  title: "动画仿真",
949
948
  onClick: t[5] || (t[5] = (P) => s("动画仿真")),
950
949
  active: D.value && l.value === "动画仿真"
951
950
  }, null, 8, ["active"]),
952
- z(F, {
951
+ z(B, {
953
952
  name: "donghuafangzhen",
954
953
  size: "24"
955
954
  }),
956
- z(F, {
955
+ z(B, {
957
956
  name: "donghuafangzhen",
958
957
  size: "24"
959
958
  })
960
959
  ]),
961
960
  h("div", Yt, [
962
- z(F, {
961
+ z(B, {
963
962
  name: "kuaitui",
964
963
  size: "24",
965
964
  backgroundColor: "#ffffff",
966
965
  title: "快退",
967
966
  onClick: (Y = C.value) == null ? void 0 : Y.fastBackward
968
967
  }, null, 8, ["onClick"]),
969
- z(F, {
968
+ z(B, {
970
969
  name: "bofang",
971
970
  size: "24",
972
971
  backgroundColor: "#ffffff",
973
972
  title: "播放",
974
973
  onClick: x
975
974
  }),
976
- z(F, {
975
+ z(B, {
977
976
  name: "kuaijin",
978
977
  size: "24",
979
978
  backgroundColor: "#ffffff",
980
979
  title: "快进",
981
980
  onClick: ($ = C.value) == null ? void 0 : $.fastForward
982
981
  }, null, 8, ["onClick"]),
983
- z(F, {
982
+ z(B, {
984
983
  name: "zanting",
985
984
  size: "24",
986
985
  backgroundColor: "#ffffff",
987
986
  title: "暂停",
988
987
  onClick: (ne = C.value) == null ? void 0 : ne.pauseAnimation
989
988
  }, null, 8, ["onClick"]),
990
- z(F, {
989
+ z(B, {
991
990
  name: "zhongzhi",
992
991
  size: "24",
993
992
  backgroundColor: "#ffffff",
@@ -1000,7 +999,7 @@ const gt = { class: "panel-content" }, ht = {
1000
999
  h("span", null, ae(T.value), 1),
1001
1000
  h("span", {
1002
1001
  class: "close",
1003
- onClick: t[6] || (t[6] = (P) => E.value = !1)
1002
+ onClick: t[6] || (t[6] = (P) => F.value = !1)
1004
1003
  }, " X ")
1005
1004
  ]),
1006
1005
  z(y, { "max-height": "650px" }, {
@@ -1065,7 +1064,7 @@ const gt = { class: "panel-content" }, ht = {
1065
1064
  _: 1
1066
1065
  })
1067
1066
  ], 512), [
1068
- [we, E.value]
1067
+ [we, F.value]
1069
1068
  ]),
1070
1069
  se(h("div", nn, [
1071
1070
  h("div", an, [
@@ -1082,11 +1081,11 @@ const gt = { class: "panel-content" }, ht = {
1082
1081
  ref: C,
1083
1082
  model: O(K),
1084
1083
  scene: O(v),
1085
- animationData: B.animationData
1084
+ animationData: E.animationData
1086
1085
  }, null, 8, ["model", "scene", "animationData"]), [
1087
1086
  [we, l.value === "关节控制"]
1088
1087
  ]),
1089
- se(z(yt, { animationData: B.animationData }, null, 8, ["animationData"]), [
1088
+ se(z(yt, { animationData: E.animationData }, null, 8, ["animationData"]), [
1090
1089
  [we, l.value === "动画仿真"]
1091
1090
  ])
1092
1091
  ]),
@@ -1102,7 +1101,7 @@ const gt = { class: "panel-content" }, ht = {
1102
1101
  ]);
1103
1102
  };
1104
1103
  }
1105
- }, fn = /* @__PURE__ */ me(sn, [["__scopeId", "data-v-7bc47bb3"]]);
1104
+ }, mn = /* @__PURE__ */ me(sn, [["__scopeId", "data-v-7bc47bb3"]]);
1106
1105
  export {
1107
- fn as default
1106
+ mn as default
1108
1107
  };
@@ -1,7 +1,7 @@
1
1
  import { ref as G, shallowRef as He, defineComponent as Ue, watch as J, onMounted as Ge, nextTick as je, onBeforeUnmount as Be, resolveComponent as Ke, createElementBlock as Q, openBlock as Z, createElementVNode as M, withDirectives as B, createCommentVNode as de, createVNode as H, unref as S, toDisplayString as fe, withCtx as Ve, isRef as W, vModelRadio as Y, vShow as Xe } from "vue";
2
- import { u as ze, a as qe, b as We, S as K } from "./iconfont-v9CcCMwF.js";
3
- import { ag as Ye, ah as oe, ai as Me, q as $e, x as z, F as we, aj as C, Q as ye, C as D, ak as k, b as q, Y as Je, g as Qe, D as Ze, k as $, V as U, al as en, Z as be, am as nn, a8 as Se, z as tn, an as sn, ae as ee, ao as rn, w as Ne, ap as on, aq as an, ar as cn, as as ae, at as Ie, a6 as ce, au as ln, a7 as un, t as dn, av as ne, a1 as fn, ad as Ce, i as hn, y as X, aw as pn, r as mn, a2 as gn, e as Oe, a4 as Tn, a3 as xn, ax as Rn, u as En, n as te, P as An, l as Ln, U as _n, a5 as Mn, J as wn, a0 as yn, ay as bn, az as ve, aA as Sn, aB as he, _ as pe, aC as me, $ as ge, N as Te, R as Nn, aD as In, B as ke, aE as Cn, p as On, O as vn, o as kn, h as Fn } from "./STLLoader-LGKv5i3H.js";
4
- import { E as xe } from "./index-C2bI4adc.js";
2
+ import { u as ze, a as qe, b as We, S as K } from "./iconfont-DQodgJo8.js";
3
+ import { ag as Ye, ah as oe, ai as Me, q as $e, x as z, F as we, aj as C, Q as ye, C as D, ak as k, b as q, Y as Je, g as Qe, D as Ze, k as $, V as U, al as en, Z as be, am as nn, a8 as Se, z as tn, an as sn, ae as ee, ao as rn, w as Ne, ap as on, aq as an, ar as cn, as as ae, at as Ie, a6 as ce, au as ln, a7 as un, t as dn, av as ne, a1 as fn, ad as Ce, i as hn, y as X, aw as pn, r as mn, a2 as gn, e as Oe, a4 as Tn, a3 as xn, ax as Rn, u as En, n as te, P as An, l as Ln, U as _n, a5 as Mn, J as wn, a0 as yn, ay as bn, az as ve, aA as Sn, aB as he, _ as pe, aC as me, $ as ge, N as Te, R as Nn, aD as In, B as ke, aE as Cn, p as On, O as vn, o as kn, h as Fn } from "./STLLoader-DofhZbOw.js";
4
+ import { E as xe } from "./index-Dt2McMki.js";
5
5
  import { _ as Pn } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  function Re(d, n) {
7
7
  if (n === Ye)