ss-component-new 1.2.77 → 1.2.78

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 (101) hide show
  1. package/dist/{MTLLoader-BruI0iCV.js → MTLLoader-BDMG6YfL.js} +5 -5
  2. package/dist/{MTLLoader-Bseg1sor.cjs → MTLLoader-CnPy8SIM.cjs} +1 -1
  3. package/dist/{OrbitControls-Bxqvo8Mr.js → OrbitControls-CY4nXrtT.js} +1 -1
  4. package/dist/{OrbitControls-BiNnC97N.cjs → OrbitControls-CuLYwxjN.cjs} +1 -1
  5. package/dist/{URDFLoader-DWo3pDBH.js → URDFLoader-B-_NDbTy.js} +174 -174
  6. package/dist/{URDFLoader-DexIn4xU.cjs → URDFLoader-CMLpHJvm.cjs} +1 -1
  7. package/dist/{animationData-BVpXOZwe.cjs → animationData-CU7hS77W.cjs} +1 -1
  8. package/dist/{animationData-BDkjPdQf.js → animationData-x63hYcF2.js} +18 -18
  9. package/dist/{array-6LpFOZ5o.cjs → array-CuFsDmBp.cjs} +1 -1
  10. package/dist/{array-D5Rc5rM9.js → array-DGGaDihY.js} +27 -27
  11. package/dist/{iconfont-Bnhc7fLw.cjs → iconfont-DapI438c.cjs} +1 -1
  12. package/dist/{iconfont-14del5d2.js → iconfont-Dh5vye0Q.js} +27 -27
  13. package/dist/{index-D_coIVx9.cjs → index-B5IQ7gb8.cjs} +1 -1
  14. package/dist/{index-BMwOfyZG.js → index-B5J3L2e2.js} +2 -2
  15. package/dist/{index-Da8kLXUi.js → index-B5SNHDlg.js} +1 -1
  16. package/dist/{index-CiluLmLS.js → index-B6afWPV2.js} +11 -11
  17. package/dist/{index-Cc_IAZBO.js → index-BHWTQgQr.js} +4 -4
  18. package/dist/{index-CjipjSmP.cjs → index-BHfg6eX1.cjs} +1 -1
  19. package/dist/{index-BXCI98KY.js → index-BNw0thEl.js} +6 -6
  20. package/dist/{index-Bq27i8N6.js → index-BQVxgmhe.js} +4 -4
  21. package/dist/{index-C5AMx3DP.js → index-BRjEFy0A.js} +2 -2
  22. package/dist/{index-Pg_Ez4Na.cjs → index-BVm32wTk.cjs} +1 -1
  23. package/dist/{index-BPWX1kmE.cjs → index-B_8I59kW.cjs} +1 -1
  24. package/dist/{index-Ai5OAXHo.js → index-BgE_6FYY.js} +6 -6
  25. package/dist/{index-jKLdvV3y.js → index-BhSs5oWU.js} +20 -20
  26. package/dist/{index-CV0wJjuo.cjs → index-Bk-2miD0.cjs} +1 -1
  27. package/dist/{index-D9iPLSwS.js → index-Bmtw8a5p.js} +2 -2
  28. package/dist/index-Bo1rw4RK.js +12694 -0
  29. package/dist/{index-DNp4E_lQ.cjs → index-BoRc53Op.cjs} +1 -1
  30. package/dist/{index-BP1mTaAy.js → index-BpdTJyQA.js} +4 -4
  31. package/dist/{index-Cv58m2R8.js → index-BuNPE4NQ.js} +1 -1
  32. package/dist/{index-Do4pZeLF.cjs → index-ByfRHlqN.cjs} +1 -1
  33. package/dist/{index-BjDn0YhH.cjs → index-CB5nu_Oy.cjs} +1 -1
  34. package/dist/{index-BCGURMXa.js → index-CCofb6hR.js} +2 -2
  35. package/dist/{index-sCZuOhEC.js → index-CD_POzdO.js} +1 -1
  36. package/dist/{index-BU__qorE.cjs → index-CG6XNbRF.cjs} +1 -1
  37. package/dist/index-CHM2ty3v.cjs +1 -0
  38. package/dist/{index-BOttcNaR.js → index-CLz_5ZZr.js} +2 -2
  39. package/dist/{index-C3DC8sX2.js → index-CMI2loKt.js} +9 -9
  40. package/dist/{index-DRbQJezd.cjs → index-CPIcSR8X.cjs} +1 -1
  41. package/dist/{index-CTfB2BO7.cjs → index-CRAmNrm9.cjs} +1 -1
  42. package/dist/{index-B3jUJ0ml.js → index-CRSa1xvW.js} +7 -7
  43. package/dist/{index-BXumaiVx.js → index-CWlvSpb2.js} +2 -2
  44. package/dist/{index-CwvAshmz.js → index-CWny47Cz.js} +3 -3
  45. package/dist/{index-CT1bDBZy.js → index-C_vmgWYF.js} +5 -5
  46. package/dist/{index-iqnKq5qd.js → index-CdWi5i0R.js} +1 -1
  47. package/dist/{index-cGnhqEuy.cjs → index-CeLtly50.cjs} +1 -1
  48. package/dist/{index-1uzZjqSR.cjs → index-CiGUPby0.cjs} +1 -1
  49. package/dist/{index-CEuxxYEp.cjs → index-CrtAijF6.cjs} +1 -1
  50. package/dist/{index-CS2SJFa5.cjs → index-Cu_c71UK.cjs} +1 -1
  51. package/dist/{index-DZboVCcU.cjs → index-CuboYYZp.cjs} +1 -1
  52. package/dist/{index-CBIrHmhA.cjs → index-D59u4uun.cjs} +1 -1
  53. package/dist/{index-aG7MmrtC.js → index-DLhzF-SN.js} +3 -3
  54. package/dist/{index-PkJYBcS-.js → index-DOW-WHBS.js} +25 -22
  55. package/dist/{index-CZkjboM8.js → index-DPtclCKc.js} +6 -6
  56. package/dist/{index-BWjhL8R0.js → index-D_qR3hDI.js} +1 -1
  57. package/dist/{index-DndAdSGT.js → index-DqxXG1QQ.js} +3 -3
  58. package/dist/{index-CNDlskJD.cjs → index-N59Ddt9i.cjs} +1 -1
  59. package/dist/{index-nzQPJif1.cjs → index-NwVeUXHo.cjs} +1 -1
  60. package/dist/{index-lkxTc6vy.js → index-RGPE_-6J.js} +6 -6
  61. package/dist/{index-DEyzKyXf.cjs → index-_295fBTp.cjs} +1 -1
  62. package/dist/{index-BYc9jyiE.js → index-bfMyItzl.js} +3 -3
  63. package/dist/{index-B3x0Un8L.js → index-c_dxTNA1.js} +3 -3
  64. package/dist/{index-BJizDAnh.cjs → index-id7MTN5D.cjs} +1 -1
  65. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CnNB3KR5.cjs +37 -0
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Ctqs6jS6.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Dd4fwgC2.js} +14195 -14528
  67. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bqxa7GJA.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Jb-pxYCE.js} +14268 -14110
  68. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-D6FKmWHb.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-pgm7LZ2p.cjs} +352 -352
  69. package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-RIZ8CIk5.cjs +1 -0
  70. package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-t-qpDVld.js +377 -0
  71. package/dist/{index.vue_vue_type_style_index_1_lang-DQ90IC2k.cjs → index.vue_vue_type_style_index_1_lang-BJyabOtw.cjs} +1 -1
  72. package/dist/{index.vue_vue_type_style_index_1_lang-CrcbIeWl.js → index.vue_vue_type_style_index_1_lang-CNsmX3gg.js} +37 -37
  73. package/dist/{isString-8mN8gX27.js → isString-Bb0EYAKj.js} +1 -1
  74. package/dist/{main-D3WREi0-.cjs → main-DIQ7mQ8a.cjs} +1 -1
  75. package/dist/{main-BkI9SlJQ.js → main-wl0-ex-A.js} +5 -5
  76. package/dist/ss-component.cjs +1 -1
  77. package/dist/ss-component.js +11 -11
  78. package/dist/ss-component2.cjs +1 -1
  79. package/dist/ss-component2.js +12 -12
  80. package/dist/{threeModel-CVlu8rK_.js → threeModel-C0oPO7tY.js} +5 -5
  81. package/dist/{threeModel-Bp11Ni6H.cjs → threeModel-Tv_tZqCA.cjs} +1 -1
  82. package/dist/{threePreview-Dw4LR6jh.cjs → threePreview-BaI2wC-D.cjs} +1 -1
  83. package/dist/{threePreview-CdzNCx3-.js → threePreview-D5UPnEBN.js} +4 -4
  84. package/dist/{threeSceneView-jhQi8rSG.js → threeSceneView-CInjoNVf.js} +134 -134
  85. package/dist/{threeSceneView-BdVTjYBI.cjs → threeSceneView-DVmaCW7K.cjs} +1 -1
  86. package/dist/{threeSceneViewForCPMPIP-DgAoijFZ.js → threeSceneViewForCPMPIP-C8CXMOuk.js} +8 -8
  87. package/dist/{threeSceneViewForCPMPIP-DRYioXDE.cjs → threeSceneViewForCPMPIP-DohzLUui.cjs} +1 -1
  88. package/dist/{threeTrackPathView-Ds9FmHU1.cjs → threeTrackPathView-B3rKlzro.cjs} +1 -1
  89. package/dist/{threeTrackPathView-C1HVNI2F.js → threeTrackPathView-CVpyIv5S.js} +48 -48
  90. package/dist/{threeViewerHost-DvIwe0xo.js → threeViewerHost-BgQmCw2g.js} +15 -15
  91. package/dist/{threeViewerHost-Cazxmy9Q.cjs → threeViewerHost-DqCoBmb3.cjs} +1 -1
  92. package/dist/{urdfTree-CMKhj8xM.js → urdfTree-BmNTo-xk.js} +1 -1
  93. package/dist/{urdfTree-dHyqQi6d.cjs → urdfTree-CShYg3Vd.cjs} +1 -1
  94. package/dist/{workpieceTreePanel-4MfitYyo.cjs → workpieceTreePanel-BXdDwos2.cjs} +1 -1
  95. package/dist/{workpieceTreePanel-BM7lPJRO.js → workpieceTreePanel-GI4Y-wNL.js} +29 -29
  96. package/package.json +1 -1
  97. package/dist/index-C-Cn4YSI.js +0 -12234
  98. package/dist/index-qqyeENwY.cjs +0 -1
  99. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-wPtij0q7.cjs +0 -37
  100. package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-Ddv_4Qcm.cjs +0 -1
  101. package/dist/index.vue_vue_type_style_index_0_scoped_140f5e74_lang-DmUFTzw3.js +0 -376
