ss-component-new 1.3.253 → 1.3.255
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-DhkbjDn5.cjs → MTLLoader-BbkyASan.cjs} +1 -1
- package/dist/{MTLLoader-kSybMwCv.js → MTLLoader-CxB65QQq.js} +1 -1
- package/dist/{OrbitControls-XEy6yLM5.cjs → OrbitControls-Bfvb5pv-.cjs} +1 -1
- package/dist/{OrbitControls-DWkGT_jN.js → OrbitControls-CgDI9Dzj.js} +1 -1
- package/dist/{URDFLoader-DWfsFwAW.js → URDFLoader-B18rFuGQ.js} +2 -2
- package/dist/{URDFLoader-DhIlh9SZ.cjs → URDFLoader-BqTfjAvX.cjs} +1 -1
- package/dist/{animationData-EX8ALJ90.js → animationData-BeC7Ksan.js} +3 -3
- package/dist/{animationData-CNTkCldk.cjs → animationData-gmN8vwXr.cjs} +1 -1
- package/dist/{array-DK9t-RZ5.cjs → array-B3bl5bn0.cjs} +1 -1
- package/dist/{array-BDy1Ncle.js → array-B_7zpz6-.js} +49 -49
- package/dist/{iconfont-D-Fv-qGO.js → iconfont-BDyitR5V.js} +2 -2
- package/dist/{iconfont-DxOyAp3D.cjs → iconfont-BFTB_6By.cjs} +1 -1
- package/dist/{index-2M-IP1bA.cjs → index-2gZmwL3z.cjs} +1 -1
- package/dist/{index-COYH6Dsm.js → index-B-jXswxK.js} +6 -6
- package/dist/{index-DGVfotFX.cjs → index-B6zxXi7b.cjs} +1 -1
- package/dist/{index-DcmpIuyR.cjs → index-B74OQdfz.cjs} +1 -1
- package/dist/{index-Dt2q9_xX.cjs → index-B91fpH7E.cjs} +1 -1
- package/dist/{index-Coq7X7y8.cjs → index-BApaBsV6.cjs} +1 -1
- package/dist/index-BH1QeTrv.cjs +1 -0
- package/dist/{index-kylznSf-.js → index-BH9-Hsyp.js} +2 -2
- package/dist/{index-CpxOzwA-.cjs → index-BJH237uR.cjs} +1 -1
- package/dist/{index-C1Dc_mjt.cjs → index-BLvDoVkw.cjs} +1 -1
- package/dist/{index-BeRCQCdi.js → index-BRMBKwzE.js} +3 -3
- package/dist/{index-3sGayDdt.cjs → index-BRlrWa15.cjs} +1 -1
- package/dist/{index-DdFWw0IN.js → index-BXhJyiwp.js} +8 -8
- package/dist/{index-C8p1jD8G.cjs → index-Bnmzd5N2.cjs} +1 -1
- package/dist/{index-DBb0okvF.js → index-ByM9ae-R.js} +4 -4
- package/dist/{index-BYEED-kW.js → index-Bzl8VR0c.js} +1 -1
- package/dist/{index-BM2WGfYi.js → index-C39FYBsm.js} +1 -1
- package/dist/{index-LncjUMsU.cjs → index-C3JTaW7V.cjs} +1 -1
- package/dist/{index-D2Njli4E.js → index-C3m4WIgZ.js} +2 -2
- package/dist/index-C5C5PAT9.cjs +25 -0
- package/dist/{index-nwtQ-O1L.js → index-C6CIqdD6.js} +1 -1
- package/dist/{index-DnvhrR1b.js → index-C7-7DQ8H.js} +2 -2
- package/dist/{index-DcyVuH_R.js → index-CJzLKi9Z.js} +487 -500
- package/dist/{index-CSj2fJ4e.cjs → index-CVHrgtSc.cjs} +1 -1
- package/dist/{index-DcCZWQJ_.cjs → index-CaSVfO-G.cjs} +1 -1
- package/dist/{index-Be8WkE9-.cjs → index-CdCCxGXJ.cjs} +1 -1
- package/dist/{index-BDZtQ4N8.cjs → index-Cie1OJYf.cjs} +1 -1
- package/dist/{index-DGYepoGt.cjs → index-CnC7rI16.cjs} +1 -1
- package/dist/{index-BJGOMZS3.js → index-CnsAVNcF.js} +8 -8
- package/dist/{index-GUB8vyLB.cjs → index-CpHrJbzU.cjs} +12 -12
- package/dist/{index-BnVCc6o9.js → index-CymLx2yV.js} +2 -2
- package/dist/{index-CmTRhztd.cjs → index-CzFGWnnh.cjs} +1 -1
- package/dist/{index-89JD0Pir.cjs → index-D2E3Xa62.cjs} +1 -1
- package/dist/{index-CrIGzoIr.js → index-D5xR-9jl.js} +1 -1
- package/dist/{index-CMPrUwf8.js → index-D653Ji8G.js} +5 -5
- package/dist/{index-DMMoAxR-.js → index-D6tHtGNW.js} +3 -3
- package/dist/{index-Cj1LFMSA.cjs → index-D9pE21Gn.cjs} +1 -1
- package/dist/{index-C5bjM7FA.cjs → index-DBANew_v.cjs} +1 -1
- package/dist/{index-CLvFKdVq.js → index-DEUR6Zpv.js} +2081 -2169
- package/dist/{index-le2Rca0l.cjs → index-DGmrINxj.cjs} +1 -1
- package/dist/{index-2lGKiZFJ.js → index-DHXgFlyQ.js} +1 -1
- package/dist/{index-DW_nJVg2.cjs → index-DI5_eNwC.cjs} +1 -1
- package/dist/{index-BEapybFg.js → index-DJ_OL_C0.js} +46 -46
- package/dist/{index-CyQpi2tP.js → index-DTr9CURw.js} +4786 -4262
- package/dist/{index-CIMZWqaV.cjs → index-D_8L21gF.cjs} +1 -1
- package/dist/{index-D4fO0WEV.js → index-DgUG27vK.js} +1 -1
- package/dist/{index-OFkIV22_.js → index-DjdKTqAw.js} +8 -8
- package/dist/{index-CpVaoLky.js → index-JXxkyOQY.js} +3965 -3935
- package/dist/{index-xqHfzzQD.cjs → index-LhirSlbf.cjs} +1 -1
- package/dist/{index-DUtmk1bj.cjs → index-OAw89GlW.cjs} +1 -1
- package/dist/{index-B3TCH363.cjs → index-TlpsYQOO.cjs} +7 -6
- package/dist/{index-CNwliXjU.js → index-p1BJpeCx.js} +5 -5
- package/dist/{index-CA8t9-gv.js → index-qgYEDwXG.js} +2 -2
- package/dist/{index-BGbxImVv.js → index-vd4vRJW2.js} +13 -13
- package/dist/{index-CkLgyT6u.cjs → index-wKWv56Bw.cjs} +1 -1
- package/dist/{index-Bfi1UoGP.js → index-yIdddQuP.js} +2 -2
- package/dist/{index-XFkwHh-P.js → index-yQLmOtsY.js} +2 -2
- package/dist/{index-BGwuI_x4.js → index-zrTuHtuS.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-CRAl9Y7G.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BDAZDHvN.cjs} +68 -68
- package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-ucfC0PVu.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-tLv4FsgZ.js} +2486 -2481
- package/dist/{main-C8097bU2.cjs → main-BnxMggPl.cjs} +1 -1
- package/dist/{main-DbTUPiOc.js → main-DDaIzcjA.js} +4 -4
- package/dist/menuIndex-CD_6J90j.cjs +1 -0
- package/dist/menuIndex-dHBsUkqd.js +83 -0
- package/dist/obj/model.mtl +42 -0
- package/dist/obj/model.obj +26110 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +2 -2
- package/dist/ss-component.js +11 -11
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +13 -13
- package/dist/{threeModel-De-7T9uY.cjs → threeModel-BN6c75D5.cjs} +1 -1
- package/dist/{threeModel-BJchxIwW.js → threeModel-CDIFaejZ.js} +76 -76
- package/dist/{threePreview-DvYgRY2j.js → threePreview-BtIIDlh-.js} +5 -5
- package/dist/{threePreview-JLq5yZic.cjs → threePreview-DwWlg7lI.cjs} +1 -1
- package/dist/{threeSceneView-CygIbwt0.cjs → threeSceneView-C-yzvZdv.cjs} +1 -1
- package/dist/{threeSceneView-CUJzhEK6.js → threeSceneView-CvuMlo8L.js} +11 -11
- package/dist/{threeSceneViewForCPMPIP-DW7gUluU.cjs → threeSceneViewForCPMPIP-BvcImuS8.cjs} +1 -1
- package/dist/{threeSceneViewForCPMPIP-FGl_ZFFr.js → threeSceneViewForCPMPIP-DhZWA7GU.js} +9 -9
- package/dist/{threeTrackPathView-CJeLq_TJ.cjs → threeTrackPathView-DTXw71Wd.cjs} +1 -1
- package/dist/{threeTrackPathView-COd-EfJg.js → threeTrackPathView-DX1p8Ie-.js} +4 -4
- package/dist/{threeViewerHost-UYIlXdwN.js → threeViewerHost-C7qflIpN.js} +3 -3
- package/dist/{threeViewerHost-NEd9wdRM.cjs → threeViewerHost-CBGXmZgT.cjs} +1 -1
- package/dist/{urdfTree-D_szdiKY.cjs → urdfTree-CN3JKSRs.cjs} +1 -1
- package/dist/{urdfTree-xl8HRmIY.js → urdfTree-CR3g-bil.js} +1 -1
- package/dist/{workpieceTreePanel-Cpiuo7hc.js → workpieceTreePanel-CmQM28rE.js} +4 -4
- package/dist/{workpieceTreePanel-CTJjkLo9.cjs → workpieceTreePanel-DBHiE5Se.cjs} +1 -1
- package/package.json +1 -1
- package/public/obj/model.mtl +42 -0
- package/public/obj/model.obj +26110 -0
- package/dist/index-Blu30Md_.cjs +0 -25
- package/dist/index-ltYEl6x9.cjs +0 -1
- package/dist/menuIndex-COeE6K1p.cjs +0 -1
- package/dist/menuIndex-OsQ53sC9.js +0 -55
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as b, watch as Pe, createElementBlock as q, openBlock as
|
|
2
|
-
import { V as M, B as be, S as Ze, C as We, P as Ke, W as Ne, d as Qe, A as et, e as tt, M as
|
|
3
|
-
import { O as ut } from "./OrbitControls-
|
|
4
|
-
import {
|
|
1
|
+
import { ref as b, watch as Pe, createElementBlock as q, 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 Ee, normalizeClass as Fe, nextTick as Be, onBeforeUnmount as qe, withDirectives as se, unref as O, withCtx as Te, isRef as he, vModelRadio as ye, vShow as we } from "vue";
|
|
2
|
+
import { V as M, B as be, S as Ze, C as We, P as Ke, W as Ne, d as Qe, A as et, e as tt, M as Re, X as nt, G as at, f as Me, h as ot, i as De, j as st, D as ke, H as lt, k as Ve, l as Oe, m as Ue, n as ze, E as _e, o as de, p as it, q as rt, T as ct } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-tLv4FsgZ.js";
|
|
3
|
+
import { O as ut } from "./OrbitControls-CgDI9Dzj.js";
|
|
4
|
+
import { X as dt, Y as pt } from "./index-JXxkyOQY.js";
|
|
5
5
|
import { _ as me } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
|
-
import { c as Ge } from "./index-
|
|
6
|
+
import { c as Ge } from "./index-DEUR6Zpv.js";
|
|
7
7
|
import { E as Ie } from "./request-DHW6ycUJ.js";
|
|
8
8
|
function mt(E) {
|
|
9
9
|
let f = null, r = null, c = null, v = null, w = null, k = null, i = null, A = null;
|
|
@@ -18,8 +18,8 @@ function mt(E) {
|
|
|
18
18
|
alpha: !0
|
|
19
19
|
}), c.setSize(d.clientWidth, d.clientHeight), c.localClippingEnabled = !0, c.shadowMap.enabled = !0, c.shadowMap.type = Qe, c.toneMapping = et, c.toneMappingExposure = 1, c.outputColorSpace = tt, d.appendChild(c.domElement), v = new ut(r, c.domElement), v.enableDamping = !0, v.dampingFactor = 0.05, v.mouseButtons = {
|
|
20
20
|
LEFT: null,
|
|
21
|
-
MIDDLE:
|
|
22
|
-
RIGHT:
|
|
21
|
+
MIDDLE: Re.PAN,
|
|
22
|
+
RIGHT: Re.ROTATE
|
|
23
23
|
}, v.panSpeed = 0.7, w = new nt(r, c, {
|
|
24
24
|
container: d,
|
|
25
25
|
type: "cube",
|
|
@@ -55,12 +55,12 @@ function mt(E) {
|
|
|
55
55
|
i && (f.remove(i), i.dispose()), A && (f.remove(A), A.geometry.dispose(), A.material.dispose());
|
|
56
56
|
const S = Math.min(Math.max(Math.floor(d / 20), 30), 40);
|
|
57
57
|
i = new at(d, S, 13421772, 14540253), i.rotateX(Math.PI / 2), i.position.copy(a), f.add(i);
|
|
58
|
-
const
|
|
58
|
+
const R = new Me(d, d), X = new ot({
|
|
59
59
|
opacity: 0.3,
|
|
60
60
|
// 阴影透明度
|
|
61
61
|
color: 0
|
|
62
62
|
});
|
|
63
|
-
A = new De(
|
|
63
|
+
A = new De(R, X), A.position.copy(a), A.position.z -= 0.01, A.receiveShadow = !0, f.add(A);
|
|
64
64
|
}, u = () => {
|
|
65
65
|
if (D.value.length === 0)
|
|
66
66
|
return;
|
|
@@ -78,9 +78,9 @@ function mt(E) {
|
|
|
78
78
|
console.warn("无法计算包围盒,网格更新失败");
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
const S = d.getSize(new M()),
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
const S = d.getSize(new M()), R = d.getCenter(new M()), X = Math.max(S.x, S.y, S.z), W = Math.max(X * 8, 50), K = new M(
|
|
82
|
+
R.x,
|
|
83
|
+
R.y,
|
|
84
84
|
d.min.z
|
|
85
85
|
// 模型的最底部
|
|
86
86
|
);
|
|
@@ -92,13 +92,13 @@ function mt(E) {
|
|
|
92
92
|
a.position.set(10, 10, 8), a.castShadow = !0, a.shadow.mapSize.width = 4096, a.shadow.mapSize.height = 4096, a.shadow.camera.near = 0.5, a.shadow.camera.far = 50, a.shadow.camera.left = -50, a.shadow.camera.right = 50, a.shadow.camera.top = 50, a.shadow.camera.bottom = -50, f.add(a);
|
|
93
93
|
const S = new ke(16777215, 0.8);
|
|
94
94
|
S.position.set(-8, -8, 6), f.add(S);
|
|
95
|
-
const
|
|
96
|
-
|
|
95
|
+
const R = new ke(16777215, 0.6);
|
|
96
|
+
R.position.set(0, -15, 2), f.add(R);
|
|
97
97
|
const X = new lt(16777215, 4473924, 0.8);
|
|
98
98
|
f.add(X);
|
|
99
|
-
const W = new
|
|
99
|
+
const W = new Ve(16777215, 1, 50);
|
|
100
100
|
W.position.set(15, 15, 15), f.add(W);
|
|
101
|
-
const K = new
|
|
101
|
+
const K = new Ve(16777215, 0.5, 50);
|
|
102
102
|
K.position.set(-15, -15, 15), f.add(K);
|
|
103
103
|
}, _ = () => {
|
|
104
104
|
k = requestAnimationFrame(_), v && v.update();
|
|
@@ -120,7 +120,7 @@ function mt(E) {
|
|
|
120
120
|
].forEach((S) => {
|
|
121
121
|
d[S] && d[S].dispose && d[S].dispose();
|
|
122
122
|
}), d.dispose && d.dispose();
|
|
123
|
-
},
|
|
123
|
+
}, V = (d) => {
|
|
124
124
|
d == null || d.traverse((a) => {
|
|
125
125
|
a.geometry && a.geometry.dispose(), a.material && (Array.isArray(a.material) ? a.material.forEach((S) => {
|
|
126
126
|
U(S);
|
|
@@ -155,7 +155,7 @@ function mt(E) {
|
|
|
155
155
|
console.warn("无法计算包围盒");
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const R = a.getSize(new M()), X = a.getCenter(new M()), K = Math.max(R.x, R.y, R.z) * 0.8, N = new M(X.x + K, X.y - K, X.z + K);
|
|
159
159
|
r.position.copy(N), r.lookAt(X), v.target.copy(X), v.update(), l.value.copy(N), C.value.copy(X), u();
|
|
160
160
|
},
|
|
161
161
|
getThreeJSObjects: () => ({
|
|
@@ -168,13 +168,13 @@ function mt(E) {
|
|
|
168
168
|
clearAllModels: () => {
|
|
169
169
|
if (!f) return;
|
|
170
170
|
D.value.forEach((a) => {
|
|
171
|
-
f.remove(a),
|
|
171
|
+
f.remove(a), V(a);
|
|
172
172
|
});
|
|
173
173
|
const d = [];
|
|
174
174
|
f.children.forEach((a) => {
|
|
175
175
|
!a.isLight && !a.isCamera && a.type !== "GridHelper" && a !== A && d.push(a);
|
|
176
176
|
}), d.forEach((a) => {
|
|
177
|
-
f.remove(a),
|
|
177
|
+
f.remove(a), V(a);
|
|
178
178
|
}), D.value = [], u();
|
|
179
179
|
},
|
|
180
180
|
cleanup: () => {
|
|
@@ -187,7 +187,7 @@ function ft(E, f) {
|
|
|
187
187
|
const r = b(!1);
|
|
188
188
|
let c = null, v = 12700, w = new M(), k = new M(), i = new M(), A = 0, L = null;
|
|
189
189
|
const F = (e) => e < 0.5 ? 4 * e * e * e : 1 - Math.pow(-2 * e + 2, 3) / 2, T = (e) => {
|
|
190
|
-
const u = new M(), p = A * 1.2, _ = new M(i.x + p, i.y, i.z), U = new M(i.x, i.y + p, i.z),
|
|
190
|
+
const u = new M(), p = A * 1.2, _ = new M(i.x + p, i.y, i.z), U = new M(i.x, i.y + p, i.z), V = new M(i.x, i.y - p, i.z);
|
|
191
191
|
if (e <= 0.567) {
|
|
192
192
|
const G = e / 0.567 * Math.PI * 2;
|
|
193
193
|
u.x = i.x + Math.cos(G) * p, u.z = i.z + Math.sin(G) * p, u.y = i.y;
|
|
@@ -199,7 +199,7 @@ function ft(E, f) {
|
|
|
199
199
|
u.x = i.x + Math.sin(j) * p, u.y = i.y + Math.cos(j) * p, u.z = i.z;
|
|
200
200
|
} else {
|
|
201
201
|
const J = (e - 0.881) / 0.119, G = F(J);
|
|
202
|
-
u.lerpVectors(
|
|
202
|
+
u.lerpVectors(V, w, G);
|
|
203
203
|
}
|
|
204
204
|
return u;
|
|
205
205
|
}, D = () => {
|
|
@@ -226,9 +226,9 @@ function ft(E, f) {
|
|
|
226
226
|
i = p.getCenter(new M()), A = Math.max(_.x, _.y, _.z) * 1.2;
|
|
227
227
|
const U = new M(i.x + A * 1.2, i.y, i.z);
|
|
228
228
|
u.enabled = !1;
|
|
229
|
-
const
|
|
229
|
+
const V = e.position.clone(), J = 1e3, G = Date.now(), j = () => {
|
|
230
230
|
const Z = Date.now() - G, ee = Math.min(Z / J, 1), d = F(ee);
|
|
231
|
-
e.position.lerpVectors(
|
|
231
|
+
e.position.lerpVectors(V, U, d), e.lookAt(i), u.target.copy(i), ee < 1 ? requestAnimationFrame(j) : (r.value = !0, c = null, D());
|
|
232
232
|
};
|
|
233
233
|
j();
|
|
234
234
|
}, C = () => {
|
|
@@ -244,8 +244,8 @@ function ft(E, f) {
|
|
|
244
244
|
const { camera: e, controls: u } = E();
|
|
245
245
|
if (!e || !u) return;
|
|
246
246
|
u.enabled = !0;
|
|
247
|
-
const p = e.position.clone(), _ = u.target.clone(), U = 1500,
|
|
248
|
-
const G = Date.now() -
|
|
247
|
+
const p = e.position.clone(), _ = u.target.clone(), U = 1500, V = Date.now(), J = () => {
|
|
248
|
+
const G = Date.now() - V, j = Math.min(G / U, 1), Z = F(j);
|
|
249
249
|
e.position.lerpVectors(p, w, Z), u.target.lerpVectors(_, k, Z), j < 1 && requestAnimationFrame(J);
|
|
250
250
|
};
|
|
251
251
|
J();
|
|
@@ -282,8 +282,8 @@ function vt(E, f) {
|
|
|
282
282
|
opacity: 0.3,
|
|
283
283
|
side: Ue,
|
|
284
284
|
depthWrite: !1
|
|
285
|
-
}),
|
|
286
|
-
return
|
|
285
|
+
}), V = new De(u, U);
|
|
286
|
+
return V.position.copy(p), V.rotation.copy(_), V;
|
|
287
287
|
}, T = () => {
|
|
288
288
|
if (D(), l(), c.value === "none")
|
|
289
289
|
return;
|
|
@@ -348,8 +348,8 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
348
348
|
{ deep: !0, immediate: !0 }
|
|
349
349
|
), (c, v) => {
|
|
350
350
|
var w, k, i;
|
|
351
|
-
return
|
|
352
|
-
(
|
|
351
|
+
return Y(), q("div", gt, [
|
|
352
|
+
(Y(), Le(dt, {
|
|
353
353
|
itemData: (w = r.value) == null ? void 0 : w.compData,
|
|
354
354
|
key: (k = r.value) == null ? void 0 : k.id,
|
|
355
355
|
index: (i = r.value) == null ? void 0 : i.id,
|
|
@@ -402,7 +402,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
402
402
|
shininess: 80,
|
|
403
403
|
side: Ue
|
|
404
404
|
}), !0) : (Ie.error('在 "Pipe_Link" 内未找到任何 Mesh'), !1);
|
|
405
|
-
},
|
|
405
|
+
}, V = (n) => {
|
|
406
406
|
if (!n || !n.joints)
|
|
407
407
|
return console.warn("URDF模型没有关节信息"), [];
|
|
408
408
|
let m = null;
|
|
@@ -455,13 +455,13 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
455
455
|
};
|
|
456
456
|
if (!s && !o) return m;
|
|
457
457
|
if (m.push(y.pos.clone()), x !== 0) {
|
|
458
|
-
const
|
|
459
|
-
y.localX.applyMatrix4(
|
|
458
|
+
const H = new de().makeRotationAxis(y.localY, g(x));
|
|
459
|
+
y.localX.applyMatrix4(H), y.localZ.applyMatrix4(H);
|
|
460
460
|
}
|
|
461
461
|
if (s > 0 && (y.pos.add(y.localY.clone().multiplyScalar(s * pe)), m.push(y.pos.clone())), o > 0 && t > 0) {
|
|
462
|
-
const
|
|
462
|
+
const H = g(o), $ = t * pe, ne = y.pos.clone().add(y.localX.clone().multiplyScalar(-$)), I = Math.max(16, Math.ceil(o / 5));
|
|
463
463
|
for (let P = 1; P <= I; P++) {
|
|
464
|
-
const Q =
|
|
464
|
+
const Q = H * P / I, oe = new de().makeRotationAxis(y.localZ, Q), ve = y.localX.clone().multiplyScalar($).applyMatrix4(oe), ge = ne.clone().add(ve);
|
|
465
465
|
m.push(ge);
|
|
466
466
|
}
|
|
467
467
|
}
|
|
@@ -481,10 +481,10 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
481
481
|
}
|
|
482
482
|
const o = G(s), t = Math.max(0, A.value - o), y = [];
|
|
483
483
|
y.push(new M(0, 0, 0));
|
|
484
|
-
const
|
|
485
|
-
t > 0 && y.push(
|
|
484
|
+
const H = new M(0, t * pe, 0);
|
|
485
|
+
t > 0 && y.push(H);
|
|
486
486
|
let $ = {
|
|
487
|
-
pos:
|
|
487
|
+
pos: H.clone(),
|
|
488
488
|
localY: new M(0, 1, 0),
|
|
489
489
|
localX: new M(1, 0, 0),
|
|
490
490
|
localZ: new M(0, 0, 1)
|
|
@@ -537,8 +537,8 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
537
537
|
console.warn("没有动画数据");
|
|
538
538
|
return;
|
|
539
539
|
}
|
|
540
|
-
U(), F.value = !0, T.value = !1, D.value = 0, l.value = 0,
|
|
541
|
-
},
|
|
540
|
+
U(), F.value = !0, T.value = !1, D.value = 0, l.value = 0, R();
|
|
541
|
+
}, R = () => {
|
|
542
542
|
if (!F.value || T.value) return;
|
|
543
543
|
const n = D.value;
|
|
544
544
|
if (n >= p.length - 1) {
|
|
@@ -552,7 +552,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
552
552
|
ee(o, n, m);
|
|
553
553
|
} else
|
|
554
554
|
ee(s, n);
|
|
555
|
-
l.value++, l.value > Ae && (l.value = 0, D.value++), C.value = setTimeout(
|
|
555
|
+
l.value++, l.value > Ae && (l.value = 0, D.value++), C.value = setTimeout(R, u());
|
|
556
556
|
}, X = () => {
|
|
557
557
|
T.value = !0, C.value && (clearTimeout(C.value), C.value = null);
|
|
558
558
|
}, W = () => {
|
|
@@ -576,7 +576,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
576
576
|
}), Pe(
|
|
577
577
|
() => r.model,
|
|
578
578
|
(n) => {
|
|
579
|
-
n ? (v.value = n, c.value =
|
|
579
|
+
n ? (v.value = n, c.value = V(n)) : c.value = [];
|
|
580
580
|
},
|
|
581
581
|
{ immediate: !0 }
|
|
582
582
|
);
|
|
@@ -596,11 +596,11 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
596
596
|
fe();
|
|
597
597
|
}), je(() => {
|
|
598
598
|
Ce(), W();
|
|
599
|
-
}), (n, m) => (
|
|
600
|
-
c.value.length > 0 ? (
|
|
601
|
-
(
|
|
599
|
+
}), (n, m) => (Y(), q("div", wt, [
|
|
600
|
+
c.value.length > 0 ? (Y(), q("div", xt, [
|
|
601
|
+
(Y(!0), q(Xe, null, Ye(c.value, (s) => {
|
|
602
602
|
var x, o, t, y;
|
|
603
|
-
return
|
|
603
|
+
return Y(), q("div", {
|
|
604
604
|
key: s.name,
|
|
605
605
|
class: "joint-item"
|
|
606
606
|
}, [
|
|
@@ -611,7 +611,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
611
611
|
]),
|
|
612
612
|
h("span", kt, ae(s.type), 1)
|
|
613
613
|
]),
|
|
614
|
-
s.type === "revolute" || s.type === "prismatic" ? (
|
|
614
|
+
s.type === "revolute" || s.type === "prismatic" ? (Y(), q("div", zt, [
|
|
615
615
|
h("div", _t, [
|
|
616
616
|
h("input", {
|
|
617
617
|
type: "range",
|
|
@@ -619,7 +619,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
619
619
|
max: ((y = s.limit) == null ? void 0 : y.upper) ?? (s.type === "revolute" ? Math.PI : 1),
|
|
620
620
|
step: 0.01,
|
|
621
621
|
value: s.currentValue,
|
|
622
|
-
onInput: (
|
|
622
|
+
onInput: (H) => J(s.name, H.target.value),
|
|
623
623
|
class: "joint-slider",
|
|
624
624
|
disabled: F.value && !T.value
|
|
625
625
|
}, null, 40, At)
|
|
@@ -631,12 +631,12 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
631
631
|
])) : xe("", !0)
|
|
632
632
|
]);
|
|
633
633
|
}), 128))
|
|
634
|
-
])) : (
|
|
634
|
+
])) : (Y(), q("div", Ft, m[0] || (m[0] = [
|
|
635
635
|
h("p", null, "未检测到可控制的关节", -1)
|
|
636
636
|
])))
|
|
637
637
|
]));
|
|
638
638
|
}
|
|
639
|
-
},
|
|
639
|
+
}, Rt = /* @__PURE__ */ me(Tt, [["__scopeId", "data-v-035ae936"]]), Vt = { class: "panel-content" }, It = "id", Lt = {
|
|
640
640
|
__name: "urdfTree",
|
|
641
641
|
props: {
|
|
642
642
|
model: Object,
|
|
@@ -712,7 +712,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
712
712
|
{ immediate: !0 }
|
|
713
713
|
), (l, C) => {
|
|
714
714
|
const g = Je("el-tree");
|
|
715
|
-
return
|
|
715
|
+
return Y(), q("div", Vt, [
|
|
716
716
|
z(g, {
|
|
717
717
|
data: v.value,
|
|
718
718
|
props: w,
|
|
@@ -723,7 +723,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
723
723
|
]);
|
|
724
724
|
};
|
|
725
725
|
}
|
|
726
|
-
}, $t = /* @__PURE__ */ me(Lt, [["__scopeId", "data-v-290ff4e1"]]), Jt = ["xlink:href"], Ot = /* @__PURE__ */
|
|
726
|
+
}, $t = /* @__PURE__ */ me(Lt, [["__scopeId", "data-v-290ff4e1"]]), Jt = ["xlink:href"], Ot = /* @__PURE__ */ He({
|
|
727
727
|
__name: "svgIcon",
|
|
728
728
|
props: {
|
|
729
729
|
backgroundColor: { default: "#f0f0f0" },
|
|
@@ -746,11 +746,11 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
746
746
|
height: k
|
|
747
747
|
};
|
|
748
748
|
});
|
|
749
|
-
return (w, k) => (
|
|
749
|
+
return (w, k) => (Y(), q("div", {
|
|
750
750
|
class: Fe(["container", { active: w.active }]),
|
|
751
751
|
style: Ee(r.value)
|
|
752
752
|
}, [
|
|
753
|
-
(
|
|
753
|
+
(Y(), q("svg", {
|
|
754
754
|
class: Fe(["svg-icon", [w.$attrs.class, w.spin && "svg-icon-spin"]]),
|
|
755
755
|
style: Ee(v.value),
|
|
756
756
|
"aria-hidden": "true"
|
|
@@ -759,7 +759,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
759
759
|
], 6))
|
|
760
760
|
], 6));
|
|
761
761
|
}
|
|
762
|
-
}), B = /* @__PURE__ */ me(Ot, [["__scopeId", "data-v-3150a90b"]]), Ut = { class: "obj-viewer-container" }, Gt = { class: "buttonGroup-top" }, jt = { class: "buttonGroup-topLeft" }, Xt = { class: "buttonGroup-left" },
|
|
762
|
+
}), B = /* @__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" }, qt = { class: "left-panel" }, Zt = { class: "panel-header" }, Wt = {
|
|
763
763
|
key: 1,
|
|
764
764
|
class: "clipping-content"
|
|
765
765
|
}, 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 = {
|
|
@@ -787,14 +787,14 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
787
787
|
initThreeJS: p,
|
|
788
788
|
handleResize: _,
|
|
789
789
|
fitCameraToAllModels: U,
|
|
790
|
-
getThreeJSObjects:
|
|
790
|
+
getThreeJSObjects: V,
|
|
791
791
|
clearAllModels: J,
|
|
792
792
|
cleanup: G
|
|
793
|
-
} = mt(k), { isAnimating: j, toggleAnimation: Z, stopAnimation: ee } = ft(
|
|
794
|
-
|
|
793
|
+
} = mt(k), { isAnimating: j, toggleAnimation: Z, stopAnimation: ee } = ft(V, g), { isClipping: d, activeClippingAxis: a, toggleClipping: S, updateClippingPlanes: R } = vt(
|
|
794
|
+
V,
|
|
795
795
|
g
|
|
796
796
|
), { addModelsFromUrls: X, loadModelByDefaultPath: W, urdfModel: K, modelBoundingBoxes: N } = pt(
|
|
797
|
-
|
|
797
|
+
V,
|
|
798
798
|
g,
|
|
799
799
|
i,
|
|
800
800
|
A,
|
|
@@ -802,12 +802,12 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
802
802
|
), te = () => {
|
|
803
803
|
if (L.value || g.value.length === 0) return;
|
|
804
804
|
L.value = !0, j.value && ee();
|
|
805
|
-
const { camera: o, controls: t } =
|
|
805
|
+
const { camera: o, controls: t } = V();
|
|
806
806
|
if (!o || !t) return;
|
|
807
807
|
t.enabled = !0;
|
|
808
|
-
const y = (Q) => Q < 0.5 ? 4 * Q * Q * Q : 1 - Math.pow(-2 * Q + 2, 3) / 2,
|
|
808
|
+
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 = () => {
|
|
809
809
|
const Q = Date.now() - I, oe = Math.min(Q / ne, 1), ce = y(oe);
|
|
810
|
-
o.position.lerpVectors(
|
|
810
|
+
o.position.lerpVectors(H, e.value, ce), t.target.lerpVectors($, u.value, ce), oe < 1 ? requestAnimationFrame(P) : L.value = !1;
|
|
811
811
|
};
|
|
812
812
|
P();
|
|
813
813
|
}, re = async () => w ? Promise.resolve() : new Promise((o) => {
|
|
@@ -836,7 +836,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
836
836
|
return $e(async () => {
|
|
837
837
|
await Be();
|
|
838
838
|
try {
|
|
839
|
-
p(), v =
|
|
839
|
+
p(), v = V().scene, w = !0, window.addEventListener("resize", _);
|
|
840
840
|
} catch (o) {
|
|
841
841
|
console.error("Three.js初始化失败:", o);
|
|
842
842
|
}
|
|
@@ -846,9 +846,9 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
846
846
|
addModelsFromUrls: Ce,
|
|
847
847
|
loadModelByDefaultPath: n
|
|
848
848
|
}), (o, t) => {
|
|
849
|
-
var
|
|
849
|
+
var H, $, ne, I;
|
|
850
850
|
const y = Je("el-scrollbar");
|
|
851
|
-
return
|
|
851
|
+
return Y(), q("div", Ut, [
|
|
852
852
|
h("div", {
|
|
853
853
|
ref_key: "threejsContainer",
|
|
854
854
|
ref: k,
|
|
@@ -926,7 +926,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
926
926
|
onClick: t[3] || (t[3] = (P) => m("场景4"))
|
|
927
927
|
})
|
|
928
928
|
]),
|
|
929
|
-
h("div",
|
|
929
|
+
h("div", Yt, [
|
|
930
930
|
z(B, {
|
|
931
931
|
name: "donghuafangzhen",
|
|
932
932
|
size: "24"
|
|
@@ -958,13 +958,13 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
958
958
|
size: "24"
|
|
959
959
|
})
|
|
960
960
|
]),
|
|
961
|
-
h("div",
|
|
961
|
+
h("div", Ht, [
|
|
962
962
|
z(B, {
|
|
963
963
|
name: "kuaitui",
|
|
964
964
|
size: "24",
|
|
965
965
|
backgroundColor: "#ffffff",
|
|
966
966
|
title: "快退",
|
|
967
|
-
onClick: (
|
|
967
|
+
onClick: (H = C.value) == null ? void 0 : H.fastBackward
|
|
968
968
|
}, null, 8, ["onClick"]),
|
|
969
969
|
z(B, {
|
|
970
970
|
name: "bofang",
|
|
@@ -1005,11 +1005,11 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
1005
1005
|
]),
|
|
1006
1006
|
z(y, { "max-height": "650px" }, {
|
|
1007
1007
|
default: Te(() => [
|
|
1008
|
-
T.value === "场景树" ? (
|
|
1008
|
+
T.value === "场景树" ? (Y(), Le($t, {
|
|
1009
1009
|
key: 0,
|
|
1010
1010
|
model: O(K)
|
|
1011
1011
|
}, null, 8, ["model"])) : xe("", !0),
|
|
1012
|
-
T.value === "剖面视图" ? (
|
|
1012
|
+
T.value === "剖面视图" ? (Y(), q("div", Wt, [
|
|
1013
1013
|
h("div", Kt, [
|
|
1014
1014
|
h("label", Nt, [
|
|
1015
1015
|
se(h("input", {
|
|
@@ -1017,7 +1017,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
1017
1017
|
name: "clipping-axis",
|
|
1018
1018
|
value: "none",
|
|
1019
1019
|
"onUpdate:modelValue": t[7] || (t[7] = (P) => he(a) ? a.value = P : null),
|
|
1020
|
-
onChange: t[8] || (t[8] = (...P) => O(
|
|
1020
|
+
onChange: t[8] || (t[8] = (...P) => O(R) && O(R)(...P))
|
|
1021
1021
|
}, null, 544), [
|
|
1022
1022
|
[ye, O(a)]
|
|
1023
1023
|
]),
|
|
@@ -1029,7 +1029,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
1029
1029
|
name: "clipping-axis",
|
|
1030
1030
|
value: "x",
|
|
1031
1031
|
"onUpdate:modelValue": t[9] || (t[9] = (P) => he(a) ? a.value = P : null),
|
|
1032
|
-
onChange: t[10] || (t[10] = (...P) => O(
|
|
1032
|
+
onChange: t[10] || (t[10] = (...P) => O(R) && O(R)(...P))
|
|
1033
1033
|
}, null, 544), [
|
|
1034
1034
|
[ye, O(a)]
|
|
1035
1035
|
]),
|
|
@@ -1041,7 +1041,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
1041
1041
|
name: "clipping-axis",
|
|
1042
1042
|
value: "y",
|
|
1043
1043
|
"onUpdate:modelValue": t[11] || (t[11] = (P) => he(a) ? a.value = P : null),
|
|
1044
|
-
onChange: t[12] || (t[12] = (...P) => O(
|
|
1044
|
+
onChange: t[12] || (t[12] = (...P) => O(R) && O(R)(...P))
|
|
1045
1045
|
}, null, 544), [
|
|
1046
1046
|
[ye, O(a)]
|
|
1047
1047
|
]),
|
|
@@ -1053,7 +1053,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
1053
1053
|
name: "clipping-axis",
|
|
1054
1054
|
value: "z",
|
|
1055
1055
|
"onUpdate:modelValue": t[13] || (t[13] = (P) => he(a) ? a.value = P : null),
|
|
1056
|
-
onChange: t[14] || (t[14] = (...P) => O(
|
|
1056
|
+
onChange: t[14] || (t[14] = (...P) => O(R) && O(R)(...P))
|
|
1057
1057
|
}, null, 544), [
|
|
1058
1058
|
[ye, O(a)]
|
|
1059
1059
|
]),
|
|
@@ -1077,7 +1077,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
1077
1077
|
]),
|
|
1078
1078
|
z(y, { "max-height": "650px" }, {
|
|
1079
1079
|
default: Te(() => [
|
|
1080
|
-
se(z(
|
|
1080
|
+
se(z(Rt, {
|
|
1081
1081
|
ref_key: "jointRef",
|
|
1082
1082
|
ref: C,
|
|
1083
1083
|
model: O(K),
|
|
@@ -1095,7 +1095,7 @@ const gt = { class: "panel-content" }, ht = {
|
|
|
1095
1095
|
], 512), [
|
|
1096
1096
|
[we, D.value]
|
|
1097
1097
|
]),
|
|
1098
|
-
i.value ? (
|
|
1098
|
+
i.value ? (Y(), q("div", on, [
|
|
1099
1099
|
t[20] || (t[20] = h("div", { class: "loading-spinner" }, null, -1)),
|
|
1100
1100
|
h("p", null, ae(A.value), 1)
|
|
1101
1101
|
])) : xe("", !0)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ref as B, shallowRef as Be, defineComponent as Ke, watch as $, onMounted as Ve, nextTick as Xe, onBeforeUnmount as ze, resolveComponent as qe, createElementBlock as ue, openBlock as J, createElementVNode as b, withDirectives as We, createCommentVNode as fe, createVNode as F, unref as D, renderSlot as de, toDisplayString as he, withCtx as Ye, createBlock as $e, vShow as Je } from "vue";
|
|
2
|
-
import { al as Qe, am as re, an as we, Z as Ze, ao as z, _ as ye, ap as C, aq as Se, C as G, ar as v, e as q, as as et, k as tt, D as nt, o as Y, V as j, at as st, au as be, av as rt, aw as Ne, ax as it, ay as ot, a4 as Q, az as at, aA as Ie, aB as ct, aC as lt, aD as ut, aE as ie, aF as Ce, aG as oe, aH as ft, aI as dt, a1 as ht, aJ as Z, a5 as pt, v as Oe, m as mt, aK as X, aL as gt, w as Tt, aM as xt, i as ve, aN as Rt, y as Et, aO as _t, a2 as At, u as ee, P as Lt, p as Mt, aP as wt, aQ as yt, aR as St, aS as bt, aT as Nt, aU as ke, aV as It, aW as pe, aX as me, aY as ge, aZ as Te, a_ as xe, a7 as Ct, a$ as Ot, B as Pe, b0 as vt, l as kt } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-
|
|
3
|
-
import
|
|
4
|
-
import "./
|
|
5
|
-
import {
|
|
6
|
-
import { M as Gt, O as Ut, S as jt } from "./MTLLoader-kSybMwCv.js";
|
|
2
|
+
import { al as Qe, am as re, an as we, Z as Ze, ao as z, _ as ye, ap as C, aq as Se, C as G, ar as v, e as q, as as et, k as tt, D as nt, o as Y, V as j, at as st, au as be, av as rt, aw as Ne, ax as it, ay as ot, a4 as Q, az as at, aA as Ie, aB as ct, aC as lt, aD as ut, aE as ie, aF as Ce, aG as oe, aH as ft, aI as dt, a1 as ht, aJ as Z, a5 as pt, v as Oe, m as mt, aK as X, aL as gt, w as Tt, aM as xt, i as ve, aN as Rt, y as Et, aO as _t, a2 as At, u as ee, P as Lt, p as Mt, aP as wt, aQ as yt, aR as St, aS as bt, aT as Nt, aU as ke, aV as It, aW as pe, aX as me, aY as ge, aZ as Te, a_ as xe, a7 as Ct, a$ as Ot, B as Pe, b0 as vt, l as kt } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-tLv4FsgZ.js";
|
|
3
|
+
import "./index-DEUR6Zpv.js";
|
|
4
|
+
import { u as Pt, a as Ft, b as Dt, C as Ht } from "./iconfont-BDyitR5V.js";
|
|
5
|
+
import { M as Gt, O as Ut, S as jt } from "./MTLLoader-CxB65QQq.js";
|
|
7
6
|
import { T as U } from "./svgIcon-4u4PW7Is.js";
|
|
7
|
+
import { E as Re } from "./request-DHW6ycUJ.js";
|
|
8
8
|
import { _ as Bt } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
9
|
function Ee(f, t) {
|
|
10
10
|
if (t === Qe)
|