ss-component-new 1.3.641 → 1.3.643

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/JSEncrypt-B36c1iN5.js +1983 -0
  2. package/dist/{MTLLoader-CZqN7Zrs.js → MTLLoader-CzUQTGKY.js} +2 -2
  3. package/dist/{URDFLoader-5yxKptss.js → URDFLoader-Cpc_aT68.js} +584 -589
  4. package/dist/{animationData-_pwKquvD.js → animationData-BgDqzRLe.js} +3 -3
  5. package/dist/{array-CHe-DoyQ.js → array-x70XTJSv.js} +14 -13
  6. package/dist/{clone-BjJ_R9XN.js → clone-DqQwDoSV.js} +1 -1
  7. package/dist/{eleIcon-BWVKfp5t.js → eleIcon-Dtsx377t.js} +2 -2
  8. package/dist/{iconfont-DGtoabuW.js → iconfont-B4WPRBLy.js} +91 -91
  9. package/dist/{index-DJrzqi4-.js → index-11kpzK0A.js} +17 -17
  10. package/dist/{index-BEuZVqx1.js → index-B0w8-AEa.js} +9164 -9616
  11. package/dist/{index-BibSA99e.js → index-B2i-wZ7I.js} +20 -17
  12. package/dist/{index-BSIx33n6.js → index-B9g43cVc.js} +62 -60
  13. package/dist/index-BDfs7pV0.js +11397 -0
  14. package/dist/{index-dD-mKgue.js → index-BHtNKL1L.js} +2 -2
  15. package/dist/{index-Bvvz41NY.js → index-BI3gwdBk.js} +1 -1
  16. package/dist/{index-DwmZbmjQ.js → index-BjSS0ovo.js} +80 -74
  17. package/dist/{index-qv_1lhhv.js → index-BkAYMm70.js} +2 -2
  18. package/dist/{index-FPf0BzIG.js → index-C4OLi6tq.js} +551 -554
  19. package/dist/{index-CmGpt__g.js → index-CB2B4YM9.js} +3 -3
  20. package/dist/{index-D_kI6aHR.js → index-CDpLX430.js} +8 -7
  21. package/dist/{index-CmrtXrCW.js → index-CMXhAlkY.js} +8 -8
  22. package/dist/{index-DV-y9RNF.js → index-C_c-5ZAh.js} +61 -57
  23. package/dist/index-Cb5fCewf.js +572 -0
  24. package/dist/{index-CcdSuqPt.js → index-Cnet9-km.js} +8 -8
  25. package/dist/{index-BYTAx6bL.js → index-Czz3dB6u.js} +5 -5
  26. package/dist/{index-CUB0YIQp.js → index-D8cOzz3g.js} +5 -5
  27. package/dist/{index-DW6CZC2b.js → index-DGmjWChr.js} +1051 -1053
  28. package/dist/{index-CwKQTNJ6.js → index-DLZVUgaP.js} +2 -2
  29. package/dist/{index-DW2-bo7z.js → index-DNl2K8-4.js} +176 -167
  30. package/dist/{index-CIFdtwKG.js → index-DaOXFFsu.js} +20 -18
  31. package/dist/{index-CT3n6jZB.js → index-DllVa0Ze.js} +6 -6
  32. package/dist/{index-DlH7-Quf.js → index-DpcGBPYo.js} +3 -3
  33. package/dist/{index-Dae7KcRH.js → index-DzZWEErj.js} +3 -3
  34. package/dist/{index-C6ZyziE9.js → index-FCnO8UeA.js} +4 -4
  35. package/dist/{index-BcWf6LmN.js → index-IXxKIj3h.js} +4 -4
  36. package/dist/{index-B6zWduiC.js → index-LED1qeo2.js} +3 -3
  37. package/dist/{index-BwEO2Ckl.js → index-NwTP3AQl.js} +7 -7
  38. package/dist/{index-rVTDSJ7d.js → index-_fheIMoz.js} +22950 -23035
  39. package/dist/{index-CUUkM-MP.js → index-awI81WIz.js} +47 -43
  40. package/dist/{index-JxFaaWxD.js → index-fxJSVddL.js} +1 -1
  41. package/dist/{index-BFqUz4pN.js → index-rlStojTL.js} +1 -1
  42. package/dist/{index-YVR3acYT.js → index-tLd2cEHX.js} +1 -1
  43. package/dist/{index-DIimK4we.js → index-yJckrmsT.js} +4 -4
  44. package/dist/{index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js → index.vue_vue_type_script_setup_true_lang-DRzriV-s.js} +2 -2
  45. package/dist/{index.vue_vue_type_style_index_0_scoped_39e1db95_lang-DdTK-nti.js → index.vue_vue_type_style_index_0_scoped_39e1db95_lang-BEPFL4uU.js} +27735 -27760
  46. package/dist/isString-CXX7MUiv.js +8 -0
  47. package/dist/{localIcon-CoJHw5ss.js → localIcon-D5UoFBU5.js} +1 -1
  48. package/dist/{main-B7yRqx5R.js → main-nJu2K4N-.js} +9 -9
  49. package/dist/{menuIndex-CY5XD7Ny.js → menuIndex-2JX7SuB8.js} +1 -1
  50. package/dist/obj/model.mtl +42 -0
  51. package/dist/obj/model.obj +26110 -0
  52. package/dist/{request-DiogHwkN.js → request-D-LN5bvn.js} +3075 -3494
  53. package/dist/ss-component.css +3 -3
  54. package/dist/ss-component.js +14 -14
  55. package/dist/ss-component2.js +13 -13
  56. package/dist/ss-component3.js +1 -1
  57. package/dist/{threeModel-D2NPH9rB.js → threeModel-BbNw-rXE.js} +174 -174
  58. package/dist/{threePreview-BC0mxp0t.js → threePreview-Cjupz9HK.js} +12 -12
  59. package/dist/{threeSceneView-CYA_dl9b.js → threeSceneView-4bCcg3w6.js} +111 -110
  60. package/dist/{threeSceneViewForCPMPIP-BeAfVkav.js → threeSceneViewForCPMPIP-D6nwYUWT.js} +17 -16
  61. package/dist/{threeTrackPathView-C8RcSYdk.js → threeTrackPathView-DuiNPnon.js} +7 -7
  62. package/dist/{threeViewerHost-EI6zUnYp.js → threeViewerHost-CsGXf4BF.js} +4 -4
  63. package/dist/{urdfTree-BGPikD3W.js → urdfTree-CymLIkE8.js} +9 -9
  64. package/dist/{workpieceTreePanel-DO6BojnM.js → workpieceTreePanel-DaTdJC9q.js} +60 -56
  65. package/package.json +1 -1
  66. package/public/obj/model.mtl +42 -0
  67. package/public/obj/model.obj +26110 -0
  68. package/dist/index-D23qc_Ne.js +0 -2623
  69. package/dist/index-DT8oA7Bc.js +0 -11550
  70. package/dist/isString-CoCw_sp3.js +0 -8
