ss-component-new 1.3.813 → 1.3.814

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 (34) hide show
  1. package/dist/{MTLLoader-Cw11TWAL.js → MTLLoader-Cr05Jq1r.js} +1 -1
  2. package/dist/{URDFLoader-DUzCZjnV.js → URDFLoader-BPUcMfaA.js} +2 -2
  3. package/dist/{animationData-DwQetFQD.js → animationData-BtDIT0yo.js} +11 -11
  4. package/dist/{array-COidmpRY.js → array-DedLKtnj.js} +178 -178
  5. package/dist/{iconfont-Ij2RVNFj.js → iconfont-CHWuGARa.js} +1 -1
  6. package/dist/{index-KEw10uzh.js → index-4yKtNvgp.js} +1 -1
  7. package/dist/{index-dh1Gi7jC.js → index-BbSOlGJX.js} +1 -1
  8. package/dist/{index-CcBUPD0v.js → index-BpSEfABH.js} +3 -3
  9. package/dist/{index-Cv6rlCAH.js → index-BsScSvsX.js} +19933 -19792
  10. package/dist/{index-CCZspl83.js → index-CfXO0Pxj.js} +1 -1
  11. package/dist/{index-DqizREJ2.js → index-ClGtFB-m.js} +1 -1
  12. package/dist/{index-CXY_sgN_.js → index-CyW60_5F.js} +4 -4
  13. package/dist/{index-D8-0gsl7.js → index-D5DqBgT9.js} +4 -4
  14. package/dist/{index-Dsce3BX1.js → index-D8oTYZFq.js} +3 -3
  15. package/dist/{index-B4kaaRbF.js → index-DEhKdMQM.js} +1567 -1563
  16. package/dist/{index-Cd11-eam.js → index-DF8T6mYj.js} +7191 -7184
  17. package/dist/{index-DQryAYzQ.js → index-Uu1cC9bk.js} +1 -1
  18. package/dist/{index-CaLfl7ix.js → index-aA0s_3Sc.js} +1 -1
  19. package/dist/{index-ZhT8hVC2.js → index-eCFjxwNX.js} +1 -1
  20. package/dist/{index-B7P0-Odj.js → index-mXVDZfeY.js} +2 -2
  21. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DFJL-r6K.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js} +30 -30
  22. package/dist/{main-fNwMqnvv.js → main-DKqsz6KW.js} +2 -2
  23. package/dist/ss-component.css +2 -2
  24. package/dist/ss-component.js +8 -8
  25. package/dist/ss-component2.js +8 -8
  26. package/dist/{threeModel-BeCT-wuA.js → threeModel-COjNAXHI.js} +49 -49
  27. package/dist/{threePreview-BnPPysvl.js → threePreview-DbCREqix.js} +1258 -1103
  28. package/dist/{threeSceneView-C_KAY9V1.js → threeSceneView-Bvx19y--.js} +71 -69
  29. package/dist/{threeSceneViewForCPMPIP-uac2fzAK.js → threeSceneViewForCPMPIP-DCKUI5B9.js} +7 -7
  30. package/dist/{threeTrackPathView-Ugj5_KnE.js → threeTrackPathView-Bj3hHKs6.js} +84 -84
  31. package/dist/{threeViewerHost-Dv0JTTnu.js → threeViewerHost-Orcumk6X.js} +2 -2
  32. package/dist/{urdfTree-CLtWTrD6.js → urdfTree-DvLm61lR.js} +1 -1
  33. package/dist/{workpieceTreePanel-Ch75Cqlr.js → workpieceTreePanel-cpqQoDnb.js} +12 -12
  34. package/package.json +1 -1
@@ -1,8 +1,8 @@
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 ie, 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-Ij2RVNFj.js";
3
- import { C as O, h as Oe, ba 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, bb as Se } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DFJL-r6K.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-CHWuGARa.js";
3
+ import { C as O, h as Oe, bb 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, bc as Se } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js";
4
4
  import "./index-DkDX7FWy.js";
