ss-component-new 1.3.644 → 1.3.646

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 (70) hide show
  1. package/dist/{MTLLoader-CzUQTGKY.js → MTLLoader-CZqN7Zrs.js} +2 -2
  2. package/dist/{URDFLoader-Cpc_aT68.js → URDFLoader-5yxKptss.js} +589 -584
  3. package/dist/{animationData-BgDqzRLe.js → animationData-_pwKquvD.js} +3 -3
  4. package/dist/{array-D8M1X1Ro.js → array-O8Kxp5jI.js} +13 -14
  5. package/dist/{clone-DqQwDoSV.js → clone-BjJ_R9XN.js} +1 -1
  6. package/dist/{eleIcon-Dtsx377t.js → eleIcon-BWVKfp5t.js} +2 -2
  7. package/dist/{iconfont-B4WPRBLy.js → iconfont-DGtoabuW.js} +91 -91
  8. package/dist/{index-BIxhrXtt.js → index--khMgoSl.js} +3 -3
  9. package/dist/{index-BrtXf90v.js → index-8vLuP9mO.js} +23036 -22951
  10. package/dist/{index-CFjNYQu4.js → index-BB_8QEV4.js} +5 -5
  11. package/dist/{index-rlStojTL.js → index-BFqUz4pN.js} +1 -1
  12. package/dist/{index-C9y1HVim.js → index-BU8pWPcl.js} +6 -6
  13. package/dist/{index-BvrZtqVU.js → index-Ba47LLQD.js} +18 -20
  14. package/dist/{index-IXxKIj3h.js → index-BcWf6LmN.js} +4 -4
  15. package/dist/{index-B2i-wZ7I.js → index-BibSA99e.js} +17 -20
  16. package/dist/index-BuRhsuYg.js +11586 -0
  17. package/dist/{index-BI3gwdBk.js → index-Bvvz41NY.js} +1 -1
  18. package/dist/{index-NwTP3AQl.js → index-BwEO2Ckl.js} +7 -7
  19. package/dist/{index-FCnO8UeA.js → index-C6ZyziE9.js} +4 -4
  20. package/dist/{index-DT7MjPj0.js → index-CCHCUfkj.js} +60 -62
  21. package/dist/index-CEBVoJT9.js +2623 -0
  22. package/dist/{index-D8cOzz3g.js → index-CUB0YIQp.js} +5 -5
  23. package/dist/{index-awI81WIz.js → index-CUUkM-MP.js} +43 -47
  24. package/dist/{index-Cnet9-km.js → index-CcdSuqPt.js} +8 -8
  25. package/dist/{index-z5wovvkI.js → index-CdGcTCI1.js} +8 -8
  26. package/dist/{index-CB2B4YM9.js → index-CmGpt__g.js} +3 -3
  27. package/dist/{index-DLZVUgaP.js → index-CwKQTNJ6.js} +2 -2
  28. package/dist/{index-11kpzK0A.js → index-DJrzqi4-.js} +17 -17
  29. package/dist/{index-C_proWoC.js → index-DNlWMJrl.js} +4 -4
  30. package/dist/{index-0Pw9Txsz.js → index-DTocCaLK.js} +167 -176
  31. package/dist/{index-C_c-5ZAh.js → index-DV-y9RNF.js} +57 -61
  32. package/dist/{index-DGmjWChr.js → index-DW6CZC2b.js} +1053 -1051
  33. package/dist/{index-CDpLX430.js → index-D_kI6aHR.js} +7 -8
  34. package/dist/{index-DzZWEErj.js → index-Dae7KcRH.js} +3 -3
  35. package/dist/{index-DpcGBPYo.js → index-DlH7-Quf.js} +3 -3
  36. package/dist/{index-BjSS0ovo.js → index-DwmZbmjQ.js} +74 -80
  37. package/dist/{index-C4OLi6tq.js → index-FPf0BzIG.js} +554 -551
  38. package/dist/{index-fxJSVddL.js → index-JxFaaWxD.js} +1 -1
  39. package/dist/{index-tLd2cEHX.js → index-YVR3acYT.js} +1 -1
  40. package/dist/{index-BHtNKL1L.js → index-dD-mKgue.js} +2 -2
  41. package/dist/{index-DHmpeyMt.js → index-p7BMuuhh.js} +9318 -8866
  42. package/dist/{index-BkAYMm70.js → index-qv_1lhhv.js} +2 -2
  43. 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
  44. package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js} +27760 -27735
  45. package/dist/isString-CoCw_sp3.js +8 -0
  46. package/dist/{localIcon-D5UoFBU5.js → localIcon-CoJHw5ss.js} +1 -1
  47. package/dist/{main-CAAw_Zsf.js → main-B2M0A-TQ.js} +9 -9
  48. package/dist/{menuIndex-2JX7SuB8.js → menuIndex-CY5XD7Ny.js} +1 -1
  49. package/dist/{request-D-LN5bvn.js → request-DiogHwkN.js} +3481 -3062
  50. package/dist/ss-component.css +3 -3
  51. package/dist/ss-component.js +14 -14
  52. package/dist/ss-component2.js +13 -13
  53. package/dist/ss-component3.js +1 -1
  54. package/dist/{threeModel-D7pZcypI.js → threeModel-BpuW7rIv.js} +174 -174
  55. package/dist/{threePreview-Cjupz9HK.js → threePreview-BC0mxp0t.js} +12 -12
  56. package/dist/{threeSceneView-DzpPQCjn.js → threeSceneView-Dk8H_CF6.js} +110 -111
  57. package/dist/{threeSceneViewForCPMPIP-C39zZNzT.js → threeSceneViewForCPMPIP-DSKXueAv.js} +16 -17
  58. package/dist/{threeTrackPathView-DuiNPnon.js → threeTrackPathView-C8RcSYdk.js} +7 -7
  59. package/dist/{threeViewerHost-URHOdtr5.js → threeViewerHost-DQt5_D31.js} +4 -4
  60. package/dist/{urdfTree-CymLIkE8.js → urdfTree-BGPikD3W.js} +9 -9
  61. package/dist/{workpieceTreePanel-DaTdJC9q.js → workpieceTreePanel-DO6BojnM.js} +56 -60
  62. package/package.json +1 -1
  63. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  64. package/dist/index-C9QM6oa1.js +0 -11397
  65. package/dist/index-Dzmh37xZ.js +0 -572
  66. package/dist/isString-CXX7MUiv.js +0 -8
  67. package/dist/obj/model.mtl +0 -42
  68. package/dist/obj/model.obj +0 -26110
  69. package/public/obj/model.mtl +0 -42
  70. package/public/obj/model.obj +0 -26110
