ss-component-new 1.2.80 → 1.2.81
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-CzKy5S3N.js → animationData-BPRJf-r-.js} +1 -1
- package/dist/{animationData-Cx_0NcvB.cjs → animationData-DH5gY8Zk.cjs} +1 -1
- package/dist/{fileUtil-BkNOHmd-.js → fileUtil-CKEjaNUg.js} +1 -1
- package/dist/{fileUtil-BwmgO7zP.cjs → fileUtil-Dq8z789S.cjs} +1 -1
- package/dist/{index-D2Pfnt53.cjs → index--jSVJA7I.cjs} +1 -1
- package/dist/{index-C76-vJif.js → index-2TKy87YO.js} +2 -2
- package/dist/{index-CA6nsx_h.js → index-B0oh3lKw.js} +1 -1
- package/dist/{index-CXf6lBdE.cjs → index-B2DOVVt_.cjs} +1 -1
- package/dist/{index-CYWLqtyK.cjs → index-BG201l3g.cjs} +1 -1
- package/dist/{index-CqXgJv9t.cjs → index-BGpMhoAn.cjs} +1 -1
- package/dist/{index-Cz9avVfO.js → index-BIVzYvnV.js} +4 -4
- package/dist/{index-Cq19gLg1.js → index-BL2Z3Sc6.js} +1 -1
- package/dist/{index-D4dHKM_q.cjs → index-BSyoqrD-.cjs} +1 -1
- package/dist/{index-DJbbE8RZ.cjs → index-BT4XOQjN.cjs} +1 -1
- package/dist/{index-Dggwjy1a.js → index-BbE3Qlc2.js} +2 -2
- package/dist/{index-UimmbGfr.js → index-BkVhRdXB.js} +2 -2
- package/dist/{index-CGRkfbyW.cjs → index-BpbVtUaq.cjs} +1 -1
- package/dist/{index-DCA2SBLF.js → index-C-05KLKS.js} +3 -3
- package/dist/{index-BuS8sMz3.js → index-CCh7ZrOY.js} +4 -4
- package/dist/{index-mOrIvLPq.cjs → index-CGLdJhQi.cjs} +1 -1
- package/dist/{index-BUDz9v5Y.js → index-CIwI0bj4.js} +2 -2
- package/dist/{index-BCc3Hjr3.cjs → index-CJjFGfqM.cjs} +1 -1
- package/dist/{index-CWJ-Dy0t.js → index-CS6YbtUR.js} +1 -1
- package/dist/{index-DspkbDO6.cjs → index-CYUlQC2a.cjs} +1 -1
- package/dist/{index-DxYa9IZv.cjs → index-Cc46-O4B.cjs} +1 -1
- package/dist/{index-DPGzgCKL.cjs → index-Cd8Q7hP6.cjs} +1 -1
- package/dist/{index-v8dBwqi7.cjs → index-Cf23G5Gb.cjs} +1 -1
- package/dist/{index--jNz-aQS.cjs → index-Cv3WmVt4.cjs} +1 -1
- package/dist/{index-IttdGf2N.js → index-D43r3mg-.js} +1 -1
- package/dist/{index-CK-rki3s.js → index-D_44en-a.js} +1 -1
- package/dist/{index-Cp6TGEco.cjs → index-Ddc1lEB4.cjs} +1 -1
- package/dist/{index-D0T-R3kl.cjs → index-Dfidy-wH.cjs} +1 -1
- package/dist/{index-C3Wx9shJ.cjs → index-DpWo13Gc.cjs} +1 -1
- package/dist/{index-CJzy5uxl.cjs → index-Gnd-CTcV.cjs} +1 -1
- package/dist/{index-DUiMwYjv.js → index-PiJ6fNEG.js} +2 -2
- package/dist/{index-C8SpvzNp.js → index-SojMYpVn.js} +1 -1
- package/dist/{index-BbPskk3u.js → index-W0ZboCUb.js} +12 -12
- package/dist/{index-Ca3uWEcn.js → index-dy3bAVSA.js} +5 -5
- package/dist/{index-GWQqqZB6.js → index-fJpS81JC.js} +1 -1
- package/dist/{index-BJhyDgyd.js → index-xpoi1O8z.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DetYin0A.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BGHNBF7B.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-6F5euo3F.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DZVw5Iur.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D5VZY6_r.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-DTTf-iDr.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CZrcTylU.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-NZCE3mxo.js} +2 -2
- package/dist/{index.vue_vue_type_style_index_1_lang-BEZdr71u.js → index.vue_vue_type_style_index_1_lang-CXTFtcA0.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_1_lang-GBtBj9Ge.cjs → index.vue_vue_type_style_index_1_lang-DO9EJkGN.cjs} +1 -1
- package/dist/{main-DHtQlxDx.js → main-D4bsBiHo.js} +2 -2
- package/dist/{main-BZKg7pGD.cjs → main-DHmdIkkE.cjs} +1 -1
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +6 -6
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +10 -10
- package/dist/{threeModel-DC0UXL84.cjs → threeModel-Besg9bHy.cjs} +1 -1
- package/dist/{threeModel-DxoVa2uO.js → threeModel-C7J03nYV.js} +2 -2
- package/dist/{threeSceneView-CAPu3ogD.js → threeSceneView-DLr9o0zV.js} +3 -3
- package/dist/{threeSceneView-BIsoLPvU.cjs → threeSceneView-DtF-0gVE.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-B6L9nioX.cjs → threeSceneViewForCPMPIP-DVUNc9AY.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-CC9k3nhf.js → threeSceneViewForCPMPIP-lAZGy5ox.js} +3 -3
- package/dist/{threeTrackPathView-BFCLVloV.js → threeTrackPathView-2ZJNQrE7.js} +127 -127
- package/dist/threeTrackPathView-DaIaNx16.cjs +370 -0
- package/dist/{threeViewerHost-Bm7uuF4V.js → threeViewerHost-BlA9VDWb.js} +1 -1
- package/dist/{threeViewerHost-DNj_epI8.cjs → threeViewerHost-DS7c0XkH.cjs} +1 -1
- package/dist/{workpieceTreePanel-DtWEl2ST.cjs → workpieceTreePanel-BqLeGC87.cjs} +1 -1
- package/dist/{workpieceTreePanel-BeP2BAH5.js → workpieceTreePanel-DmGn4P14.js} +2 -2
- package/package.json +1 -1
- package/dist/threeTrackPathView-D5gPW-mm.cjs +0 -370
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as Le, computed as
|
|
1
|
+
import { defineComponent as Le, computed as W, ref as A, resolveComponent as X, createElementBlock as re, openBlock as q, createElementVNode as d, createVNode as v, withCtx as ue, toDisplayString as Z, shallowRef as me, watch as it, onMounted as st, onBeforeUnmount as ot, withDirectives as j, createCommentVNode as he, unref as b, renderSlot as ze, createBlock as at, isRef as te, vModelRadio as ne, vShow as ie } from "vue";
|
|
2
2
|
import { u as rt, a as lt, b as ct, f as ut, d as dt } from "./iconfont-hiVfumlP.js";
|
|
3
|
-
import { k as ke, aE as ft, v as pt, aF as mt, aG as
|
|
4
|
-
import { r as St } from "./fileUtil-
|
|
5
|
-
import { E as
|
|
3
|
+
import { k as ke, aE as ft, v as pt, aF as mt, aG as we, aH as xe, av as H, aI as ht, B as be, aD as Pe, V as k, aJ as vt, aK as le, aL as Te, Y as Be, aM as ce, aN as J, aO as gt, r as yt, s as De, t as wt, w as xt, ag as bt, ao as _t } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DBqTEyZe.js";
|
|
4
|
+
import { r as St } from "./fileUtil-CKEjaNUg.js";
|
|
5
|
+
import { E as Y } from "./index-CbJEJj8c.js";
|
|
6
6
|
import { U as zt, J as Ct } from "./urdfTree-BZ_TtcRO.js";
|
|
7
7
|
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
import { T as w } from "./svgIcon-D-_fXUBL.js";
|
|
@@ -31,7 +31,7 @@ const At = { class: "panel-content" }, Mt = { class: "animation-controls" }, Lt
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["getThreeData"],
|
|
33
33
|
setup(s, { expose: e, emit: n }) {
|
|
34
|
-
const i = s, t =
|
|
34
|
+
const i = s, t = W(() => i.vectors), a = A(!1), r = A(0), o = A(50);
|
|
35
35
|
let u = !1;
|
|
36
36
|
const p = (h) => `第 ${h + 1} 帧`, f = (h) => {
|
|
37
37
|
if (h < 0 || h >= t.value.length) {
|
|
@@ -42,7 +42,7 @@ const At = { class: "panel-content" }, Mt = { class: "animation-controls" }, Lt
|
|
|
42
42
|
console.log(`应用第 ${h} 帧数据 ${x}`), r.value = h, Oe(i.knife, x);
|
|
43
43
|
}, m = async () => {
|
|
44
44
|
if (t.value.length === 0) {
|
|
45
|
-
|
|
45
|
+
Y.error("无法播放动画:无数据");
|
|
46
46
|
return;
|
|
47
47
|
}
|
|
48
48
|
if (!a.value) {
|
|
@@ -50,15 +50,15 @@ const At = { class: "panel-content" }, Mt = { class: "animation-controls" }, Lt
|
|
|
50
50
|
try {
|
|
51
51
|
for (let h = r.value + 1; h < t.value.length && !u; h++)
|
|
52
52
|
await new Promise((x) => setTimeout(x, o.value)), f(h);
|
|
53
|
-
u ||
|
|
53
|
+
u || Y.success("动画播放完成");
|
|
54
54
|
} catch (h) {
|
|
55
|
-
console.error("动画播放出错:", h),
|
|
55
|
+
console.error("动画播放出错:", h), Y.error("动画播放出错");
|
|
56
56
|
} finally {
|
|
57
57
|
a.value = !1;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
}, g = () => {
|
|
61
|
-
u = !0, a.value = !1,
|
|
61
|
+
u = !0, a.value = !1, Y.info("动画已停止");
|
|
62
62
|
}, E = (h) => {
|
|
63
63
|
a.value && g(), f(h);
|
|
64
64
|
};
|
|
@@ -67,23 +67,23 @@ const At = { class: "panel-content" }, Mt = { class: "animation-controls" }, Lt
|
|
|
67
67
|
}, backwardFrame: () => {
|
|
68
68
|
a.value && g(), r.value !== 0 && f(r.value - 1);
|
|
69
69
|
} }), (h, x) => {
|
|
70
|
-
const C =
|
|
71
|
-
return
|
|
70
|
+
const C = X("el-input-number"), U = X("el-form-item"), L = X("el-form"), fe = X("el-slider");
|
|
71
|
+
return q(), re("div", At, [
|
|
72
72
|
d("div", Mt, [
|
|
73
73
|
d("div", Lt, [
|
|
74
74
|
v(L, {
|
|
75
75
|
"label-width": "auto",
|
|
76
76
|
style: { width: "100%" }
|
|
77
77
|
}, {
|
|
78
|
-
default:
|
|
78
|
+
default: ue(() => [
|
|
79
79
|
v(U, {
|
|
80
80
|
label: "帧间隔 (ms):",
|
|
81
81
|
prop: "frameDuration"
|
|
82
82
|
}, {
|
|
83
|
-
default:
|
|
83
|
+
default: ue(() => [
|
|
84
84
|
v(C, {
|
|
85
85
|
modelValue: o.value,
|
|
86
|
-
"onUpdate:modelValue": x[0] || (x[0] = (
|
|
86
|
+
"onUpdate:modelValue": x[0] || (x[0] = (N) => o.value = N),
|
|
87
87
|
min: 0,
|
|
88
88
|
max: 5e3,
|
|
89
89
|
step: 10,
|
|
@@ -98,13 +98,13 @@ const At = { class: "panel-content" }, Mt = { class: "animation-controls" }, Lt
|
|
|
98
98
|
]),
|
|
99
99
|
d("div", kt, [
|
|
100
100
|
x[2] || (x[2] = d("label", null, "当前帧:", -1)),
|
|
101
|
-
d("span", Pt,
|
|
101
|
+
d("span", Pt, Z(r.value + 1) + " / " + Z(t.value.length), 1)
|
|
102
102
|
]),
|
|
103
103
|
d("div", Tt, [
|
|
104
104
|
x[3] || (x[3] = d("label", null, "动画进度:", -1)),
|
|
105
|
-
v(
|
|
105
|
+
v(fe, {
|
|
106
106
|
modelValue: r.value,
|
|
107
|
-
"onUpdate:modelValue": x[1] || (x[1] = (
|
|
107
|
+
"onUpdate:modelValue": x[1] || (x[1] = (N) => r.value = N),
|
|
108
108
|
min: 0,
|
|
109
109
|
max: t.value.length > 0 ? t.value.length - 1 : 0,
|
|
110
110
|
step: 1,
|
|
@@ -118,7 +118,7 @@ const At = { class: "panel-content" }, Mt = { class: "animation-controls" }, Lt
|
|
|
118
118
|
]);
|
|
119
119
|
};
|
|
120
120
|
}
|
|
121
|
-
}), Dt = /* @__PURE__ */ Fe(Bt, [["__scopeId", "data-v-82a364cb"]]), Ce = new
|
|
121
|
+
}), Dt = /* @__PURE__ */ Fe(Bt, [["__scopeId", "data-v-82a364cb"]]), Ce = new be(), se = new k();
|
|
122
122
|
class je extends mt {
|
|
123
123
|
/**
|
|
124
124
|
* Constructs a new line segments geometry.
|
|
@@ -126,7 +126,7 @@ class je extends mt {
|
|
|
126
126
|
constructor() {
|
|
127
127
|
super(), this.isLineSegmentsGeometry = !0, this.type = "LineSegmentsGeometry";
|
|
128
128
|
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];
|
|
129
|
-
this.setIndex(i), this.setAttribute("position", new
|
|
129
|
+
this.setIndex(i), this.setAttribute("position", new we(e, 3)), this.setAttribute("uv", new we(n, 2));
|
|
130
130
|
}
|
|
131
131
|
/**
|
|
132
132
|
* Applies the given 4x4 transformation matrix to the geometry.
|
|
@@ -148,8 +148,8 @@ class je extends mt {
|
|
|
148
148
|
setPositions(e) {
|
|
149
149
|
let n;
|
|
150
150
|
e instanceof Float32Array ? n = e : Array.isArray(e) && (n = new Float32Array(e));
|
|
151
|
-
const i = new
|
|
152
|
-
return this.setAttribute("instanceStart", new
|
|
151
|
+
const i = new xe(n, 6, 1);
|
|
152
|
+
return this.setAttribute("instanceStart", new H(i, 3, 0)), this.setAttribute("instanceEnd", new H(i, 3, 3)), this.instanceCount = this.attributes.instanceStart.count, this.computeBoundingBox(), this.computeBoundingSphere(), this;
|
|
153
153
|
}
|
|
154
154
|
/**
|
|
155
155
|
* Sets the given line colors for this geometry. The length must be a multiple of six since
|
|
@@ -161,8 +161,8 @@ class je extends mt {
|
|
|
161
161
|
setColors(e) {
|
|
162
162
|
let n;
|
|
163
163
|
e instanceof Float32Array ? n = e : Array.isArray(e) && (n = new Float32Array(e));
|
|
164
|
-
const i = new
|
|
165
|
-
return this.setAttribute("instanceColorStart", new
|
|
164
|
+
const i = new xe(n, 6, 1);
|
|
165
|
+
return this.setAttribute("instanceColorStart", new H(i, 3, 0)), this.setAttribute("instanceColorEnd", new H(i, 3, 3)), this;
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
168
|
* Setups this line segments geometry from the given wireframe geometry.
|
|
@@ -203,7 +203,7 @@ class je extends mt {
|
|
|
203
203
|
return this.setPositions(n.attributes.position.array), this;
|
|
204
204
|
}
|
|
205
205
|
computeBoundingBox() {
|
|
206
|
-
this.boundingBox === null && (this.boundingBox = new
|
|
206
|
+
this.boundingBox === null && (this.boundingBox = new be());
|
|
207
207
|
const e = this.attributes.instanceStart, n = this.attributes.instanceEnd;
|
|
208
208
|
e !== void 0 && n !== void 0 && (this.boundingBox.setFromBufferAttribute(e), Ce.setFromBufferAttribute(n), this.boundingBox.union(Ce));
|
|
209
209
|
}
|
|
@@ -215,14 +215,14 @@ class je extends mt {
|
|
|
215
215
|
this.boundingBox.getCenter(i);
|
|
216
216
|
let t = 0;
|
|
217
217
|
for (let a = 0, r = e.count; a < r; a++)
|
|
218
|
-
|
|
218
|
+
se.fromBufferAttribute(e, a), t = Math.max(t, i.distanceToSquared(se)), se.fromBufferAttribute(n, a), t = Math.max(t, i.distanceToSquared(se));
|
|
219
219
|
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);
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
toJSON() {
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
ce.line = {
|
|
226
226
|
worldUnits: { value: 1 },
|
|
227
227
|
linewidth: { value: 1 },
|
|
228
228
|
resolution: { value: new Be(1, 1) },
|
|
@@ -232,11 +232,11 @@ le.line = {
|
|
|
232
232
|
gapSize: { value: 1 }
|
|
233
233
|
// todo FIX - maybe change to totalSize
|
|
234
234
|
};
|
|
235
|
-
|
|
235
|
+
le.line = {
|
|
236
236
|
uniforms: Te.merge([
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
237
|
+
ce.common,
|
|
238
|
+
ce.fog,
|
|
239
|
+
ce.line
|
|
240
240
|
]),
|
|
241
241
|
vertexShader: (
|
|
242
242
|
/* glsl */
|
|
@@ -616,7 +616,7 @@ re.line = {
|
|
|
616
616
|
`
|
|
617
617
|
)
|
|
618
618
|
};
|
|
619
|
-
class
|
|
619
|
+
class _e extends vt {
|
|
620
620
|
/**
|
|
621
621
|
* Constructs a new line segments geometry.
|
|
622
622
|
*
|
|
@@ -629,9 +629,9 @@ class be extends vt {
|
|
|
629
629
|
constructor(e) {
|
|
630
630
|
super({
|
|
631
631
|
type: "LineMaterial",
|
|
632
|
-
uniforms: Te.clone(
|
|
633
|
-
vertexShader:
|
|
634
|
-
fragmentShader:
|
|
632
|
+
uniforms: Te.clone(le.line.uniforms),
|
|
633
|
+
vertexShader: le.line.vertexShader,
|
|
634
|
+
fragmentShader: le.line.fragmentShader,
|
|
635
635
|
clipping: !0
|
|
636
636
|
// required for clipping support
|
|
637
637
|
}), this.isLineMaterial = !0, this.setValues(e);
|
|
@@ -771,17 +771,17 @@ class be extends vt {
|
|
|
771
771
|
this.defines && (e === !0 !== this.alphaToCoverage && (this.needsUpdate = !0), e === !0 ? this.defines.USE_ALPHA_TO_COVERAGE = "" : delete this.defines.USE_ALPHA_TO_COVERAGE);
|
|
772
772
|
}
|
|
773
773
|
}
|
|
774
|
-
const
|
|
775
|
-
let D,
|
|
774
|
+
const ve = new J(), Ee = new k(), Ue = new k(), _ = new J(), S = new J(), T = new J(), ge = new k(), ye = new yt(), z = new gt(), Ae = new k(), oe = new be(), ae = new Pe(), B = new J();
|
|
775
|
+
let D, V;
|
|
776
776
|
function Me(s, e, n) {
|
|
777
|
-
return B.set(0, 0, -e, 1).applyMatrix4(s.projectionMatrix), B.multiplyScalar(1 / B.w), B.x =
|
|
777
|
+
return B.set(0, 0, -e, 1).applyMatrix4(s.projectionMatrix), B.multiplyScalar(1 / B.w), B.x = V / n.width, B.y = V / n.height, B.applyMatrix4(s.projectionMatrixInverse), B.multiplyScalar(1 / B.w), Math.abs(Math.max(B.x, B.y));
|
|
778
778
|
}
|
|
779
779
|
function Ft(s, e) {
|
|
780
780
|
const n = s.matrixWorld, i = s.geometry, t = i.attributes.instanceStart, a = i.attributes.instanceEnd, r = Math.min(i.instanceCount, t.count);
|
|
781
781
|
for (let o = 0, u = r; o < u; o++) {
|
|
782
782
|
z.start.fromBufferAttribute(t, o), z.end.fromBufferAttribute(a, o), z.applyMatrix4(n);
|
|
783
783
|
const p = new k(), f = new k();
|
|
784
|
-
D.distanceSqToSegment(z.start, z.end, f, p), f.distanceTo(p) <
|
|
784
|
+
D.distanceSqToSegment(z.start, z.end, f, p), f.distanceTo(p) < V * 0.5 && e.push({
|
|
785
785
|
point: f,
|
|
786
786
|
pointOnLine: p,
|
|
787
787
|
distance: D.origin.distanceTo(f),
|
|
@@ -795,9 +795,9 @@ function Ft(s, e) {
|
|
|
795
795
|
}
|
|
796
796
|
function Ot(s, e, n) {
|
|
797
797
|
const i = e.projectionMatrix, a = s.material.resolution, r = s.matrixWorld, o = s.geometry, u = o.attributes.instanceStart, p = o.attributes.instanceEnd, f = Math.min(o.instanceCount, u.count), m = -e.near;
|
|
798
|
-
D.at(1, T), T.w = 1, T.applyMatrix4(e.matrixWorldInverse), T.applyMatrix4(i), T.multiplyScalar(1 / T.w), T.x *= a.x / 2, T.y *= a.y / 2, T.z = 0,
|
|
798
|
+
D.at(1, T), T.w = 1, T.applyMatrix4(e.matrixWorldInverse), T.applyMatrix4(i), T.multiplyScalar(1 / T.w), T.x *= a.x / 2, T.y *= a.y / 2, T.z = 0, ge.copy(T), ye.multiplyMatrices(e.matrixWorldInverse, r);
|
|
799
799
|
for (let g = 0, E = f; g < E; g++) {
|
|
800
|
-
if (_.fromBufferAttribute(u, g), S.fromBufferAttribute(p, g), _.w = 1, S.w = 1, _.applyMatrix4(
|
|
800
|
+
if (_.fromBufferAttribute(u, g), S.fromBufferAttribute(p, g), _.w = 1, S.w = 1, _.applyMatrix4(ye), S.applyMatrix4(ye), _.z > m && S.z > m)
|
|
801
801
|
continue;
|
|
802
802
|
if (_.z > m) {
|
|
803
803
|
const U = _.z - S.z, L = (_.z - m) / U;
|
|
@@ -807,9 +807,9 @@ function Ot(s, e, n) {
|
|
|
807
807
|
S.lerp(_, L);
|
|
808
808
|
}
|
|
809
809
|
_.applyMatrix4(i), S.applyMatrix4(i), _.multiplyScalar(1 / _.w), S.multiplyScalar(1 / S.w), _.x *= a.x / 2, _.y *= a.y / 2, S.x *= a.x / 2, S.y *= a.y / 2, z.start.copy(_), z.start.z = 0, z.end.copy(S), z.end.z = 0;
|
|
810
|
-
const P = z.closestPointToPointParameter(
|
|
810
|
+
const P = z.closestPointToPointParameter(ge, !0);
|
|
811
811
|
z.at(P, Ae);
|
|
812
|
-
const h = De.lerp(_.z, S.z, P), x = h >= -1 && h <= 1, C =
|
|
812
|
+
const h = De.lerp(_.z, S.z, P), x = h >= -1 && h <= 1, C = ge.distanceTo(Ae) < V * 0.5;
|
|
813
813
|
if (x && C) {
|
|
814
814
|
z.start.fromBufferAttribute(u, g), z.end.fromBufferAttribute(p, g), z.start.applyMatrix4(r), z.end.applyMatrix4(r);
|
|
815
815
|
const U = new k(), L = new k();
|
|
@@ -833,7 +833,7 @@ class jt extends ke {
|
|
|
833
833
|
* @param {LineSegmentsGeometry} [geometry] - The line geometry.
|
|
834
834
|
* @param {LineMaterial} [material] - The line material.
|
|
835
835
|
*/
|
|
836
|
-
constructor(e = new je(), n = new
|
|
836
|
+
constructor(e = new je(), n = new _e({ color: Math.random() * 16777215 })) {
|
|
837
837
|
super(e, n), this.isLineSegments2 = !0, this.type = "LineSegments2";
|
|
838
838
|
}
|
|
839
839
|
/**
|
|
@@ -847,8 +847,8 @@ class jt extends ke {
|
|
|
847
847
|
const e = this.geometry, n = e.attributes.instanceStart, i = e.attributes.instanceEnd, t = new Float32Array(2 * n.count);
|
|
848
848
|
for (let r = 0, o = 0, u = n.count; r < u; r++, o += 2)
|
|
849
849
|
Ee.fromBufferAttribute(n, r), Ue.fromBufferAttribute(i, r), t[o] = o === 0 ? 0 : t[o - 1], t[o + 1] = t[o] + Ee.distanceTo(Ue);
|
|
850
|
-
const a = new
|
|
851
|
-
return e.setAttribute("instanceDistanceStart", new
|
|
850
|
+
const a = new xe(t, 2, 1);
|
|
851
|
+
return e.setAttribute("instanceDistanceStart", new H(a, 1, 0)), e.setAttribute("instanceDistanceEnd", new H(a, 1, 1)), this;
|
|
852
852
|
}
|
|
853
853
|
/**
|
|
854
854
|
* Computes intersection points between a casted ray and this instance.
|
|
@@ -862,29 +862,29 @@ class jt extends ke {
|
|
|
862
862
|
const a = e.params.Line2 !== void 0 && e.params.Line2.threshold || 0;
|
|
863
863
|
D = e.ray;
|
|
864
864
|
const r = this.matrixWorld, o = this.geometry, u = this.material;
|
|
865
|
-
|
|
865
|
+
V = u.linewidth + a, o.boundingSphere === null && o.computeBoundingSphere(), ae.copy(o.boundingSphere).applyMatrix4(r);
|
|
866
866
|
let p;
|
|
867
867
|
if (i)
|
|
868
|
-
p =
|
|
868
|
+
p = V * 0.5;
|
|
869
869
|
else {
|
|
870
|
-
const m = Math.max(t.near,
|
|
870
|
+
const m = Math.max(t.near, ae.distanceToPoint(D.origin));
|
|
871
871
|
p = Me(t, m, u.resolution);
|
|
872
872
|
}
|
|
873
|
-
if (
|
|
873
|
+
if (ae.radius += p, D.intersectsSphere(ae) === !1)
|
|
874
874
|
return;
|
|
875
|
-
o.boundingBox === null && o.computeBoundingBox(),
|
|
875
|
+
o.boundingBox === null && o.computeBoundingBox(), oe.copy(o.boundingBox).applyMatrix4(r);
|
|
876
876
|
let f;
|
|
877
877
|
if (i)
|
|
878
|
-
f =
|
|
878
|
+
f = V * 0.5;
|
|
879
879
|
else {
|
|
880
|
-
const m = Math.max(t.near,
|
|
880
|
+
const m = Math.max(t.near, oe.distanceToPoint(D.origin));
|
|
881
881
|
f = Me(t, m, u.resolution);
|
|
882
882
|
}
|
|
883
|
-
|
|
883
|
+
oe.expandByScalar(f), D.intersectsBox(oe) !== !1 && (i ? Ft(this, n) : Ot(this, t, n));
|
|
884
884
|
}
|
|
885
885
|
onBeforeRender(e) {
|
|
886
886
|
const n = this.material.uniforms;
|
|
887
|
-
n && n.resolution && (e.getViewport(
|
|
887
|
+
n && n.resolution && (e.getViewport(ve), this.material.uniforms.resolution.value.set(ve.z, ve.w));
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
890
|
class Ie extends je {
|
|
@@ -948,7 +948,7 @@ class It extends jt {
|
|
|
948
948
|
* @param {LineGeometry} [geometry] - The line geometry.
|
|
949
949
|
* @param {LineMaterial} [material] - The line material.
|
|
950
950
|
*/
|
|
951
|
-
constructor(e = new Ie(), n = new
|
|
951
|
+
constructor(e = new Ie(), n = new _e({ color: Math.random() * 16777215 })) {
|
|
952
952
|
super(e, n), this.isLine2 = !0, this.type = "Line2";
|
|
953
953
|
}
|
|
954
954
|
}
|
|
@@ -959,7 +959,7 @@ function Vt(s) {
|
|
|
959
959
|
e.push(+i, +t, +a);
|
|
960
960
|
}), e;
|
|
961
961
|
}
|
|
962
|
-
function
|
|
962
|
+
function de(s, e, n) {
|
|
963
963
|
switch (s) {
|
|
964
964
|
case "X":
|
|
965
965
|
e.x = +n || 0;
|
|
@@ -986,12 +986,12 @@ function Nt(s) {
|
|
|
986
986
|
for (let u = 0; u < (a == null ? void 0 : a.length); u++) {
|
|
987
987
|
const p = a[u], f = n.find((m) => m === p);
|
|
988
988
|
if (f) {
|
|
989
|
-
r &&
|
|
989
|
+
r && de(r, t, o), o = "", r = f;
|
|
990
990
|
continue;
|
|
991
991
|
}
|
|
992
992
|
o = o + p;
|
|
993
993
|
}
|
|
994
|
-
|
|
994
|
+
de(r, t, o), e.push(t.x, t.y, t.z);
|
|
995
995
|
}), e;
|
|
996
996
|
}
|
|
997
997
|
const Gt = (s) => s == null ? void 0 : s.filter((n) => n.includes("=")), Wt = (s) => s.replace(/,/g, ""), Ht = (s) => s == null ? void 0 : s.map((n) => Wt(n)), $t = (s) => {
|
|
@@ -1022,12 +1022,12 @@ function Xt(s) {
|
|
|
1022
1022
|
for (let u = 0; u < (a == null ? void 0 : a.length); u++) {
|
|
1023
1023
|
const p = a[u], f = n.find((m) => m === p);
|
|
1024
1024
|
if (f) {
|
|
1025
|
-
r &&
|
|
1025
|
+
r && de(r, t, o), o = "", r = f;
|
|
1026
1026
|
continue;
|
|
1027
1027
|
}
|
|
1028
1028
|
o = o + p;
|
|
1029
1029
|
}
|
|
1030
|
-
|
|
1030
|
+
de(r, t, o), e.push(t.x, t.y, t.z);
|
|
1031
1031
|
}), e;
|
|
1032
1032
|
}
|
|
1033
1033
|
function qt(s) {
|
|
@@ -1092,7 +1092,7 @@ function tn(s, e) {
|
|
|
1092
1092
|
r.push(new k(e[g], e[g + 1], e[g + 2]));
|
|
1093
1093
|
const u = new wt(r, !1, "catmullrom", 0.5).getPoints(150).flatMap((g) => [g.x, g.y, g.z]), p = new Ie();
|
|
1094
1094
|
p.setPositions(u);
|
|
1095
|
-
const f = new
|
|
1095
|
+
const f = new _e({
|
|
1096
1096
|
color: 55551,
|
|
1097
1097
|
linewidth: 3,
|
|
1098
1098
|
// 像素宽度,可 >1
|
|
@@ -1111,7 +1111,7 @@ function nn(s, e, n, i = 4, t = 50) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
function sn(s) {
|
|
1113
1113
|
const e = new xt();
|
|
1114
|
-
e.setAttribute("position", new
|
|
1114
|
+
e.setAttribute("position", new we(s, 3));
|
|
1115
1115
|
const n = new bt({
|
|
1116
1116
|
color: 55551,
|
|
1117
1117
|
size: 1,
|
|
@@ -1146,7 +1146,7 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1146
1146
|
},
|
|
1147
1147
|
emits: ["getAnimationData", "getThreeData"],
|
|
1148
1148
|
setup(s, { emit: e }) {
|
|
1149
|
-
const n = e, i = s, t = A(null), a = A(!1), r = A(""), o = A(), u = A(!1), p = A(""), f = A(!1), m = A(""), g =
|
|
1149
|
+
const n = e, i = s, t = A(null), a = A(!1), r = A(""), o = A(), u = A(!1), p = A(""), f = A(!1), m = A(""), g = me(null), E = me(null), {
|
|
1150
1150
|
currentModels: F,
|
|
1151
1151
|
resetView: P,
|
|
1152
1152
|
initThreeJS: h,
|
|
@@ -1154,81 +1154,81 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1154
1154
|
getThreeJSObjects: C,
|
|
1155
1155
|
cleanup: U,
|
|
1156
1156
|
axesHelperVisible: L,
|
|
1157
|
-
toggleAxesVisibility:
|
|
1158
|
-
} = rt(t), { isAnimating:
|
|
1159
|
-
|
|
1160
|
-
},
|
|
1157
|
+
toggleAxesVisibility: fe
|
|
1158
|
+
} = rt(t), { isAnimating: N, toggleAnimation: Ve, stopAnimation: Ne } = lt(C, F), { isClipping: Ge, activeClippingAxis: M, toggleClipping: We, updateClippingPlanes: O } = ct(C, F), He = () => {
|
|
1159
|
+
fe();
|
|
1160
|
+
}, $ = (c) => {
|
|
1161
1161
|
u.value = !0, p.value = c, c === "剖面视图" && !Ge.value && We();
|
|
1162
|
-
},
|
|
1162
|
+
}, K = (c) => {
|
|
1163
1163
|
f.value = !0, m.value = c, c === "动画仿真" && n("getAnimationData");
|
|
1164
|
-
},
|
|
1164
|
+
}, pe = A([]), R = A([]), $e = W(() => {
|
|
1165
1165
|
var l;
|
|
1166
1166
|
return (l = i.trackFileType) == null ? void 0 : l.isUv;
|
|
1167
|
-
}), Re =
|
|
1167
|
+
}), Re = W(() => {
|
|
1168
1168
|
var l;
|
|
1169
1169
|
return (l = i.trackFileType) == null ? void 0 : l.isCyd;
|
|
1170
|
-
}), Xe =
|
|
1170
|
+
}), Xe = W(() => {
|
|
1171
1171
|
var l;
|
|
1172
1172
|
return (l = i.trackFileType) == null ? void 0 : l.isCpt;
|
|
1173
|
-
}),
|
|
1173
|
+
}), I = W(() => {
|
|
1174
1174
|
var l;
|
|
1175
1175
|
return (l = i.trackFileType) == null ? void 0 : l.isNc;
|
|
1176
|
-
}), qe =
|
|
1176
|
+
}), qe = W(() => {
|
|
1177
1177
|
const c = i.fileUrls || [];
|
|
1178
1178
|
return c == null ? void 0 : c[0];
|
|
1179
1179
|
});
|
|
1180
|
-
let
|
|
1180
|
+
let G = null, Q = me();
|
|
1181
1181
|
const Se = () => {
|
|
1182
1182
|
const { scene: c } = C();
|
|
1183
|
-
|
|
1183
|
+
G && c && (dt(G, c), G = null);
|
|
1184
1184
|
}, Ye = async (c) => {
|
|
1185
1185
|
const l = await St(c);
|
|
1186
1186
|
if (Et(l)) {
|
|
1187
|
-
const
|
|
1188
|
-
|
|
1189
|
-
const y =
|
|
1190
|
-
$e.value && (
|
|
1187
|
+
const ee = await Qt(l, i.trackFileType) || [];
|
|
1188
|
+
pe.value = ee;
|
|
1189
|
+
const y = pe.value;
|
|
1190
|
+
$e.value && (G = tn(C, y)), (Re.value || Xe.value || I.value) && (G = on(C, y)), ut(C, G);
|
|
1191
1191
|
}
|
|
1192
1192
|
}, Ze = () => {
|
|
1193
1193
|
var c, l;
|
|
1194
|
-
|
|
1194
|
+
Q.value = Ut(), R.value = en(pe.value), R.value && R.value.length && (Oe(Q.value, R.value[0]), (l = (c = E.value) == null ? void 0 : c.add) == null || l.call(c, Q.value));
|
|
1195
1195
|
};
|
|
1196
1196
|
it(() => qe.value, async (c) => {
|
|
1197
|
-
c && (Se(), await Ye(c),
|
|
1197
|
+
c && (Se(), await Ye(c), I.value && Ze());
|
|
1198
1198
|
}, {
|
|
1199
1199
|
immediate: !0,
|
|
1200
1200
|
deep: !0
|
|
1201
1201
|
});
|
|
1202
1202
|
const Je = () => {
|
|
1203
1203
|
var c;
|
|
1204
|
-
(c = o == null ? void 0 : o.value) == null || c.playAnimation();
|
|
1204
|
+
I.value && ((c = o == null ? void 0 : o.value) == null || c.playAnimation());
|
|
1205
1205
|
}, Ke = () => {
|
|
1206
1206
|
var c;
|
|
1207
|
-
(c = o == null ? void 0 : o.value) == null || c.stopAnimation();
|
|
1207
|
+
I.value && ((c = o == null ? void 0 : o.value) == null || c.stopAnimation());
|
|
1208
1208
|
}, Qe = () => {
|
|
1209
1209
|
var c;
|
|
1210
|
-
(c = o == null ? void 0 : o.value) == null || c.forwardFrame();
|
|
1210
|
+
I.value && ((c = o == null ? void 0 : o.value) == null || c.forwardFrame());
|
|
1211
1211
|
}, et = () => {
|
|
1212
1212
|
var c;
|
|
1213
|
-
(c = o == null ? void 0 : o.value) == null || c.backwardFrame();
|
|
1213
|
+
I.value && ((c = o == null ? void 0 : o.value) == null || c.backwardFrame());
|
|
1214
1214
|
}, tt = () => {
|
|
1215
1215
|
h(), window.addEventListener("resize", x);
|
|
1216
1216
|
const c = C();
|
|
1217
1217
|
E.value = c.scene, E.value && (E.value.name = "CPMPIP");
|
|
1218
1218
|
}, nt = () => {
|
|
1219
|
-
window.removeEventListener("resize", x),
|
|
1219
|
+
window.removeEventListener("resize", x), N.value && Ne(), Se(), U();
|
|
1220
1220
|
};
|
|
1221
1221
|
return st(async () => {
|
|
1222
1222
|
try {
|
|
1223
1223
|
tt();
|
|
1224
1224
|
} catch (c) {
|
|
1225
|
-
console.error("Three.js 初始化失败:", c),
|
|
1225
|
+
console.error("Three.js 初始化失败:", c), Y.error("渲染引擎初始化失败!");
|
|
1226
1226
|
}
|
|
1227
1227
|
}), ot(() => {
|
|
1228
1228
|
nt();
|
|
1229
1229
|
}), (c, l) => {
|
|
1230
|
-
const
|
|
1231
|
-
return
|
|
1230
|
+
const ee = X("el-scrollbar");
|
|
1231
|
+
return q(), re("div", an, [
|
|
1232
1232
|
d("div", {
|
|
1233
1233
|
ref_key: "threejsContainer",
|
|
1234
1234
|
ref: t,
|
|
@@ -1277,7 +1277,7 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1277
1277
|
name: "lookAround",
|
|
1278
1278
|
size: "24",
|
|
1279
1279
|
onClick: b(Ve),
|
|
1280
|
-
title: b(
|
|
1280
|
+
title: b(N) ? "停止动画" : "动画视图"
|
|
1281
1281
|
}, null, 8, ["onClick", "title"]),
|
|
1282
1282
|
v(w, {
|
|
1283
1283
|
name: "zuobiaoxi",
|
|
@@ -1288,34 +1288,34 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1288
1288
|
}, null, 8, ["active"])
|
|
1289
1289
|
]),
|
|
1290
1290
|
d("div", cn, [
|
|
1291
|
-
ze(c.$slots, "button-left", { switchRightPanel:
|
|
1291
|
+
ze(c.$slots, "button-left", { switchRightPanel: $ }, void 0, !0),
|
|
1292
1292
|
v(w, {
|
|
1293
1293
|
name: "jiegoushu",
|
|
1294
1294
|
size: "24",
|
|
1295
|
-
onClick: l[0] || (l[0] = (y) =>
|
|
1295
|
+
onClick: l[0] || (l[0] = (y) => $("场景树")),
|
|
1296
1296
|
active: u.value && p.value === "场景树",
|
|
1297
1297
|
title: "场景树"
|
|
1298
1298
|
}, null, 8, ["active"]),
|
|
1299
1299
|
v(w, {
|
|
1300
1300
|
name: "clipping",
|
|
1301
1301
|
size: "24",
|
|
1302
|
-
onClick: l[1] || (l[1] = (y) =>
|
|
1302
|
+
onClick: l[1] || (l[1] = (y) => $("剖面视图")),
|
|
1303
1303
|
active: u.value && p.value === "剖面视图",
|
|
1304
1304
|
title: "剖面视图"
|
|
1305
1305
|
}, null, 8, ["active"]),
|
|
1306
1306
|
v(w, {
|
|
1307
1307
|
name: "donghuafangzhen",
|
|
1308
1308
|
size: "24",
|
|
1309
|
-
onClick: l[2] || (l[2] = (y) =>
|
|
1309
|
+
onClick: l[2] || (l[2] = (y) => $("场景树3"))
|
|
1310
1310
|
}),
|
|
1311
1311
|
v(w, {
|
|
1312
1312
|
name: "donghuafangzhen",
|
|
1313
1313
|
size: "24",
|
|
1314
|
-
onClick: l[3] || (l[3] = (y) =>
|
|
1314
|
+
onClick: l[3] || (l[3] = (y) => $("场景4"))
|
|
1315
1315
|
})
|
|
1316
1316
|
]),
|
|
1317
1317
|
d("div", un, [
|
|
1318
|
-
ze(c.$slots, "button-right", { switchRightPanel:
|
|
1318
|
+
ze(c.$slots, "button-right", { switchRightPanel: K }, void 0, !0),
|
|
1319
1319
|
v(w, {
|
|
1320
1320
|
name: "donghuafangzhen",
|
|
1321
1321
|
size: "24"
|
|
@@ -1323,7 +1323,7 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1323
1323
|
v(w, {
|
|
1324
1324
|
name: "guanjiekongzhi",
|
|
1325
1325
|
size: "24",
|
|
1326
|
-
onClick: l[4] || (l[4] = (y) =>
|
|
1326
|
+
onClick: l[4] || (l[4] = (y) => K("关节控制")),
|
|
1327
1327
|
active: f.value && m.value === "关节控制",
|
|
1328
1328
|
title: "关节控制"
|
|
1329
1329
|
}, null, 8, ["active"]),
|
|
@@ -1331,14 +1331,14 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1331
1331
|
name: "donghuafangzhen",
|
|
1332
1332
|
size: "24",
|
|
1333
1333
|
title: "动画仿真",
|
|
1334
|
-
onClick: l[5] || (l[5] = (y) =>
|
|
1334
|
+
onClick: l[5] || (l[5] = (y) => K("动画仿真")),
|
|
1335
1335
|
active: f.value && m.value === "动画仿真"
|
|
1336
1336
|
}, null, 8, ["active"]),
|
|
1337
1337
|
v(w, {
|
|
1338
1338
|
name: "donghuafangzhen",
|
|
1339
1339
|
size: "24",
|
|
1340
1340
|
title: "urdf动画",
|
|
1341
|
-
onClick: l[6] || (l[6] = (y) =>
|
|
1341
|
+
onClick: l[6] || (l[6] = (y) => K("urdf动画")),
|
|
1342
1342
|
active: f.value && m.value === "urdf动画"
|
|
1343
1343
|
}, null, 8, ["active"]),
|
|
1344
1344
|
v(w, {
|
|
@@ -1378,31 +1378,31 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1378
1378
|
]),
|
|
1379
1379
|
j(d("div", fn, [
|
|
1380
1380
|
d("div", pn, [
|
|
1381
|
-
d("span", null,
|
|
1381
|
+
d("span", null, Z(p.value), 1),
|
|
1382
1382
|
d("span", {
|
|
1383
1383
|
class: "close",
|
|
1384
1384
|
onClick: l[7] || (l[7] = (y) => u.value = !1)
|
|
1385
1385
|
}, " X ")
|
|
1386
1386
|
]),
|
|
1387
1387
|
d("div", mn, [
|
|
1388
|
-
v(
|
|
1389
|
-
default:
|
|
1390
|
-
p.value === "场景树" ? (
|
|
1388
|
+
v(ee, { height: "100%" }, {
|
|
1389
|
+
default: ue(() => [
|
|
1390
|
+
p.value === "场景树" ? (q(), at(zt, {
|
|
1391
1391
|
key: 0,
|
|
1392
1392
|
model: g.value
|
|
1393
|
-
}, null, 8, ["model"])) :
|
|
1394
|
-
p.value === "剖面视图" ? (
|
|
1393
|
+
}, null, 8, ["model"])) : he("", !0),
|
|
1394
|
+
p.value === "剖面视图" ? (q(), re("div", hn, [
|
|
1395
1395
|
d("div", vn, [
|
|
1396
1396
|
d("label", gn, [
|
|
1397
1397
|
j(d("input", {
|
|
1398
1398
|
type: "radio",
|
|
1399
1399
|
name: "clipping-axis",
|
|
1400
1400
|
value: "none",
|
|
1401
|
-
"onUpdate:modelValue": l[8] || (l[8] = (y) =>
|
|
1401
|
+
"onUpdate:modelValue": l[8] || (l[8] = (y) => te(M) ? M.value = y : null),
|
|
1402
1402
|
onChange: l[9] || (l[9] = //@ts-ignore
|
|
1403
1403
|
(...y) => b(O) && b(O)(...y))
|
|
1404
1404
|
}, null, 544), [
|
|
1405
|
-
[
|
|
1405
|
+
[ne, b(M)]
|
|
1406
1406
|
]),
|
|
1407
1407
|
l[17] || (l[17] = d("span", { class: "radio-text" }, "无切割", -1))
|
|
1408
1408
|
]),
|
|
@@ -1411,11 +1411,11 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1411
1411
|
type: "radio",
|
|
1412
1412
|
name: "clipping-axis",
|
|
1413
1413
|
value: "x",
|
|
1414
|
-
"onUpdate:modelValue": l[10] || (l[10] = (y) =>
|
|
1414
|
+
"onUpdate:modelValue": l[10] || (l[10] = (y) => te(M) ? M.value = y : null),
|
|
1415
1415
|
onChange: l[11] || (l[11] = //@ts-ignore
|
|
1416
1416
|
(...y) => b(O) && b(O)(...y))
|
|
1417
1417
|
}, null, 544), [
|
|
1418
|
-
[
|
|
1418
|
+
[ne, b(M)]
|
|
1419
1419
|
]),
|
|
1420
1420
|
l[18] || (l[18] = d("span", { class: "radio-text" }, "X轴切割", -1))
|
|
1421
1421
|
]),
|
|
@@ -1424,11 +1424,11 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1424
1424
|
type: "radio",
|
|
1425
1425
|
name: "clipping-axis",
|
|
1426
1426
|
value: "y",
|
|
1427
|
-
"onUpdate:modelValue": l[12] || (l[12] = (y) =>
|
|
1427
|
+
"onUpdate:modelValue": l[12] || (l[12] = (y) => te(M) ? M.value = y : null),
|
|
1428
1428
|
onChange: l[13] || (l[13] = //@ts-ignore
|
|
1429
1429
|
(...y) => b(O) && b(O)(...y))
|
|
1430
1430
|
}, null, 544), [
|
|
1431
|
-
[
|
|
1431
|
+
[ne, b(M)]
|
|
1432
1432
|
]),
|
|
1433
1433
|
l[19] || (l[19] = d("span", { class: "radio-text" }, "Y轴切割", -1))
|
|
1434
1434
|
]),
|
|
@@ -1437,60 +1437,60 @@ const an = { class: "obj-viewer-container" }, rn = { class: "buttonGroup-top" },
|
|
|
1437
1437
|
type: "radio",
|
|
1438
1438
|
name: "clipping-axis",
|
|
1439
1439
|
value: "z",
|
|
1440
|
-
"onUpdate:modelValue": l[14] || (l[14] = (y) =>
|
|
1440
|
+
"onUpdate:modelValue": l[14] || (l[14] = (y) => te(M) ? M.value = y : null),
|
|
1441
1441
|
onChange: l[15] || (l[15] = //@ts-ignore
|
|
1442
1442
|
(...y) => b(O) && b(O)(...y))
|
|
1443
1443
|
}, null, 544), [
|
|
1444
|
-
[
|
|
1444
|
+
[ne, b(M)]
|
|
1445
1445
|
]),
|
|
1446
1446
|
l[20] || (l[20] = d("span", { class: "radio-text" }, "Z轴切割", -1))
|
|
1447
1447
|
])
|
|
1448
1448
|
])
|
|
1449
|
-
])) :
|
|
1449
|
+
])) : he("", !0)
|
|
1450
1450
|
]),
|
|
1451
1451
|
_: 1
|
|
1452
1452
|
})
|
|
1453
1453
|
])
|
|
1454
1454
|
], 512), [
|
|
1455
|
-
[
|
|
1455
|
+
[ie, u.value]
|
|
1456
1456
|
]),
|
|
1457
1457
|
j(d("div", bn, [
|
|
1458
1458
|
d("div", _n, [
|
|
1459
|
-
d("span", null,
|
|
1459
|
+
d("span", null, Z(m.value), 1),
|
|
1460
1460
|
d("span", {
|
|
1461
1461
|
class: "close",
|
|
1462
1462
|
onClick: l[16] || (l[16] = (y) => f.value = !1)
|
|
1463
1463
|
}, " X ")
|
|
1464
1464
|
]),
|
|
1465
1465
|
d("div", Sn, [
|
|
1466
|
-
v(
|
|
1467
|
-
default:
|
|
1466
|
+
v(ee, { height: "100%" }, {
|
|
1467
|
+
default: ue(() => [
|
|
1468
1468
|
j(v(Ct, { model: g.value }, null, 8, ["model"]), [
|
|
1469
|
-
[
|
|
1469
|
+
[ie, m.value === "关节控制"]
|
|
1470
1470
|
]),
|
|
1471
1471
|
j(v(Dt, {
|
|
1472
1472
|
ref_key: "animationPanelRef",
|
|
1473
1473
|
ref: o,
|
|
1474
|
-
knife: b(
|
|
1475
|
-
vectors:
|
|
1474
|
+
knife: b(Q),
|
|
1475
|
+
vectors: R.value
|
|
1476
1476
|
}, null, 8, ["knife", "vectors"]), [
|
|
1477
|
-
[
|
|
1477
|
+
[ie, m.value === "动画仿真" && I.value]
|
|
1478
1478
|
])
|
|
1479
1479
|
]),
|
|
1480
1480
|
_: 1
|
|
1481
1481
|
})
|
|
1482
1482
|
])
|
|
1483
1483
|
], 512), [
|
|
1484
|
-
[
|
|
1484
|
+
[ie, f.value]
|
|
1485
1485
|
]),
|
|
1486
|
-
a.value ? (
|
|
1486
|
+
a.value ? (q(), re("div", zn, [
|
|
1487
1487
|
l[21] || (l[21] = d("div", { class: "loading-spinner" }, null, -1)),
|
|
1488
|
-
d("p", null,
|
|
1489
|
-
])) :
|
|
1488
|
+
d("p", null, Z(r.value), 1)
|
|
1489
|
+
])) : he("", !0)
|
|
1490
1490
|
]);
|
|
1491
1491
|
};
|
|
1492
1492
|
}
|
|
1493
|
-
}), Dn = /* @__PURE__ */ Fe(Cn, [["__scopeId", "data-v-
|
|
1493
|
+
}), Dn = /* @__PURE__ */ Fe(Cn, [["__scopeId", "data-v-620e27e3"]]);
|
|
1494
1494
|
export {
|
|
1495
1495
|
Dn as default
|
|
1496
1496
|
};
|