ss-component-new 1.2.57 → 1.2.59

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 (110) hide show
  1. package/dist/animationData-CEkMmPAJ.js +111 -0
  2. package/dist/animationData-FLuoH13j.cjs +1 -0
  3. package/dist/{iconfont-Du5a0yIR.js → iconfont-Dp3iGl32.js} +318 -244
  4. package/dist/iconfont-ji7A-_XJ.cjs +1 -0
  5. package/dist/icons/svg/CopyAddMenu.svg +1 -0
  6. package/dist/icons/svg/DeleteMenu.svg +1 -0
  7. package/dist/icons/svg/FixedMenu.svg +1 -0
  8. package/dist/icons/svg//345/273/272/346/250/241/345/210/206/346/236/220.svg +1 -0
  9. package/dist/icons/svg//347/256/227/346/263/225.svg +1 -1
  10. package/dist/{index-BMMCYEsB.js → index--qwZeW47.js} +1 -1
  11. package/dist/{index-DtlFU8RR.cjs → index-B1U77nyf.cjs} +1 -1
  12. package/dist/index-BEfSpHE6.js +17 -0
  13. package/dist/{index-CEkY4nFt.js → index-BFHCLxvz.js} +1 -1
  14. package/dist/index-BN4opOSk.cjs +1 -0
  15. package/dist/{index-B55haWsS.js → index-BNES2eKm.js} +1 -1
  16. package/dist/{index-kXlrQUA8.js → index-BTwRUubF.js} +2 -2
  17. package/dist/{index-DmfzZIKw.cjs → index-BYIlecoJ.cjs} +1 -1
  18. package/dist/{index-D0NMKMU8.cjs → index-BgwYXT31.cjs} +1 -1
  19. package/dist/{index-hL7adbcf.js → index-BiUFu7a_.js} +1500 -1636
  20. package/dist/{index-DYopbovE.js → index-BooTgcW2.js} +1633 -1632
  21. package/dist/{index-CJVA_tHw.cjs → index-BxEjroD6.cjs} +1 -1
  22. package/dist/index-C14Eek69.js +32 -0
  23. package/dist/index-C8IFPtAJ.js +12233 -0
  24. package/dist/index-C9C84gkB.cjs +1 -0
  25. package/dist/{index-BO7R6DCb.cjs → index-CDW8XzWT.cjs} +1 -1
  26. package/dist/index-CHzlphv9.cjs +1 -0
  27. package/dist/{index-vrO7i-BX.cjs → index-CWG2zhJZ.cjs} +1 -1
  28. package/dist/{index-DURGsNBh.js → index-ChyicQIl.js} +1 -1
  29. package/dist/index-D57Bv8co.cjs +1 -0
  30. package/dist/{index-BPiXU1VF.js → index-DAJoy_Z5.js} +1 -1
  31. package/dist/{index-DhbAgrix.cjs → index-DIpWkFjh.cjs} +1 -1
  32. package/dist/index-DLU6Qv3w.cjs +15 -0
  33. package/dist/{index-BQWUpvXk.js → index-DN40xEbb.js} +2 -2
  34. package/dist/{index-HsZY-XbO.js → index-DNs7ujiq.js} +1 -1
  35. package/dist/{index-C8x2JQx7.cjs → index-DXGiAs1G.cjs} +1 -1
  36. package/dist/{index-D3cFqWf8.js → index-DZQjq0ZR.js} +1 -1
  37. package/dist/index-DkNldOC0.cjs +1 -0
  38. package/dist/{index-CgHWXZbW.cjs → index-DuamAhUi.cjs} +1 -1
  39. package/dist/index-DvgAOa6m.js +2858 -0
  40. package/dist/{index-By-PfzqJ.js → index-FUWILZwY.js} +16 -16
  41. package/dist/{index-C9QGZutp.cjs → index-JXXdn01K.cjs} +1 -1
  42. package/dist/{index-Du-GlV8c.cjs → index-LVKvj2hU.cjs} +1 -1
  43. package/dist/{index-D2vsFTnY.js → index-OLQpbvuS.js} +6 -6
  44. package/dist/{index-JGSZNtiO.js → index-YoJfAd5X.js} +1 -1
  45. package/dist/{index-BgLb2tvo.js → index-bcbWOGXs.js} +3 -3
  46. package/dist/{index-cOj9uZ5B.cjs → index-gcSJbApQ.cjs} +1 -1
  47. package/dist/index-lP-_9Gsb.cjs +1 -0
  48. package/dist/index-qDBAJZN2.cjs +1 -0
  49. package/dist/{index-GShz2NEi.js → index-rPWz6KHn.js} +2 -2
  50. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bff2sYnQ.cjs +37 -0
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DkxmFS5P.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-D6uh0ooh.js} +10026 -10039
  52. package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-DlyCfLDJ.cjs +1 -0
  53. package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-Dt5lXvbN.js +195 -0
  54. package/dist/{index.vue_vue_type_style_index_1_lang-BEmLh6pe.js → index.vue_vue_type_style_index_1_lang-BUhvhTqt.js} +1 -1
  55. package/dist/{index.vue_vue_type_style_index_1_lang-Dsas9C9w.cjs → index.vue_vue_type_style_index_1_lang-DDYxgdQk.cjs} +1 -1
  56. package/dist/{main-B59ixZA7.js → main-ChUyYPuq.js} +2 -2
  57. package/dist/{main-B3gx12Xo.cjs → main-D-bdppOV.cjs} +1 -1
  58. package/dist/ss-component.cjs +1 -1
  59. package/dist/ss-component.css +2 -2
  60. package/dist/ss-component.js +6 -6
  61. package/dist/ss-component2.cjs +1 -1
  62. package/dist/ss-component2.js +10 -10
  63. package/dist/{threeModel-CxRJigCx.cjs → threeModel-CDFo3As-.cjs} +1 -1
  64. package/dist/{threeModel-ardn7Q2K.js → threeModel-DcuAlWjb.js} +2 -2
  65. package/dist/{threePreview-L8T-JdQL.js → threePreview-DhMkG1np.js} +350 -380
  66. package/dist/threePreview-q4R-oAs6.cjs +1 -0
  67. package/dist/threeSceneView-CAsVH82L.cjs +5 -0
  68. package/dist/threeSceneView-Dav7AGkH.js +1288 -0
  69. package/dist/threeSceneViewForCPMPIP-9__8NGa5.cjs +5 -0
  70. package/dist/threeSceneViewForCPMPIP-DxFYivgN.js +599 -0
  71. package/dist/threeTrackPathView-B7yrSLKq.cjs +370 -0
  72. package/dist/{threeTrackPathView-gTDb6Ckq.js → threeTrackPathView-DXCMl3aZ.js} +307 -376
  73. package/dist/{xlsx-ByPOQ6N_.js → threeViewerHost-BNnzz6WM.js} +4414 -4032
  74. package/dist/threeViewerHost-D70yS3z2.cjs +104 -0
  75. package/dist/{workpieceTreePanel-GlMrvoGI.js → workpieceTreePanel-CCbVIIlm.js} +92 -101
  76. package/dist/workpieceTreePanel-KdP9UaVe.cjs +1 -0
  77. package/package.json +1 -1
  78. package/public/icons/svg/CopyAddMenu.svg +1 -0
  79. package/public/icons/svg/DeleteMenu.svg +1 -0
  80. package/public/icons/svg/FixedMenu.svg +1 -0
  81. package/public/icons/svg//345/273/272/346/250/241/345/210/206/346/236/220.svg +1 -0
  82. package/public/icons/svg//347/256/227/346/263/225.svg +1 -1
  83. package/dist/animationData-CSjRG83z.cjs +0 -1
  84. package/dist/animationData-DgukZCiZ.js +0 -69
  85. package/dist/dataUtil-Bg8jgTaT.js +0 -52
  86. package/dist/dataUtil-CflXOlIl.cjs +0 -1
  87. package/dist/fileUtil-CVIZ039M.js +0 -99
  88. package/dist/fileUtil-DugRTZPB.cjs +0 -1
  89. package/dist/iconfont-BUDQryy4.cjs +0 -1
  90. package/dist/index-BAkz3vaY.js +0 -12229
  91. package/dist/index-BE76NHis.js +0 -2848
  92. package/dist/index-CXGkiovm.cjs +0 -1
  93. package/dist/index-CaV-J52G.cjs +0 -1
  94. package/dist/index-D4y4pCNq.cjs +0 -1
  95. package/dist/index-DKQuP1UM.cjs +0 -1
  96. package/dist/index-DhPNGzbc.cjs +0 -1
  97. package/dist/index-fw0RZg-d.cjs +0 -15
  98. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-til9urRl.cjs +0 -37
  99. package/dist/index.vue_vue_type_style_index_0_scoped_92477073_lang-5Hi_RNl1.cjs +0 -1
  100. package/dist/index.vue_vue_type_style_index_0_scoped_92477073_lang-DIFWhOl8.js +0 -212
  101. package/dist/threePreview-5-O-sZIc.cjs +0 -1
  102. package/dist/threeSceneView-BYl4rYgi.js +0 -1369
  103. package/dist/threeSceneView-igg9HZ8X.cjs +0 -5
  104. package/dist/threeSceneViewForCPMPIP-C-o-rOZ9.js +0 -662
  105. package/dist/threeSceneViewForCPMPIP-DfPj5iau.cjs +0 -5
  106. package/dist/threeTrackPathView-CgjLFXmL.cjs +0 -370
  107. package/dist/threeViewerHost-DvAkN_z-.js +0 -322
  108. package/dist/threeViewerHost-PGblwq3d.cjs +0 -1
  109. package/dist/workpieceTreePanel-Cr4nTOQE.cjs +0 -1
  110. package/dist/xlsx-BPHygxEf.cjs +0 -104
