ss-component-new 1.3.615 → 1.3.617

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 (74) hide show
  1. package/dist/{MTLLoader-BL2uYkTJ.js → MTLLoader-B6ottYFV.js} +2 -2
  2. package/dist/{OrbitControls-Zyj23qrC.js → OrbitControls-BFVKU7s-.js} +1 -1
  3. package/dist/{URDFLoader-CRx5L75v.js → URDFLoader-CH-7Pzmq.js} +589 -584
  4. package/dist/{animationData-CJQE6_nu.js → animationData-F0z3GN7j.js} +3 -3
  5. package/dist/{array-CKTk7Sq_.js → array-CQiszLQE.js} +13 -14
  6. package/dist/{clone-ESeDvnJv.js → clone-MyfSNInd.js} +1 -1
  7. package/dist/{eleIcon-C7Pz9jha.js → eleIcon-BoKZ_PzU.js} +2 -2
  8. package/dist/{iconfont-DZGSkx-_.js → iconfont-BJYdStg5.js} +396 -247
  9. package/dist/{index-gXFBfuoD.js → index-0zQirLAy.js} +8 -8
  10. package/dist/{index-BvkIoiVW.js → index-6qXeMn6b.js} +3 -3
  11. package/dist/{index-obXIOkF7.js → index-8OmAlKII.js} +4 -4
  12. package/dist/{index-BXh02EAd.js → index-B2LYEScO.js} +4 -4
  13. package/dist/{index-YvUJL9Us.js → index-B4NcYIuS.js} +1 -1
  14. package/dist/{index-D8UY4uNQ.js → index-B8NQAdR4.js} +966 -967
  15. package/dist/{index-rlStojTL.js → index-BFqUz4pN.js} +1 -1
  16. package/dist/{index-t9LvhXac.js → index-BHtLrI43.js} +5 -5
  17. package/dist/{index--FPbFJB2.js → index-BODochNh.js} +6 -6
  18. package/dist/{index-CPW7tdrA.js → index-BkkvdZXm.js} +17 -20
  19. package/dist/{index-B0M1YCUY.js → index-BvtOLltL.js} +7 -7
  20. package/dist/{index-DsdWSuDi.js → index-BvyM6d06.js} +482 -483
  21. package/dist/{index-CX8Apbo7.js → index-BybrpYzx.js} +1 -1
  22. package/dist/{index-BJFXtH-X.js → index-CAMjP0It.js} +3 -3
  23. package/dist/{index-tMqKF2l6.js → index-CM6aWexA.js} +2 -2
  24. package/dist/{index-BBBCr4Oo.js → index-CT1LWsrT.js} +2 -2
  25. package/dist/{index-CTicGWoS.js → index-CXqqIuf-.js} +3 -3
  26. package/dist/{index-D9xMYIes.js → index-CYjsE5Gs.js} +3 -3
  27. package/dist/{index-B_fRppeJ.js → index-CkO7j_i1.js} +8 -8
  28. package/dist/{index-cYgzND1g.js → index-CnCBS4CT.js} +16268 -16240
  29. package/dist/{index-DlQXFCw8.js → index-CvZcm-Tt.js} +7 -8
  30. package/dist/{index-tniD_xHN.js → index-D2BpwRDj.js} +148 -157
  31. package/dist/{index-DAs4L0hx.js → index-D43kQTBs.js} +6973 -6531
  32. package/dist/{index-DjSJhlad.js → index-D56uKIwO.js} +60 -62
  33. package/dist/{index-XvX6TMzr.js → index-DCY5J8nu.js} +1 -1
  34. package/dist/{index-C3pboX9W.js → index-DIVct0z6.js} +5 -5
  35. package/dist/{index-Dd-8nw2f.js → index-DIzunSUT.js} +18 -20
  36. package/dist/{index-11kpzK0A.js → index-DJrzqi4-.js} +17 -17
  37. package/dist/{index-Cn33Gz2z.js → index-DSrPdLF-.js} +587 -616
  38. package/dist/{index-BUqviBFi.js → index-DcPtyCDm.js} +29 -35
  39. package/dist/{index-D1E8EPxn.js → index-DmILGKv9.js} +57 -61
  40. package/dist/{index-BA1kJZth.js → index-aTEfnfYn.js} +36 -40
  41. package/dist/{index-BHtNKL1L.js → index-dD-mKgue.js} +2 -2
  42. package/dist/{index-DkumSU1-.js → index-hg0CdgKe.js} +4 -4
  43. package/dist/index-mjGbAjJz.js +2623 -0
  44. package/dist/{index.vue_vue_type_script_setup_true_lang-DRzriV-s.js → index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js} +2 -2
  45. package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-X_k372gl.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-Dp7tIi0S.js} +27760 -27735
  46. package/dist/isString-Dxm3W5iX.js +8 -0
  47. package/dist/{localIcon-D5UoFBU5.js → localIcon-CoJHw5ss.js} +1 -1
  48. package/dist/{main-DgwLoFSd.js → main-BDvWHXas.js} +9 -9
  49. package/dist/{menuIndex-DAW9B-9g.js → menuIndex-BiUB7t5q.js} +1 -1
  50. package/dist/{request-B1c8BUkR.js → request-BfrhYBTM.js} +3480 -3062
  51. package/dist/ss-component.css +3 -3
  52. package/dist/ss-component.js +14 -14
  53. package/dist/ss-component2.js +13 -13
  54. package/dist/ss-component3.js +1 -1
  55. package/dist/svgIcon-4m2zaZkj.js +42 -0
  56. package/dist/{threeModel-Df46gQvy.js → threeModel-B7guecMM.js} +174 -174
  57. package/dist/{threePreview-C4Ra7sjU.js → threePreview-CpcrqmFS.js} +554 -554
  58. package/dist/threeSceneView-CWTmvCY4.js +1290 -0
  59. package/dist/{threeSceneViewForCPMPIP-DZ5wkTWo.js → threeSceneViewForCPMPIP-VzWmr9CP.js} +207 -208
  60. package/dist/{threeTrackPathView-DT80eKxv.js → threeTrackPathView-Bw6e-quT.js} +25 -25
  61. package/dist/{threeViewerHost-t6BRTmw8.js → threeViewerHost-DIiGjw_8.js} +4 -4
  62. package/dist/urdfTree-DU02c_91.js +254 -0
  63. package/dist/{workpieceTreePanel-CuXFoEjJ.js → workpieceTreePanel-XH9mYAT2.js} +56 -60
  64. package/package.json +1 -1
  65. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  66. package/dist/index-BmaW6Me9.js +0 -572
  67. package/dist/isString-BlNsHiyU.js +0 -8
  68. package/dist/obj/model.mtl +0 -42
  69. package/dist/obj/model.obj +0 -26110
  70. package/dist/svgIcon-4u4PW7Is.js +0 -42
  71. package/dist/threeSceneView-tLPMhgrS.js +0 -1291
  72. package/dist/urdfTree-Bu7OVUsr.js +0 -404
  73. package/public/obj/model.mtl +0 -42
  74. package/public/obj/model.obj +0 -26110