@@ -1,15 +1,15 @@
1
- import { defineComponent as ge, ref as r, computed as k, watch as X, onUnmounted as De, resolveComponent as G, createElementBlock as x, openBlock as g, createElementVNode as n, createCommentVNode as U, createVNode as s, toDisplayString as L, Fragment as Be, renderList as Je, withCtx as le, shallowRef as te, onMounted as Me, nextTick as me, onBeforeUnmount as Ee, withDirectives as I, vShow as W, unref as z, renderSlot as ve, createBlock as de } from "vue";
2
- import { s as pe } from "./threeViewerHost-URHOdtr5.js";
3
- import { u as Ge, a as He, b as Ie, T as y, C as We } from "./iconfont-B4WPRBLy.js";
4
- import { U as Xe, u as Ye, a as Ze, W as qe } from "./workpieceTreePanel-DaTdJC9q.js";
5
- import { c as Ke } from "./index-DGmjWChr.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js";
7
- import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
8
- import { g as Qe, b as et, U as tt, J as lt, d as nt } from "./urdfTree-CymLIkE8.js";
9
- import { E as _ } from "./request-D-LN5bvn.js";
1
+ import { defineComponent as ge, ref as r, computed as k, watch as X, onUnmounted as De, resolveComponent as G, openBlock as g, createElementBlock as x, createElementVNode as n, createVNode as s, toDisplayString as L, Fragment as Be, renderList as Je, createCommentVNode as U, withCtx as le, shallowRef as te, onMounted as Me, nextTick as me, onBeforeUnmount as Ee, withDirectives as I, vShow as W, unref as z, renderSlot as ve, createBlock as de } from "vue";
2
+ import { s as pe } from "./threeViewerHost-DQt5_D31.js";
3
+ import { u as Ge, a as He, b as Ie, T as y, C as We } from "./iconfont-DGtoabuW.js";
4
+ import { U as Xe, u as Ye, W as Ze, a as qe } from "./workpieceTreePanel-DO6BojnM.js";
5
+ import { c as Ke } from "./index-DW6CZC2b.js";
6
+ import "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js";
7
+ import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js";
8
+ import { g as Qe, b as et, U as tt, J as lt, d as nt } from "./urdfTree-BGPikD3W.js";
9
+ import { E as _ } from "./request-DiogHwkN.js";
10
10
  import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { i as at } from "./animationData-BgDqzRLe.js";