5
- import { U as et, J as tt } from "./urdfTree-CLtWTrD6.js";
5
+ import { U as et, J as tt } from "./urdfTree-DvLm61lR.js";
6
6
  import { E as B } from "./request-DzUsnuWu.js";
7
7
  import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  import { i as nt } from "./isString-DnHHBaRc.js";
@@ -16,19 +16,19 @@ function ot(e = 0.5, n = 4) {
16
16
  // ↓ 降金属
17
17
  roughness: 0.6
18
18
  })
19
- ), a = o.geometry.parameters.height;
20
- return o.geometry.translate(0, -a / 2, 0), o.rotation.set(-90, 0, 0, "XYZ"), o;
19
+ ), i = o.geometry.parameters.height;
20
+ return o.geometry.translate(0, -i / 2, 0), o.rotation.set(-90, 0, 0, "XYZ"), o;
21
21
  }
22
22
  function st(e, n) {
23
23
  e.position.copy(n);
24
24
  }
25
- function at(e, n, o = new O(16711680)) {
26
- const a = new te();
27
- n.getWorldPosition(a);
25
+ function it(e, n, o = new O(16711680)) {
26
+ const i = new te();
27
+ n.getWorldPosition(i);
28
28
  const l = e.geometry.attributes.position, t = e.geometry.attributes.color, s = new O(55551);
29
29
  let r = 1 / 0, f = -1;
30
30
  for (let c = 0; c < l.count; c++) {
31
- const v = new te().fromBufferAttribute(l, c).distanceTo(a);
31
+ const v = new te().fromBufferAttribute(l, c).distanceTo(i);
32
32
  v < r && (r = v, f = c);
33
33
  }
34
34
  for (let c = 0; c < t.count; c++) s.toArray(t.array, c * 3);
@@ -39,10 +39,10 @@ function at(e, n, o = new O(16711680)) {
39
39
  }
40
40
  t.needsUpdate = !0;
41
41
  }
42
- function de(e, n, o, a = new O(16711680)) {
43
- st(e, n), at(o, e, a);
42
+ function de(e, n, o, i = new O(16711680)) {
43
+ st(e, n), it(o, e, i);
44
44
  }
45
- const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt = { class: "control-row" }, ct = { class: "control-row" }, ut = { class: "frame-info" }, ft = { class: "control-row" }, vt = /* @__PURE__ */ ce({
45
+ const at = { class: "panel-content" }, lt = { class: "animation-controls" }, rt = { class: "control-row" }, ct = { class: "control-row" }, ut = { class: "frame-info" }, ft = { class: "control-row" }, vt = /* @__PURE__ */ ce({
46
46
  __name: "trackAnimationPanel",
47
47
  props: {
48
48
  cloud: {},
@@ -51,7 +51,7 @@ const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt
51
51
  },
52
52
  emits: ["getThreeData"],
53
53
  setup(e, { expose: n, emit: o }) {
54
- const a = e, l = U(() => a.vectors), t = k(!1), s = k(0), r = k(100);
54
+ const i = e, l = U(() => i.vectors), t = k(!1), s = k(0), r = k(100);
55
55
  let f = !1;
56
56
  const c = (g) => `第 ${g + 1} 帧`, m = (g) => {
57
57
  if (g < 0 || g >= l.value.length) {
@@ -59,7 +59,7 @@ const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt
59
59
  return;
60
60
  }
61
61
  const y = l.value[g];
62
- s.value = g, de(a.knife, y, a.cloud);
62
+ s.value = g, de(i.knife, y, i.cloud);
63
63
  }, v = async () => {
64
64
  if (l.value.length === 0) {
65
65
  B.error("无法播放动画:无数据");
@@ -92,7 +92,7 @@ const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt
92
92
  await C(), h();
93
93
  } }), (g, y) => {
94
94
  const q = E("el-input-number"), K = E("el-form-item"), W = E("el-form"), J = E("el-slider");
95
- return X(), ee("div", it, [
95
+ return X(), ee("div", at, [
96
96
  d("div", lt, [
97
97
  d("div", rt, [
98
98
  p(W, {
@@ -146,8 +146,8 @@ const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt
146
146
  function mt(e) {
147
147
  const n = [];
148
148
  return e.forEach((o) => {
149
- const [a, l, t] = o.trim().split(/\s+/);
150
- n.push(+a, +l, +t);
149
+ const [i, l, t] = o.trim().split(/\s+/);
150
+ n.push(+i, +l, +t);
151
151
  }), n;
152
152
  }
153
153
  function G(e, n, o) {
@@ -165,12 +165,12 @@ function G(e, n, o) {
165
165
  }
166
166
  function pt(e) {
167
167
  const n = [], o = ["X", "Y", "Z"];
168
- return e.forEach((a) => {
168
+ return e.forEach((i) => {
169
169
  const l = {
170
170
  x: 0,
171
171
  y: 0,
172
172
  z: 0
173
- }, t = a.trim();
173
+ }, t = i.trim();
174
174
  if (!t)
175
175
  return;
176
176
  let s = null, r = "";
@@ -191,9 +191,9 @@ const ht = (e) => e == null ? void 0 : e.filter((o) => o.includes("=")), gt = (e
191
191
  };
192
192
  function wt(e) {
193
193
  const n = Ct(e), o = [];
194
- return n.forEach((a) => {
194
+ return n.forEach((i) => {
195
195
  var v, C, P, _, T, h;
196
- let [l, t, s, r] = a.trim().split(/\s+/);
196
+ let [l, t, s, r] = i.trim().split(/\s+/);
197
197
  t = (v = t == null ? void 0 : t.trim) == null ? void 0 : v.call(t), s = (C = s == null ? void 0 : s.trim) == null ? void 0 : C.call(s), r = (P = r == null ? void 0 : r.trim) == null ? void 0 : P.call(r);
198
198
  const [, f] = (_ = t == null ? void 0 : t.split) == null ? void 0 : _.call(t, "="), [, c] = (T = s == null ? void 0 : s.split) == null ? void 0 : T.call(s, "="), [, m] = (h = r == null ? void 0 : r.split) == null ? void 0 : h.call(r, "=");
199
199
  o.push(+f, +c, +m);
@@ -205,12 +205,12 @@ function Tt(e) {
205
205
  }
206
206
  function zt(e) {
207
207
  const n = [], o = /* @__PURE__ */ new Set(["X", "Y", "Z"]);
208
- return e.forEach((a) => {
208
+ return e.forEach((i) => {
209
209
  const l = {
210
210
  x: 0,
211
211
  y: 0,
212
212
  z: 0
213
- }, t = a.trim();
213
+ }, t = i.trim();
214
214
  if (!t)
215
215
  return;
216
216
  let s = null, r = "";
@@ -236,16 +236,16 @@ async function Pt(e) {
236
236
  const n = (l = e == null ? void 0 : e.trim()) == null ? void 0 : l.split(/\r?\n/);
237
237
  if (At(e))
238
238
  return wt(n);
239
- const o = n == null ? void 0 : n[0], a = (t = o == null ? void 0 : o.trim()) == null ? void 0 : t.split(/\s+/);
240
- if ((a == null ? void 0 : a.length) >= 3)
239
+ const o = n == null ? void 0 : n[0], i = (t = o == null ? void 0 : o.trim()) == null ? void 0 : t.split(/\s+/);
240
+ if ((i == null ? void 0 : i.length) >= 3)
241
241
  return mt(n);
242
- if ((a == null ? void 0 : a.length) === 1)
242
+ if ((i == null ? void 0 : i.length) === 1)
243
243
  return pt(n);
244
244
  }
245
245
  async function xt(e) {
246
246
  const n = e.trim().split(/\r?\n/), o = [];
247
- return n.forEach((a) => {
248
- const l = a.trim().split(/\s+/);
247
+ return n.forEach((i) => {
248
+ const l = i.trim().split(/\s+/);
249
249
  if (l.length != 3)
250
250
  return;
251
251
  const [t, s, r] = l;
@@ -254,8 +254,8 @@ async function xt(e) {
254
254
  }
255
255
  async function Ft(e) {
256
256
  const n = e.trim().split(/\r?\n/), o = [];
257
- return n.forEach((a) => {
258
- const l = a.trim().split(/\s+/);
257
+ return n.forEach((i) => {
258
+ const l = i.trim().split(/\s+/);
259
259
  if (l.length != 3)
260
260
  return;
261
261
  const [t, s, r] = l;
@@ -264,14 +264,14 @@ async function Ft(e) {
264
264
  }
265
265
  async function Mt(e) {
266
266
  let n = e.trim().split(/\r?\n/);
267
- return n = n.filter((a) => {
268
- const l = a.startsWith("X") || a.startsWith("Y") || a.startsWith("Z"), t = a.startsWith("G") && (a.includes("X") || a.includes("Y") || a.includes("Z")), s = a.startsWith("N") && (a.includes("X") || a.includes("Y") || a.includes("Z"));
267
+ return n = n.filter((i) => {
268
+ const l = i.startsWith("X") || i.startsWith("Y") || i.startsWith("Z"), t = i.startsWith("G") && (i.includes("X") || i.includes("Y") || i.includes("Z")), s = i.startsWith("N") && (i.includes("X") || i.includes("Y") || i.includes("Z"));
269
269
  return l || t || s;
270
270
  }), zt(n);
271
271
  }
272
272
  async function Ut(e, n) {
273
- const { isCyd: o, isUv: a, isCpt: l, isNc: t } = n;
274
- return a ? Pt(e) : o ? Ft(e) : l ? xt(e) : t ? Mt(e) : [];
273
+ const { isCyd: o, isUv: i, isCpt: l, isNc: t } = n;
274
+ return i ? Pt(e) : o ? Ft(e) : l ? xt(e) : t ? Mt(e) : [];
275
275
  }
276
276
  function Lt(e) {
277
277
  const n = [];
@@ -291,19 +291,19 @@ function $t(e) {
291
291
  function Vt(e, n) {
292
292
  if (!n || n.length < 3)
293
293
  return;
294
- const { scene: o, camera: a, renderer: l, controls: t } = e();
295
- if (!o || !a || !l || !t)
294
+ const { scene: o, camera: i, renderer: l, controls: t } = e();
295
+ if (!o || !i || !l || !t)
296
296
  return;
297
297
  const s = $t(n);
298
298
  return s.name = "轨迹路径", o.add(s), s;
299
299
  }
300
- function Et(e, n, o, a = 4, l = 50) {
300
+ function Et(e, n, o, i = 4, l = 50) {
301
301
  let t = 1 / 0, s = -1 / 0, r = 1 / 0, f = -1 / 0, c = 1 / 0, m = -1 / 0;
302
302
  for (let h = 0; h < e.length; h += 3) {
303
303
  const L = e[h], g = e[h + 1], y = e[h + 2];
304
304
  t = Math.min(t, L), s = Math.max(s, L), r = Math.min(r, g), f = Math.max(f, g), c = Math.min(c, y), m = Math.max(m, y);
305
305
  }
306
- const C = Math.sqrt((s - t) ** 2 + (f - r) ** 2 + (m - c) ** 2) * 0.05, P = Qe.degToRad(n.fov), _ = 2 * Math.tan(P / 2) * l, T = C / _ * o.domElement.height * (a / 4);
306
+ const C = Math.sqrt((s - t) ** 2 + (f - r) ** 2 + (m - c) ** 2) * 0.05, P = Qe.degToRad(n.fov), _ = 2 * Math.tan(P / 2) * l, T = C / _ * o.domElement.height * (i / 4);
307
307
  return Math.min(0.4, T);
308
308
  }
309
309
  function Xt(e) {
@@ -315,25 +315,25 @@ function Xt(e) {
315
315
  for (let t = 0; t < e.length; t += 3)
316
316
  o[t] = 0, o[t + 1] = 0.847, o[t + 2] = 1;
317
317
  n.setAttribute("color", new Je(o, 3));
318
- const a = new Re({
318
+ const i = new Re({
319
319
  vertexColors: !0,
320
320
  size: 0.4,
321
321
  // 像素世界单位
322
322
  sizeAttenuation: !0
323
- }), l = new He(n, a);
324
- return a.needsUpdate = !0, l;
323
+ }), l = new He(n, i);
324
+ return i.needsUpdate = !0, l;
325
325
  }
326
326
  function Yt(e, n) {
327
327
  if (!n)
328
328
  return;
329
- const { scene: o, camera: a, renderer: l, controls: t } = e();
330
- if (!o || !a || !l || !t)
329
+ const { scene: o, camera: i, renderer: l, controls: t } = e();
330
+ if (!o || !i || !l || !t)
331
331
  return;
332
332
  const s = Xt(n);
333
333
  if (!s)
334
334
  return;
335
335
  s.name = "轨迹路径", o.add(s);
336
- const r = Et(n, a, l, 0.1, 50);
336
+ const r = Et(n, i, l, 0.1, 50);
337
337
  return s.material.size = r, s;
338
338
  }
339
339
  const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft" }, Nt = { class: "buttonGroup-left" }, Zt = { class: "buttonGroup-right" }, Bt = { class: "buttonGroup-bottom" }, It = { class: "left-panel" }, Ot = { class: "panel-header" }, Gt = { class: "panel-body" }, qt = { class: "right-panel" }, Kt = { class: "panel-header" }, Wt = { class: "panel-body" }, Jt = {
@@ -347,7 +347,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
347
347
  trackFileType: {}
348
348
  },
349
349
  setup(e) {
350
- const n = e, o = k(null), a = k(!1), l = k(""), t = k(), s = k(!1), r = k(""), f = k(!1), c = k(""), m = D(null), v = D(null), {
350
+ const n = e, o = k(null), i = k(!1), l = k(""), t = k(), s = k(!1), r = k(""), f = k(!1), c = k(""), m = D(null), v = D(null), {
351
351
  currentModels: C,
352
352
  resetView: P,
353
353
  initThreeJS: _,
@@ -362,12 +362,12 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
362
362
  zoomOut: J
363
363
  } = De(o), { isAnimating: M, toggleAnimation: me, startAnimation: Ht, stopAnimation: pe } = Ne(h, C), { isClipping: he, activeClippingAxis: ne, toggleClipping: ge, updateClippingPlanes: ye } = Ze(h, C), Ce = () => {
364
364
  K();
365
- }, we = (i) => {
366
- ne.value = i, ye();
367
- }, R = (i) => {
368
- s.value = !0, r.value = i, i === "剖面视图" && !he.value && ge();
369
- }, H = (i) => {
370
- f.value = !0, c.value = i;
365
+ }, we = (a) => {
366
+ ne.value = a, ye();
367
+ }, R = (a) => {
368
+ s.value = !0, r.value = a, a === "剖面视图" && !he.value && ge();
369
+ }, H = (a) => {
370
+ f.value = !0, c.value = a;
371
371
  }, Q = k([]), $ = k([]), ke = U(() => {
372
372
  var u;
373
373
  return (u = n.trackFileType) == null ? void 0 : u.isUv;
@@ -381,58 +381,58 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
381
381
  var u;
382
382
  return (u = n.trackFileType) == null ? void 0 : u.isNc;
383
383
  }), oe = U(() => {
384
- const i = n.fileBlobs || [];
385
- return i == null ? void 0 : i[0];
384
+ const a = n.fileBlobs || [];
385
+ return a == null ? void 0 : a[0];
386
386
  });
387
387
  let b = D(), F = D();
388
388
  const Te = () => {
389
- const { scene: i } = h();
390
- b.value && i && (re(b.value, i), b.value = null);
389
+ const { scene: a } = h();
390
+ b.value && a && (re(b.value, a), b.value = null);
391
391
  }, ze = () => {
392
- const { scene: i } = h();
393
- F.value && i && (re(F.value, i), F.value = null);
392
+ const { scene: a } = h();
393
+ F.value && a && (re(F.value, a), F.value = null);
394
394
  }, se = () => {
395
395
  Te(), ze();
396
- }, Ae = async (i) => {
397
- const u = URL.createObjectURL(i), V = await Se(u);
396
+ }, Ae = async (a) => {
397
+ const u = URL.createObjectURL(a), V = await Se(u);
398
398
  if (URL.revokeObjectURL(u), nt(V)) {
399
399
  Q.value = await Ut(V, n.trackFileType) || [];
400
400
  const z = Q.value;
401
401
  ke.value && (b.value = Vt(h, z)), (be.value || _e.value || x.value) && (b.value = Yt(h, z));
402
402
  }
403
403
  }, Pe = async () => {
404
- var i, u;
405
- F.value = ot(), $.value = Lt(Q.value), $.value && $.value.length && (de(F.value, $.value[0], b.value, new O(16711680)), (u = (i = v.value) == null ? void 0 : i.add) == null || u.call(i, F.value));
406
- }, ae = async (i) => {
407
- se(), await Ae(i), b.value && Ie(h, b.value), x.value && Pe();
404
+ var a, u;
405
+ F.value = ot(), $.value = Lt(Q.value), $.value && $.value.length && (de(F.value, $.value[0], b.value, new O(16711680)), (u = (a = v.value) == null ? void 0 : a.add) == null || u.call(a, F.value));
406
+ }, ie = async (a) => {
407
+ se(), await Ae(a), b.value && Ie(h, b.value), x.value && Pe();
408
408
  };
409
- Ee(() => oe.value, async (i) => {
410
- i && await ae(i);
409
+ Ee(() => oe.value, async (a) => {
410
+ a && await ie(a);
411
411
  }, {
412
412
  immediate: !0,
413
413
  deep: !0
414
414
  });
415
415
  const xe = async () => {
416
- var i;
417
- await ((i = t == null ? void 0 : t.value) == null ? void 0 : i.reset()), await ae(oe.value);
416
+ var a;
417
+ await ((a = t == null ? void 0 : t.value) == null ? void 0 : a.reset()), await ie(oe.value);
418
418
  }, Fe = () => {
419
- var i;
420
- x.value && ((i = t == null ? void 0 : t.value) == null || i.playAnimation());
419
+ var a;
420
+ x.value && ((a = t == null ? void 0 : t.value) == null || a.playAnimation());
421
421
  }, Me = () => {
422
- var i;
423
- x.value && ((i = t == null ? void 0 : t.value) == null || i.stopAnimation());
422
+ var a;
423
+ x.value && ((a = t == null ? void 0 : t.value) == null || a.stopAnimation());
424
424
  }, Ue = () => {
425
- var i;
426
- x.value && ((i = t == null ? void 0 : t.value) == null || i.forwardFrame());
425
+ var a;
426
+ x.value && ((a = t == null ? void 0 : t.value) == null || a.forwardFrame());
427
427
  }, Le = () => {
428
- var i;
429
- x.value && ((i = t == null ? void 0 : t.value) == null || i.backwardFrame());
428
+ var a;
429
+ x.value && ((a = t == null ? void 0 : t.value) == null || a.backwardFrame());
430
430
  }, $e = () => {
431
431
  _(), je(() => {
432
432
  o.value && (j = new ResizeObserver(T), j.observe(o.value));
433
433
  });
434
- const i = h();
435
- v.value = i.scene, v.value && (v.value.name = "CPMPIP");
434
+ const a = h();
435
+ v.value = a.scene, v.value && (v.value.name = "CPMPIP");
436
436
  }, Ve = () => {
437
437
  j && j.disconnect(), M.value && pe(), se(), L();
438
438
  };
@@ -440,12 +440,12 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
440
440
  return Xe(async () => {
441
441
  try {
442
442
  $e();
443
- } catch (i) {
444
- console.error("Three.js 初始化失败:", i), B.error("渲染引擎初始化失败!");
443
+ } catch (a) {
444
+ console.error("Three.js 初始化失败:", a), B.error("渲染引擎初始化失败!");
445
445
  }
446
446
  }), Ye(() => {
447
447
  Ve();
448
- }), (i, u) => {
448
+ }), (a, u) => {
449
449
  const V = E("el-scrollbar");
450
450
  return X(), ee("div", jt, [
451
451
  d("div", {
@@ -487,7 +487,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
487
487
  }, null, 8, ["active"])
488
488
  ]),
489
489
  d("div", Nt, [
490
- ie(i.$slots, "button-left", { switchRightPanel: R }, void 0, !0),
490
+ ae(a.$slots, "button-left", { switchRightPanel: R }, void 0, !0),
491
491
  p(w, {
492
492
  name: "jiegoushu",
493
493
  size: "24",
@@ -504,7 +504,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
504
504
  }, null, 8, ["active"])
505
505
  ]),
506
506
  d("div", Zt, [
507
- ie(i.$slots, "button-right", { switchRightPanel: H }, void 0, !0),
507
+ ae(a.$slots, "button-right", { switchRightPanel: H }, void 0, !0),
508
508
  p(w, {
509
509
  name: "guanjiekongzhi",
510
510
  size: "24",
@@ -607,7 +607,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
607
607
  ], 512), [
608
608
  [Z, f.value]
609
609
  ]),
610
- a.value ? (X(), ee("div", Jt, [
610
+ i.value ? (X(), ee("div", Jt, [
611
611
  u[6] || (u[6] = d("div", { class: "loading-spinner" }, null, -1)),
612
612
  d("p", null, Y(l.value), 1)
613
613
  ])) : S("", !0)
@@ -1,6 +1,6 @@
1
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
2
  import { a0 as W, u as A, p as D, s as $ } from "./index-DkDX7FWy.js";
3
- import { g as j, q as M, r as L } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DFJL-r6K.js";
3
+ import { g as j, q as M, r as L } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.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-C_KAY9V1.js")), y = b(() => import("./threePreview-BnPPysvl.js")), i = b(() => import("./threeTrackPathView-Ugj5_KnE.js")), p = b(() => import("./threeSceneViewForCPMPIP-uac2fzAK.js")), n = E, P = A(D), { platName: f } = $(P), { isUrdf: _, isTrackPathFile: g } = z(), c = I(() => {
115
+ const O = b(() => import("./threeSceneView-Bvx19y--.js")), y = b(() => import("./threePreview-DbCREqix.js")), i = b(() => import("./threeTrackPathView-Bj3hHKs6.js")), p = b(() => import("./threeSceneViewForCPMPIP-DCKUI5B9.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
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_05e3a1d8_lang-DFJL-r6K.js";
2
+ import { h as V } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js";
3
3
  import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const D = (i, a) => {
5
5
  if (!a)
@@ -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-DUzCZjnV.js";
5
- import { S as ve, M as pe, O as fe } from "./MTLLoader-Cw11TWAL.js";
6
- import { bc as be, bd as re, s as O, k as we, h as he, be as E, B as _e, aZ as ge, am as je, V as ye } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DFJL-r6K.js";
4
+ import { U as me } from "./URDFLoader-BPUcMfaA.js";
5
+ import { S as ve, M as pe, O as fe } from "./MTLLoader-Cr05Jq1r.js";
6
+ import { bd as be, be as re, s as O, k as we, h as he, bf as E, B as _e, a_ as ge, am as je, V as ye } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-D8tI8Ecr.js";
7
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-Ij2RVNFj.js";
8
+ import { c as Re, e as Ue, g as $e } from "./iconfont-CHWuGARa.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) {
@@ -307,7 +307,7 @@ class vt {
307
307
  const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
308
308
  key: 0,
309
309
  class: "obj-base"
310
- }, xe = ["title"], ke = ["title"], Ve = { key: 1 }, Te = { class: "obj-position" }, ze = { class: "coord-item" }, Pe = { class: "coord-item" }, Ae = { class: "coord-item" }, Ie = { class: "obj-rotation" }, Be = { class: "coord-item" }, Ne = { class: "coord-item" }, We = { class: "coord-item" }, Ze = { class: "world" }, qe = { class: "coord-line" }, Xe = { class: "coord-text" }, Ye = { class: "world-position-item" }, Ke = { class: "world-position-item" }, Ge = { class: "world-position-item" }, He = { class: "coord-line" }, Qe = { class: "coord-text" }, et = { class: "world-rotation-item" }, tt = { class: "world-rotation-item" }, ot = { class: "world-rotation-item" }, st = /* @__PURE__ */ Le({
310
+ }, xe = ["title"], ke = ["title"], Ve = { key: 1 }, Te = { class: "obj-position" }, ze = { class: "coord-item" }, Pe = { class: "coord-item" }, Ae = { class: "coord-item" }, Ie = { class: "obj-rotation" }, Be = { class: "coord-item" }, Ne = { class: "coord-item" }, We = { class: "coord-item" }, qe = { class: "world" }, Xe = { class: "coord-line" }, Ye = { class: "coord-text" }, Ze = { class: "world-position-item" }, Ke = { class: "world-position-item" }, Ge = { class: "world-position-item" }, He = { class: "coord-line" }, Qe = { class: "coord-text" }, et = { class: "world-rotation-item" }, tt = { class: "world-rotation-item" }, ot = { class: "world-rotation-item" }, st = /* @__PURE__ */ Le({
311
311
  __name: "workpieceTreePanel",
312
312
  props: {
313
313
  model: {},
@@ -400,7 +400,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
400
400
  },
401
401
  { immediate: !0 }
402
402
  ), (e, o) => {
403
- var S, z, P, A, I, B, N, W, Z, q, X, Y, K, G, H, Q, ee, te, oe, se, ie, le, ae, ne;
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
405
  return V(), k("div", Je, [
406
406
  U(w, null, {
@@ -498,7 +498,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
498
498
  c("div", Ne, [
499
499
  o[13] || (o[13] = c("span", { class: "axis-label" }, "Y°", -1)),
500
500
  U(L, {
501
- "model-value": f((q = (Z = i.value) == null ? void 0 : Z.rotation) == null ? void 0 : q.y),
501
+ "model-value": f((X = (q = i.value) == null ? void 0 : q.rotation) == null ? void 0 : X.y),
502
502
  onChange: o[4] || (o[4] = (R) => n(R, "y")),
503
503
  size: "small",
504
504
  class: "coord-input-compact",
@@ -511,7 +511,7 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
511
511
  c("div", We, [
512
512
  o[14] || (o[14] = c("span", { class: "axis-label" }, "Z°", -1)),
513
513
  U(L, {
514
- "model-value": f((Y = (X = i.value) == null ? void 0 : X.rotation) == null ? void 0 : Y.z),
514
+ "model-value": f((Z = (Y = i.value) == null ? void 0 : Y.rotation) == null ? void 0 : Z.z),
515
515
  onChange: o[5] || (o[5] = (R) => n(R, "z")),
516
516
  size: "small",
517
517
  class: "coord-input-compact",
@@ -529,11 +529,11 @@ const Je = { class: "panel-content" }, Oe = { class: "obj" }, Ee = {
529
529
  _: 1,
530
530
  __: [15]
531
531
  }),
532
- c("div", Ze, [
533
- c("div", qe, [
532
+ c("div", qe, [
533
+ c("div", Xe, [
534
534
  o[16] || (o[16] = c("span", { class: "coord-label" }, "世界位置:", -1)),
535
- c("span", Xe, [
536
- c("div", Ye, C(r((G = (K = i.value) == null ? void 0 : K.worldPosition) == null ? void 0 : G.x)) + ", ", 1),
535
+ c("span", Ye, [
536
+ c("div", Ze, C(r((G = (K = i.value) == null ? void 0 : K.worldPosition) == null ? void 0 : G.x)) + ", ", 1),
537
537
  c("div", Ke, C(r((Q = (H = i.value) == null ? void 0 : H.worldPosition) == null ? void 0 : Q.y)) + ", ", 1),
538
538
  c("div", Ge, C(r((te = (ee = i.value) == null ? void 0 : ee.worldPosition) == null ? void 0 : te.z)), 1)
539
539
  ])
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ss-component-new",
3
3
  "private": false,
4
- "version": "1.3.813",
4
+ "version": "1.3.814",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",