ss-component-new 1.2.91 → 1.2.92

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 (89) hide show
  1. package/dist/{MTLLoader-BFJXexXd.js → MTLLoader-B5xRp-vz.js} +1 -1
  2. package/dist/{MTLLoader-B7nny5Fq.cjs → MTLLoader-D80GV1WB.cjs} +1 -1
  3. package/dist/{OrbitControls-xaR75UGu.cjs → OrbitControls-CqIpswqa.cjs} +1 -1
  4. package/dist/{OrbitControls-C9jawbH9.js → OrbitControls-Dh9PyFO4.js} +1 -1
  5. package/dist/{animationData-CBP3-eEz.cjs → animationData-BtND2VWy.cjs} +1 -1
  6. package/dist/{animationData-CgRkXv4t.js → animationData-DZ0i7k1j.js} +1 -1
  7. package/dist/{iconfont-CP5tSbKZ.cjs → iconfont-0T5xTLj8.cjs} +1 -1
  8. package/dist/{iconfont-CjxxsF1M.js → iconfont-DN8mra_i.js} +2 -2
  9. package/dist/{index-DFI9yzK6.js → index-1gXFTnuu.js} +13 -13
  10. package/dist/{index-DqVT7oIp.cjs → index-BGvxk4QX.cjs} +1 -1
  11. package/dist/{index-CETcLmm9.js → index-BKaTMDZC.js} +3 -3
  12. package/dist/{index-vOASo2vq.cjs → index-BUYZ6Pzj.cjs} +1 -1
  13. package/dist/{index-BtAr_AHh.cjs → index-BYoEVm0h.cjs} +1 -1
  14. package/dist/{index-Dp0Qfw7S.cjs → index-B_KvjL9P.cjs} +1 -1
  15. package/dist/{index-BlCQ16SZ.cjs → index-BdwtuRne.cjs} +1 -1
  16. package/dist/{index-BekTYc0y.cjs → index-BeEVAZ15.cjs} +1 -1
  17. package/dist/{index-BQ2epFRD.js → index-BjFqn1jw.js} +1 -1
  18. package/dist/{index-DYPr6Y5L.cjs → index-BooqzjWY.cjs} +1 -1
  19. package/dist/{index-DUVWJUDm.cjs → index-BprBzYZ5.cjs} +1 -1
  20. package/dist/{index-Bb1-JDSj.js → index-BtKhX2oM.js} +2 -2
  21. package/dist/{index-C3T-KdRt.js → index-BvxyAOvM.js} +1 -1
  22. package/dist/{index-BAhJFVq5.js → index-C07slqLJ.js} +2 -2
  23. package/dist/{index-1K0-Lril.js → index-C1aAW06_.js} +3 -3
  24. package/dist/{index-DvGuZe_T.js → index-C7HjGMoA.js} +3 -3
  25. package/dist/{index-BMP_6QMQ.js → index-CQ7UrLDv.js} +4 -4
  26. package/dist/{index-C8yBntW8.cjs → index-CRe-_A5B.cjs} +1 -1
  27. package/dist/{index-BEvmMS0i.js → index-CZLI4UKD.js} +1 -1
  28. package/dist/{index-Vsjvei0H.js → index-CZsCZbCY.js} +2 -2
  29. package/dist/{index-BXnPM7aS.cjs → index-C_DIwBxS.cjs} +1 -1
  30. package/dist/{index-Dp6H2nKE.js → index-CewrcECw.js} +1 -1
  31. package/dist/{index-B_PGXhqu.js → index-CfHIgB5C.js} +1 -1
  32. package/dist/{index-D9EZRG95.js → index-CiNYm1fC.js} +1 -1
  33. package/dist/{index-aQEd-0P6.cjs → index-CpYf3edW.cjs} +1 -1
  34. package/dist/{index-BuBu-8ML.cjs → index-CtOo2IDL.cjs} +1 -1
  35. package/dist/{index-DG16Kf33.cjs → index-CuchbMC7.cjs} +1 -1
  36. package/dist/{index-B2gEqMwz.cjs → index-CylLhQJV.cjs} +1 -1
  37. package/dist/{index-Ebo1c622.js → index-DJ14vVkb.js} +1 -1
  38. package/dist/{index-8zvR_tOe.js → index-DQTbLJJt.js} +1 -1
  39. package/dist/{index-CUEf5Kz5.cjs → index-DSmsp4fK.cjs} +1 -1
  40. package/dist/{index-7slO1Rxz.cjs → index-DVMvlM3X.cjs} +1 -1
  41. package/dist/{index-aSIQAW_v.cjs → index-DW_lU8F7.cjs} +1 -1
  42. package/dist/{index-dDyNP3sZ.js → index-DwsI_FxR.js} +6 -6
  43. package/dist/{index-5IXozXfb.cjs → index-NMPHjxEr.cjs} +1 -1
  44. package/dist/{index-q5RVI5cd.js → index-Q33CutvH.js} +3 -3
  45. package/dist/{index-4C4_axeD.js → index-YxS-TBi2.js} +1 -1
  46. package/dist/{index-7Birt--o.cjs → index-Z2dyIgOs.cjs} +1 -1
  47. package/dist/{index-C-L7sbsd.js → index-a_TWt7Sj.js} +6 -6
  48. package/dist/{index-ihwK0f5N.cjs → index-bz_QKqhV.cjs} +1 -1
  49. package/dist/{index-B8bmwRCI.js → index-fbsH9PEh.js} +1 -1
  50. package/dist/{index-CP7aP3gS.cjs → index-m_VPPkQD.cjs} +1 -1
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DecIEtG7.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CjVqxeCk.cjs} +1 -1
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CFsZEbkA.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-qrHH3IDA.js} +6 -6
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKwIZnH1.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DEgtwZwW.js} +1642 -1647
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Cwx8FIbY.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-QzgaFA5S.cjs} +58 -58
  55. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BX54cUHO.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-9r-1e4S8.cjs} +1 -1
  56. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-B10uDdFf.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-IuoTm-WE.js} +3 -3
  57. package/dist/{index.vue_vue_type_style_index_1_lang-B-okL2FZ.js → index.vue_vue_type_style_index_1_lang-CDl_PU-6.js} +3 -3
  58. package/dist/{index.vue_vue_type_style_index_1_lang-CTa9TwBd.cjs → index.vue_vue_type_style_index_1_lang-DR71_XjN.cjs} +1 -1
  59. package/dist/{main-Cwa67iI0.cjs → main-BxTLrfxf.cjs} +1 -1
  60. package/dist/{main-t0azuc9l.js → main-D_3GSDl9.js} +2 -2
  61. package/dist/ss-component.cjs +1 -1
  62. package/dist/ss-component.css +1 -1
  63. package/dist/ss-component.js +9 -9
  64. package/dist/ss-component2.cjs +1 -1
  65. package/dist/ss-component2.js +10 -10
  66. package/dist/{threeModel-Byx2BFHA.js → threeModel-BKLggDE-.js} +4 -4
  67. package/dist/{threeModel-BsTUf7j3.cjs → threeModel-D4-2rEpM.cjs} +1 -1
  68. package/dist/{threePreview-DGcEWlwZ.cjs → threePreview-QIurmOdU.cjs} +1 -1
  69. package/dist/{threePreview-B9a62AVY.js → threePreview-oszvdj-G.js} +578 -579
  70. package/dist/threeSceneView-BR1l9yTW.js +1341 -0
  71. package/dist/threeSceneView-CaHI2V82.cjs +5 -0
  72. package/dist/threeSceneViewForCPMPIP-DbvRq5YC.cjs +5 -0
  73. package/dist/{threeSceneViewForCPMPIP-BslGbi80.js → threeSceneViewForCPMPIP-wZTvUhLm.js} +232 -238
  74. package/dist/{threeTrackPathView-CNiRDEIa.js → threeTrackPathView-CAK5om32.js} +258 -305
  75. package/dist/{threeTrackPathView-C5outYjx.cjs → threeTrackPathView-CF9ierHN.cjs} +2 -2
  76. package/dist/{threeViewerHost-C2iVAVlI.js → threeViewerHost-CeTJmyoE.js} +2 -2
  77. package/dist/{threeViewerHost-D3ZmD_As.cjs → threeViewerHost-iajMfGA9.cjs} +2 -2
  78. package/dist/{urdfTree-DEo6cc0y.cjs → urdfTree-CWwnorES.cjs} +1 -1
  79. package/dist/{urdfTree-D_oX4idQ.js → urdfTree-DIyCunQo.js} +1 -1
  80. package/dist/{workpieceTreePanel--92uvFwB.js → workpieceTreePanel-DC0GHh3g.js} +5 -5
  81. package/dist/{workpieceTreePanel-C0Lq3HIU.cjs → workpieceTreePanel-YfDCHyA3.cjs} +1 -1
  82. package/package.json +1 -1
  83. package/dist/obj/model.mtl +0 -42
  84. package/dist/obj/model.obj +0 -26110
  85. package/dist/threeSceneView-BYc0Z0CJ.cjs +0 -5
  86. package/dist/threeSceneView-C59wI_1_.js +0 -1369
  87. package/dist/threeSceneViewForCPMPIP-kGIus7ge.cjs +0 -5
  88. package/public/obj/model.mtl +0 -42
  89. package/public/obj/model.obj +0 -26110
