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
package/dist/ss-component.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineAsyncComponent as o } from "vue";
|
|
2
|
-
import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-
|
|
2
|
+
import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-CZUHaA2-.js";
|
|
3
3
|
import { S as k } from "./index-BHtNKL1L.js";
|
|
4
4
|
import { u as C } from "./index-DkDX7FWy.js";
|
|
5
5
|
import "./index-xqFF6xBy.js";
|
|
@@ -7,15 +7,15 @@ import "./index-xqFF6xBy.js";
|
|
|
7
7
|
import "./request-DzUsnuWu.js";
|
|
8
8
|
import u from "./ss-component2.js";
|
|
9
9
|
import { t as g, c as T, b as P } from "./index-ChNfRlIP.js";
|
|
10
|
-
const n = o(() => import("./main-
|
|
10
|
+
const n = o(() => import("./main-CK-3ac4L.js"));
|
|
11
11
|
n.install = (t) => {
|
|
12
12
|
t.component("ssComponent", n);
|
|
13
13
|
};
|
|
14
|
-
const s = o(() => import("./index-
|
|
14
|
+
const s = o(() => import("./index-djF386bV.js").then((t) => t.w));
|
|
15
15
|
s.install = (t) => {
|
|
16
16
|
t.component("ssTab", s);
|
|
17
17
|
};
|
|
18
|
-
const r = o(() => import("./index-
|
|
18
|
+
const r = o(() => import("./index-fLaMmGT7.js").then((t) => t.i));
|
|
19
19
|
r.install = (t) => {
|
|
20
20
|
t.component("ssMenu", r);
|
|
21
21
|
};
|
|
@@ -23,7 +23,7 @@ const m = o(() => import("./index-CXToCtmk.js"));
|
|
|
23
23
|
m.install = (t) => {
|
|
24
24
|
t.component("ssMenuComponent", m);
|
|
25
25
|
};
|
|
26
|
-
const i = o(() => import("./index-
|
|
26
|
+
const i = o(() => import("./index-CKWkVjdr.js"));
|
|
27
27
|
i.install = (t) => {
|
|
28
28
|
t.component("ssCanvas", i);
|
|
29
29
|
};
|
|
@@ -31,15 +31,15 @@ const c = o(() => import("./index-rlStojTL.js"));
|
|
|
31
31
|
c.install = (t) => {
|
|
32
32
|
t.component("ssFold", c);
|
|
33
33
|
};
|
|
34
|
-
const a = o(() => import("./index-
|
|
34
|
+
const a = o(() => import("./index-sDRXkpeY.js").then((t) => t.i));
|
|
35
35
|
a.install = (t) => {
|
|
36
36
|
t.component("ssAvatar", a);
|
|
37
37
|
};
|
|
38
|
-
const l = o(() => import("./threeModel-
|
|
38
|
+
const l = o(() => import("./threeModel-5jLpnZxT.js"));
|
|
39
39
|
l.install = (t) => {
|
|
40
40
|
t.component("ssThree", l);
|
|
41
41
|
};
|
|
42
|
-
const p = o(() => import("./threeViewerHost-
|
|
42
|
+
const p = o(() => import("./threeViewerHost-RF4w3At4.js").then((t) => t.t));
|
|
43
43
|
p.install = (t) => {
|
|
44
44
|
t.component("threeViewerHost", p);
|
|
45
45
|
};
|
package/dist/ss-component2.js
CHANGED
|
@@ -13,7 +13,7 @@ const a = [
|
|
|
13
13
|
{
|
|
14
14
|
path: "/",
|
|
15
15
|
name: "Model",
|
|
16
|
-
component: async () => import("./index-
|
|
16
|
+
component: async () => import("./index-C4x5BF6v.js"),
|
|
17
17
|
// component: async ()=>import('@/components/views/model/component/main.vue'),
|
|
18
18
|
// component: async ()=>import('@/components/views/canvas/index.vue'),
|
|
19
19
|
// component: async ()=>import('@/components/views/test/index.vue'),
|
|
@@ -31,17 +31,17 @@ const a = [
|
|
|
31
31
|
{
|
|
32
32
|
path: "平台管理/菜单管理",
|
|
33
33
|
name: "Menu",
|
|
34
|
-
component: async () => import("./index-
|
|
34
|
+
component: async () => import("./index-BrVAczXU.js")
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
path: "平台管理/主菜单管理",
|
|
38
38
|
name: "MainMenu",
|
|
39
|
-
component: async () => import("./index-
|
|
39
|
+
component: async () => import("./index-BGAhYPQI.js")
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
path: "系统管理/个人中心",
|
|
43
43
|
name: "PersonalCenter",
|
|
44
|
-
component: async () => import("./index-
|
|
44
|
+
component: async () => import("./index-CHKlT3mb.js")
|
|
45
45
|
},
|
|
46
46
|
// {
|
|
47
47
|
// path: '系统管理/职位管理',
|
|
@@ -66,17 +66,17 @@ const a = [
|
|
|
66
66
|
{
|
|
67
67
|
path: "系统维护/登录日志",
|
|
68
68
|
name: "LoginLog",
|
|
69
|
-
component: async () => import("./index-
|
|
69
|
+
component: async () => import("./index-DmiiVNgM.js")
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
path: "系统维护/操作日志",
|
|
73
73
|
name: "OperateLog",
|
|
74
|
-
component: async () => import("./index-
|
|
74
|
+
component: async () => import("./index-vMStskjM.js")
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
path: "角色管理",
|
|
78
78
|
name: "Role",
|
|
79
|
-
component: async () => import("./index-
|
|
79
|
+
component: async () => import("./index-BjbnnFmN.js")
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
path: "部门管理",
|
|
@@ -96,7 +96,7 @@ const a = [
|
|
|
96
96
|
{
|
|
97
97
|
path: "log",
|
|
98
98
|
name: "log",
|
|
99
|
-
component: async () => import("./index-
|
|
99
|
+
component: async () => import("./index-DZe4W71_.js")
|
|
100
100
|
}
|
|
101
101
|
// {
|
|
102
102
|
// path: 'priority',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as b, watch as Pe, createElementBlock as
|
|
2
|
-
import { V as M, B as be, S as
|
|
3
|
-
import { O as ut } from "./iconfont-
|
|
4
|
-
import {
|
|
1
|
+
import { ref as b, watch as Pe, createElementBlock as Z, openBlock as Y, createBlock as Le, computed as ie, onMounted as $e, onUnmounted as je, Fragment as Xe, renderList as Ye, createElementVNode as h, createCommentVNode as xe, toDisplayString as ae, resolveComponent as Je, createVNode as z, defineComponent as He, normalizeStyle as Fe, normalizeClass as Te, nextTick as Be, onBeforeUnmount as Ze, withDirectives as se, unref as O, withCtx as Re, isRef as he, vModelRadio as ye, vShow as we } from "vue";
|
|
2
|
+
import { V as M, B as be, S as qe, C as We, P as Ke, W as Ne, b as Qe, A as et, c as tt, M as ke, X as nt, G as at, e as Me, f as ot, h as Se, i as st, D as ze, H as lt, j as Ve, k as Oe, l as Ue, m as _e, E as Ae, n as de, o as it, p as rt, T as ct } from "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-CZUHaA2-.js";
|
|
3
|
+
import { O as ut } from "./iconfont-CuxO25jz.js";
|
|
4
|
+
import { Y as dt, Z as pt } from "./index-Bz7cdL2l.js";
|
|
5
5
|
import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
import { c as Ge } from "./index-DkDX7FWy.js";
|
|
7
7
|
import { E as Ie } from "./request-DzUsnuWu.js";
|
|
@@ -11,7 +11,7 @@ function mt(E) {
|
|
|
11
11
|
let B = 0;
|
|
12
12
|
const D = b([]), l = b(new M()), C = b(new M()), g = () => {
|
|
13
13
|
if (!E.value) return;
|
|
14
|
-
f = new
|
|
14
|
+
f = new qe(), f.background = new We(15790320);
|
|
15
15
|
const d = E.value;
|
|
16
16
|
r = new Ke(75, d.clientWidth / d.clientHeight, 0.1, 1e4), r.position.set(0, -8, 4), r.up.set(0, 0, 1), r.lookAt(0, 0, 0), c = new Ne({
|
|
17
17
|
antialias: !0,
|
|
@@ -220,15 +220,15 @@ function ft(E, f) {
|
|
|
220
220
|
if (!e || !u) return;
|
|
221
221
|
w.copy(e.position), k.copy(u.target);
|
|
222
222
|
const p = new be();
|
|
223
|
-
f.value.forEach((
|
|
224
|
-
p.expandByObject(
|
|
223
|
+
f.value.forEach((q) => {
|
|
224
|
+
p.expandByObject(q);
|
|
225
225
|
});
|
|
226
226
|
const _ = p.getSize(new M());
|
|
227
227
|
i = p.getCenter(new M()), A = Math.max(_.x, _.y, _.z) * 1.2;
|
|
228
228
|
const U = new M(i.x + A * 1.2, i.y, i.z);
|
|
229
229
|
u.enabled = !1;
|
|
230
230
|
const V = e.position.clone(), J = 1e3, G = Date.now(), j = () => {
|
|
231
|
-
const
|
|
231
|
+
const q = Date.now() - G, ee = Math.min(q / J, 1), d = F(ee);
|
|
232
232
|
e.position.lerpVectors(V, U, d), e.lookAt(i), u.target.copy(i), ee < 1 ? requestAnimationFrame(j) : (r.value = !0, c = null, D());
|
|
233
233
|
};
|
|
234
234
|
j();
|
|
@@ -246,8 +246,8 @@ function ft(E, f) {
|
|
|
246
246
|
if (!e || !u) return;
|
|
247
247
|
u.enabled = !0;
|
|
248
248
|
const p = e.position.clone(), _ = u.target.clone(), U = 1500, V = Date.now(), J = () => {
|
|
249
|
-
const G = Date.now() - V, j = Math.min(G / U, 1),
|
|
250
|
-
e.position.lerpVectors(p, w,
|
|
249
|
+
const G = Date.now() - V, j = Math.min(G / U, 1), q = F(j);
|
|
250
|
+
e.position.lerpVectors(p, w, q), u.target.lerpVectors(_, k, q), j < 1 && requestAnimationFrame(J);
|
|
251
251
|
};
|
|
252
252
|
J();
|
|
253
253
|
} else
|
|
@@ -349,8 +349,8 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
349
349
|
{ deep: !0, immediate: !0 }
|
|
350
350
|
), (c, v) => {
|
|
351
351
|
var w, k, i;
|
|
352
|
-
return
|
|
353
|
-
(
|
|
352
|
+
return Y(), Z("div", gt, [
|
|
353
|
+
(Y(), Le(dt, {
|
|
354
354
|
itemData: (w = r.value) == null ? void 0 : w.compData,
|
|
355
355
|
key: (k = r.value) == null ? void 0 : k.id,
|
|
356
356
|
index: (i = r.value) == null ? void 0 : i.id,
|
|
@@ -456,18 +456,18 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
456
456
|
};
|
|
457
457
|
if (!s && !o) return m;
|
|
458
458
|
if (m.push(y.pos.clone()), x !== 0) {
|
|
459
|
-
const
|
|
460
|
-
y.localX.applyMatrix4(
|
|
459
|
+
const H = new de().makeRotationAxis(y.localY, g(x));
|
|
460
|
+
y.localX.applyMatrix4(H), y.localZ.applyMatrix4(H);
|
|
461
461
|
}
|
|
462
462
|
if (s > 0 && (y.pos.add(y.localY.clone().multiplyScalar(s * pe)), m.push(y.pos.clone())), o > 0 && t > 0) {
|
|
463
|
-
const
|
|
463
|
+
const H = g(o), $ = t * pe, ne = y.pos.clone().add(y.localX.clone().multiplyScalar(-$)), I = Math.max(16, Math.ceil(o / 5));
|
|
464
464
|
for (let P = 1; P <= I; P++) {
|
|
465
|
-
const Q =
|
|
465
|
+
const Q = H * P / I, oe = new de().makeRotationAxis(y.localZ, Q), ve = y.localX.clone().multiplyScalar($).applyMatrix4(oe), ge = ne.clone().add(ve);
|
|
466
466
|
m.push(ge);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
return m;
|
|
470
|
-
},
|
|
470
|
+
}, q = (n, m = 0) => {
|
|
471
471
|
let s = p.slice(0, n + 1);
|
|
472
472
|
const x = p[n + 1];
|
|
473
473
|
if (x && m > 0) {
|
|
@@ -482,10 +482,10 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
482
482
|
}
|
|
483
483
|
const o = G(s), t = Math.max(0, A.value - o), y = [];
|
|
484
484
|
y.push(new M(0, 0, 0));
|
|
485
|
-
const
|
|
486
|
-
t > 0 && y.push(
|
|
485
|
+
const H = new M(0, t * pe, 0);
|
|
486
|
+
t > 0 && y.push(H);
|
|
487
487
|
let $ = {
|
|
488
|
-
pos:
|
|
488
|
+
pos: H.clone(),
|
|
489
489
|
localY: new M(0, 1, 0),
|
|
490
490
|
localX: new M(1, 0, 0),
|
|
491
491
|
localZ: new M(0, 0, 1)
|
|
@@ -525,7 +525,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
525
525
|
n && (Object.keys(n).forEach((x) => {
|
|
526
526
|
const o = n[x], t = c.value.find((y) => y.name === x);
|
|
527
527
|
t && (t.currentValue = o, r.model && r.model.setJointValue ? r.model.setJointValue(x, o) : t.urdfJoint && t.urdfJoint.setJointValue(o));
|
|
528
|
-
}),
|
|
528
|
+
}), q(m, s));
|
|
529
529
|
}, d = (n, m, s) => n + (m - n) * s, a = (n, m, s) => {
|
|
530
530
|
if (!n || !m) return n || m;
|
|
531
531
|
const x = {};
|
|
@@ -566,7 +566,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
566
566
|
resetAll: () => {
|
|
567
567
|
W(), D.value = 0, l.value = 0, c.value.forEach((n) => {
|
|
568
568
|
(n.type === "revolute" || n.type === "prismatic") && J(n.name, 0);
|
|
569
|
-
}),
|
|
569
|
+
}), q(-1, 0);
|
|
570
570
|
},
|
|
571
571
|
fastForward: () => {
|
|
572
572
|
e.value < 4 && (e.value = Math.min(4, e.value * 2));
|
|
@@ -597,11 +597,11 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
597
597
|
fe();
|
|
598
598
|
}), je(() => {
|
|
599
599
|
Ce(), W();
|
|
600
|
-
}), (n, m) => (
|
|
601
|
-
c.value.length > 0 ? (
|
|
602
|
-
(
|
|
600
|
+
}), (n, m) => (Y(), Z("div", wt, [
|
|
601
|
+
c.value.length > 0 ? (Y(), Z("div", xt, [
|
|
602
|
+
(Y(!0), Z(Xe, null, Ye(c.value, (s) => {
|
|
603
603
|
var x, o, t, y;
|
|
604
|
-
return
|
|
604
|
+
return Y(), Z("div", {
|
|
605
605
|
key: s.name,
|
|
606
606
|
class: "joint-item"
|
|
607
607
|
}, [
|
|
@@ -612,7 +612,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
612
612
|
]),
|
|
613
613
|
h("span", kt, ae(s.type), 1)
|
|
614
614
|
]),
|
|
615
|
-
s.type === "revolute" || s.type === "prismatic" ? (
|
|
615
|
+
s.type === "revolute" || s.type === "prismatic" ? (Y(), Z("div", zt, [
|
|
616
616
|
h("div", _t, [
|
|
617
617
|
h("input", {
|
|
618
618
|
type: "range",
|
|
@@ -620,7 +620,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
620
620
|
max: ((y = s.limit) == null ? void 0 : y.upper) ?? (s.type === "revolute" ? Math.PI : 1),
|
|
621
621
|
step: 0.01,
|
|
622
622
|
value: s.currentValue,
|
|
623
|
-
onInput: (
|
|
623
|
+
onInput: (H) => J(s.name, H.target.value),
|
|
624
624
|
class: "joint-slider",
|
|
625
625
|
disabled: F.value && !B.value
|
|
626
626
|
}, null, 40, At)
|
|
@@ -632,7 +632,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
632
632
|
])) : xe("", !0)
|
|
633
633
|
]);
|
|
634
634
|
}), 128))
|
|
635
|
-
])) : (
|
|
635
|
+
])) : (Y(), Z("div", Ft, m[0] || (m[0] = [
|
|
636
636
|
h("p", null, "未检测到可控制的关节", -1)
|
|
637
637
|
])))
|
|
638
638
|
]));
|
|
@@ -713,7 +713,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
713
713
|
{ immediate: !0 }
|
|
714
714
|
), (l, C) => {
|
|
715
715
|
const g = Je("el-tree");
|
|
716
|
-
return
|
|
716
|
+
return Y(), Z("div", Vt, [
|
|
717
717
|
z(g, {
|
|
718
718
|
data: v.value,
|
|
719
719
|
props: w,
|
|
@@ -724,7 +724,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
724
724
|
]);
|
|
725
725
|
};
|
|
726
726
|
}
|
|
727
|
-
}, $t = /* @__PURE__ */ me(Lt, [["__scopeId", "data-v-290ff4e1"]]), Jt = ["xlink:href"], Ot = /* @__PURE__ */
|
|
727
|
+
}, $t = /* @__PURE__ */ me(Lt, [["__scopeId", "data-v-290ff4e1"]]), Jt = ["xlink:href"], Ot = /* @__PURE__ */ He({
|
|
728
728
|
__name: "svgIcon",
|
|
729
729
|
props: {
|
|
730
730
|
backgroundColor: { default: "#f0f0f0" },
|
|
@@ -747,11 +747,11 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
747
747
|
height: k
|
|
748
748
|
};
|
|
749
749
|
});
|
|
750
|
-
return (w, k) => (
|
|
750
|
+
return (w, k) => (Y(), Z("div", {
|
|
751
751
|
class: Te(["container", { active: w.active }]),
|
|
752
752
|
style: Fe(r.value)
|
|
753
753
|
}, [
|
|
754
|
-
(
|
|
754
|
+
(Y(), Z("svg", {
|
|
755
755
|
class: Te(["svg-icon", [w.$attrs.class, w.spin && "svg-icon-spin"]]),
|
|
756
756
|
style: Fe(v.value),
|
|
757
757
|
"aria-hidden": "true"
|
|
@@ -760,7 +760,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
760
760
|
], 6))
|
|
761
761
|
], 6));
|
|
762
762
|
}
|
|
763
|
-
}), T = /* @__PURE__ */ me(Ot, [["__scopeId", "data-v-3150a90b"]]), Ut = { class: "obj-viewer-container" }, Gt = { class: "buttonGroup-top" }, jt = { class: "buttonGroup-topLeft" }, Xt = { class: "buttonGroup-left" },
|
|
763
|
+
}), T = /* @__PURE__ */ me(Ot, [["__scopeId", "data-v-3150a90b"]]), Ut = { class: "obj-viewer-container" }, Gt = { class: "buttonGroup-top" }, jt = { class: "buttonGroup-topLeft" }, Xt = { class: "buttonGroup-left" }, Yt = { class: "buttonGroup-right" }, Ht = { class: "buttonGroup-bottom" }, Zt = { class: "left-panel" }, qt = { class: "panel-header" }, Wt = {
|
|
764
764
|
key: 1,
|
|
765
765
|
class: "clipping-content"
|
|
766
766
|
}, Kt = { class: "radio-group" }, Nt = { class: "radio-label" }, Qt = { class: "radio-label" }, en = { class: "radio-label" }, tn = { class: "radio-label" }, nn = { class: "right-panel" }, an = { class: "panel-header" }, on = {
|
|
@@ -791,7 +791,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
791
791
|
getThreeJSObjects: V,
|
|
792
792
|
clearAllModels: J,
|
|
793
793
|
cleanup: G
|
|
794
|
-
} = mt(k), { isAnimating: j, toggleAnimation:
|
|
794
|
+
} = mt(k), { isAnimating: j, toggleAnimation: q, stopAnimation: ee } = ft(V, g), { isClipping: d, activeClippingAxis: a, toggleClipping: S, updateClippingPlanes: R } = vt(
|
|
795
795
|
V,
|
|
796
796
|
g
|
|
797
797
|
), { addModelsFromUrls: X, loadModelByDefaultPath: W, urdfModel: K, modelBoundingBoxes: N } = pt(
|
|
@@ -806,9 +806,9 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
806
806
|
const { camera: o, controls: t } = V();
|
|
807
807
|
if (!o || !t) return;
|
|
808
808
|
t.enabled = !0;
|
|
809
|
-
const y = (Q) => Q < 0.5 ? 4 * Q * Q * Q : 1 - Math.pow(-2 * Q + 2, 3) / 2,
|
|
809
|
+
const y = (Q) => Q < 0.5 ? 4 * Q * Q * Q : 1 - Math.pow(-2 * Q + 2, 3) / 2, H = o.position.clone(), $ = t.target.clone(), ne = 1500, I = Date.now(), P = () => {
|
|
810
810
|
const Q = Date.now() - I, oe = Math.min(Q / ne, 1), ce = y(oe);
|
|
811
|
-
o.position.lerpVectors(
|
|
811
|
+
o.position.lerpVectors(H, e.value, ce), t.target.lerpVectors($, u.value, ce), oe < 1 ? requestAnimationFrame(P) : L.value = !1;
|
|
812
812
|
};
|
|
813
813
|
P();
|
|
814
814
|
}, re = async () => w ? Promise.resolve() : new Promise((o) => {
|
|
@@ -841,15 +841,15 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
841
841
|
} catch (o) {
|
|
842
842
|
console.error("Three.js初始化失败:", o);
|
|
843
843
|
}
|
|
844
|
-
}),
|
|
844
|
+
}), Ze(() => {
|
|
845
845
|
w = !1, B.value = "", l.value = "", window.removeEventListener("resize", _), j.value && ee(), G();
|
|
846
846
|
}), f({
|
|
847
847
|
addModelsFromUrls: Ce,
|
|
848
848
|
loadModelByDefaultPath: n
|
|
849
849
|
}), (o, t) => {
|
|
850
|
-
var
|
|
850
|
+
var H, $, ne, I;
|
|
851
851
|
const y = Je("el-scrollbar");
|
|
852
|
-
return
|
|
852
|
+
return Y(), Z("div", Ut, [
|
|
853
853
|
h("div", {
|
|
854
854
|
ref_key: "threejsContainer",
|
|
855
855
|
ref: k,
|
|
@@ -897,7 +897,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
897
897
|
z(T, {
|
|
898
898
|
name: "lookAround",
|
|
899
899
|
size: "24",
|
|
900
|
-
onClick: O(
|
|
900
|
+
onClick: O(q),
|
|
901
901
|
title: O(j) ? "停止动画" : "动画视图"
|
|
902
902
|
}, null, 8, ["onClick", "title"])
|
|
903
903
|
]),
|
|
@@ -927,7 +927,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
927
927
|
onClick: t[3] || (t[3] = (P) => m("场景4"))
|
|
928
928
|
})
|
|
929
929
|
]),
|
|
930
|
-
h("div",
|
|
930
|
+
h("div", Yt, [
|
|
931
931
|
z(T, {
|
|
932
932
|
name: "donghuafangzhen",
|
|
933
933
|
size: "24"
|
|
@@ -959,13 +959,13 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
959
959
|
size: "24"
|
|
960
960
|
})
|
|
961
961
|
]),
|
|
962
|
-
h("div",
|
|
962
|
+
h("div", Ht, [
|
|
963
963
|
z(T, {
|
|
964
964
|
name: "kuaitui",
|
|
965
965
|
size: "24",
|
|
966
966
|
backgroundColor: "#ffffff",
|
|
967
967
|
title: "快退",
|
|
968
|
-
onClick: (
|
|
968
|
+
onClick: (H = C.value) == null ? void 0 : H.fastBackward
|
|
969
969
|
}, null, 8, ["onClick"]),
|
|
970
970
|
z(T, {
|
|
971
971
|
name: "bofang",
|
|
@@ -996,8 +996,8 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
996
996
|
onClick: (I = C.value) == null ? void 0 : I.resetAll
|
|
997
997
|
}, null, 8, ["onClick"])
|
|
998
998
|
]),
|
|
999
|
-
se(h("div",
|
|
1000
|
-
h("div",
|
|
999
|
+
se(h("div", Zt, [
|
|
1000
|
+
h("div", qt, [
|
|
1001
1001
|
h("span", null, ae(B.value), 1),
|
|
1002
1002
|
h("span", {
|
|
1003
1003
|
class: "close",
|
|
@@ -1006,11 +1006,11 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
1006
1006
|
]),
|
|
1007
1007
|
z(y, { "max-height": "650px" }, {
|
|
1008
1008
|
default: Re(() => [
|
|
1009
|
-
B.value === "场景树" ? (
|
|
1009
|
+
B.value === "场景树" ? (Y(), Le($t, {
|
|
1010
1010
|
key: 0,
|
|
1011
1011
|
model: O(K)
|
|
1012
1012
|
}, null, 8, ["model"])) : xe("", !0),
|
|
1013
|
-
B.value === "剖面视图" ? (
|
|
1013
|
+
B.value === "剖面视图" ? (Y(), Z("div", Wt, [
|
|
1014
1014
|
h("div", Kt, [
|
|
1015
1015
|
h("label", Nt, [
|
|
1016
1016
|
se(h("input", {
|
|
@@ -1096,7 +1096,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
1096
1096
|
], 512), [
|
|
1097
1097
|
[we, D.value]
|
|
1098
1098
|
]),
|
|
1099
|
-
i.value ? (
|
|
1099
|
+
i.value ? (Y(), Z("div", on, [
|
|
1100
1100
|
t[20] || (t[20] = h("div", { class: "loading-spinner" }, null, -1)),
|
|
1101
1101
|
h("p", null, ae(A.value), 1)
|
|
1102
1102
|
])) : xe("", !0)
|