@@ -1,15 +1,15 @@
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-EI6zUnYp.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";
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-CsGXf4BF.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";
10
10
  import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- import { i as at } from "./animationData-_pwKquvD.js";
12
- import { O as ot } from "./MTLLoader-CZqN7Zrs.js";
11
+ import { i as at } from "./animationData-BgDqzRLe.js";
12
+ import { O as ot } from "./MTLLoader-CzUQTGKY.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,7 +203,8 @@ ${R.value.join(" ")}
203
203
  placeholder: ne.value
204
204
  }, null, 8, ["modelValue", "placeholder"])
205
205
  ]),
206
- _: 1
206
+ _: 1,
207
+ __: [10]
207
208
  }, 8, ["modelValue"])
208
209
  ]);
209
210
  };
@@ -257,7 +258,7 @@ ${R.value.join(" ")}
257
258
  toggleAxesVisibility: l,
258
259
  zoomIn: b,
259
260
  zoomOut: A
260
- } = Ge(c), { loadSceneFromFile: u } = qe(
261
+ } = Ge(c), { loadSceneFromFile: u } = Ze(
261
262
  D,
262
263
  N,
263
264
  h,
@@ -464,7 +465,7 @@ ${R.value.join(" ")}
464
465
  value: z(E),
465
466
  onChange: je
466
467
  }, null, 8, ["value"])) : U("", !0),