@@ -1,13 +1,13 @@
1
- import { defineComponent as Pe, computed as R, ref as E, resolveComponent as Y, createElementBlock as le, openBlock as Z, createElementVNode as m, createVNode as h, withCtx as de, toDisplayString as J, shallowRef as te, watch as lt, onMounted as ct, onBeforeUnmount as ut, withDirectives as I, createCommentVNode as ve, unref as b, renderSlot as Ae, createBlock as dt, isRef as ne, vModelRadio as ie, vShow as oe } from "vue";
2
- import { u as ft, a as pt, b as mt, f as ht, d as Ue } from "./iconfont-CjxxsF1M.js";
3
- import { C as fe, k as Be, aE as vt, v as gt, V as M, aF as yt, aG as xe, aH as be, av as H, aI as wt, B as _e, aD as De, aJ as xt, aK as ce, aL as Fe, Y as Oe, aM as ue, aN as Q, aO as bt, r as _t, s as je, t as St, w as zt, a5 as Ct, ag as At, ao as Ut } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DKwIZnH1.js";
4
- import { r as Et } from "./threeViewerHost-C2iVAVlI.js";
5
- import { E as K } from "./index-BUYYl2Pc.js";
6
- import { U as Mt, J as Lt } from "./urdfTree-D_oX4idQ.js";
7
- import { _ as Ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- import { T as w } from "./svgIcon-D-_fXUBL.js";
9
- import { i as kt } from "./isString-BATKat46.js";
10
- function Tt(o = 0.5, e = 4) {
1
+ import { defineComponent as ke, computed as R, ref as E, resolveComponent as q, createElementBlock as ae, openBlock as Y, createElementVNode as m, createVNode as y, withCtx as ce, toDisplayString as K, shallowRef as Q, watch as lt, onMounted as ct, onBeforeUnmount as ut, withDirectives as j, createCommentVNode as ve, unref as x, renderSlot as Ae, createBlock as dt, isRef as ee, vModelRadio as te, vShow as ne } from "vue";
2
+ import { u as ft, a as pt, b as mt, f as ht, d as Ue } from "./iconfont-DN8mra_i.js";
3
+ import { C as ue, k as Be, aE as vt, v as gt, V as M, aF as yt, aG as xe, aH as be, av as H, aI as wt, B as _e, aD as De, aJ as xt, aK as re, aL as Fe, Y as Oe, aM as le, aN as J, aO as bt, r as _t, s as Ie, t as St, w as Ct, a5 as zt, ag as At, ao as Ut } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DEgtwZwW.js";
4
+ import { r as Et } from "./threeViewerHost-CeTJmyoE.js";
5
+ import { E as Z } from "./index-BUYYl2Pc.js";
6
+ import { U as Mt, J as Lt } from "./urdfTree-DIyCunQo.js";
7
+ import { _ as je } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
+ import { T as U } from "./svgIcon-D-_fXUBL.js";
9
+ import { i as Tt } from "./isString-BATKat46.js";
10
+ function Pt(o = 0.5, e = 4) {
11
11
  const n = new Be(
12
12
  new vt(o, e, 32),
13
13
  new gt({
@@ -20,30 +20,30 @@ function Tt(o = 0.5, e = 4) {
20
20
  ), i = n.geometry.parameters.height;
21
21
  return n.geometry.translate(0, -i / 2, 0), n.rotation.set(-90, 0, 0, "XYZ"), n;
22
22
  }
23
- function Pt(o, e) {
23
+ function kt(o, e) {
24
24
  o.position.copy(e);
25
25
  }
26
- function Bt(o, e, n = new fe(16711680)) {
26
+ function Bt(o, e, n = new ue(16711680)) {
27
27
  const i = new M();
28
28
  e.getWorldPosition(i);
29
- const t = o.geometry.attributes.position, s = o.geometry.attributes.color, r = new fe(55551);
30
- let a = 1 / 0, f = -1;
29
+ const t = o.geometry.attributes.position, s = o.geometry.attributes.color, r = new ue(55551);
30
+ let a = 1 / 0, d = -1;
31
31
  for (let u = 0; u < t.count; u++) {
32
- const d = new M().fromBufferAttribute(t, u).distanceTo(i);
33
- d < a && (a = d, f = u);
32
+ const f = new M().fromBufferAttribute(t, u).distanceTo(i);
33
+ f < a && (a = f, d = u);
34
34
  }
35
35
  for (let u = 0; u < s.count; u++) r.toArray(s.array, u * 3);
36
- if (f !== -1) {
37
- const u = n.toArray(), p = f * 3 + 2;
38
- for (let d = 0; d < p; d = d + 3)
39
- s.array[d] = u[0], s.array[d + 1] = u[1], s.array[d + 2] = u[2];
36
+ if (d !== -1) {
37
+ const u = n.toArray(), p = d * 3 + 2;
38
+ for (let f = 0; f < p; f = f + 3)
39
+ s.array[f] = u[0], s.array[f + 1] = u[1], s.array[f + 2] = u[2];
40
40
  }
41
41
  s.needsUpdate = !0;
42
42
  }
43
- function Ve(o, e, n, i = new fe(16711680)) {
44
- Pt(o, e), Bt(n, o, i);
43
+ function Ve(o, e, n, i = new ue(16711680)) {
44
+ kt(o, e), Bt(n, o, i);
45
45
  }
46
- const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot = { class: "control-row" }, jt = { class: "control-row" }, It = { class: "frame-info" }, Vt = { class: "control-row" }, Nt = /* @__PURE__ */ Pe({
46
+ const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot = { class: "control-row" }, It = { class: "control-row" }, jt = { class: "frame-info" }, Vt = { class: "control-row" }, Nt = /* @__PURE__ */ ke({
47
47
  __name: "trackAnimationPanel",
48
48
  props: {
49
49
  cloud: {},
@@ -53,58 +53,58 @@ const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot
53
53
  emits: ["getThreeData"],
54
54
  setup(o, { expose: e, emit: n }) {
55
55
  const i = o, t = R(() => i.vectors), s = E(!1), r = E(0), a = E(50);
56
- let f = !1;
57
- const u = (g) => `第 ${g + 1} 帧`, p = (g) => {
58
- if (g < 0 || g >= t.value.length) {
59
- console.error(`帧索引 ${g} 超出范围`);
56
+ let d = !1;
57
+ const u = (v) => `第 ${v + 1} 帧`, p = (v) => {
58
+ if (v < 0 || v >= t.value.length) {
59
+ console.error(`帧索引 ${v} 超出范围`);
60
60
  return;
61
61
  }
62
- const x = t.value[g];
63
- r.value = g, Ve(i.knife, x, i.cloud);
64
- }, d = async () => {
62
+ const w = t.value[v];
63
+ r.value = v, Ve(i.knife, w, i.cloud);
64
+ }, f = async () => {
65
65
  if (t.value.length === 0) {
66
- K.error("无法播放动画:无数据");
66
+ Z.error("无法播放动画:无数据");
67
67
  return;
68
68
  }
69
69
  if (!s.value) {
70
- s.value = !0, f = !1, t.value.length - 1 === r.value && (r.value = 0);
70
+ s.value = !0, d = !1, t.value.length - 1 === r.value && (r.value = 0);
71
71
  try {
72
- for (let g = r.value + 1; g < t.value.length && !f; g++)
73
- await new Promise((x) => setTimeout(x, a.value)), p(g);
74
- f || K.success("动画播放完成");
75
- } catch (g) {
76
- console.error("动画播放出错:", g), K.error("动画播放出错");
72
+ for (let v = r.value + 1; v < t.value.length && !d; v++)
73
+ await new Promise((w) => setTimeout(w, a.value)), p(v);
74
+ d || Z.success("动画播放完成");
75
+ } catch (v) {
76
+ console.error("动画播放出错:", v), Z.error("动画播放出错");
77
77
  } finally {
78
78
  s.value = !1;
79
79
  }
80
80
  }
81
- }, v = () => {
82
- f = !0, s.value = !1, K.info("动画已停止");
83
- }, A = (g) => {
84
- s.value && v(), p(g);
81
+ }, h = () => {
82
+ d = !0, s.value = !1, Z.info("动画已停止");
83
+ }, z = (v) => {
84
+ s.value && h(), p(v);
85
85
  };
86
- return e({ playAnimation: d, stopAnimation: v, forwardFrame: () => {
87
- s.value && v(), !(r.value + 1 >= t.value.length) && p(r.value + 1);
86
+ return e({ playAnimation: f, stopAnimation: h, forwardFrame: () => {
87
+ s.value && h(), !(r.value + 1 >= t.value.length) && p(r.value + 1);
88
88
  }, backwardFrame: () => {
89
- s.value && v(), r.value !== 0 && p(r.value - 1);
90
- } }), (g, x) => {
91
- const C = Y("el-input-number"), U = Y("el-form-item"), k = Y("el-form"), me = Y("el-slider");
92
- return Z(), le("div", Dt, [
89
+ s.value && h(), r.value !== 0 && p(r.value - 1);
90
+ } }), (v, w) => {
91
+ const C = q("el-input-number"), A = q("el-form-item"), T = q("el-form"), fe = q("el-slider");
92
+ return Y(), ae("div", Dt, [
93
93
  m("div", Ft, [
94
94
  m("div", Ot, [
95
- h(k, {
95
+ y(T, {
96
96
  "label-width": "auto",
97
97
  style: { width: "100%" }
98
98
  }, {
99
- default: de(() => [
100
- h(U, {
99
+ default: ce(() => [
100
+ y(A, {
101
101
  label: "帧间隔 (ms):",
102
102
  prop: "frameDuration"
103
103
  }, {
104
- default: de(() => [
105
- h(C, {
104
+ default: ce(() => [
105
+ y(C, {
106
106
  modelValue: a.value,
107
- "onUpdate:modelValue": x[0] || (x[0] = (G) => a.value = G),
107
+ "onUpdate:modelValue": w[0] || (w[0] = (G) => a.value = G),
108
108
  min: 0,
109
109
  max: 5e3,
110
110
  step: 10,
@@ -117,20 +117,20 @@ const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot
117
117
  _: 1
118
118
  })
119
119
  ]),
120
- m("div", jt, [
121
- x[2] || (x[2] = m("label", null, "当前帧:", -1)),
122
- m("span", It, J(r.value + 1) + " / " + J(t.value.length), 1)
120
+ m("div", It, [
121
+ w[2] || (w[2] = m("label", null, "当前帧:", -1)),
122
+ m("span", jt, K(r.value + 1) + " / " + K(t.value.length), 1)
123
123
  ]),
124
124
  m("div", Vt, [
125
- x[3] || (x[3] = m("label", null, "动画进度:", -1)),
126
- h(me, {
125
+ w[3] || (w[3] = m("label", null, "动画进度:", -1)),
126
+ y(fe, {
127
127
  modelValue: r.value,
128
- "onUpdate:modelValue": x[1] || (x[1] = (G) => r.value = G),
128
+ "onUpdate:modelValue": w[1] || (w[1] = (G) => r.value = G),
129
129
  min: 0,
130
130
  max: t.value.length > 0 ? t.value.length - 1 : 0,
131
131
  step: 1,
132
132
  "format-tooltip": u,
133
- onInput: A,
133
+ onInput: z,
134
134
  disabled: t.value.length === 0,
135
135
  style: { "flex-grow": "1", margin: "0 10px" }
136
136
  }, null, 8, ["modelValue", "max", "disabled"])
@@ -139,7 +139,7 @@ const Dt = { class: "panel-content" }, Ft = { class: "animation-controls" }, Ot
139
139
  ]);
140
140
  };
141
141
  }
142
- }), Wt = /* @__PURE__ */ Ie(Nt, [["__scopeId", "data-v-93cde733"]]), Ee = new _e(), se = new M();
142
+ }), Wt = /* @__PURE__ */ je(Nt, [["__scopeId", "data-v-93cde733"]]), Ee = new _e(), ie = new M();
143
143
  class Ne extends yt {
144
144
  /**
145
145
  * Constructs a new line segments geometry.
@@ -236,14 +236,14 @@ class Ne extends yt {
236
236
  this.boundingBox.getCenter(i);
237
237
  let t = 0;
238
238
  for (let s = 0, r = e.count; s < r; s++)
239
- se.fromBufferAttribute(e, s), t = Math.max(t, i.distanceToSquared(se)), se.fromBufferAttribute(n, s), t = Math.max(t, i.distanceToSquared(se));
239
+ ie.fromBufferAttribute(e, s), t = Math.max(t, i.distanceToSquared(ie)), ie.fromBufferAttribute(n, s), t = Math.max(t, i.distanceToSquared(ie));
240
240
  this.boundingSphere.radius = Math.sqrt(t), isNaN(this.boundingSphere.radius) && console.error("THREE.LineSegmentsGeometry.computeBoundingSphere(): Computed radius is NaN. The instanced position data is likely to have NaN values.", this);
241
241
  }
242
242
  }
243
243
  toJSON() {
244
244
  }
245
245
  }
246
- ue.line = {
246
+ le.line = {
247
247
  worldUnits: { value: 1 },
248
248
  linewidth: { value: 1 },
249
249
  resolution: { value: new Oe(1, 1) },
@@ -253,11 +253,11 @@ ue.line = {
253
253
  gapSize: { value: 1 }
254
254
  // todo FIX - maybe change to totalSize
255
255
  };
256
- ce.line = {
256
+ re.line = {
257
257
  uniforms: Fe.merge([
258
- ue.common,
259
- ue.fog,
260
- ue.line
258
+ le.common,
259
+ le.fog,
260
+ le.line
261
261
  ]),
262
262
  vertexShader: (
263
263
  /* glsl */
@@ -650,9 +650,9 @@ class Se extends xt {
650
650
  constructor(e) {
651
651
  super({
652
652
  type: "LineMaterial",
653
- uniforms: Fe.clone(ce.line.uniforms),
654
- vertexShader: ce.line.vertexShader,
655
- fragmentShader: ce.line.fragmentShader,
653
+ uniforms: Fe.clone(re.line.uniforms),
654
+ vertexShader: re.line.vertexShader,
655
+ fragmentShader: re.line.fragmentShader,
656
656
  clipping: !0
657
657
  // required for clipping support
658
658
  }), this.isLineMaterial = !0, this.setValues(e);
@@ -792,17 +792,17 @@ class Se extends xt {
792
792
  this.defines && (e === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), e === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
793
793
  }
794
794
  }
795
- const ge = new Q(), Me = new M(), Le = new M(), _ = new Q(), S = new Q(), P = new Q(), ye = new M(), we = new _t(), z = new bt(), ke = new M(), ae = new _e(), re = new De(), B = new Q();
795
+ const ge = new J(), Me = new M(), Le = new M(), b = new J(), _ = new J(), k = new J(), ye = new M(), we = new _t(), S = new bt(), Te = new M(), oe = new _e(), se = new De(), B = new J();
796
796
  let D, W;
797
- function Te(o, e, n) {
797
+ function Pe(o, e, n) {
798
798
  return B.set(0, 0, -e, 1).applyMatrix4(o.projectionMatrix), B.multiplyScalar(1 / B.w), B.x = W / n.width, B.y = W / n.height, B.applyMatrix4(o.projectionMatrixInverse), B.multiplyScalar(1 / B.w), Math.abs(Math.max(B.x, B.y));
799
799
  }
800
800
  function Gt(o, e) {
801
801
  const n = o.matrixWorld, i = o.geometry, t = i.attributes.instanceStart, s = i.attributes.instanceEnd, r = Math.min(i.instanceCount, t.count);
802
- for (let a = 0, f = r; a < f; a++) {
803
- z.start.fromBufferAttribute(t, a), z.end.fromBufferAttribute(s, a), z.applyMatrix4(n);
802
+ for (let a = 0, d = r; a < d; a++) {
803
+ S.start.fromBufferAttribute(t, a), S.end.fromBufferAttribute(s, a), S.applyMatrix4(n);
804
804
  const u = new M(), p = new M();
805
- D.distanceSqToSegment(z.start, z.end, p, u), p.distanceTo(u) < W * 0.5 && e.push({
805
+ D.distanceSqToSegment(S.start, S.end, p, u), p.distanceTo(u) < W * 0.5 && e.push({
806
806
  point: p,
807
807
  pointOnLine: u,
808
808
  distance: D.origin.distanceTo(p),
@@ -815,32 +815,32 @@ function Gt(o, e) {
815
815
  }
816
816
  }
817
817
  function Rt(o, e, n) {
818
- const i = e.projectionMatrix, s = o.material.resolution, r = o.matrixWorld, a = o.geometry, f = a.attributes.instanceStart, u = a.attributes.instanceEnd, p = Math.min(a.instanceCount, f.count), d = -e.near;
819
- D.at(1, P), P.w = 1, P.applyMatrix4(e.matrixWorldInverse), P.applyMatrix4(i), P.multiplyScalar(1 / P.w), P.x *= s.x / 2, P.y *= s.y / 2, P.z = 0, ye.copy(P), we.multiplyMatrices(e.matrixWorldInverse, r);
820
- for (let v = 0, A = p; v < A; v++) {
821
- if (_.fromBufferAttribute(f, v), S.fromBufferAttribute(u, v), _.w = 1, S.w = 1, _.applyMatrix4(we), S.applyMatrix4(we), _.z > d && S.z > d)
818
+ const i = e.projectionMatrix, s = o.material.resolution, r = o.matrixWorld, a = o.geometry, d = a.attributes.instanceStart, u = a.attributes.instanceEnd, p = Math.min(a.instanceCount, d.count), f = -e.near;
819
+ D.at(1, k), k.w = 1, k.applyMatrix4(e.matrixWorldInverse), k.applyMatrix4(i), k.multiplyScalar(1 / k.w), k.x *= s.x / 2, k.y *= s.y / 2, k.z = 0, ye.copy(k), we.multiplyMatrices(e.matrixWorldInverse, r);
820
+ for (let h = 0, z = p; h < z; h++) {
821
+ if (b.fromBufferAttribute(d, h), _.fromBufferAttribute(u, h), b.w = 1, _.w = 1, b.applyMatrix4(we), _.applyMatrix4(we), b.z > f && _.z > f)
822
822
  continue;
823
- if (_.z > d) {
824
- const U = _.z - S.z, k = (_.z - d) / U;
825
- _.lerp(S, k);
826
- } else if (S.z > d) {
827
- const U = S.z - _.z, k = (S.z - d) / U;
828
- S.lerp(_, k);
823
+ if (b.z > f) {
824
+ const A = b.z - _.z, T = (b.z - f) / A;
825
+ b.lerp(_, T);
826
+ } else if (_.z > f) {
827
+ const A = _.z - b.z, T = (_.z - f) / A;
828
+ _.lerp(b, T);
829
829
  }
830
- _.applyMatrix4(i), S.applyMatrix4(i), _.multiplyScalar(1 / _.w), S.multiplyScalar(1 / S.w), _.x *= s.x / 2, _.y *= s.y / 2, S.x *= s.x / 2, S.y *= s.y / 2, z.start.copy(_), z.start.z = 0, z.end.copy(S), z.end.z = 0;
831
- const T = z.closestPointToPointParameter(ye, !0);
832
- z.at(T, ke);
833
- const g = je.lerp(_.z, S.z, T), x = g >= -1 && g <= 1, C = ye.distanceTo(ke) < W * 0.5;
834
- if (x && C) {
835
- z.start.fromBufferAttribute(f, v), z.end.fromBufferAttribute(u, v), z.start.applyMatrix4(r), z.end.applyMatrix4(r);
836
- const U = new M(), k = new M();
837
- D.distanceSqToSegment(z.start, z.end, k, U), n.push({
838
- point: k,
839
- pointOnLine: U,
840
- distance: D.origin.distanceTo(k),
830
+ b.applyMatrix4(i), _.applyMatrix4(i), b.multiplyScalar(1 / b.w), _.multiplyScalar(1 / _.w), b.x *= s.x / 2, b.y *= s.y / 2, _.x *= s.x / 2, _.y *= s.y / 2, S.start.copy(b), S.start.z = 0, S.end.copy(_), S.end.z = 0;
831
+ const P = S.closestPointToPointParameter(ye, !0);
832
+ S.at(P, Te);
833
+ const v = Ie.lerp(b.z, _.z, P), w = v >= -1 && v <= 1, C = ye.distanceTo(Te) < W * 0.5;
834
+ if (w && C) {
835
+ S.start.fromBufferAttribute(d, h), S.end.fromBufferAttribute(u, h), S.start.applyMatrix4(r), S.end.applyMatrix4(r);
836
+ const A = new M(), T = new M();
837
+ D.distanceSqToSegment(S.start, S.end, T, A), n.push({
838
+ point: T,
839
+ pointOnLine: A,
840
+ distance: D.origin.distanceTo(T),
841
841
  object: o,
842
842
  face: null,
843
- faceIndex: v,
843
+ faceIndex: h,
844
844
  uv: null,
845
845
  uv1: null
846
846
  });
@@ -866,7 +866,7 @@ class Ht extends Be {
866
866
  */
867
867
  computeLineDistances() {
868
868
  const e = this.geometry, n = e.attributes.instanceStart, i = e.attributes.instanceEnd, t = new Float32Array(2 * n.count);
869
- for (let r = 0, a = 0, f = n.count; r < f; r++, a += 2)
869
+ for (let r = 0, a = 0, d = n.count; r < d; r++, a += 2)
870
870
  Me.fromBufferAttribute(n, r), Le.fromBufferAttribute(i, r), t[a] = a === 0 ? 0 : t[a - 1], t[a + 1] = t[a] + Me.distanceTo(Le);
871
871
  const s = new be(t, 2, 1);
872
872
  return e.setAttribute("instanceDistanceStart", new H(s, 1, 0)), e.setAttribute("instanceDistanceEnd", new H(s, 1, 1)), this;
@@ -882,26 +882,26 @@ class Ht extends Be {
882
882
  t === null && !i && console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');
883
883
  const s = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
884
884
  D = e.ray;
885
- const r = this.matrixWorld, a = this.geometry, f = this.material;
886
- W = f.linewidth + s, a.boundingSphere === null && a.computeBoundingSphere(), re.copy(a.boundingSphere).applyMatrix4(r);
885
+ const r = this.matrixWorld, a = this.geometry, d = this.material;
886
+ W = d.linewidth + s, a.boundingSphere === null && a.computeBoundingSphere(), se.copy(a.boundingSphere).applyMatrix4(r);
887
887
  let u;
888
888
  if (i)
889
889
  u = W * 0.5;
890
890
  else {
891
- const d = Math.max(t.near, re.distanceToPoint(D.origin));
892
- u = Te(t, d, f.resolution);
891
+ const f = Math.max(t.near, se.distanceToPoint(D.origin));
892
+ u = Pe(t, f, d.resolution);
893
893
  }
894
- if (re.radius += u, D.intersectsSphere(re) === !1)
894
+ if (se.radius += u, D.intersectsSphere(se) === !1)
895
895
  return;
896
- a.boundingBox === null && a.computeBoundingBox(), ae.copy(a.boundingBox).applyMatrix4(r);
896
+ a.boundingBox === null && a.computeBoundingBox(), oe.copy(a.boundingBox).applyMatrix4(r);
897
897
  let p;
898
898
  if (i)
899
899
  p = W * 0.5;
900
900
  else {
901
- const d = Math.max(t.near, ae.distanceToPoint(D.origin));
902
- p = Te(t, d, f.resolution);
901
+ const f = Math.max(t.near, oe.distanceToPoint(D.origin));
902
+ p = Pe(t, f, d.resolution);
903
903
  }
904
- ae.expandByScalar(p), D.intersectsBox(ae) !== !1 && (i ? Gt(this, n) : Rt(this, t, n));
904
+ oe.expandByScalar(p), D.intersectsBox(oe) !== !1 && (i ? Gt(this, n) : Rt(this, t, n));
905
905
  }
906
906
  onBeforeRender(e) {
907
907
  const n = this.material.uniforms;
@@ -980,7 +980,7 @@ function Xt(o) {
980
980
  e.push(+i, +t, +s);
981
981
  }), e;
982
982
  }
983
- function pe(o, e, n) {
983
+ function de(o, e, n) {
984
984
  switch (o) {
985
985
  case "X":
986
986
  e.x = +n || 0;
@@ -1004,15 +1004,15 @@ function qt(o) {
1004
1004
  if (!s)
1005
1005
  return;
1006
1006
  let r = null, a = "";
1007
- for (let f = 0; f < (s == null ? void 0 : s.length); f++) {
1008
- const u = s[f], p = n.find((d) => d === u);
1007
+ for (let d = 0; d < (s == null ? void 0 : s.length); d++) {
1008
+ const u = s[d], p = n.find((f) => f === u);
1009
1009
  if (p) {
1010
- r && pe(r, t, a), a = "", r = p;
1010
+ r && de(r, t, a), a = "", r = p;
1011
1011
  continue;
1012
1012
  }
1013
1013
  a = a + u;
1014
1014
  }
1015
- pe(r, t, a), e.push(t.x, t.y, t.z);
1015
+ de(r, t, a), e.push(t.x, t.y, t.z);
1016
1016
  }), e;
1017
1017
  }
1018
1018
  const Yt = (o) => o == null ? void 0 : o.filter((n) => n.includes("=")), Zt = (o) => o.replace(/,/g, ""), Kt = (o) => o == null ? void 0 : o.map((n) => Zt(n)), Jt = (o) => {
@@ -1022,11 +1022,11 @@ const Yt = (o) => o == null ? void 0 : o.filter((n) => n.includes("=")), Zt = (o
1022
1022
  function Qt(o) {
1023
1023
  const e = Jt(o), n = [];
1024
1024
  return e.forEach((i) => {
1025
- var d, v, A, F, T, g;
1025
+ var f, h, z, F, P, v;
1026
1026
  let [t, s, r, a] = i.trim().split(/\s+/);
1027
- s = (d = s == null ? void 0 : s.trim) == null ? void 0 : d.call(s), r = (v = r == null ? void 0 : r.trim) == null ? void 0 : v.call(r), a = (A = a == null ? void 0 : a.trim) == null ? void 0 : A.call(a);
1028
- const [, f] = (F = s == null ? void 0 : s.split) == null ? void 0 : F.call(s, "="), [, u] = (T = r == null ? void 0 : r.split) == null ? void 0 : T.call(r, "="), [, p] = (g = a == null ? void 0 : a.split) == null ? void 0 : g.call(a, "=");
1029
- n.push(+f, +u, +p);
1027
+ s = (f = s == null ? void 0 : s.trim) == null ? void 0 : f.call(s), r = (h = r == null ? void 0 : r.trim) == null ? void 0 : h.call(r), a = (z = a == null ? void 0 : a.trim) == null ? void 0 : z.call(a);
1028
+ const [, d] = (F = s == null ? void 0 : s.split) == null ? void 0 : F.call(s, "="), [, u] = (P = r == null ? void 0 : r.split) == null ? void 0 : P.call(r, "="), [, p] = (v = a == null ? void 0 : a.split) == null ? void 0 : v.call(a, "=");
1029
+ n.push(+d, +u, +p);
1030
1030
  }), n;
1031
1031
  }
1032
1032
  function en(o) {
@@ -1040,15 +1040,15 @@ function en(o) {
1040
1040
  if (!s)
1041
1041
  return;
1042
1042
  let r = null, a = "";
1043
- for (let f = 0; f < (s == null ? void 0 : s.length); f++) {
1044
- const u = s[f], p = n.find((d) => d === u);
1043
+ for (let d = 0; d < (s == null ? void 0 : s.length); d++) {
1044
+ const u = s[d], p = n.find((f) => f === u);
1045
1045
  if (p) {
1046
- r && pe(r, t, a), a = "", r = p;
1046
+ r && de(r, t, a), a = "", r = p;
1047
1047
  continue;
1048
1048
  }
1049
1049
  a = a + u;
1050
1050
  }
1051
- pe(r, t, a), e.push(t.x, t.y, t.z);
1051
+ de(r, t, a), e.push(t.x, t.y, t.z);
1052
1052
  }), e;
1053
1053
  }
1054
1054
  function tn(o) {
@@ -1109,36 +1109,36 @@ function cn(o, e) {
1109
1109
  if (!n || !i || !t || !s)
1110
1110
  return;
1111
1111
  const r = [];
1112
- for (let v = 0; v < e.length; v += 3)
1113
- r.push(new M(e[v], e[v + 1], e[v + 2]));
1114
- const f = new St(r, !1, "catmullrom", 0.5).getPoints(150).flatMap((v) => [v.x, v.y, v.z]), u = new We();
1115
- u.setPositions(f);
1112
+ for (let h = 0; h < e.length; h += 3)
1113
+ r.push(new M(e[h], e[h + 1], e[h + 2]));
1114
+ const d = new St(r, !1, "catmullrom", 0.5).getPoints(150).flatMap((h) => [h.x, h.y, h.z]), u = new We();
1115
+ u.setPositions(d);
1116
1116
  const p = new Se({
1117
1117
  color: 55551,
1118
1118
  linewidth: 3,
1119
1119
  // 像素宽度,可 >1
1120
1120
  resolution: new Oe(window.innerWidth, window.innerHeight)
1121
- }), d = new $t(u, p);
1122
- return d.name = "轨迹路径", n.add(d), d;
1121
+ }), f = new $t(u, p);
1122
+ return f.name = "轨迹路径", n.add(f), f;
1123
1123
  }
1124
1124
  function un(o, e, n, i = 4, t = 50) {
1125
- let s = 1 / 0, r = -1 / 0, a = 1 / 0, f = -1 / 0, u = 1 / 0, p = -1 / 0;
1126
- for (let g = 0; g < o.length; g += 3) {
1127
- const x = o[g], C = o[g + 1], U = o[g + 2];
1128
- s = Math.min(s, x), r = Math.max(r, x), a = Math.min(a, C), f = Math.max(f, C), u = Math.min(u, U), p = Math.max(p, U);
1125
+ let s = 1 / 0, r = -1 / 0, a = 1 / 0, d = -1 / 0, u = 1 / 0, p = -1 / 0;
1126
+ for (let v = 0; v < o.length; v += 3) {
1127
+ const w = o[v], C = o[v + 1], A = o[v + 2];
1128
+ s = Math.min(s, w), r = Math.max(r, w), a = Math.min(a, C), d = Math.max(d, C), u = Math.min(u, A), p = Math.max(p, A);
1129
1129
  }
1130
- const v = Math.sqrt((r - s) ** 2 + (f - a) ** 2 + (p - u) ** 2) * 0.05, A = je.degToRad(e.fov), F = 2 * Math.tan(A / 2) * t, T = v / F * n.domElement.height * (i / 4);
1131
- return Math.max(1, T);
1130
+ const h = Math.sqrt((r - s) ** 2 + (d - a) ** 2 + (p - u) ** 2) * 0.05, z = Ie.degToRad(e.fov), F = 2 * Math.tan(z / 2) * t, P = h / F * n.domElement.height * (i / 4);
1131
+ return Math.max(1, P);
1132
1132
  }
1133
1133
  function dn(o) {
1134
1134
  if (o.length % 3 !== 0)
1135
1135
  return console.error("points array length is not a multiple of 3:", o), null;
1136
- const e = new zt();
1136
+ const e = new Ct();
1137
1137
  e.setAttribute("position", new xe(o, 3));
1138
1138
  const n = new Float32Array(o.length);
1139
1139
  for (let s = 0; s < o.length; s += 3)
1140
1140
  n[s] = 0, n[s + 1] = 0.847, n[s + 2] = 1;
1141
- e.setAttribute("color", new Ct(n, 3));
1141
+ e.setAttribute("color", new zt(n, 3));
1142
1142
  const i = new At({
1143
1143
  vertexColors: !0,
1144
1144
  size: 1,
@@ -1160,13 +1160,13 @@ function fn(o, e) {
1160
1160
  const a = un(e, i, t, 0.4, 50);
1161
1161
  return r.material.size = a, r;
1162
1162
  }
1163
- const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" }, hn = { class: "buttonGroup-topLeft" }, vn = { class: "buttonGroup-left" }, gn = { class: "buttonGroup-right" }, yn = { class: "buttonGroup-bottom" }, wn = { class: "left-panel" }, xn = { class: "panel-header" }, bn = { class: "panel-body" }, _n = {
1163
+ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-topLeft" }, hn = { class: "buttonGroup-left" }, vn = { class: "buttonGroup-right" }, gn = { class: "buttonGroup-bottom" }, yn = { class: "left-panel" }, wn = { class: "panel-header" }, xn = { class: "panel-body" }, bn = {
1164
1164
  key: 1,
1165
1165
  class: "clipping-content"
1166
- }, Sn = { class: "radio-group" }, zn = { class: "radio-label" }, Cn = { class: "radio-label" }, An = { class: "radio-label" }, Un = { class: "radio-label" }, En = { class: "right-panel" }, Mn = { class: "panel-header" }, Ln = { class: "panel-body" }, kn = {
1166
+ }, _n = { class: "radio-group" }, Sn = { class: "radio-label" }, Cn = { class: "radio-label" }, zn = { class: "radio-label" }, An = { class: "radio-label" }, Un = { class: "right-panel" }, En = { class: "panel-header" }, Mn = { class: "panel-body" }, Ln = {
1167
1167
  key: 0,
1168
1168
  class: "loading-overlay"
1169
- }, Tn = /* @__PURE__ */ Pe({
1169
+ }, Tn = /* @__PURE__ */ ke({
1170
1170
  __name: "threeTrackPathView",
1171
1171
  props: {
1172
1172
  fileBlobs: {},
@@ -1175,22 +1175,22 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
1175
1175
  },
1176
1176
  emits: ["getAnimationData", "getThreeData"],
1177
1177
  setup(o, { emit: e }) {
1178
- const n = e, i = o, t = E(null), s = E(!1), r = E(""), a = E(), f = E(!1), u = E(""), p = E(!1), d = E(""), v = te(null), A = te(null), {
1178
+ const n = e, i = o, t = E(null), s = E(!1), r = E(""), a = E(), d = E(!1), u = E(""), p = E(!1), f = E(""), h = Q(null), z = Q(null), {
1179
1179
  currentModels: F,
1180
- resetView: T,
1181
- initThreeJS: g,
1182
- handleResize: x,
1180
+ resetView: P,
1181
+ initThreeJS: v,
1182
+ handleResize: w,
1183
1183
  getThreeJSObjects: C,
1184
- cleanup: U,
1185
- axesHelperVisible: k,
1186
- toggleAxesVisibility: me
1184
+ cleanup: A,
1185
+ axesHelperVisible: T,
1186
+ toggleAxesVisibility: fe
1187
1187
  } = ft(t), { isAnimating: G, toggleAnimation: Ge, stopAnimation: Re } = pt(C, F), { isClipping: He, activeClippingAxis: L, toggleClipping: $e, updateClippingPlanes: O } = mt(C, F), Xe = () => {
1188
- me();
1189
- }, $ = (c) => {
1190
- f.value = !0, u.value = c, c === "剖面视图" && !He.value && $e();
1191
- }, ee = (c) => {
1192
- p.value = !0, d.value = c, c === "动画仿真" && n("getAnimationData");
1193
- }, he = E([]), X = E([]), qe = R(() => {
1188
+ fe();
1189
+ }, pe = (c) => {
1190
+ d.value = !0, u.value = c, c === "剖面视图" && !He.value && $e();
1191
+ }, me = (c) => {
1192
+ p.value = !0, f.value = c, c === "动画仿真" && n("getAnimationData");
1193
+ }, he = E([]), $ = E([]), qe = R(() => {
1194
1194
  var l;
1195
1195
  return (l = i.trackFileType) == null ? void 0 : l.isUv;
1196
1196
  }), Ye = R(() => {
@@ -1206,29 +1206,29 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
1206
1206
  const c = i.fileBlobs || [];
1207
1207
  return c == null ? void 0 : c[0];
1208
1208
  });
1209
- let j = te(), N = te();
1209
+ let I = Q(), N = Q();
1210
1210
  const Je = () => {
1211
1211
  const { scene: c } = C();
1212
- j.value && c && (Ue(j.value, c), j.value = null);
1212
+ I.value && c && (Ue(I.value, c), I.value = null);
1213
1213
  }, Qe = () => {
1214
1214
  const { scene: c } = C();
1215
1215
  N.value && c && (Ue(N.value, c), N.value = null);
1216
- }, ze = () => {
1216
+ }, Ce = () => {
1217
1217
  Je(), Qe();
1218
1218
  }, et = async (c) => {
1219
- const l = URL.createObjectURL(c), q = await Et(l);
1220
- if (URL.revokeObjectURL(l), kt(q)) {
1221
- const y = await rn(q, i.trackFileType) || [];
1222
- he.value = y;
1223
- const Ce = he.value;
1224
- qe.value && (j.value = cn(C, Ce)), (Ye.value || Ze.value || V.value) && (j.value = fn(C, Ce)), ht(C, j.value);
1219
+ const l = URL.createObjectURL(c), X = await Et(l);
1220
+ if (URL.revokeObjectURL(l), Tt(X)) {
1221
+ const g = await rn(X, i.trackFileType) || [];
1222
+ he.value = g;
1223
+ const ze = he.value;
1224
+ qe.value && (I.value = cn(C, ze)), (Ye.value || Ze.value || V.value) && (I.value = fn(C, ze)), ht(C, I.value);
1225
1225
  }
1226
1226
  }, tt = () => {
1227
1227
  var c, l;
1228
- N.value = Tt(), X.value = ln(he.value), X.value && X.value.length && (Ve(N.value, X.value[0], j.value, new fe(16711680)), (l = (c = A.value) == null ? void 0 : c.add) == null || l.call(c, N.value));
1228
+ N.value = Pt(), $.value = ln(he.value), $.value && $.value.length && (Ve(N.value, $.value[0], I.value, new ue(16711680)), (l = (c = z.value) == null ? void 0 : c.add) == null || l.call(c, N.value));
1229
1229
  };
1230
1230
  lt(() => Ke.value, async (c) => {
1231
- c && (ze(), await et(c), V.value && tt());
1231
+ c && (Ce(), await et(c), V.value && tt());
1232
1232
  }, {
1233
1233
  immediate: !0,
1234
1234
  deep: !0
@@ -1246,163 +1246,116 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
1246
1246
  var c;
1247
1247
  V.value && ((c = a == null ? void 0 : a.value) == null || c.backwardFrame());
1248
1248
  }, at = () => {
1249
- g(), window.addEventListener("resize", x);
1249
+ v(), window.addEventListener("resize", w);
1250
1250
  const c = C();
1251
- A.value = c.scene, A.value && (A.value.name = "CPMPIP");
1251
+ z.value = c.scene, z.value && (z.value.name = "CPMPIP");
1252
1252
  }, rt = () => {
1253
- window.removeEventListener("resize", x), G.value && Re(), ze(), U();
1253
+ window.removeEventListener("resize", w), G.value && Re(), Ce(), A();
1254
1254
  };
1255
1255
  return ct(async () => {
1256
1256
  try {
1257
1257
  at();
1258
1258
  } catch (c) {
1259
- console.error("Three.js 初始化失败:", c), K.error("渲染引擎初始化失败!");
1259
+ console.error("Three.js 初始化失败:", c), Z.error("渲染引擎初始化失败!");
1260
1260
  }
1261
1261
  }), ut(() => {
1262
1262
  rt();
1263
1263
  }), (c, l) => {
1264
- const q = Y("el-scrollbar");
1265
- return Z(), le("div", pn, [
1264
+ const X = q("el-scrollbar");
1265
+ return Y(), ae("div", pn, [
1266
1266
  m("div", {
1267
1267
  ref_key: "threejsContainer",
1268
1268
  ref: t,
1269
1269
  class: "threejs-container"
1270
1270
  }, null, 512),
1271
1271
  m("div", mn, [
1272
- h(w, {
1273
- name: "guanjianjiexi",
1274
- size: "34"
1275
- }),
1276
- h(w, {
1277
- name: "guanjiekongzhi",
1278
- size: "34"
1279
- }),
1280
- h(w, {
1281
- name: "gongyishengcheng",
1282
- size: "34"
1283
- }),
1284
- h(w, {
1285
- name: "buchangshezhi",
1286
- size: "34"
1287
- }),
1288
- h(w, {
1289
- name: "shuchujiagongchengxu",
1290
- size: "34"
1291
- })
1292
- ]),
1293
- m("div", hn, [
1294
- h(w, {
1272
+ y(U, {
1295
1273
  name: "viewReset",
1296
1274
  size: "24",
1297
- onClick: b(T),
1275
+ onClick: x(P),
1298
1276
  title: "重置"
1299
1277
  }, null, 8, ["onClick"]),
1300
- h(w, {
1278
+ y(U, {
1301
1279
  name: "fangda",
1302
1280
  size: "24",
1303
1281
  title: "放大"
1304
1282
  }),
1305
- h(w, {
1283
+ y(U, {
1306
1284
  name: "suoxiao",
1307
1285
  size: "24",
1308
1286
  title: "缩小"
1309
1287
  }),
1310
- h(w, {
1288
+ y(U, {
1311
1289
  name: "lookAround",
1312
1290
  size: "24",
1313
- onClick: b(Ge),
1314
- title: b(G) ? "停止动画" : "动画视图"
1291
+ onClick: x(Ge),
1292
+ title: x(G) ? "停止动画" : "动画视图"
1315
1293
  }, null, 8, ["onClick", "title"]),
1316
- h(w, {
1294
+ y(U, {
1317
1295
  name: "zuobiaoxi",
1318
1296
  size: "24",
1319
- active: b(k),
1297
+ active: x(T),
1320
1298
  onClick: Xe,
1321
1299
  title: "显隐坐标轴"
1322
1300
  }, null, 8, ["active"])
1323
1301
  ]),
1324
- m("div", vn, [
1325
- Ae(c.$slots, "button-left", { switchRightPanel: $ }, void 0, !0),
1326
- h(w, {
1302
+ m("div", hn, [
1303
+ Ae(c.$slots, "button-left", { switchRightPanel: pe }, void 0, !0),
1304
+ y(U, {
1327
1305
  name: "jiegoushu",
1328
1306
  size: "24",
1329
- onClick: l[0] || (l[0] = (y) => $("场景树")),
1330
- active: f.value && u.value === "场景树",
1307
+ onClick: l[0] || (l[0] = (g) => pe("场景树")),
1308
+ active: d.value && u.value === "场景树",
1331
1309
  title: "场景树"
1332
1310
  }, null, 8, ["active"]),
1333
- h(w, {
1311
+ y(U, {
1334
1312
  name: "clipping",
1335
1313
  size: "24",
1336
- onClick: l[1] || (l[1] = (y) => $("剖面视图")),
1337
- active: f.value && u.value === "剖面视图",
1314
+ onClick: l[1] || (l[1] = (g) => pe("剖面视图")),
1315
+ active: d.value && u.value === "剖面视图",
1338
1316
  title: "剖面视图"
1339
- }, null, 8, ["active"]),
1340
- h(w, {
1341
- name: "donghuafangzhen",
1342
- size: "24",
1343
- onClick: l[2] || (l[2] = (y) => $("场景树3"))
1344
- }),
1345
- h(w, {
1346
- name: "donghuafangzhen",
1347
- size: "24",
1348
- onClick: l[3] || (l[3] = (y) => $("场景4"))
1349
- })
1317
+ }, null, 8, ["active"])
1350
1318
  ]),
1351
- m("div", gn, [
1352
- Ae(c.$slots, "button-right", { switchRightPanel: ee }, void 0, !0),
1353
- h(w, {
1354
- name: "donghuafangzhen",
1355
- size: "24"
1356
- }),
1357
- h(w, {
1319
+ m("div", vn, [
1320
+ Ae(c.$slots, "button-right", { switchRightPanel: me }, void 0, !0),
1321
+ y(U, {
1358
1322
  name: "guanjiekongzhi",
1359
1323
  size: "24",
1360
- onClick: l[4] || (l[4] = (y) => ee("关节控制")),
1361
- active: p.value && d.value === "关节控制",
1324
+ onClick: l[2] || (l[2] = (g) => me("关节控制")),
1325
+ active: p.value && f.value === "关节控制",
1362
1326
  title: "关节控制"
1363
1327
  }, null, 8, ["active"]),
1364
- h(w, {
1328
+ y(U, {
1365
1329
  name: "donghuafangzhen",
1366
1330
  size: "24",
1367
1331
  title: "动画仿真",
1368
- onClick: l[5] || (l[5] = (y) => ee("动画仿真")),
1369
- active: p.value && d.value === "动画仿真"
1370
- }, null, 8, ["active"]),
1371
- h(w, {
1372
- name: "donghuafangzhen",
1373
- size: "24",
1374
- title: "urdf动画",
1375
- onClick: l[6] || (l[6] = (y) => ee("urdf动画")),
1376
- active: p.value && d.value === "urdf动画"
1377
- }, null, 8, ["active"]),
1378
- h(w, {
1379
- name: "donghuafangzhen",
1380
- size: "24"
1381
- })
1332
+ onClick: l[3] || (l[3] = (g) => me("动画仿真")),
1333
+ active: p.value && f.value === "动画仿真"
1334
+ }, null, 8, ["active"])
1382
1335
  ]),
1383
- m("div", yn, [
1384
- h(w, {
1336
+ m("div", gn, [
1337
+ y(U, {
1385
1338
  name: "kuaitui",
1386
1339
  size: "24",
1387
1340
  backgroundColor: "#ffffff",
1388
1341
  title: "快退",
1389
1342
  onClick: st
1390
1343
  }),
1391
- h(w, {
1344
+ y(U, {
1392
1345
  name: "bofang",
1393
1346
  size: "24",
1394
1347
  backgroundColor: "#ffffff",
1395
1348
  title: "播放",
1396
1349
  onClick: nt
1397
1350
  }),
1398
- h(w, {
1351
+ y(U, {
1399
1352
  name: "kuaijin",
1400
1353
  size: "24",
1401
1354
  backgroundColor: "#ffffff",
1402
1355
  title: "快进",
1403
1356
  onClick: ot
1404
1357
  }),
1405
- h(w, {
1358
+ y(U, {
1406
1359
  name: "zanting",
1407
1360
  size: "24",
1408
1361
  backgroundColor: "#ffffff",
@@ -1410,74 +1363,74 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
1410
1363
  onClick: it
1411
1364
  })
1412
1365
  ]),
1413
- I(m("div", wn, [
1414
- m("div", xn, [
1415
- m("span", null, J(u.value), 1),
1366
+ j(m("div", yn, [
1367
+ m("div", wn, [
1368
+ m("span", null, K(u.value), 1),
1416
1369
  m("span", {
1417
1370
  class: "close",
1418
- onClick: l[7] || (l[7] = (y) => f.value = !1)
1371
+ onClick: l[4] || (l[4] = (g) => d.value = !1)
1419
1372
  }, " X ")
1420
1373
  ]),
1421
- m("div", bn, [
1422
- h(q, { height: "100%" }, {
1423
- default: de(() => [
1424
- u.value === "场景树" ? (Z(), dt(Mt, {
1374
+ m("div", xn, [
1375
+ y(X, { height: "100%" }, {
1376
+ default: ce(() => [
1377
+ u.value === "场景树" ? (Y(), dt(Mt, {
1425
1378
  key: 0,
1426
- model: v.value
1379
+ model: h.value
1427
1380
  }, null, 8, ["model"])) : ve("", !0),
1428
- u.value === "剖面视图" ? (Z(), le("div", _n, [
1429
- m("div", Sn, [
1430
- m("label", zn, [
1431
- I(m("input", {
1381
+ u.value === "剖面视图" ? (Y(), ae("div", bn, [
1382
+ m("div", _n, [
1383
+ m("label", Sn, [
1384
+ j(m("input", {
1432
1385
  type: "radio",
1433
1386
  name: "clipping-axis",
1434
1387
  value: "none",
1435
- "onUpdate:modelValue": l[8] || (l[8] = (y) => ne(L) ? L.value = y : null),
1436
- onChange: l[9] || (l[9] = //@ts-ignore
1437
- (...y) => b(O) && b(O)(...y))
1388
+ "onUpdate:modelValue": l[5] || (l[5] = (g) => ee(L) ? L.value = g : null),
1389
+ onChange: l[6] || (l[6] = //@ts-ignore
1390
+ (...g) => x(O) && x(O)(...g))
1438
1391
  }, null, 544), [
1439
- [ie, b(L)]
1392
+ [te, x(L)]
1440
1393
  ]),
1441
- l[17] || (l[17] = m("span", { class: "radio-text" }, "无切割", -1))
1394
+ l[14] || (l[14] = m("span", { class: "radio-text" }, "无切割", -1))
1442
1395
  ]),
1443
1396
  m("label", Cn, [
1444
- I(m("input", {
1397
+ j(m("input", {
1445
1398
  type: "radio",
1446
1399
  name: "clipping-axis",
1447
1400
  value: "x",
1448
- "onUpdate:modelValue": l[10] || (l[10] = (y) => ne(L) ? L.value = y : null),
1449
- onChange: l[11] || (l[11] = //@ts-ignore
1450
- (...y) => b(O) && b(O)(...y))
1401
+ "onUpdate:modelValue": l[7] || (l[7] = (g) => ee(L) ? L.value = g : null),
1402
+ onChange: l[8] || (l[8] = //@ts-ignore
1403
+ (...g) => x(O) && x(O)(...g))
1451
1404
  }, null, 544), [
1452
- [ie, b(L)]
1405
+ [te, x(L)]
1453
1406
  ]),
1454
- l[18] || (l[18] = m("span", { class: "radio-text" }, "X轴切割", -1))
1407
+ l[15] || (l[15] = m("span", { class: "radio-text" }, "X轴切割", -1))
1455
1408
  ]),
1456
- m("label", An, [
1457
- I(m("input", {
1409
+ m("label", zn, [
1410
+ j(m("input", {
1458
1411
  type: "radio",
1459
1412
  name: "clipping-axis",
1460
1413
  value: "y",
1461
- "onUpdate:modelValue": l[12] || (l[12] = (y) => ne(L) ? L.value = y : null),
1462
- onChange: l[13] || (l[13] = //@ts-ignore
1463
- (...y) => b(O) && b(O)(...y))
1414
+ "onUpdate:modelValue": l[9] || (l[9] = (g) => ee(L) ? L.value = g : null),
1415
+ onChange: l[10] || (l[10] = //@ts-ignore
1416
+ (...g) => x(O) && x(O)(...g))
1464
1417
  }, null, 544), [
1465
- [ie, b(L)]
1418
+ [te, x(L)]
1466
1419
  ]),
1467
- l[19] || (l[19] = m("span", { class: "radio-text" }, "Y轴切割", -1))
1420
+ l[16] || (l[16] = m("span", { class: "radio-text" }, "Y轴切割", -1))
1468
1421
  ]),
1469
- m("label", Un, [
1470
- I(m("input", {
1422
+ m("label", An, [
1423
+ j(m("input", {
1471
1424
  type: "radio",
1472
1425
  name: "clipping-axis",
1473
1426
  value: "z",
1474
- "onUpdate:modelValue": l[14] || (l[14] = (y) => ne(L) ? L.value = y : null),
1475
- onChange: l[15] || (l[15] = //@ts-ignore
1476
- (...y) => b(O) && b(O)(...y))
1427
+ "onUpdate:modelValue": l[11] || (l[11] = (g) => ee(L) ? L.value = g : null),
1428
+ onChange: l[12] || (l[12] = //@ts-ignore
1429
+ (...g) => x(O) && x(O)(...g))
1477
1430
  }, null, 544), [
1478
- [ie, b(L)]
1431
+ [te, x(L)]
1479
1432
  ]),
1480
- l[20] || (l[20] = m("span", { class: "radio-text" }, "Z轴切割", -1))
1433
+ l[17] || (l[17] = m("span", { class: "radio-text" }, "Z轴切割", -1))
1481
1434
  ])
1482
1435
  ])
1483
1436
  ])) : ve("", !0)
@@ -1486,46 +1439,46 @@ const pn = { class: "obj-viewer-container" }, mn = { class: "buttonGroup-top" },
1486
1439
  })
1487
1440
  ])
1488
1441
  ], 512), [
1489
- [oe, f.value]
1442
+ [ne, d.value]
1490
1443
  ]),
1491
- I(m("div", En, [
1492
- m("div", Mn, [
1493
- m("span", null, J(d.value), 1),
1444
+ j(m("div", Un, [
1445
+ m("div", En, [
1446
+ m("span", null, K(f.value), 1),
1494
1447
  m("span", {
1495
1448
  class: "close",
1496
- onClick: l[16] || (l[16] = (y) => p.value = !1)
1449
+ onClick: l[13] || (l[13] = (g) => p.value = !1)
1497
1450
  }, " X ")
1498
1451
  ]),
1499
- m("div", Ln, [
1500
- h(q, { height: "100%" }, {
1501
- default: de(() => [
1502
- I(h(Lt, { model: v.value }, null, 8, ["model"]), [
1503
- [oe, d.value === "关节控制"]
1452
+ m("div", Mn, [
1453
+ y(X, { height: "100%" }, {
1454
+ default: ce(() => [
1455
+ j(y(Lt, { model: h.value }, null, 8, ["model"]), [
1456
+ [ne, f.value === "关节控制"]
1504
1457
  ]),
1505
- I(h(Wt, {
1458
+ j(y(Wt, {
1506
1459
  ref_key: "animationPanelRef",
1507
1460
  ref: a,
1508
- cloud: b(j),
1509
- knife: b(N),
1510
- vectors: X.value
1461
+ cloud: x(I),
1462
+ knife: x(N),
1463
+ vectors: $.value
1511
1464
  }, null, 8, ["cloud", "knife", "vectors"]), [
1512
- [oe, d.value === "动画仿真" && V.value]
1465
+ [ne, f.value === "动画仿真" && V.value]
1513
1466
  ])
1514
1467
  ]),
1515
1468
  _: 1
1516
1469
  })
1517
1470
  ])
1518
1471
  ], 512), [
1519
- [oe, p.value]
1472
+ [ne, p.value]
1520
1473
  ]),
1521
- s.value ? (Z(), le("div", kn, [
1522
- l[21] || (l[21] = m("div", { class: "loading-spinner" }, null, -1)),
1523
- m("p", null, J(r.value), 1)
1474
+ s.value ? (Y(), ae("div", Ln, [
1475
+ l[18] || (l[18] = m("div", { class: "loading-spinner" }, null, -1)),
1476
+ m("p", null, K(r.value), 1)
1524
1477
  ])) : ve("", !0)
1525
1478
  ]);
1526
1479
  };
1527
1480
  }
1528
- }), Wn = /* @__PURE__ */ Ie(Tn, [["__scopeId", "data-v-e8652636"]]);
1481
+ }), Nn = /* @__PURE__ */ je(Tn, [["__scopeId", "data-v-48ba356f"]]);
1529
1482
  export {
1530
- Wn as default
1483
+ Nn as default
1531
1484
  };