ss-component-new 1.3.813 → 1.3.815
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-Cw11TWAL.js → MTLLoader-DeqHL-AI.js} +39 -39
- package/dist/{URDFLoader-DUzCZjnV.js → URDFLoader-CiSgFgWK.js} +156 -156
- package/dist/{animationData-DwQetFQD.js → animationData-CVVm5rD_.js} +11 -11
- package/dist/{array-COidmpRY.js → array-8BOBukwZ.js} +178 -178
- package/dist/{iconfont-Ij2RVNFj.js → iconfont-CuxO25jz.js} +1 -1
- package/dist/{index-dh1Gi7jC.js → index-BGAhYPQI.js} +1 -1
- package/dist/{index-CcBUPD0v.js → index-BjbnnFmN.js} +3 -3
- package/dist/{index-CXY_sgN_.js → index-BrVAczXU.js} +4 -4
- package/dist/{index-Cv6rlCAH.js → index-Bz7cdL2l.js} +19463 -19316
- package/dist/{index-Cd11-eam.js → index-C4x5BF6v.js} +7191 -7184
- package/dist/{index-Dsce3BX1.js → index-CHKlT3mb.js} +3 -3
- package/dist/{index-CCZspl83.js → index-CKWkVjdr.js} +1 -1
- package/dist/{index-DQryAYzQ.js → index-DCFvBMG1.js} +1 -1
- package/dist/{index-DqizREJ2.js → index-DZe4W71_.js} +1 -1
- package/dist/{index-KEw10uzh.js → index-DmiiVNgM.js} +1 -1
- package/dist/{index-B7P0-Odj.js → index-DzNKmhm_.js} +2 -2
- package/dist/{index-B4kaaRbF.js → index-djF386bV.js} +1567 -1563
- package/dist/{index-D8-0gsl7.js → index-fLaMmGT7.js} +4 -4
- package/dist/{index-ZhT8hVC2.js → index-sDRXkpeY.js} +10 -10
- package/dist/{index-CaLfl7ix.js → index-vMStskjM.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-DFJL-r6K.js → index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-CZUHaA2-.js} +4419 -4411
- package/dist/{main-fNwMqnvv.js → main-CK-3ac4L.js} +2 -2
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +8 -8
- package/dist/ss-component2.js +8 -8
- package/dist/{threeModel-BeCT-wuA.js → threeModel-5jLpnZxT.js} +49 -49
- package/dist/{threePreview-BnPPysvl.js → threePreview-E6bBnyEu.js} +1258 -1103
- package/dist/{threeSceneView-C_KAY9V1.js → threeSceneView-CIBq_Yjm.js} +71 -69
- package/dist/{threeSceneViewForCPMPIP-uac2fzAK.js → threeSceneViewForCPMPIP-BwD010zk.js} +7 -7
- package/dist/{threeTrackPathView-Ugj5_KnE.js → threeTrackPathView-B1FFx8pz.js} +31 -31
- package/dist/{threeViewerHost-Dv0JTTnu.js → threeViewerHost-RF4w3At4.js} +2 -2
- package/dist/{urdfTree-CLtWTrD6.js → urdfTree-B8y6pXfi.js} +1 -1
- package/dist/{workpieceTreePanel-Ch75Cqlr.js → workpieceTreePanel-v_yqJYFX.js} +35 -35
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as Le, ref as h, watch as
|
|
2
|
-
import { r as Te, s as Ye } from "./threeViewerHost-
|
|
3
|
-
import { u as Je, a as Qe, b as et, T as Y, C as tt } from "./iconfont-
|
|
4
|
-
import { U as lt, u as ot, a as nt, W as at } from "./workpieceTreePanel-
|
|
1
|
+
import { defineComponent as Le, ref as h, watch as ie, 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 ae, vShow as se, renderSlot as Me } from "vue";
|
|
2
|
+
import { r as Te, s as Ye } from "./threeViewerHost-RF4w3At4.js";
|
|
3
|
+
import { u as Je, a as Qe, b as et, T as Y, C as tt } from "./iconfont-CuxO25jz.js";
|
|
4
|
+
import { U as lt, u as ot, a as nt, W as at } from "./workpieceTreePanel-v_yqJYFX.js";
|
|
5
5
|
import { c as st } from "./index-DkDX7FWy.js";
|
|
6
6
|
import { aG as it, E as j, aX as rt, aY as ct } from "./request-DzUsnuWu.js";
|
|
7
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_05e3a1d8_lang-
|
|
9
|
-
import "./index-
|
|
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_05e3a1d8_lang-CZUHaA2-.js";
|
|
9
|
+
import "./index-Bz7cdL2l.js";
|
|
10
10
|
import "./index-BHtNKL1L.js";
|
|
11
11
|
import { _ as me } from "./index.vue_vue_type_script_setup_true_lang-BqS9V6jf.js";
|
|
12
12
|
import { y as Be, z as Ct, A as kt } from "./index-xqFF6xBy.js";
|
|
13
|
-
import "./index-
|
|
13
|
+
import "./index-DzNKmhm_.js";
|
|
14
14
|
import "./index-CgyZkRox.js";
|
|
15
|
-
import { f as Pt, a as xt, g as Rt, b as Mt } from "./animationData-
|
|
16
|
-
import { g as Tt, a as Vt, b as Dt, c as St, U as At, J as $t } from "./urdfTree-
|
|
15
|
+
import { f as Pt, a as xt, g as Rt, b as Mt } from "./animationData-CVVm5rD_.js";
|
|
16
|
+
import { g as Tt, a as Vt, b as Dt, c as St, U as At, J as $t } from "./urdfTree-B8y6pXfi.js";
|
|
17
17
|
import { _ as Ue } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
18
18
|
import { s as Ft } from "./index-11kpzK0A.js";
|
|
19
19
|
const I = 1e-3, oe = ut.degToRad, je = new dt({
|
|
@@ -256,7 +256,7 @@ const jt = { class: "panel-content" }, Et = { class: "action-bar" }, Ot = { clas
|
|
|
256
256
|
},
|
|
257
257
|
setup(y, { expose: v }) {
|
|
258
258
|
const d = y, n = h(), m = h();
|
|
259
|
-
|
|
259
|
+
ie(() => d.threeData, (e) => {
|
|
260
260
|
const o = e == null ? void 0 : e.data;
|
|
261
261
|
m.value = o == null ? void 0 : o.type;
|
|
262
262
|
}, {
|
|
@@ -284,10 +284,10 @@ ${G.value.join(" ")}
|
|
|
284
284
|
B: parseFloat(e.B) || 0,
|
|
285
285
|
C: parseFloat(e.C) || 0,
|
|
286
286
|
R: parseFloat(e.R) || 0
|
|
287
|
-
})),
|
|
287
|
+
})), re = () => {
|
|
288
288
|
const e = [], o = [];
|
|
289
289
|
return s.value.forEach((t) => {
|
|
290
|
-
const { Y1: i, B1: R, C1: x, R1: le, Y2: K, B2:
|
|
290
|
+
const { Y1: i, B1: R, C1: x, R1: le, Y2: K, B2: de, C2: Ce, R2: z } = t;
|
|
291
291
|
e.push({
|
|
292
292
|
Y: parseFloat(i) || 0,
|
|
293
293
|
B: parseFloat(R) || 0,
|
|
@@ -295,7 +295,7 @@ ${G.value.join(" ")}
|
|
|
295
295
|
R: parseFloat(le) || 0
|
|
296
296
|
}), o.push({
|
|
297
297
|
Y: parseFloat(K) || 0,
|
|
298
|
-
B: parseFloat(
|
|
298
|
+
B: parseFloat(de) || 0,
|
|
299
299
|
C: parseFloat(Ce) || 0,
|
|
300
300
|
R: parseFloat(z) || 0
|
|
301
301
|
});
|
|
@@ -305,7 +305,7 @@ ${G.value.join(" ")}
|
|
|
305
305
|
};
|
|
306
306
|
}, S = (e = 0, o = 0) => {
|
|
307
307
|
if (c.value && T.value) {
|
|
308
|
-
const t =
|
|
308
|
+
const t = re();
|
|
309
309
|
Xe(
|
|
310
310
|
c.value,
|
|
311
311
|
T.value,
|
|
@@ -370,7 +370,7 @@ ${G.value.join(" ")}
|
|
|
370
370
|
a.value = 0;
|
|
371
371
|
}, O = () => {
|
|
372
372
|
if (c.value && T.value) {
|
|
373
|
-
const e =
|
|
373
|
+
const e = re();
|
|
374
374
|
Xe(
|
|
375
375
|
c.value,
|
|
376
376
|
T.value,
|
|
@@ -397,14 +397,14 @@ ${G.value.join(" ")}
|
|
|
397
397
|
r.value && r.value.resetToZero(), O(), N(), j.success("机器人和管件已重置");
|
|
398
398
|
}, q = (e) => `第 ${e + 1} 帧`, W = (e) => {
|
|
399
399
|
w.value && E(), P(e);
|
|
400
|
-
},
|
|
400
|
+
}, ce = () => {
|
|
401
401
|
w.value && E(), !(a.value + 1 >= s.value.length) && P(a.value + 1);
|
|
402
402
|
}, F = () => {
|
|
403
403
|
w.value && E(), a.value !== 0 && P(a.value - 1);
|
|
404
404
|
}, ne = () => {
|
|
405
405
|
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;
|
|
406
406
|
}, fe = (e) => e == null ? void 0 : e.reduce((o, t) => (o[t] = "0", o), {});
|
|
407
|
-
|
|
407
|
+
ie(G, (e, o) => {
|
|
408
408
|
if (JSON.stringify(e) !== JSON.stringify(o))
|
|
409
409
|
if (e.length > 0) {
|
|
410
410
|
const t = fe(e);
|
|
@@ -412,8 +412,8 @@ ${G.value.join(" ")}
|
|
|
412
412
|
} else
|
|
413
413
|
s.value = [];
|
|
414
414
|
}, { immediate: !0 });
|
|
415
|
-
const
|
|
416
|
-
|
|
415
|
+
const ue = h(0), we = (e) => {
|
|
416
|
+
ue.value = e;
|
|
417
417
|
}, Ae = (e, o) => {
|
|
418
418
|
if (!e || !o)
|
|
419
419
|
return;
|
|
@@ -421,17 +421,17 @@ ${G.value.join(" ")}
|
|
|
421
421
|
i.visible = !1, t == null || t.add(i);
|
|
422
422
|
}, $e = (e) => {
|
|
423
423
|
r.value = new lt(e), B.value = Dt(e), L.value = "Pipe_Joint";
|
|
424
|
-
},
|
|
424
|
+
}, pe = () => {
|
|
425
425
|
r.value = null, B.value = [], L.value = null;
|
|
426
426
|
}, ge = (e) => {
|
|
427
|
-
$e(e), Ae(e, L.value), we(
|
|
427
|
+
$e(e), Ae(e, L.value), we(ue.value + 1), te();
|
|
428
428
|
};
|
|
429
|
-
|
|
429
|
+
ie(() => d.model, (e) => {
|
|
430
430
|
if (ne(), e) {
|
|
431
431
|
ge(e);
|
|
432
432
|
return;
|
|
433
433
|
}
|
|
434
|
-
|
|
434
|
+
pe();
|
|
435
435
|
}, { immediate: !0 });
|
|
436
436
|
const Re = (e) => {
|
|
437
437
|
var t, i;
|
|
@@ -441,7 +441,7 @@ ${G.value.join(" ")}
|
|
|
441
441
|
);
|
|
442
442
|
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;
|
|
443
443
|
};
|
|
444
|
-
|
|
444
|
+
ie([L, V, $, ue], ([e, o]) => {
|
|
445
445
|
if (ne(), d.model && e) {
|
|
446
446
|
const t = Vt(d.model, e);
|
|
447
447
|
if (console.log(t, "meshToReplace"), t && t.parent) {
|
|
@@ -487,10 +487,10 @@ ${G.value.join(" ")}
|
|
|
487
487
|
}
|
|
488
488
|
const R = e.slice(1).map((x) => {
|
|
489
489
|
const le = x.split(" "), K = {};
|
|
490
|
-
return G.value.forEach((
|
|
491
|
-
K[
|
|
492
|
-
}), Object.entries(t).forEach(([
|
|
493
|
-
const z = le[parseInt(
|
|
490
|
+
return G.value.forEach((de) => {
|
|
491
|
+
K[de] = "0";
|
|
492
|
+
}), Object.entries(t).forEach(([de, Ce]) => {
|
|
493
|
+
const z = le[parseInt(de)];
|
|
494
494
|
z !== void 0 && z.trim() !== "" && (K[Ce] = z.trim());
|
|
495
495
|
}), K;
|
|
496
496
|
});
|
|
@@ -498,8 +498,8 @@ ${G.value.join(" ")}
|
|
|
498
498
|
};
|
|
499
499
|
return Ie(() => {
|
|
500
500
|
ne(), k = !0;
|
|
501
|
-
}), v({ playAnimation: J, stopAnimation: E, forwardFrame:
|
|
502
|
-
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"),
|
|
501
|
+
}), v({ playAnimation: J, stopAnimation: E, forwardFrame: ce, backwardFrame: F }), (e, o) => {
|
|
502
|
+
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"), de = U("el-input"), Ce = U("el-dialog");
|
|
503
503
|
return Q(), Ve("div", jt, [
|
|
504
504
|
u("div", Et, [
|
|
505
505
|
l(me, {
|
|
@@ -660,7 +660,7 @@ ${G.value.join(" ")}
|
|
|
660
660
|
]),
|
|
661
661
|
default: M(() => [
|
|
662
662
|
o[11] || (o[11] = u("p", { class: "import-instructions" }, " 请从Excel或csv中复制数据 (首行为表头, Tab分隔) ", -1)),
|
|
663
|
-
l(
|
|
663
|
+
l(de, {
|
|
664
664
|
modelValue: f.value,
|
|
665
665
|
"onUpdate:modelValue": o[5] || (o[5] = (z) => f.value = z),
|
|
666
666
|
type: "textarea",
|
|
@@ -726,16 +726,16 @@ ${G.value.join(" ")}
|
|
|
726
726
|
const { form: S, list: P } = g.value, {
|
|
727
727
|
outerDiameter: J
|
|
728
728
|
} = S, E = J / 2, N = P == null ? void 0 : P.map((te) => {
|
|
729
|
-
const { y: q, b: W, c:
|
|
729
|
+
const { y: q, b: W, c: ce, r: F, Y: ne, B: fe, C: ue, R: we } = te;
|
|
730
730
|
return ne ? {
|
|
731
731
|
Y: ne,
|
|
732
732
|
B: fe,
|
|
733
|
-
C:
|
|
733
|
+
C: ue,
|
|
734
734
|
R: we
|
|
735
735
|
} : {
|
|
736
736
|
Y: q,
|
|
737
737
|
B: W,
|
|
738
|
-
C:
|
|
738
|
+
C: ce,
|
|
739
739
|
R: F
|
|
740
740
|
};
|
|
741
741
|
});
|
|
@@ -752,15 +752,15 @@ ${G.value.join(" ")}
|
|
|
752
752
|
}, ve = async () => {
|
|
753
753
|
const S = await qt();
|
|
754
754
|
$(S);
|
|
755
|
-
},
|
|
755
|
+
}, re = async (S) => {
|
|
756
756
|
const P = await Kt(S);
|
|
757
757
|
V(P);
|
|
758
758
|
};
|
|
759
|
-
return
|
|
759
|
+
return ie(() => g, () => {
|
|
760
760
|
B();
|
|
761
761
|
}, {
|
|
762
762
|
deep: !0
|
|
763
|
-
}),
|
|
763
|
+
}), ie(() => n, () => {
|
|
764
764
|
try {
|
|
765
765
|
if (m.value)
|
|
766
766
|
return;
|
|
@@ -775,7 +775,7 @@ ${G.value.join(" ")}
|
|
|
775
775
|
}), Ze(() => {
|
|
776
776
|
window.removeEventListener("resize", f), a();
|
|
777
777
|
}), v({ openDialog: _e }), (S, P) => {
|
|
778
|
-
const J = U("el-icon"), E = U("el-option"), N = U("el-select"), O = U("el-form-item"), te = U("el-form"), q = U("el-input"), W = U("el-table-column"),
|
|
778
|
+
const J = U("el-icon"), E = U("el-option"), N = U("el-select"), O = U("el-form-item"), te = U("el-form"), q = U("el-input"), W = U("el-table-column"), ce = U("el-table");
|
|
779
779
|
return Q(), ye(Ft, {
|
|
780
780
|
class: "pipe-analysis-dialog",
|
|
781
781
|
visible: ee.value,
|
|
@@ -825,7 +825,7 @@ ${G.value.join(" ")}
|
|
|
825
825
|
modelValue: T.value.pipe,
|
|
826
826
|
"onUpdate:modelValue": P[0] || (P[0] = (F) => T.value.pipe = F),
|
|
827
827
|
placeholder: "请选择弯管",
|
|
828
|
-
onChange:
|
|
828
|
+
onChange: re
|
|
829
829
|
}, {
|
|
830
830
|
default: M(() => [
|
|
831
831
|
(Q(!0), Ve(He, null, qe(A.value, (F) => (Q(), ye(E, {
|
|
@@ -916,7 +916,7 @@ ${G.value.join(" ")}
|
|
|
916
916
|
]),
|
|
917
917
|
_: 1
|
|
918
918
|
}, 8, ["model"]),
|
|
919
|
-
l(
|
|
919
|
+
l(ce, {
|
|
920
920
|
ref: "singleTableRef",
|
|
921
921
|
data: g.value.list,
|
|
922
922
|
"highlight-current-rowstyle": "width: 100%"
|
|
@@ -992,11 +992,11 @@ ${G.value.join(" ")}
|
|
|
992
992
|
T,
|
|
993
993
|
_,
|
|
994
994
|
s
|
|
995
|
-
), { isAnimating:
|
|
995
|
+
), { isAnimating: re, toggleAnimation: S, startAnimation: P, stopAnimation: J } = Qe(V, T), { isClipping: E, activeClippingAxis: N, toggleClipping: O, updateClippingPlanes: te } = et(V, T), { initRaycaster: q, selectedObject3D: W, setSelectedObjVisible: ce, updatePosition: F, updateRotation: ne, dispose: fe } = ot(n, V, T), ue = () => {
|
|
996
996
|
ee();
|
|
997
997
|
}, we = (t) => {
|
|
998
998
|
N.value = t, te();
|
|
999
|
-
}, Ae = Pe(() => d.value === Ye.ROBOT), $e = Pe(() => d.value === Ye.PIPECOMPARSION),
|
|
999
|
+
}, Ae = Pe(() => d.value === Ye.ROBOT), $e = Pe(() => d.value === Ye.PIPECOMPARSION), pe = (t) => {
|
|
1000
1000
|
b.value = !0, f.value = t, t === "剖面视图" && !E.value && O();
|
|
1001
1001
|
}, ge = (t) => {
|
|
1002
1002
|
w.value = !0, a.value = t;
|
|
@@ -1013,7 +1013,7 @@ ${G.value.join(" ")}
|
|
|
1013
1013
|
var t;
|
|
1014
1014
|
(t = c == null ? void 0 : c.value) == null || t.backwardFrame();
|
|
1015
1015
|
};
|
|
1016
|
-
|
|
1016
|
+
ie(() => v.fileBlobs, (t) => {
|
|
1017
1017
|
if (t && t.length > 0) {
|
|
1018
1018
|
const i = t[0];
|
|
1019
1019
|
if (!i.name.toLowerCase().endsWith(".urdf"))
|
|
@@ -1028,7 +1028,7 @@ ${G.value.join(" ")}
|
|
|
1028
1028
|
}, {
|
|
1029
1029
|
immediate: !0,
|
|
1030
1030
|
deep: !0
|
|
1031
|
-
}),
|
|
1031
|
+
}), ie(k, (t) => {
|
|
1032
1032
|
L(t ? [t] : []), q();
|
|
1033
1033
|
});
|
|
1034
1034
|
let o = null;
|
|
@@ -1042,24 +1042,24 @@ ${G.value.join(" ")}
|
|
|
1042
1042
|
console.error("Three.js 初始化失败:", t), j.error("渲染引擎初始化失败!");
|
|
1043
1043
|
}
|
|
1044
1044
|
}), Ze(() => {
|
|
1045
|
-
f.value = "", a.value = "", o && o.disconnect(),
|
|
1045
|
+
f.value = "", a.value = "", o && o.disconnect(), re.value && J(), B(), fe();
|
|
1046
1046
|
}), (t, i) => {
|
|
1047
1047
|
const R = U("el-scrollbar");
|
|
1048
1048
|
return Q(), Ve("div", cl, [
|
|
1049
|
-
|
|
1049
|
+
ae(u("div", {
|
|
1050
1050
|
ref_key: "threejsContainer",
|
|
1051
1051
|
ref: n,
|
|
1052
1052
|
class: "threejs-container"
|
|
1053
1053
|
}, null, 512), [
|
|
1054
|
-
[
|
|
1054
|
+
[se, Ae.value]
|
|
1055
1055
|
]),
|
|
1056
|
-
|
|
1056
|
+
ae(u("div", ul, [
|
|
1057
1057
|
u("div", pl, null, 512),
|
|
1058
1058
|
u("div", dl, null, 512)
|
|
1059
1059
|
], 512), [
|
|
1060
|
-
[
|
|
1060
|
+
[se, $e.value]
|
|
1061
1061
|
]),
|
|
1062
|
-
u("div", ml, [
|
|
1062
|
+
ae(u("div", ml, [
|
|
1063
1063
|
l(Y, {
|
|
1064
1064
|
name: "viewReset",
|
|
1065
1065
|
size: "24",
|
|
@@ -1082,43 +1082,45 @@ ${G.value.join(" ")}
|
|
|
1082
1082
|
name: "lookAround",
|
|
1083
1083
|
size: "24",
|
|
1084
1084
|
onClick: X(S),
|
|
1085
|
-
title: X(
|
|
1085
|
+
title: X(re) ? "停止动画" : "动画视图"
|
|
1086
1086
|
}, null, 8, ["onClick", "title"]),
|
|
1087
1087
|
l(Y, {
|
|
1088
1088
|
name: "zuobiaoxi",
|
|
1089
1089
|
size: "24",
|
|
1090
1090
|
active: X(Z),
|
|
1091
|
-
onClick:
|
|
1091
|
+
onClick: ue,
|
|
1092
1092
|
title: "显隐坐标轴"
|
|
1093
1093
|
}, null, 8, ["active"])
|
|
1094
|
+
], 512), [
|
|
1095
|
+
[se, !1]
|
|
1094
1096
|
]),
|
|
1095
1097
|
u("div", vl, [
|
|
1096
|
-
Me(t.$slots, "button-left", { switchRightPanel:
|
|
1098
|
+
Me(t.$slots, "button-left", { switchRightPanel: pe }, void 0, !0),
|
|
1097
1099
|
l(Y, {
|
|
1098
1100
|
name: "jiegoushu",
|
|
1099
1101
|
size: "24",
|
|
1100
|
-
onClick: i[0] || (i[0] = (x) =>
|
|
1102
|
+
onClick: i[0] || (i[0] = (x) => pe("场景树")),
|
|
1101
1103
|
active: b.value && f.value === "场景树",
|
|
1102
1104
|
title: "场景树"
|
|
1103
1105
|
}, null, 8, ["active"]),
|
|
1104
1106
|
l(Y, {
|
|
1105
1107
|
name: "clipping",
|
|
1106
1108
|
size: "24",
|
|
1107
|
-
onClick: i[1] || (i[1] = (x) =>
|
|
1109
|
+
onClick: i[1] || (i[1] = (x) => pe("剖面视图")),
|
|
1108
1110
|
active: b.value && f.value === "剖面视图",
|
|
1109
1111
|
title: "剖面视图"
|
|
1110
1112
|
}, null, 8, ["active"]),
|
|
1111
1113
|
l(Y, {
|
|
1112
1114
|
name: "zhaozi",
|
|
1113
1115
|
size: "24",
|
|
1114
|
-
onClick: i[2] || (i[2] = (x) =>
|
|
1116
|
+
onClick: i[2] || (i[2] = (x) => pe("工件树")),
|
|
1115
1117
|
active: b.value && f.value === "工件树",
|
|
1116
1118
|
title: "工件 "
|
|
1117
1119
|
}, null, 8, ["active"]),
|
|
1118
1120
|
l(Y, {
|
|
1119
1121
|
name: "donghuafangzhen",
|
|
1120
1122
|
size: "24",
|
|
1121
|
-
onClick: i[3] || (i[3] = (x) =>
|
|
1123
|
+
onClick: i[3] || (i[3] = (x) => pe("场景4"))
|
|
1122
1124
|
})
|
|
1123
1125
|
]),
|
|
1124
1126
|
u("div", fl, [
|
|
@@ -1187,7 +1189,7 @@ ${G.value.join(" ")}
|
|
|
1187
1189
|
onClick: Fe
|
|
1188
1190
|
})
|
|
1189
1191
|
]),
|
|
1190
|
-
|
|
1192
|
+
ae(u("div", hl, [
|
|
1191
1193
|
u("div", bl, [
|
|
1192
1194
|
u("span", null, he(p.value), 1),
|
|
1193
1195
|
u("span", {
|
|
@@ -1204,9 +1206,9 @@ ${G.value.join(" ")}
|
|
|
1204
1206
|
})
|
|
1205
1207
|
])
|
|
1206
1208
|
], 512), [
|
|
1207
|
-
[
|
|
1209
|
+
[se, C.value]
|
|
1208
1210
|
]),
|
|
1209
|
-
|
|
1211
|
+
ae(u("div", _l, [
|
|
1210
1212
|
u("div", wl, [
|
|
1211
1213
|
u("span", null, he(f.value), 1),
|
|
1212
1214
|
u("span", {
|
|
@@ -1231,7 +1233,7 @@ ${G.value.join(" ")}
|
|
|
1231
1233
|
f.value === "工件树" ? (Q(), ye(at, {
|
|
1232
1234
|
key: 2,
|
|
1233
1235
|
model: (x = X(W)) == null ? void 0 : x.obj,
|
|
1234
|
-
onVisibleChange: X(
|
|
1236
|
+
onVisibleChange: X(ce),
|
|
1235
1237
|
onUpdatePosition: X(F),
|
|
1236
1238
|
onUpdateRotation: X(ne)
|
|
1237
1239
|
}, null, 8, ["model", "onVisibleChange", "onUpdatePosition", "onUpdateRotation"])) : ke("", !0)
|
|
@@ -1241,9 +1243,9 @@ ${G.value.join(" ")}
|
|
|
1241
1243
|
})
|
|
1242
1244
|
])
|
|
1243
1245
|
], 512), [
|
|
1244
|
-
[
|
|
1246
|
+
[se, b.value]
|
|
1245
1247
|
]),
|
|
1246
|
-
|
|
1248
|
+
ae(u("div", kl, [
|
|
1247
1249
|
u("div", Pl, [
|
|
1248
1250
|
u("span", null, he(a.value), 1),
|
|
1249
1251
|
u("span", {
|
|
@@ -1254,16 +1256,16 @@ ${G.value.join(" ")}
|
|
|
1254
1256
|
u("div", xl, [
|
|
1255
1257
|
l(R, { height: "100%" }, {
|
|
1256
1258
|
default: M(() => [
|
|
1257
|
-
|
|
1258
|
-
[
|
|
1259
|
+
ae(l($t, { model: k.value }, null, 8, ["model"]), [
|
|
1260
|
+
[se, a.value === "关节控制"]
|
|
1259
1261
|
]),
|
|
1260
|
-
|
|
1262
|
+
ae(l(Ht, {
|
|
1261
1263
|
ref_key: "animationPanelRef",
|
|
1262
1264
|
ref: c,
|
|
1263
1265
|
model: k.value,
|
|
1264
1266
|
threeData: v.threeData
|
|
1265
1267
|
}, null, 8, ["model", "threeData"]), [
|
|
1266
|
-
[
|
|
1268
|
+
[se, a.value === "动画仿真"]
|
|
1267
1269
|
]),
|
|
1268
1270
|
Me(t.$slots, "right-panel", { rightPanelType: a.value }, void 0, !0)
|
|
1269
1271
|
]),
|
|
@@ -1271,7 +1273,7 @@ ${G.value.join(" ")}
|
|
|
1271
1273
|
})
|
|
1272
1274
|
])
|
|
1273
1275
|
], 512), [
|
|
1274
|
-
[
|
|
1276
|
+
[se, w.value]
|
|
1275
1277
|
]),
|
|
1276
1278
|
_.value ? (Q(), Ve("div", Rl, [
|
|
1277
1279
|
i[10] || (i[10] = u("div", { class: "loading-spinner" }, null, -1)),
|
|
@@ -1284,7 +1286,7 @@ ${G.value.join(" ")}
|
|
|
1284
1286
|
]);
|
|
1285
1287
|
};
|
|
1286
1288
|
}
|
|
1287
|
-
}), Jl = /* @__PURE__ */ Ue(Ml, [["__scopeId", "data-v-
|
|
1289
|
+
}), Jl = /* @__PURE__ */ Ue(Ml, [["__scopeId", "data-v-e9652875"]]);
|
|
1288
1290
|
export {
|
|
1289
1291
|
Jl as default
|
|
1290
1292
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as ge, ref as r, computed as k, watch as X, onUnmounted as De, resolveComponent as G, createElementBlock as x, openBlock as g, createElementVNode as n, createCommentVNode as U, createVNode as s, toDisplayString as L, Fragment as Be, renderList as Je, withCtx as le, shallowRef as te, onMounted as Me, nextTick as me, onBeforeUnmount as Ee, withDirectives as I, vShow as W, unref as z, renderSlot as ve, createBlock as de } from "vue";
|
|
2
|
-
import { s as pe } from "./threeViewerHost-
|
|
3
|
-
import { u as Ge, a as He, b as Ie, T as y, C as We } from "./iconfont-
|
|
4
|
-
import { U as Xe, u as Ye, a as Ze, W as qe } from "./workpieceTreePanel-
|
|
2
|
+
import { s as pe } from "./threeViewerHost-RF4w3At4.js";
|
|
3
|
+
import { u as Ge, a as He, b as Ie, T as y, C as We } from "./iconfont-CuxO25jz.js";
|
|
4
|
+
import { U as Xe, u as Ye, a as Ze, W as qe } from "./workpieceTreePanel-v_yqJYFX.js";
|
|
5
5
|
import { c as Ke } from "./index-DkDX7FWy.js";
|
|
6
|
-
import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-
|
|
6
|
+
import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-CZUHaA2-.js";
|
|
7
7
|
import { _ as fe } from "./index.vue_vue_type_script_setup_true_lang-BqS9V6jf.js";
|
|
8
|
-
import { g as Qe, b as et, U as tt, J as lt, d as nt } from "./urdfTree-
|
|
8
|
+
import { g as Qe, b as et, U as tt, J as lt, d as nt } from "./urdfTree-B8y6pXfi.js";
|
|
9
9
|
import { E as _ } from "./request-DzUsnuWu.js";
|
|
10
10
|
import { _ as he } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
11
|
-
import { i as at } from "./animationData-
|
|
12
|
-
import { O as ot } from "./MTLLoader-
|
|
11
|
+
import { i as at } from "./animationData-CVVm5rD_.js";
|
|
12
|
+
import { O as ot } from "./MTLLoader-DeqHL-AI.js";
|
|
13
13
|
const st = { class: "panel-content" }, it = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "animation-controls"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ce, computed as U, ref as k, resolveComponent as E, createElementBlock as ee, openBlock as X, createElementVNode as d, createVNode as p, withCtx as I, toDisplayString as
|
|
2
|
-
import { u as
|
|
3
|
-
import { C as O, h as Oe,
|
|
1
|
+
import { defineComponent as ce, computed as U, ref as k, resolveComponent as E, createElementBlock as ee, openBlock as X, createElementVNode as d, createVNode as p, withCtx as I, toDisplayString as j, shallowRef as Z, watch as Ee, onMounted as Xe, onBeforeUnmount as je, withDirectives as D, createCommentVNode as S, unref as A, renderSlot as ie, createBlock as le, vShow as N, nextTick as Ye } from "vue";
|
|
2
|
+
import { u as Ze, a as De, b as Ne, T as w, C as Be, f as Ie, d as re } from "./iconfont-CuxO25jz.js";
|
|
3
|
+
import { C as O, h as Oe, bc as Ge, t as qe, V as te, u as ue, Z as fe, a3 as Ke, w as We, a2 as Je, $ as Re, a0 as He, o as Qe, bd as Se } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-CZUHaA2-.js";
|
|
4
4
|
import "./index-DkDX7FWy.js";
|
|
5
|
-
import { U as et, J as tt } from "./urdfTree-
|
|
5
|
+
import { U as et, J as tt } from "./urdfTree-B8y6pXfi.js";
|
|
6
6
|
import { E as B } from "./request-DzUsnuWu.js";
|
|
7
7
|
import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
8
8
|
import { i as nt } from "./isString-DnHHBaRc.js";
|
|
@@ -122,7 +122,7 @@ const it = { class: "panel-content" }, lt = { class: "animation-controls" }, rt
|
|
|
122
122
|
]),
|
|
123
123
|
d("div", ct, [
|
|
124
124
|
y[2] || (y[2] = d("label", null, "当前帧:", -1)),
|
|
125
|
-
d("span", ut,
|
|
125
|
+
d("span", ut, j(s.value + 1) + " / " + j(l.value.length), 1)
|
|
126
126
|
]),
|
|
127
127
|
d("div", ft, [
|
|
128
128
|
y[3] || (y[3] = d("label", null, "动画进度:", -1)),
|
|
@@ -323,7 +323,7 @@ function Xt(e) {
|
|
|
323
323
|
}), l = new He(n, a);
|
|
324
324
|
return a.needsUpdate = !0, l;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
326
|
+
function jt(e, n) {
|
|
327
327
|
if (!n)
|
|
328
328
|
return;
|
|
329
329
|
const { scene: o, camera: a, renderer: l, controls: t } = e();
|
|
@@ -336,7 +336,7 @@ function Yt(e, n) {
|
|
|
336
336
|
const r = Et(n, a, l, 0.1, 50);
|
|
337
337
|
return s.material.size = r, s;
|
|
338
338
|
}
|
|
339
|
-
const
|
|
339
|
+
const Yt = { class: "obj-viewer-container" }, Zt = { class: "buttonGroup-topLeft" }, Dt = { class: "buttonGroup-left" }, Nt = { class: "buttonGroup-right" }, Bt = { class: "buttonGroup-bottom" }, It = { class: "left-panel" }, Ot = { class: "panel-header" }, Gt = { class: "panel-body" }, qt = { class: "right-panel" }, Kt = { class: "panel-header" }, Wt = { class: "panel-body" }, Jt = {
|
|
340
340
|
key: 0,
|
|
341
341
|
class: "loading-overlay"
|
|
342
342
|
}, Rt = /* @__PURE__ */ ce({
|
|
@@ -347,7 +347,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
347
347
|
trackFileType: {}
|
|
348
348
|
},
|
|
349
349
|
setup(e) {
|
|
350
|
-
const n = e, o = k(null), a = k(!1), l = k(""), t = k(), s = k(!1), r = k(""), f = k(!1), c = k(""), m =
|
|
350
|
+
const n = e, o = k(null), a = k(!1), l = k(""), t = k(), s = k(!1), r = k(""), f = k(!1), c = k(""), m = Z(null), v = Z(null), {
|
|
351
351
|
currentModels: C,
|
|
352
352
|
resetView: P,
|
|
353
353
|
initThreeJS: _,
|
|
@@ -360,7 +360,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
360
360
|
toggleAxesVisibility: K,
|
|
361
361
|
zoomIn: W,
|
|
362
362
|
zoomOut: J
|
|
363
|
-
} =
|
|
363
|
+
} = Ze(o), { isAnimating: M, toggleAnimation: me, startAnimation: Ht, stopAnimation: pe } = De(h, C), { isClipping: he, activeClippingAxis: ne, toggleClipping: ge, updateClippingPlanes: ye } = Ne(h, C), Ce = () => {
|
|
364
364
|
K();
|
|
365
365
|
}, we = (i) => {
|
|
366
366
|
ne.value = i, ye();
|
|
@@ -384,7 +384,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
384
384
|
const i = n.fileBlobs || [];
|
|
385
385
|
return i == null ? void 0 : i[0];
|
|
386
386
|
});
|
|
387
|
-
let b =
|
|
387
|
+
let b = Z(), F = Z();
|
|
388
388
|
const Te = () => {
|
|
389
389
|
const { scene: i } = h();
|
|
390
390
|
b.value && i && (re(b.value, i), b.value = null);
|
|
@@ -398,7 +398,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
398
398
|
if (URL.revokeObjectURL(u), nt(V)) {
|
|
399
399
|
Q.value = await Ut(V, n.trackFileType) || [];
|
|
400
400
|
const z = Q.value;
|
|
401
|
-
ke.value && (b.value = Vt(h, z)), (be.value || _e.value || x.value) && (b.value =
|
|
401
|
+
ke.value && (b.value = Vt(h, z)), (be.value || _e.value || x.value) && (b.value = jt(h, z));
|
|
402
402
|
}
|
|
403
403
|
}, Pe = async () => {
|
|
404
404
|
var i, u;
|
|
@@ -428,32 +428,32 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
428
428
|
var i;
|
|
429
429
|
x.value && ((i = t == null ? void 0 : t.value) == null || i.backwardFrame());
|
|
430
430
|
}, $e = () => {
|
|
431
|
-
_(),
|
|
432
|
-
o.value && (
|
|
431
|
+
_(), Ye(() => {
|
|
432
|
+
o.value && (Y = new ResizeObserver(T), Y.observe(o.value));
|
|
433
433
|
});
|
|
434
434
|
const i = h();
|
|
435
435
|
v.value = i.scene, v.value && (v.value.name = "CPMPIP");
|
|
436
436
|
}, Ve = () => {
|
|
437
|
-
|
|
437
|
+
Y && Y.disconnect(), M.value && pe(), se(), L();
|
|
438
438
|
};
|
|
439
|
-
let
|
|
439
|
+
let Y = null;
|
|
440
440
|
return Xe(async () => {
|
|
441
441
|
try {
|
|
442
442
|
$e();
|
|
443
443
|
} catch (i) {
|
|
444
444
|
console.error("Three.js 初始化失败:", i), B.error("渲染引擎初始化失败!");
|
|
445
445
|
}
|
|
446
|
-
}),
|
|
446
|
+
}), je(() => {
|
|
447
447
|
Ve();
|
|
448
448
|
}), (i, u) => {
|
|
449
449
|
const V = E("el-scrollbar");
|
|
450
|
-
return X(), ee("div",
|
|
450
|
+
return X(), ee("div", Yt, [
|
|
451
451
|
d("div", {
|
|
452
452
|
ref_key: "threejsContainer",
|
|
453
453
|
ref: o,
|
|
454
454
|
class: "threejs-container"
|
|
455
455
|
}, null, 512),
|
|
456
|
-
d("div",
|
|
456
|
+
d("div", Zt, [
|
|
457
457
|
p(w, {
|
|
458
458
|
name: "viewReset",
|
|
459
459
|
size: "24",
|
|
@@ -486,7 +486,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
486
486
|
title: "显隐坐标轴"
|
|
487
487
|
}, null, 8, ["active"])
|
|
488
488
|
]),
|
|
489
|
-
d("div",
|
|
489
|
+
d("div", Dt, [
|
|
490
490
|
ie(i.$slots, "button-left", { switchRightPanel: R }, void 0, !0),
|
|
491
491
|
p(w, {
|
|
492
492
|
name: "jiegoushu",
|
|
@@ -503,7 +503,7 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
503
503
|
title: "剖面视图"
|
|
504
504
|
}, null, 8, ["active"])
|
|
505
505
|
]),
|
|
506
|
-
d("div",
|
|
506
|
+
d("div", Nt, [
|
|
507
507
|
ie(i.$slots, "button-right", { switchRightPanel: H }, void 0, !0),
|
|
508
508
|
p(w, {
|
|
509
509
|
name: "guanjiekongzhi",
|
|
@@ -550,9 +550,9 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
550
550
|
onClick: Me
|
|
551
551
|
})
|
|
552
552
|
]),
|
|
553
|
-
|
|
553
|
+
D(d("div", It, [
|
|
554
554
|
d("div", Ot, [
|
|
555
|
-
d("span", null,
|
|
555
|
+
d("span", null, j(r.value), 1),
|
|
556
556
|
d("span", {
|
|
557
557
|
class: "close",
|
|
558
558
|
onClick: u[4] || (u[4] = (z) => s.value = !1)
|
|
@@ -575,11 +575,11 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
575
575
|
})
|
|
576
576
|
])
|
|
577
577
|
], 512), [
|
|
578
|
-
[
|
|
578
|
+
[N, s.value]
|
|
579
579
|
]),
|
|
580
|
-
|
|
580
|
+
D(d("div", qt, [
|
|
581
581
|
d("div", Kt, [
|
|
582
|
-
d("span", null,
|
|
582
|
+
d("span", null, j(c.value), 1),
|
|
583
583
|
d("span", {
|
|
584
584
|
class: "close",
|
|
585
585
|
onClick: u[5] || (u[5] = (z) => f.value = !1)
|
|
@@ -588,28 +588,28 @@ const jt = { class: "obj-viewer-container" }, Dt = { class: "buttonGroup-topLeft
|
|
|
588
588
|
d("div", Wt, [
|
|
589
589
|
p(V, { height: "100%" }, {
|
|
590
590
|
default: I(() => [
|
|
591
|
-
|
|
592
|
-
[
|
|
591
|
+
D(p(tt, { model: m.value }, null, 8, ["model"]), [
|
|
592
|
+
[N, c.value === "关节控制"]
|
|
593
593
|
]),
|
|
594
|
-
|
|
594
|
+
D(p(dt, {
|
|
595
595
|
ref_key: "animationPanelRef",
|
|
596
596
|
ref: t,
|
|
597
597
|
cloud: A(b),
|
|
598
598
|
knife: A(F),
|
|
599
599
|
vectors: $.value
|
|
600
600
|
}, null, 8, ["cloud", "knife", "vectors"]), [
|
|
601
|
-
[
|
|
601
|
+
[N, c.value === "动画仿真" && x.value]
|
|
602
602
|
])
|
|
603
603
|
]),
|
|
604
604
|
_: 1
|
|
605
605
|
})
|
|
606
606
|
])
|
|
607
607
|
], 512), [
|
|
608
|
-
[
|
|
608
|
+
[N, f.value]
|
|
609
609
|
]),
|
|
610
610
|
a.value ? (X(), ee("div", Jt, [
|
|
611
611
|
u[6] || (u[6] = d("div", { class: "loading-spinner" }, null, -1)),
|
|
612
|
-
d("p", null,
|
|
612
|
+
d("p", null, j(l.value), 1)
|
|
613
613
|
])) : S("", !0)
|
|
614
614
|
]);
|
|
615
615
|
};
|