ss-component-new 1.1.548 → 1.1.549
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/{index-Buwm_HMT.cjs → index-B0jp4rJ7.cjs} +1 -1
- package/dist/{index-Dimxaw7v.js → index-BL6y6PkR.js} +1 -1
- package/dist/{index-DmEQ5rMj.cjs → index-Bc9NwNnP.cjs} +1 -1
- package/dist/{index-RHKeqrca.cjs → index-BlLYwXtf.cjs} +1 -1
- package/dist/{index-Cz3_SMCC.cjs → index-CCyyOPMU.cjs} +1 -1
- package/dist/{index-D-mmTu6o.cjs → index-CK0FtUOV.cjs} +1 -1
- package/dist/{index-DS5aMp22.cjs → index-CNPCeC2R.cjs} +1 -1
- package/dist/{index-DHzXS1Iy.cjs → index-Cj1y3b3x.cjs} +1 -1
- package/dist/{index-DCDTqWhV.js → index-CmmPH5Nz.js} +1 -1
- package/dist/{index-CBy0Wmr-.js → index-Cp4Ibjgx.js} +1 -1
- package/dist/{index-BweqqBIq.cjs → index-Ct9i3GIp.cjs} +1 -1
- package/dist/{index-7EhdrGYQ.js → index-CvTBM8UU.js} +1 -1
- package/dist/{index-BtGkSSqq.js → index-CzXcFvtA.js} +1 -1
- package/dist/{index-CX--CK9W.js → index-D5uIssA5.js} +2 -2
- package/dist/{index-DoK7bh85.cjs → index-D8WL61QB.cjs} +1 -1
- package/dist/{index-X2klfuIp.js → index-DCw_RgRm.js} +1 -1
- package/dist/{index-CdTFgks3.js → index-DHUzevs5.js} +1 -1
- package/dist/{index-HZltj8sF.js → index-DJ4YpOiS.js} +5 -5
- package/dist/{index-Ci-Jzm4O.cjs → index-DPU8Fdsu.cjs} +1 -1
- package/dist/{index-fCkjyUfU.cjs → index-DTzLbtKP.cjs} +1 -1
- package/dist/{index-DDUx9hJu.cjs → index-Da47VRa7.cjs} +1 -1
- package/dist/{index-Blj1gMr9.js → index-NQOTKxxa.js} +1 -1
- package/dist/{index-DOElpe7o.cjs → index-UUIxWTD6.cjs} +1 -1
- package/dist/{index-C0MryFa-.js → index-i5CuleWd.js} +7 -7
- package/dist/{index-YhTbPFhY.js → index-m3qmbCYh.js} +1 -1
- package/dist/{index-B9F0k3X6.js → index-o0LagUNU.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-UIjhdOZs.js → index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-D7itLmR5.js} +4 -4
- package/dist/{index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-pS_4Mrx1.cjs → index.vue_vue_type_style_index_0_scoped_82f8c0ec_lang-D_mftZvC.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_d888ede3_lang-GwS-75w8.js → index.vue_vue_type_style_index_0_scoped_d888ede3_lang-CNqodk4L.js} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_d888ede3_lang-hS31ouB0.cjs → index.vue_vue_type_style_index_0_scoped_d888ede3_lang-j6KWYpT_.cjs} +1 -1
- package/dist/{main-DaAvRrX9.cjs → main-C9CZNzwj.cjs} +1 -1
- package/dist/{main-DHTtRsVg.js → main-DfUga26e.js} +2 -2
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +4 -4
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +7 -7
- package/dist/{threeModel-Bsipl6Uv.cjs → threeModel-Dlnb0_Wq.cjs} +1 -1
- package/dist/{threeModel-CU0X1c55.js → threeModel-_evs0GT3.js} +155 -154
- package/package.json +1 -1
- /package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4bd4d061_lang-C4kzFz9R.js → threeModel.vue_vue_type_style_index_0_scoped_3cea1cdc_lang-C4kzFz9R.js} +0 -0
- /package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4bd4d061_lang-CO6ZYvsh.cjs → threeModel.vue_vue_type_style_index_0_scoped_3cea1cdc_lang-CO6ZYvsh.cjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ref as x, defineComponent as It, watch as _t, createElementBlock as B, openBlock as K, createVNode as D, computed as
|
|
2
|
-
import { C as qt, V as w, M as q, T as et, Q as zt, S as Rt, a as $, R as Qt, P as mt, b as te, B as gt, c as ee, d as
|
|
1
|
+
import { ref as x, defineComponent as It, watch as _t, createElementBlock as B, openBlock as K, createVNode as D, computed as it, resolveComponent as Ft, onMounted as Nt, onUnmounted as $t, Fragment as Xt, renderList as Jt, createElementVNode as y, createCommentVNode as pt, toDisplayString as J, normalizeStyle as Ct, normalizeClass as St, nextTick as kt, onBeforeUnmount as Gt, withDirectives as W, unref as F, withCtx as At, createBlock as Wt, isRef as ht, vModelRadio as ct, vShow as ut } from "vue";
|
|
2
|
+
import { C as qt, V as w, M as q, T as et, Q as zt, S as Rt, a as $, R as Qt, P as mt, b as te, B as gt, c as ee, d as ie, e as se, W as oe, f as ne, A as ae, g as le, X as re, G as he, h as ft, i as ce, j as Ut, k as ue, D as vt, H as de, l as Ot, m as pe, n as me, E as bt, u as fe } from "./threeModel.vue_vue_type_style_index_0_scoped_3cea1cdc_lang-C4kzFz9R.js";
|
|
3
3
|
import { j as _e } from "./index-ffDSB4Kw.js";
|
|
4
4
|
import { c as Yt } from "./menu-DV47UKJo.js";
|
|
5
|
-
import { _ as
|
|
5
|
+
import { _ as st } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
6
6
|
const Lt = { type: "change" }, Mt = { type: "start" }, Vt = { type: "end" }, dt = new Qt(), jt = new mt(), ge = Math.cos(70 * te.DEG2RAD), j = new w(), Z = 2 * Math.PI, T = {
|
|
7
7
|
NONE: -1,
|
|
8
8
|
ROTATE: 0,
|
|
@@ -87,8 +87,8 @@ class ye extends qt {
|
|
|
87
87
|
update(t = null) {
|
|
88
88
|
const e = this.object.position;
|
|
89
89
|
j.copy(e).sub(this.target), j.applyQuaternion(this._quat), this._spherical.setFromVector3(j), this.autoRotate && this.state === T.NONE && this._rotateLeft(this._getAutoRotationAngle(t)), this.enableDamping ? (this._spherical.theta += this._sphericalDelta.theta * this.dampingFactor, this._spherical.phi += this._sphericalDelta.phi * this.dampingFactor) : (this._spherical.theta += this._sphericalDelta.theta, this._spherical.phi += this._sphericalDelta.phi);
|
|
90
|
-
let
|
|
91
|
-
isFinite(
|
|
90
|
+
let s = this.minAzimuthAngle, n = this.maxAzimuthAngle;
|
|
91
|
+
isFinite(s) && isFinite(n) && (s < -Math.PI ? s += Z : s > Math.PI && (s -= Z), n < -Math.PI ? n += Z : n > Math.PI && (n -= Z), s <= n ? this._spherical.theta = Math.max(s, Math.min(n, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (s + n) / 2 ? Math.max(s, this._spherical.theta) : Math.min(n, this._spherical.theta)), this._spherical.phi = Math.max(this.minPolarAngle, Math.min(this.maxPolarAngle, this._spherical.phi)), this._spherical.makeSafe(), this.enableDamping === !0 ? this.target.addScaledVector(this._panOffset, this.dampingFactor) : this.target.add(this._panOffset), this.target.sub(this.cursor), this.target.clampLength(this.minTargetRadius, this.maxTargetRadius), this.target.add(this.cursor);
|
|
92
92
|
let c = !1;
|
|
93
93
|
if (this.zoomToCursor && this._performCursorZoom || this.object.isOrthographicCamera)
|
|
94
94
|
this._spherical.radius = this._clampDistance(this._spherical.radius);
|
|
@@ -140,13 +140,13 @@ class ye extends qt {
|
|
|
140
140
|
}
|
|
141
141
|
// deltaX and deltaY are in pixels; right and down are positive
|
|
142
142
|
_pan(t, e) {
|
|
143
|
-
const
|
|
143
|
+
const s = this.domElement;
|
|
144
144
|
if (this.object.isPerspectiveCamera) {
|
|
145
145
|
const n = this.object.position;
|
|
146
146
|
j.copy(n).sub(this.target);
|
|
147
147
|
let c = j.length();
|
|
148
|
-
c *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * t * c /
|
|
149
|
-
} else this.object.isOrthographicCamera ? (this._panLeft(t * (this.object.right - this.object.left) / this.object.zoom /
|
|
148
|
+
c *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * t * c / s.clientHeight, this.object.matrix), this._panUp(2 * e * c / s.clientHeight, this.object.matrix);
|
|
149
|
+
} else this.object.isOrthographicCamera ? (this._panLeft(t * (this.object.right - this.object.left) / this.object.zoom / s.clientWidth, this.object.matrix), this._panUp(e * (this.object.top - this.object.bottom) / this.object.zoom / s.clientHeight, this.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), this.enablePan = !1);
|
|
150
150
|
}
|
|
151
151
|
_dollyOut(t) {
|
|
152
152
|
this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale /= t : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), this.enableZoom = !1);
|
|
@@ -158,7 +158,7 @@ class ye extends qt {
|
|
|
158
158
|
if (!this.zoomToCursor)
|
|
159
159
|
return;
|
|
160
160
|
this._performCursorZoom = !0;
|
|
161
|
-
const
|
|
161
|
+
const s = this.domElement.getBoundingClientRect(), n = t - s.left, c = e - s.top, _ = s.width, a = s.height;
|
|
162
162
|
this._mouse.x = n / _ * 2 - 1, this._mouse.y = -(c / a) * 2 + 1, this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
|
|
163
163
|
}
|
|
164
164
|
_clampDistance(t) {
|
|
@@ -212,20 +212,20 @@ class ye extends qt {
|
|
|
212
212
|
if (this._pointers.length === 1)
|
|
213
213
|
this._rotateStart.set(t.pageX, t.pageY);
|
|
214
214
|
else {
|
|
215
|
-
const e = this._getSecondPointerPosition(t),
|
|
216
|
-
this._rotateStart.set(
|
|
215
|
+
const e = this._getSecondPointerPosition(t), s = 0.5 * (t.pageX + e.x), n = 0.5 * (t.pageY + e.y);
|
|
216
|
+
this._rotateStart.set(s, n);
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
219
|
_handleTouchStartPan(t) {
|
|
220
220
|
if (this._pointers.length === 1)
|
|
221
221
|
this._panStart.set(t.pageX, t.pageY);
|
|
222
222
|
else {
|
|
223
|
-
const e = this._getSecondPointerPosition(t),
|
|
224
|
-
this._panStart.set(
|
|
223
|
+
const e = this._getSecondPointerPosition(t), s = 0.5 * (t.pageX + e.x), n = 0.5 * (t.pageY + e.y);
|
|
224
|
+
this._panStart.set(s, n);
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
_handleTouchStartDolly(t) {
|
|
228
|
-
const e = this._getSecondPointerPosition(t),
|
|
228
|
+
const e = this._getSecondPointerPosition(t), s = t.pageX - e.x, n = t.pageY - e.y, c = Math.sqrt(s * s + n * n);
|
|
229
229
|
this._dollyStart.set(0, c);
|
|
230
230
|
}
|
|
231
231
|
_handleTouchStartDollyPan(t) {
|
|
@@ -238,7 +238,7 @@ class ye extends qt {
|
|
|
238
238
|
if (this._pointers.length == 1)
|
|
239
239
|
this._rotateEnd.set(t.pageX, t.pageY);
|
|
240
240
|
else {
|
|
241
|
-
const
|
|
241
|
+
const s = this._getSecondPointerPosition(t), n = 0.5 * (t.pageX + s.x), c = 0.5 * (t.pageY + s.y);
|
|
242
242
|
this._rotateEnd.set(n, c);
|
|
243
243
|
}
|
|
244
244
|
this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
|
|
@@ -249,13 +249,13 @@ class ye extends qt {
|
|
|
249
249
|
if (this._pointers.length === 1)
|
|
250
250
|
this._panEnd.set(t.pageX, t.pageY);
|
|
251
251
|
else {
|
|
252
|
-
const e = this._getSecondPointerPosition(t),
|
|
253
|
-
this._panEnd.set(
|
|
252
|
+
const e = this._getSecondPointerPosition(t), s = 0.5 * (t.pageX + e.x), n = 0.5 * (t.pageY + e.y);
|
|
253
|
+
this._panEnd.set(s, n);
|
|
254
254
|
}
|
|
255
255
|
this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd);
|
|
256
256
|
}
|
|
257
257
|
_handleTouchMoveDolly(t) {
|
|
258
|
-
const e = this._getSecondPointerPosition(t),
|
|
258
|
+
const e = this._getSecondPointerPosition(t), s = t.pageX - e.x, n = t.pageY - e.y, c = Math.sqrt(s * s + n * n);
|
|
259
259
|
this._dollyEnd.set(0, c), this._dollyDelta.set(0, Math.pow(this._dollyEnd.y / this._dollyStart.y, this.zoomSpeed)), this._dollyOut(this._dollyDelta.y), this._dollyStart.copy(this._dollyEnd);
|
|
260
260
|
const _ = (t.pageX + e.x) * 0.5, a = (t.pageY + e.y) * 0.5;
|
|
261
261
|
this._updateZoomParameters(_, a);
|
|
@@ -293,20 +293,20 @@ class ye extends qt {
|
|
|
293
293
|
}
|
|
294
294
|
//
|
|
295
295
|
_customWheelEvent(t) {
|
|
296
|
-
const e = t.deltaMode,
|
|
296
|
+
const e = t.deltaMode, s = {
|
|
297
297
|
clientX: t.clientX,
|
|
298
298
|
clientY: t.clientY,
|
|
299
299
|
deltaY: t.deltaY
|
|
300
300
|
};
|
|
301
301
|
switch (e) {
|
|
302
302
|
case 1:
|
|
303
|
-
|
|
303
|
+
s.deltaY *= 16;
|
|
304
304
|
break;
|
|
305
305
|
case 2:
|
|
306
|
-
|
|
306
|
+
s.deltaY *= 100;
|
|
307
307
|
break;
|
|
308
308
|
}
|
|
309
|
-
return t.ctrlKey && !this._controlActive && (
|
|
309
|
+
return t.ctrlKey && !this._controlActive && (s.deltaY *= 10), s;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
312
|
function ve(o) {
|
|
@@ -458,19 +458,19 @@ function ke(o) {
|
|
|
458
458
|
o.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
459
459
|
}
|
|
460
460
|
function Ae(o) {
|
|
461
|
-
let t = null, e = null,
|
|
461
|
+
let t = null, e = null, s = null, n = null, c = null, _ = null, a = null, P = null;
|
|
462
462
|
const M = x([]), k = x(new w()), U = x(new w()), A = () => {
|
|
463
463
|
if (!o.value) return;
|
|
464
|
-
t = new ee(), t.background = new
|
|
464
|
+
t = new ee(), t.background = new ie(15790320);
|
|
465
465
|
const m = o.value;
|
|
466
|
-
e = new
|
|
466
|
+
e = new se(75, m.clientWidth / m.clientHeight, 0.1, 1e4), e.position.set(8, -8, 6), e.up.set(0, 0, 1), e.lookAt(0, 0, 0), s = new oe({
|
|
467
467
|
antialias: !0,
|
|
468
468
|
alpha: !0
|
|
469
|
-
}),
|
|
469
|
+
}), s.setSize(m.clientWidth, m.clientHeight), s.localClippingEnabled = !0, s.shadowMap.enabled = !0, s.shadowMap.type = ne, s.toneMapping = ae, s.toneMappingExposure = 1, s.outputColorSpace = le, m.appendChild(s.domElement), n = new ye(e, s.domElement), n.enableDamping = !0, n.dampingFactor = 0.05, n.mouseButtons = {
|
|
470
470
|
LEFT: q.ROTATE,
|
|
471
471
|
MIDDLE: q.PAN,
|
|
472
472
|
RIGHT: null
|
|
473
|
-
}, n.panSpeed = 0.7, c = new re(e,
|
|
473
|
+
}, n.panSpeed = 0.7, c = new re(e, s, {
|
|
474
474
|
container: m,
|
|
475
475
|
type: "cube",
|
|
476
476
|
placement: "top-right",
|
|
@@ -500,7 +500,7 @@ function Ae(o) {
|
|
|
500
500
|
back: {
|
|
501
501
|
label: "Bottom"
|
|
502
502
|
}
|
|
503
|
-
}), c.attachControls(n), g(),
|
|
503
|
+
}), c.attachControls(n), g(), i();
|
|
504
504
|
}, r = (m, l) => {
|
|
505
505
|
a && (t.remove(a), a.dispose()), P && (t.remove(P), P.geometry.dispose(), P.material.dispose());
|
|
506
506
|
const E = Math.min(Math.max(Math.floor(m / 20), 30), 40);
|
|
@@ -540,8 +540,8 @@ function Ae(o) {
|
|
|
540
540
|
f.position.set(15, 15, 15), t.add(f);
|
|
541
541
|
const h = new Ot(16777215, 0.5, 50);
|
|
542
542
|
h.position.set(-15, -15, 15), t.add(h);
|
|
543
|
-
},
|
|
544
|
-
_ = requestAnimationFrame(
|
|
543
|
+
}, i = () => {
|
|
544
|
+
_ = requestAnimationFrame(i), n && n.update(), s && t && e && s.render(t, e), c && c.render();
|
|
545
545
|
}, p = (m) => {
|
|
546
546
|
[
|
|
547
547
|
"map",
|
|
@@ -573,9 +573,9 @@ function Ae(o) {
|
|
|
573
573
|
// 方法
|
|
574
574
|
initThreeJS: A,
|
|
575
575
|
handleResize: () => {
|
|
576
|
-
if (!o.value || !e || !
|
|
576
|
+
if (!o.value || !e || !s || !c) return;
|
|
577
577
|
const m = o.value, l = m.clientWidth, E = m.clientHeight;
|
|
578
|
-
e.aspect = l / E, e.updateProjectionMatrix(),
|
|
578
|
+
e.aspect = l / E, e.updateProjectionMatrix(), s.setSize(l, E), c.update();
|
|
579
579
|
},
|
|
580
580
|
fitCameraToAllModels: () => {
|
|
581
581
|
if (!e || !n || M.value.length === 0) return;
|
|
@@ -589,7 +589,7 @@ function Ae(o) {
|
|
|
589
589
|
getThreeJSObjects: () => ({
|
|
590
590
|
scene: t,
|
|
591
591
|
camera: e,
|
|
592
|
-
renderer:
|
|
592
|
+
renderer: s,
|
|
593
593
|
controls: n,
|
|
594
594
|
gizmo: c
|
|
595
595
|
}),
|
|
@@ -606,46 +606,46 @@ function Ae(o) {
|
|
|
606
606
|
}), M.value = [], C();
|
|
607
607
|
},
|
|
608
608
|
cleanup: () => {
|
|
609
|
-
_ && cancelAnimationFrame(_), a && a.dispose(), P && (P.geometry.dispose(), P.material.dispose()),
|
|
609
|
+
_ && cancelAnimationFrame(_), a && a.dispose(), P && (P.geometry.dispose(), P.material.dispose()), s && s.dispose(), n && n.dispose(), c && c.dispose();
|
|
610
610
|
},
|
|
611
611
|
updateGridForModels: C
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
614
|
function ze(o, t) {
|
|
615
615
|
const e = x(!1);
|
|
616
|
-
let
|
|
617
|
-
const k = (
|
|
616
|
+
let s = null, n = 12700, c = new w(), _ = new w(), a = new w(), P = 0, M = null;
|
|
617
|
+
const k = (i) => i < 0.5 ? 4 * i * i * i : 1 - Math.pow(-2 * i + 2, 3) / 2, U = (i) => {
|
|
618
618
|
const p = new w(), b = P * 1.2, R = new w(a.x + b, a.y, a.z), Y = new w(a.x, a.y + b, a.z), N = new w(a.x, a.y - b, a.z);
|
|
619
|
-
if (
|
|
620
|
-
const V =
|
|
619
|
+
if (i <= 0.567) {
|
|
620
|
+
const V = i / 0.567 * Math.PI * 2;
|
|
621
621
|
p.x = a.x + Math.cos(V) * b, p.z = a.z + Math.sin(V) * b, p.y = a.y;
|
|
622
|
-
} else if (
|
|
623
|
-
const L = (
|
|
622
|
+
} else if (i <= 0.724) {
|
|
623
|
+
const L = (i - 0.567) / 0.157, V = k(L);
|
|
624
624
|
p.lerpVectors(R, Y, V);
|
|
625
|
-
} else if (
|
|
626
|
-
const L = (
|
|
625
|
+
} else if (i <= 0.881) {
|
|
626
|
+
const L = (i - 0.724) / 0.157, m = k(L) * Math.PI;
|
|
627
627
|
p.x = a.x + Math.sin(m) * b, p.y = a.y + Math.cos(m) * b, p.z = a.z;
|
|
628
628
|
} else {
|
|
629
|
-
const L = (
|
|
629
|
+
const L = (i - 0.881) / 0.119, V = k(L);
|
|
630
630
|
p.lerpVectors(N, c, V);
|
|
631
631
|
}
|
|
632
632
|
return p;
|
|
633
633
|
}, A = () => {
|
|
634
|
-
const { camera:
|
|
635
|
-
if (!
|
|
636
|
-
|
|
637
|
-
const b = Date.now() -
|
|
634
|
+
const { camera: i, controls: p } = o();
|
|
635
|
+
if (!i || !p) return;
|
|
636
|
+
s || (s = Date.now());
|
|
637
|
+
const b = Date.now() - s, R = Math.min(b / n, 1);
|
|
638
638
|
if (R >= 1) {
|
|
639
639
|
C();
|
|
640
640
|
return;
|
|
641
641
|
}
|
|
642
642
|
const Y = U(R);
|
|
643
|
-
|
|
643
|
+
i.position.copy(Y), i.lookAt(a), p.target.copy(a), M = requestAnimationFrame(A);
|
|
644
644
|
}, r = () => {
|
|
645
645
|
if (t.value.length === 0) return;
|
|
646
|
-
const { camera:
|
|
647
|
-
if (!
|
|
648
|
-
c.copy(
|
|
646
|
+
const { camera: i, controls: p } = o();
|
|
647
|
+
if (!i || !p) return;
|
|
648
|
+
c.copy(i.position), _.copy(p.target);
|
|
649
649
|
const b = new gt();
|
|
650
650
|
t.value.forEach((l) => {
|
|
651
651
|
b.expandByObject(l);
|
|
@@ -654,27 +654,27 @@ function ze(o, t) {
|
|
|
654
654
|
a = b.getCenter(new w()), P = Math.max(R.x, R.y, R.z) * 1.2;
|
|
655
655
|
const Y = new w(a.x + P * 1.2, a.y, a.z);
|
|
656
656
|
p.enabled = !1;
|
|
657
|
-
const N =
|
|
657
|
+
const N = i.position.clone(), L = 1e3, V = Date.now(), m = () => {
|
|
658
658
|
const l = Date.now() - V, E = Math.min(l / L, 1), H = k(E);
|
|
659
|
-
|
|
659
|
+
i.position.lerpVectors(N, Y, H), i.lookAt(a), p.target.copy(a), E < 1 ? requestAnimationFrame(m) : (e.value = !0, s = null, A());
|
|
660
660
|
};
|
|
661
661
|
m();
|
|
662
662
|
}, C = () => {
|
|
663
|
-
e.value = !1,
|
|
664
|
-
const { controls:
|
|
665
|
-
|
|
663
|
+
e.value = !1, s = null, M && (cancelAnimationFrame(M), M = null);
|
|
664
|
+
const { controls: i } = o();
|
|
665
|
+
i && (i.enabled = !0, i.target.copy(_));
|
|
666
666
|
};
|
|
667
667
|
return {
|
|
668
668
|
isAnimating: e,
|
|
669
669
|
toggleAnimation: () => {
|
|
670
670
|
if (e.value) {
|
|
671
|
-
e.value = !1,
|
|
672
|
-
const { camera:
|
|
673
|
-
if (!
|
|
671
|
+
e.value = !1, s = null, M && (cancelAnimationFrame(M), M = null);
|
|
672
|
+
const { camera: i, controls: p } = o();
|
|
673
|
+
if (!i || !p) return;
|
|
674
674
|
p.enabled = !0;
|
|
675
|
-
const b =
|
|
675
|
+
const b = i.position.clone(), R = p.target.clone(), Y = 1500, N = Date.now(), L = () => {
|
|
676
676
|
const V = Date.now() - N, m = Math.min(V / Y, 1), l = k(m);
|
|
677
|
-
|
|
677
|
+
i.position.lerpVectors(b, c, l), p.target.lerpVectors(R, _, l), m < 1 && requestAnimationFrame(L);
|
|
678
678
|
};
|
|
679
679
|
L();
|
|
680
680
|
} else
|
|
@@ -685,7 +685,7 @@ function ze(o, t) {
|
|
|
685
685
|
};
|
|
686
686
|
}
|
|
687
687
|
function Re(o, t) {
|
|
688
|
-
const e = x(!1),
|
|
688
|
+
const e = x(!1), s = x("none");
|
|
689
689
|
let n = [], c = [], _ = new gt(), a = new w();
|
|
690
690
|
const P = () => {
|
|
691
691
|
n = [
|
|
@@ -701,9 +701,9 @@ function Re(o, t) {
|
|
|
701
701
|
_.expandByObject(g);
|
|
702
702
|
}), a = _.getCenter(new w());
|
|
703
703
|
}, k = (g) => {
|
|
704
|
-
const
|
|
704
|
+
const i = _.getSize(new w());
|
|
705
705
|
let p, b, R;
|
|
706
|
-
g === "x" ? (p = new ft(
|
|
706
|
+
g === "x" ? (p = new ft(i.z * 1.2, i.y * 1.2), b = new w(a.x, a.y, a.z), R = new bt(0, Math.PI / 2, 0)) : g === "y" ? (p = new ft(i.x * 1.2, i.z * 1.2), b = new w(a.x, a.y, a.z), R = new bt(Math.PI / 2, 0, 0)) : g === "z" && (p = new ft(i.x * 1.2, i.y * 1.2), b = new w(a.x, a.y, a.z), R = new bt(0, 0, 0));
|
|
707
707
|
const Y = new pe({
|
|
708
708
|
color: 8900331,
|
|
709
709
|
transparent: !0,
|
|
@@ -713,11 +713,11 @@ function Re(o, t) {
|
|
|
713
713
|
}), N = new Ut(p, Y);
|
|
714
714
|
return N.position.copy(b), N.rotation.copy(R), N;
|
|
715
715
|
}, U = () => {
|
|
716
|
-
if (A(), r(),
|
|
716
|
+
if (A(), r(), s.value === "none")
|
|
717
717
|
return;
|
|
718
718
|
M();
|
|
719
719
|
let g = null;
|
|
720
|
-
if (
|
|
720
|
+
if (s.value === "x" ? (n[0].constant = -a.x, g = n[0]) : s.value === "y" ? (n[1].constant = -a.y, g = n[1]) : s.value === "z" && (n[2].constant = -a.z, g = n[2]), g) {
|
|
721
721
|
t.value.forEach((p) => {
|
|
722
722
|
p.traverse((b) => {
|
|
723
723
|
b.isMesh && b.material && (Array.isArray(b.material) ? b.material.forEach((R) => {
|
|
@@ -725,31 +725,31 @@ function Re(o, t) {
|
|
|
725
725
|
}) : b.material.clippingPlanes = [g]);
|
|
726
726
|
});
|
|
727
727
|
});
|
|
728
|
-
const { scene:
|
|
729
|
-
if (
|
|
730
|
-
const p = k(
|
|
731
|
-
|
|
728
|
+
const { scene: i } = o();
|
|
729
|
+
if (i) {
|
|
730
|
+
const p = k(s.value);
|
|
731
|
+
i.add(p), c.push(p);
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
734
|
}, A = () => {
|
|
735
735
|
t.value.forEach((g) => {
|
|
736
|
-
g.traverse((
|
|
737
|
-
|
|
736
|
+
g.traverse((i) => {
|
|
737
|
+
i.isMesh && i.material && (Array.isArray(i.material) ? i.material.forEach((p) => {
|
|
738
738
|
p.clippingPlanes = [];
|
|
739
|
-
}) :
|
|
739
|
+
}) : i.material.clippingPlanes = []);
|
|
740
740
|
});
|
|
741
741
|
});
|
|
742
742
|
}, r = () => {
|
|
743
743
|
const { scene: g } = o();
|
|
744
|
-
g && c.forEach((
|
|
745
|
-
g.remove(
|
|
744
|
+
g && c.forEach((i) => {
|
|
745
|
+
g.remove(i), i.geometry.dispose(), i.material.dispose();
|
|
746
746
|
}), c = [];
|
|
747
747
|
};
|
|
748
748
|
return {
|
|
749
749
|
isClipping: e,
|
|
750
|
-
activeClippingAxis:
|
|
750
|
+
activeClippingAxis: s,
|
|
751
751
|
toggleClipping: () => {
|
|
752
|
-
e.value = !e.value, e.value ? (P(), t.value.length > 0 && M()) : (
|
|
752
|
+
e.value = !e.value, e.value ? (P(), t.value.length > 0 && M()) : (s.value = "none", A(), r());
|
|
753
753
|
},
|
|
754
754
|
updateClippingPlanes: U,
|
|
755
755
|
clearClippingPlanes: A,
|
|
@@ -765,24 +765,24 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
765
765
|
setup(o) {
|
|
766
766
|
const t = o;
|
|
767
767
|
x([]);
|
|
768
|
-
const e = x([]),
|
|
768
|
+
const e = x([]), s = x([]);
|
|
769
769
|
return _t(
|
|
770
770
|
() => [t == null ? void 0 : t.animationData, t == null ? void 0 : t.urdf],
|
|
771
771
|
() => {
|
|
772
772
|
var c;
|
|
773
773
|
let n = ((c = Yt(t == null ? void 0 : t.animationData)) == null ? void 0 : c.动画输出) ?? [];
|
|
774
|
-
n
|
|
774
|
+
console.log(232, n, t == null ? void 0 : t.animationData, t == null ? void 0 : t.urdf), n && n.length > 0 && (t != null && t.urdf);
|
|
775
775
|
},
|
|
776
|
-
{ deep: !0 }
|
|
776
|
+
{ deep: !0, immediate: !0 }
|
|
777
777
|
), (n, c) => (K(), B("div", Oe, [
|
|
778
778
|
D(_e, {
|
|
779
779
|
columns: e.value,
|
|
780
|
-
tableData:
|
|
780
|
+
tableData: s.value,
|
|
781
781
|
isShowPagination: !1
|
|
782
782
|
}, null, 8, ["columns", "tableData"])
|
|
783
783
|
]));
|
|
784
784
|
}
|
|
785
|
-
}), je = /* @__PURE__ */
|
|
785
|
+
}), je = /* @__PURE__ */ st(Le, [["__scopeId", "data-v-7aa41950"]]), Ie = { class: "panel-content" }, Fe = "id", Ne = {
|
|
786
786
|
__name: "urdfTree",
|
|
787
787
|
props: {
|
|
788
788
|
model: Object,
|
|
@@ -798,26 +798,26 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
798
798
|
},
|
|
799
799
|
emits: ["nodeClick"],
|
|
800
800
|
setup(o, { emit: t }) {
|
|
801
|
-
const e = o,
|
|
801
|
+
const e = o, s = t, n = x([]), c = {
|
|
802
802
|
children: "children",
|
|
803
803
|
label: "label"
|
|
804
804
|
}, _ = (r) => {
|
|
805
|
-
|
|
805
|
+
s("nodeClick", r);
|
|
806
806
|
}, a = (r, C = 0) => {
|
|
807
807
|
const g = [];
|
|
808
|
-
return Array.isArray(r) && (r == null ? void 0 : r.length) > 0 && r.forEach((
|
|
809
|
-
if (!(
|
|
808
|
+
return Array.isArray(r) && (r == null ? void 0 : r.length) > 0 && r.forEach((i) => {
|
|
809
|
+
if (!(i != null && i.isMesh) && ((i == null ? void 0 : i.type) === "URDFJoint" || (i == null ? void 0 : i.type) === "URDFLink")) {
|
|
810
810
|
const p = {
|
|
811
|
-
name:
|
|
812
|
-
label:
|
|
811
|
+
name: i == null ? void 0 : i.name,
|
|
812
|
+
label: i == null ? void 0 : i.name,
|
|
813
813
|
show: !0,
|
|
814
814
|
level: C + 1,
|
|
815
815
|
isPenultimate: !1,
|
|
816
|
-
type:
|
|
817
|
-
id:
|
|
818
|
-
limit: (
|
|
819
|
-
children: a(
|
|
820
|
-
path:
|
|
816
|
+
type: i == null ? void 0 : i.type,
|
|
817
|
+
id: i == null ? void 0 : i.id,
|
|
818
|
+
limit: (i == null ? void 0 : i.limit) ?? "",
|
|
819
|
+
children: a(i == null ? void 0 : i.children, C + 1),
|
|
820
|
+
path: i == null ? void 0 : i.name
|
|
821
821
|
};
|
|
822
822
|
g.push(p);
|
|
823
823
|
}
|
|
@@ -834,22 +834,22 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
834
834
|
children: a(r == null ? void 0 : r.children, 1),
|
|
835
835
|
path: r == null ? void 0 : r.name
|
|
836
836
|
}] : [], M = (r, C) => {
|
|
837
|
-
const g = [],
|
|
838
|
-
for (;
|
|
839
|
-
const p =
|
|
840
|
-
p.children && p.children.length > 0 && (g.push(p.id),
|
|
837
|
+
const g = [], i = [...r];
|
|
838
|
+
for (; i.length > 0 && g.length < C; ) {
|
|
839
|
+
const p = i.shift();
|
|
840
|
+
p.children && p.children.length > 0 && (g.push(p.id), i.push(...p.children));
|
|
841
841
|
}
|
|
842
842
|
return g;
|
|
843
843
|
}, k = (r, C) => {
|
|
844
844
|
const g = [];
|
|
845
|
-
return r.forEach((
|
|
846
|
-
if (
|
|
847
|
-
g.push(
|
|
848
|
-
const p =
|
|
845
|
+
return r.forEach((i) => {
|
|
846
|
+
if (i.children && i.children.length > 0) {
|
|
847
|
+
g.push(i.id);
|
|
848
|
+
const p = i.children.filter((b) => b.children && b.children.length > 0).slice(0, C).map((b) => b.id);
|
|
849
849
|
g.push(...p);
|
|
850
850
|
}
|
|
851
851
|
}), g.slice(0, C + 1);
|
|
852
|
-
}, U =
|
|
852
|
+
}, U = it(() => !n.value || n.value.length === 0 ? [] : e.expandStrategy === "firstLevel" ? k(n.value, e.maxExpandCount) : M(n.value, e.maxExpandCount)), A = it(() => e != null && e.model ? P(e.model) : []);
|
|
853
853
|
return _t(
|
|
854
854
|
A,
|
|
855
855
|
(r) => {
|
|
@@ -869,26 +869,26 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
869
869
|
]);
|
|
870
870
|
};
|
|
871
871
|
}
|
|
872
|
-
}, Ue = /* @__PURE__ */
|
|
872
|
+
}, Ue = /* @__PURE__ */ st(Ne, [["__scopeId", "data-v-290ff4e1"]]), Ye = { class: "panel-content" }, Ve = {
|
|
873
873
|
key: 0,
|
|
874
874
|
class: "joints-list"
|
|
875
875
|
}, He = { class: "joint-info-row" }, Ze = { class: "joint-left" }, Ke = { class: "joint-name" }, Be = { class: "joint-range" }, $e = { class: "joint-type" }, Xe = {
|
|
876
876
|
key: 0,
|
|
877
877
|
class: "joint-control-row"
|
|
878
|
-
}, Je = { class: "slider-container" }, Ge = ["min", "max", "value", "onInput", "disabled"], We = { class: "value-display" }, qe = { class: "joint-value" }, Qe = { class: "unit" },
|
|
878
|
+
}, Je = { class: "slider-container" }, Ge = ["min", "max", "value", "onInput", "disabled"], We = { class: "value-display" }, qe = { class: "joint-value" }, Qe = { class: "unit" }, ti = {
|
|
879
879
|
key: 1,
|
|
880
880
|
class: "empty-state"
|
|
881
|
-
},
|
|
881
|
+
}, ei = 1e3, Pt = 60, ii = {
|
|
882
882
|
__name: "jointPanel",
|
|
883
883
|
props: {
|
|
884
884
|
model: Object,
|
|
885
885
|
scene: Object,
|
|
886
|
-
animationData:
|
|
886
|
+
animationData: Object
|
|
887
887
|
},
|
|
888
888
|
setup(o, { expose: t }) {
|
|
889
889
|
const e = o;
|
|
890
890
|
x(!0);
|
|
891
|
-
const
|
|
891
|
+
const s = x([]), n = x(null), c = x(!1), _ = x(!1), a = x(0), P = x(0), M = x(null), k = x(1), U = () => ei / Pt / k.value;
|
|
892
892
|
let A = [];
|
|
893
893
|
_t(
|
|
894
894
|
() => e.animationData,
|
|
@@ -923,7 +923,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
923
923
|
});
|
|
924
924
|
}), f.sort((h, v) => h.name.localeCompare(v.name));
|
|
925
925
|
}, g = (u, f) => {
|
|
926
|
-
const h =
|
|
926
|
+
const h = s.value.find((I) => I.name === u);
|
|
927
927
|
if (!h) return;
|
|
928
928
|
const v = parseFloat(f);
|
|
929
929
|
if (h.limit) {
|
|
@@ -932,9 +932,9 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
932
932
|
} else
|
|
933
933
|
h.currentValue = v;
|
|
934
934
|
e.model && e.model.setJointValue ? e.model.setJointValue(u, h.currentValue) : h.urdfJoint && h.urdfJoint.setJointValue(h.currentValue);
|
|
935
|
-
},
|
|
935
|
+
}, i = (u) => {
|
|
936
936
|
u && Object.keys(u).forEach((f) => {
|
|
937
|
-
const h = u[f], v =
|
|
937
|
+
const h = u[f], v = s.value.find((I) => I.name === f);
|
|
938
938
|
v && (v.currentValue = h, e.model && e.model.setJointValue ? e.model.setJointValue(f, h) : v.urdfJoint && v.urdfJoint.setJointValue(h));
|
|
939
939
|
});
|
|
940
940
|
}, p = (u, f, h) => u + (f - u) * h, b = (u, f, h) => {
|
|
@@ -955,9 +955,9 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
955
955
|
const f = P.value / Pt, h = A[a.value], v = A[a.value + 1];
|
|
956
956
|
if (v) {
|
|
957
957
|
const I = b(h, v, f);
|
|
958
|
-
|
|
958
|
+
i(I);
|
|
959
959
|
} else
|
|
960
|
-
|
|
960
|
+
i(h);
|
|
961
961
|
if (P.value++, P.value >= Pt && (P.value = 0, a.value++, a.value >= A.length - 1)) {
|
|
962
962
|
N();
|
|
963
963
|
return;
|
|
@@ -975,7 +975,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
975
975
|
pauseAnimation: Y,
|
|
976
976
|
stopAnimation: N,
|
|
977
977
|
resetAll: () => {
|
|
978
|
-
N(), a.value = 0, P.value = 0,
|
|
978
|
+
N(), a.value = 0, P.value = 0, s.value.forEach((u) => {
|
|
979
979
|
(u.type === "revolute" || u.type === "prismatic") && g(u.name, 0);
|
|
980
980
|
});
|
|
981
981
|
},
|
|
@@ -988,12 +988,12 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
988
988
|
}), _t(
|
|
989
989
|
() => e.model,
|
|
990
990
|
(u) => {
|
|
991
|
-
u ?
|
|
991
|
+
u ? s.value = C(u) : s.value = [];
|
|
992
992
|
},
|
|
993
993
|
{ immediate: !0 }
|
|
994
994
|
);
|
|
995
995
|
const l = () => {
|
|
996
|
-
!e.model || c.value && !_.value ||
|
|
996
|
+
!e.model || c.value && !_.value || s.value.forEach((u) => {
|
|
997
997
|
u.urdfJoint && u.urdfJoint.angle !== void 0 && (u.currentValue = u.urdfJoint.angle);
|
|
998
998
|
});
|
|
999
999
|
}, E = () => {
|
|
@@ -1009,8 +1009,8 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1009
1009
|
}), $t(() => {
|
|
1010
1010
|
H(), N();
|
|
1011
1011
|
}), (u, f) => (K(), B("div", Ye, [
|
|
1012
|
-
|
|
1013
|
-
(K(!0), B(Xt, null, Jt(
|
|
1012
|
+
s.value.length > 0 ? (K(), B("div", Ve, [
|
|
1013
|
+
(K(!0), B(Xt, null, Jt(s.value, (h) => {
|
|
1014
1014
|
var v, I, Q, G;
|
|
1015
1015
|
return K(), B("div", {
|
|
1016
1016
|
key: h.name,
|
|
@@ -1043,12 +1043,12 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1043
1043
|
])) : pt("", !0)
|
|
1044
1044
|
]);
|
|
1045
1045
|
}), 128))
|
|
1046
|
-
])) : (K(), B("div",
|
|
1046
|
+
])) : (K(), B("div", ti, f[0] || (f[0] = [
|
|
1047
1047
|
y("p", null, "未检测到可控制的关节", -1)
|
|
1048
1048
|
])))
|
|
1049
1049
|
]));
|
|
1050
1050
|
}
|
|
1051
|
-
},
|
|
1051
|
+
}, si = /* @__PURE__ */ st(ii, [["__scopeId", "data-v-603b87bc"]]), oi = ["xlink:href"], ni = /* @__PURE__ */ It({
|
|
1052
1052
|
__name: "svgIcon",
|
|
1053
1053
|
props: {
|
|
1054
1054
|
backgroundColor: { default: "#f0f0f0" },
|
|
@@ -1059,11 +1059,11 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1059
1059
|
active: { type: Boolean, default: !1 }
|
|
1060
1060
|
},
|
|
1061
1061
|
setup(o) {
|
|
1062
|
-
const t = o, e =
|
|
1062
|
+
const t = o, e = it(
|
|
1063
1063
|
() => ({
|
|
1064
1064
|
backgroundColor: t.backgroundColor
|
|
1065
1065
|
})
|
|
1066
|
-
),
|
|
1066
|
+
), s = it(() => `#${t.prefix}-${t.name}`), n = it(() => {
|
|
1067
1067
|
const { size: c } = t;
|
|
1068
1068
|
let _ = `${c}`;
|
|
1069
1069
|
return _ = `${_.replace("px", "")}px`, {
|
|
@@ -1080,32 +1080,33 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1080
1080
|
style: Ct(n.value),
|
|
1081
1081
|
"aria-hidden": "true"
|
|
1082
1082
|
}, [
|
|
1083
|
-
y("use", { "xlink:href":
|
|
1083
|
+
y("use", { "xlink:href": s.value }, null, 8, oi)
|
|
1084
1084
|
], 6))
|
|
1085
1085
|
], 6));
|
|
1086
1086
|
}
|
|
1087
|
-
}), z = /* @__PURE__ */
|
|
1087
|
+
}), z = /* @__PURE__ */ st(ni, [["__scopeId", "data-v-3150a90b"]]), ai = { class: "obj-viewer-container" }, li = { class: "buttonGroup-top" }, ri = { class: "buttonGroup-topLeft" }, hi = { class: "buttonGroup-left" }, ci = { class: "buttonGroup-right" }, ui = { class: "buttonGroup-bottom" }, di = { class: "left-panel" }, pi = { class: "panel-header" }, mi = {
|
|
1088
1088
|
key: 1,
|
|
1089
1089
|
class: "clipping-content"
|
|
1090
|
-
},
|
|
1090
|
+
}, fi = { class: "radio-group" }, _i = { class: "radio-label" }, gi = { class: "radio-label" }, yi = { class: "radio-label" }, vi = { class: "radio-label" }, bi = { class: "right-panel" }, wi = { class: "panel-header" }, Pi = {
|
|
1091
1091
|
key: 0,
|
|
1092
1092
|
class: "loading-overlay"
|
|
1093
|
-
},
|
|
1093
|
+
}, Mi = {
|
|
1094
1094
|
__name: "threeModel",
|
|
1095
1095
|
props: {
|
|
1096
1096
|
animationData: {
|
|
1097
|
-
type:
|
|
1098
|
-
default:
|
|
1097
|
+
type: Object,
|
|
1098
|
+
default: () => {
|
|
1099
|
+
}
|
|
1099
1100
|
}
|
|
1100
1101
|
},
|
|
1101
1102
|
emits: ["getAnimationData"],
|
|
1102
1103
|
setup(o, { expose: t, emit: e }) {
|
|
1103
|
-
const
|
|
1104
|
+
const s = e, n = o;
|
|
1104
1105
|
let c = null, _ = !1;
|
|
1105
1106
|
const a = x(null), P = x(!1), M = x("");
|
|
1106
1107
|
x(!1);
|
|
1107
1108
|
const k = x(!1), U = x(!1), A = x(""), r = x(!1), C = x(""), g = x(), {
|
|
1108
|
-
currentModels:
|
|
1109
|
+
currentModels: i,
|
|
1109
1110
|
initialCameraPosition: p,
|
|
1110
1111
|
initialTargetPosition: b,
|
|
1111
1112
|
initThreeJS: R,
|
|
@@ -1114,17 +1115,17 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1114
1115
|
getThreeJSObjects: L,
|
|
1115
1116
|
clearAllModels: V,
|
|
1116
1117
|
cleanup: m
|
|
1117
|
-
} = Ae(a), { isAnimating: l, toggleAnimation: E, stopAnimation: H } = ze(L,
|
|
1118
|
+
} = Ae(a), { isAnimating: l, toggleAnimation: E, stopAnimation: H } = ze(L, i), { isClipping: u, activeClippingAxis: f, toggleClipping: h, updateClippingPlanes: v } = Re(
|
|
1118
1119
|
L,
|
|
1119
|
-
|
|
1120
|
+
i
|
|
1120
1121
|
), { addModelsFromUrls: I, loadModelByDefaultPath: Q, urdfModel: G } = fe(
|
|
1121
1122
|
L,
|
|
1122
|
-
|
|
1123
|
+
i,
|
|
1123
1124
|
P,
|
|
1124
1125
|
M,
|
|
1125
1126
|
V
|
|
1126
1127
|
), yt = () => {
|
|
1127
|
-
if (k.value ||
|
|
1128
|
+
if (k.value || i.value.length === 0) return;
|
|
1128
1129
|
k.value = !0, l.value && H();
|
|
1129
1130
|
const { camera: O, controls: d } = L();
|
|
1130
1131
|
if (!O || !d) return;
|
|
@@ -1152,7 +1153,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1152
1153
|
}, Dt = (O) => {
|
|
1153
1154
|
r.value = !0, C.value = O;
|
|
1154
1155
|
}, Bt = () => {
|
|
1155
|
-
|
|
1156
|
+
s("getAnimationData"), kt(() => {
|
|
1156
1157
|
var O;
|
|
1157
1158
|
(O = g.value) == null || O.startAnimation();
|
|
1158
1159
|
});
|
|
@@ -1172,13 +1173,13 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1172
1173
|
}), (O, d) => {
|
|
1173
1174
|
var nt, at, lt, rt;
|
|
1174
1175
|
const X = Ft("el-scrollbar");
|
|
1175
|
-
return K(), B("div",
|
|
1176
|
+
return K(), B("div", ai, [
|
|
1176
1177
|
y("div", {
|
|
1177
1178
|
ref_key: "threejsContainer",
|
|
1178
1179
|
ref: a,
|
|
1179
1180
|
class: "threejs-container"
|
|
1180
1181
|
}, null, 512),
|
|
1181
|
-
y("div",
|
|
1182
|
+
y("div", li, [
|
|
1182
1183
|
D(z, {
|
|
1183
1184
|
name: "guanjianjiexi",
|
|
1184
1185
|
size: "34"
|
|
@@ -1200,7 +1201,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1200
1201
|
size: "34"
|
|
1201
1202
|
})
|
|
1202
1203
|
]),
|
|
1203
|
-
y("div",
|
|
1204
|
+
y("div", ri, [
|
|
1204
1205
|
D(z, {
|
|
1205
1206
|
name: "viewReset",
|
|
1206
1207
|
size: "24",
|
|
@@ -1224,7 +1225,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1224
1225
|
title: F(l) ? "停止动画" : "动画视图"
|
|
1225
1226
|
}, null, 8, ["onClick", "title"])
|
|
1226
1227
|
]),
|
|
1227
|
-
y("div",
|
|
1228
|
+
y("div", hi, [
|
|
1228
1229
|
D(z, {
|
|
1229
1230
|
name: "jiegoushu",
|
|
1230
1231
|
size: "24",
|
|
@@ -1250,7 +1251,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1250
1251
|
onClick: d[3] || (d[3] = (S) => ot("场景4"))
|
|
1251
1252
|
})
|
|
1252
1253
|
]),
|
|
1253
|
-
y("div",
|
|
1254
|
+
y("div", ci, [
|
|
1254
1255
|
D(z, {
|
|
1255
1256
|
name: "donghuafangzhen",
|
|
1256
1257
|
size: "24"
|
|
@@ -1282,7 +1283,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1282
1283
|
size: "24"
|
|
1283
1284
|
})
|
|
1284
1285
|
]),
|
|
1285
|
-
y("div",
|
|
1286
|
+
y("div", ui, [
|
|
1286
1287
|
D(z, {
|
|
1287
1288
|
name: "kuaitui",
|
|
1288
1289
|
size: "24",
|
|
@@ -1319,8 +1320,8 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1319
1320
|
onClick: (rt = g.value) == null ? void 0 : rt.resetAll
|
|
1320
1321
|
}, null, 8, ["onClick"])
|
|
1321
1322
|
]),
|
|
1322
|
-
W(y("div",
|
|
1323
|
-
y("div",
|
|
1323
|
+
W(y("div", di, [
|
|
1324
|
+
y("div", pi, [
|
|
1324
1325
|
y("span", null, J(A.value), 1),
|
|
1325
1326
|
y("span", {
|
|
1326
1327
|
class: "close",
|
|
@@ -1333,9 +1334,9 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1333
1334
|
key: 0,
|
|
1334
1335
|
model: F(G)
|
|
1335
1336
|
}, null, 8, ["model"])) : pt("", !0),
|
|
1336
|
-
A.value === "剖面视图" ? (K(), B("div",
|
|
1337
|
-
y("div",
|
|
1338
|
-
y("label",
|
|
1337
|
+
A.value === "剖面视图" ? (K(), B("div", mi, [
|
|
1338
|
+
y("div", fi, [
|
|
1339
|
+
y("label", _i, [
|
|
1339
1340
|
W(y("input", {
|
|
1340
1341
|
type: "radio",
|
|
1341
1342
|
name: "clipping-axis",
|
|
@@ -1347,7 +1348,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1347
1348
|
]),
|
|
1348
1349
|
d[16] || (d[16] = y("span", { class: "radio-text" }, "无切割", -1))
|
|
1349
1350
|
]),
|
|
1350
|
-
y("label",
|
|
1351
|
+
y("label", gi, [
|
|
1351
1352
|
W(y("input", {
|
|
1352
1353
|
type: "radio",
|
|
1353
1354
|
name: "clipping-axis",
|
|
@@ -1359,7 +1360,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1359
1360
|
]),
|
|
1360
1361
|
d[17] || (d[17] = y("span", { class: "radio-text" }, "X轴切割", -1))
|
|
1361
1362
|
]),
|
|
1362
|
-
y("label",
|
|
1363
|
+
y("label", yi, [
|
|
1363
1364
|
W(y("input", {
|
|
1364
1365
|
type: "radio",
|
|
1365
1366
|
name: "clipping-axis",
|
|
@@ -1371,7 +1372,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1371
1372
|
]),
|
|
1372
1373
|
d[18] || (d[18] = y("span", { class: "radio-text" }, "Y轴切割", -1))
|
|
1373
1374
|
]),
|
|
1374
|
-
y("label",
|
|
1375
|
+
y("label", vi, [
|
|
1375
1376
|
W(y("input", {
|
|
1376
1377
|
type: "radio",
|
|
1377
1378
|
name: "clipping-axis",
|
|
@@ -1391,8 +1392,8 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1391
1392
|
], 512), [
|
|
1392
1393
|
[ut, U.value]
|
|
1393
1394
|
]),
|
|
1394
|
-
W(y("div",
|
|
1395
|
-
y("div",
|
|
1395
|
+
W(y("div", bi, [
|
|
1396
|
+
y("div", wi, [
|
|
1396
1397
|
y("span", null, J(C.value), 1),
|
|
1397
1398
|
y("span", {
|
|
1398
1399
|
class: "close",
|
|
@@ -1401,7 +1402,7 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1401
1402
|
]),
|
|
1402
1403
|
D(X, { "max-height": "650px" }, {
|
|
1403
1404
|
default: At(() => [
|
|
1404
|
-
W(D(
|
|
1405
|
+
W(D(si, {
|
|
1405
1406
|
ref_key: "jointRef",
|
|
1406
1407
|
ref: g,
|
|
1407
1408
|
model: F(G),
|
|
@@ -1422,14 +1423,14 @@ const Oe = { class: "panel-content" }, Le = /* @__PURE__ */ It({
|
|
|
1422
1423
|
], 512), [
|
|
1423
1424
|
[ut, r.value]
|
|
1424
1425
|
]),
|
|
1425
|
-
P.value ? (K(), B("div",
|
|
1426
|
+
P.value ? (K(), B("div", Pi, [
|
|
1426
1427
|
d[20] || (d[20] = y("div", { class: "loading-spinner" }, null, -1)),
|
|
1427
1428
|
y("p", null, J(M.value), 1)
|
|
1428
1429
|
])) : pt("", !0)
|
|
1429
1430
|
]);
|
|
1430
1431
|
};
|
|
1431
1432
|
}
|
|
1432
|
-
},
|
|
1433
|
+
}, Si = /* @__PURE__ */ st(Mi, [["__scopeId", "data-v-3cea1cdc"]]);
|
|
1433
1434
|
export {
|
|
1434
|
-
|
|
1435
|
+
Si as default
|
|
1435
1436
|
};
|