ss-component-new 1.2.47 → 1.2.49
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/{MTLLoader-CaFP1Ou3.js → MTLLoader-CI8ixwPt.js} +1 -1
- package/dist/{MTLLoader-CE4kiml3.cjs → MTLLoader-Dvu7y2QT.cjs} +1 -1
- package/dist/{OrbitControls-DArl2VW_.js → OrbitControls-C9e3hYR3.js} +1 -1
- package/dist/{OrbitControls-Dp4IKx0f.cjs → OrbitControls-_0hxpyeP.cjs} +1 -1
- package/dist/{animationData-Bn6Bb5Do.cjs → animationData-D_zttqoJ.cjs} +1 -1
- package/dist/{animationData-CKhRG4G6.js → animationData-X5-Vecw1.js} +1 -1
- package/dist/{fileUtil-XthoWjc0.cjs → fileUtil-Bdou_B28.cjs} +1 -1
- package/dist/{fileUtil-CGSBIaqQ.js → fileUtil-DfZnK-Hd.js} +1 -1
- package/dist/{iconfont-CoOPkcMU.js → iconfont-BqCAG-Xa.js} +2 -2
- package/dist/{iconfont-CzHX5Q49.cjs → iconfont-CF0Z-1Zz.cjs} +1 -1
- package/dist/{index-DK2gRUQ5.js → index--dF_34pi.js} +3 -3
- package/dist/{index-B_N4MySi.js → index-4YT4LSe0.js} +6 -6
- package/dist/{index-D6f9QOaT.cjs → index-B67T_D-B.cjs} +1 -1
- package/dist/{index-BgGtziMi.js → index-BBhUi01k.js} +1 -1
- package/dist/{index-kU-daxaJ.cjs → index-BFDlTBy2.cjs} +1 -1
- package/dist/{index-BuLZitf5.js → index-BFbWwBLk.js} +1 -1
- package/dist/{index-CC7hLeHW.cjs → index-BNvzsde-.cjs} +1 -1
- package/dist/{index-BPAbLPKP.js → index-BXmDJjWZ.js} +3 -3
- package/dist/{index-BaCVhcpB.js → index-BayEAjm5.js} +2 -2
- package/dist/{index-DeoJm8bD.cjs → index-Bi-eQ_Ao.cjs} +1 -1
- package/dist/{index-DlWW881X.cjs → index-BlOdSSAq.cjs} +1 -1
- package/dist/{index-BlI13uDG.js → index-BtFLHygK.js} +3 -3
- package/dist/{index-CkjmhTCX.cjs → index-CCQIE4Oy.cjs} +1 -1
- package/dist/{index-BzE5v5kZ.js → index-CNm1s2vL.js} +1 -1
- package/dist/{index-CVvKFbm0.cjs → index-CPUMWDcJ.cjs} +1 -1
- package/dist/{index-BGs6f9ia.cjs → index-CQ1e9lYs.cjs} +1 -1
- package/dist/{index-CoM7mmmK.js → index-CS0QGxh0.js} +2 -2
- package/dist/{index-DS74YOGT.js → index-CS9sM7Hp.js} +13 -13
- package/dist/{index-C9kezJl-.cjs → index-CVpMVZV1.cjs} +1 -1
- package/dist/{index-C27aVboC.cjs → index-C_sDHKxB.cjs} +1 -1
- package/dist/{index-BTFg_bTg.cjs → index-CbBgf-yk.cjs} +1 -1
- package/dist/{index-CA2Yz2_0.cjs → index-CkuJ8iH2.cjs} +1 -1
- package/dist/{index-D9lY54L2.cjs → index-Cl7W3Ut8.cjs} +1 -1
- package/dist/{index-CaVtcERG.js → index-CmhVDhAN.js} +1 -1
- package/dist/{index-DtKItKKp.cjs → index-CtG2kfBs.cjs} +1 -1
- package/dist/{index-Bp8HFrx8.cjs → index-Ctu9PMCG.cjs} +1 -1
- package/dist/{index-Dhr85_ZG.js → index-CuaFndyM.js} +1 -1
- package/dist/{index-BM3G9dKv.cjs → index-DE3DTsMe.cjs} +1 -1
- package/dist/{index-BIbEt8CC.cjs → index-DbTCGQx3.cjs} +1 -1
- package/dist/{index-DhNncUpj.js → index-DcOmBNJf.js} +6 -6
- package/dist/{index-CwUGEpBf.js → index-DcaPy4x5.js} +4 -4
- package/dist/{index-LviYrEee.cjs → index-DhBSzWe6.cjs} +1 -1
- package/dist/{index-Bav-TgWp.cjs → index-DtstoFZP.cjs} +1 -1
- package/dist/{index-Cv4ZnuwG.js → index-Dy4T7syW.js} +1 -1
- package/dist/{index-D4-Vm_be.js → index-Gf-kIKKw.js} +1 -1
- package/dist/{index-DbebBHFx.cjs → index-MRxhNso1.cjs} +1 -1
- package/dist/{index-0QG1fhmk.js → index-PQ_QQCkT.js} +3 -3
- package/dist/{index-DDIHX4cE.js → index-Z6YOQl0q.js} +1 -1
- package/dist/{index-DxoNiiaW.js → index-ZQaet9VV.js} +2 -2
- package/dist/{index-DO7yfB4v.cjs → index-ZRiaAb2v.cjs} +1 -1
- package/dist/{index-B3tcBTuN.js → index-ahynRrcW.js} +1 -1
- package/dist/{index-UbKxbl_Q.js → index-qjBFQjPJ.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CVhcJCk3.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B6ZjVCbD.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DVDkdgUJ.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-B6uH3veM.js} +6 -6
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BKmza87s.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bs732h4o.js} +1642 -1647
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CVOmmDqn.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZpdB8yMK.cjs} +58 -58
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BHE0HyLH.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-Bo0v68wl.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-UPn3ibM8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-D6ACiiu0.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-BQu9bRjA.js → index.vue_vue_type_style_index_1_lang-BWrgp4ZE.js} +3 -3
- package/dist/{index.vue_vue_type_style_index_1_lang-BCgJtTb9.cjs → index.vue_vue_type_style_index_1_lang-C48UCmcC.cjs} +1 -1
- package/dist/{main-C8s1t45C.cjs → main-_mrHlIM9.cjs} +1 -1
- package/dist/{main-DYESspnW.js → main-m1Rhr2az.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-CPfys2Ir.cjs → threeModel-B3mSuqYu.cjs} +1 -1
- package/dist/{threeModel-CE2asK8z.js → threeModel-CvPCyPV6.js} +4 -4
- package/dist/{threePreview-B4pWTdK0.cjs → threePreview-BadLzWum.cjs} +1 -1
- package/dist/{threePreview-D1x3POg8.js → threePreview-C4uFnwJD.js} +3 -3
- package/dist/{threeSceneView-B7Rg5mYp.cjs → threeSceneView-BVrwU1JW.cjs} +1 -1
- package/dist/{threeSceneView-C_rkxb3y.js → threeSceneView-ZtLxHVG4.js} +6 -6
- package/dist/{threeSceneViewForCPMPIP-B6jB5Tek.cjs → threeSceneViewForCPMPIP-1YWF_a61.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-68VJDoWr.js → threeSceneViewForCPMPIP-C0FHJPj7.js} +7 -7
- package/dist/threeTrackPathView-DUeFqTH4.cjs +370 -0
- package/dist/{threeTrackPathView-Cs-yUH16.js → threeTrackPathView-uxK07M8K.js} +283 -263
- package/dist/{threeViewerHost-Ca1V8lHT.cjs → threeViewerHost-B0cP0E33.cjs} +1 -1
- package/dist/{threeViewerHost-N_id3Zd_.js → threeViewerHost-C5syYs1F.js} +2 -2
- package/dist/{urdfTree-D6IvPahB.js → urdfTree-DHVh6IAB.js} +1 -1
- package/dist/{urdfTree-Czcl8tzp.cjs → urdfTree-tjbbIpI4.cjs} +1 -1
- package/dist/{workpieceTreePanel-Cyhp8KK2.js → workpieceTreePanel-DrKcwg7Z.js} +5 -5
- package/dist/{workpieceTreePanel-CWGU_Vea.cjs → workpieceTreePanel-QjGBJMbm.cjs} +1 -1
- package/package.json +1 -1
- package/dist/obj/model.mtl +0 -42
- package/dist/obj/model.obj +0 -26110
- package/dist/threeTrackPathView-c50jFDAg.cjs +0 -370
- package/public/obj/model.mtl +0 -42
- package/public/obj/model.obj +0 -26110
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { aE as Qe, aF as le, aG as
|
|
4
|
-
import { r as
|
|
5
|
-
import { E as
|
|
6
|
-
import { U as ut, J as ft } from "./urdfTree-
|
|
7
|
-
import { T as
|
|
1
|
+
import { defineComponent as Ve, ref as D, shallowRef as he, computed as q, watch as We, 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-BqCAG-Xa.js";
|
|
3
|
+
import { aE as Qe, aF as le, aG as ce, av as G, aH as et, B as de, aD as Ce, V as L, aI as tt, aJ as Q, aK as _e, Y as Ee, aL as ee, k as nt, aM as H, aN as it, r as st, s as Ue, t as ot, w as at, ag as rt, ao as lt } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Bs732h4o.js";
|
|
4
|
+
import { r as ct } from "./fileUtil-DfZnK-Hd.js";
|
|
5
|
+
import { E as dt } from "./index-CbJEJj8c.js";
|
|
6
|
+
import { U as ut, J as ft } from "./urdfTree-DHVh6IAB.js";
|
|
7
|
+
import { T as y } from "./svgIcon-D-_fXUBL.js";
|
|
8
8
|
import { i as pt } from "./isString-Co7vgur-.js";
|
|
9
9
|
import { _ as mt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
|
-
const ye = new
|
|
10
|
+
const ye = new de(), Z = new L();
|
|
11
11
|
class Ae extends Qe {
|
|
12
12
|
/**
|
|
13
13
|
* Constructs a new line segments 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 ce(n, 6, 1);
|
|
41
|
+
return this.setAttribute("instanceStart", new G(i, 3, 0)), this.setAttribute("instanceEnd", new G(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 ce(n, 6, 1);
|
|
54
|
+
return this.setAttribute("instanceColorStart", new G(i, 3, 0)), this.setAttribute("instanceColorEnd", new G(i, 3, 3)), this;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Setups this line segments geometry from the given wireframe geometry.
|
|
@@ -92,7 +92,7 @@ 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 de());
|
|
96
96
|
const e = this.attributes.instanceStart, n = this.attributes.instanceEnd;
|
|
97
97
|
e !== void 0 && n !== void 0 && (this.boundingBox.setFromBufferAttribute(e), ye.setFromBufferAttribute(n), this.boundingBox.union(ye));
|
|
98
98
|
}
|
|
@@ -104,7 +104,7 @@ class Ae extends Qe {
|
|
|
104
104
|
this.boundingBox.getCenter(i);
|
|
105
105
|
let t = 0;
|
|
106
106
|
for (let r = 0, l = e.count; r < l; r++)
|
|
107
|
-
|
|
107
|
+
Z.fromBufferAttribute(e, r), t = Math.max(t, i.distanceToSquared(Z)), Z.fromBufferAttribute(n, r), t = Math.max(t, i.distanceToSquared(Z));
|
|
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
|
}
|
|
@@ -114,7 +114,7 @@ class Ae extends Qe {
|
|
|
114
114
|
ee.line = {
|
|
115
115
|
worldUnits: { value: 1 },
|
|
116
116
|
linewidth: { value: 1 },
|
|
117
|
-
resolution: { value: new
|
|
117
|
+
resolution: { value: new Ee(1, 1) },
|
|
118
118
|
dashOffset: { value: 0 },
|
|
119
119
|
dashScale: { value: 1 },
|
|
120
120
|
dashSize: { value: 1 },
|
|
@@ -660,21 +660,21 @@ 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
|
|
664
|
-
let M,
|
|
665
|
-
function
|
|
666
|
-
return A.set(0, 0, -e, 1).applyMatrix4(
|
|
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));
|
|
667
667
|
}
|
|
668
|
-
function ht(
|
|
669
|
-
const n =
|
|
670
|
-
for (let a = 0,
|
|
671
|
-
|
|
672
|
-
const u = new
|
|
673
|
-
M.distanceSqToSegment(
|
|
674
|
-
point:
|
|
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({
|
|
674
|
+
point: f,
|
|
675
675
|
pointOnLine: u,
|
|
676
|
-
distance: M.origin.distanceTo(
|
|
677
|
-
object:
|
|
676
|
+
distance: M.origin.distanceTo(f),
|
|
677
|
+
object: s,
|
|
678
678
|
face: null,
|
|
679
679
|
faceIndex: a,
|
|
680
680
|
uv: null,
|
|
@@ -682,33 +682,33 @@ function ht(o, e) {
|
|
|
682
682
|
});
|
|
683
683
|
}
|
|
684
684
|
}
|
|
685
|
-
function vt(
|
|
686
|
-
const i = e.projectionMatrix, r =
|
|
687
|
-
M.at(1,
|
|
688
|
-
for (let
|
|
689
|
-
if (w.fromBufferAttribute(
|
|
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)
|
|
690
690
|
continue;
|
|
691
|
-
if (w.z >
|
|
692
|
-
const
|
|
693
|
-
w.lerp(x,
|
|
694
|
-
} else if (x.z >
|
|
695
|
-
const
|
|
696
|
-
x.lerp(w,
|
|
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);
|
|
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,
|
|
699
|
-
const
|
|
700
|
-
|
|
701
|
-
const
|
|
702
|
-
if (
|
|
703
|
-
|
|
704
|
-
const
|
|
705
|
-
M.distanceSqToSegment(
|
|
706
|
-
point:
|
|
707
|
-
pointOnLine:
|
|
708
|
-
distance: M.origin.distanceTo(
|
|
709
|
-
object:
|
|
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, F = ae.distanceTo(be) < I * 0.5;
|
|
702
|
+
if (C && F) {
|
|
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),
|
|
709
|
+
object: s,
|
|
710
710
|
face: null,
|
|
711
|
-
faceIndex:
|
|
711
|
+
faceIndex: h,
|
|
712
712
|
uv: null,
|
|
713
713
|
uv1: null
|
|
714
714
|
});
|
|
@@ -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,
|
|
737
|
+
for (let l = 0, a = 0, d = n.count; l < d; l++, a += 2)
|
|
738
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
|
|
740
|
-
return e.setAttribute("instanceDistanceStart", new
|
|
739
|
+
const r = new ce(t, 2, 1);
|
|
740
|
+
return e.setAttribute("instanceDistanceStart", new G(r, 1, 0)), e.setAttribute("instanceDistanceEnd", new G(r, 1, 1)), this;
|
|
741
741
|
}
|
|
742
742
|
/**
|
|
743
743
|
* Computes intersection points between a casted ray and this instance.
|
|
@@ -750,26 +750,26 @@ class gt extends nt {
|
|
|
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
751
|
const r = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
|
|
752
752
|
M = e.ray;
|
|
753
|
-
const l = this.matrixWorld, a = this.geometry,
|
|
754
|
-
|
|
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);
|
|
755
755
|
let u;
|
|
756
756
|
if (i)
|
|
757
|
-
u =
|
|
757
|
+
u = I * 0.5;
|
|
758
758
|
else {
|
|
759
|
-
const
|
|
760
|
-
u =
|
|
759
|
+
const v = Math.max(t.near, K.distanceToPoint(M.origin));
|
|
760
|
+
u = Se(t, v, d.resolution);
|
|
761
761
|
}
|
|
762
762
|
if (K.radius += u, M.intersectsSphere(K) === !1)
|
|
763
763
|
return;
|
|
764
|
-
a.boundingBox === null && a.computeBoundingBox(),
|
|
765
|
-
let
|
|
764
|
+
a.boundingBox === null && a.computeBoundingBox(), J.copy(a.boundingBox).applyMatrix4(l);
|
|
765
|
+
let f;
|
|
766
766
|
if (i)
|
|
767
|
-
|
|
767
|
+
f = I * 0.5;
|
|
768
768
|
else {
|
|
769
|
-
const
|
|
770
|
-
|
|
769
|
+
const v = Math.max(t.near, J.distanceToPoint(M.origin));
|
|
770
|
+
f = Se(t, v, d.resolution);
|
|
771
771
|
}
|
|
772
|
-
|
|
772
|
+
J.expandByScalar(f), M.intersectsBox(J) !== !1 && (i ? ht(this, n) : vt(this, t, n));
|
|
773
773
|
}
|
|
774
774
|
onBeforeRender(e) {
|
|
775
775
|
const n = this.material.uniforms;
|
|
@@ -841,15 +841,15 @@ class yt extends gt {
|
|
|
841
841
|
super(e, n), this.isLine2 = !0, this.type = "Line2";
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
|
-
function wt(
|
|
844
|
+
function wt(s) {
|
|
845
845
|
const e = [];
|
|
846
|
-
return
|
|
846
|
+
return s.forEach((n) => {
|
|
847
847
|
const [i, t, r] = n.trim().split(/\s+/);
|
|
848
848
|
e.push(+i, +t, +r);
|
|
849
849
|
}), e;
|
|
850
850
|
}
|
|
851
|
-
function ze(
|
|
852
|
-
switch (
|
|
851
|
+
function ze(s, e, n) {
|
|
852
|
+
switch (s) {
|
|
853
853
|
case "X":
|
|
854
854
|
e.x = +n || 0;
|
|
855
855
|
break;
|
|
@@ -861,9 +861,9 @@ function ze(o, e, n) {
|
|
|
861
861
|
break;
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
|
-
function xt(
|
|
864
|
+
function xt(s) {
|
|
865
865
|
const e = [], n = ["X", "Y", "Z"];
|
|
866
|
-
return
|
|
866
|
+
return s.forEach((i) => {
|
|
867
867
|
const t = {
|
|
868
868
|
x: 0,
|
|
869
869
|
y: 0,
|
|
@@ -872,10 +872,10 @@ function xt(o) {
|
|
|
872
872
|
if (!r)
|
|
873
873
|
return;
|
|
874
874
|
let l = null, a = "";
|
|
875
|
-
for (let
|
|
876
|
-
const u = r[
|
|
877
|
-
if (
|
|
878
|
-
l && ze(l, t, a), a = "", l =
|
|
875
|
+
for (let d = 0; d < (r == null ? void 0 : r.length); d++) {
|
|
876
|
+
const u = r[d], f = n.find((v) => v === u);
|
|
877
|
+
if (f) {
|
|
878
|
+
l && ze(l, t, a), a = "", l = f;
|
|
879
879
|
continue;
|
|
880
880
|
}
|
|
881
881
|
a = a + u;
|
|
@@ -883,16 +883,36 @@ function xt(o) {
|
|
|
883
883
|
ze(l, t, a), e.push(t.x, t.y, t.z);
|
|
884
884
|
}), e;
|
|
885
885
|
}
|
|
886
|
-
|
|
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);
|
|
889
|
+
};
|
|
890
|
+
function _t(s) {
|
|
891
|
+
const e = Ct(s), n = [];
|
|
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);
|
|
898
|
+
}), n;
|
|
899
|
+
}
|
|
900
|
+
function Et(s) {
|
|
901
|
+
return s == null ? void 0 : s.includes("=");
|
|
902
|
+
}
|
|
903
|
+
async function Ut(s) {
|
|
887
904
|
var t, r;
|
|
888
|
-
const e = (t =
|
|
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+/);
|
|
889
909
|
if ((i == null ? void 0 : i.length) >= 3)
|
|
890
910
|
return wt(e);
|
|
891
911
|
if ((i == null ? void 0 : i.length) === 1)
|
|
892
912
|
return xt(e);
|
|
893
913
|
}
|
|
894
|
-
async function
|
|
895
|
-
const e =
|
|
914
|
+
async function At(s) {
|
|
915
|
+
const e = s.trim().split(/\r?\n/), n = [];
|
|
896
916
|
return e.forEach((i) => {
|
|
897
917
|
const t = i.trim().split(/\s+/);
|
|
898
918
|
if (t.length != 3)
|
|
@@ -901,8 +921,8 @@ async function bt(o) {
|
|
|
901
921
|
n.push(+r, +l, +a);
|
|
902
922
|
}), n;
|
|
903
923
|
}
|
|
904
|
-
async function
|
|
905
|
-
const e =
|
|
924
|
+
async function Mt(s) {
|
|
925
|
+
const e = s.trim().split(/\r?\n/), n = [];
|
|
906
926
|
return e.forEach((i) => {
|
|
907
927
|
const t = i.trim().split(/\s+/);
|
|
908
928
|
if (t.length != 3)
|
|
@@ -911,41 +931,41 @@ async function zt(o) {
|
|
|
911
931
|
n.push(+r, +l, +a);
|
|
912
932
|
}), n;
|
|
913
933
|
}
|
|
914
|
-
async function
|
|
934
|
+
async function Lt(s, e) {
|
|
915
935
|
const { isCyd: n, isUv: i, isCpt: t } = e;
|
|
916
|
-
return i ?
|
|
936
|
+
return i ? Ut(s) : n ? Mt(s) : t ? At(s) : [];
|
|
917
937
|
}
|
|
918
|
-
function
|
|
938
|
+
function Pt(s, e) {
|
|
919
939
|
if (!e || e.length < 3)
|
|
920
940
|
return;
|
|
921
|
-
const { scene: n, camera: i, renderer: t, controls: r } =
|
|
941
|
+
const { scene: n, camera: i, renderer: t, controls: r } = s();
|
|
922
942
|
if (!n || !i || !t || !r)
|
|
923
943
|
return;
|
|
924
944
|
const l = [];
|
|
925
|
-
for (let
|
|
926
|
-
l.push(new
|
|
927
|
-
const
|
|
928
|
-
u.setPositions(
|
|
929
|
-
const
|
|
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({
|
|
930
950
|
color: 55551,
|
|
931
951
|
linewidth: 3,
|
|
932
952
|
// 像素宽度,可 >1
|
|
933
|
-
resolution: new
|
|
934
|
-
}),
|
|
935
|
-
return
|
|
953
|
+
resolution: new Ee(window.innerWidth, window.innerHeight)
|
|
954
|
+
}), v = new yt(u, f);
|
|
955
|
+
return v.name = "轨迹路径", n.add(v), v;
|
|
936
956
|
}
|
|
937
|
-
function
|
|
938
|
-
let r = 1 / 0, l = -1 / 0, a = 1 / 0,
|
|
939
|
-
for (let
|
|
940
|
-
const
|
|
941
|
-
r = Math.min(r,
|
|
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], F = s[z + 1], E = s[z + 2];
|
|
961
|
+
r = Math.min(r, C), l = Math.max(l, C), a = Math.min(a, F), d = Math.max(d, F), u = Math.min(u, E), f = Math.max(f, E);
|
|
942
962
|
}
|
|
943
|
-
const
|
|
944
|
-
return Math.max(1,
|
|
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);
|
|
945
965
|
}
|
|
946
|
-
function
|
|
966
|
+
function Bt(s) {
|
|
947
967
|
const e = new at();
|
|
948
|
-
e.setAttribute("position", new le(
|
|
968
|
+
e.setAttribute("position", new le(s, 3));
|
|
949
969
|
const n = new rt({
|
|
950
970
|
color: 55551,
|
|
951
971
|
size: 1,
|
|
@@ -954,24 +974,24 @@ function Et(o) {
|
|
|
954
974
|
});
|
|
955
975
|
return new lt(e, n);
|
|
956
976
|
}
|
|
957
|
-
function
|
|
977
|
+
function kt(s, e) {
|
|
958
978
|
if (!e)
|
|
959
979
|
return;
|
|
960
|
-
const { scene: n, camera: i, renderer: t, controls: r } =
|
|
980
|
+
const { scene: n, camera: i, renderer: t, controls: r } = s();
|
|
961
981
|
if (!n || !i || !t || !r)
|
|
962
982
|
return;
|
|
963
|
-
const l =
|
|
983
|
+
const l = Bt(e);
|
|
964
984
|
l.name = "轨迹路径", n.add(l);
|
|
965
|
-
const a =
|
|
985
|
+
const a = Tt(e, i, t, 0.5, 50);
|
|
966
986
|
return l.material.size = a, l;
|
|
967
987
|
}
|
|
968
|
-
const
|
|
988
|
+
const Dt = { class: "obj-viewer-container" }, Ot = { class: "buttonGroup-top" }, jt = { class: "buttonGroup-topLeft" }, It = { class: "buttonGroup-left" }, Ft = { class: "buttonGroup-right" }, Rt = { class: "buttonGroup-bottom" }, Gt = { class: "left-panel" }, Vt = { class: "panel-header" }, Wt = { class: "panel-body" }, Ht = {
|
|
969
989
|
key: 1,
|
|
970
990
|
class: "clipping-content"
|
|
971
|
-
},
|
|
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 = {
|
|
972
992
|
key: 0,
|
|
973
993
|
class: "loading-overlay"
|
|
974
|
-
},
|
|
994
|
+
}, en = /* @__PURE__ */ Ve({
|
|
975
995
|
__name: "threeTrackPathView",
|
|
976
996
|
props: {
|
|
977
997
|
fileUrls: {},
|
|
@@ -979,298 +999,298 @@ const Mt = { class: "obj-viewer-container" }, Pt = { class: "buttonGroup-top" },
|
|
|
979
999
|
trackFileType: {}
|
|
980
1000
|
},
|
|
981
1001
|
emits: ["getAnimationData", "getThreeData"],
|
|
982
|
-
setup(
|
|
983
|
-
const n = e, i =
|
|
984
|
-
currentModels:
|
|
985
|
-
resetView:
|
|
986
|
-
initThreeJS:
|
|
987
|
-
handleResize:
|
|
988
|
-
getThreeJSObjects:
|
|
989
|
-
cleanup:
|
|
990
|
-
axesHelperVisible:
|
|
991
|
-
toggleAxesVisibility:
|
|
992
|
-
} =
|
|
993
|
-
|
|
994
|
-
},
|
|
995
|
-
a.value = !0,
|
|
996
|
-
}, N = (
|
|
997
|
-
u.value = !0,
|
|
998
|
-
}, pe =
|
|
999
|
-
var
|
|
1000
|
-
return (
|
|
1001
|
-
}), Oe =
|
|
1002
|
-
var
|
|
1003
|
-
return (
|
|
1004
|
-
}), je =
|
|
1005
|
-
var
|
|
1006
|
-
return (
|
|
1007
|
-
}), Ie =
|
|
1008
|
-
const
|
|
1009
|
-
return
|
|
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: F,
|
|
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
|
+
}, V = (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];
|
|
1010
1030
|
});
|
|
1011
|
-
let
|
|
1031
|
+
let R = null;
|
|
1012
1032
|
const me = () => {
|
|
1013
|
-
const { scene:
|
|
1014
|
-
|
|
1015
|
-
}, Fe = async (
|
|
1016
|
-
const
|
|
1017
|
-
if (pt(
|
|
1018
|
-
pe.value = await
|
|
1033
|
+
const { scene: p } = C();
|
|
1034
|
+
R && p && (Ke(R, p), R = null);
|
|
1035
|
+
}, Fe = async (p) => {
|
|
1036
|
+
const o = await ct(p);
|
|
1037
|
+
if (pt(o)) {
|
|
1038
|
+
pe.value = await Lt(o, i.trackFileType) || [];
|
|
1019
1039
|
const W = pe.value;
|
|
1020
|
-
De.value && (
|
|
1040
|
+
De.value && (R = Pt(C, W)), (Oe.value || je.value) && (R = kt(C, W)), Je(C, R);
|
|
1021
1041
|
}
|
|
1022
1042
|
};
|
|
1023
|
-
|
|
1024
|
-
|
|
1043
|
+
We(() => Ie.value, async (p) => {
|
|
1044
|
+
p && (me(), await Fe(p));
|
|
1025
1045
|
}, {
|
|
1026
1046
|
immediate: !0,
|
|
1027
1047
|
deep: !0
|
|
1028
1048
|
});
|
|
1029
1049
|
const Re = () => {
|
|
1030
|
-
|
|
1031
|
-
const
|
|
1032
|
-
|
|
1050
|
+
T(), window.addEventListener("resize", z);
|
|
1051
|
+
const p = C();
|
|
1052
|
+
h.value = p.scene, h.value && (h.value.name = "CPMPIP");
|
|
1033
1053
|
}, Ge = () => {
|
|
1034
|
-
window.removeEventListener("resize",
|
|
1054
|
+
window.removeEventListener("resize", z), fe.value && Pe(), me(), F();
|
|
1035
1055
|
};
|
|
1036
1056
|
return He(async () => {
|
|
1037
1057
|
try {
|
|
1038
1058
|
Re();
|
|
1039
|
-
} catch (
|
|
1040
|
-
console.error("Three.js 初始化失败:",
|
|
1059
|
+
} catch (p) {
|
|
1060
|
+
console.error("Three.js 初始化失败:", p), dt.error("渲染引擎初始化失败!");
|
|
1041
1061
|
}
|
|
1042
1062
|
}), Ne(() => {
|
|
1043
1063
|
Ge();
|
|
1044
|
-
}), (
|
|
1045
|
-
const W =
|
|
1046
|
-
return
|
|
1047
|
-
|
|
1064
|
+
}), (p, o) => {
|
|
1065
|
+
const W = qe("el-scrollbar");
|
|
1066
|
+
return $(), te("div", Dt, [
|
|
1067
|
+
c("div", {
|
|
1048
1068
|
ref_key: "threejsContainer",
|
|
1049
1069
|
ref: t,
|
|
1050
1070
|
class: "threejs-container"
|
|
1051
1071
|
}, null, 512),
|
|
1052
|
-
|
|
1053
|
-
|
|
1072
|
+
c("div", Ot, [
|
|
1073
|
+
m(y, {
|
|
1054
1074
|
name: "guanjianjiexi",
|
|
1055
1075
|
size: "34"
|
|
1056
1076
|
}),
|
|
1057
|
-
|
|
1077
|
+
m(y, {
|
|
1058
1078
|
name: "guanjiekongzhi",
|
|
1059
1079
|
size: "34"
|
|
1060
1080
|
}),
|
|
1061
|
-
|
|
1081
|
+
m(y, {
|
|
1062
1082
|
name: "gongyishengcheng",
|
|
1063
1083
|
size: "34"
|
|
1064
1084
|
}),
|
|
1065
|
-
|
|
1085
|
+
m(y, {
|
|
1066
1086
|
name: "buchangshezhi",
|
|
1067
1087
|
size: "34"
|
|
1068
1088
|
}),
|
|
1069
|
-
|
|
1089
|
+
m(y, {
|
|
1070
1090
|
name: "shuchujiagongchengxu",
|
|
1071
1091
|
size: "34"
|
|
1072
1092
|
})
|
|
1073
1093
|
]),
|
|
1074
|
-
|
|
1075
|
-
|
|
1094
|
+
c("div", jt, [
|
|
1095
|
+
m(y, {
|
|
1076
1096
|
name: "viewReset",
|
|
1077
1097
|
size: "24",
|
|
1078
|
-
onClick:
|
|
1098
|
+
onClick: S(O),
|
|
1079
1099
|
title: "重置"
|
|
1080
1100
|
}, null, 8, ["onClick"]),
|
|
1081
|
-
|
|
1101
|
+
m(y, {
|
|
1082
1102
|
name: "fangda",
|
|
1083
1103
|
size: "24",
|
|
1084
1104
|
title: "放大"
|
|
1085
1105
|
}),
|
|
1086
|
-
|
|
1106
|
+
m(y, {
|
|
1087
1107
|
name: "suoxiao",
|
|
1088
1108
|
size: "24",
|
|
1089
1109
|
title: "缩小"
|
|
1090
1110
|
}),
|
|
1091
|
-
|
|
1111
|
+
m(y, {
|
|
1092
1112
|
name: "lookAround",
|
|
1093
1113
|
size: "24",
|
|
1094
|
-
onClick:
|
|
1095
|
-
title:
|
|
1114
|
+
onClick: S(Le),
|
|
1115
|
+
title: S(fe) ? "停止动画" : "动画视图"
|
|
1096
1116
|
}, null, 8, ["onClick", "title"]),
|
|
1097
|
-
|
|
1117
|
+
m(y, {
|
|
1098
1118
|
name: "zuobiaoxi",
|
|
1099
1119
|
size: "24",
|
|
1100
|
-
active:
|
|
1120
|
+
active: S(E),
|
|
1101
1121
|
onClick: ke,
|
|
1102
1122
|
title: "显隐坐标轴"
|
|
1103
1123
|
}, null, 8, ["active"])
|
|
1104
1124
|
]),
|
|
1105
|
-
|
|
1106
|
-
ve(
|
|
1107
|
-
|
|
1125
|
+
c("div", It, [
|
|
1126
|
+
ve(p.$slots, "button-left", { switchRightPanel: V }, void 0, !0),
|
|
1127
|
+
m(y, {
|
|
1108
1128
|
name: "jiegoushu",
|
|
1109
1129
|
size: "24",
|
|
1110
|
-
onClick:
|
|
1111
|
-
active: a.value &&
|
|
1130
|
+
onClick: o[0] || (o[0] = (g) => V("场景树")),
|
|
1131
|
+
active: a.value && d.value === "场景树",
|
|
1112
1132
|
title: "场景树"
|
|
1113
1133
|
}, null, 8, ["active"]),
|
|
1114
|
-
|
|
1134
|
+
m(y, {
|
|
1115
1135
|
name: "clipping",
|
|
1116
1136
|
size: "24",
|
|
1117
|
-
onClick:
|
|
1118
|
-
active: a.value &&
|
|
1137
|
+
onClick: o[1] || (o[1] = (g) => V("剖面视图")),
|
|
1138
|
+
active: a.value && d.value === "剖面视图",
|
|
1119
1139
|
title: "剖面视图"
|
|
1120
1140
|
}, null, 8, ["active"]),
|
|
1121
|
-
|
|
1141
|
+
m(y, {
|
|
1122
1142
|
name: "donghuafangzhen",
|
|
1123
1143
|
size: "24",
|
|
1124
|
-
onClick:
|
|
1144
|
+
onClick: o[2] || (o[2] = (g) => V("场景树3"))
|
|
1125
1145
|
}),
|
|
1126
|
-
|
|
1146
|
+
m(y, {
|
|
1127
1147
|
name: "donghuafangzhen",
|
|
1128
1148
|
size: "24",
|
|
1129
|
-
onClick:
|
|
1149
|
+
onClick: o[3] || (o[3] = (g) => V("场景4"))
|
|
1130
1150
|
})
|
|
1131
1151
|
]),
|
|
1132
|
-
|
|
1133
|
-
ve(
|
|
1134
|
-
|
|
1152
|
+
c("div", Ft, [
|
|
1153
|
+
ve(p.$slots, "button-right", { switchRightPanel: N }, void 0, !0),
|
|
1154
|
+
m(y, {
|
|
1135
1155
|
name: "donghuafangzhen",
|
|
1136
1156
|
size: "24"
|
|
1137
1157
|
}),
|
|
1138
|
-
|
|
1158
|
+
m(y, {
|
|
1139
1159
|
name: "guanjiekongzhi",
|
|
1140
1160
|
size: "24",
|
|
1141
|
-
onClick:
|
|
1142
|
-
active: u.value &&
|
|
1161
|
+
onClick: o[4] || (o[4] = (g) => N("关节控制")),
|
|
1162
|
+
active: u.value && f.value === "关节控制",
|
|
1143
1163
|
title: "关节控制"
|
|
1144
1164
|
}, null, 8, ["active"]),
|
|
1145
|
-
|
|
1165
|
+
m(y, {
|
|
1146
1166
|
name: "donghuafangzhen",
|
|
1147
1167
|
size: "24",
|
|
1148
1168
|
title: "动画仿真",
|
|
1149
|
-
onClick:
|
|
1150
|
-
active: u.value &&
|
|
1169
|
+
onClick: o[5] || (o[5] = (g) => N("动画仿真")),
|
|
1170
|
+
active: u.value && f.value === "动画仿真"
|
|
1151
1171
|
}, null, 8, ["active"]),
|
|
1152
|
-
|
|
1172
|
+
m(y, {
|
|
1153
1173
|
name: "donghuafangzhen",
|
|
1154
1174
|
size: "24",
|
|
1155
1175
|
title: "urdf动画",
|
|
1156
|
-
onClick:
|
|
1157
|
-
active: u.value &&
|
|
1176
|
+
onClick: o[6] || (o[6] = (g) => N("urdf动画")),
|
|
1177
|
+
active: u.value && f.value === "urdf动画"
|
|
1158
1178
|
}, null, 8, ["active"]),
|
|
1159
|
-
|
|
1179
|
+
m(y, {
|
|
1160
1180
|
name: "donghuafangzhen",
|
|
1161
1181
|
size: "24"
|
|
1162
1182
|
})
|
|
1163
1183
|
]),
|
|
1164
|
-
|
|
1165
|
-
|
|
1184
|
+
c("div", Rt, [
|
|
1185
|
+
m(y, {
|
|
1166
1186
|
name: "kuaitui",
|
|
1167
1187
|
size: "24",
|
|
1168
1188
|
backgroundColor: "#ffffff",
|
|
1169
1189
|
title: "快退",
|
|
1170
|
-
onClick:
|
|
1190
|
+
onClick: o[7] || (o[7] = () => {
|
|
1171
1191
|
})
|
|
1172
1192
|
}),
|
|
1173
|
-
|
|
1193
|
+
m(y, {
|
|
1174
1194
|
name: "bofang",
|
|
1175
1195
|
size: "24",
|
|
1176
1196
|
backgroundColor: "#ffffff",
|
|
1177
1197
|
title: "播放",
|
|
1178
|
-
onClick:
|
|
1198
|
+
onClick: o[8] || (o[8] = () => {
|
|
1179
1199
|
})
|
|
1180
1200
|
}),
|
|
1181
|
-
|
|
1201
|
+
m(y, {
|
|
1182
1202
|
name: "kuaijin",
|
|
1183
1203
|
size: "24",
|
|
1184
1204
|
backgroundColor: "#ffffff",
|
|
1185
1205
|
title: "快进",
|
|
1186
|
-
onClick:
|
|
1206
|
+
onClick: o[9] || (o[9] = () => {
|
|
1187
1207
|
})
|
|
1188
1208
|
}),
|
|
1189
|
-
|
|
1209
|
+
m(y, {
|
|
1190
1210
|
name: "zanting",
|
|
1191
1211
|
size: "24",
|
|
1192
1212
|
backgroundColor: "#ffffff",
|
|
1193
1213
|
title: "暂停",
|
|
1194
|
-
onClick:
|
|
1214
|
+
onClick: o[10] || (o[10] = () => {
|
|
1195
1215
|
})
|
|
1196
1216
|
}),
|
|
1197
|
-
|
|
1217
|
+
m(y, {
|
|
1198
1218
|
name: "zhongzhi",
|
|
1199
1219
|
size: "24",
|
|
1200
1220
|
backgroundColor: "#ffffff",
|
|
1201
1221
|
title: "停止",
|
|
1202
|
-
onClick:
|
|
1222
|
+
onClick: o[11] || (o[11] = () => {
|
|
1203
1223
|
})
|
|
1204
1224
|
})
|
|
1205
1225
|
]),
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1226
|
+
j(c("div", Gt, [
|
|
1227
|
+
c("div", Vt, [
|
|
1228
|
+
c("span", null, ie(d.value), 1),
|
|
1229
|
+
c("span", {
|
|
1210
1230
|
class: "close",
|
|
1211
|
-
onClick:
|
|
1231
|
+
onClick: o[12] || (o[12] = (g) => a.value = !1)
|
|
1212
1232
|
}, " X ")
|
|
1213
1233
|
]),
|
|
1214
|
-
|
|
1215
|
-
|
|
1234
|
+
c("div", Wt, [
|
|
1235
|
+
m(W, { height: "100%" }, {
|
|
1216
1236
|
default: ge(() => [
|
|
1217
|
-
|
|
1237
|
+
d.value === "场景树" ? ($(), $e(ut, {
|
|
1218
1238
|
key: 0,
|
|
1219
|
-
model:
|
|
1239
|
+
model: v.value
|
|
1220
1240
|
}, null, 8, ["model"])) : ne("", !0),
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1241
|
+
d.value === "剖面视图" ? ($(), te("div", Ht, [
|
|
1242
|
+
c("div", Nt, [
|
|
1243
|
+
c("label", qt, [
|
|
1244
|
+
j(c("input", {
|
|
1225
1245
|
type: "radio",
|
|
1226
1246
|
name: "clipping-axis",
|
|
1227
1247
|
value: "none",
|
|
1228
|
-
"onUpdate:modelValue":
|
|
1229
|
-
onChange:
|
|
1230
|
-
(...
|
|
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))
|
|
1231
1251
|
}, null, 544), [
|
|
1232
|
-
[
|
|
1252
|
+
[Y, S(_)]
|
|
1233
1253
|
]),
|
|
1234
|
-
|
|
1254
|
+
o[22] || (o[22] = c("span", { class: "radio-text" }, "无切割", -1))
|
|
1235
1255
|
]),
|
|
1236
|
-
|
|
1237
|
-
|
|
1256
|
+
c("label", $t, [
|
|
1257
|
+
j(c("input", {
|
|
1238
1258
|
type: "radio",
|
|
1239
1259
|
name: "clipping-axis",
|
|
1240
1260
|
value: "x",
|
|
1241
|
-
"onUpdate:modelValue":
|
|
1242
|
-
onChange:
|
|
1243
|
-
(...
|
|
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))
|
|
1244
1264
|
}, null, 544), [
|
|
1245
|
-
[
|
|
1265
|
+
[Y, S(_)]
|
|
1246
1266
|
]),
|
|
1247
|
-
|
|
1267
|
+
o[23] || (o[23] = c("span", { class: "radio-text" }, "X轴切割", -1))
|
|
1248
1268
|
]),
|
|
1249
|
-
|
|
1250
|
-
|
|
1269
|
+
c("label", Xt, [
|
|
1270
|
+
j(c("input", {
|
|
1251
1271
|
type: "radio",
|
|
1252
1272
|
name: "clipping-axis",
|
|
1253
1273
|
value: "y",
|
|
1254
|
-
"onUpdate:modelValue":
|
|
1255
|
-
onChange:
|
|
1256
|
-
(...
|
|
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))
|
|
1257
1277
|
}, null, 544), [
|
|
1258
|
-
[
|
|
1278
|
+
[Y, S(_)]
|
|
1259
1279
|
]),
|
|
1260
|
-
|
|
1280
|
+
o[24] || (o[24] = c("span", { class: "radio-text" }, "Y轴切割", -1))
|
|
1261
1281
|
]),
|
|
1262
|
-
|
|
1263
|
-
|
|
1282
|
+
c("label", Yt, [
|
|
1283
|
+
j(c("input", {
|
|
1264
1284
|
type: "radio",
|
|
1265
1285
|
name: "clipping-axis",
|
|
1266
1286
|
value: "z",
|
|
1267
|
-
"onUpdate:modelValue":
|
|
1268
|
-
onChange:
|
|
1269
|
-
(...
|
|
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))
|
|
1270
1290
|
}, null, 544), [
|
|
1271
|
-
[
|
|
1291
|
+
[Y, S(_)]
|
|
1272
1292
|
]),
|
|
1273
|
-
|
|
1293
|
+
o[25] || (o[25] = c("span", { class: "radio-text" }, "Z轴切割", -1))
|
|
1274
1294
|
])
|
|
1275
1295
|
])
|
|
1276
1296
|
])) : ne("", !0)
|
|
@@ -1281,19 +1301,19 @@ const Mt = { class: "obj-viewer-container" }, Pt = { class: "buttonGroup-top" },
|
|
|
1281
1301
|
], 512), [
|
|
1282
1302
|
[se, a.value]
|
|
1283
1303
|
]),
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1304
|
+
j(c("div", Zt, [
|
|
1305
|
+
c("div", Jt, [
|
|
1306
|
+
c("span", null, ie(f.value), 1),
|
|
1307
|
+
c("span", {
|
|
1288
1308
|
class: "close",
|
|
1289
|
-
onClick:
|
|
1309
|
+
onClick: o[21] || (o[21] = (g) => u.value = !1)
|
|
1290
1310
|
}, " X ")
|
|
1291
1311
|
]),
|
|
1292
|
-
|
|
1293
|
-
|
|
1312
|
+
c("div", Kt, [
|
|
1313
|
+
m(W, { height: "100%" }, {
|
|
1294
1314
|
default: ge(() => [
|
|
1295
|
-
|
|
1296
|
-
[se,
|
|
1315
|
+
j(m(ft, { model: v.value }, null, 8, ["model"]), [
|
|
1316
|
+
[se, f.value === "关节控制"]
|
|
1297
1317
|
])
|
|
1298
1318
|
]),
|
|
1299
1319
|
_: 1
|
|
@@ -1302,14 +1322,14 @@ const Mt = { class: "obj-viewer-container" }, Pt = { class: "buttonGroup-top" },
|
|
|
1302
1322
|
], 512), [
|
|
1303
1323
|
[se, u.value]
|
|
1304
1324
|
]),
|
|
1305
|
-
r.value ? (
|
|
1306
|
-
|
|
1307
|
-
|
|
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)
|
|
1308
1328
|
])) : ne("", !0)
|
|
1309
1329
|
]);
|
|
1310
1330
|
};
|
|
1311
1331
|
}
|
|
1312
|
-
}),
|
|
1332
|
+
}), un = /* @__PURE__ */ mt(en, [["__scopeId", "data-v-c3ad7441"]]);
|
|
1313
1333
|
export {
|
|
1314
|
-
|
|
1334
|
+
un as default
|
|
1315
1335
|
};
|