467
- v.value === "工件树" ? (g(), de(Ze, {
468
+ v.value === "工件树" ? (g(), de(qe, {
468
469
  key: 2,
469
470
  model: ($ = z(Ce)) == null ? void 0 : $.obj,
470
471
  onVisibleChange: z(Pe),
@@ -1,11 +1,11 @@
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";
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";
7
7
  import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { i as nt } from "./isString-CoCw_sp3.js";
8
+ import { i as nt } from "./isString-CXX7MUiv.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, 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";
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";
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-CYA_dl9b.js")), y = b(() => import("./threePreview-BC0mxp0t.js")), i = b(() => import("./threeTrackPathView-C8RcSYdk.js")), p = b(() => import("./threeSceneViewForCPMPIP-BeAfVkav.js")), n = E, P = A(D), { platName: f } = $(P), { isUrdf: _, isTrackPathFile: g } = z(), c = I(() => {
115
+ const O = b(() => import("./threeSceneView-4bCcg3w6.js")), y = b(() => import("./threePreview-Cjupz9HK.js")), i = b(() => import("./threeTrackPathView-DuiNPnon.js")), p = b(() => import("./threeSceneViewForCPMPIP-D6nwYUWT.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, 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";
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";
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) => (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", {
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", {
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" ? (m(), f("div", G, [
125
+ s.type === "revolute" || s.type === "prismatic" || s.type === "continuous" ? (f(), m("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
- ])) : (m(), f("div", Z, [...e[0] || (e[0] = [
143
+ ])) : (f(), m("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 m(), f("div", ee, [
234
+ return f(), m("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-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";
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";
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 g = i.split("?")[0].split("#")[0], r = g.lastIndexOf(".");
24
- return r >= 0 ? g.slice(r + 1).toLowerCase() : void 0;
23
+ const _ = i.split("?")[0].split("#")[0], r = _.lastIndexOf(".");
24
+ return r >= 0 ? _.slice(r + 1).toLowerCase() : void 0;
25
25
  })();
26
26
  switch (y) {
27
27
  // OBJ+MTL
28
28
  case "obj": {
29
- const g = (() => {
29
+ const _ = (() => {
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 = `${g}${r}.mtl`, _ = (n) => {
39
+ })(), f = `${_}${r}.mtl`, g = (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: g,
54
+ resourcePath: _,
55
55
  onLoad: (n) => {
56
56
  try {
57
57
  n.preload();
58
58
  } catch {
59
59
  }
60
- _(n);
60
+ g(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}。将尝试无材质加载。`), _(void 0);
64
+ console.warn(`[URDF 资源警告] 未找到或加载材质失败: ${f}。将尝试无材质加载。`), g(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 }), _ = new he(r, f);
74
- _.castShadow = !0, _.receiveShadow = !0, v(_);
73
+ const f = new we({ color: 12303291, shininess: 30 }), g = new he(r, f);
74
+ g.castShadow = !0, g.receiveShadow = !0, v(g);
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, g = 0, r = null;
91
+ let y = 0, _ = 0, r = null;
92
92
  const f = new be();
93
93
  f.onStart = (n, u, j) => {
94
- y = j || 0, g = u || 0, s.value = y > 0 ? `开始下载资源: 0 / ${y}` : "开始下载资源...", t.value = !0;
94
+ y = j || 0, _ = u || 0, s.value = y > 0 ? `开始下载资源: 0 / ${y}` : "开始下载资源...", t.value = !0;
95
95
  }, f.onProgress = (n, u, j) => {
96
- g = u, y = j;
96
+ _ = 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 ge().setFromObject(r);
101
+ const p = new _e().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 _ = (n, u, j) => {
114
+ const g = (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 = `正在下载第 ${g + 1} / ${y} 个文件: ${p}`;
117
+ j && j > 0 ? p = `${$}(${E(u)} / ${E(j)})` : u && u > 0 ? p = `${$}(已下载 ${E(u)})` : p = `${$}`, s.value = `正在下载第 ${_ + 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: _
124
+ onFileProgress: g
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 _e(), v = new je(), y = /* @__PURE__ */ new Map();
143
- function g() {
142
+ const i = T(null), h = new ge(), v = new je(), y = /* @__PURE__ */ new Map();
143
+ function _() {
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 _() {
179
+ function g() {
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, g(), b.value && b.value.addEventListener("click", f, !1);
184
+ m = d, _(), 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: _,
201
+ dispose: g,
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, 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();
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();
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
- }, g = (e, o) => {
356
+ }, _ = (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" ? 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) => {
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) => {
368
368
  s("updatePosition", {
369
369
  obj: t.model,
370
370
  axis: o,
@@ -402,15 +402,16 @@ 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 k(), V("div", Je, [
405
+ return V(), k("div", Je, [
406
406
  U(w, null, {
407
- default: F(() => [...o[6] || (o[6] = [
408
- D("对象", -1)
409
- ])]),
410
- _: 1
407
+ default: F(() => o[6] || (o[6] = [
408
+ D("对象")
409
+ ])),
410
+ _: 1,
411
+ __: [6]
411
412
  }),
412
413
  c("div", Oe, [
413
- t.model ? (k(), V("div", Ee, [
414
+ t.model ? (V(), k("div", Ee, [
414
415
  c("div", {
415
416
  class: "obj-name",
416
417
  title: $.value
@@ -419,24 +420,25 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
419
420
  class: "obj-type",
420
421
  title: p.value
421
422
  }, "[" + C(p.value) + "]", 9, ke)
422
- ])) : (k(), V("div", Ve, "空")),
423
+ ])) : (V(), k("div", Ve, "空")),
423
424
  U(a, {
424
425
  "model-value": d.value,
425
426
  onChange: u
426
427
  }, null, 8, ["model-value"])
427
428
  ]),
428
429
  U(w, null, {
429
- default: F(() => [...o[7] || (o[7] = [
430
- D("相对位置", -1)
431
- ])]),
432
- _: 1
430
+ default: F(() => o[7] || (o[7] = [
431
+ D("相对位置")
432
+ ])),
433
+ _: 1,
434
+ __: [7]
433
435
  }),
434
436
  c("div", Te, [
435
437
  c("div", ze, [
436
438
  o[8] || (o[8] = c("span", { class: "axis-label" }, "X", -1)),
437
439
  U(L, {
438
440
  "model-value": r((z = (S = i.value) == null ? void 0 : S.position) == null ? void 0 : z.x),
439
- onChange: o[0] || (o[0] = (R) => _(R, "x")),
441
+ onChange: o[0] || (o[0] = (R) => g(R, "x")),
440
442
  size: "small",
441
443
  class: "coord-input-compact",
442
444
  precision: 3,
@@ -449,7 +451,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
449
451
  o[9] || (o[9] = c("span", { class: "axis-label" }, "Y", -1)),
450
452
  U(L, {
451
453
  "model-value": r((A = (P = i.value) == null ? void 0 : P.position) == null ? void 0 : A.y),
452
- onChange: o[1] || (o[1] = (R) => _(R, "y")),
454
+ onChange: o[1] || (o[1] = (R) => g(R, "y")),
453
455
  size: "small",
454
456
  class: "coord-input-compact",
455
457
  precision: 3,
@@ -462,7 +464,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
462
464
  o[10] || (o[10] = c("span", { class: "axis-label" }, "Z", -1)),
463
465
  U(L, {
464
466
  "model-value": r((B = (I = i.value) == null ? void 0 : I.position) == null ? void 0 : B.z),
465
- onChange: o[2] || (o[2] = (R) => _(R, "z")),
467
+ onChange: o[2] || (o[2] = (R) => g(R, "z")),
466
468
  size: "small",
467
469
  class: "coord-input-compact",
468
470
  precision: 3,
@@ -473,10 +475,11 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
473
475
  ])
474
476
  ]),
475
477
  U(w, null, {
476
- default: F(() => [...o[11] || (o[11] = [
477
- D("相对旋转", -1)
478
- ])]),
479
- _: 1
478
+ default: F(() => o[11] || (o[11] = [
479
+ D("相对旋转")
480
+ ])),
481
+ _: 1,
482
+ __: [11]
480
483
  }),
481
484
  c("div", Ie, [
482
485
  c("div", Be, [
@@ -520,10 +523,11 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
520
523
  ])
521
524
  ]),
522
525
  U(w, null, {
523
- default: F(() => [...o[15] || (o[15] = [
524
- D("世界信息", -1)
525
- ])]),
526
- _: 1
526
+ default: F(() => o[15] || (o[15] = [
527
+ D("世界信息")
528
+ ])),
529
+ _: 1,
530
+ __: [15]
527
531
  }),
528
532
  c("div", qe, [
529
533
  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.641",
4
+ "version": "1.3.643",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -0,0 +1,42 @@
1
+ # CAD Exchanger 3.24.0 (cadexchanger.com)
2
+ # Material Count: 5
3
+
4
+ newmtl Material_1
5
+ Ns 0.000000
6
+ Ka 0.200000 0.200000 0.200000
7
+ Kd 0.666667 0.666667 0.666667
8
+ Ks 0.000000 0.000000 0.000000
9
+ Ke 0.000000 0.000000 0.000000
10
+ d 1.000000
11
+
12
+ newmtl Material_2
13
+ Ns 0.000000
14
+ Ka 0.200000 0.200000 0.200000
15
+ Kd 0.133333 0.133333 0.133333
16
+ Ks 0.000000 0.000000 0.000000
17
+ Ke 0.000000 0.000000 0.000000
18
+ d 1.000000
19
+
20
+ newmtl Material_3
21
+ Ns 0.000000
22
+ Ka 0.200000 0.200000 0.200000
23
+ Kd 0.733333 0.733333 0.733333
24
+ Ks 0.000000 0.000000 0.000000
25
+ Ke 0.000000 0.000000 0.000000
26
+ d 1.000000
27
+
28
+ newmtl Material_5
29
+ Ns 0.000000
30
+ Ka 0.200000 0.200000 0.200000
31
+ Kd 0.396078 0.941176 0.450980
32
+ Ks 0.000000 0.000000 0.000000
33
+ Ke 0.000000 0.000000 0.000000
34
+ d 1.000000
35
+
36
+ newmtl Material_4
37
+ Ns 0.000000
38
+ Ka 0.200000 0.200000 0.200000
39
+ Kd 1.000000 1.000000 0.000000
40
+ Ks 0.000000 0.000000 0.000000
41
+ Ke 0.000000 0.000000 0.000000
42
+ d 1.000000