@@ -1,6 +1,6 @@
1
1
  import { shallowRef as c2, ref as k, defineComponent as o2, computed as Z, createElementBlock as h2, openBlock as n2, createElementVNode as w } from "vue";
2
- import { V as p, ba as s2, af as Y, W as I, a7 as E, bc as p2, a4 as r2, a5 as j, a6 as d2, X as v2, Y as z2, Z as f2, _ as A2, $ as m2, a0 as M2, a1 as u2, a2 as l2, c7 as F2, a3 as g2, a8 as y2, a9 as $, aa as w2, ab as t2, bI as b2, ac as B2, ad as H2, ae as J } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bqxa7GJA.js";
3
- import { O as V2 } from "./OrbitControls-Bxqvo8Mr.js";
2
+ import { W as p, bb as s2, ag as Y, X as O, a8 as E, bd as p2, a5 as r2, a6 as j, a7 as d2, Y as v2, Z as z2, _ as f2, $ as A2, a0 as m2, a1 as M2, a2 as u2, a3 as l2, c8 as F2, a4 as g2, a9 as y2, aa as U, ab as w2, ac as t2, bJ as b2, ad as B2, ae as H2, af as $ } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Jb-pxYCE.js";
3
+ import { O as V2 } from "./OrbitControls-CY4nXrtT.js";
4
4
  import { _ as x2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const c1 = (o, a = "YZX") => {
6
6
  const t = new p(), h = new s2(), n = new p(), r = new Y();
@@ -33,7 +33,7 @@ function n1(o, a) {
33
33
  const { scene: t, camera: h, renderer: n, controls: r } = o();
34
34
  if (!t || !h || !n || !r)
35
35
  return;
36
- const M = new I().setFromObject(a), c = M.getCenter(new p()), z = M.getSize(new p()), f = Math.max(z.x, z.y, z.z), m = h.fov * (Math.PI / 180);
36
+ const M = new O().setFromObject(a), c = M.getCenter(new p()), z = M.getSize(new p()), f = Math.max(z.x, z.y, z.z), m = h.fov * (Math.PI / 180);
37
37
  let g = Math.abs(f / 2 / Math.tan(m / 2));
38
38
  g *= 1.2, h.position.copy(c), h.position.z += g, h.lookAt(c), r.target.copy(c), r.update();
39
39
  }
@@ -60,7 +60,7 @@ function s1(o) {
60
60
  let a = null, t = null, h = null, n = null, r = null, M = [], c = null, z = null, f = null, m = null;
61
61
  const u = 1e3 / 30;
62
62
  let P = 0;
63
- const O = 1, A = c2([]), i = k(new p()), s = k(new p()), v = k(!1), F = k(!1), V = () => {
63
+ const I = 1, A = c2([]), i = k(new p()), s = k(new p()), v = k(!1), F = k(!1), V = () => {
64
64
  if (!o.value) return;
65
65
  const l = o.value;
66
66
  a = x(), t = b(l), h = B(l), n = D(t, h), m = S(), r = W(l, n), M = q(), i.value.copy(t.position), s.value.copy(n.target), Q(100, new p(0, 0, 0)), K();
@@ -106,11 +106,11 @@ function s1(o) {
106
106
  if (!a) return [];
107
107
  const l = new y2(4210752, 0.6);
108
108
  a.add(l);
109
- const e = new $(16777215, 2);
109
+ const e = new U(16777215, 2);
110
110
  e.position.set(10, 10, 8), e.castShadow = !0, e.shadow.mapSize.width = 4096, e.shadow.mapSize.height = 4096, e.shadow.camera.near = 0.5, e.shadow.camera.far = 50, e.shadow.camera.left = -50, e.shadow.camera.right = 50, e.shadow.camera.top = 50, e.shadow.camera.bottom = -50, a.add(e);
111
- const d = new $(16777215, 0.8);
111
+ const d = new U(16777215, 0.8);
112
112
  d.position.set(-8, -8, 6), a.add(d);
113
- const y = new $(16777215, 0.6);
113
+ const y = new U(16777215, 0.6);
114
114
  y.position.set(0, -15, 2), a.add(y);
115
115
  const H = new w2(16777215, 4473924, 0.8);
116
116
  a.add(H);
@@ -135,9 +135,9 @@ function s1(o) {
135
135
  Q(100, new p(0, 0, 0));
136
136
  return;
137
137
  }
138
- const l = new I();
138
+ const l = new O();
139
139
  if (A.value.forEach((L) => {
140
- L.userData.boundingBox instanceof I ? l.union(L.userData.boundingBox) : l.expandByObject(L);
140
+ L.userData.boundingBox instanceof O ? l.union(L.userData.boundingBox) : l.expandByObject(L);
141
141
  }), l.isEmpty()) {
142
142
  console.warn("模型没有有效边界框,网格和阴影平面更新失败");
143
143
  return;
@@ -157,11 +157,11 @@ function s1(o) {
157
157
  a && (A.value.forEach((l) => {
158
158
  a == null || a.remove(l), e2(l);
159
159
  }), A.value = [], T());
160
- }, U = () => {
160
+ }, J = () => {
161
161
  if (!t || !n || !a || A.value.length === 0) return;
162
- const l = new I();
162
+ const l = new O();
163
163
  A.value.forEach((R) => {
164
- R.userData.boundingBox instanceof I && !R.userData.boundingBox.isEmpty() ? l.union(R.userData.boundingBox) : (R.updateMatrixWorld(!0), l.expandByObject(R));
164
+ R.userData.boundingBox instanceof O && !R.userData.boundingBox.isEmpty() ? l.union(R.userData.boundingBox) : (R.updateMatrixWorld(!0), l.expandByObject(R));
165
165
  });
166
166
  const e = l.getSize(new p());
167
167
  if (l.getCenter(new p()), l.isEmpty() || e.length() === 0) {
@@ -209,14 +209,14 @@ function s1(o) {
209
209
  e.traverse((d) => {
210
210
  d instanceof E && (d.castShadow = !1, d.receiveShadow = !1);
211
211
  }), a == null || a.add(e);
212
- }), A.value = l, T(), U());
212
+ }), A.value = l, T(), J());
213
213
  },
214
214
  addModelAndFit: (l) => {
215
215
  if (!a) return;
216
216
  const e = Array.isArray(l) ? l : [l];
217
217
  e.forEach((d) => {
218
218
  a == null || a.add(d);
219
- }), A.value = [...A.value, ...e], T(), U();
219
+ }), A.value = [...A.value, ...e], T(), J();
220
220
  },
221
221
  setGridVisibility: (l) => {
222
222
  v.value = l, z && (z.visible = l);
@@ -224,7 +224,7 @@ function s1(o) {
224
224
  toggleAxesVisibility: () => {
225
225
  F.value = !F.value, m && (m.visible = F.value);
226
226
  },
227
- fitCameraToAllModels: U,
227
+ fitCameraToAllModels: J,
228
228
  clearAllModels: N,
229
229
  updateGridForModels: T,
230
230
  resetView: () => {
@@ -236,7 +236,7 @@ function s1(o) {
236
236
  n.enabled = !1, n.autoRotate = !1, n.enableDamping = !1, n.update(), t.position.copy(i.value), n.target.copy(s.value), t.lookAt(n.target), t.updateProjectionMatrix(), n.update(), n.enableDamping = e, n.enabled = l;
237
237
  },
238
238
  zoomIn: () => {
239
- t && t.position.addScaledVector(t.getWorldDirection(new p()), O);
239
+ t && t.position.addScaledVector(t.getWorldDirection(new p()), I);
240
240
  },
241
241
  zoomOut: () => {
242
242
  t && t.position.addScaledVector(t.getWorldDirection(new p()), -1);
@@ -268,7 +268,7 @@ function p1(o, a) {
268
268
  h || (h = Date.now());
269
269
  const v = Date.now() - h, F = Math.min(v / n, 1);
270
270
  if (F >= 1) {
271
- O();
271
+ I();
272
272
  return;
273
273
  }
274
274
  const V = g(F);
@@ -278,7 +278,7 @@ function p1(o, a) {
278
278
  const { camera: i, controls: s } = o();
279
279
  if (!i || !s) return;
280
280
  r.copy(i.position), M.copy(s.target);
281
- const v = new I();
281
+ const v = new O();
282
282
  a.value.forEach((S) => {
283
283
  v.expandByObject(S);
284
284
  });
@@ -291,7 +291,7 @@ function p1(o, a) {
291
291
  i.position.lerpVectors(x, V, q), i.lookAt(c), s.target.copy(c), W < 1 ? requestAnimationFrame(D) : (t.value = !0, h = null, u());
292
292
  };
293
293
  D();
294
- }, O = () => {
294
+ }, I = () => {
295
295
  t.value = !1, h = null, f && (cancelAnimationFrame(f), f = null);
296
296
  const { controls: i } = o();
297
297
  i && (i.enabled = !0, i.target.copy(M));
@@ -313,7 +313,7 @@ function p1(o, a) {
313
313
  P();
314
314
  },
315
315
  startAnimation: P,
316
- stopAnimation: O
316
+ stopAnimation: I
317
317
  };
318
318
  }
319
319
  const C = {
@@ -324,14 +324,14 @@ const C = {
324
324
  };
325
325
  function r1(o, a) {
326
326
  const t = k(!1), h = k("none");
327
- let n = [], r = [], M = new I(), c = new p();
327
+ let n = [], r = [], M = new O(), c = new p();
328
328
  const z = () => {
329
329
  n = [
330
- new J(new p(1, 0, 0), 0),
330
+ new $(new p(1, 0, 0), 0),
331
331
  // X轴平面
332
- new J(new p(0, 1, 0), 0),
332
+ new $(new p(0, 1, 0), 0),
333
333
  // Y轴平面
334
- new J(new p(0, 0, 1), 0)
334
+ new $(new p(0, 0, 1), 0)
335
335
  // Z轴平面
336
336
  ];
337
337
  }, f = () => {
@@ -396,7 +396,7 @@ function r1(o, a) {
396
396
  clearClippingMeshes: P
397
397
  };
398
398
  }
399
- const L2 = { class: "panel-content" }, E2 = { class: "clipping-content" }, S2 = { class: "radio-group" }, _2 = { class: "radio-label" }, k2 = ["checked"], I2 = { class: "radio-label" }, O2 = ["checked"], T2 = { class: "radio-label" }, R2 = ["checked"], W2 = { class: "radio-label" }, N2 = ["checked"], G2 = /* @__PURE__ */ o2({
399
+ const L2 = { class: "panel-content" }, E2 = { class: "clipping-content" }, S2 = { class: "radio-group" }, _2 = { class: "radio-label" }, k2 = ["checked"], O2 = { class: "radio-label" }, I2 = ["checked"], T2 = { class: "radio-label" }, R2 = ["checked"], W2 = { class: "radio-label" }, N2 = ["checked"], G2 = /* @__PURE__ */ o2({
400
400
  __name: "clippingPanel",
401
401
  props: {
402
402
  value: {}
@@ -420,14 +420,14 @@ const L2 = { class: "panel-content" }, E2 = { class: "clipping-content" }, S2 =
420
420
  }, null, 40, k2),
421
421
  m[0] || (m[0] = w("span", { class: "radio-text" }, "无切割", -1))
422
422
  ]),
423
- w("label", I2, [
423
+ w("label", O2, [
424
424
  w("input", {
425
425
  type: "radio",
426
426
  name: "clipping-axis",
427
427
  value: "x",
428
428
  checked: r.value,
429
429
  onChange: z
430
- }, null, 40, O2),
430
+ }, null, 40, I2),
431
431
  m[1] || (m[1] = w("span", { class: "radio-text" }, "X轴切割", -1))
432
432
  ]),
433
433
  w("label", T2, [