12
- import { O as ot } from "./MTLLoader-CzUQTGKY.js";
11
+ import { i as at } from "./animationData-_pwKquvD.js";
12
+ import { O as ot } from "./MTLLoader-CZqN7Zrs.js";
13
13
  const st = { class: "panel-content" }, it = {
14
14
  key: 0,
15
15
  class: "animation-controls"
@@ -171,9 +171,9 @@ ${R.value.join(" ")}
171
171
  ])
172
172
  ])
173
173
  ])) : U("", !0),
174
- i.value.length === 0 ? (g(), x("div", dt, l[9] || (l[9] = [
174
+ i.value.length === 0 ? (g(), x("div", dt, [...l[9] || (l[9] = [
175
175
  n("p", null, "请先创建数据", -1)
176
- ]))) : U("", !0),
176
+ ])])) : U("", !0),
177
177
  s(m, {
178
178
  modelValue: T.value,
179
179
  "onUpdate:modelValue": l[4] || (l[4] = (p) => T.value = p),
@@ -203,8 +203,7 @@ ${R.value.join(" ")}
203
203
  placeholder: ne.value
204
204
  }, null, 8, ["modelValue", "placeholder"])
205
205
  ]),
206
- _: 1,
207
- __: [10]
206
+ _: 1
208
207
  }, 8, ["modelValue"])
209
208
  ]);
210
209
  };
@@ -258,7 +257,7 @@ ${R.value.join(" ")}
258
257
  toggleAxesVisibility: l,
259
258
  zoomIn: b,
260
259
  zoomOut: A
261
- } = Ge(c), { loadSceneFromFile: u } = Ze(
260
+ } = Ge(c), { loadSceneFromFile: u } = qe(
262
261
  D,
263
262
  N,
264
263
  h,
@@ -465,7 +464,7 @@ ${R.value.join(" ")}
465
464
  value: z(E),
466
465
  onChange: je
467
466
  }, null, 8, ["value"])) : U("", !0),