@@ -1,21 +1,21 @@
1
- import { defineComponent as We, ref as D, shallowRef as he, computed as q, watch as Ge, onMounted as He, onBeforeUnmount as Ne, resolveComponent as qe, createElementBlock as te, openBlock as $, createElementVNode as c, withDirectives as j, createCommentVNode as ne, createVNode as m, unref as S, renderSlot as ve, toDisplayString as ie, withCtx as ge, createBlock as $e, isRef as X, vModelRadio as Y, vShow as se } from "vue";
2
- import { u as Xe, a as Ye, b as Ze, f as Je, d as Ke } from "./iconfont-Du5a0yIR.js";
3
- import { aT as Qe, aU as le, aV as ce, aK as V, aW as et, B as de, aS as Ce, V as L, aX as tt, aY as Q, aZ as _e, ab as Ee, a_ as ee, z as nt, a$ as H, b0 as it, O as st, Q as Ue, R as ot, _ as at, av as rt, aD as lt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZPnZF-N.js";
4
- import { r as ct } from "./fileUtil-CVIZ039M.js";
5
- import { E as dt } from "./index-DsSA-OiE.js";
6
- import { U as ut, J as ft } from "./urdfTree-3Jd59vvU.js";
7
- import { T as y } from "./svgIcon-D-_fXUBL.js";
8
- import { i as pt } from "./isString-RZ1z_1Z2.js";
9
- import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
- const ye = new de(), Z = new L();
11
- class Ae extends Qe {
1
+ import { defineComponent as Ve, ref as T, shallowRef as ue, computed as V, watch as He, onMounted as Ne, onBeforeUnmount as qe, resolveComponent as $e, createElementBlock as fe, openBlock as H, createElementVNode as g, withDirectives as Z, createCommentVNode as J, createVNode as h, unref as R, renderSlot as pe, toDisplayString as K, withCtx as me, createBlock as he, vShow as Q } from "vue";
2
+ import { u as Xe, a as Ye, b as Ze, C as Je, f as Ke, d as Qe } from "./iconfont-Dp3iGl32.js";
3
+ import { aT as et, aU as ie, aV as se, aK as O, aW as tt, B as oe, aS as Se, V as U, aX as nt, aY as X, aZ as ze, ab as Ce, a_ as Y, z as it, a$ as W, b0 as st, O as ot, Q as _e, R as at, _ as rt, av as lt, aD as ct } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BZPnZF-N.js";
4
+ import { c as dt } from "./threeViewerHost-BNnzz6WM.js";
5
+ import { E as ut } from "./index-DsSA-OiE.js";
6
+ import { U as ft, J as pt } from "./urdfTree-3Jd59vvU.js";
7
+ import { T as v } from "./svgIcon-D-_fXUBL.js";
8
+ import { i as mt } from "./isString-RZ1z_1Z2.js";
9
+ import { _ as ht } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const ve = new oe(), N = new U();
11
+ class Ee extends et {
12
12
  /**
13
13
  * Constructs a new line segments geometry.
14
14
  */
15
15
  constructor() {
16
16
  super(), this.isLineSegmentsGeometry = !0, this.type = "LineSegmentsGeometry";
17
17
  const e = [-1, 2, 0, 1, 2, 0, -1, 1, 0, 1, 1, 0, -1, 0, 0, 1, 0, 0, -1, -1, 0, 1, -1, 0], n = [-1, 2, 1, 2, -1, 1, 1, 1, -1, -1, 1, -1, -1, -2, 1, -2], i = [0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5];
18
- this.setIndex(i), this.setAttribute("position", new le(e, 3)), this.setAttribute("uv", new le(n, 2));
18
+ this.setIndex(i), this.setAttribute("position", new ie(e, 3)), this.setAttribute("uv", new ie(n, 2));
19
19
  }
20
20
  /**
21
21
  * Applies the given 4x4 transformation matrix to the geometry.
@@ -37,8 +37,8 @@ class Ae extends Qe {
37
37
  setPositions(e) {
38
38
  let n;
39
39
  e instanceof Float32Array ? n = e : Array.isArray(e) && (n = new Float32Array(e));
40
- const i = new ce(n, 6, 1);
41
- return this.setAttribute("instanceStart", new V(i, 3, 0)), this.setAttribute("instanceEnd", new V(i, 3, 3)), this.instanceCount = this.attributes.instanceStart.count, this.computeBoundingBox(), this.computeBoundingSphere(), this;
40
+ const i = new se(n, 6, 1);
41
+ return this.setAttribute("instanceStart", new O(i, 3, 0)), this.setAttribute("instanceEnd", new O(i, 3, 3)), this.instanceCount = this.attributes.instanceStart.count, this.computeBoundingBox(), this.computeBoundingSphere(), this;
42
42
  }
43
43
  /**
44
44
  * Sets the given line colors for this geometry. The length must be a multiple of six since
@@ -50,8 +50,8 @@ class Ae extends Qe {
50
50
  setColors(e) {
51
51
  let n;
52
52
  e instanceof Float32Array ? n = e : Array.isArray(e) && (n = new Float32Array(e));
53
- const i = new ce(n, 6, 1);
54
- return this.setAttribute("instanceColorStart", new V(i, 3, 0)), this.setAttribute("instanceColorEnd", new V(i, 3, 3)), this;
53
+ const i = new se(n, 6, 1);
54
+ return this.setAttribute("instanceColorStart", new O(i, 3, 0)), this.setAttribute("instanceColorEnd", new O(i, 3, 3)), this;
55
55
  }
56
56
  /**
57
57
  * Setups this line segments geometry from the given wireframe geometry.
@@ -78,7 +78,7 @@ class Ae extends Qe {
78
78
  * @return {LineSegmentsGeometry} A reference to this geometry.
79
79
  */
80
80
  fromMesh(e) {
81
- return this.fromWireframeGeometry(new et(e.geometry)), this;
81
+ return this.fromWireframeGeometry(new tt(e.geometry)), this;
82
82
  }
83
83
  /**
84
84
  * Setups this line segments geometry from the given line segments.
@@ -92,40 +92,40 @@ class Ae extends Qe {
92
92
  return this.setPositions(n.attributes.position.array), this;
93
93
  }
94
94
  computeBoundingBox() {
95
- this.boundingBox === null && (this.boundingBox = new de());
95
+ this.boundingBox === null && (this.boundingBox = new oe());
96
96
  const e = this.attributes.instanceStart, n = this.attributes.instanceEnd;
97
- e !== void 0 && n !== void 0 && (this.boundingBox.setFromBufferAttribute(e), ye.setFromBufferAttribute(n), this.boundingBox.union(ye));
97
+ e !== void 0 && n !== void 0 && (this.boundingBox.setFromBufferAttribute(e), ve.setFromBufferAttribute(n), this.boundingBox.union(ve));
98
98
  }
99
99
  computeBoundingSphere() {
100
- this.boundingSphere === null && (this.boundingSphere = new Ce()), this.boundingBox === null && this.computeBoundingBox();
100
+ this.boundingSphere === null && (this.boundingSphere = new Se()), this.boundingBox === null && this.computeBoundingBox();
101
101
  const e = this.attributes.instanceStart, n = this.attributes.instanceEnd;
102
102
  if (e !== void 0 && n !== void 0) {
103
103
  const i = this.boundingSphere.center;
104
104
  this.boundingBox.getCenter(i);
105
105
  let t = 0;
106
- for (let r = 0, l = e.count; r < l; r++)
107
- Z.fromBufferAttribute(e, r), t = Math.max(t, i.distanceToSquared(Z)), Z.fromBufferAttribute(n, r), t = Math.max(t, i.distanceToSquared(Z));
106
+ for (let o = 0, r = e.count; o < r; o++)
107
+ N.fromBufferAttribute(e, o), t = Math.max(t, i.distanceToSquared(N)), N.fromBufferAttribute(n, o), t = Math.max(t, i.distanceToSquared(N));
108
108
  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);
109
109
  }
110
110
  }
111
111
  toJSON() {
112
112
  }
113
113
  }
114
- ee.line = {
114
+ Y.line = {
115
115
  worldUnits: { value: 1 },
116
116
  linewidth: { value: 1 },
117
- resolution: { value: new Ee(1, 1) },
117
+ resolution: { value: new Ce(1, 1) },
118
118
  dashOffset: { value: 0 },
119
119
  dashScale: { value: 1 },
120
120
  dashSize: { value: 1 },
121
121
  gapSize: { value: 1 }
122
122
  // todo FIX - maybe change to totalSize
123
123
  };
124
- Q.line = {
125
- uniforms: _e.merge([
126
- ee.common,
127
- ee.fog,
128
- ee.line
124
+ X.line = {
125
+ uniforms: ze.merge([
126
+ Y.common,
127
+ Y.fog,
128
+ Y.line
129
129
  ]),
130
130
  vertexShader: (
131
131
  /* glsl */
@@ -505,7 +505,7 @@ Q.line = {
505
505
  `
506
506
  )
507
507
  };
508
- class ue extends tt {
508
+ class ae extends nt {
509
509
  /**
510
510
  * Constructs a new line segments geometry.
511
511
  *
@@ -518,9 +518,9 @@ class ue extends tt {
518
518
  constructor(e) {
519
519
  super({
520
520
  type: "LineMaterial",
521
- uniforms: _e.clone(Q.line.uniforms),
522
- vertexShader: Q.line.vertexShader,
523
- fragmentShader: Q.line.fragmentShader,
521
+ uniforms: ze.clone(X.line.uniforms),
522
+ vertexShader: X.line.vertexShader,
523
+ fragmentShader: X.line.fragmentShader,
524
524
  clipping: !0
525
525
  // required for clipping support
526
526
  }), this.isLineMaterial = !0, this.setValues(e);
@@ -660,20 +660,20 @@ class ue extends tt {
660
660
  this.defines && (e === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), e === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
661
661
  }
662
662
  }
663
- const oe = new H(), we = new L(), xe = new L(), w = new H(), x = new H(), U = new H(), ae = new L(), re = new st(), b = new it(), be = new L(), J = new de(), K = new Ce(), A = new H();
664
- let M, I;
665
- function Se(s, e, n) {
666
- return A.set(0, 0, -e, 1).applyMatrix4(s.projectionMatrix), A.multiplyScalar(1 / A.w), A.x = I / n.width, A.y = I / n.height, A.applyMatrix4(s.projectionMatrixInverse), A.multiplyScalar(1 / A.w), Math.abs(Math.max(A.x, A.y));
663
+ const ee = new W(), ge = new U(), ye = new U(), y = new W(), w = new W(), C = new W(), te = new U(), ne = new ot(), x = new st(), we = new U(), q = new oe(), $ = new Se(), _ = new W();
664
+ let E, B;
665
+ function xe(s, e, n) {
666
+ return _.set(0, 0, -e, 1).applyMatrix4(s.projectionMatrix), _.multiplyScalar(1 / _.w), _.x = B / n.width, _.y = B / n.height, _.applyMatrix4(s.projectionMatrixInverse), _.multiplyScalar(1 / _.w), Math.abs(Math.max(_.x, _.y));
667
667
  }
668
- function ht(s, e) {
669
- const n = s.matrixWorld, i = s.geometry, t = i.attributes.instanceStart, r = i.attributes.instanceEnd, l = Math.min(i.instanceCount, t.count);
670
- for (let a = 0, d = l; a < d; a++) {
671
- b.start.fromBufferAttribute(t, a), b.end.fromBufferAttribute(r, a), b.applyMatrix4(n);
672
- const u = new L(), f = new L();
673
- M.distanceSqToSegment(b.start, b.end, f, u), f.distanceTo(u) < I * 0.5 && e.push({
668
+ function vt(s, e) {
669
+ const n = s.matrixWorld, i = s.geometry, t = i.attributes.instanceStart, o = i.attributes.instanceEnd, r = Math.min(i.instanceCount, t.count);
670
+ for (let a = 0, c = r; a < c; a++) {
671
+ x.start.fromBufferAttribute(t, a), x.end.fromBufferAttribute(o, a), x.applyMatrix4(n);
672
+ const u = new U(), f = new U();
673
+ E.distanceSqToSegment(x.start, x.end, f, u), f.distanceTo(u) < B * 0.5 && e.push({
674
674
  point: f,
675
675
  pointOnLine: u,
676
- distance: M.origin.distanceTo(f),
676
+ distance: E.origin.distanceTo(f),
677
677
  object: s,
678
678
  face: null,
679
679
  faceIndex: a,
@@ -682,47 +682,47 @@ function ht(s, e) {
682
682
  });
683
683
  }
684
684
  }
685
- function vt(s, e, n) {
686
- const i = e.projectionMatrix, r = s.material.resolution, l = s.matrixWorld, a = s.geometry, d = a.attributes.instanceStart, u = a.attributes.instanceEnd, f = Math.min(a.instanceCount, d.count), v = -e.near;
687
- M.at(1, U), U.w = 1, U.applyMatrix4(e.matrixWorldInverse), U.applyMatrix4(i), U.multiplyScalar(1 / U.w), U.x *= r.x / 2, U.y *= r.y / 2, U.z = 0, ae.copy(U), re.multiplyMatrices(e.matrixWorldInverse, l);
688
- for (let h = 0, P = f; h < P; h++) {
689
- if (w.fromBufferAttribute(d, h), x.fromBufferAttribute(u, h), w.w = 1, x.w = 1, w.applyMatrix4(re), x.applyMatrix4(re), w.z > v && x.z > v)
685
+ function gt(s, e, n) {
686
+ const i = e.projectionMatrix, o = s.material.resolution, r = s.matrixWorld, a = s.geometry, c = a.attributes.instanceStart, u = a.attributes.instanceEnd, f = Math.min(a.instanceCount, c.count), p = -e.near;
687
+ E.at(1, C), C.w = 1, C.applyMatrix4(e.matrixWorldInverse), C.applyMatrix4(i), C.multiplyScalar(1 / C.w), C.x *= o.x / 2, C.y *= o.y / 2, C.z = 0, te.copy(C), ne.multiplyMatrices(e.matrixWorldInverse, r);
688
+ for (let m = 0, M = f; m < M; m++) {
689
+ if (y.fromBufferAttribute(c, m), w.fromBufferAttribute(u, m), y.w = 1, w.w = 1, y.applyMatrix4(ne), w.applyMatrix4(ne), y.z > p && w.z > p)
690
690
  continue;
691
- if (w.z > v) {
692
- const E = w.z - x.z, B = (w.z - v) / E;
693
- w.lerp(x, B);
694
- } else if (x.z > v) {
695
- const E = x.z - w.z, B = (x.z - v) / E;
696
- x.lerp(w, B);
691
+ if (y.z > p) {
692
+ const z = y.z - w.z, A = (y.z - p) / z;
693
+ y.lerp(w, A);
694
+ } else if (w.z > p) {
695
+ const z = w.z - y.z, A = (w.z - p) / z;
696
+ w.lerp(y, A);
697
697
  }
698
- w.applyMatrix4(i), x.applyMatrix4(i), w.multiplyScalar(1 / w.w), x.multiplyScalar(1 / x.w), w.x *= r.x / 2, w.y *= r.y / 2, x.x *= r.x / 2, x.y *= r.y / 2, b.start.copy(w), b.start.z = 0, b.end.copy(x), b.end.z = 0;
699
- const T = b.closestPointToPointParameter(ae, !0);
700
- b.at(T, be);
701
- const z = Ue.lerp(w.z, x.z, T), C = z >= -1 && z <= 1, R = ae.distanceTo(be) < I * 0.5;
702
- if (C && R) {
703
- b.start.fromBufferAttribute(d, h), b.end.fromBufferAttribute(u, h), b.start.applyMatrix4(l), b.end.applyMatrix4(l);
704
- const E = new L(), B = new L();
705
- M.distanceSqToSegment(b.start, b.end, B, E), n.push({
706
- point: B,
707
- pointOnLine: E,
708
- distance: M.origin.distanceTo(B),
698
+ y.applyMatrix4(i), w.applyMatrix4(i), y.multiplyScalar(1 / y.w), w.multiplyScalar(1 / w.w), y.x *= o.x / 2, y.y *= o.y / 2, w.x *= o.x / 2, w.y *= o.y / 2, x.start.copy(y), x.start.z = 0, x.end.copy(w), x.end.z = 0;
699
+ const b = x.closestPointToPointParameter(te, !0);
700
+ x.at(b, we);
701
+ const S = _e.lerp(y.z, w.z, b), k = S >= -1 && S <= 1, I = te.distanceTo(we) < B * 0.5;
702
+ if (k && I) {
703
+ x.start.fromBufferAttribute(c, m), x.end.fromBufferAttribute(u, m), x.start.applyMatrix4(r), x.end.applyMatrix4(r);
704
+ const z = new U(), A = new U();
705
+ E.distanceSqToSegment(x.start, x.end, A, z), n.push({
706
+ point: A,
707
+ pointOnLine: z,
708
+ distance: E.origin.distanceTo(A),
709
709
  object: s,
710
710
  face: null,
711
- faceIndex: h,
711
+ faceIndex: m,
712
712
  uv: null,
713
713
  uv1: null
714
714
  });
715
715
  }
716
716
  }
717
717
  }
718
- class gt extends nt {
718
+ class yt extends it {
719
719
  /**
720
720
  * Constructs a new wide line.
721
721
  *
722
722
  * @param {LineSegmentsGeometry} [geometry] - The line geometry.
723
723
  * @param {LineMaterial} [material] - The line material.
724
724
  */
725
- constructor(e = new Ae(), n = new ue({ color: Math.random() * 16777215 })) {
725
+ constructor(e = new Ee(), n = new ae({ color: Math.random() * 16777215 })) {
726
726
  super(e, n), this.isLineSegments2 = !0, this.type = "LineSegments2";
727
727
  }
728
728
  /**
@@ -734,10 +734,10 @@ class gt extends nt {
734
734
  */
735
735
  computeLineDistances() {
736
736
  const e = this.geometry, n = e.attributes.instanceStart, i = e.attributes.instanceEnd, t = new Float32Array(2 * n.count);
737
- for (let l = 0, a = 0, d = n.count; l < d; l++, a += 2)
738
- we.fromBufferAttribute(n, l), xe.fromBufferAttribute(i, l), t[a] = a === 0 ? 0 : t[a - 1], t[a + 1] = t[a] + we.distanceTo(xe);
739
- const r = new ce(t, 2, 1);
740
- return e.setAttribute("instanceDistanceStart", new V(r, 1, 0)), e.setAttribute("instanceDistanceEnd", new V(r, 1, 1)), this;
737
+ for (let r = 0, a = 0, c = n.count; r < c; r++, a += 2)
738
+ ge.fromBufferAttribute(n, r), ye.fromBufferAttribute(i, r), t[a] = a === 0 ? 0 : t[a - 1], t[a + 1] = t[a] + ge.distanceTo(ye);
739
+ const o = new se(t, 2, 1);
740
+ return e.setAttribute("instanceDistanceStart", new O(o, 1, 0)), e.setAttribute("instanceDistanceEnd", new O(o, 1, 1)), this;
741
741
  }
742
742
  /**
743
743
  * Computes intersection points between a casted ray and this instance.
@@ -748,35 +748,35 @@ class gt extends nt {
748
748
  raycast(e, n) {
749
749
  const i = this.material.worldUnits, t = e.camera;
750
750
  t === null && !i && console.error('LineSegments2: "Raycaster.camera" needs to be set in order to raycast against LineSegments2 while worldUnits is set to false.');
751
- const r = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
752
- M = e.ray;
753
- const l = this.matrixWorld, a = this.geometry, d = this.material;
754
- I = d.linewidth + r, a.boundingSphere === null && a.computeBoundingSphere(), K.copy(a.boundingSphere).applyMatrix4(l);
751
+ const o = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
752
+ E = e.ray;
753
+ const r = this.matrixWorld, a = this.geometry, c = this.material;
754
+ B = c.linewidth + o, a.boundingSphere === null && a.computeBoundingSphere(), $.copy(a.boundingSphere).applyMatrix4(r);
755
755
  let u;
756
756
  if (i)
757
- u = I * 0.5;
757
+ u = B * 0.5;
758
758
  else {
759
- const v = Math.max(t.near, K.distanceToPoint(M.origin));
760
- u = Se(t, v, d.resolution);
759
+ const p = Math.max(t.near, $.distanceToPoint(E.origin));
760
+ u = xe(t, p, c.resolution);
761
761
  }
762
- if (K.radius += u, M.intersectsSphere(K) === !1)
762
+ if ($.radius += u, E.intersectsSphere($) === !1)
763
763
  return;
764
- a.boundingBox === null && a.computeBoundingBox(), J.copy(a.boundingBox).applyMatrix4(l);
764
+ a.boundingBox === null && a.computeBoundingBox(), q.copy(a.boundingBox).applyMatrix4(r);
765
765
  let f;
766
766
  if (i)
767
- f = I * 0.5;
767
+ f = B * 0.5;
768
768
  else {
769
- const v = Math.max(t.near, J.distanceToPoint(M.origin));
770
- f = Se(t, v, d.resolution);
769
+ const p = Math.max(t.near, q.distanceToPoint(E.origin));
770
+ f = xe(t, p, c.resolution);
771
771
  }
772
- J.expandByScalar(f), M.intersectsBox(J) !== !1 && (i ? ht(this, n) : vt(this, t, n));
772
+ q.expandByScalar(f), E.intersectsBox(q) !== !1 && (i ? vt(this, n) : gt(this, t, n));
773
773
  }
774
774
  onBeforeRender(e) {
775
775
  const n = this.material.uniforms;
776
- n && n.resolution && (e.getViewport(oe), this.material.uniforms.resolution.value.set(oe.z, oe.w));
776
+ n && n.resolution && (e.getViewport(ee), this.material.uniforms.resolution.value.set(ee.z, ee.w));
777
777
  }
778
778
  }
779
- class Me extends Ae {
779
+ class Ue extends Ee {
780
780
  /**
781
781
  * Constructs a new line geometry.
782
782
  */
@@ -830,25 +830,25 @@ class Me extends Ae {
830
830
  return this.setPositions(n.attributes.position.array), this;
831
831
  }
832
832
  }
833
- class yt extends gt {
833
+ class wt extends yt {
834
834
  /**
835
835
  * Constructs a new wide line.
836
836
  *
837
837
  * @param {LineGeometry} [geometry] - The line geometry.
838
838
  * @param {LineMaterial} [material] - The line material.
839
839
  */
840
- constructor(e = new Me(), n = new ue({ color: Math.random() * 16777215 })) {
840
+ constructor(e = new Ue(), n = new ae({ color: Math.random() * 16777215 })) {
841
841
  super(e, n), this.isLine2 = !0, this.type = "Line2";
842
842
  }
843
843
  }
844
- function wt(s) {
844
+ function xt(s) {
845
845
  const e = [];
846
846
  return s.forEach((n) => {
847
- const [i, t, r] = n.trim().split(/\s+/);
848
- e.push(+i, +t, +r);
847
+ const [i, t, o] = n.trim().split(/\s+/);
848
+ e.push(+i, +t, +o);
849
849
  }), e;
850
850
  }
851
- function ze(s, e, n) {
851
+ function be(s, e, n) {
852
852
  switch (s) {
853
853
  case "X":
854
854
  e.x = +n || 0;
@@ -861,475 +861,406 @@ function ze(s, e, n) {
861
861
  break;
862
862
  }
863
863
  }
864
- function xt(s) {
864
+ function bt(s) {
865
865
  const e = [], n = ["X", "Y", "Z"];
866
866
  return s.forEach((i) => {
867
867
  const t = {
868
868
  x: 0,
869
869
  y: 0,
870
870
  z: 0
871
- }, r = i.trim();
872
- if (!r)
871
+ }, o = i.trim();
872
+ if (!o)
873
873
  return;
874
- let l = null, a = "";
875
- for (let d = 0; d < (r == null ? void 0 : r.length); d++) {
876
- const u = r[d], f = n.find((v) => v === u);
874
+ let r = null, a = "";
875
+ for (let c = 0; c < (o == null ? void 0 : o.length); c++) {
876
+ const u = o[c], f = n.find((p) => p === u);
877
877
  if (f) {
878
- l && ze(l, t, a), a = "", l = f;
878
+ r && be(r, t, a), a = "", r = f;
879
879
  continue;
880
880
  }
881
881
  a = a + u;
882
882
  }
883
- ze(l, t, a), e.push(t.x, t.y, t.z);
883
+ be(r, t, a), e.push(t.x, t.y, t.z);
884
884
  }), e;
885
885
  }
886
- const bt = (s) => s == null ? void 0 : s.filter((n) => n.includes("=")), St = (s) => s.replace(/,/g, ""), zt = (s) => s == null ? void 0 : s.map((n) => St(n)), Ct = (s) => {
887
- const e = bt(s);
888
- return zt(e);
886
+ const St = (s) => s == null ? void 0 : s.filter((n) => n.includes("=")), zt = (s) => s.replace(/,/g, ""), Ct = (s) => s == null ? void 0 : s.map((n) => zt(n)), _t = (s) => {
887
+ const e = St(s);
888
+ return Ct(e);
889
889
  };
890
- function _t(s) {
891
- const e = Ct(s), n = [];
890
+ function Et(s) {
891
+ const e = _t(s), n = [];
892
892
  return e.forEach((i) => {
893
- var v, h, P, O, T, z;
894
- let [t, r, l, a] = i.trim().split(/\s+/);
895
- r = (v = r == null ? void 0 : r.trim) == null ? void 0 : v.call(r), l = (h = l == null ? void 0 : l.trim) == null ? void 0 : h.call(l), a = (P = a == null ? void 0 : a.trim) == null ? void 0 : P.call(a);
896
- const [, d] = (O = r == null ? void 0 : r.split) == null ? void 0 : O.call(r, "="), [, u] = (T = l == null ? void 0 : l.split) == null ? void 0 : T.call(l, "="), [, f] = (z = a == null ? void 0 : a.split) == null ? void 0 : z.call(a, "=");
897
- n.push(+d, +u, +f);
893
+ var p, m, M, L, b, S;
894
+ let [t, o, r, a] = i.trim().split(/\s+/);
895
+ o = (p = o == null ? void 0 : o.trim) == null ? void 0 : p.call(o), r = (m = r == null ? void 0 : r.trim) == null ? void 0 : m.call(r), a = (M = a == null ? void 0 : a.trim) == null ? void 0 : M.call(a);
896
+ const [, c] = (L = o == null ? void 0 : o.split) == null ? void 0 : L.call(o, "="), [, u] = (b = r == null ? void 0 : r.split) == null ? void 0 : b.call(r, "="), [, f] = (S = a == null ? void 0 : a.split) == null ? void 0 : S.call(a, "=");
897
+ n.push(+c, +u, +f);
898
898
  }), n;
899
899
  }
900
- function Et(s) {
900
+ function Ut(s) {
901
901
  return s == null ? void 0 : s.includes("=");
902
902
  }
903
- async function Ut(s) {
904
- var t, r;
903
+ async function At(s) {
904
+ var t, o;
905
905
  const e = (t = s == null ? void 0 : s.trim()) == null ? void 0 : t.split(/\r?\n/);
906
- if (Et(s))
907
- return _t(e);
908
- const n = e == null ? void 0 : e[0], i = (r = n == null ? void 0 : n.trim()) == null ? void 0 : r.split(/\s+/);
906
+ if (Ut(s))
907
+ return Et(e);
908
+ const n = e == null ? void 0 : e[0], i = (o = n == null ? void 0 : n.trim()) == null ? void 0 : o.split(/\s+/);
909
909
  if ((i == null ? void 0 : i.length) >= 3)
910
- return wt(e);
911
- if ((i == null ? void 0 : i.length) === 1)
912
910
  return xt(e);
911
+ if ((i == null ? void 0 : i.length) === 1)
912
+ return bt(e);
913
913
  }
914
- async function At(s) {
914
+ async function Mt(s) {
915
915
  const e = s.trim().split(/\r?\n/), n = [];
916
916
  return e.forEach((i) => {
917
917
  const t = i.trim().split(/\s+/);
918
918
  if (t.length != 3)
919
919
  return;
920
- const [r, l, a] = t;
921
- n.push(+r, +l, +a);
920
+ const [o, r, a] = t;
921
+ n.push(+o, +r, +a);
922
922
  }), n;
923
923
  }
924
- async function Mt(s) {
924
+ async function Lt(s) {
925
925
  const e = s.trim().split(/\r?\n/), n = [];
926
926
  return e.forEach((i) => {
927
927
  const t = i.trim().split(/\s+/);
928
928
  if (t.length != 3)
929
929
  return;
930
- const [r, l, a] = t;
931
- n.push(+r, +l, +a);
930
+ const [o, r, a] = t;
931
+ n.push(+o, +r, +a);
932
932
  }), n;
933
933
  }
934
- async function Lt(s, e) {
934
+ async function Pt(s, e) {
935
935
  const { isCyd: n, isUv: i, isCpt: t } = e;
936
- return i ? Ut(s) : n ? Mt(s) : t ? At(s) : [];
936
+ return i ? At(s) : n ? Lt(s) : t ? Mt(s) : [];
937
937
  }
938
- function Pt(s, e) {
938
+ function Tt(s, e) {
939
939
  if (!e || e.length < 3)
940
940
  return;
941
- const { scene: n, camera: i, renderer: t, controls: r } = s();
942
- if (!n || !i || !t || !r)
941
+ const { scene: n, camera: i, renderer: t, controls: o } = s();
942
+ if (!n || !i || !t || !o)
943
943
  return;
944
- const l = [];
945
- for (let h = 0; h < e.length; h += 3)
946
- l.push(new L(e[h], e[h + 1], e[h + 2]));
947
- const d = new ot(l, !1, "catmullrom", 0.5).getPoints(150).flatMap((h) => [h.x, h.y, h.z]), u = new Me();
948
- u.setPositions(d);
949
- const f = new ue({
944
+ const r = [];
945
+ for (let m = 0; m < e.length; m += 3)
946
+ r.push(new U(e[m], e[m + 1], e[m + 2]));
947
+ const c = new at(r, !1, "catmullrom", 0.5).getPoints(150).flatMap((m) => [m.x, m.y, m.z]), u = new Ue();
948
+ u.setPositions(c);
949
+ const f = new ae({
950
950
  color: 55551,
951
951
  linewidth: 3,
952
952
  // 像素宽度,可 >1
953
- resolution: new Ee(window.innerWidth, window.innerHeight)
954
- }), v = new yt(u, f);
955
- return v.name = "轨迹路径", n.add(v), v;
953
+ resolution: new Ce(window.innerWidth, window.innerHeight)
954
+ }), p = new wt(u, f);
955
+ return p.name = "轨迹路径", n.add(p), p;
956
956
  }
957
- function Tt(s, e, n, i = 4, t = 50) {
958
- let r = 1 / 0, l = -1 / 0, a = 1 / 0, d = -1 / 0, u = 1 / 0, f = -1 / 0;
959
- for (let z = 0; z < s.length; z += 3) {
960
- const C = s[z], R = s[z + 1], E = s[z + 2];
961
- r = Math.min(r, C), l = Math.max(l, C), a = Math.min(a, R), d = Math.max(d, R), u = Math.min(u, E), f = Math.max(f, E);
957
+ function Bt(s, e, n, i = 4, t = 50) {
958
+ let o = 1 / 0, r = -1 / 0, a = 1 / 0, c = -1 / 0, u = 1 / 0, f = -1 / 0;
959
+ for (let S = 0; S < s.length; S += 3) {
960
+ const k = s[S], I = s[S + 1], z = s[S + 2];
961
+ o = Math.min(o, k), r = Math.max(r, k), a = Math.min(a, I), c = Math.max(c, I), u = Math.min(u, z), f = Math.max(f, z);
962
962
  }
963
- const h = Math.sqrt((l - r) ** 2 + (d - a) ** 2 + (f - u) ** 2) * 0.05, P = Ue.degToRad(e.fov), O = 2 * Math.tan(P / 2) * t, T = h / O * n.domElement.height * (i / 4);
964
- return Math.max(1, T);
963
+ const m = Math.sqrt((r - o) ** 2 + (c - a) ** 2 + (f - u) ** 2) * 0.05, M = _e.degToRad(e.fov), L = 2 * Math.tan(M / 2) * t, b = m / L * n.domElement.height * (i / 4);
964
+ return Math.max(1, b);
965
965
  }
966
- function Bt(s) {
967
- const e = new at();
968
- e.setAttribute("position", new le(s, 3));
969
- const n = new rt({
966
+ function kt(s) {
967
+ const e = new rt();
968
+ e.setAttribute("position", new ie(s, 3));
969
+ const n = new lt({
970
970
  color: 55551,
971
971
  size: 1,
972
972
  // 像素世界单位
973
973
  sizeAttenuation: !1
974
974
  });
975
- return new lt(e, n);
975
+ return new ct(e, n);
976
976
  }
977
- function kt(s, e) {
977
+ function Dt(s, e) {
978
978
  if (!e)
979
979
  return;
980
- const { scene: n, camera: i, renderer: t, controls: r } = s();
981
- if (!n || !i || !t || !r)
980
+ const { scene: n, camera: i, renderer: t, controls: o } = s();
981
+ if (!n || !i || !t || !o)
982
982
  return;
983
- const l = Bt(e);
984
- l.name = "轨迹路径", n.add(l);
985
- const a = Tt(e, i, t, 0.5, 50);
986
- return l.material.size = a, l;
983
+ const r = kt(e);
984
+ r.name = "轨迹路径", n.add(r);
985
+ const a = Bt(e, i, t, 0.5, 50);
986
+ return r.material.size = a, r;
987
987
  }
988
- const Dt = { class: "obj-viewer-container" }, Ot = { class: "buttonGroup-top" }, jt = { class: "buttonGroup-topLeft" }, It = { class: "buttonGroup-left" }, Rt = { class: "buttonGroup-right" }, Ft = { class: "buttonGroup-bottom" }, Vt = { class: "left-panel" }, Wt = { class: "panel-header" }, Gt = { class: "panel-body" }, Ht = {
989
- key: 1,
990
- class: "clipping-content"
991
- }, Nt = { class: "radio-group" }, qt = { class: "radio-label" }, $t = { class: "radio-label" }, Xt = { class: "radio-label" }, Yt = { class: "radio-label" }, Zt = { class: "right-panel" }, Jt = { class: "panel-header" }, Kt = { class: "panel-body" }, Qt = {
988
+ const Ot = { class: "obj-viewer-container" }, It = { class: "buttonGroup-topLeft" }, jt = { class: "buttonGroup-left" }, Ft = { class: "buttonGroup-right" }, Rt = { class: "buttonGroup-bottom" }, Wt = { class: "left-panel" }, Gt = { class: "panel-header" }, Vt = { class: "panel-body" }, Ht = { class: "right-panel" }, Nt = { class: "panel-header" }, qt = { class: "panel-body" }, $t = {
992
989
  key: 0,
993
990
  class: "loading-overlay"
994
- }, en = /* @__PURE__ */ We({
991
+ }, Xt = /* @__PURE__ */ Ve({
995
992
  __name: "threeTrackPathView",
996
993
  props: {
997
994
  fileUrls: {},
998
995
  threeData: { default: () => "" },
999
996
  trackFileType: {}
1000
997
  },
1001
- emits: ["getAnimationData", "getThreeData"],
1002
- setup(s, { emit: e }) {
1003
- const n = e, i = s, t = D(null), r = D(!1), l = D(""), a = D(!1), d = D(""), u = D(!1), f = D(""), v = he(null), h = he(null), {
1004
- currentModels: P,
1005
- resetView: O,
1006
- initThreeJS: T,
1007
- handleResize: z,
1008
- getThreeJSObjects: C,
1009
- cleanup: R,
1010
- axesHelperVisible: E,
1011
- toggleAxesVisibility: B
1012
- } = Xe(t), { isAnimating: fe, toggleAnimation: Le, stopAnimation: Pe } = Ye(C, P), { isClipping: Te, activeClippingAxis: _, toggleClipping: Be, updateClippingPlanes: k } = Ze(C, P), ke = () => {
1013
- B();
1014
- }, W = (p) => {
1015
- a.value = !0, d.value = p, p === "剖面视图" && !Te.value && Be();
1016
- }, N = (p) => {
1017
- u.value = !0, f.value = p, p === "动画仿真" && n("getAnimationData");
1018
- }, pe = D([]), De = q(() => {
1019
- var o;
1020
- return (o = i.trackFileType) == null ? void 0 : o.isUv;
1021
- }), Oe = q(() => {
1022
- var o;
1023
- return (o = i.trackFileType) == null ? void 0 : o.isCyd;
1024
- }), je = q(() => {
1025
- var o;
1026
- return (o = i.trackFileType) == null ? void 0 : o.isCpt;
1027
- }), Ie = q(() => {
1028
- const p = i.fileUrls || [];
1029
- return p == null ? void 0 : p[0];
998
+ setup(s) {
999
+ const e = s, n = T(null), i = T(!1), t = T(""), o = T(!1), r = T(""), a = T(!1), c = T(""), u = ue(null), f = ue(null), {
1000
+ currentModels: p,
1001
+ resetView: m,
1002
+ initThreeJS: M,
1003
+ handleResize: L,
1004
+ getThreeJSObjects: b,
1005
+ cleanup: S,
1006
+ setModels: k,
1007
+ setAndFitModels: I,
1008
+ axesHelperVisible: z,
1009
+ toggleAxesVisibility: A
1010
+ } = Xe(n), { isAnimating: re, toggleAnimation: Ae, startAnimation: Yt, stopAnimation: Me } = Ye(b, p), { isClipping: Le, activeClippingAxis: le, toggleClipping: Pe, updateClippingPlanes: Te } = Ze(b, p), Be = () => {
1011
+ A();
1012
+ }, ke = (d) => {
1013
+ le.value = d, Te();
1014
+ }, j = (d) => {
1015
+ o.value = !0, r.value = d, d === "剖面视图" && !Le.value && Pe();
1016
+ }, G = (d) => {
1017
+ a.value = !0, c.value = d;
1018
+ }, ce = T([]), De = V(() => {
1019
+ var l;
1020
+ return (l = e.trackFileType) == null ? void 0 : l.isUv;
1021
+ }), Oe = V(() => {
1022
+ var l;
1023
+ return (l = e.trackFileType) == null ? void 0 : l.isCyd;
1024
+ }), Ie = V(() => {
1025
+ var l;
1026
+ return (l = e.trackFileType) == null ? void 0 : l.isCpt;
1027
+ }), je = V(() => {
1028
+ const d = e.fileUrls || [];
1029
+ return d == null ? void 0 : d[0];
1030
1030
  });
1031
- let F = null;
1032
- const me = () => {
1033
- const { scene: p } = C();
1034
- F && p && (Ke(F, p), F = null);
1035
- }, Re = async (p) => {
1036
- const o = await ct(p);
1037
- if (pt(o)) {
1038
- pe.value = await Lt(o, i.trackFileType) || [];
1039
- const G = pe.value;
1040
- De.value && (F = Pt(C, G)), (Oe.value || je.value) && (F = kt(C, G)), Je(C, F);
1031
+ let D = null;
1032
+ const de = () => {
1033
+ const { scene: d } = b();
1034
+ D && d && (Qe(D, d), D = null);
1035
+ }, Fe = async (d) => {
1036
+ const l = await dt(d);
1037
+ if (mt(l)) {
1038
+ ce.value = await Pt(l, e.trackFileType) || [];
1039
+ const F = ce.value;
1040
+ return De.value && (D = Tt(b, F)), (Oe.value || Ie.value) && (D = Dt(b, F)), D;
1041
1041
  }
1042
+ }, Re = async (d) => {
1043
+ const l = await Fe(d);
1044
+ l && (k([l]), Ke(b, l));
1042
1045
  };
1043
- Ge(() => Ie.value, async (p) => {
1044
- p && (me(), await Re(p));
1046
+ He(() => je.value, async (d) => {
1047
+ d && (de(), await Re(d));
1045
1048
  }, {
1046
1049
  immediate: !0,
1047
1050
  deep: !0
1048
1051
  });
1049
- const Fe = () => {
1050
- T(), window.addEventListener("resize", z);
1051
- const p = C();
1052
- h.value = p.scene, h.value && (h.value.name = "CPMPIP");
1053
- }, Ve = () => {
1054
- window.removeEventListener("resize", z), fe.value && Pe(), me(), R();
1052
+ const We = () => {
1053
+ M(), window.addEventListener("resize", L);
1054
+ const d = b();
1055
+ f.value = d.scene, f.value && (f.value.name = "CPMPIP");
1056
+ }, Ge = () => {
1057
+ window.removeEventListener("resize", L), re.value && Me(), de(), S();
1055
1058
  };
1056
- return He(async () => {
1059
+ return Ne(async () => {
1057
1060
  try {
1058
- Fe();
1059
- } catch (p) {
1060
- console.error("Three.js 初始化失败:", p), dt.error("渲染引擎初始化失败!");
1061
+ We();
1062
+ } catch (d) {
1063
+ console.error("Three.js 初始化失败:", d), ut.error("渲染引擎初始化失败!");
1061
1064
  }
1062
- }), Ne(() => {
1063
- Ve();
1064
- }), (p, o) => {
1065
- const G = qe("el-scrollbar");
1066
- return $(), te("div", Dt, [
1067
- c("div", {
1065
+ }), qe(() => {
1066
+ Ge();
1067
+ }), (d, l) => {
1068
+ const F = $e("el-scrollbar");
1069
+ return H(), fe("div", Ot, [
1070
+ g("div", {
1068
1071
  ref_key: "threejsContainer",
1069
- ref: t,
1072
+ ref: n,
1070
1073
  class: "threejs-container"
1071
1074
  }, null, 512),
1072
- c("div", Ot, [
1073
- m(y, {
1074
- name: "guanjianjiexi",
1075
- size: "34"
1076
- }),
1077
- m(y, {
1078
- name: "guanjiekongzhi",
1079
- size: "34"
1080
- }),
1081
- m(y, {
1082
- name: "gongyishengcheng",
1083
- size: "34"
1084
- }),
1085
- m(y, {
1086
- name: "buchangshezhi",
1087
- size: "34"
1088
- }),
1089
- m(y, {
1090
- name: "shuchujiagongchengxu",
1091
- size: "34"
1092
- })
1093
- ]),
1094
- c("div", jt, [
1095
- m(y, {
1075
+ l[15] || (l[15] = g("div", { class: "buttonGroup-top" }, null, -1)),
1076
+ g("div", It, [
1077
+ h(v, {
1096
1078
  name: "viewReset",
1097
1079
  size: "24",
1098
- onClick: S(O),
1080
+ onClick: R(m),
1099
1081
  title: "重置"
1100
1082
  }, null, 8, ["onClick"]),
1101
- m(y, {
1083
+ h(v, {
1102
1084
  name: "fangda",
1103
1085
  size: "24",
1104
1086
  title: "放大"
1105
1087
  }),
1106
- m(y, {
1088
+ h(v, {
1107
1089
  name: "suoxiao",
1108
1090
  size: "24",
1109
1091
  title: "缩小"
1110
1092
  }),
1111
- m(y, {
1093
+ h(v, {
1112
1094
  name: "lookAround",
1113
1095
  size: "24",
1114
- onClick: S(Le),
1115
- title: S(fe) ? "停止动画" : "动画视图"
1096
+ onClick: R(Ae),
1097
+ title: R(re) ? "停止动画" : "动画视图"
1116
1098
  }, null, 8, ["onClick", "title"]),
1117
- m(y, {
1099
+ h(v, {
1118
1100
  name: "zuobiaoxi",
1119
1101
  size: "24",
1120
- active: S(E),
1121
- onClick: ke,
1102
+ active: R(z),
1103
+ onClick: Be,
1122
1104
  title: "显隐坐标轴"
1123
1105
  }, null, 8, ["active"])
1124
1106
  ]),
1125
- c("div", It, [
1126
- ve(p.$slots, "button-left", { switchRightPanel: W }, void 0, !0),
1127
- m(y, {
1107
+ g("div", jt, [
1108
+ pe(d.$slots, "button-left", { switchRightPanel: j }, void 0, !0),
1109
+ h(v, {
1128
1110
  name: "jiegoushu",
1129
1111
  size: "24",
1130
- onClick: o[0] || (o[0] = (g) => W("场景树")),
1131
- active: a.value && d.value === "场景树",
1112
+ onClick: l[0] || (l[0] = (P) => j("场景树")),
1113
+ active: o.value && r.value === "场景树",
1132
1114
  title: "场景树"
1133
1115
  }, null, 8, ["active"]),
1134
- m(y, {
1116
+ h(v, {
1135
1117
  name: "clipping",
1136
1118
  size: "24",
1137
- onClick: o[1] || (o[1] = (g) => W("剖面视图")),
1138
- active: a.value && d.value === "剖面视图",
1119
+ onClick: l[1] || (l[1] = (P) => j("剖面视图")),
1120
+ active: o.value && r.value === "剖面视图",
1139
1121
  title: "剖面视图"
1140
1122
  }, null, 8, ["active"]),
1141
- m(y, {
1123
+ h(v, {
1142
1124
  name: "donghuafangzhen",
1143
1125
  size: "24",
1144
- onClick: o[2] || (o[2] = (g) => W("场景树3"))
1126
+ onClick: l[2] || (l[2] = (P) => j("场景树3"))
1145
1127
  }),
1146
- m(y, {
1128
+ h(v, {
1147
1129
  name: "donghuafangzhen",
1148
1130
  size: "24",
1149
- onClick: o[3] || (o[3] = (g) => W("场景4"))
1131
+ onClick: l[3] || (l[3] = (P) => j("场景4"))
1150
1132
  })
1151
1133
  ]),
1152
- c("div", Rt, [
1153
- ve(p.$slots, "button-right", { switchRightPanel: N }, void 0, !0),
1154
- m(y, {
1134
+ g("div", Ft, [
1135
+ pe(d.$slots, "button-right", { switchRightPanel: G }, void 0, !0),
1136
+ h(v, {
1155
1137
  name: "donghuafangzhen",
1156
1138
  size: "24"
1157
1139
  }),
1158
- m(y, {
1140
+ h(v, {
1159
1141
  name: "guanjiekongzhi",
1160
1142
  size: "24",
1161
- onClick: o[4] || (o[4] = (g) => N("关节控制")),
1162
- active: u.value && f.value === "关节控制",
1143
+ onClick: l[4] || (l[4] = (P) => G("关节控制")),
1144
+ active: a.value && c.value === "关节控制",
1163
1145
  title: "关节控制"
1164
1146
  }, null, 8, ["active"]),
1165
- m(y, {
1147
+ h(v, {
1166
1148
  name: "donghuafangzhen",
1167
1149
  size: "24",
1168
1150
  title: "动画仿真",
1169
- onClick: o[5] || (o[5] = (g) => N("动画仿真")),
1170
- active: u.value && f.value === "动画仿真"
1151
+ onClick: l[5] || (l[5] = (P) => G("动画仿真")),
1152
+ active: a.value && c.value === "动画仿真"
1171
1153
  }, null, 8, ["active"]),
1172
- m(y, {
1154
+ h(v, {
1173
1155
  name: "donghuafangzhen",
1174
1156
  size: "24",
1175
1157
  title: "urdf动画",
1176
- onClick: o[6] || (o[6] = (g) => N("urdf动画")),
1177
- active: u.value && f.value === "urdf动画"
1158
+ onClick: l[6] || (l[6] = (P) => G("urdf动画")),
1159
+ active: a.value && c.value === "urdf动画"
1178
1160
  }, null, 8, ["active"]),
1179
- m(y, {
1161
+ h(v, {
1180
1162
  name: "donghuafangzhen",
1181
1163
  size: "24"
1182
1164
  })
1183
1165
  ]),
1184
- c("div", Ft, [
1185
- m(y, {
1166
+ g("div", Rt, [
1167
+ h(v, {
1186
1168
  name: "kuaitui",
1187
1169
  size: "24",
1188
1170
  backgroundColor: "#ffffff",
1189
1171
  title: "快退",
1190
- onClick: o[7] || (o[7] = () => {
1172
+ onClick: l[7] || (l[7] = () => {
1191
1173
  })
1192
1174
  }),
1193
- m(y, {
1175
+ h(v, {
1194
1176
  name: "bofang",
1195
1177
  size: "24",
1196
1178
  backgroundColor: "#ffffff",
1197
1179
  title: "播放",
1198
- onClick: o[8] || (o[8] = () => {
1180
+ onClick: l[8] || (l[8] = () => {
1199
1181
  })
1200
1182
  }),
1201
- m(y, {
1183
+ h(v, {
1202
1184
  name: "kuaijin",
1203
1185
  size: "24",
1204
1186
  backgroundColor: "#ffffff",
1205
1187
  title: "快进",
1206
- onClick: o[9] || (o[9] = () => {
1188
+ onClick: l[9] || (l[9] = () => {
1207
1189
  })
1208
1190
  }),
1209
- m(y, {
1191
+ h(v, {
1210
1192
  name: "zanting",
1211
1193
  size: "24",
1212
1194
  backgroundColor: "#ffffff",
1213
1195
  title: "暂停",
1214
- onClick: o[10] || (o[10] = () => {
1196
+ onClick: l[10] || (l[10] = () => {
1215
1197
  })
1216
1198
  }),
1217
- m(y, {
1199
+ h(v, {
1218
1200
  name: "zhongzhi",
1219
1201
  size: "24",
1220
1202
  backgroundColor: "#ffffff",
1221
1203
  title: "停止",
1222
- onClick: o[11] || (o[11] = () => {
1204
+ onClick: l[11] || (l[11] = () => {
1223
1205
  })
1224
1206
  })
1225
1207
  ]),
1226
- j(c("div", Vt, [
1227
- c("div", Wt, [
1228
- c("span", null, ie(d.value), 1),
1229
- c("span", {
1208
+ Z(g("div", Wt, [
1209
+ g("div", Gt, [
1210
+ g("span", null, K(r.value), 1),
1211
+ g("span", {
1230
1212
  class: "close",
1231
- onClick: o[12] || (o[12] = (g) => a.value = !1)
1213
+ onClick: l[12] || (l[12] = (P) => o.value = !1)
1232
1214
  }, " X ")
1233
1215
  ]),
1234
- c("div", Gt, [
1235
- m(G, { height: "100%" }, {
1236
- default: ge(() => [
1237
- d.value === "场景树" ? ($(), $e(ut, {
1216
+ g("div", Vt, [
1217
+ h(F, { height: "100%" }, {
1218
+ default: me(() => [
1219
+ r.value === "场景树" ? (H(), he(ft, {
1238
1220
  key: 0,
1239
- model: v.value
1240
- }, null, 8, ["model"])) : ne("", !0),
1241
- d.value === "剖面视图" ? ($(), te("div", Ht, [
1242
- c("div", Nt, [
1243
- c("label", qt, [
1244
- j(c("input", {
1245
- type: "radio",
1246
- name: "clipping-axis",
1247
- value: "none",
1248
- "onUpdate:modelValue": o[13] || (o[13] = (g) => X(_) ? _.value = g : null),
1249
- onChange: o[14] || (o[14] = //@ts-ignore
1250
- (...g) => S(k) && S(k)(...g))
1251
- }, null, 544), [
1252
- [Y, S(_)]
1253
- ]),
1254
- o[22] || (o[22] = c("span", { class: "radio-text" }, "无切割", -1))
1255
- ]),
1256
- c("label", $t, [
1257
- j(c("input", {
1258
- type: "radio",
1259
- name: "clipping-axis",
1260
- value: "x",
1261
- "onUpdate:modelValue": o[15] || (o[15] = (g) => X(_) ? _.value = g : null),
1262
- onChange: o[16] || (o[16] = //@ts-ignore
1263
- (...g) => S(k) && S(k)(...g))
1264
- }, null, 544), [
1265
- [Y, S(_)]
1266
- ]),
1267
- o[23] || (o[23] = c("span", { class: "radio-text" }, "X轴切割", -1))
1268
- ]),
1269
- c("label", Xt, [
1270
- j(c("input", {
1271
- type: "radio",
1272
- name: "clipping-axis",
1273
- value: "y",
1274
- "onUpdate:modelValue": o[17] || (o[17] = (g) => X(_) ? _.value = g : null),
1275
- onChange: o[18] || (o[18] = //@ts-ignore
1276
- (...g) => S(k) && S(k)(...g))
1277
- }, null, 544), [
1278
- [Y, S(_)]
1279
- ]),
1280
- o[24] || (o[24] = c("span", { class: "radio-text" }, "Y轴切割", -1))
1281
- ]),
1282
- c("label", Yt, [
1283
- j(c("input", {
1284
- type: "radio",
1285
- name: "clipping-axis",
1286
- value: "z",
1287
- "onUpdate:modelValue": o[19] || (o[19] = (g) => X(_) ? _.value = g : null),
1288
- onChange: o[20] || (o[20] = //@ts-ignore
1289
- (...g) => S(k) && S(k)(...g))
1290
- }, null, 544), [
1291
- [Y, S(_)]
1292
- ]),
1293
- o[25] || (o[25] = c("span", { class: "radio-text" }, "Z轴切割", -1))
1294
- ])
1295
- ])
1296
- ])) : ne("", !0)
1221
+ model: u.value
1222
+ }, null, 8, ["model"])) : J("", !0),
1223
+ r.value === "剖面视图" ? (H(), he(Je, {
1224
+ key: 1,
1225
+ value: R(le),
1226
+ onChange: ke
1227
+ }, null, 8, ["value"])) : J("", !0)
1297
1228
  ]),
1298
1229
  _: 1
1299
1230
  })
1300
1231
  ])
1301
1232
  ], 512), [
1302
- [se, a.value]
1233
+ [Q, o.value]
1303
1234
  ]),
1304
- j(c("div", Zt, [
1305
- c("div", Jt, [
1306
- c("span", null, ie(f.value), 1),
1307
- c("span", {
1235
+ Z(g("div", Ht, [
1236
+ g("div", Nt, [
1237
+ g("span", null, K(c.value), 1),
1238
+ g("span", {
1308
1239
  class: "close",
1309
- onClick: o[21] || (o[21] = (g) => u.value = !1)
1240
+ onClick: l[13] || (l[13] = (P) => a.value = !1)
1310
1241
  }, " X ")
1311
1242
  ]),
1312
- c("div", Kt, [
1313
- m(G, { height: "100%" }, {
1314
- default: ge(() => [
1315
- j(m(ft, { model: v.value }, null, 8, ["model"]), [
1316
- [se, f.value === "关节控制"]
1243
+ g("div", qt, [
1244
+ h(F, { height: "100%" }, {
1245
+ default: me(() => [
1246
+ Z(h(pt, { model: u.value }, null, 8, ["model"]), [
1247
+ [Q, c.value === "关节控制"]
1317
1248
  ])
1318
1249
  ]),
1319
1250
  _: 1
1320
1251
  })
1321
1252
  ])
1322
1253
  ], 512), [
1323
- [se, u.value]
1254
+ [Q, a.value]
1324
1255
  ]),
1325
- r.value ? ($(), te("div", Qt, [
1326
- o[26] || (o[26] = c("div", { class: "loading-spinner" }, null, -1)),
1327
- c("p", null, ie(l.value), 1)
1328
- ])) : ne("", !0)
1256
+ i.value ? (H(), fe("div", $t, [
1257
+ l[14] || (l[14] = g("div", { class: "loading-spinner" }, null, -1)),
1258
+ g("p", null, K(t.value), 1)
1259
+ ])) : J("", !0)
1329
1260
  ]);
1330
1261
  };
1331
1262
  }
1332
- }), un = /* @__PURE__ */ mt(en, [["__scopeId", "data-v-c3ad7441"]]);
1263
+ }), an = /* @__PURE__ */ ht(Xt, [["__scopeId", "data-v-20775f32"]]);
1333
1264
  export {
1334
- un as default
1265
+ an as default
1335
1266
  };