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.
- package/dist/animationData-CEkMmPAJ.js +111 -0
- package/dist/animationData-FLuoH13j.cjs +1 -0
- package/dist/{iconfont-Du5a0yIR.js → iconfont-Dp3iGl32.js} +318 -244
- package/dist/iconfont-ji7A-_XJ.cjs +1 -0
- package/dist/icons/svg/CopyAddMenu.svg +1 -0
- package/dist/icons/svg/DeleteMenu.svg +1 -0
- package/dist/icons/svg/FixedMenu.svg +1 -0
- package/dist/icons/svg//345/273/272/346/250/241/345/210/206/346/236/220.svg +1 -0
- package/dist/icons/svg//347/256/227/346/263/225.svg +1 -1
- package/dist/{index-BMMCYEsB.js → index--qwZeW47.js} +1 -1
- package/dist/{index-DtlFU8RR.cjs → index-B1U77nyf.cjs} +1 -1
- package/dist/index-BEfSpHE6.js +17 -0
- package/dist/{index-CEkY4nFt.js → index-BFHCLxvz.js} +1 -1
- package/dist/index-BN4opOSk.cjs +1 -0
- package/dist/{index-B55haWsS.js → index-BNES2eKm.js} +1 -1
- package/dist/{index-kXlrQUA8.js → index-BTwRUubF.js} +2 -2
- package/dist/{index-DmfzZIKw.cjs → index-BYIlecoJ.cjs} +1 -1
- package/dist/{index-D0NMKMU8.cjs → index-BgwYXT31.cjs} +1 -1
- package/dist/{index-hL7adbcf.js → index-BiUFu7a_.js} +1500 -1636
- package/dist/{index-DYopbovE.js → index-BooTgcW2.js} +1633 -1632
- package/dist/{index-CJVA_tHw.cjs → index-BxEjroD6.cjs} +1 -1
- package/dist/index-C14Eek69.js +32 -0
- package/dist/index-C8IFPtAJ.js +12233 -0
- package/dist/index-C9C84gkB.cjs +1 -0
- package/dist/{index-BO7R6DCb.cjs → index-CDW8XzWT.cjs} +1 -1
- package/dist/index-CHzlphv9.cjs +1 -0
- package/dist/{index-vrO7i-BX.cjs → index-CWG2zhJZ.cjs} +1 -1
- package/dist/{index-DURGsNBh.js → index-ChyicQIl.js} +1 -1
- package/dist/index-D57Bv8co.cjs +1 -0
- package/dist/{index-BPiXU1VF.js → index-DAJoy_Z5.js} +1 -1
- package/dist/{index-DhbAgrix.cjs → index-DIpWkFjh.cjs} +1 -1
- package/dist/index-DLU6Qv3w.cjs +15 -0
- package/dist/{index-BQWUpvXk.js → index-DN40xEbb.js} +2 -2
- package/dist/{index-HsZY-XbO.js → index-DNs7ujiq.js} +1 -1
- package/dist/{index-C8x2JQx7.cjs → index-DXGiAs1G.cjs} +1 -1
- package/dist/{index-D3cFqWf8.js → index-DZQjq0ZR.js} +1 -1
- package/dist/index-DkNldOC0.cjs +1 -0
- package/dist/{index-CgHWXZbW.cjs → index-DuamAhUi.cjs} +1 -1
- package/dist/index-DvgAOa6m.js +2858 -0
- package/dist/{index-By-PfzqJ.js → index-FUWILZwY.js} +16 -16
- package/dist/{index-C9QGZutp.cjs → index-JXXdn01K.cjs} +1 -1
- package/dist/{index-Du-GlV8c.cjs → index-LVKvj2hU.cjs} +1 -1
- package/dist/{index-D2vsFTnY.js → index-OLQpbvuS.js} +6 -6
- package/dist/{index-JGSZNtiO.js → index-YoJfAd5X.js} +1 -1
- package/dist/{index-BgLb2tvo.js → index-bcbWOGXs.js} +3 -3
- package/dist/{index-cOj9uZ5B.cjs → index-gcSJbApQ.cjs} +1 -1
- package/dist/index-lP-_9Gsb.cjs +1 -0
- package/dist/index-qDBAJZN2.cjs +1 -0
- package/dist/{index-GShz2NEi.js → index-rPWz6KHn.js} +2 -2
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bff2sYnQ.cjs +37 -0
- 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
- package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-DlyCfLDJ.cjs +1 -0
- package/dist/index.vue_vue_type_style_index_0_scoped_b00cbae2_lang-Dt5lXvbN.js +195 -0
- package/dist/{index.vue_vue_type_style_index_1_lang-BEmLh6pe.js → index.vue_vue_type_style_index_1_lang-BUhvhTqt.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-Dsas9C9w.cjs → index.vue_vue_type_style_index_1_lang-DDYxgdQk.cjs} +1 -1
- package/dist/{main-B59ixZA7.js → main-ChUyYPuq.js} +2 -2
- package/dist/{main-B3gx12Xo.cjs → main-D-bdppOV.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-CxRJigCx.cjs → threeModel-CDFo3As-.cjs} +1 -1
- package/dist/{threeModel-ardn7Q2K.js → threeModel-DcuAlWjb.js} +2 -2
- package/dist/{threePreview-L8T-JdQL.js → threePreview-DhMkG1np.js} +350 -380
- package/dist/threePreview-q4R-oAs6.cjs +1 -0
- package/dist/threeSceneView-CAsVH82L.cjs +5 -0
- package/dist/threeSceneView-Dav7AGkH.js +1288 -0
- package/dist/threeSceneViewForCPMPIP-9__8NGa5.cjs +5 -0
- package/dist/threeSceneViewForCPMPIP-DxFYivgN.js +599 -0
- package/dist/threeTrackPathView-B7yrSLKq.cjs +370 -0
- package/dist/{threeTrackPathView-gTDb6Ckq.js → threeTrackPathView-DXCMl3aZ.js} +307 -376
- package/dist/{xlsx-ByPOQ6N_.js → threeViewerHost-BNnzz6WM.js} +4414 -4032
- package/dist/threeViewerHost-D70yS3z2.cjs +104 -0
- package/dist/{workpieceTreePanel-GlMrvoGI.js → workpieceTreePanel-CCbVIIlm.js} +92 -101
- package/dist/workpieceTreePanel-KdP9UaVe.cjs +1 -0
- package/package.json +1 -1
- package/public/icons/svg/CopyAddMenu.svg +1 -0
- package/public/icons/svg/DeleteMenu.svg +1 -0
- package/public/icons/svg/FixedMenu.svg +1 -0
- package/public/icons/svg//345/273/272/346/250/241/345/210/206/346/236/220.svg +1 -0
- package/public/icons/svg//347/256/227/346/263/225.svg +1 -1
- package/dist/animationData-CSjRG83z.cjs +0 -1
- package/dist/animationData-DgukZCiZ.js +0 -69
- package/dist/dataUtil-Bg8jgTaT.js +0 -52
- package/dist/dataUtil-CflXOlIl.cjs +0 -1
- package/dist/fileUtil-CVIZ039M.js +0 -99
- package/dist/fileUtil-DugRTZPB.cjs +0 -1
- package/dist/iconfont-BUDQryy4.cjs +0 -1
- package/dist/index-BAkz3vaY.js +0 -12229
- package/dist/index-BE76NHis.js +0 -2848
- package/dist/index-CXGkiovm.cjs +0 -1
- package/dist/index-CaV-J52G.cjs +0 -1
- package/dist/index-D4y4pCNq.cjs +0 -1
- package/dist/index-DKQuP1UM.cjs +0 -1
- package/dist/index-DhPNGzbc.cjs +0 -1
- package/dist/index-fw0RZg-d.cjs +0 -15
- package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-til9urRl.cjs +0 -37
- package/dist/index.vue_vue_type_style_index_0_scoped_92477073_lang-5Hi_RNl1.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_92477073_lang-DIFWhOl8.js +0 -212
- package/dist/threePreview-5-O-sZIc.cjs +0 -1
- package/dist/threeSceneView-BYl4rYgi.js +0 -1369
- package/dist/threeSceneView-igg9HZ8X.cjs +0 -5
- package/dist/threeSceneViewForCPMPIP-C-o-rOZ9.js +0 -662
- package/dist/threeSceneViewForCPMPIP-DfPj5iau.cjs +0 -5
- package/dist/threeTrackPathView-CgjLFXmL.cjs +0 -370
- package/dist/threeViewerHost-DvAkN_z-.js +0 -322
- package/dist/threeViewerHost-PGblwq3d.cjs +0 -1
- package/dist/workpieceTreePanel-Cr4nTOQE.cjs +0 -1
- package/dist/xlsx-BPHygxEf.cjs +0 -104
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as Xe, a as Ye, b as Ze,
|
|
3
|
-
import { aT as
|
|
4
|
-
import {
|
|
5
|
-
import { E as
|
|
6
|
-
import { U as
|
|
7
|
-
import { T as
|
|
8
|
-
import { i as
|
|
9
|
-
import { _ as
|
|
10
|
-
const
|
|
11
|
-
class
|
|
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
|
|
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
|
|
41
|
-
return this.setAttribute("instanceStart", new
|
|
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
|
|
54
|
-
return this.setAttribute("instanceColorStart", new
|
|
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
|
|
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
|
|
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),
|
|
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
|
|
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
|
|
107
|
-
|
|
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
|
-
|
|
114
|
+
Y.line = {
|
|
115
115
|
worldUnits: { value: 1 },
|
|
116
116
|
linewidth: { value: 1 },
|
|
117
|
-
resolution: { value: new
|
|
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
|
-
|
|
125
|
-
uniforms:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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
|
|
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:
|
|
522
|
-
vertexShader:
|
|
523
|
-
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
|
|
664
|
-
let
|
|
665
|
-
function
|
|
666
|
-
return
|
|
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
|
|
669
|
-
const n = s.matrixWorld, i = s.geometry, t = i.attributes.instanceStart,
|
|
670
|
-
for (let a = 0,
|
|
671
|
-
|
|
672
|
-
const u = new
|
|
673
|
-
|
|
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:
|
|
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
|
|
686
|
-
const i = e.projectionMatrix,
|
|
687
|
-
|
|
688
|
-
for (let
|
|
689
|
-
if (
|
|
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 (
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
} else if (
|
|
695
|
-
const
|
|
696
|
-
|
|
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
|
-
|
|
699
|
-
const
|
|
700
|
-
|
|
701
|
-
const
|
|
702
|
-
if (
|
|
703
|
-
|
|
704
|
-
const
|
|
705
|
-
|
|
706
|
-
point:
|
|
707
|
-
pointOnLine:
|
|
708
|
-
distance:
|
|
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:
|
|
711
|
+
faceIndex: m,
|
|
712
712
|
uv: null,
|
|
713
713
|
uv1: null
|
|
714
714
|
});
|
|
715
715
|
}
|
|
716
716
|
}
|
|
717
717
|
}
|
|
718
|
-
class
|
|
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
|
|
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
|
|
738
|
-
|
|
739
|
-
const
|
|
740
|
-
return e.setAttribute("instanceDistanceStart", new
|
|
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
|
|
752
|
-
|
|
753
|
-
const
|
|
754
|
-
|
|
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 =
|
|
757
|
+
u = B * 0.5;
|
|
758
758
|
else {
|
|
759
|
-
const
|
|
760
|
-
u =
|
|
759
|
+
const p = Math.max(t.near, $.distanceToPoint(E.origin));
|
|
760
|
+
u = xe(t, p, c.resolution);
|
|
761
761
|
}
|
|
762
|
-
if (
|
|
762
|
+
if ($.radius += u, E.intersectsSphere($) === !1)
|
|
763
763
|
return;
|
|
764
|
-
a.boundingBox === null && a.computeBoundingBox(),
|
|
764
|
+
a.boundingBox === null && a.computeBoundingBox(), q.copy(a.boundingBox).applyMatrix4(r);
|
|
765
765
|
let f;
|
|
766
766
|
if (i)
|
|
767
|
-
f =
|
|
767
|
+
f = B * 0.5;
|
|
768
768
|
else {
|
|
769
|
-
const
|
|
770
|
-
f =
|
|
769
|
+
const p = Math.max(t.near, q.distanceToPoint(E.origin));
|
|
770
|
+
f = xe(t, p, c.resolution);
|
|
771
771
|
}
|
|
772
|
-
|
|
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(
|
|
776
|
+
n && n.resolution && (e.getViewport(ee), this.material.uniforms.resolution.value.set(ee.z, ee.w));
|
|
777
777
|
}
|
|
778
778
|
}
|
|
779
|
-
class
|
|
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
|
|
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
|
|
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
|
|
844
|
+
function xt(s) {
|
|
845
845
|
const e = [];
|
|
846
846
|
return s.forEach((n) => {
|
|
847
|
-
const [i, t,
|
|
848
|
-
e.push(+i, +t, +
|
|
847
|
+
const [i, t, o] = n.trim().split(/\s+/);
|
|
848
|
+
e.push(+i, +t, +o);
|
|
849
849
|
}), e;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
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
|
|
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
|
-
},
|
|
872
|
-
if (!
|
|
871
|
+
}, o = i.trim();
|
|
872
|
+
if (!o)
|
|
873
873
|
return;
|
|
874
|
-
let
|
|
875
|
-
for (let
|
|
876
|
-
const 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
|
-
|
|
878
|
+
r && be(r, t, a), a = "", r = f;
|
|
879
879
|
continue;
|
|
880
880
|
}
|
|
881
881
|
a = a + u;
|
|
882
882
|
}
|
|
883
|
-
|
|
883
|
+
be(r, t, a), e.push(t.x, t.y, t.z);
|
|
884
884
|
}), e;
|
|
885
885
|
}
|
|
886
|
-
const
|
|
887
|
-
const e =
|
|
888
|
-
return
|
|
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
|
|
891
|
-
const e =
|
|
890
|
+
function Et(s) {
|
|
891
|
+
const e = _t(s), n = [];
|
|
892
892
|
return e.forEach((i) => {
|
|
893
|
-
var
|
|
894
|
-
let [t,
|
|
895
|
-
|
|
896
|
-
const [,
|
|
897
|
-
n.push(+
|
|
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
|
|
900
|
+
function Ut(s) {
|
|
901
901
|
return s == null ? void 0 : s.includes("=");
|
|
902
902
|
}
|
|
903
|
-
async function
|
|
904
|
-
var t,
|
|
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 (
|
|
907
|
-
return
|
|
908
|
-
const n = e == null ? void 0 : e[0], i = (
|
|
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
|
|
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 [
|
|
921
|
-
n.push(+
|
|
920
|
+
const [o, r, a] = t;
|
|
921
|
+
n.push(+o, +r, +a);
|
|
922
922
|
}), n;
|
|
923
923
|
}
|
|
924
|
-
async function
|
|
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 [
|
|
931
|
-
n.push(+
|
|
930
|
+
const [o, r, a] = t;
|
|
931
|
+
n.push(+o, +r, +a);
|
|
932
932
|
}), n;
|
|
933
933
|
}
|
|
934
|
-
async function
|
|
934
|
+
async function Pt(s, e) {
|
|
935
935
|
const { isCyd: n, isUv: i, isCpt: t } = e;
|
|
936
|
-
return i ?
|
|
936
|
+
return i ? At(s) : n ? Lt(s) : t ? Mt(s) : [];
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function Tt(s, e) {
|
|
939
939
|
if (!e || e.length < 3)
|
|
940
940
|
return;
|
|
941
|
-
const { scene: n, camera: i, renderer: t, controls:
|
|
942
|
-
if (!n || !i || !t || !
|
|
941
|
+
const { scene: n, camera: i, renderer: t, controls: o } = s();
|
|
942
|
+
if (!n || !i || !t || !o)
|
|
943
943
|
return;
|
|
944
|
-
const
|
|
945
|
-
for (let
|
|
946
|
-
|
|
947
|
-
const
|
|
948
|
-
u.setPositions(
|
|
949
|
-
const f = new
|
|
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
|
|
954
|
-
}),
|
|
955
|
-
return
|
|
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
|
|
958
|
-
let
|
|
959
|
-
for (let
|
|
960
|
-
const
|
|
961
|
-
|
|
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
|
|
964
|
-
return Math.max(1,
|
|
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
|
|
967
|
-
const e = new
|
|
968
|
-
e.setAttribute("position", new
|
|
969
|
-
const n = new
|
|
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
|
|
975
|
+
return new ct(e, n);
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function Dt(s, e) {
|
|
978
978
|
if (!e)
|
|
979
979
|
return;
|
|
980
|
-
const { scene: n, camera: i, renderer: t, controls:
|
|
981
|
-
if (!n || !i || !t || !
|
|
980
|
+
const { scene: n, camera: i, renderer: t, controls: o } = s();
|
|
981
|
+
if (!n || !i || !t || !o)
|
|
982
982
|
return;
|
|
983
|
-
const
|
|
984
|
-
|
|
985
|
-
const a =
|
|
986
|
-
return
|
|
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
|
|
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
|
-
},
|
|
991
|
+
}, Xt = /* @__PURE__ */ Ve({
|
|
995
992
|
__name: "threeTrackPathView",
|
|
996
993
|
props: {
|
|
997
994
|
fileUrls: {},
|
|
998
995
|
threeData: { default: () => "" },
|
|
999
996
|
trackFileType: {}
|
|
1000
997
|
},
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
}),
|
|
1022
|
-
var
|
|
1023
|
-
return (
|
|
1024
|
-
}),
|
|
1025
|
-
var
|
|
1026
|
-
return (
|
|
1027
|
-
}), Ie =
|
|
1028
|
-
|
|
1029
|
-
return
|
|
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
|
|
1032
|
-
const
|
|
1033
|
-
const { scene:
|
|
1034
|
-
|
|
1035
|
-
},
|
|
1036
|
-
const
|
|
1037
|
-
if (
|
|
1038
|
-
|
|
1039
|
-
const
|
|
1040
|
-
De.value && (
|
|
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
|
-
|
|
1044
|
-
|
|
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
|
|
1050
|
-
|
|
1051
|
-
const
|
|
1052
|
-
|
|
1053
|
-
},
|
|
1054
|
-
window.removeEventListener("resize",
|
|
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
|
|
1059
|
+
return Ne(async () => {
|
|
1057
1060
|
try {
|
|
1058
|
-
|
|
1059
|
-
} catch (
|
|
1060
|
-
console.error("Three.js 初始化失败:",
|
|
1061
|
+
We();
|
|
1062
|
+
} catch (d) {
|
|
1063
|
+
console.error("Three.js 初始化失败:", d), ut.error("渲染引擎初始化失败!");
|
|
1061
1064
|
}
|
|
1062
|
-
}),
|
|
1063
|
-
|
|
1064
|
-
}), (
|
|
1065
|
-
const
|
|
1066
|
-
return
|
|
1067
|
-
|
|
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:
|
|
1072
|
+
ref: n,
|
|
1070
1073
|
class: "threejs-container"
|
|
1071
1074
|
}, null, 512),
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
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:
|
|
1080
|
+
onClick: R(m),
|
|
1099
1081
|
title: "重置"
|
|
1100
1082
|
}, null, 8, ["onClick"]),
|
|
1101
|
-
|
|
1083
|
+
h(v, {
|
|
1102
1084
|
name: "fangda",
|
|
1103
1085
|
size: "24",
|
|
1104
1086
|
title: "放大"
|
|
1105
1087
|
}),
|
|
1106
|
-
|
|
1088
|
+
h(v, {
|
|
1107
1089
|
name: "suoxiao",
|
|
1108
1090
|
size: "24",
|
|
1109
1091
|
title: "缩小"
|
|
1110
1092
|
}),
|
|
1111
|
-
|
|
1093
|
+
h(v, {
|
|
1112
1094
|
name: "lookAround",
|
|
1113
1095
|
size: "24",
|
|
1114
|
-
onClick:
|
|
1115
|
-
title:
|
|
1096
|
+
onClick: R(Ae),
|
|
1097
|
+
title: R(re) ? "停止动画" : "动画视图"
|
|
1116
1098
|
}, null, 8, ["onClick", "title"]),
|
|
1117
|
-
|
|
1099
|
+
h(v, {
|
|
1118
1100
|
name: "zuobiaoxi",
|
|
1119
1101
|
size: "24",
|
|
1120
|
-
active:
|
|
1121
|
-
onClick:
|
|
1102
|
+
active: R(z),
|
|
1103
|
+
onClick: Be,
|
|
1122
1104
|
title: "显隐坐标轴"
|
|
1123
1105
|
}, null, 8, ["active"])
|
|
1124
1106
|
]),
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
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:
|
|
1131
|
-
active:
|
|
1112
|
+
onClick: l[0] || (l[0] = (P) => j("场景树")),
|
|
1113
|
+
active: o.value && r.value === "场景树",
|
|
1132
1114
|
title: "场景树"
|
|
1133
1115
|
}, null, 8, ["active"]),
|
|
1134
|
-
|
|
1116
|
+
h(v, {
|
|
1135
1117
|
name: "clipping",
|
|
1136
1118
|
size: "24",
|
|
1137
|
-
onClick:
|
|
1138
|
-
active:
|
|
1119
|
+
onClick: l[1] || (l[1] = (P) => j("剖面视图")),
|
|
1120
|
+
active: o.value && r.value === "剖面视图",
|
|
1139
1121
|
title: "剖面视图"
|
|
1140
1122
|
}, null, 8, ["active"]),
|
|
1141
|
-
|
|
1123
|
+
h(v, {
|
|
1142
1124
|
name: "donghuafangzhen",
|
|
1143
1125
|
size: "24",
|
|
1144
|
-
onClick:
|
|
1126
|
+
onClick: l[2] || (l[2] = (P) => j("场景树3"))
|
|
1145
1127
|
}),
|
|
1146
|
-
|
|
1128
|
+
h(v, {
|
|
1147
1129
|
name: "donghuafangzhen",
|
|
1148
1130
|
size: "24",
|
|
1149
|
-
onClick:
|
|
1131
|
+
onClick: l[3] || (l[3] = (P) => j("场景4"))
|
|
1150
1132
|
})
|
|
1151
1133
|
]),
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
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
|
-
|
|
1140
|
+
h(v, {
|
|
1159
1141
|
name: "guanjiekongzhi",
|
|
1160
1142
|
size: "24",
|
|
1161
|
-
onClick:
|
|
1162
|
-
active:
|
|
1143
|
+
onClick: l[4] || (l[4] = (P) => G("关节控制")),
|
|
1144
|
+
active: a.value && c.value === "关节控制",
|
|
1163
1145
|
title: "关节控制"
|
|
1164
1146
|
}, null, 8, ["active"]),
|
|
1165
|
-
|
|
1147
|
+
h(v, {
|
|
1166
1148
|
name: "donghuafangzhen",
|
|
1167
1149
|
size: "24",
|
|
1168
1150
|
title: "动画仿真",
|
|
1169
|
-
onClick:
|
|
1170
|
-
active:
|
|
1151
|
+
onClick: l[5] || (l[5] = (P) => G("动画仿真")),
|
|
1152
|
+
active: a.value && c.value === "动画仿真"
|
|
1171
1153
|
}, null, 8, ["active"]),
|
|
1172
|
-
|
|
1154
|
+
h(v, {
|
|
1173
1155
|
name: "donghuafangzhen",
|
|
1174
1156
|
size: "24",
|
|
1175
1157
|
title: "urdf动画",
|
|
1176
|
-
onClick:
|
|
1177
|
-
active:
|
|
1158
|
+
onClick: l[6] || (l[6] = (P) => G("urdf动画")),
|
|
1159
|
+
active: a.value && c.value === "urdf动画"
|
|
1178
1160
|
}, null, 8, ["active"]),
|
|
1179
|
-
|
|
1161
|
+
h(v, {
|
|
1180
1162
|
name: "donghuafangzhen",
|
|
1181
1163
|
size: "24"
|
|
1182
1164
|
})
|
|
1183
1165
|
]),
|
|
1184
|
-
|
|
1185
|
-
|
|
1166
|
+
g("div", Rt, [
|
|
1167
|
+
h(v, {
|
|
1186
1168
|
name: "kuaitui",
|
|
1187
1169
|
size: "24",
|
|
1188
1170
|
backgroundColor: "#ffffff",
|
|
1189
1171
|
title: "快退",
|
|
1190
|
-
onClick:
|
|
1172
|
+
onClick: l[7] || (l[7] = () => {
|
|
1191
1173
|
})
|
|
1192
1174
|
}),
|
|
1193
|
-
|
|
1175
|
+
h(v, {
|
|
1194
1176
|
name: "bofang",
|
|
1195
1177
|
size: "24",
|
|
1196
1178
|
backgroundColor: "#ffffff",
|
|
1197
1179
|
title: "播放",
|
|
1198
|
-
onClick:
|
|
1180
|
+
onClick: l[8] || (l[8] = () => {
|
|
1199
1181
|
})
|
|
1200
1182
|
}),
|
|
1201
|
-
|
|
1183
|
+
h(v, {
|
|
1202
1184
|
name: "kuaijin",
|
|
1203
1185
|
size: "24",
|
|
1204
1186
|
backgroundColor: "#ffffff",
|
|
1205
1187
|
title: "快进",
|
|
1206
|
-
onClick:
|
|
1188
|
+
onClick: l[9] || (l[9] = () => {
|
|
1207
1189
|
})
|
|
1208
1190
|
}),
|
|
1209
|
-
|
|
1191
|
+
h(v, {
|
|
1210
1192
|
name: "zanting",
|
|
1211
1193
|
size: "24",
|
|
1212
1194
|
backgroundColor: "#ffffff",
|
|
1213
1195
|
title: "暂停",
|
|
1214
|
-
onClick:
|
|
1196
|
+
onClick: l[10] || (l[10] = () => {
|
|
1215
1197
|
})
|
|
1216
1198
|
}),
|
|
1217
|
-
|
|
1199
|
+
h(v, {
|
|
1218
1200
|
name: "zhongzhi",
|
|
1219
1201
|
size: "24",
|
|
1220
1202
|
backgroundColor: "#ffffff",
|
|
1221
1203
|
title: "停止",
|
|
1222
|
-
onClick:
|
|
1204
|
+
onClick: l[11] || (l[11] = () => {
|
|
1223
1205
|
})
|
|
1224
1206
|
})
|
|
1225
1207
|
]),
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
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:
|
|
1213
|
+
onClick: l[12] || (l[12] = (P) => o.value = !1)
|
|
1232
1214
|
}, " X ")
|
|
1233
1215
|
]),
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
default:
|
|
1237
|
-
|
|
1216
|
+
g("div", Vt, [
|
|
1217
|
+
h(F, { height: "100%" }, {
|
|
1218
|
+
default: me(() => [
|
|
1219
|
+
r.value === "场景树" ? (H(), he(ft, {
|
|
1238
1220
|
key: 0,
|
|
1239
|
-
model:
|
|
1240
|
-
}, null, 8, ["model"])) :
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
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
|
-
[
|
|
1233
|
+
[Q, o.value]
|
|
1303
1234
|
]),
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
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:
|
|
1240
|
+
onClick: l[13] || (l[13] = (P) => a.value = !1)
|
|
1310
1241
|
}, " X ")
|
|
1311
1242
|
]),
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
default:
|
|
1315
|
-
|
|
1316
|
-
[
|
|
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
|
-
[
|
|
1254
|
+
[Q, a.value]
|
|
1324
1255
|
]),
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
])) :
|
|
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
|
-
}),
|
|
1263
|
+
}), an = /* @__PURE__ */ ht(Xt, [["__scopeId", "data-v-20775f32"]]);
|
|
1333
1264
|
export {
|
|
1334
|
-
|
|
1265
|
+
an as default
|
|
1335
1266
|
};
|