468
- v.value === "工件树" ? (g(), de(qe, {
467
+ v.value === "工件树" ? (g(), de(Ze, {
469
468
  key: 2,
470
469
  model: ($ = z(Ce)) == null ? void 0 : $.obj,
471
470
  onVisibleChange: z(Pe),
@@ -1,11 +1,11 @@
1
- import { defineComponent as ce, computed as U, ref as k, resolveComponent as E, createElementBlock as ee, openBlock as X, createElementVNode as d, createVNode as p, withCtx as I, toDisplayString as Y, shallowRef as D, watch as Ee, onMounted as Xe, onBeforeUnmount as Ye, withDirectives as N, createCommentVNode as S, unref as A, renderSlot as ae, createBlock as le, vShow as Z, nextTick as je } from "vue";
2
- import { u as De, a as Ne, b as Ze, T as w, C as Be, f as Ie, d as re } from "./iconfont-B4WPRBLy.js";
3
- import { C as O, h as Oe, b0 as Ge, t as qe, V as te, u as ue, Y as fe, a2 as Ke, w as We, a1 as Je, _ as Re, $ as He, o as Qe, b1 as Se } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js";
4
- import "./index-DGmjWChr.js";
5
- import { U as et, J as tt } from "./urdfTree-CymLIkE8.js";
6
- import { E as B } from "./request-D-LN5bvn.js";
1
+ import { defineComponent as ce, computed as U, ref as k, resolveComponent as E, openBlock as X, createElementBlock as ee, createElementVNode as d, createVNode as p, withCtx as I, toDisplayString as Y, shallowRef as D, watch as Ee, onMounted as Xe, onBeforeUnmount as Ye, unref as A, renderSlot as ae, withDirectives as N, createBlock as le, createCommentVNode as S, vShow as Z, nextTick as je } from "vue";
2
+ import { u as De, a as Ne, b as Ze, T as w, C as Be, f as Ie, d as re } from "./iconfont-DGtoabuW.js";
3
+ import { C as O, h as Oe, b0 as Ge, t as qe, V as te, u as ue, Y as fe, a2 as Ke, w as We, a1 as Je, _ as Re, $ as He, p as Qe, b1 as Se } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js";
4
+ import "./index-DW6CZC2b.js";
5
+ import { U as et, J as tt } from "./urdfTree-BGPikD3W.js";
6
+ import { E as B } from "./request-DiogHwkN.js";
7
7
  import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { i as nt } from "./isString-CXX7MUiv.js";
8
+ import { i as nt } from "./isString-CoCw_sp3.js";
9
9
  function ot(e = 0.5, n = 4) {
10
10
  const o = new Oe(
11
11
  new Ge(e, n, 32),
@@ -1,6 +1,6 @@
1
- import { defineComponent as U, defineAsyncComponent as b, computed as I, ref as R, watch as H, createElementBlock as N, openBlock as T, createElementVNode as K, createBlock as B, createCommentVNode as V, renderSlot as u, unref as m, withCtx as d } from "vue";
2
- import { a0 as W, u as A, p as D, s as $ } from "./index-DGmjWChr.js";
3
- import { g as j, q as M, r as L } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js";
1
+ import { defineComponent as U, defineAsyncComponent as b, computed as I, ref as R, watch as H, openBlock as T, createElementBlock as N, createElementVNode as K, renderSlot as u, unref as m, createBlock as B, withCtx as d, createCommentVNode as V } from "vue";
2
+ import { a0 as W, u as A, p as D, s as $ } from "./index-DW6CZC2b.js";
3
+ import { g as j, q as M, r as L } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js";
4
4
  import { _ as G } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const re = {
6
6
  SINGLE: "单机",
@@ -112,7 +112,7 @@ const Y = { class: "three-platform mv-inline" }, J = { class: "top-menu" }, Q =
112
112
  height: { default: "100%" }
113
113
  },
114
114
  setup(E) {
115
- const O = b(() => import("./threeSceneView-DzpPQCjn.js")), y = b(() => import("./threePreview-Cjupz9HK.js")), i = b(() => import("./threeTrackPathView-DuiNPnon.js")), p = b(() => import("./threeSceneViewForCPMPIP-C39zZNzT.js")), n = E, P = A(D), { platName: f } = $(P), { isUrdf: _, isTrackPathFile: g } = z(), c = I(() => {
115
+ const O = b(() => import("./threeSceneView-Dk8H_CF6.js")), y = b(() => import("./threePreview-BC0mxp0t.js")), i = b(() => import("./threeTrackPathView-C8RcSYdk.js")), p = b(() => import("./threeSceneViewForCPMPIP-DSKXueAv.js")), n = E, P = A(D), { platName: f } = $(P), { isUrdf: _, isTrackPathFile: g } = z(), c = I(() => {
116
116
  var t;
117
117
  return (t = n == null ? void 0 : n.files) == null ? void 0 : t.map((s) => {
118
118
  const { url: e, name: r } = s;
@@ -1,5 +1,5 @@
1
- import { defineComponent as I, ref as F, watch as M, onMounted as C, onUnmounted as E, createElementBlock as m, openBlock as f, Fragment as P, renderList as T, createElementVNode as d, createCommentVNode as U, toDisplayString as h, computed as L, resolveComponent as S, createVNode as A } from "vue";
2
- import { h as V } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js";
1
+ import { defineComponent as I, ref as F, watch as M, onMounted as C, onUnmounted as E, openBlock as m, createElementBlock as f, Fragment as P, renderList as T, createElementVNode as d, toDisplayString as h, createCommentVNode as U, computed as L, resolveComponent as S, createVNode as A } from "vue";
2
+ import { h as V } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js";
3
3
  import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const D = (i, a) => {
5
5
  if (!a)
@@ -109,9 +109,9 @@ const D = (i, a) => {
109
109
  k();
110
110
  }), a({
111
111
  resetAllJoints: g
112
- }), (n, e) => (f(), m("div", R, [
113
- o.value.length > 0 ? (f(), m("div", O, [
114
- (f(!0), m(P, null, T(o.value, (s) => (f(), m("div", {
112
+ }), (n, e) => (m(), f("div", R, [
113
+ o.value.length > 0 ? (m(), f("div", O, [
114
+ (m(!0), f(P, null, T(o.value, (s) => (m(), f("div", {
115
115
  key: s.name,
116
116
  class: "joint-item"
117
117
  }, [
@@ -122,7 +122,7 @@ const D = (i, a) => {
122
122
  ]),
123
123
  d("span", z, h(s.type), 1)
124
124
  ]),
125
- s.type === "revolute" || s.type === "prismatic" || s.type === "continuous" ? (f(), m("div", G, [
125
+ s.type === "revolute" || s.type === "prismatic" || s.type === "continuous" ? (m(), f("div", G, [
126
126
  d("div", H, [
127
127
  d("input", {
128
128
  type: "range",
@@ -140,9 +140,9 @@ const D = (i, a) => {
140
140
  ])
141
141
  ])) : U("", !0)
142
142
  ]))), 128))
143
- ])) : (f(), m("div", Z, e[0] || (e[0] = [
143
+ ])) : (m(), f("div", Z, [...e[0] || (e[0] = [
144
144
  d("p", null, "未检测到可控制的关节", -1)
145
- ])))
145
+ ])]))
146
146
  ]));
147
147
  }
148
148
  }), ce = /* @__PURE__ */ b(j, [["__scopeId", "data-v-b1467983"]]), ee = { class: "panel-content" }, te = "id", se = {
@@ -231,7 +231,7 @@ const D = (i, a) => {
231
231
  { immediate: !0 }
232
232
  ), (e, s) => {
233
233
  const r = S("el-tree");
234
- return f(), m("div", ee, [
234
+ return m(), f("div", ee, [
235
235
  A(r, {
236
236
  data: u.value,
237
237
  props: _,
@@ -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-Cpc_aT68.js";
5
- import { S as ve, M as pe, O as fe } from "./MTLLoader-CzUQTGKY.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-BEPFL4uU.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 { c as Re, e as Ue, g as $e } from "./iconfont-B4WPRBLy.js";
4
+ import { U as me } from "./URDFLoader-5yxKptss.js";
5
+ import { S as ve, M as pe, O as fe } from "./MTLLoader-CZqN7Zrs.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-DdTK-nti.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-DGtoabuW.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.644",
4
+ "version": "1.3.646",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",