@@ -1,11 +1,11 @@
1
1
  var ce = Object.defineProperty;
2
2
  var de = (b, l, t) => l in b ? ce(b, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : b[l] = t;
3
3
  var J = (b, l, t) => de(b, typeof l != "symbol" ? l + "" : l, t);
4
- import { U as me } from "./URDFLoader-CRx5L75v.js";
5
- import { S as ve, M as pe, O as fe } from "./MTLLoader-BL2uYkTJ.js";
6
- import { b2 as be, b3 as re, s as O, k as we, h as he, b4 as E, B as _e, b5 as ge, ap as je, V as ye } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-X_k372gl.js";
7
- import { ref as T, defineComponent as Le, computed as M, watch as ue, resolveComponent as x, createElementBlock as k, openBlock as V, createVNode as U, createElementVNode as c, withCtx as F, createTextVNode as D, toDisplayString as C } from "vue";
8
- import { a as Re, b as Ue, g as $e } from "./iconfont-DZGSkx-_.js";
4
+ import { U as me } from "./URDFLoader-CH-7Pzmq.js";
5
+ import { S as ve, M as pe, O as fe } from "./MTLLoader-B6ottYFV.js";
6
+ import { b2 as be, b3 as re, s as O, k as we, h as he, b4 as E, B as ge, b5 as _e, ap as je, V as ye } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-Dp7tIi0S.js";
7
+ import { ref as T, defineComponent as Le, computed as M, watch as ue, resolveComponent as x, openBlock as k, createElementBlock as V, createVNode as U, withCtx as F, createTextVNode as D, createElementVNode as c, toDisplayString as C } from "vue";
8
+ import { c as Re, e as Ue, g as $e } from "./iconfont-BJYdStg5.js";
9
9
  import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  const Se = "http://222.92.178.198:60000/chfs/shared/Insofrobot/urdf";
11
11
  function Me(b) {
@@ -20,13 +20,13 @@ function De(b) {
20
20
  const { manager: l, baseFolderUrl: t, onFileProgress: s } = b, m = new me(l);
21
21
  return m.packages = (i) => `${t.endsWith("/") ? t : t + "/"}${i}/`, m.loadMeshCb = (i, h, v) => {
22
22
  const y = (() => {
23
- const _ = i.split("?")[0].split("#")[0], r = _.lastIndexOf(".");
24
- return r >= 0 ? _.slice(r + 1).toLowerCase() : void 0;
23
+ const g = i.split("?")[0].split("#")[0], r = g.lastIndexOf(".");
24
+ return r >= 0 ? g.slice(r + 1).toLowerCase() : void 0;
25
25
  })();
26
26
  switch (y) {
27
27
  // OBJ+MTL
28
28
  case "obj": {
29
- const _ = (() => {
29
+ const g = (() => {
30
30
  try {
31
31
  return new URL(".", i).toString();
32
32
  } catch {
@@ -36,7 +36,7 @@ function De(b) {
36
36
  })(), r = (() => {
37
37
  var u;
38
38
  return (((u = i.split("/").pop()) == null ? void 0 : u.split("?")[0].split("#")[0]) ?? "").replace(/\.[^/.?#]+$/, "");
39
- })(), f = `${_}${r}.mtl`, g = (n) => {
39
+ })(), f = `${g}${r}.mtl`, _ = (n) => {
40
40
  Fe({
41
41
  objUrl: i,
42
42
  manager: h,
@@ -51,17 +51,17 @@ function De(b) {
51
51
  Me({
52
52
  mtlUrl: f,
53
53
  manager: h,
54
- resourcePath: _,
54
+ resourcePath: g,
55
55
  onLoad: (n) => {
56
56
  try {
57
57
  n.preload();
58
58
  } catch {
59
59
  }
60
- g(n);
60
+ _(n);
61
61
  },
62
62
  onProgress: (n) => s == null ? void 0 : s(f, n == null ? void 0 : n.loaded, n == null ? void 0 : n.total),
63
63
  onError: (n) => {
64
- console.warn(`[URDF 资源警告] 未找到或加载材质失败: ${f}。将尝试无材质加载。`), g(void 0);
64
+ console.warn(`[URDF 资源警告] 未找到或加载材质失败: ${f}。将尝试无材质加载。`), _(void 0);
65
65
  }
66
66
  });
67
67
  break;
@@ -70,8 +70,8 @@ function De(b) {
70
70
  new ve(h).load(
71
71
  i,
72
72
  (r) => {
73
- const f = new we({ color: 12303291, shininess: 30 }), g = new he(r, f);
74
- g.castShadow = !0, g.receiveShadow = !0, v(g);
73
+ const f = new we({ color: 12303291, shininess: 30 }), _ = new he(r, f);
74
+ _.castShadow = !0, _.receiveShadow = !0, v(_);
75
75
  },
76
76
  (r) => s == null ? void 0 : s(i, r == null ? void 0 : r.loaded, r == null ? void 0 : r.total),
77
77
  (r) => {
@@ -88,17 +88,17 @@ function De(b) {
88
88
  function dt(b, l, t, s) {
89
89
  return { loadSceneFromFile: (i) => new Promise((h, v) => {
90
90
  t.value = !0, s.value = "正在初始化 URDF 加载器...";
91
- let y = 0, _ = 0, r = null;
91
+ let y = 0, g = 0, r = null;
92
92
  const f = new be();
93
93
  f.onStart = (n, u, j) => {
94
- y = j || 0, _ = u || 0, s.value = y > 0 ? `开始下载资源: 0 / ${y}` : "开始下载资源...", t.value = !0;
94
+ y = j || 0, g = u || 0, s.value = y > 0 ? `开始下载资源: 0 / ${y}` : "开始下载资源...", t.value = !0;
95
95
  }, f.onProgress = (n, u, j) => {
96
- _ = u, y = j;
96
+ g = u, y = j;
97
97
  const $ = `正在加载 ${u} / ${j} 个文件: ${re(n)}`;
98
98
  s.value = $, u === j && (s.value = "资源加载完成,正在处理模型...", setTimeout(() => {
99
99
  if (r) {
100
100
  r.updateMatrixWorld(!0);
101
- const p = new _e().setFromObject(r);
101
+ const p = new ge().setFromObject(r);
102
102
  p.isEmpty() && console.warn("模型加载完成,但所有可视化网格均加载失败,模型将不可见。"), r.userData.boundingBox = p, r.traverse((d) => {
103
103
  d.isMesh && (d.castShadow = !0, d.receiveShadow = !0);
104
104
  }), h(r);
@@ -111,17 +111,17 @@ function dt(b, l, t, s) {
111
111
  }, f.onError = (n) => {
112
112
  console.warn(`LoadingManager 报告一个资源加载失败: ${n}。加载流程将继续。`);
113
113
  };
114
- const g = (n, u, j) => {
114
+ const _ = (n, u, j) => {
115
115
  const $ = re(n);
116
116
  let p;
117
- j && j > 0 ? p = `${$}(${E(u)} / ${E(j)})` : u && u > 0 ? p = `${$}(已下载 ${E(u)})` : p = `${$}`, s.value = `正在下载第 ${_ + 1} / ${y} 个文件: ${p}`;
117
+ j && j > 0 ? p = `${$}(${E(u)} / ${E(j)})` : u && u > 0 ? p = `${$}(已下载 ${E(u)})` : p = `${$}`, s.value = `正在下载第 ${g + 1} / ${y} 个文件: ${p}`;
118
118
  };
119
119
  try {
120
120
  const n = URL.createObjectURL(i);
121
121
  De({
122
122
  manager: f,
123
123
  baseFolderUrl: Se,
124
- onFileProgress: g
124
+ onFileProgress: _
125
125
  }).load(
126
126
  n,
127
127
  (j) => {
@@ -139,8 +139,8 @@ function dt(b, l, t, s) {
139
139
  }
140
140
  function mt(b, l, t, s = ["URDFVisual"]) {
141
141
  let m = null;
142
- const i = T(null), h = new ge(), v = new je(), y = /* @__PURE__ */ new Map();
143
- function _() {
142
+ const i = T(null), h = new _e(), v = new je(), y = /* @__PURE__ */ new Map();
143
+ function g() {
144
144
  t.value.forEach((p) => {
145
145
  p.traverse((d) => {
146
146
  s != null && s.includes(d.type) && y.set(d.id, {
@@ -176,12 +176,12 @@ function mt(b, l, t, s = ["URDFVisual"]) {
176
176
  }
177
177
  w && r(w);
178
178
  }
179
- function g() {
179
+ function _() {
180
180
  b.value && b.value.removeEventListener("click", f, !1);
181
181
  }
182
182
  function n() {
183
183
  const { scene: p, camera: d } = l();
184
- m = d, _(), b.value && b.value.addEventListener("click", f, !1);
184
+ m = d, g(), b.value && b.value.addEventListener("click", f, !1);
185
185
  }
186
186
  function u(p) {
187
187
  i.value && (i.value.obj.visible = p);
@@ -198,7 +198,7 @@ function mt(b, l, t, s = ["URDFVisual"]) {
198
198
  }
199
199
  return {
200
200
  initRaycaster: n,
201
- dispose: g,
201
+ dispose: _,
202
202
  selectedObject3D: i,
203
203
  setSelectedObjVisible: u,
204
204
  updatePosition: j,
@@ -279,11 +279,11 @@ class vt {
279
279
  const m = this.getCurrentJointStates(), i = Date.now();
280
280
  return new Promise((h) => {
281
281
  const v = () => {
282
- const y = Date.now() - i, _ = Math.min(y / t, 1), r = this.easeInOutCubic(_), f = {};
283
- Object.keys(l).forEach((g) => {
284
- const n = m[g] || 0, u = l[g];
285
- f[g] = n + (u - n) * r;
286
- }), this.setJointAngles(f), s && s(_), _ < 1 ? requestAnimationFrame(v) : h();
282
+ const y = Date.now() - i, g = Math.min(y / t, 1), r = this.easeInOutCubic(g), f = {};
283
+ Object.keys(l).forEach((_) => {
284
+ const n = m[_] || 0, u = l[_];
285
+ f[_] = n + (u - n) * r;
286
+ }), this.setJointAngles(f), s && s(g), g < 1 ? requestAnimationFrame(v) : h();
287
287
  };
288
288
  v();
289
289
  });
@@ -353,7 +353,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
353
353
  L.children && L.children.length > 0 && (w.push(L.id), a.push(...L.children));
354
354
  }
355
355
  return w;
356
- }, _ = (e, o) => {
356
+ }, g = (e, o) => {
357
357
  const w = [];
358
358
  return e.forEach((a) => {
359
359
  if (a.children && a.children.length > 0) {
@@ -363,8 +363,8 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
363
363
  }
364
364
  }), w.slice(0, o + 1);
365
365
  };
366
- M(() => !m.value || m.value.length === 0 ? [] : t.expandStrategy === "firstLevel" ? _(m.value, t.maxExpandCount) : y(m.value, t.maxExpandCount));
367
- const r = (e) => e ? parseFloat(e.toFixed(3)) : 0, f = (e) => e ? parseFloat(e.toFixed(1)) : 0, g = (e, o) => {
366
+ M(() => !m.value || m.value.length === 0 ? [] : t.expandStrategy === "firstLevel" ? g(m.value, t.maxExpandCount) : y(m.value, t.maxExpandCount));
367
+ const r = (e) => e ? parseFloat(e.toFixed(3)) : 0, f = (e) => e ? parseFloat(e.toFixed(1)) : 0, _ = (e, o) => {
368
368
  s("updatePosition", {
369
369
  obj: t.model,
370
370
  axis: o,
@@ -402,16 +402,15 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
402
402
  ), (e, o) => {
403
403
  var S, z, P, A, I, B, N, W, q, X, Y, Z, K, G, H, Q, ee, te, oe, se, ie, le, ae, ne;
404
404
  const w = x("el-divider"), a = x("el-switch"), L = x("el-input-number");
405
- return V(), k("div", Je, [
405
+ return k(), V("div", Je, [
406
406
  U(w, null, {
407
- default: F(() => o[6] || (o[6] = [
408
- D("对象")
409
- ])),
410
- _: 1,
411
- __: [6]
407
+ default: F(() => [...o[6] || (o[6] = [
408
+ D("对象", -1)
409
+ ])]),
410
+ _: 1
412
411
  }),
413
412
  c("div", Oe, [
414
- t.model ? (V(), k("div", Ee, [
413
+ t.model ? (k(), V("div", Ee, [
415
414
  c("div", {
416
415
  class: "obj-name",
417
416
  title: $.value
@@ -420,25 +419,24 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
420
419
  class: "obj-type",
421
420
  title: p.value
422
421
  }, "[" + C(p.value) + "]", 9, ke)
423
- ])) : (V(), k("div", Ve, "空")),
422
+ ])) : (k(), V("div", Ve, "空")),
424
423
  U(a, {
425
424
  "model-value": d.value,
426
425
  onChange: u
427
426
  }, null, 8, ["model-value"])
428
427
  ]),
429
428
  U(w, null, {
430
- default: F(() => o[7] || (o[7] = [
431
- D("相对位置")
432
- ])),
433
- _: 1,
434
- __: [7]
429
+ default: F(() => [...o[7] || (o[7] = [
430
+ D("相对位置", -1)
431
+ ])]),
432
+ _: 1
435
433
  }),
436
434
  c("div", Te, [
437
435
  c("div", ze, [
438
436
  o[8] || (o[8] = c("span", { class: "axis-label" }, "X", -1)),
439
437
  U(L, {
440
438
  "model-value": r((z = (S = i.value) == null ? void 0 : S.position) == null ? void 0 : z.x),
441
- onChange: o[0] || (o[0] = (R) => g(R, "x")),
439
+ onChange: o[0] || (o[0] = (R) => _(R, "x")),
442
440
  size: "small",
443
441
  class: "coord-input-compact",
444
442
  precision: 3,
@@ -451,7 +449,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
451
449
  o[9] || (o[9] = c("span", { class: "axis-label" }, "Y", -1)),
452
450
  U(L, {
453
451
  "model-value": r((A = (P = i.value) == null ? void 0 : P.position) == null ? void 0 : A.y),
454
- onChange: o[1] || (o[1] = (R) => g(R, "y")),
452
+ onChange: o[1] || (o[1] = (R) => _(R, "y")),
455
453
  size: "small",
456
454
  class: "coord-input-compact",
457
455
  precision: 3,
@@ -464,7 +462,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
464
462
  o[10] || (o[10] = c("span", { class: "axis-label" }, "Z", -1)),
465
463
  U(L, {
466
464
  "model-value": r((B = (I = i.value) == null ? void 0 : I.position) == null ? void 0 : B.z),
467
- onChange: o[2] || (o[2] = (R) => g(R, "z")),
465
+ onChange: o[2] || (o[2] = (R) => _(R, "z")),
468
466
  size: "small",
469
467
  class: "coord-input-compact",
470
468
  precision: 3,
@@ -475,11 +473,10 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
475
473
  ])
476
474
  ]),
477
475
  U(w, null, {
478
- default: F(() => o[11] || (o[11] = [
479
- D("相对旋转")
480
- ])),
481
- _: 1,
482
- __: [11]
476
+ default: F(() => [...o[11] || (o[11] = [
477
+ D("相对旋转", -1)
478
+ ])]),
479
+ _: 1
483
480
  }),
484
481
  c("div", Ie, [
485
482
  c("div", Be, [
@@ -523,11 +520,10 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
523
520
  ])
524
521
  ]),
525
522
  U(w, null, {
526
- default: F(() => o[15] || (o[15] = [
527
- D("世界信息")
528
- ])),
529
- _: 1,
530
- __: [15]
523
+ default: F(() => [...o[15] || (o[15] = [
524
+ D("世界信息", -1)
525
+ ])]),
526
+ _: 1
531
527
  }),
532
528
  c("div", qe, [
533
529
  c("div", Xe, [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ss-component-new",
3
3
  "private": false,
4
- "version": "1.3.615",
4
+ "version": "1.3.617",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",