ss-component-new 1.3.615 → 1.3.616
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/{array-CKTk7Sq_.js → array-B7zhh661.js} +2 -2
- package/dist/{iconfont-DZGSkx-_.js → iconfont-BnmSp7qc.js} +396 -247
- package/dist/{index-Cn33Gz2z.js → index-B8KEncMz.js} +21 -15
- package/dist/{index-obXIOkF7.js → index-BB-4cx6M.js} +1 -1
- package/dist/{index-DAs4L0hx.js → index-BcmwtTXG.js} +1 -1
- package/dist/{index-t9LvhXac.js → index-CZGJIvyy.js} +1 -1
- package/dist/{index-tniD_xHN.js → index-Cm8PZAB-.js} +2 -2
- package/dist/{index-BJFXtH-X.js → index-D6d2WMUQ.js} +1 -1
- package/dist/{index-DjSJhlad.js → index-DCQMsqSL.js} +3 -3
- package/dist/{index-Dd-8nw2f.js → index-DLGS4MnS.js} +2 -2
- package/dist/{index--FPbFJB2.js → index-DRpUuthr.js} +1 -1
- package/dist/{index-BmaW6Me9.js → index-SQa7vB3n.js} +1 -1
- package/dist/{index-gXFBfuoD.js → index-ai2FZBc1.js} +2 -2
- package/dist/{index-cYgzND1g.js → index-v9NjEtsA.js} +5062 -5011
- package/dist/{main-DgwLoFSd.js → main-DaQzJVV5.js} +2 -2
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +5 -5
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-Df46gQvy.js → threeModel-DgRu_LfA.js} +1 -1
- package/dist/{threePreview-C4Ra7sjU.js → threePreview-CVO6XMIe.js} +555 -555
- package/dist/threeSceneView-DkImpdm3.js +1291 -0
- package/dist/{threeSceneViewForCPMPIP-DZ5wkTWo.js → threeSceneViewForCPMPIP-7gyDxeiN.js} +201 -201
- package/dist/{threeTrackPathView-DT80eKxv.js → threeTrackPathView-7_x3jeap.js} +20 -20
- package/dist/{threeViewerHost-t6BRTmw8.js → threeViewerHost-BBXv1FPJ.js} +1 -1
- package/dist/urdfTree-D0Iom75E.js +254 -0
- package/dist/{workpieceTreePanel-CuXFoEjJ.js → workpieceTreePanel-DEEMKY1v.js} +1 -1
- package/package.json +1 -1
- package/dist/threeSceneView-tLPMhgrS.js +0 -1291
- package/dist/urdfTree-Bu7OVUsr.js +0 -404
|
@@ -0,0 +1,1291 @@
|
|
|
1
|
+
import { defineComponent as Le, ref as h, watch as ae, shallowRef as be, computed as Pe, onUnmounted as Ie, resolveComponent as U, createElementBlock as Ve, openBlock as Q, createElementVNode as u, createVNode as l, withCtx as M, createBlock as ye, createCommentVNode as ke, unref as X, toDisplayString as he, onMounted as Ge, onBeforeUnmount as Ze, Fragment as He, renderList as qe, nextTick as Ke, withDirectives as pe, vShow as de, renderSlot as Me } from "vue";
|
|
2
|
+
import { r as Te, s as Ye } from "./threeViewerHost-BBXv1FPJ.js";
|
|
3
|
+
import { u as Ne, a as Qe, b as et, C as tt } from "./iconfont-BnmSp7qc.js";
|
|
4
|
+
import { U as lt, u as ot, a as nt, W as at } from "./workpieceTreePanel-DEEMKY1v.js";
|
|
5
|
+
import { c as st } from "./index-D8UY4uNQ.js";
|
|
6
|
+
import { av as it, E as j, aM as rt, aN as ct } from "./request-B1c8BUkR.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import { p as De, T as xe, V as D, n as H, o as ut, s as pt, h as Se, t as dt, L as mt, u as vt, v as ft, w as gt, x as ht, y as bt, z as yt, l as _t, F as wt } from "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-X_k372gl.js";
|
|
9
|
+
import "./index-v9NjEtsA.js";
|
|
10
|
+
import "./index-BHtNKL1L.js";
|
|
11
|
+
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
|
|
12
|
+
import { y as Be, z as Ct, A as kt } from "./index-DsdWSuDi.js";
|
|
13
|
+
import "./index-SQa7vB3n.js";
|
|
14
|
+
import "./index-D9xMYIes.js";
|
|
15
|
+
import { f as Pt, a as xt, g as Rt, b as Mt } from "./animationData-CJQE6_nu.js";
|
|
16
|
+
import { g as Tt, a as Vt, b as Dt, c as St, U as At, J as $t } from "./urdfTree-D0Iom75E.js";
|
|
17
|
+
import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
|
+
import { s as Ft } from "./index-11kpzK0A.js";
|
|
19
|
+
import { T as Y } from "./svgIcon-4u4PW7Is.js";
|
|
20
|
+
const I = 1e-3, oe = ut.degToRad, je = new dt({
|
|
21
|
+
// 灰色
|
|
22
|
+
color: 13421772,
|
|
23
|
+
metalness: 0.3,
|
|
24
|
+
roughness: 0.6,
|
|
25
|
+
side: _t
|
|
26
|
+
});
|
|
27
|
+
function zt(y = 5e-3, v = 64) {
|
|
28
|
+
const d = new De([new D(0, 0, 0), new D(0, 0, 0)]), n = new xe(d, v, y, 16, !1), m = je;
|
|
29
|
+
return new Se(n, m);
|
|
30
|
+
}
|
|
31
|
+
const Je = (y) => y.reduce((v, d) => {
|
|
32
|
+
let n = 0;
|
|
33
|
+
const m = d.Y ?? 0, _ = d.C ?? 0, s = d.R ?? 0;
|
|
34
|
+
return m > 0 && (n += m), _ > 0 && s > 0 && (n += s * oe(_)), v + n;
|
|
35
|
+
}, 0), We = (y) => {
|
|
36
|
+
const v = [], d = y.Y ?? 0, n = y.B ?? 0, m = y.C ?? 0, _ = y.R ?? 0, s = {
|
|
37
|
+
pos: new D(0, 0, 0),
|
|
38
|
+
localY: new D(0, 1, 0),
|
|
39
|
+
localX: new D(1, 0, 0),
|
|
40
|
+
localZ: new D(0, 0, 1)
|
|
41
|
+
};
|
|
42
|
+
if (!d && !m) return v;
|
|
43
|
+
if (v.push(s.pos.clone()), n !== 0) {
|
|
44
|
+
const b = new H().makeRotationAxis(s.localY, oe(n));
|
|
45
|
+
s.localX.applyMatrix4(b), s.localZ.applyMatrix4(b);
|
|
46
|
+
}
|
|
47
|
+
if (d > 0 && (s.pos.add(s.localY.clone().multiplyScalar(d * I)), v.push(s.pos.clone())), m > 0 && _ > 0) {
|
|
48
|
+
const b = oe(m), f = _ * I, w = s.pos.clone().add(s.localX.clone().multiplyScalar(-f)), a = Math.max(16, Math.ceil(m / 5));
|
|
49
|
+
for (let C = 1; C <= a; C++) {
|
|
50
|
+
const p = b * C / a, k = new H().makeRotationAxis(s.localZ, p), c = s.localX.clone().multiplyScalar(f).applyMatrix4(k), T = w.clone().add(c);
|
|
51
|
+
v.push(T);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return v;
|
|
55
|
+
};
|
|
56
|
+
function Yt(y, v) {
|
|
57
|
+
const d = new pt();
|
|
58
|
+
d.name = "CompletePipe";
|
|
59
|
+
const n = {
|
|
60
|
+
pos: new D(0, 0, 0),
|
|
61
|
+
localX: new D(1, 0, 0),
|
|
62
|
+
localY: new D(0, 1, 0),
|
|
63
|
+
localZ: new D(0, 0, 1)
|
|
64
|
+
};
|
|
65
|
+
let m = 0, _ = 1;
|
|
66
|
+
for (let s = 0; s < y.length; s++) {
|
|
67
|
+
const b = y[s], f = b.Y ?? 0, w = b.B ?? 0, a = b.C ?? 0, C = b.R ?? 0;
|
|
68
|
+
if (w !== 0) {
|
|
69
|
+
const p = new H().makeRotationAxis(n.localY, oe(w));
|
|
70
|
+
n.localX.applyMatrix4(p), n.localZ.applyMatrix4(p);
|
|
71
|
+
}
|
|
72
|
+
if (f > 0) {
|
|
73
|
+
const p = n.pos.clone();
|
|
74
|
+
n.pos.add(n.localY.clone().multiplyScalar(f * I));
|
|
75
|
+
const k = n.pos.clone(), r = Lt(p, k, v * I);
|
|
76
|
+
r.userData = {
|
|
77
|
+
segmentType: "straight",
|
|
78
|
+
segmentIndex: m,
|
|
79
|
+
frameIndex: s,
|
|
80
|
+
length: f,
|
|
81
|
+
frame: { Y: f, B: w, C: a, R: C }
|
|
82
|
+
}, r.name = `直段_${m}`, d.add(r);
|
|
83
|
+
const c = p.clone();
|
|
84
|
+
Bt(d, _, c, v * I), m++;
|
|
85
|
+
}
|
|
86
|
+
if (a > 0 && C > 0) {
|
|
87
|
+
const p = oe(a), k = C * I, r = [];
|
|
88
|
+
r.push(n.pos.clone());
|
|
89
|
+
const c = n.pos.clone().add(n.localX.clone().multiplyScalar(-k)), T = Math.max(16, Math.ceil(a / 5));
|
|
90
|
+
for (let g = 1; g <= T; g++) {
|
|
91
|
+
const V = p * g / T, B = new H().makeRotationAxis(n.localZ, V), Z = n.localX.clone().multiplyScalar(k).applyMatrix4(B), ee = c.clone().add(Z);
|
|
92
|
+
r.push(ee);
|
|
93
|
+
}
|
|
94
|
+
const A = Ut(r, v * I);
|
|
95
|
+
A.userData = {
|
|
96
|
+
segmentType: "bend",
|
|
97
|
+
segmentIndex: m,
|
|
98
|
+
frameIndex: s,
|
|
99
|
+
angle: a,
|
|
100
|
+
radius: C,
|
|
101
|
+
centerPoint: c.toArray(),
|
|
102
|
+
frame: { Y: f, B: w, C: a, R: C }
|
|
103
|
+
}, A.name = `弯段_${m}`, d.add(A), Math.floor(r.length / 2), r[0], n.pos = r[r.length - 1].clone();
|
|
104
|
+
const $ = new H().makeRotationAxis(n.localZ, p);
|
|
105
|
+
n.localY.applyMatrix4($), n.localX.applyMatrix4($), m++, _++;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return d;
|
|
109
|
+
}
|
|
110
|
+
function Bt(y, v, d, n) {
|
|
111
|
+
const m = new D(0, n * 2, n * 5), _ = d.clone().add(m), s = [d, _], b = new vt().setFromPoints(s), f = new ft({
|
|
112
|
+
color: 16711680,
|
|
113
|
+
dashSize: n * 0.5,
|
|
114
|
+
gapSize: n * 0.3,
|
|
115
|
+
linewidth: 1
|
|
116
|
+
}), w = new gt(b, f);
|
|
117
|
+
w.computeLineDistances(), y.add(w);
|
|
118
|
+
const a = document.createElement("canvas"), C = a.getContext("2d");
|
|
119
|
+
a.width = 128, a.height = 128, C.clearRect(0, 0, 128, 128), C.fillStyle = "#FF0000", C.font = "bold 80px Arial", C.textAlign = "center", C.textBaseline = "middle", C.fillText(v.toString(), 64, 64);
|
|
120
|
+
const p = new ht(a), k = new bt({
|
|
121
|
+
map: p,
|
|
122
|
+
transparent: !0,
|
|
123
|
+
depthTest: !1,
|
|
124
|
+
depthWrite: !1
|
|
125
|
+
}), r = new yt(k), c = n * 3;
|
|
126
|
+
r.scale.set(c, c, 1), r.position.copy(_), r.name = `Label_${v}`, r.userData = { labelNumber: v }, y.add(r);
|
|
127
|
+
}
|
|
128
|
+
function Lt(y, v, d) {
|
|
129
|
+
const n = new mt(y, v), m = new xe(n, 2, d, 18, !1);
|
|
130
|
+
return new Se(m, je);
|
|
131
|
+
}
|
|
132
|
+
function Ut(y, v) {
|
|
133
|
+
const d = new De(y, !1, "catmullrom", 0.01), n = new xe(d, Math.max(16, y.length * 2), v, 18, !1);
|
|
134
|
+
return new Se(n, je);
|
|
135
|
+
}
|
|
136
|
+
function Ee(y, v, d, n, m, _ = 0) {
|
|
137
|
+
let s = v.slice(0, m + 1);
|
|
138
|
+
const b = v[m + 1];
|
|
139
|
+
if (b && _ > 0) {
|
|
140
|
+
const r = {
|
|
141
|
+
...b,
|
|
142
|
+
// 根据插值因子计算当前的弯曲角度C,实现从0到目标角度的平滑过渡
|
|
143
|
+
B: (b.B ?? 0) * _,
|
|
144
|
+
// 根据插值因子计算当前的弯曲角度C,实现从0到目标角度的平滑过渡
|
|
145
|
+
C: (b.C ?? 0) * _
|
|
146
|
+
};
|
|
147
|
+
s.push(r);
|
|
148
|
+
}
|
|
149
|
+
const f = Je(s), w = Math.max(0, d - f), a = [];
|
|
150
|
+
a.push(new D(0, 0, 0));
|
|
151
|
+
const C = new D(0, w * I, 0);
|
|
152
|
+
w > 0 && a.push(C);
|
|
153
|
+
let p = {
|
|
154
|
+
pos: C.clone(),
|
|
155
|
+
localY: new D(0, 1, 0),
|
|
156
|
+
localX: new D(1, 0, 0),
|
|
157
|
+
localZ: new D(0, 0, 1)
|
|
158
|
+
};
|
|
159
|
+
const k = [];
|
|
160
|
+
for (let r = s.length - 1; r >= 0; r--) {
|
|
161
|
+
const c = s[r], T = We(c);
|
|
162
|
+
if (T.length > 0) {
|
|
163
|
+
const A = T.map((B) => {
|
|
164
|
+
const L = B.clone(), Z = new H();
|
|
165
|
+
return Z.makeBasis(p.localX, p.localY, p.localZ), L.applyMatrix4(Z), L.add(p.pos);
|
|
166
|
+
});
|
|
167
|
+
k.push(A);
|
|
168
|
+
const $ = A[A.length - 1];
|
|
169
|
+
p.pos = $.clone();
|
|
170
|
+
const g = c.B ?? 0, V = c.C ?? 0;
|
|
171
|
+
if (g !== 0) {
|
|
172
|
+
const B = new H().makeRotationAxis(p.localY, oe(g));
|
|
173
|
+
p.localX.applyMatrix4(B), p.localZ.applyMatrix4(B);
|
|
174
|
+
}
|
|
175
|
+
if (V > 0) {
|
|
176
|
+
const B = oe(V), L = new H().makeRotationAxis(p.localZ, B);
|
|
177
|
+
p.localY.applyMatrix4(L), p.localX.applyMatrix4(L);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
for (const r of k)
|
|
182
|
+
r.length > 1 && a.push(...r.slice(1));
|
|
183
|
+
a.length < 2 && a.push(new D(0, 1e-3, 0));
|
|
184
|
+
try {
|
|
185
|
+
const r = new De(a, !1, "catmullrom", 0.01), c = new xe(r, Math.max(2, a.length * 4), n * I, 18, !1);
|
|
186
|
+
y.geometry.dispose(), y.geometry = c;
|
|
187
|
+
} catch (r) {
|
|
188
|
+
console.error("管件更新失败", r);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
function Oe(y, v, d, n = 0) {
|
|
192
|
+
let m = y.slice(0, d + 1);
|
|
193
|
+
const _ = y[d + 1];
|
|
194
|
+
if (_ && n > 0) {
|
|
195
|
+
const p = {
|
|
196
|
+
..._,
|
|
197
|
+
// 根据插值因子计算当前的弯曲角度C,实现从0到目标角度的平滑过渡
|
|
198
|
+
B: (_.B ?? 0) * n,
|
|
199
|
+
// 根据插值因子计算当前的弯曲角度C,实现从0到目标角度的平滑过渡
|
|
200
|
+
C: (_.C ?? 0) * n
|
|
201
|
+
};
|
|
202
|
+
m.push(p);
|
|
203
|
+
}
|
|
204
|
+
const s = Je(m), b = Math.max(0, v - s), f = [];
|
|
205
|
+
f.push(new D(0, 0, 0));
|
|
206
|
+
const w = new D(0, b * I, 0);
|
|
207
|
+
b > 0 && f.push(w);
|
|
208
|
+
let a = {
|
|
209
|
+
pos: w.clone(),
|
|
210
|
+
localY: new D(0, 1, 0),
|
|
211
|
+
localX: new D(1, 0, 0),
|
|
212
|
+
localZ: new D(0, 0, 1)
|
|
213
|
+
};
|
|
214
|
+
const C = [];
|
|
215
|
+
for (let p = m.length - 1; p >= 0; p--) {
|
|
216
|
+
const k = m[p], r = We(k);
|
|
217
|
+
if (r.length > 0) {
|
|
218
|
+
const c = r.map((g) => {
|
|
219
|
+
const V = g.clone(), B = new H();
|
|
220
|
+
return B.makeBasis(a.localX, a.localY, a.localZ), V.applyMatrix4(B), V.add(a.pos);
|
|
221
|
+
});
|
|
222
|
+
C.push(c);
|
|
223
|
+
const T = c[c.length - 1];
|
|
224
|
+
a.pos = T.clone();
|
|
225
|
+
const A = k.B ?? 0, $ = k.C ?? 0;
|
|
226
|
+
if (A !== 0) {
|
|
227
|
+
const g = new H().makeRotationAxis(a.localY, oe(A));
|
|
228
|
+
a.localX.applyMatrix4(g), a.localZ.applyMatrix4(g);
|
|
229
|
+
}
|
|
230
|
+
if ($ > 0) {
|
|
231
|
+
const g = oe($), V = new H().makeRotationAxis(a.localZ, g);
|
|
232
|
+
a.localY.applyMatrix4(V), a.localX.applyMatrix4(V);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
for (const p of C)
|
|
237
|
+
p.length > 1 && f.push(...p.slice(1));
|
|
238
|
+
return f.length < 2 && f.push(new D(0, 1e-3, 0)), f;
|
|
239
|
+
}
|
|
240
|
+
function Xe(y, v, d, n, m, _, s, b = 0, f = 0) {
|
|
241
|
+
const w = m - f, a = Oe(n, w, s, b);
|
|
242
|
+
let p = Oe(d, f, s, b);
|
|
243
|
+
p.forEach((r) => r.y = -r.y), p.reverse();
|
|
244
|
+
const k = [...p, ...a];
|
|
245
|
+
try {
|
|
246
|
+
const r = new De(k, !1, "catmullrom", 0.01), c = new xe(r, Math.max(2, k.length * 4), _ * I, 18, !1);
|
|
247
|
+
v.geometry.dispose(), y.geometry.dispose(), v.parent && v.parent.remove(v), y.geometry = c;
|
|
248
|
+
} catch (r) {
|
|
249
|
+
console.error("管件更新失败", r);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
const jt = { class: "panel-content" }, Et = { class: "action-bar" }, Ot = { class: "animation-controls" }, Xt = { class: "control-row" }, Gt = { class: "control-row" }, Zt = { class: "frame-info" }, Nt = { class: "control-row" }, Jt = { class: "progress-bar" }, Wt = { class: "dialog-footer" }, It = /* @__PURE__ */ Le({
|
|
253
|
+
__name: "animationPanel",
|
|
254
|
+
props: {
|
|
255
|
+
model: {},
|
|
256
|
+
threeData: {}
|
|
257
|
+
},
|
|
258
|
+
setup(y, { expose: v }) {
|
|
259
|
+
const d = y, n = h(), m = h();
|
|
260
|
+
ae(() => d.threeData, (e) => {
|
|
261
|
+
const o = e == null ? void 0 : e.data;
|
|
262
|
+
m.value = o == null ? void 0 : o.type;
|
|
263
|
+
}, {
|
|
264
|
+
immediate: !0
|
|
265
|
+
});
|
|
266
|
+
const _ = async () => {
|
|
267
|
+
let e = {};
|
|
268
|
+
m.value === Te.SINGLE && (e = await Pt()), m.value === Te.DOUBLE && (e = await xt());
|
|
269
|
+
const {
|
|
270
|
+
initialPipeLength: o = 0,
|
|
271
|
+
pipeRadius: t = 0,
|
|
272
|
+
clampLength: i = 0,
|
|
273
|
+
animationData: R
|
|
274
|
+
} = e;
|
|
275
|
+
$.value = o, g.value = t, V.value = i, n.value = R;
|
|
276
|
+
const x = st(n.value), le = fe(G.value), K = (x == null ? void 0 : x["输出(动画数据)"]) || [];
|
|
277
|
+
s.value = K.length ? K : [le];
|
|
278
|
+
}, s = h([]), b = h(!1), f = h(""), w = h(!1), a = h(0), C = h(0), p = h(1e3);
|
|
279
|
+
let k = !1;
|
|
280
|
+
const r = h(null), c = be(null), T = be(null), A = be(null), $ = h(0), g = h(12.5), V = h(30), B = h([]), L = h(null), Z = Pe(() => d.model ? Tt(d.model).map((t) => t.name) : []), ee = h(["Y", "B", "C", "R"]), G = Pe(() => [...Z.value, ...ee.value]), _e = Pe(() => G.value.length > 0 ? `请按以下格式粘贴数据 (第一行为表头,使用 Tab 分隔):
|
|
281
|
+
${G.value.join(" ")}
|
|
282
|
+
0 0 0 ...
|
|
283
|
+
1 2 3 ...` : "请先加载模型。"), ve = () => s.value.map((e) => ({
|
|
284
|
+
Y: parseFloat(e.Y) || 0,
|
|
285
|
+
B: parseFloat(e.B) || 0,
|
|
286
|
+
C: parseFloat(e.C) || 0,
|
|
287
|
+
R: parseFloat(e.R) || 0
|
|
288
|
+
})), se = () => {
|
|
289
|
+
const e = [], o = [];
|
|
290
|
+
return s.value.forEach((t) => {
|
|
291
|
+
const { Y1: i, B1: R, C1: x, R1: le, Y2: K, B2: ue, C2: Ce, R2: z } = t;
|
|
292
|
+
e.push({
|
|
293
|
+
Y: parseFloat(i) || 0,
|
|
294
|
+
B: parseFloat(R) || 0,
|
|
295
|
+
C: parseFloat(x) || 0,
|
|
296
|
+
R: parseFloat(le) || 0
|
|
297
|
+
}), o.push({
|
|
298
|
+
Y: parseFloat(K) || 0,
|
|
299
|
+
B: parseFloat(ue) || 0,
|
|
300
|
+
C: parseFloat(Ce) || 0,
|
|
301
|
+
R: parseFloat(z) || 0
|
|
302
|
+
});
|
|
303
|
+
}), {
|
|
304
|
+
posPipeYbcr: e,
|
|
305
|
+
negPipeYbcr: o
|
|
306
|
+
};
|
|
307
|
+
}, S = (e = 0, o = 0) => {
|
|
308
|
+
if (c.value && T.value) {
|
|
309
|
+
const t = se();
|
|
310
|
+
Xe(
|
|
311
|
+
c.value,
|
|
312
|
+
T.value,
|
|
313
|
+
t.posPipeYbcr,
|
|
314
|
+
t.negPipeYbcr,
|
|
315
|
+
$.value,
|
|
316
|
+
g.value,
|
|
317
|
+
e,
|
|
318
|
+
o,
|
|
319
|
+
V.value
|
|
320
|
+
);
|
|
321
|
+
} else if (c.value) {
|
|
322
|
+
const t = ve();
|
|
323
|
+
Ee(c.value, t, $.value, g.value, e, o);
|
|
324
|
+
}
|
|
325
|
+
}, P = (e) => {
|
|
326
|
+
if (e < 0 || e >= s.value.length) {
|
|
327
|
+
console.error(`帧索引 ${e} 超出范围`);
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
const o = s.value[e];
|
|
331
|
+
if (console.log(`应用第 ${e} 帧数据 ${o}`), a.value = e, r.value) {
|
|
332
|
+
const t = {};
|
|
333
|
+
Z.value.forEach((i) => {
|
|
334
|
+
const R = parseFloat(o[i]);
|
|
335
|
+
isNaN(R) || (t[i] = R);
|
|
336
|
+
}), r.value.setJointAngles(t);
|
|
337
|
+
}
|
|
338
|
+
S(e, 0);
|
|
339
|
+
}, N = async () => {
|
|
340
|
+
if (s.value.length === 0) {
|
|
341
|
+
j.error("无法播放动画:无数据");
|
|
342
|
+
return;
|
|
343
|
+
}
|
|
344
|
+
if (!w.value) {
|
|
345
|
+
w.value = !0, k = !1, s.value.length - 1 === a.value && (a.value = 0);
|
|
346
|
+
try {
|
|
347
|
+
for (let e = a.value + 1; e < s.value.length && !k; e++) {
|
|
348
|
+
a.value = e;
|
|
349
|
+
const o = s.value[e], t = {};
|
|
350
|
+
r.value && Z.value.forEach((i) => {
|
|
351
|
+
const R = parseFloat(o[i]);
|
|
352
|
+
isNaN(R) || (t[i] = R);
|
|
353
|
+
}), r.value ? await r.value.animateToState(
|
|
354
|
+
t,
|
|
355
|
+
p.value,
|
|
356
|
+
(i) => {
|
|
357
|
+
C.value = (e + i) / s.value.length * 100, S(e - 1, i);
|
|
358
|
+
}
|
|
359
|
+
) : (await new Promise((i) => setTimeout(i, p.value)), C.value = (e + 1) / s.value.length * 100);
|
|
360
|
+
}
|
|
361
|
+
k || j.success("动画播放完成");
|
|
362
|
+
} catch (e) {
|
|
363
|
+
console.error("动画播放出错:", e), j.error("动画播放出错");
|
|
364
|
+
} finally {
|
|
365
|
+
w.value = !1, C.value = 0;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}, E = () => {
|
|
369
|
+
k = !0, w.value = !1, C.value = 0, j.info("动画已停止");
|
|
370
|
+
}, J = () => {
|
|
371
|
+
a.value = 0;
|
|
372
|
+
}, O = () => {
|
|
373
|
+
if (c.value && T.value) {
|
|
374
|
+
const e = se();
|
|
375
|
+
Xe(
|
|
376
|
+
c.value,
|
|
377
|
+
T.value,
|
|
378
|
+
e.posPipeYbcr,
|
|
379
|
+
e.negPipeYbcr,
|
|
380
|
+
$.value,
|
|
381
|
+
g.value,
|
|
382
|
+
-1,
|
|
383
|
+
0,
|
|
384
|
+
V.value
|
|
385
|
+
);
|
|
386
|
+
} else if (c.value) {
|
|
387
|
+
const e = ve();
|
|
388
|
+
Ee(
|
|
389
|
+
c.value,
|
|
390
|
+
e,
|
|
391
|
+
$.value,
|
|
392
|
+
g.value,
|
|
393
|
+
-1,
|
|
394
|
+
0
|
|
395
|
+
);
|
|
396
|
+
}
|
|
397
|
+
}, te = () => {
|
|
398
|
+
r.value && r.value.resetToZero(), O(), J(), j.success("机器人和管件已重置");
|
|
399
|
+
}, q = (e) => `第 ${e + 1} 帧`, W = (e) => {
|
|
400
|
+
w.value && E(), P(e);
|
|
401
|
+
}, ie = () => {
|
|
402
|
+
w.value && E(), !(a.value + 1 >= s.value.length) && P(a.value + 1);
|
|
403
|
+
}, F = () => {
|
|
404
|
+
w.value && E(), a.value !== 0 && P(a.value - 1);
|
|
405
|
+
}, ne = () => {
|
|
406
|
+
A.value && (A.value.visible = !0), c.value && c.value.parent && c.value.parent.remove(c.value), A.value = null, c.value = null, T.value = null;
|
|
407
|
+
}, fe = (e) => e == null ? void 0 : e.reduce((o, t) => (o[t] = "0", o), {});
|
|
408
|
+
ae(G, (e, o) => {
|
|
409
|
+
if (JSON.stringify(e) !== JSON.stringify(o))
|
|
410
|
+
if (e.length > 0) {
|
|
411
|
+
const t = fe(e);
|
|
412
|
+
s.value = [t];
|
|
413
|
+
} else
|
|
414
|
+
s.value = [];
|
|
415
|
+
}, { immediate: !0 });
|
|
416
|
+
const re = h(0), we = (e) => {
|
|
417
|
+
re.value = e;
|
|
418
|
+
}, Ae = (e, o) => {
|
|
419
|
+
if (!e || !o)
|
|
420
|
+
return;
|
|
421
|
+
const t = St(e, o), i = zt();
|
|
422
|
+
i.visible = !1, t == null || t.add(i);
|
|
423
|
+
}, $e = (e) => {
|
|
424
|
+
r.value = new lt(e), B.value = Dt(e), L.value = "Pipe_Joint";
|
|
425
|
+
}, ce = () => {
|
|
426
|
+
r.value = null, B.value = [], L.value = null;
|
|
427
|
+
}, ge = (e) => {
|
|
428
|
+
$e(e), Ae(e, L.value), we(re.value + 1), te();
|
|
429
|
+
};
|
|
430
|
+
ae(() => d.model, (e) => {
|
|
431
|
+
if (ne(), e) {
|
|
432
|
+
ge(e);
|
|
433
|
+
return;
|
|
434
|
+
}
|
|
435
|
+
ce();
|
|
436
|
+
}, { immediate: !0 });
|
|
437
|
+
const Re = (e) => {
|
|
438
|
+
var t, i;
|
|
439
|
+
const o = new Se(
|
|
440
|
+
e.geometry.clone(),
|
|
441
|
+
e.material
|
|
442
|
+
);
|
|
443
|
+
return o.name = "managed_pipe_clone", (i = (t = e == null ? void 0 : e.parent) == null ? void 0 : t.add) == null || i.call(t, o), o.position.copy(e.position), o.rotation.copy(e.rotation), o.scale.copy(e.scale), o;
|
|
444
|
+
};
|
|
445
|
+
ae([L, V, $, re], ([e, o]) => {
|
|
446
|
+
if (ne(), d.model && e) {
|
|
447
|
+
const t = Vt(d.model, e);
|
|
448
|
+
if (console.log(t, "meshToReplace"), t && t.parent) {
|
|
449
|
+
A.value = t, t.visible = !1;
|
|
450
|
+
const i = Re(t);
|
|
451
|
+
if (m.value === Te.SINGLE && (i.position.y -= o * 1e-3), c.value = i, m.value === Te.DOUBLE) {
|
|
452
|
+
const R = Re(t);
|
|
453
|
+
T.value = R;
|
|
454
|
+
}
|
|
455
|
+
S(0, 0);
|
|
456
|
+
} else
|
|
457
|
+
e && console.warn(`在 link '${e}' 中未找到可替换的网格或其没有父级。`);
|
|
458
|
+
}
|
|
459
|
+
});
|
|
460
|
+
const Fe = async () => {
|
|
461
|
+
if (G.value.length === 0) {
|
|
462
|
+
j.warning("没有可导出的表头");
|
|
463
|
+
return;
|
|
464
|
+
}
|
|
465
|
+
const e = G.value.join(" ");
|
|
466
|
+
try {
|
|
467
|
+
await navigator.clipboard.writeText(e), j.success("表头已成功复制到剪贴板!");
|
|
468
|
+
} catch (o) {
|
|
469
|
+
console.error("复制失败:", o), j.error("复制失败,请检查浏览器权限或手动复制。");
|
|
470
|
+
}
|
|
471
|
+
}, ze = () => {
|
|
472
|
+
if (!f.value.trim()) {
|
|
473
|
+
j.warning("导入内容不能为空");
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
const e = f.value.trim().split(`
|
|
477
|
+
`).filter((x) => x.trim() !== "");
|
|
478
|
+
if (e.length < 2) {
|
|
479
|
+
j.error("导入数据至少需要包含表头行和一行数据");
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
const o = e[0].split(" ").map((x) => x.trim()), t = {};
|
|
483
|
+
if (o.forEach((x, le) => {
|
|
484
|
+
G.value.includes(x) && (t[le] = x);
|
|
485
|
+
}), Object.keys(t).length === 0) {
|
|
486
|
+
j.error("没有找到匹配的表头,请检查表头名称是否正确");
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
const R = e.slice(1).map((x) => {
|
|
490
|
+
const le = x.split(" "), K = {};
|
|
491
|
+
return G.value.forEach((ue) => {
|
|
492
|
+
K[ue] = "0";
|
|
493
|
+
}), Object.entries(t).forEach(([ue, Ce]) => {
|
|
494
|
+
const z = le[parseInt(ue)];
|
|
495
|
+
z !== void 0 && z.trim() !== "" && (K[Ce] = z.trim());
|
|
496
|
+
}), K;
|
|
497
|
+
});
|
|
498
|
+
R.length > 0 ? (s.value = R, j.success(`成功导入 ${R.length} 行数据!`), b.value = !1, f.value = "") : j.error("未能解析到有效数据,请检查格式。");
|
|
499
|
+
};
|
|
500
|
+
return Ie(() => {
|
|
501
|
+
ne(), k = !0;
|
|
502
|
+
}), v({ playAnimation: N, stopAnimation: E, forwardFrame: ie, backwardFrame: F }), (e, o) => {
|
|
503
|
+
const t = U("el-icon"), i = U("el-input-number"), R = U("el-form-item"), x = U("el-form"), le = U("el-slider"), K = U("el-progress"), ue = U("el-input"), Ce = U("el-dialog");
|
|
504
|
+
return Q(), Ve("div", jt, [
|
|
505
|
+
u("div", Et, [
|
|
506
|
+
l(me, {
|
|
507
|
+
onClick: _,
|
|
508
|
+
modelValue: "获取数据"
|
|
509
|
+
}),
|
|
510
|
+
l(me, {
|
|
511
|
+
onClick: Fe,
|
|
512
|
+
disabled: G.value.length === 0,
|
|
513
|
+
modelValue: "导出表头"
|
|
514
|
+
}, null, 8, ["disabled"]),
|
|
515
|
+
l(me, {
|
|
516
|
+
modelValue: "播放",
|
|
517
|
+
onClick: N,
|
|
518
|
+
disabled: s.value.length === 0 || w.value,
|
|
519
|
+
buttonType: "primary"
|
|
520
|
+
}, {
|
|
521
|
+
default: M(() => [
|
|
522
|
+
w.value ? (Q(), ye(t, {
|
|
523
|
+
key: 0,
|
|
524
|
+
class: "is-loading"
|
|
525
|
+
}, {
|
|
526
|
+
default: M(() => [
|
|
527
|
+
l(X(it))
|
|
528
|
+
]),
|
|
529
|
+
_: 1
|
|
530
|
+
})) : ke("", !0)
|
|
531
|
+
]),
|
|
532
|
+
_: 1
|
|
533
|
+
}, 8, ["disabled"]),
|
|
534
|
+
l(me, {
|
|
535
|
+
onClick: E,
|
|
536
|
+
modelValue: "停止",
|
|
537
|
+
buttonType: "danger"
|
|
538
|
+
}),
|
|
539
|
+
l(me, {
|
|
540
|
+
onClick: te,
|
|
541
|
+
modelValue: "重置",
|
|
542
|
+
buttonType: "primary"
|
|
543
|
+
})
|
|
544
|
+
]),
|
|
545
|
+
u("div", Ot, [
|
|
546
|
+
u("div", Xt, [
|
|
547
|
+
l(x, {
|
|
548
|
+
"label-width": "auto",
|
|
549
|
+
style: { width: "100%" }
|
|
550
|
+
}, {
|
|
551
|
+
default: M(() => [
|
|
552
|
+
l(R, {
|
|
553
|
+
label: "帧间隔 (ms):",
|
|
554
|
+
prop: "frameDuration"
|
|
555
|
+
}, {
|
|
556
|
+
default: M(() => [
|
|
557
|
+
l(i, {
|
|
558
|
+
modelValue: p.value,
|
|
559
|
+
"onUpdate:modelValue": o[0] || (o[0] = (z) => p.value = z),
|
|
560
|
+
min: 100,
|
|
561
|
+
max: 5e3,
|
|
562
|
+
step: 100,
|
|
563
|
+
style: { width: "100%" }
|
|
564
|
+
}, null, 8, ["modelValue"])
|
|
565
|
+
]),
|
|
566
|
+
_: 1
|
|
567
|
+
}),
|
|
568
|
+
l(R, {
|
|
569
|
+
label: "管件总长 (mm):",
|
|
570
|
+
prop: "initialPipeLength"
|
|
571
|
+
}, {
|
|
572
|
+
default: M(() => [
|
|
573
|
+
l(i, {
|
|
574
|
+
modelValue: $.value,
|
|
575
|
+
"onUpdate:modelValue": o[1] || (o[1] = (z) => $.value = z),
|
|
576
|
+
min: 0,
|
|
577
|
+
style: { width: "100%" }
|
|
578
|
+
}, null, 8, ["modelValue"])
|
|
579
|
+
]),
|
|
580
|
+
_: 1
|
|
581
|
+
}),
|
|
582
|
+
l(R, {
|
|
583
|
+
label: "管件半径 (mm):",
|
|
584
|
+
prop: "pipeRadius"
|
|
585
|
+
}, {
|
|
586
|
+
default: M(() => [
|
|
587
|
+
l(i, {
|
|
588
|
+
modelValue: g.value,
|
|
589
|
+
"onUpdate:modelValue": o[2] || (o[2] = (z) => g.value = z),
|
|
590
|
+
min: 0,
|
|
591
|
+
style: { width: "100%" }
|
|
592
|
+
}, null, 8, ["modelValue"])
|
|
593
|
+
]),
|
|
594
|
+
_: 1
|
|
595
|
+
}),
|
|
596
|
+
l(R, {
|
|
597
|
+
label: "夹持长度 (mm):",
|
|
598
|
+
prop: "clampLength"
|
|
599
|
+
}, {
|
|
600
|
+
default: M(() => [
|
|
601
|
+
l(i, {
|
|
602
|
+
modelValue: V.value,
|
|
603
|
+
"onUpdate:modelValue": o[3] || (o[3] = (z) => V.value = z),
|
|
604
|
+
min: 0,
|
|
605
|
+
style: { width: "100%" }
|
|
606
|
+
}, null, 8, ["modelValue"])
|
|
607
|
+
]),
|
|
608
|
+
_: 1
|
|
609
|
+
})
|
|
610
|
+
]),
|
|
611
|
+
_: 1
|
|
612
|
+
})
|
|
613
|
+
]),
|
|
614
|
+
o[10] || (o[10] = u("div", { class: "control-row" }, [
|
|
615
|
+
u("label", null, "管件 Mesh:")
|
|
616
|
+
], -1)),
|
|
617
|
+
u("div", Gt, [
|
|
618
|
+
o[8] || (o[8] = u("label", null, "当前帧:", -1)),
|
|
619
|
+
u("span", Zt, he(a.value + 1) + " / " + he(s.value.length), 1)
|
|
620
|
+
]),
|
|
621
|
+
u("div", Nt, [
|
|
622
|
+
o[9] || (o[9] = u("label", null, "动画进度:", -1)),
|
|
623
|
+
l(le, {
|
|
624
|
+
modelValue: a.value,
|
|
625
|
+
"onUpdate:modelValue": o[4] || (o[4] = (z) => a.value = z),
|
|
626
|
+
min: 0,
|
|
627
|
+
max: s.value.length > 0 ? s.value.length - 1 : 0,
|
|
628
|
+
step: 1,
|
|
629
|
+
"format-tooltip": q,
|
|
630
|
+
onInput: W,
|
|
631
|
+
disabled: s.value.length === 0,
|
|
632
|
+
style: { "flex-grow": "1", margin: "0 10px" }
|
|
633
|
+
}, null, 8, ["modelValue", "max", "disabled"])
|
|
634
|
+
]),
|
|
635
|
+
u("div", Jt, [
|
|
636
|
+
l(K, {
|
|
637
|
+
percentage: C.value,
|
|
638
|
+
"show-text": !1,
|
|
639
|
+
"stroke-width": 6
|
|
640
|
+
}, null, 8, ["percentage"])
|
|
641
|
+
])
|
|
642
|
+
]),
|
|
643
|
+
l(Ce, {
|
|
644
|
+
modelValue: b.value,
|
|
645
|
+
"onUpdate:modelValue": o[7] || (o[7] = (z) => b.value = z),
|
|
646
|
+
title: "导入数据",
|
|
647
|
+
width: "500px"
|
|
648
|
+
}, {
|
|
649
|
+
footer: M(() => [
|
|
650
|
+
u("span", Wt, [
|
|
651
|
+
l(me, {
|
|
652
|
+
modelValue: "取消",
|
|
653
|
+
onClick: o[6] || (o[6] = (z) => b.value = !1)
|
|
654
|
+
}),
|
|
655
|
+
l(me, {
|
|
656
|
+
modelValue: "确认导入",
|
|
657
|
+
onClick: ze,
|
|
658
|
+
type: "primary"
|
|
659
|
+
})
|
|
660
|
+
])
|
|
661
|
+
]),
|
|
662
|
+
default: M(() => [
|
|
663
|
+
o[11] || (o[11] = u("p", { class: "import-instructions" }, " 请从Excel或csv中复制数据 (首行为表头, Tab分隔) ", -1)),
|
|
664
|
+
l(ue, {
|
|
665
|
+
modelValue: f.value,
|
|
666
|
+
"onUpdate:modelValue": o[5] || (o[5] = (z) => f.value = z),
|
|
667
|
+
type: "textarea",
|
|
668
|
+
rows: 10,
|
|
669
|
+
placeholder: _e.value
|
|
670
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
671
|
+
]),
|
|
672
|
+
_: 1,
|
|
673
|
+
__: [11]
|
|
674
|
+
}, 8, ["modelValue"])
|
|
675
|
+
]);
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
}), Ht = /* @__PURE__ */ Ue(It, [["__scopeId", "data-v-49a19db9"]]), qt = async () => {
|
|
679
|
+
const v = await Rt(["工件库", "弯管"]), d = Be("工件列表", v), n = Ct(d);
|
|
680
|
+
return n == null ? void 0 : n.map((_) => ({
|
|
681
|
+
name: _,
|
|
682
|
+
mainKey: _
|
|
683
|
+
}));
|
|
684
|
+
}, Kt = async (y) => {
|
|
685
|
+
const d = await kt(["工件库", "弯管"], y), n = Be("弯管基础参数", d), m = Be("弯管特征尺寸", d), _ = {
|
|
686
|
+
outerDiameter: 0,
|
|
687
|
+
ybcrList: []
|
|
688
|
+
}, s = Mt(n), b = wt(m);
|
|
689
|
+
return _.outerDiameter = (s == null ? void 0 : s.外径) || 0, _.ybcrList = b || [], _;
|
|
690
|
+
}, Qt = { class: "pipe-analysis-dialog-header" }, el = { class: "header-right" }, tl = { class: "pipe-analysis-dialog-body" }, ll = { class: "panel-left" }, ol = { class: "pipe-analysis-input" }, nl = { class: "input-params" }, al = { class: "pipe-analysis-output" }, sl = { class: "ouput-params" }, il = /* @__PURE__ */ Le({
|
|
691
|
+
__name: "pipeAnalysisPanel",
|
|
692
|
+
emits: ["nodeClick", "visibleChange", "updatePosition", "updateRotation"],
|
|
693
|
+
setup(y, { expose: v, emit: d }) {
|
|
694
|
+
const n = h(null), m = be(null), {
|
|
695
|
+
currentModels: _,
|
|
696
|
+
resetView: s,
|
|
697
|
+
initThreeJS: b,
|
|
698
|
+
handleResize: f,
|
|
699
|
+
getThreeJSObjects: w,
|
|
700
|
+
cleanup: a,
|
|
701
|
+
setModels: C,
|
|
702
|
+
clearAllModels: p,
|
|
703
|
+
axesHelperVisible: k,
|
|
704
|
+
toggleAxesVisibility: r,
|
|
705
|
+
addModelAndFit: c
|
|
706
|
+
} = Ne(n);
|
|
707
|
+
h(null);
|
|
708
|
+
const T = h({ file: null, pipe: "" });
|
|
709
|
+
h(null), h(!1);
|
|
710
|
+
const A = h([]), $ = (S) => {
|
|
711
|
+
A.value = S;
|
|
712
|
+
};
|
|
713
|
+
h("ybcr");
|
|
714
|
+
const g = h({
|
|
715
|
+
form: {},
|
|
716
|
+
list: [],
|
|
717
|
+
reverse: !1
|
|
718
|
+
}), V = (S) => {
|
|
719
|
+
const { length: P, outerDiameter: N, innerDiameter: E, thickness: J, ybcrList: O } = S || {};
|
|
720
|
+
g.value.form = {
|
|
721
|
+
length: P,
|
|
722
|
+
outerDiameter: N,
|
|
723
|
+
innerDiameter: E,
|
|
724
|
+
thickness: J
|
|
725
|
+
}, g.value.list = O;
|
|
726
|
+
}, B = () => {
|
|
727
|
+
const { form: S, list: P } = g.value, {
|
|
728
|
+
outerDiameter: N
|
|
729
|
+
} = S, E = N / 2, J = P == null ? void 0 : P.map((te) => {
|
|
730
|
+
const { y: q, b: W, c: ie, r: F, Y: ne, B: fe, C: re, R: we } = te;
|
|
731
|
+
return ne ? {
|
|
732
|
+
Y: ne,
|
|
733
|
+
B: fe,
|
|
734
|
+
C: re,
|
|
735
|
+
R: we
|
|
736
|
+
} : {
|
|
737
|
+
Y: q,
|
|
738
|
+
B: W,
|
|
739
|
+
C: ie,
|
|
740
|
+
R: F
|
|
741
|
+
};
|
|
742
|
+
});
|
|
743
|
+
p();
|
|
744
|
+
const O = Yt(J, E);
|
|
745
|
+
c(O);
|
|
746
|
+
}, L = h(!1), Z = () => {
|
|
747
|
+
const S = L.value;
|
|
748
|
+
L.value = !S;
|
|
749
|
+
}, ee = h(!1), G = () => {
|
|
750
|
+
ee.value = !1;
|
|
751
|
+
}, _e = () => {
|
|
752
|
+
ee.value = !0;
|
|
753
|
+
}, ve = async () => {
|
|
754
|
+
const S = await qt();
|
|
755
|
+
$(S);
|
|
756
|
+
}, se = async (S) => {
|
|
757
|
+
const P = await Kt(S);
|
|
758
|
+
V(P);
|
|
759
|
+
};
|
|
760
|
+
return ae(() => g, () => {
|
|
761
|
+
B();
|
|
762
|
+
}, {
|
|
763
|
+
deep: !0
|
|
764
|
+
}), ae(() => n, () => {
|
|
765
|
+
try {
|
|
766
|
+
if (m.value)
|
|
767
|
+
return;
|
|
768
|
+
b(), window.addEventListener("resize", f);
|
|
769
|
+
} catch (S) {
|
|
770
|
+
console.error("Three.js 初始化失败:", S), j.error("渲染引擎初始化失败!");
|
|
771
|
+
}
|
|
772
|
+
}, {
|
|
773
|
+
deep: !0
|
|
774
|
+
}), Ge(async () => {
|
|
775
|
+
ve();
|
|
776
|
+
}), Ze(() => {
|
|
777
|
+
window.removeEventListener("resize", f), a();
|
|
778
|
+
}), v({ openDialog: _e }), (S, P) => {
|
|
779
|
+
const N = U("el-icon"), E = U("el-option"), J = U("el-select"), O = U("el-form-item"), te = U("el-form"), q = U("el-input"), W = U("el-table-column"), ie = U("el-table");
|
|
780
|
+
return Q(), ye(Ft, {
|
|
781
|
+
class: "pipe-analysis-dialog",
|
|
782
|
+
visible: ee.value,
|
|
783
|
+
onBeforeDestroy: S.onDestroy,
|
|
784
|
+
showClose: !1,
|
|
785
|
+
fullScreen: L.value
|
|
786
|
+
}, {
|
|
787
|
+
header: M(() => [
|
|
788
|
+
u("div", Qt, [
|
|
789
|
+
P[6] || (P[6] = u("div", {
|
|
790
|
+
class: "header-left",
|
|
791
|
+
title: "管件解析"
|
|
792
|
+
}, " 管件解析 ", -1)),
|
|
793
|
+
u("div", el, [
|
|
794
|
+
l(N, null, {
|
|
795
|
+
default: M(() => [
|
|
796
|
+
l(X(rt), { onClick: Z })
|
|
797
|
+
]),
|
|
798
|
+
_: 1
|
|
799
|
+
}),
|
|
800
|
+
l(N, null, {
|
|
801
|
+
default: M(() => [
|
|
802
|
+
l(X(ct), { onClick: G })
|
|
803
|
+
]),
|
|
804
|
+
_: 1
|
|
805
|
+
})
|
|
806
|
+
])
|
|
807
|
+
])
|
|
808
|
+
]),
|
|
809
|
+
default: M(() => [
|
|
810
|
+
u("div", tl, [
|
|
811
|
+
u("div", ll, [
|
|
812
|
+
u("div", ol, [
|
|
813
|
+
P[7] || (P[7] = u("span", { class: "item-view-group" }, [
|
|
814
|
+
u("span", { class: "group-name-wrap" }, "输入")
|
|
815
|
+
], -1)),
|
|
816
|
+
u("div", nl, [
|
|
817
|
+
l(te, {
|
|
818
|
+
model: T.value,
|
|
819
|
+
"label-width": "auto",
|
|
820
|
+
"label-position": "top"
|
|
821
|
+
}, {
|
|
822
|
+
default: M(() => [
|
|
823
|
+
l(O, { label: "弯管" }, {
|
|
824
|
+
default: M(() => [
|
|
825
|
+
l(J, {
|
|
826
|
+
modelValue: T.value.pipe,
|
|
827
|
+
"onUpdate:modelValue": P[0] || (P[0] = (F) => T.value.pipe = F),
|
|
828
|
+
placeholder: "请选择弯管",
|
|
829
|
+
onChange: se
|
|
830
|
+
}, {
|
|
831
|
+
default: M(() => [
|
|
832
|
+
(Q(!0), Ve(He, null, qe(A.value, (F) => (Q(), ye(E, {
|
|
833
|
+
label: F.name,
|
|
834
|
+
value: F.mainKey
|
|
835
|
+
}, null, 8, ["label", "value"]))), 256))
|
|
836
|
+
]),
|
|
837
|
+
_: 1
|
|
838
|
+
}, 8, ["modelValue"])
|
|
839
|
+
]),
|
|
840
|
+
_: 1
|
|
841
|
+
})
|
|
842
|
+
]),
|
|
843
|
+
_: 1
|
|
844
|
+
}, 8, ["model"])
|
|
845
|
+
])
|
|
846
|
+
]),
|
|
847
|
+
u("div", al, [
|
|
848
|
+
l(O, { label: "加工方向" }, {
|
|
849
|
+
default: M(() => [
|
|
850
|
+
l(J, {
|
|
851
|
+
modelValue: g.value.reverse,
|
|
852
|
+
"onUpdate:modelValue": P[1] || (P[1] = (F) => g.value.reverse = F),
|
|
853
|
+
placeholder: "请选择加工方向"
|
|
854
|
+
}, {
|
|
855
|
+
default: M(() => [
|
|
856
|
+
l(E, {
|
|
857
|
+
label: "正向",
|
|
858
|
+
value: !1
|
|
859
|
+
}),
|
|
860
|
+
l(E, {
|
|
861
|
+
label: "反向",
|
|
862
|
+
value: !0
|
|
863
|
+
})
|
|
864
|
+
]),
|
|
865
|
+
_: 1
|
|
866
|
+
}, 8, ["modelValue"])
|
|
867
|
+
]),
|
|
868
|
+
_: 1
|
|
869
|
+
}),
|
|
870
|
+
P[8] || (P[8] = u("span", { class: "item-view-group" }, [
|
|
871
|
+
u("span", { class: "group-name-wrap" }, "输出(弯管基础参数)")
|
|
872
|
+
], -1)),
|
|
873
|
+
u("div", sl, [
|
|
874
|
+
l(te, {
|
|
875
|
+
model: g.value.form,
|
|
876
|
+
"label-width": "auto",
|
|
877
|
+
"label-position": "top",
|
|
878
|
+
inline: !0
|
|
879
|
+
}, {
|
|
880
|
+
default: M(() => [
|
|
881
|
+
l(O, { label: "管长" }, {
|
|
882
|
+
default: M(() => [
|
|
883
|
+
l(q, {
|
|
884
|
+
modelValue: g.value.form.length,
|
|
885
|
+
"onUpdate:modelValue": P[2] || (P[2] = (F) => g.value.form.length = F)
|
|
886
|
+
}, null, 8, ["modelValue"])
|
|
887
|
+
]),
|
|
888
|
+
_: 1
|
|
889
|
+
}),
|
|
890
|
+
l(O, { label: "外径" }, {
|
|
891
|
+
default: M(() => [
|
|
892
|
+
l(q, {
|
|
893
|
+
modelValue: g.value.form.outerDiameter,
|
|
894
|
+
"onUpdate:modelValue": P[3] || (P[3] = (F) => g.value.form.outerDiameter = F)
|
|
895
|
+
}, null, 8, ["modelValue"])
|
|
896
|
+
]),
|
|
897
|
+
_: 1
|
|
898
|
+
}),
|
|
899
|
+
l(O, { label: "内径" }, {
|
|
900
|
+
default: M(() => [
|
|
901
|
+
l(q, {
|
|
902
|
+
modelValue: g.value.form.innerDiameter,
|
|
903
|
+
"onUpdate:modelValue": P[4] || (P[4] = (F) => g.value.form.innerDiameter = F)
|
|
904
|
+
}, null, 8, ["modelValue"])
|
|
905
|
+
]),
|
|
906
|
+
_: 1
|
|
907
|
+
}),
|
|
908
|
+
l(O, { label: "壁厚" }, {
|
|
909
|
+
default: M(() => [
|
|
910
|
+
l(q, {
|
|
911
|
+
modelValue: g.value.form.thickness,
|
|
912
|
+
"onUpdate:modelValue": P[5] || (P[5] = (F) => g.value.form.thickness = F)
|
|
913
|
+
}, null, 8, ["modelValue"])
|
|
914
|
+
]),
|
|
915
|
+
_: 1
|
|
916
|
+
})
|
|
917
|
+
]),
|
|
918
|
+
_: 1
|
|
919
|
+
}, 8, ["model"]),
|
|
920
|
+
l(ie, {
|
|
921
|
+
ref: "singleTableRef",
|
|
922
|
+
data: g.value.list,
|
|
923
|
+
"highlight-current-rowstyle": "width: 100%"
|
|
924
|
+
}, {
|
|
925
|
+
default: M(() => [
|
|
926
|
+
l(W, {
|
|
927
|
+
type: "index",
|
|
928
|
+
width: "50"
|
|
929
|
+
}),
|
|
930
|
+
l(W, {
|
|
931
|
+
property: "y",
|
|
932
|
+
label: "Y"
|
|
933
|
+
}),
|
|
934
|
+
l(W, {
|
|
935
|
+
property: "b",
|
|
936
|
+
label: "B"
|
|
937
|
+
}),
|
|
938
|
+
l(W, {
|
|
939
|
+
property: "c",
|
|
940
|
+
label: "C"
|
|
941
|
+
}),
|
|
942
|
+
l(W, {
|
|
943
|
+
property: "r",
|
|
944
|
+
label: "R"
|
|
945
|
+
})
|
|
946
|
+
]),
|
|
947
|
+
_: 1
|
|
948
|
+
}, 8, ["data"])
|
|
949
|
+
])
|
|
950
|
+
])
|
|
951
|
+
]),
|
|
952
|
+
u("div", {
|
|
953
|
+
class: "panel-right",
|
|
954
|
+
ref_key: "threejsContainer",
|
|
955
|
+
ref: n
|
|
956
|
+
}, null, 512)
|
|
957
|
+
])
|
|
958
|
+
]),
|
|
959
|
+
_: 1
|
|
960
|
+
}, 8, ["visible", "onBeforeDestroy", "fullScreen"]);
|
|
961
|
+
};
|
|
962
|
+
}
|
|
963
|
+
}), rl = /* @__PURE__ */ Ue(il, [["__scopeId", "data-v-61e834a4"]]), cl = { class: "obj-viewer-container" }, ul = { class: "pipe-comparison" }, pl = {
|
|
964
|
+
ref: "pipe1",
|
|
965
|
+
class: "pipe-container"
|
|
966
|
+
}, dl = {
|
|
967
|
+
ref: "pipe2",
|
|
968
|
+
class: "pipe-container"
|
|
969
|
+
}, ml = { class: "buttonGroup-topLeft" }, vl = { class: "buttonGroup-left" }, fl = { class: "buttonGroup-right" }, gl = { class: "buttonGroup-bottom" }, hl = { class: "top-panel" }, bl = { class: "panel-header" }, yl = { class: "panel-body" }, _l = { class: "left-panel" }, wl = { class: "panel-header" }, Cl = { class: "panel-body" }, kl = { class: "right-panel" }, Pl = { class: "panel-header" }, xl = { class: "panel-body" }, Rl = {
|
|
970
|
+
key: 0,
|
|
971
|
+
class: "loading-overlay"
|
|
972
|
+
}, Ml = /* @__PURE__ */ Le({
|
|
973
|
+
__name: "threeSceneView",
|
|
974
|
+
props: {
|
|
975
|
+
fileBlobs: { default: () => [] },
|
|
976
|
+
threeData: {}
|
|
977
|
+
},
|
|
978
|
+
setup(y) {
|
|
979
|
+
const v = y, d = h(Ye.ROBOT), n = h(null), m = h(), _ = h(!1), s = h(""), b = h(!1), f = h(""), w = h(!1), a = h(""), C = h(!1), p = h(""), k = be(null), r = be(null), c = h(), {
|
|
980
|
+
currentModels: T,
|
|
981
|
+
resetView: A,
|
|
982
|
+
initThreeJS: $,
|
|
983
|
+
handleResize: g,
|
|
984
|
+
getThreeJSObjects: V,
|
|
985
|
+
cleanup: B,
|
|
986
|
+
setAndFitModels: L,
|
|
987
|
+
axesHelperVisible: Z,
|
|
988
|
+
toggleAxesVisibility: ee,
|
|
989
|
+
zoomIn: G,
|
|
990
|
+
zoomOut: _e
|
|
991
|
+
} = Ne(n), { loadSceneFromFile: ve } = nt(
|
|
992
|
+
V,
|
|
993
|
+
T,
|
|
994
|
+
_,
|
|
995
|
+
s
|
|
996
|
+
), { isAnimating: se, toggleAnimation: S, startAnimation: P, stopAnimation: N } = Qe(V, T), { isClipping: E, activeClippingAxis: J, toggleClipping: O, updateClippingPlanes: te } = et(V, T), { initRaycaster: q, selectedObject3D: W, setSelectedObjVisible: ie, updatePosition: F, updateRotation: ne, dispose: fe } = ot(n, V, T), re = () => {
|
|
997
|
+
ee();
|
|
998
|
+
}, we = (t) => {
|
|
999
|
+
J.value = t, te();
|
|
1000
|
+
}, Ae = Pe(() => d.value === Ye.ROBOT), $e = Pe(() => d.value === Ye.PIPECOMPARSION), ce = (t) => {
|
|
1001
|
+
b.value = !0, f.value = t, t === "剖面视图" && !E.value && O();
|
|
1002
|
+
}, ge = (t) => {
|
|
1003
|
+
w.value = !0, a.value = t;
|
|
1004
|
+
}, Re = () => {
|
|
1005
|
+
var t;
|
|
1006
|
+
(t = c == null ? void 0 : c.value) == null || t.playAnimation();
|
|
1007
|
+
}, Fe = () => {
|
|
1008
|
+
var t;
|
|
1009
|
+
(t = c == null ? void 0 : c.value) == null || t.stopAnimation();
|
|
1010
|
+
}, ze = () => {
|
|
1011
|
+
var t;
|
|
1012
|
+
(t = c == null ? void 0 : c.value) == null || t.forwardFrame();
|
|
1013
|
+
}, e = () => {
|
|
1014
|
+
var t;
|
|
1015
|
+
(t = c == null ? void 0 : c.value) == null || t.backwardFrame();
|
|
1016
|
+
};
|
|
1017
|
+
ae(() => v.fileBlobs, (t) => {
|
|
1018
|
+
if (t && t.length > 0) {
|
|
1019
|
+
const i = t[0];
|
|
1020
|
+
if (!i.name.toLowerCase().endsWith(".urdf"))
|
|
1021
|
+
return;
|
|
1022
|
+
ve(i).then((R) => {
|
|
1023
|
+
k.value = R;
|
|
1024
|
+
}).catch((R) => {
|
|
1025
|
+
console.error("加载URDF文件时发生错误:", R), j.error("加载urdf模型失败"), k.value = null;
|
|
1026
|
+
});
|
|
1027
|
+
} else
|
|
1028
|
+
k.value = null;
|
|
1029
|
+
}, {
|
|
1030
|
+
immediate: !0,
|
|
1031
|
+
deep: !0
|
|
1032
|
+
}), ae(k, (t) => {
|
|
1033
|
+
L(t ? [t] : []), q();
|
|
1034
|
+
});
|
|
1035
|
+
let o = null;
|
|
1036
|
+
return Ge(async () => {
|
|
1037
|
+
await Ke();
|
|
1038
|
+
try {
|
|
1039
|
+
$(), n.value && (o = new ResizeObserver(g), o.observe(n.value));
|
|
1040
|
+
const t = V();
|
|
1041
|
+
r.value = t.scene;
|
|
1042
|
+
} catch (t) {
|
|
1043
|
+
console.error("Three.js 初始化失败:", t), j.error("渲染引擎初始化失败!");
|
|
1044
|
+
}
|
|
1045
|
+
}), Ze(() => {
|
|
1046
|
+
f.value = "", a.value = "", o && o.disconnect(), se.value && N(), B(), fe();
|
|
1047
|
+
}), (t, i) => {
|
|
1048
|
+
const R = U("el-scrollbar");
|
|
1049
|
+
return Q(), Ve("div", cl, [
|
|
1050
|
+
pe(u("div", {
|
|
1051
|
+
ref_key: "threejsContainer",
|
|
1052
|
+
ref: n,
|
|
1053
|
+
class: "threejs-container"
|
|
1054
|
+
}, null, 512), [
|
|
1055
|
+
[de, Ae.value]
|
|
1056
|
+
]),
|
|
1057
|
+
pe(u("div", ul, [
|
|
1058
|
+
u("div", pl, null, 512),
|
|
1059
|
+
u("div", dl, null, 512)
|
|
1060
|
+
], 512), [
|
|
1061
|
+
[de, $e.value]
|
|
1062
|
+
]),
|
|
1063
|
+
u("div", ml, [
|
|
1064
|
+
l(Y, {
|
|
1065
|
+
name: "viewReset",
|
|
1066
|
+
size: "24",
|
|
1067
|
+
onClick: X(A),
|
|
1068
|
+
title: "重置"
|
|
1069
|
+
}, null, 8, ["onClick"]),
|
|
1070
|
+
l(Y, {
|
|
1071
|
+
name: "fangda",
|
|
1072
|
+
size: "24",
|
|
1073
|
+
title: "放大",
|
|
1074
|
+
onClick: X(G)
|
|
1075
|
+
}, null, 8, ["onClick"]),
|
|
1076
|
+
l(Y, {
|
|
1077
|
+
name: "suoxiao",
|
|
1078
|
+
size: "24",
|
|
1079
|
+
title: "缩小",
|
|
1080
|
+
onClick: X(_e)
|
|
1081
|
+
}, null, 8, ["onClick"]),
|
|
1082
|
+
l(Y, {
|
|
1083
|
+
name: "lookAround",
|
|
1084
|
+
size: "24",
|
|
1085
|
+
onClick: X(S),
|
|
1086
|
+
title: X(se) ? "停止动画" : "动画视图"
|
|
1087
|
+
}, null, 8, ["onClick", "title"]),
|
|
1088
|
+
l(Y, {
|
|
1089
|
+
name: "zuobiaoxi",
|
|
1090
|
+
size: "24",
|
|
1091
|
+
active: X(Z),
|
|
1092
|
+
onClick: re,
|
|
1093
|
+
title: "显隐坐标轴"
|
|
1094
|
+
}, null, 8, ["active"])
|
|
1095
|
+
]),
|
|
1096
|
+
u("div", vl, [
|
|
1097
|
+
Me(t.$slots, "button-left", { switchRightPanel: ce }, void 0, !0),
|
|
1098
|
+
l(Y, {
|
|
1099
|
+
name: "jiegoushu",
|
|
1100
|
+
size: "24",
|
|
1101
|
+
onClick: i[0] || (i[0] = (x) => ce("场景树")),
|
|
1102
|
+
active: b.value && f.value === "场景树",
|
|
1103
|
+
title: "场景树"
|
|
1104
|
+
}, null, 8, ["active"]),
|
|
1105
|
+
l(Y, {
|
|
1106
|
+
name: "clipping",
|
|
1107
|
+
size: "24",
|
|
1108
|
+
onClick: i[1] || (i[1] = (x) => ce("剖面视图")),
|
|
1109
|
+
active: b.value && f.value === "剖面视图",
|
|
1110
|
+
title: "剖面视图"
|
|
1111
|
+
}, null, 8, ["active"]),
|
|
1112
|
+
l(Y, {
|
|
1113
|
+
name: "zhaozi",
|
|
1114
|
+
size: "24",
|
|
1115
|
+
onClick: i[2] || (i[2] = (x) => ce("工件树")),
|
|
1116
|
+
active: b.value && f.value === "工件树",
|
|
1117
|
+
title: "工件 "
|
|
1118
|
+
}, null, 8, ["active"]),
|
|
1119
|
+
l(Y, {
|
|
1120
|
+
name: "donghuafangzhen",
|
|
1121
|
+
size: "24",
|
|
1122
|
+
onClick: i[3] || (i[3] = (x) => ce("场景4"))
|
|
1123
|
+
})
|
|
1124
|
+
]),
|
|
1125
|
+
u("div", fl, [
|
|
1126
|
+
Me(t.$slots, "button-right", { switchRightPanel: ge }, void 0, !0),
|
|
1127
|
+
l(Y, {
|
|
1128
|
+
name: "donghuafangzhen",
|
|
1129
|
+
size: "24"
|
|
1130
|
+
}),
|
|
1131
|
+
l(Y, {
|
|
1132
|
+
name: "donghuafangzhen",
|
|
1133
|
+
size: "24"
|
|
1134
|
+
}),
|
|
1135
|
+
l(Y, {
|
|
1136
|
+
name: "guanjiekongzhi",
|
|
1137
|
+
size: "24",
|
|
1138
|
+
onClick: i[4] || (i[4] = (x) => ge("关节控制")),
|
|
1139
|
+
active: w.value && a.value === "关节控制",
|
|
1140
|
+
title: "关节控制"
|
|
1141
|
+
}, null, 8, ["active"]),
|
|
1142
|
+
l(Y, {
|
|
1143
|
+
name: "donghuafangzhen",
|
|
1144
|
+
size: "24",
|
|
1145
|
+
title: "动画仿真",
|
|
1146
|
+
onClick: i[5] || (i[5] = (x) => ge("动画仿真")),
|
|
1147
|
+
active: w.value && a.value === "动画仿真"
|
|
1148
|
+
}, null, 8, ["active"]),
|
|
1149
|
+
l(Y, {
|
|
1150
|
+
name: "donghuafangzhen",
|
|
1151
|
+
size: "24",
|
|
1152
|
+
title: "urdf动画",
|
|
1153
|
+
onClick: i[6] || (i[6] = (x) => ge("urdf动画")),
|
|
1154
|
+
active: w.value && a.value === "urdf动画"
|
|
1155
|
+
}, null, 8, ["active"]),
|
|
1156
|
+
l(Y, {
|
|
1157
|
+
name: "donghuafangzhen",
|
|
1158
|
+
size: "24"
|
|
1159
|
+
})
|
|
1160
|
+
]),
|
|
1161
|
+
u("div", gl, [
|
|
1162
|
+
l(Y, {
|
|
1163
|
+
name: "kuaitui",
|
|
1164
|
+
size: "24",
|
|
1165
|
+
backgroundColor: "#ffffff",
|
|
1166
|
+
title: "快退",
|
|
1167
|
+
onClick: e
|
|
1168
|
+
}),
|
|
1169
|
+
l(Y, {
|
|
1170
|
+
name: "bofang",
|
|
1171
|
+
size: "24",
|
|
1172
|
+
backgroundColor: "#ffffff",
|
|
1173
|
+
title: "播放",
|
|
1174
|
+
onClick: Re
|
|
1175
|
+
}),
|
|
1176
|
+
l(Y, {
|
|
1177
|
+
name: "kuaijin",
|
|
1178
|
+
size: "24",
|
|
1179
|
+
backgroundColor: "#ffffff",
|
|
1180
|
+
title: "快进",
|
|
1181
|
+
onClick: ze
|
|
1182
|
+
}),
|
|
1183
|
+
l(Y, {
|
|
1184
|
+
name: "zanting",
|
|
1185
|
+
size: "24",
|
|
1186
|
+
backgroundColor: "#ffffff",
|
|
1187
|
+
title: "暂停",
|
|
1188
|
+
onClick: Fe
|
|
1189
|
+
})
|
|
1190
|
+
]),
|
|
1191
|
+
pe(u("div", hl, [
|
|
1192
|
+
u("div", bl, [
|
|
1193
|
+
u("span", null, he(p.value), 1),
|
|
1194
|
+
u("span", {
|
|
1195
|
+
class: "close",
|
|
1196
|
+
onClick: i[7] || (i[7] = (x) => C.value = !1)
|
|
1197
|
+
}, " X ")
|
|
1198
|
+
]),
|
|
1199
|
+
u("div", yl, [
|
|
1200
|
+
l(R, { height: "100%" }, {
|
|
1201
|
+
default: M(() => [
|
|
1202
|
+
Me(t.$slots, "top-panel", { topPanelType: p.value }, void 0, !0)
|
|
1203
|
+
]),
|
|
1204
|
+
_: 3
|
|
1205
|
+
})
|
|
1206
|
+
])
|
|
1207
|
+
], 512), [
|
|
1208
|
+
[de, C.value]
|
|
1209
|
+
]),
|
|
1210
|
+
pe(u("div", _l, [
|
|
1211
|
+
u("div", wl, [
|
|
1212
|
+
u("span", null, he(f.value), 1),
|
|
1213
|
+
u("span", {
|
|
1214
|
+
class: "close",
|
|
1215
|
+
onClick: i[8] || (i[8] = (x) => b.value = !1)
|
|
1216
|
+
}, " X ")
|
|
1217
|
+
]),
|
|
1218
|
+
u("div", Cl, [
|
|
1219
|
+
l(R, { height: "100%" }, {
|
|
1220
|
+
default: M(() => {
|
|
1221
|
+
var x;
|
|
1222
|
+
return [
|
|
1223
|
+
f.value === "场景树" ? (Q(), ye(At, {
|
|
1224
|
+
key: 0,
|
|
1225
|
+
model: k.value
|
|
1226
|
+
}, null, 8, ["model"])) : ke("", !0),
|
|
1227
|
+
f.value === "剖面视图" ? (Q(), ye(tt, {
|
|
1228
|
+
key: 1,
|
|
1229
|
+
value: X(J),
|
|
1230
|
+
onChange: we
|
|
1231
|
+
}, null, 8, ["value"])) : ke("", !0),
|
|
1232
|
+
f.value === "工件树" ? (Q(), ye(at, {
|
|
1233
|
+
key: 2,
|
|
1234
|
+
model: (x = X(W)) == null ? void 0 : x.obj,
|
|
1235
|
+
onVisibleChange: X(ie),
|
|
1236
|
+
onUpdatePosition: X(F),
|
|
1237
|
+
onUpdateRotation: X(ne)
|
|
1238
|
+
}, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : ke("", !0)
|
|
1239
|
+
];
|
|
1240
|
+
}),
|
|
1241
|
+
_: 1
|
|
1242
|
+
})
|
|
1243
|
+
])
|
|
1244
|
+
], 512), [
|
|
1245
|
+
[de, b.value]
|
|
1246
|
+
]),
|
|
1247
|
+
pe(u("div", kl, [
|
|
1248
|
+
u("div", Pl, [
|
|
1249
|
+
u("span", null, he(a.value), 1),
|
|
1250
|
+
u("span", {
|
|
1251
|
+
class: "close",
|
|
1252
|
+
onClick: i[9] || (i[9] = (x) => w.value = !1)
|
|
1253
|
+
}, " X ")
|
|
1254
|
+
]),
|
|
1255
|
+
u("div", xl, [
|
|
1256
|
+
l(R, { height: "100%" }, {
|
|
1257
|
+
default: M(() => [
|
|
1258
|
+
pe(l($t, { model: k.value }, null, 8, ["model"]), [
|
|
1259
|
+
[de, a.value === "关节控制"]
|
|
1260
|
+
]),
|
|
1261
|
+
pe(l(Ht, {
|
|
1262
|
+
ref_key: "animationPanelRef",
|
|
1263
|
+
ref: c,
|
|
1264
|
+
model: k.value,
|
|
1265
|
+
threeData: v.threeData
|
|
1266
|
+
}, null, 8, ["model", "threeData"]), [
|
|
1267
|
+
[de, a.value === "动画仿真"]
|
|
1268
|
+
]),
|
|
1269
|
+
Me(t.$slots, "right-panel", { rightPanelType: a.value }, void 0, !0)
|
|
1270
|
+
]),
|
|
1271
|
+
_: 3
|
|
1272
|
+
})
|
|
1273
|
+
])
|
|
1274
|
+
], 512), [
|
|
1275
|
+
[de, w.value]
|
|
1276
|
+
]),
|
|
1277
|
+
_.value ? (Q(), Ve("div", Rl, [
|
|
1278
|
+
i[10] || (i[10] = u("div", { class: "loading-spinner" }, null, -1)),
|
|
1279
|
+
u("p", null, he(s.value), 1)
|
|
1280
|
+
])) : ke("", !0),
|
|
1281
|
+
l(rl, {
|
|
1282
|
+
ref_key: "pipeAnalysisPanelRef",
|
|
1283
|
+
ref: m
|
|
1284
|
+
}, null, 512)
|
|
1285
|
+
]);
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
}), Jl = /* @__PURE__ */ Ue(Ml, [["__scopeId", "data-v-ec34be42"]]);
|
|
1289
|
+
export {
|
|
1290
|
+
Jl as default
|
|
1291
|
+
};
|