ss-component-new 1.1.509 → 1.1.511
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{array-BTjyzwbz.js → array-6rfRfZoy.js} +1 -1
- package/dist/{array-T-glopHk.cjs → array-BKzrrmWD.cjs} +2 -2
- package/dist/{index-BqlWuQ7F.cjs → index-3GfpOmBm.cjs} +1 -1
- package/dist/index-9keTbNci.js +1490 -0
- package/dist/{index-BPe56KwL.js → index-B72kja43.js} +12 -13
- package/dist/{index-B3sFb3ED.js → index-BBFJJ4tl.js} +5 -5
- package/dist/index-BBQKck4p.cjs +1 -0
- package/dist/index-BBQrfTQg.cjs +1 -0
- package/dist/index-BDmXVjP1.cjs +1 -0
- package/dist/{index-BC6o_HwA.js → index-BPQ17KYZ.js} +1 -1
- package/dist/{index-OUNz_X1-.js → index-BSC7EQfO.js} +15 -15
- package/dist/{index-B6WyqdEq.js → index-BY-71neG.js} +27 -28
- package/dist/{index-pWCRQCtH.cjs → index-BdCeB39f.cjs} +1 -1
- package/dist/{index-0Aj-6Pfy.cjs → index-Bk9CevKt.cjs} +3 -3
- package/dist/{index-WupiV34P.js → index-Bsluws3x.js} +1 -1
- package/dist/{index-D-3H8d48.js → index-Btfqm3Aj.js} +16 -17
- package/dist/index-Bw7fhgWa.js +186 -0
- package/dist/{index-BrZj-udo.js → index-Bz3SW9qv.js} +6 -6
- package/dist/{index--d0-FcKi.js → index-C-RVIq7e.js} +3 -3
- package/dist/{index-BcRfxlOl.cjs → index-C3G2rcyE.cjs} +1 -1
- package/dist/{index-18OPgy7M.js → index-C3Lo66u2.js} +4 -4
- package/dist/index-C8zdykvt.cjs +1 -0
- package/dist/{index-D9fT9K4k.js → index-COMGfNcR.js} +3 -3
- package/dist/index-CRSpuXYg.cjs +1 -0
- package/dist/index-CT9N59g0.cjs +1 -0
- package/dist/{index-cyR-UE9m.cjs → index-CbWlMlxi.cjs} +1 -1
- package/dist/{index-DXv077SA.cjs → index-Cd0szVvZ.cjs} +1 -1
- package/dist/{index-C17_NPz0.cjs → index-Ci1hpo3R.cjs} +1 -1
- package/dist/{index-JqG9oXli.js → index-CmUqS1hN.js} +1 -1
- package/dist/{index-MDG-_61i.js → index-CqmGUncB.js} +3 -3
- package/dist/index-D42emtHS.cjs +1 -0
- package/dist/{index-qlszF_bh.js → index-D5AYFKTM.js} +2 -2
- package/dist/{index-B-3rJW5B.cjs → index-D8QyJVl9.cjs} +1 -1
- package/dist/{index-Dx6aORao.cjs → index-D9ZIJbHw.cjs} +12 -12
- package/dist/{index-DpBfp4fC.js → index-DF8AKNJv.js} +16 -17
- package/dist/index-DGHLPooK.js +457 -0
- package/dist/{index-BeUJWi0x.js → index-DLfWd1qr.js} +5 -5
- package/dist/index-DQxqAo5T.cjs +1 -0
- package/dist/index-DRXd1T3-.cjs +1 -0
- package/dist/{index-TnYimoKI.cjs → index-DgsMW7lK.cjs} +1 -1
- package/dist/{index-B35jXtRb.js → index-DnGhhxPP.js} +5 -5
- package/dist/{index-pxmLD5OC.cjs → index-Dw520ieR.cjs} +1 -1
- package/dist/{index-uN3j6KsS.cjs → index-Dy4AlOOz.cjs} +1 -1
- package/dist/{index-DNQe9fKA.js → index-DzjXzyVN.js} +1 -1
- package/dist/{index-OYYGU2YE.js → index-LCDlyiVS.js} +4 -4
- package/dist/index-NJKX8un9.js +3995 -0
- package/dist/{index-DYRVEBa9.js → index-NkBocgtR.js} +111 -112
- package/dist/{index-55yBsyRr.cjs → index-Oixs__9V.cjs} +1 -1
- package/dist/{index-Dh39r6dj.cjs → index-XKC9uwi7.cjs} +1 -1
- package/dist/{index-DtUmPH3r.cjs → index-YT4yRM1k.cjs} +1 -1
- package/dist/{index-CRkYxnL4.cjs → index-lZj2FVM-.cjs} +1 -1
- package/dist/{index-DwMyURBu.js → index-t25R8oz_.js} +9 -9
- package/dist/{index.vue_vue_type_script_setup_true_lang-Dzi9C_6v.js → index.vue_vue_type_script_setup_true_lang-D0IUrek5.js} +40 -40
- package/dist/{index.vue_vue_type_script_setup_true_lang-CGZnYRAf.cjs → index.vue_vue_type_script_setup_true_lang-DWwRe3NO.cjs} +1 -1
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C0_XMLvd.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-0GZj6SDy.js} +9343 -9713
- package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B40u7Mx6.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BruAa-uD.cjs} +86 -86
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-9V0_8cmZ.js → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang--3mE_B9B.js} +15 -15
- package/dist/{index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B-GFoPJ9.cjs → index.vue_vue_type_style_index_0_scoped_ed9fe0f5_lang-B2bfU2M4.cjs} +1 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BFaKxxEb.cjs +56 -0
- package/dist/{index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BSG1ySNA.js → index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-BZQSdupd.js} +9759 -9781
- package/dist/{login-CW3Tv6wk.cjs → login-BHMBhU8d.cjs} +1 -1
- package/dist/{login-Bb_Ovfvl.js → login-CROQ1_RU.js} +4 -4
- package/dist/{main-DeaRuNYD.js → main-1yb7Pay5.js} +7 -8
- package/dist/main-DkeO8sGR.cjs +1 -0
- package/dist/{menu-jWcM5fkr.js → menu-BPLW-L8U.js} +3946 -3581
- package/dist/menu-CQ3_ZXwC.cjs +21 -0
- package/dist/menuIndex-BJdEj1Et.cjs +1 -0
- package/dist/menuIndex-BsKyxgvr.js +60 -0
- package/dist/ss-component.cjs +1 -1
- package/dist/ss-component.css +1 -1
- package/dist/ss-component.js +9 -9
- package/dist/ss-component2.cjs +1 -1
- package/dist/ss-component2.js +9 -9
- package/dist/{threeModel-AKBKLvxK.js → threeModel-CFiMikXU.js} +322 -321
- package/dist/{threeModel-CEMnXOw2.cjs → threeModel-Cz-eN53p.cjs} +1 -1
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-BOOCIUn8.js → threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-DZ9BnDSy.js} +2 -2
- package/dist/{threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-C1EygWi0.cjs → threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-MfXPrK37.cjs} +1 -1
- package/package.json +1 -1
- package/dist/index--3QjFI9W.cjs +0 -1
- package/dist/index-BkKYXjJ0.cjs +0 -1
- package/dist/index-Bpt6Hcq2.cjs +0 -1
- package/dist/index-CI__ZdC-.cjs +0 -1
- package/dist/index-CPfseYEB.cjs +0 -1
- package/dist/index-CZN1K7bK.js +0 -408
- package/dist/index-Cdxp_a8K.js +0 -185
- package/dist/index-CxS1YyFs.cjs +0 -1
- package/dist/index-DXIV-OAV.cjs +0 -1
- package/dist/index-DY4cro4C.js +0 -3995
- package/dist/index-DtsLJPQK.js +0 -1493
- package/dist/index-jVYlDMIh.cjs +0 -1
- package/dist/index-qHbYDYso.cjs +0 -1
- package/dist/index.vue_vue_type_style_index_0_scoped_f69cf49c_lang-Cek8Ghpc.cjs +0 -56
- package/dist/main-BrbcMu5X.cjs +0 -1
- package/dist/menu-BXTfsfTB.cjs +0 -21
- package/dist/menuIndex-BWim3TlH.js +0 -33
- package/dist/menuIndex-Cg6xI-jR.cjs +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as S, computed as
|
|
2
|
-
import { C as
|
|
3
|
-
import { _ as
|
|
4
|
-
const
|
|
1
|
+
import { ref as S, computed as se, watch as Pe, resolveComponent as je, createElementBlock as B, openBlock as Z, createVNode as x, onMounted as Ie, onUnmounted as Ke, Fragment as Ze, renderList as Be, createElementVNode as g, createCommentVNode as ue, toDisplayString as J, defineComponent as $e, normalizeStyle as Te, normalizeClass as Ce, nextTick as Se, onBeforeUnmount as Xe, withDirectives as Q, unref as N, withCtx as ke, createBlock as Je, isRef as re, vModelRadio as he, vShow as ge } from "vue";
|
|
2
|
+
import { C as Ge, V as v, M as W, T as te, Q as Ae, S as ze, a as $, R as We, P as pe, b as qe, B as me, c as Qe, d as et, e as tt, W as st, f as it, A as ot, g as nt, X as at, G as lt, h as de, i as rt, j as Fe, k as ht, D as ye, H as ct, l as Re, m as ut, n as pt, E as ve, o as dt } from "./threeModel.vue_vue_type_style_index_0_scoped_4a248817_lang-DZ9BnDSy.js";
|
|
3
|
+
import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
const Le = { type: "change" }, Me = { type: "start" }, Ne = { type: "end" }, ce = new We(), Oe = new pe(), mt = Math.cos(70 * qe.DEG2RAD), j = new v(), K = 2 * Math.PI, D = {
|
|
5
5
|
NONE: -1,
|
|
6
6
|
ROTATE: 0,
|
|
7
7
|
DOLLY: 1,
|
|
@@ -10,19 +10,19 @@ const Lt = { type: "change" }, Mt = { type: "start" }, Nt = { type: "end" }, ct
|
|
|
10
10
|
TOUCH_PAN: 4,
|
|
11
11
|
TOUCH_DOLLY_PAN: 5,
|
|
12
12
|
TOUCH_DOLLY_ROTATE: 6
|
|
13
|
-
},
|
|
14
|
-
class
|
|
13
|
+
}, be = 1e-6;
|
|
14
|
+
class ft extends Ge {
|
|
15
15
|
/**
|
|
16
16
|
* Constructs a new controls instance.
|
|
17
17
|
*
|
|
18
18
|
* @param {Object3D} object - The object that is managed by the controls.
|
|
19
19
|
* @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
|
|
20
20
|
*/
|
|
21
|
-
constructor(
|
|
22
|
-
super(
|
|
21
|
+
constructor(e, t = null) {
|
|
22
|
+
super(e, t), this.state = D.NONE, this.target = new v(), this.cursor = new v(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.keyRotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: W.ROTATE, MIDDLE: W.DOLLY, RIGHT: W.PAN }, this.touches = { ONE: te.ROTATE, TWO: te.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new v(), this._lastQuaternion = new Ae(), this._lastTargetPosition = new v(), this._quat = new Ae().setFromUnitVectors(e.up, new v(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new ze(), this._sphericalDelta = new ze(), this._scale = 1, this._panOffset = new v(), this._rotateStart = new $(), this._rotateEnd = new $(), this._rotateDelta = new $(), this._panStart = new $(), this._panEnd = new $(), this._panDelta = new $(), this._dollyStart = new $(), this._dollyEnd = new $(), this._dollyDelta = new $(), this._dollyDirection = new v(), this._mouse = new $(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = gt.bind(this), this._onPointerDown = _t.bind(this), this._onPointerUp = yt.bind(this), this._onContextMenu = xt.bind(this), this._onMouseWheel = wt.bind(this), this._onKeyDown = Pt.bind(this), this._onTouchStart = Mt.bind(this), this._onTouchMove = Et.bind(this), this._onMouseDown = vt.bind(this), this._onMouseMove = bt.bind(this), this._interceptControlDown = Dt.bind(this), this._interceptControlUp = Tt.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
|
|
23
23
|
}
|
|
24
|
-
connect(
|
|
25
|
-
super.connect(
|
|
24
|
+
connect(e) {
|
|
25
|
+
super.connect(e), this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
|
26
26
|
}
|
|
27
27
|
disconnect() {
|
|
28
28
|
this.domElement.removeEventListener("pointerdown", this._onPointerDown), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.domElement.removeEventListener("pointercancel", this._onPointerUp), this.domElement.removeEventListener("wheel", this._onMouseWheel), this.domElement.removeEventListener("contextmenu", this._onContextMenu), this.stopListenToKeyEvents(), this.domElement.getRootNode().removeEventListener("keydown", this._interceptControlDown, { capture: !0 }), this.domElement.style.touchAction = "auto";
|
|
@@ -60,8 +60,8 @@ class fe extends Gt {
|
|
|
60
60
|
*
|
|
61
61
|
* @param {HTMLDOMElement} domElement - The DOM element
|
|
62
62
|
*/
|
|
63
|
-
listenToKeyEvents(
|
|
64
|
-
|
|
63
|
+
listenToKeyEvents(e) {
|
|
64
|
+
e.addEventListener("keydown", this._onKeyDown), this._domElementKeyEvents = e;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
67
|
* Removes the key event listener previously defined with `listenToKeyEvents()`.
|
|
@@ -80,11 +80,11 @@ class fe extends Gt {
|
|
|
80
80
|
* was called, or the initial state.
|
|
81
81
|
*/
|
|
82
82
|
reset() {
|
|
83
|
-
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(
|
|
83
|
+
this.target.copy(this.target0), this.object.position.copy(this.position0), this.object.zoom = this.zoom0, this.object.updateProjectionMatrix(), this.dispatchEvent(Le), this.update(), this.state = D.NONE;
|
|
84
84
|
}
|
|
85
|
-
update(
|
|
86
|
-
const
|
|
87
|
-
j.copy(
|
|
85
|
+
update(e = null) {
|
|
86
|
+
const t = this.object.position;
|
|
87
|
+
j.copy(t).sub(this.target), j.applyQuaternion(this._quat), this._spherical.setFromVector3(j), this.autoRotate && this.state === D.NONE && this._rotateLeft(this._getAutoRotationAngle(e)), 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);
|
|
88
88
|
let i = this.minAzimuthAngle, n = this.maxAzimuthAngle;
|
|
89
89
|
isFinite(i) && isFinite(n) && (i < -Math.PI ? i += K : i > Math.PI && (i -= K), n < -Math.PI ? n += K : n > Math.PI && (n -= K), i <= n ? this._spherical.theta = Math.max(i, Math.min(n, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (i + n) / 2 ? Math.max(i, 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);
|
|
90
90
|
let u = !1;
|
|
@@ -94,7 +94,7 @@ class fe extends Gt {
|
|
|
94
94
|
const f = this._spherical.radius;
|
|
95
95
|
this._spherical.radius = this._clampDistance(this._spherical.radius * this._scale), u = f != this._spherical.radius;
|
|
96
96
|
}
|
|
97
|
-
if (j.setFromSpherical(this._spherical), j.applyQuaternion(this._quatInverse),
|
|
97
|
+
if (j.setFromSpherical(this._spherical), j.applyQuaternion(this._quatInverse), t.copy(this.target).add(j), this.object.lookAt(this.target), this.enableDamping === !0 ? (this._sphericalDelta.theta *= 1 - this.dampingFactor, this._sphericalDelta.phi *= 1 - this.dampingFactor, this._panOffset.multiplyScalar(1 - this.dampingFactor)) : (this._sphericalDelta.set(0, 0, 0), this._panOffset.set(0, 0, 0)), this.zoomToCursor && this._performCursorZoom) {
|
|
98
98
|
let f = null;
|
|
99
99
|
if (this.object.isPerspectiveCamera) {
|
|
100
100
|
const a = j.length();
|
|
@@ -110,193 +110,193 @@ class fe extends Gt {
|
|
|
110
110
|
w.unproject(this.object), this.object.position.sub(w).add(a), this.object.updateMatrixWorld(), f = j.length();
|
|
111
111
|
} else
|
|
112
112
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
|
|
113
|
-
f !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(f).add(this.object.position) : (
|
|
113
|
+
f !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(f).add(this.object.position) : (ce.origin.copy(this.object.position), ce.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(ce.direction)) < mt ? this.object.lookAt(this.target) : (Oe.setFromNormalAndCoplanarPoint(this.object.up, this.target), ce.intersectPlane(Oe, this.target))));
|
|
114
114
|
} else if (this.object.isOrthographicCamera) {
|
|
115
115
|
const f = this.object.zoom;
|
|
116
116
|
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), f !== this.object.zoom && (this.object.updateProjectionMatrix(), u = !0);
|
|
117
117
|
}
|
|
118
|
-
return this._scale = 1, this._performCursorZoom = !1, u || this._lastPosition.distanceToSquared(this.object.position) >
|
|
118
|
+
return this._scale = 1, this._performCursorZoom = !1, u || this._lastPosition.distanceToSquared(this.object.position) > be || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > be || this._lastTargetPosition.distanceToSquared(this.target) > be ? (this.dispatchEvent(Le), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
|
|
119
119
|
}
|
|
120
|
-
_getAutoRotationAngle(
|
|
121
|
-
return
|
|
120
|
+
_getAutoRotationAngle(e) {
|
|
121
|
+
return e !== null ? K / 60 * this.autoRotateSpeed * e : K / 60 / 60 * this.autoRotateSpeed;
|
|
122
122
|
}
|
|
123
|
-
_getZoomScale(
|
|
124
|
-
const
|
|
125
|
-
return Math.pow(0.95, this.zoomSpeed *
|
|
123
|
+
_getZoomScale(e) {
|
|
124
|
+
const t = Math.abs(e * 0.01);
|
|
125
|
+
return Math.pow(0.95, this.zoomSpeed * t);
|
|
126
126
|
}
|
|
127
|
-
_rotateLeft(
|
|
128
|
-
this._sphericalDelta.theta -=
|
|
127
|
+
_rotateLeft(e) {
|
|
128
|
+
this._sphericalDelta.theta -= e;
|
|
129
129
|
}
|
|
130
|
-
_rotateUp(
|
|
131
|
-
this._sphericalDelta.phi -=
|
|
130
|
+
_rotateUp(e) {
|
|
131
|
+
this._sphericalDelta.phi -= e;
|
|
132
132
|
}
|
|
133
|
-
_panLeft(
|
|
134
|
-
j.setFromMatrixColumn(
|
|
133
|
+
_panLeft(e, t) {
|
|
134
|
+
j.setFromMatrixColumn(t, 0), j.multiplyScalar(-e), this._panOffset.add(j);
|
|
135
135
|
}
|
|
136
|
-
_panUp(
|
|
137
|
-
this.screenSpacePanning === !0 ? j.setFromMatrixColumn(
|
|
136
|
+
_panUp(e, t) {
|
|
137
|
+
this.screenSpacePanning === !0 ? j.setFromMatrixColumn(t, 1) : (j.setFromMatrixColumn(t, 0), j.crossVectors(this.object.up, j)), j.multiplyScalar(e), this._panOffset.add(j);
|
|
138
138
|
}
|
|
139
139
|
// deltaX and deltaY are in pixels; right and down are positive
|
|
140
|
-
_pan(
|
|
140
|
+
_pan(e, t) {
|
|
141
141
|
const i = this.domElement;
|
|
142
142
|
if (this.object.isPerspectiveCamera) {
|
|
143
143
|
const n = this.object.position;
|
|
144
144
|
j.copy(n).sub(this.target);
|
|
145
145
|
let u = j.length();
|
|
146
|
-
u *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 *
|
|
147
|
-
} else this.object.isOrthographicCamera ? (this._panLeft(
|
|
146
|
+
u *= Math.tan(this.object.fov / 2 * Math.PI / 180), this._panLeft(2 * e * u / i.clientHeight, this.object.matrix), this._panUp(2 * t * u / i.clientHeight, this.object.matrix);
|
|
147
|
+
} else this.object.isOrthographicCamera ? (this._panLeft(e * (this.object.right - this.object.left) / this.object.zoom / i.clientWidth, this.object.matrix), this._panUp(t * (this.object.top - this.object.bottom) / this.object.zoom / i.clientHeight, this.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), this.enablePan = !1);
|
|
148
148
|
}
|
|
149
|
-
_dollyOut(
|
|
150
|
-
this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale /=
|
|
149
|
+
_dollyOut(e) {
|
|
150
|
+
this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale /= e : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), this.enableZoom = !1);
|
|
151
151
|
}
|
|
152
|
-
_dollyIn(
|
|
153
|
-
this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale *=
|
|
152
|
+
_dollyIn(e) {
|
|
153
|
+
this.object.isPerspectiveCamera || this.object.isOrthographicCamera ? this._scale *= e : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), this.enableZoom = !1);
|
|
154
154
|
}
|
|
155
|
-
_updateZoomParameters(
|
|
155
|
+
_updateZoomParameters(e, t) {
|
|
156
156
|
if (!this.zoomToCursor)
|
|
157
157
|
return;
|
|
158
158
|
this._performCursorZoom = !0;
|
|
159
|
-
const i = this.domElement.getBoundingClientRect(), n =
|
|
159
|
+
const i = this.domElement.getBoundingClientRect(), n = e - i.left, u = t - i.top, f = i.width, a = i.height;
|
|
160
160
|
this._mouse.x = n / f * 2 - 1, this._mouse.y = -(u / a) * 2 + 1, this._dollyDirection.set(this._mouse.x, this._mouse.y, 1).unproject(this.object).sub(this.object.position).normalize();
|
|
161
161
|
}
|
|
162
|
-
_clampDistance(
|
|
163
|
-
return Math.max(this.minDistance, Math.min(this.maxDistance,
|
|
162
|
+
_clampDistance(e) {
|
|
163
|
+
return Math.max(this.minDistance, Math.min(this.maxDistance, e));
|
|
164
164
|
}
|
|
165
165
|
//
|
|
166
166
|
// event callbacks - update the object state
|
|
167
167
|
//
|
|
168
|
-
_handleMouseDownRotate(
|
|
169
|
-
this._rotateStart.set(
|
|
168
|
+
_handleMouseDownRotate(e) {
|
|
169
|
+
this._rotateStart.set(e.clientX, e.clientY);
|
|
170
170
|
}
|
|
171
|
-
_handleMouseDownDolly(
|
|
172
|
-
this._updateZoomParameters(
|
|
171
|
+
_handleMouseDownDolly(e) {
|
|
172
|
+
this._updateZoomParameters(e.clientX, e.clientX), this._dollyStart.set(e.clientX, e.clientY);
|
|
173
173
|
}
|
|
174
|
-
_handleMouseDownPan(
|
|
175
|
-
this._panStart.set(
|
|
174
|
+
_handleMouseDownPan(e) {
|
|
175
|
+
this._panStart.set(e.clientX, e.clientY);
|
|
176
176
|
}
|
|
177
|
-
_handleMouseMoveRotate(
|
|
178
|
-
this._rotateEnd.set(
|
|
179
|
-
const
|
|
180
|
-
this._rotateLeft(K * this._rotateDelta.x /
|
|
177
|
+
_handleMouseMoveRotate(e) {
|
|
178
|
+
this._rotateEnd.set(e.clientX, e.clientY), this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
|
|
179
|
+
const t = this.domElement;
|
|
180
|
+
this._rotateLeft(K * this._rotateDelta.x / t.clientHeight), this._rotateUp(K * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd), this.update();
|
|
181
181
|
}
|
|
182
|
-
_handleMouseMoveDolly(
|
|
183
|
-
this._dollyEnd.set(
|
|
182
|
+
_handleMouseMoveDolly(e) {
|
|
183
|
+
this._dollyEnd.set(e.clientX, e.clientY), this._dollyDelta.subVectors(this._dollyEnd, this._dollyStart), this._dollyDelta.y > 0 ? this._dollyOut(this._getZoomScale(this._dollyDelta.y)) : this._dollyDelta.y < 0 && this._dollyIn(this._getZoomScale(this._dollyDelta.y)), this._dollyStart.copy(this._dollyEnd), this.update();
|
|
184
184
|
}
|
|
185
|
-
_handleMouseMovePan(
|
|
186
|
-
this._panEnd.set(
|
|
185
|
+
_handleMouseMovePan(e) {
|
|
186
|
+
this._panEnd.set(e.clientX, e.clientY), this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd), this.update();
|
|
187
187
|
}
|
|
188
|
-
_handleMouseWheel(
|
|
189
|
-
this._updateZoomParameters(
|
|
188
|
+
_handleMouseWheel(e) {
|
|
189
|
+
this._updateZoomParameters(e.clientX, e.clientY), e.deltaY < 0 ? this._dollyIn(this._getZoomScale(e.deltaY)) : e.deltaY > 0 && this._dollyOut(this._getZoomScale(e.deltaY)), this.update();
|
|
190
190
|
}
|
|
191
|
-
_handleKeyDown(
|
|
192
|
-
let
|
|
193
|
-
switch (
|
|
191
|
+
_handleKeyDown(e) {
|
|
192
|
+
let t = !1;
|
|
193
|
+
switch (e.code) {
|
|
194
194
|
case this.keys.UP:
|
|
195
|
-
|
|
195
|
+
e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(K * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, this.keyPanSpeed), t = !0;
|
|
196
196
|
break;
|
|
197
197
|
case this.keys.BOTTOM:
|
|
198
|
-
|
|
198
|
+
e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(-K * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, -this.keyPanSpeed), t = !0;
|
|
199
199
|
break;
|
|
200
200
|
case this.keys.LEFT:
|
|
201
|
-
|
|
201
|
+
e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(K * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(this.keyPanSpeed, 0), t = !0;
|
|
202
202
|
break;
|
|
203
203
|
case this.keys.RIGHT:
|
|
204
|
-
|
|
204
|
+
e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(-K * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(-this.keyPanSpeed, 0), t = !0;
|
|
205
205
|
break;
|
|
206
206
|
}
|
|
207
|
-
|
|
207
|
+
t && (e.preventDefault(), this.update());
|
|
208
208
|
}
|
|
209
|
-
_handleTouchStartRotate(
|
|
209
|
+
_handleTouchStartRotate(e) {
|
|
210
210
|
if (this._pointers.length === 1)
|
|
211
|
-
this._rotateStart.set(
|
|
211
|
+
this._rotateStart.set(e.pageX, e.pageY);
|
|
212
212
|
else {
|
|
213
|
-
const
|
|
213
|
+
const t = this._getSecondPointerPosition(e), i = 0.5 * (e.pageX + t.x), n = 0.5 * (e.pageY + t.y);
|
|
214
214
|
this._rotateStart.set(i, n);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
_handleTouchStartPan(
|
|
217
|
+
_handleTouchStartPan(e) {
|
|
218
218
|
if (this._pointers.length === 1)
|
|
219
|
-
this._panStart.set(
|
|
219
|
+
this._panStart.set(e.pageX, e.pageY);
|
|
220
220
|
else {
|
|
221
|
-
const
|
|
221
|
+
const t = this._getSecondPointerPosition(e), i = 0.5 * (e.pageX + t.x), n = 0.5 * (e.pageY + t.y);
|
|
222
222
|
this._panStart.set(i, n);
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
_handleTouchStartDolly(
|
|
226
|
-
const
|
|
225
|
+
_handleTouchStartDolly(e) {
|
|
226
|
+
const t = this._getSecondPointerPosition(e), i = e.pageX - t.x, n = e.pageY - t.y, u = Math.sqrt(i * i + n * n);
|
|
227
227
|
this._dollyStart.set(0, u);
|
|
228
228
|
}
|
|
229
|
-
_handleTouchStartDollyPan(
|
|
230
|
-
this.enableZoom && this._handleTouchStartDolly(
|
|
229
|
+
_handleTouchStartDollyPan(e) {
|
|
230
|
+
this.enableZoom && this._handleTouchStartDolly(e), this.enablePan && this._handleTouchStartPan(e);
|
|
231
231
|
}
|
|
232
|
-
_handleTouchStartDollyRotate(
|
|
233
|
-
this.enableZoom && this._handleTouchStartDolly(
|
|
232
|
+
_handleTouchStartDollyRotate(e) {
|
|
233
|
+
this.enableZoom && this._handleTouchStartDolly(e), this.enableRotate && this._handleTouchStartRotate(e);
|
|
234
234
|
}
|
|
235
|
-
_handleTouchMoveRotate(
|
|
235
|
+
_handleTouchMoveRotate(e) {
|
|
236
236
|
if (this._pointers.length == 1)
|
|
237
|
-
this._rotateEnd.set(
|
|
237
|
+
this._rotateEnd.set(e.pageX, e.pageY);
|
|
238
238
|
else {
|
|
239
|
-
const i = this._getSecondPointerPosition(
|
|
239
|
+
const i = this._getSecondPointerPosition(e), n = 0.5 * (e.pageX + i.x), u = 0.5 * (e.pageY + i.y);
|
|
240
240
|
this._rotateEnd.set(n, u);
|
|
241
241
|
}
|
|
242
242
|
this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
|
|
243
|
-
const
|
|
244
|
-
this._rotateLeft(K * this._rotateDelta.x /
|
|
243
|
+
const t = this.domElement;
|
|
244
|
+
this._rotateLeft(K * this._rotateDelta.x / t.clientHeight), this._rotateUp(K * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd);
|
|
245
245
|
}
|
|
246
|
-
_handleTouchMovePan(
|
|
246
|
+
_handleTouchMovePan(e) {
|
|
247
247
|
if (this._pointers.length === 1)
|
|
248
|
-
this._panEnd.set(
|
|
248
|
+
this._panEnd.set(e.pageX, e.pageY);
|
|
249
249
|
else {
|
|
250
|
-
const
|
|
250
|
+
const t = this._getSecondPointerPosition(e), i = 0.5 * (e.pageX + t.x), n = 0.5 * (e.pageY + t.y);
|
|
251
251
|
this._panEnd.set(i, n);
|
|
252
252
|
}
|
|
253
253
|
this._panDelta.subVectors(this._panEnd, this._panStart).multiplyScalar(this.panSpeed), this._pan(this._panDelta.x, this._panDelta.y), this._panStart.copy(this._panEnd);
|
|
254
254
|
}
|
|
255
|
-
_handleTouchMoveDolly(
|
|
256
|
-
const
|
|
255
|
+
_handleTouchMoveDolly(e) {
|
|
256
|
+
const t = this._getSecondPointerPosition(e), i = e.pageX - t.x, n = e.pageY - t.y, u = Math.sqrt(i * i + n * n);
|
|
257
257
|
this._dollyEnd.set(0, u), this._dollyDelta.set(0, Math.pow(this._dollyEnd.y / this._dollyStart.y, this.zoomSpeed)), this._dollyOut(this._dollyDelta.y), this._dollyStart.copy(this._dollyEnd);
|
|
258
|
-
const f = (
|
|
258
|
+
const f = (e.pageX + t.x) * 0.5, a = (e.pageY + t.y) * 0.5;
|
|
259
259
|
this._updateZoomParameters(f, a);
|
|
260
260
|
}
|
|
261
|
-
_handleTouchMoveDollyPan(
|
|
262
|
-
this.enableZoom && this._handleTouchMoveDolly(
|
|
261
|
+
_handleTouchMoveDollyPan(e) {
|
|
262
|
+
this.enableZoom && this._handleTouchMoveDolly(e), this.enablePan && this._handleTouchMovePan(e);
|
|
263
263
|
}
|
|
264
|
-
_handleTouchMoveDollyRotate(
|
|
265
|
-
this.enableZoom && this._handleTouchMoveDolly(
|
|
264
|
+
_handleTouchMoveDollyRotate(e) {
|
|
265
|
+
this.enableZoom && this._handleTouchMoveDolly(e), this.enableRotate && this._handleTouchMoveRotate(e);
|
|
266
266
|
}
|
|
267
267
|
// pointers
|
|
268
|
-
_addPointer(
|
|
269
|
-
this._pointers.push(
|
|
268
|
+
_addPointer(e) {
|
|
269
|
+
this._pointers.push(e.pointerId);
|
|
270
270
|
}
|
|
271
|
-
_removePointer(
|
|
272
|
-
delete this._pointerPositions[
|
|
273
|
-
for (let
|
|
274
|
-
if (this._pointers[
|
|
275
|
-
this._pointers.splice(
|
|
271
|
+
_removePointer(e) {
|
|
272
|
+
delete this._pointerPositions[e.pointerId];
|
|
273
|
+
for (let t = 0; t < this._pointers.length; t++)
|
|
274
|
+
if (this._pointers[t] == e.pointerId) {
|
|
275
|
+
this._pointers.splice(t, 1);
|
|
276
276
|
return;
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
|
-
_isTrackingPointer(
|
|
280
|
-
for (let
|
|
281
|
-
if (this._pointers[
|
|
279
|
+
_isTrackingPointer(e) {
|
|
280
|
+
for (let t = 0; t < this._pointers.length; t++)
|
|
281
|
+
if (this._pointers[t] == e.pointerId) return !0;
|
|
282
282
|
return !1;
|
|
283
283
|
}
|
|
284
|
-
_trackPointer(
|
|
285
|
-
let
|
|
286
|
-
|
|
284
|
+
_trackPointer(e) {
|
|
285
|
+
let t = this._pointerPositions[e.pointerId];
|
|
286
|
+
t === void 0 && (t = new $(), this._pointerPositions[e.pointerId] = t), t.set(e.pageX, e.pageY);
|
|
287
287
|
}
|
|
288
|
-
_getSecondPointerPosition(
|
|
289
|
-
const
|
|
290
|
-
return this._pointerPositions[
|
|
288
|
+
_getSecondPointerPosition(e) {
|
|
289
|
+
const t = e.pointerId === this._pointers[0] ? this._pointers[1] : this._pointers[0];
|
|
290
|
+
return this._pointerPositions[t];
|
|
291
291
|
}
|
|
292
292
|
//
|
|
293
|
-
_customWheelEvent(
|
|
294
|
-
const
|
|
295
|
-
clientX:
|
|
296
|
-
clientY:
|
|
297
|
-
deltaY:
|
|
293
|
+
_customWheelEvent(e) {
|
|
294
|
+
const t = e.deltaMode, i = {
|
|
295
|
+
clientX: e.clientX,
|
|
296
|
+
clientY: e.clientY,
|
|
297
|
+
deltaY: e.deltaY
|
|
298
298
|
};
|
|
299
|
-
switch (
|
|
299
|
+
switch (t) {
|
|
300
300
|
case 1:
|
|
301
301
|
i.deltaY *= 16;
|
|
302
302
|
break;
|
|
@@ -304,42 +304,42 @@ class fe extends Gt {
|
|
|
304
304
|
i.deltaY *= 100;
|
|
305
305
|
break;
|
|
306
306
|
}
|
|
307
|
-
return
|
|
307
|
+
return e.ctrlKey && !this._controlActive && (i.deltaY *= 10), i;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function _t(o) {
|
|
311
311
|
this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(o.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(o) && (this._addPointer(o), o.pointerType === "touch" ? this._onTouchStart(o) : this._onMouseDown(o)));
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function gt(o) {
|
|
314
314
|
this.enabled !== !1 && (o.pointerType === "touch" ? this._onTouchMove(o) : this._onMouseMove(o));
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function yt(o) {
|
|
317
317
|
switch (this._removePointer(o), this._pointers.length) {
|
|
318
318
|
case 0:
|
|
319
|
-
this.domElement.releasePointerCapture(o.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(
|
|
319
|
+
this.domElement.releasePointerCapture(o.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(Ne), this.state = D.NONE;
|
|
320
320
|
break;
|
|
321
321
|
case 1:
|
|
322
|
-
const
|
|
323
|
-
this._onTouchStart({ pointerId:
|
|
322
|
+
const e = this._pointers[0], t = this._pointerPositions[e];
|
|
323
|
+
this._onTouchStart({ pointerId: e, pageX: t.x, pageY: t.y });
|
|
324
324
|
break;
|
|
325
325
|
}
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
let
|
|
327
|
+
function vt(o) {
|
|
328
|
+
let e;
|
|
329
329
|
switch (o.button) {
|
|
330
330
|
case 0:
|
|
331
|
-
|
|
331
|
+
e = this.mouseButtons.LEFT;
|
|
332
332
|
break;
|
|
333
333
|
case 1:
|
|
334
|
-
|
|
334
|
+
e = this.mouseButtons.MIDDLE;
|
|
335
335
|
break;
|
|
336
336
|
case 2:
|
|
337
|
-
|
|
337
|
+
e = this.mouseButtons.RIGHT;
|
|
338
338
|
break;
|
|
339
339
|
default:
|
|
340
|
-
|
|
340
|
+
e = -1;
|
|
341
341
|
}
|
|
342
|
-
switch (
|
|
342
|
+
switch (e) {
|
|
343
343
|
case W.DOLLY:
|
|
344
344
|
if (this.enableZoom === !1) return;
|
|
345
345
|
this._handleMouseDownDolly(o), this.state = D.DOLLY;
|
|
@@ -365,9 +365,9 @@ function ve(o) {
|
|
|
365
365
|
default:
|
|
366
366
|
this.state = D.NONE;
|
|
367
367
|
}
|
|
368
|
-
this.state !== D.NONE && this.dispatchEvent(
|
|
368
|
+
this.state !== D.NONE && this.dispatchEvent(Me);
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function bt(o) {
|
|
371
371
|
switch (this.state) {
|
|
372
372
|
case D.ROTATE:
|
|
373
373
|
if (this.enableRotate === !1) return;
|
|
@@ -383,21 +383,21 @@ function be(o) {
|
|
|
383
383
|
break;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
this.enabled === !1 || this.enableZoom === !1 || this.state !== D.NONE || (o.preventDefault(), this.dispatchEvent(
|
|
386
|
+
function wt(o) {
|
|
387
|
+
this.enabled === !1 || this.enableZoom === !1 || this.state !== D.NONE || (o.preventDefault(), this.dispatchEvent(Me), this._handleMouseWheel(this._customWheelEvent(o)), this.dispatchEvent(Ne));
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function Pt(o) {
|
|
390
390
|
this.enabled !== !1 && this._handleKeyDown(o);
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Mt(o) {
|
|
393
393
|
switch (this._trackPointer(o), this._pointers.length) {
|
|
394
394
|
case 1:
|
|
395
395
|
switch (this.touches.ONE) {
|
|
396
|
-
case
|
|
396
|
+
case te.ROTATE:
|
|
397
397
|
if (this.enableRotate === !1) return;
|
|
398
398
|
this._handleTouchStartRotate(o), this.state = D.TOUCH_ROTATE;
|
|
399
399
|
break;
|
|
400
|
-
case
|
|
400
|
+
case te.PAN:
|
|
401
401
|
if (this.enablePan === !1) return;
|
|
402
402
|
this._handleTouchStartPan(o), this.state = D.TOUCH_PAN;
|
|
403
403
|
break;
|
|
@@ -407,11 +407,11 @@ function Me(o) {
|
|
|
407
407
|
break;
|
|
408
408
|
case 2:
|
|
409
409
|
switch (this.touches.TWO) {
|
|
410
|
-
case
|
|
410
|
+
case te.DOLLY_PAN:
|
|
411
411
|
if (this.enableZoom === !1 && this.enablePan === !1) return;
|
|
412
412
|
this._handleTouchStartDollyPan(o), this.state = D.TOUCH_DOLLY_PAN;
|
|
413
413
|
break;
|
|
414
|
-
case
|
|
414
|
+
case te.DOLLY_ROTATE:
|
|
415
415
|
if (this.enableZoom === !1 && this.enableRotate === !1) return;
|
|
416
416
|
this._handleTouchStartDollyRotate(o), this.state = D.TOUCH_DOLLY_ROTATE;
|
|
417
417
|
break;
|
|
@@ -422,9 +422,9 @@ function Me(o) {
|
|
|
422
422
|
default:
|
|
423
423
|
this.state = D.NONE;
|
|
424
424
|
}
|
|
425
|
-
this.state !== D.NONE && this.dispatchEvent(
|
|
425
|
+
this.state !== D.NONE && this.dispatchEvent(Me);
|
|
426
426
|
}
|
|
427
|
-
function
|
|
427
|
+
function Et(o) {
|
|
428
428
|
switch (this._trackPointer(o), this.state) {
|
|
429
429
|
case D.TOUCH_ROTATE:
|
|
430
430
|
if (this.enableRotate === !1) return;
|
|
@@ -446,29 +446,29 @@ function Ee(o) {
|
|
|
446
446
|
this.state = D.NONE;
|
|
447
447
|
}
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function xt(o) {
|
|
450
450
|
this.enabled !== !1 && o.preventDefault();
|
|
451
451
|
}
|
|
452
|
-
function
|
|
452
|
+
function Dt(o) {
|
|
453
453
|
o.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
454
454
|
}
|
|
455
|
-
function
|
|
455
|
+
function Tt(o) {
|
|
456
456
|
o.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
|
457
457
|
}
|
|
458
|
-
function
|
|
459
|
-
let
|
|
458
|
+
function Ct(o) {
|
|
459
|
+
let e = null, t = null, i = null, n = null, u = null, f = null, a = null, b = null;
|
|
460
460
|
const w = S([]), T = S(new v()), I = S(new v()), L = () => {
|
|
461
461
|
if (!o.value) return;
|
|
462
|
-
|
|
462
|
+
e = new Qe(), e.background = new et(15790320);
|
|
463
463
|
const p = o.value;
|
|
464
|
-
|
|
464
|
+
t = new tt(75, p.clientWidth / p.clientHeight, 0.1, 1e4), t.position.set(8, -8, 6), t.up.set(0, 0, 1), t.lookAt(0, 0, 0), i = new st({
|
|
465
465
|
antialias: !0,
|
|
466
466
|
alpha: !0
|
|
467
|
-
}), i.setSize(p.clientWidth, p.clientHeight), i.localClippingEnabled = !0, i.shadowMap.enabled = !0, i.shadowMap.type =
|
|
467
|
+
}), i.setSize(p.clientWidth, p.clientHeight), i.localClippingEnabled = !0, i.shadowMap.enabled = !0, i.shadowMap.type = it, i.toneMapping = ot, i.toneMappingExposure = 1, i.outputColorSpace = nt, p.appendChild(i.domElement), n = new ft(t, i.domElement), n.enableDamping = !0, n.dampingFactor = 0.05, n.mouseButtons = {
|
|
468
468
|
LEFT: W.ROTATE,
|
|
469
469
|
MIDDLE: W.PAN,
|
|
470
470
|
RIGHT: null
|
|
471
|
-
}, n.panSpeed = 0.7, u = new
|
|
471
|
+
}, n.panSpeed = 0.7, u = new at(t, i, {
|
|
472
472
|
container: p,
|
|
473
473
|
type: "cube",
|
|
474
474
|
placement: "top-right",
|
|
@@ -500,19 +500,19 @@ function Ce(o) {
|
|
|
500
500
|
}
|
|
501
501
|
}), u.attachControls(n), _(), s();
|
|
502
502
|
}, h = (p, c) => {
|
|
503
|
-
a && (
|
|
503
|
+
a && (e.remove(a), a.dispose()), b && (e.remove(b), b.geometry.dispose(), b.material.dispose());
|
|
504
504
|
const M = Math.min(Math.max(Math.floor(p / 20), 30), 40);
|
|
505
|
-
a = new
|
|
506
|
-
const H = new
|
|
505
|
+
a = new lt(p, M, 13421772, 14540253), a.rotateX(Math.PI / 2), a.position.copy(c), e.add(a);
|
|
506
|
+
const H = new de(p, p), l = new rt({
|
|
507
507
|
opacity: 0.3,
|
|
508
508
|
// 阴影透明度
|
|
509
509
|
color: 0
|
|
510
510
|
});
|
|
511
|
-
b = new
|
|
511
|
+
b = new Fe(H, l), b.position.copy(c), b.position.z -= 0.01, b.receiveShadow = !0, e.add(b);
|
|
512
512
|
}, C = () => {
|
|
513
513
|
if (w.value.length === 0)
|
|
514
514
|
return;
|
|
515
|
-
const p = new
|
|
515
|
+
const p = new me();
|
|
516
516
|
w.value.forEach((r) => {
|
|
517
517
|
p.expandByObject(r);
|
|
518
518
|
});
|
|
@@ -524,22 +524,22 @@ function Ce(o) {
|
|
|
524
524
|
);
|
|
525
525
|
h(l, P);
|
|
526
526
|
}, _ = () => {
|
|
527
|
-
const p = new
|
|
528
|
-
|
|
529
|
-
const c = new
|
|
530
|
-
c.position.set(10, 10, 8), c.castShadow = !0, c.shadow.mapSize.width = 4096, c.shadow.mapSize.height = 4096, c.shadow.camera.near = 0.5, c.shadow.camera.far = 50, c.shadow.camera.left = -50, c.shadow.camera.right = 50, c.shadow.camera.top = 50, c.shadow.camera.bottom = -50,
|
|
531
|
-
const M = new
|
|
532
|
-
M.position.set(-8, -8, 6),
|
|
533
|
-
const H = new
|
|
534
|
-
H.position.set(0, -15, 2),
|
|
535
|
-
const l = new
|
|
536
|
-
|
|
537
|
-
const P = new
|
|
538
|
-
P.position.set(15, 15, 15),
|
|
539
|
-
const r = new
|
|
540
|
-
r.position.set(-15, -15, 15),
|
|
527
|
+
const p = new ht(4210752, 0.6);
|
|
528
|
+
e.add(p);
|
|
529
|
+
const c = new ye(16777215, 2);
|
|
530
|
+
c.position.set(10, 10, 8), c.castShadow = !0, c.shadow.mapSize.width = 4096, c.shadow.mapSize.height = 4096, c.shadow.camera.near = 0.5, c.shadow.camera.far = 50, c.shadow.camera.left = -50, c.shadow.camera.right = 50, c.shadow.camera.top = 50, c.shadow.camera.bottom = -50, e.add(c);
|
|
531
|
+
const M = new ye(16777215, 0.8);
|
|
532
|
+
M.position.set(-8, -8, 6), e.add(M);
|
|
533
|
+
const H = new ye(16777215, 0.6);
|
|
534
|
+
H.position.set(0, -15, 2), e.add(H);
|
|
535
|
+
const l = new ct(16777215, 4473924, 0.8);
|
|
536
|
+
e.add(l);
|
|
537
|
+
const P = new Re(16777215, 1, 50);
|
|
538
|
+
P.position.set(15, 15, 15), e.add(P);
|
|
539
|
+
const r = new Re(16777215, 0.5, 50);
|
|
540
|
+
r.position.set(-15, -15, 15), e.add(r);
|
|
541
541
|
}, s = () => {
|
|
542
|
-
f = requestAnimationFrame(s), n && n.update(), i &&
|
|
542
|
+
f = requestAnimationFrame(s), n && n.update(), i && e && t && i.render(e, t), u && u.render();
|
|
543
543
|
}, d = (p) => {
|
|
544
544
|
[
|
|
545
545
|
"map",
|
|
@@ -571,36 +571,36 @@ function Ce(o) {
|
|
|
571
571
|
// 方法
|
|
572
572
|
initThreeJS: L,
|
|
573
573
|
handleResize: () => {
|
|
574
|
-
if (!o.value || !
|
|
574
|
+
if (!o.value || !t || !i || !u) return;
|
|
575
575
|
const p = o.value, c = p.clientWidth, M = p.clientHeight;
|
|
576
|
-
|
|
576
|
+
t.aspect = c / M, t.updateProjectionMatrix(), i.setSize(c, M), u.update();
|
|
577
577
|
},
|
|
578
578
|
fitCameraToAllModels: () => {
|
|
579
|
-
if (!
|
|
580
|
-
const p = new
|
|
579
|
+
if (!t || !n || w.value.length === 0) return;
|
|
580
|
+
const p = new me();
|
|
581
581
|
w.value.forEach((r) => {
|
|
582
582
|
p.expandByObject(r);
|
|
583
583
|
});
|
|
584
584
|
const c = p.getSize(new v()), M = p.getCenter(new v()), l = Math.max(c.x, c.y, c.z) * 0.8, P = new v(M.x + l, M.y - l, M.z + l);
|
|
585
|
-
|
|
585
|
+
t.position.copy(P), t.lookAt(M), n.target.copy(M), n.update(), T.value.copy(P), I.value.copy(M), C();
|
|
586
586
|
},
|
|
587
587
|
getThreeJSObjects: () => ({
|
|
588
|
-
scene:
|
|
589
|
-
camera:
|
|
588
|
+
scene: e,
|
|
589
|
+
camera: t,
|
|
590
590
|
renderer: i,
|
|
591
591
|
controls: n,
|
|
592
592
|
gizmo: u
|
|
593
593
|
}),
|
|
594
594
|
clearAllModels: () => {
|
|
595
|
-
if (!
|
|
595
|
+
if (!e) return;
|
|
596
596
|
w.value.forEach((c) => {
|
|
597
|
-
|
|
597
|
+
e.remove(c), y(c);
|
|
598
598
|
});
|
|
599
599
|
const p = [];
|
|
600
|
-
|
|
600
|
+
e.children.forEach((c) => {
|
|
601
601
|
!c.isLight && !c.isCamera && c.type !== "GridHelper" && c !== b && p.push(c);
|
|
602
602
|
}), p.forEach((c) => {
|
|
603
|
-
|
|
603
|
+
e.remove(c), y(c);
|
|
604
604
|
}), w.value = [], C();
|
|
605
605
|
},
|
|
606
606
|
cleanup: () => {
|
|
@@ -609,8 +609,8 @@ function Ce(o) {
|
|
|
609
609
|
updateGridForModels: C
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
function
|
|
613
|
-
const
|
|
612
|
+
function St(o, e) {
|
|
613
|
+
const t = S(!1);
|
|
614
614
|
let i = null, n = 12700, u = new v(), f = new v(), a = new v(), b = 0, w = null;
|
|
615
615
|
const T = (s) => s < 0.5 ? 4 * s * s * s : 1 - Math.pow(-2 * s + 2, 3) / 2, I = (s) => {
|
|
616
616
|
const d = new v(), y = b * 1.2, z = new v(a.x + y, a.y, a.z), V = new v(a.x, a.y + y, a.z), O = new v(a.x, a.y - y, a.z);
|
|
@@ -640,12 +640,12 @@ function Se(o, t) {
|
|
|
640
640
|
const V = I(z);
|
|
641
641
|
s.position.copy(V), s.lookAt(a), d.target.copy(a), w = requestAnimationFrame(L);
|
|
642
642
|
}, h = () => {
|
|
643
|
-
if (
|
|
643
|
+
if (e.value.length === 0) return;
|
|
644
644
|
const { camera: s, controls: d } = o();
|
|
645
645
|
if (!s || !d) return;
|
|
646
646
|
u.copy(s.position), f.copy(d.target);
|
|
647
|
-
const y = new
|
|
648
|
-
|
|
647
|
+
const y = new me();
|
|
648
|
+
e.value.forEach((c) => {
|
|
649
649
|
y.expandByObject(c);
|
|
650
650
|
});
|
|
651
651
|
const z = y.getSize(new v());
|
|
@@ -654,19 +654,19 @@ function Se(o, t) {
|
|
|
654
654
|
d.enabled = !1;
|
|
655
655
|
const O = s.position.clone(), U = 1e3, Y = Date.now(), p = () => {
|
|
656
656
|
const c = Date.now() - Y, M = Math.min(c / U, 1), H = T(M);
|
|
657
|
-
s.position.lerpVectors(O, V, H), s.lookAt(a), d.target.copy(a), M < 1 ? requestAnimationFrame(p) : (
|
|
657
|
+
s.position.lerpVectors(O, V, H), s.lookAt(a), d.target.copy(a), M < 1 ? requestAnimationFrame(p) : (t.value = !0, i = null, L());
|
|
658
658
|
};
|
|
659
659
|
p();
|
|
660
660
|
}, C = () => {
|
|
661
|
-
|
|
661
|
+
t.value = !1, i = null, w && (cancelAnimationFrame(w), w = null);
|
|
662
662
|
const { controls: s } = o();
|
|
663
663
|
s && (s.enabled = !0, s.target.copy(f));
|
|
664
664
|
};
|
|
665
665
|
return {
|
|
666
|
-
isAnimating:
|
|
666
|
+
isAnimating: t,
|
|
667
667
|
toggleAnimation: () => {
|
|
668
|
-
if (
|
|
669
|
-
|
|
668
|
+
if (t.value) {
|
|
669
|
+
t.value = !1, i = null, w && (cancelAnimationFrame(w), w = null);
|
|
670
670
|
const { camera: s, controls: d } = o();
|
|
671
671
|
if (!s || !d) return;
|
|
672
672
|
d.enabled = !0;
|
|
@@ -682,33 +682,33 @@ function Se(o, t) {
|
|
|
682
682
|
stopAnimation: C
|
|
683
683
|
};
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
const
|
|
687
|
-
let n = [], u = [], f = new
|
|
685
|
+
function kt(o, e) {
|
|
686
|
+
const t = S(!1), i = S("none");
|
|
687
|
+
let n = [], u = [], f = new me(), a = new v();
|
|
688
688
|
const b = () => {
|
|
689
689
|
n = [
|
|
690
|
-
new
|
|
690
|
+
new pe(new v(1, 0, 0), 0),
|
|
691
691
|
// X轴平面
|
|
692
|
-
new
|
|
692
|
+
new pe(new v(0, 1, 0), 0),
|
|
693
693
|
// Y轴平面
|
|
694
|
-
new
|
|
694
|
+
new pe(new v(0, 0, 1), 0)
|
|
695
695
|
// Z轴平面
|
|
696
696
|
];
|
|
697
697
|
}, w = () => {
|
|
698
|
-
f.makeEmpty(),
|
|
698
|
+
f.makeEmpty(), e.value.forEach((_) => {
|
|
699
699
|
f.expandByObject(_);
|
|
700
700
|
}), a = f.getCenter(new v());
|
|
701
701
|
}, T = (_) => {
|
|
702
702
|
const s = f.getSize(new v());
|
|
703
703
|
let d, y, z;
|
|
704
|
-
_ === "x" ? (d = new
|
|
705
|
-
const V = new
|
|
704
|
+
_ === "x" ? (d = new de(s.z * 1.2, s.y * 1.2), y = new v(a.x, a.y, a.z), z = new ve(0, Math.PI / 2, 0)) : _ === "y" ? (d = new de(s.x * 1.2, s.z * 1.2), y = new v(a.x, a.y, a.z), z = new ve(Math.PI / 2, 0, 0)) : _ === "z" && (d = new de(s.x * 1.2, s.y * 1.2), y = new v(a.x, a.y, a.z), z = new ve(0, 0, 0));
|
|
705
|
+
const V = new ut({
|
|
706
706
|
color: 8900331,
|
|
707
707
|
transparent: !0,
|
|
708
708
|
opacity: 0.3,
|
|
709
|
-
side:
|
|
709
|
+
side: pt,
|
|
710
710
|
depthWrite: !1
|
|
711
|
-
}), O = new
|
|
711
|
+
}), O = new Fe(d, V);
|
|
712
712
|
return O.position.copy(y), O.rotation.copy(z), O;
|
|
713
713
|
}, I = () => {
|
|
714
714
|
if (L(), h(), i.value === "none")
|
|
@@ -716,7 +716,7 @@ function ke(o, t) {
|
|
|
716
716
|
w();
|
|
717
717
|
let _ = null;
|
|
718
718
|
if (i.value === "x" ? (n[0].constant = -a.x, _ = n[0]) : i.value === "y" ? (n[1].constant = -a.y, _ = n[1]) : i.value === "z" && (n[2].constant = -a.z, _ = n[2]), _) {
|
|
719
|
-
|
|
719
|
+
e.value.forEach((d) => {
|
|
720
720
|
d.traverse((y) => {
|
|
721
721
|
y.isMesh && y.material && (Array.isArray(y.material) ? y.material.forEach((z) => {
|
|
722
722
|
z.clippingPlanes = [_];
|
|
@@ -730,7 +730,7 @@ function ke(o, t) {
|
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
732
|
}, L = () => {
|
|
733
|
-
|
|
733
|
+
e.value.forEach((_) => {
|
|
734
734
|
_.traverse((s) => {
|
|
735
735
|
s.isMesh && s.material && (Array.isArray(s.material) ? s.material.forEach((d) => {
|
|
736
736
|
d.clippingPlanes = [];
|
|
@@ -744,17 +744,17 @@ function ke(o, t) {
|
|
|
744
744
|
}), u = [];
|
|
745
745
|
};
|
|
746
746
|
return {
|
|
747
|
-
isClipping:
|
|
747
|
+
isClipping: t,
|
|
748
748
|
activeClippingAxis: i,
|
|
749
749
|
toggleClipping: () => {
|
|
750
|
-
|
|
750
|
+
t.value = !t.value, t.value ? (b(), e.value.length > 0 && w()) : (i.value = "none", L(), h());
|
|
751
751
|
},
|
|
752
752
|
updateClippingPlanes: I,
|
|
753
753
|
clearClippingPlanes: L,
|
|
754
754
|
clearClippingMeshes: h
|
|
755
755
|
};
|
|
756
756
|
}
|
|
757
|
-
const
|
|
757
|
+
const At = { class: "panel-content" }, zt = "id", Rt = {
|
|
758
758
|
__name: "urdfTree",
|
|
759
759
|
props: {
|
|
760
760
|
model: Object,
|
|
@@ -769,8 +769,8 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
769
769
|
}
|
|
770
770
|
},
|
|
771
771
|
emits: ["nodeClick"],
|
|
772
|
-
setup(o, { emit:
|
|
773
|
-
const
|
|
772
|
+
setup(o, { emit: e }) {
|
|
773
|
+
const t = o, i = e, n = S([]), u = {
|
|
774
774
|
children: "children",
|
|
775
775
|
label: "label"
|
|
776
776
|
}, f = (h) => {
|
|
@@ -821,48 +821,49 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
821
821
|
_.push(...d);
|
|
822
822
|
}
|
|
823
823
|
}), _.slice(0, C + 1);
|
|
824
|
-
}, I =
|
|
825
|
-
return
|
|
824
|
+
}, I = se(() => !n.value || n.value.length === 0 ? [] : t.expandStrategy === "firstLevel" ? T(n.value, t.maxExpandCount) : w(n.value, t.maxExpandCount)), L = se(() => t != null && t.model ? b(t.model) : []);
|
|
825
|
+
return Pe(
|
|
826
826
|
L,
|
|
827
827
|
(h) => {
|
|
828
828
|
n.value = JSON.parse(JSON.stringify(h));
|
|
829
829
|
},
|
|
830
830
|
{ immediate: !0 }
|
|
831
831
|
), (h, C) => {
|
|
832
|
-
const _ =
|
|
833
|
-
return Z(), B("div",
|
|
832
|
+
const _ = je("el-tree");
|
|
833
|
+
return Z(), B("div", At, [
|
|
834
834
|
x(_, {
|
|
835
835
|
data: n.value,
|
|
836
836
|
props: u,
|
|
837
837
|
"default-expanded-keys": I.value,
|
|
838
|
-
"node-key":
|
|
838
|
+
"node-key": zt,
|
|
839
839
|
onNodeClick: f
|
|
840
840
|
}, null, 8, ["data", "default-expanded-keys"])
|
|
841
841
|
]);
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
|
-
},
|
|
844
|
+
}, Lt = /* @__PURE__ */ fe(Rt, [["__scopeId", "data-v-290ff4e1"]]), Ot = { class: "panel-content" }, jt = {
|
|
845
845
|
key: 0,
|
|
846
846
|
class: "joints-list"
|
|
847
|
-
},
|
|
847
|
+
}, It = { class: "joint-info-row" }, Ft = { class: "joint-left" }, Nt = { class: "joint-name" }, Ut = { class: "joint-range" }, Yt = { class: "joint-type" }, Vt = {
|
|
848
848
|
key: 0,
|
|
849
849
|
class: "joint-control-row"
|
|
850
|
-
},
|
|
850
|
+
}, Ht = { class: "slider-container" }, Kt = ["min", "max", "value", "onInput", "disabled"], Zt = { class: "value-display" }, Bt = { class: "joint-value" }, $t = { class: "unit" }, Xt = {
|
|
851
851
|
key: 1,
|
|
852
852
|
class: "empty-state"
|
|
853
|
-
},
|
|
853
|
+
}, Jt = 1e3, we = 60, Gt = {
|
|
854
854
|
__name: "jointPanel",
|
|
855
855
|
props: {
|
|
856
856
|
model: Object,
|
|
857
857
|
scene: Object,
|
|
858
858
|
animationData: Array
|
|
859
859
|
},
|
|
860
|
-
setup(o, { expose:
|
|
861
|
-
const
|
|
860
|
+
setup(o, { expose: e }) {
|
|
861
|
+
const t = o;
|
|
862
862
|
S(!0);
|
|
863
|
-
const i = S([]), n = S(null), u = S(!1), f = S(!1), a = S(0), b = S(0), w = S(null), T = S(1), I = () =>
|
|
864
|
-
|
|
865
|
-
|
|
863
|
+
const i = S([]), n = S(null), u = S(!1), f = S(!1), a = S(0), b = S(0), w = S(null), T = S(1), I = () => Jt / we / T.value;
|
|
864
|
+
let L = [];
|
|
865
|
+
Pe(
|
|
866
|
+
() => t.animationData,
|
|
866
867
|
(l) => {
|
|
867
868
|
l && l.length > 0 && (L = l);
|
|
868
869
|
},
|
|
@@ -900,18 +901,18 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
900
901
|
r.currentValue = F;
|
|
901
902
|
} else
|
|
902
903
|
r.currentValue = E;
|
|
903
|
-
|
|
904
|
+
t.model && t.model.setJointValue ? t.model.setJointValue(l, r.currentValue) : r.urdfJoint && r.urdfJoint.setJointValue(r.currentValue);
|
|
904
905
|
}, s = (l) => {
|
|
905
906
|
l && Object.keys(l).forEach((P) => {
|
|
906
907
|
const r = l[P], E = i.value.find((F) => F.name === P);
|
|
907
|
-
E && (E.currentValue = r,
|
|
908
|
+
E && (E.currentValue = r, t.model && t.model.setJointValue ? t.model.setJointValue(P, r) : E.urdfJoint && E.urdfJoint.setJointValue(r));
|
|
908
909
|
});
|
|
909
910
|
}, d = (l, P, r) => l + (P - l) * r, y = (l, P, r) => {
|
|
910
911
|
if (!l || !P) return l || P;
|
|
911
912
|
const E = {};
|
|
912
913
|
return Object.keys(l).forEach((F) => {
|
|
913
|
-
const G = l[F],
|
|
914
|
-
E[F] = d(G,
|
|
914
|
+
const G = l[F], ee = P[F];
|
|
915
|
+
E[F] = d(G, ee || G, r);
|
|
915
916
|
}), E;
|
|
916
917
|
}, z = () => {
|
|
917
918
|
if (L.length === 0) {
|
|
@@ -921,13 +922,13 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
921
922
|
u.value = !0, f.value = !1;
|
|
922
923
|
const l = () => {
|
|
923
924
|
if (!u.value || f.value) return;
|
|
924
|
-
const P = b.value /
|
|
925
|
+
const P = b.value / we, r = L[a.value], E = L[a.value + 1];
|
|
925
926
|
if (E) {
|
|
926
927
|
const F = y(r, E, P);
|
|
927
928
|
s(F);
|
|
928
929
|
} else
|
|
929
930
|
s(r);
|
|
930
|
-
if (b.value++, b.value >=
|
|
931
|
+
if (b.value++, b.value >= we && (b.value = 0, a.value++, a.value >= L.length - 1)) {
|
|
931
932
|
O();
|
|
932
933
|
return;
|
|
933
934
|
}
|
|
@@ -939,7 +940,7 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
939
940
|
}, O = () => {
|
|
940
941
|
u.value = !1, f.value = !1, T.value = 1, w.value && (clearTimeout(w.value), w.value = null);
|
|
941
942
|
};
|
|
942
|
-
|
|
943
|
+
e({
|
|
943
944
|
startAnimation: z,
|
|
944
945
|
pauseAnimation: V,
|
|
945
946
|
stopAnimation: O,
|
|
@@ -954,15 +955,15 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
954
955
|
fastBackward: () => {
|
|
955
956
|
T.value > 0.25 && (T.value = Math.max(0.25, T.value / 2));
|
|
956
957
|
}
|
|
957
|
-
}),
|
|
958
|
-
() =>
|
|
958
|
+
}), Pe(
|
|
959
|
+
() => t.model,
|
|
959
960
|
(l) => {
|
|
960
961
|
l ? i.value = C(l) : i.value = [];
|
|
961
962
|
},
|
|
962
963
|
{ immediate: !0 }
|
|
963
964
|
);
|
|
964
965
|
const c = () => {
|
|
965
|
-
!
|
|
966
|
+
!t.model || u.value && !f.value || i.value.forEach((l) => {
|
|
966
967
|
l.urdfJoint && l.urdfJoint.angle !== void 0 && (l.currentValue = l.urdfJoint.angle);
|
|
967
968
|
});
|
|
968
969
|
}, M = () => {
|
|
@@ -973,51 +974,51 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
973
974
|
}, H = () => {
|
|
974
975
|
n.value && (cancelAnimationFrame(n.value), n.value = null);
|
|
975
976
|
};
|
|
976
|
-
return
|
|
977
|
+
return Ie(() => {
|
|
977
978
|
M();
|
|
978
|
-
}),
|
|
979
|
+
}), Ke(() => {
|
|
979
980
|
H(), O();
|
|
980
|
-
}), (l, P) => (Z(), B("div",
|
|
981
|
-
i.value.length > 0 ? (Z(), B("div",
|
|
982
|
-
(Z(!0), B(
|
|
983
|
-
var E, F, G,
|
|
981
|
+
}), (l, P) => (Z(), B("div", Ot, [
|
|
982
|
+
i.value.length > 0 ? (Z(), B("div", jt, [
|
|
983
|
+
(Z(!0), B(Ze, null, Be(i.value, (r) => {
|
|
984
|
+
var E, F, G, ee;
|
|
984
985
|
return Z(), B("div", {
|
|
985
986
|
key: r.name,
|
|
986
987
|
class: "joint-item"
|
|
987
988
|
}, [
|
|
988
|
-
g("div",
|
|
989
|
-
g("div",
|
|
990
|
-
g("span",
|
|
991
|
-
g("span",
|
|
989
|
+
g("div", It, [
|
|
990
|
+
g("div", Ft, [
|
|
991
|
+
g("span", Nt, J(r.name), 1),
|
|
992
|
+
g("span", Ut, " [" + J(((E = r.limit) == null ? void 0 : E.lower.toFixed(2)) ?? (r.type === "revolute" ? "-3.14" : "-1.00")) + ", " + J(((F = r.limit) == null ? void 0 : F.upper.toFixed(2)) ?? (r.type === "revolute" ? "3.14" : "1.00")) + "] ", 1)
|
|
992
993
|
]),
|
|
993
|
-
g("span",
|
|
994
|
+
g("span", Yt, J(r.type), 1)
|
|
994
995
|
]),
|
|
995
|
-
r.type === "revolute" || r.type === "prismatic" ? (Z(), B("div",
|
|
996
|
-
g("div",
|
|
996
|
+
r.type === "revolute" || r.type === "prismatic" ? (Z(), B("div", Vt, [
|
|
997
|
+
g("div", Ht, [
|
|
997
998
|
g("input", {
|
|
998
999
|
type: "range",
|
|
999
1000
|
min: ((G = r.limit) == null ? void 0 : G.lower) ?? (r.type === "revolute" ? -Math.PI : -1),
|
|
1000
|
-
max: ((
|
|
1001
|
+
max: ((ee = r.limit) == null ? void 0 : ee.upper) ?? (r.type === "revolute" ? Math.PI : 1),
|
|
1001
1002
|
step: 0.01,
|
|
1002
1003
|
value: r.currentValue,
|
|
1003
|
-
onInput: (
|
|
1004
|
+
onInput: (_e) => _(r.name, _e.target.value),
|
|
1004
1005
|
class: "joint-slider",
|
|
1005
1006
|
disabled: u.value && !f.value
|
|
1006
|
-
}, null, 40,
|
|
1007
|
+
}, null, 40, Kt)
|
|
1007
1008
|
]),
|
|
1008
|
-
g("div",
|
|
1009
|
-
g("span",
|
|
1010
|
-
g("span", $
|
|
1009
|
+
g("div", Zt, [
|
|
1010
|
+
g("span", Bt, J(r.currentValue.toFixed(3)), 1),
|
|
1011
|
+
g("span", $t, J(r.type === "revolute" ? "rad" : "m"), 1)
|
|
1011
1012
|
])
|
|
1012
|
-
])) :
|
|
1013
|
+
])) : ue("", !0)
|
|
1013
1014
|
]);
|
|
1014
1015
|
}), 128))
|
|
1015
|
-
])) : (Z(), B("div",
|
|
1016
|
+
])) : (Z(), B("div", Xt, P[0] || (P[0] = [
|
|
1016
1017
|
g("p", null, "未检测到可控制的关节", -1)
|
|
1017
1018
|
])))
|
|
1018
1019
|
]));
|
|
1019
1020
|
}
|
|
1020
|
-
},
|
|
1021
|
+
}, Wt = /* @__PURE__ */ fe(Gt, [["__scopeId", "data-v-5155d15e"]]), qt = ["xlink:href"], Qt = /* @__PURE__ */ $e({
|
|
1021
1022
|
__name: "svgIcon",
|
|
1022
1023
|
props: {
|
|
1023
1024
|
backgroundColor: { default: "#f0f0f0" },
|
|
@@ -1028,12 +1029,12 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1028
1029
|
active: { type: Boolean, default: !1 }
|
|
1029
1030
|
},
|
|
1030
1031
|
setup(o) {
|
|
1031
|
-
const
|
|
1032
|
+
const e = o, t = se(
|
|
1032
1033
|
() => ({
|
|
1033
|
-
backgroundColor:
|
|
1034
|
+
backgroundColor: e.backgroundColor
|
|
1034
1035
|
})
|
|
1035
|
-
), i =
|
|
1036
|
-
const { size: u } =
|
|
1036
|
+
), i = se(() => `#${e.prefix}-${e.name}`), n = se(() => {
|
|
1037
|
+
const { size: u } = e;
|
|
1037
1038
|
let f = `${u}`;
|
|
1038
1039
|
return f = `${f.replace("px", "")}px`, {
|
|
1039
1040
|
width: f,
|
|
@@ -1041,19 +1042,19 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1041
1042
|
};
|
|
1042
1043
|
});
|
|
1043
1044
|
return (u, f) => (Z(), B("div", {
|
|
1044
|
-
class:
|
|
1045
|
-
style:
|
|
1045
|
+
class: Ce(["container", { active: u.active }]),
|
|
1046
|
+
style: Te(t.value)
|
|
1046
1047
|
}, [
|
|
1047
1048
|
(Z(), B("svg", {
|
|
1048
|
-
class:
|
|
1049
|
-
style:
|
|
1049
|
+
class: Ce(["svg-icon", [u.$attrs.class, u.spin && "svg-icon-spin"]]),
|
|
1050
|
+
style: Te(n.value),
|
|
1050
1051
|
"aria-hidden": "true"
|
|
1051
1052
|
}, [
|
|
1052
|
-
g("use", { "xlink:href": i.value }, null, 8,
|
|
1053
|
+
g("use", { "xlink:href": i.value }, null, 8, qt)
|
|
1053
1054
|
], 6))
|
|
1054
1055
|
], 6));
|
|
1055
1056
|
}
|
|
1056
|
-
}), A = /* @__PURE__ */
|
|
1057
|
+
}), A = /* @__PURE__ */ fe(Qt, [["__scopeId", "data-v-3150a90b"]]), es = { class: "obj-viewer-container" }, ts = { class: "buttonGroup-top" }, ss = { class: "buttonGroup-topLeft" }, is = { class: "buttonGroup-left" }, os = { class: "buttonGroup-right" }, ns = { class: "buttonGroup-bottom" }, as = { class: "left-panel" }, ls = { class: "panel-header" }, rs = {
|
|
1057
1058
|
key: 1,
|
|
1058
1059
|
class: "clipping-content"
|
|
1059
1060
|
}, hs = { class: "radio-group" }, cs = { class: "radio-label" }, us = { class: "radio-label" }, ps = { class: "radio-label" }, ds = { class: "radio-label" }, ms = { class: "right-panel" }, fs = { class: "panel-header" }, _s = {
|
|
@@ -1068,8 +1069,8 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1068
1069
|
}
|
|
1069
1070
|
},
|
|
1070
1071
|
emits: ["getAnimationData"],
|
|
1071
|
-
setup(o, { expose:
|
|
1072
|
-
const i =
|
|
1072
|
+
setup(o, { expose: e, emit: t }) {
|
|
1073
|
+
const i = t;
|
|
1073
1074
|
let n = null, u = !1;
|
|
1074
1075
|
const f = S(null), a = S(!1), b = S("");
|
|
1075
1076
|
S(!1);
|
|
@@ -1083,71 +1084,71 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1083
1084
|
getThreeJSObjects: O,
|
|
1084
1085
|
clearAllModels: U,
|
|
1085
1086
|
cleanup: Y
|
|
1086
|
-
} =
|
|
1087
|
+
} = Ct(f), { isAnimating: p, toggleAnimation: c, stopAnimation: M } = St(O, _), { isClipping: H, activeClippingAxis: l, toggleClipping: P, updateClippingPlanes: r } = kt(
|
|
1087
1088
|
O,
|
|
1088
1089
|
_
|
|
1089
|
-
), { addModelsFromUrls: E, loadModelByDefaultPath: F, urdfModel: G } =
|
|
1090
|
+
), { addModelsFromUrls: E, loadModelByDefaultPath: F, urdfModel: G } = dt(
|
|
1090
1091
|
O,
|
|
1091
1092
|
_,
|
|
1092
1093
|
a,
|
|
1093
1094
|
b,
|
|
1094
1095
|
U
|
|
1095
|
-
),
|
|
1096
|
+
), ee = () => {
|
|
1096
1097
|
if (w.value || _.value.length === 0) return;
|
|
1097
1098
|
w.value = !0, p.value && M();
|
|
1098
1099
|
const { camera: R, controls: m } = O();
|
|
1099
1100
|
if (!R || !m) return;
|
|
1100
1101
|
m.enabled = !0;
|
|
1101
|
-
const X = (q) => q < 0.5 ? 4 * q * q * q : 1 - Math.pow(-2 * q + 2, 3) / 2,
|
|
1102
|
-
const q = Date.now() -
|
|
1103
|
-
R.position.lerpVectors(
|
|
1102
|
+
const X = (q) => q < 0.5 ? 4 * q * q * q : 1 - Math.pow(-2 * q + 2, 3) / 2, oe = R.position.clone(), ne = m.target.clone(), ae = 1500, le = Date.now(), k = () => {
|
|
1103
|
+
const q = Date.now() - le, xe = Math.min(q / ae, 1), De = X(xe);
|
|
1104
|
+
R.position.lerpVectors(oe, s.value, De), m.target.lerpVectors(ne, d.value, De), xe < 1 ? requestAnimationFrame(k) : w.value = !1;
|
|
1104
1105
|
};
|
|
1105
1106
|
k();
|
|
1106
|
-
},
|
|
1107
|
+
}, _e = async () => u ? Promise.resolve() : new Promise((R) => {
|
|
1107
1108
|
const m = () => {
|
|
1108
1109
|
u ? R() : requestAnimationFrame(m);
|
|
1109
1110
|
};
|
|
1110
1111
|
m();
|
|
1111
|
-
}),
|
|
1112
|
+
}), Ee = async (R, m) => {
|
|
1112
1113
|
try {
|
|
1113
|
-
await
|
|
1114
|
+
await _e(), p.value && M(), H.value && P();
|
|
1114
1115
|
const X = await m(R);
|
|
1115
1116
|
return V(), X;
|
|
1116
1117
|
} catch (X) {
|
|
1117
1118
|
throw console.error("加载模型失败:", X), X;
|
|
1118
1119
|
}
|
|
1119
|
-
},
|
|
1120
|
+
}, Ue = async (R) => Ee(R, E), Ye = async (R) => Ee(R, F), ie = (R) => {
|
|
1120
1121
|
T.value = !0, I.value = R, R === "剖面视图" && !H.value && P();
|
|
1121
|
-
},
|
|
1122
|
+
}, Ve = (R) => {
|
|
1122
1123
|
L.value = !0, h.value = R;
|
|
1123
|
-
},
|
|
1124
|
-
i("getAnimationData"),
|
|
1124
|
+
}, He = () => {
|
|
1125
|
+
i("getAnimationData"), Se(() => {
|
|
1125
1126
|
var R;
|
|
1126
1127
|
(R = C.value) == null || R.startAnimation();
|
|
1127
1128
|
});
|
|
1128
1129
|
};
|
|
1129
|
-
return
|
|
1130
|
-
await
|
|
1130
|
+
return Ie(async () => {
|
|
1131
|
+
await Se();
|
|
1131
1132
|
try {
|
|
1132
1133
|
y(), n = O().scene, u = !0, window.addEventListener("resize", z);
|
|
1133
1134
|
} catch (R) {
|
|
1134
1135
|
console.error("Three.js初始化失败:", R);
|
|
1135
1136
|
}
|
|
1136
|
-
}),
|
|
1137
|
+
}), Xe(() => {
|
|
1137
1138
|
u = !1, I.value = "", h.value = "", window.removeEventListener("resize", z), p.value && M(), Y();
|
|
1138
|
-
}),
|
|
1139
|
-
addModelsFromUrls:
|
|
1140
|
-
loadModelByDefaultPath:
|
|
1139
|
+
}), e({
|
|
1140
|
+
addModelsFromUrls: Ue,
|
|
1141
|
+
loadModelByDefaultPath: Ye
|
|
1141
1142
|
}), (R, m) => {
|
|
1142
|
-
var
|
|
1143
|
-
const X =
|
|
1144
|
-
return Z(), B("div",
|
|
1143
|
+
var oe, ne, ae, le;
|
|
1144
|
+
const X = je("el-scrollbar");
|
|
1145
|
+
return Z(), B("div", es, [
|
|
1145
1146
|
g("div", {
|
|
1146
1147
|
ref_key: "threejsContainer",
|
|
1147
1148
|
ref: f,
|
|
1148
1149
|
class: "threejs-container"
|
|
1149
1150
|
}, null, 512),
|
|
1150
|
-
g("div",
|
|
1151
|
+
g("div", ts, [
|
|
1151
1152
|
x(A, {
|
|
1152
1153
|
name: "guanjianjiexi",
|
|
1153
1154
|
size: "34"
|
|
@@ -1173,7 +1174,7 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1173
1174
|
x(A, {
|
|
1174
1175
|
name: "viewReset",
|
|
1175
1176
|
size: "24",
|
|
1176
|
-
onClick:
|
|
1177
|
+
onClick: ee,
|
|
1177
1178
|
title: "重置"
|
|
1178
1179
|
}),
|
|
1179
1180
|
x(A, {
|
|
@@ -1197,26 +1198,26 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1197
1198
|
x(A, {
|
|
1198
1199
|
name: "jiegoushu",
|
|
1199
1200
|
size: "24",
|
|
1200
|
-
onClick: m[0] || (m[0] = (k) =>
|
|
1201
|
+
onClick: m[0] || (m[0] = (k) => ie("场景树")),
|
|
1201
1202
|
active: T.value && I.value === "场景树",
|
|
1202
1203
|
title: "场景树"
|
|
1203
1204
|
}, null, 8, ["active"]),
|
|
1204
1205
|
x(A, {
|
|
1205
1206
|
name: "clipping",
|
|
1206
1207
|
size: "24",
|
|
1207
|
-
onClick: m[1] || (m[1] = (k) =>
|
|
1208
|
+
onClick: m[1] || (m[1] = (k) => ie("剖面视图")),
|
|
1208
1209
|
active: T.value && I.value === "剖面视图",
|
|
1209
1210
|
title: "剖面视图"
|
|
1210
1211
|
}, null, 8, ["active"]),
|
|
1211
1212
|
x(A, {
|
|
1212
1213
|
name: "donghuafangzhen",
|
|
1213
1214
|
size: "24",
|
|
1214
|
-
onClick: m[2] || (m[2] = (k) =>
|
|
1215
|
+
onClick: m[2] || (m[2] = (k) => ie("场景树3"))
|
|
1215
1216
|
}),
|
|
1216
1217
|
x(A, {
|
|
1217
1218
|
name: "donghuafangzhen",
|
|
1218
1219
|
size: "24",
|
|
1219
|
-
onClick: m[3] || (m[3] = (k) =>
|
|
1220
|
+
onClick: m[3] || (m[3] = (k) => ie("场景4"))
|
|
1220
1221
|
})
|
|
1221
1222
|
]),
|
|
1222
1223
|
g("div", os, [
|
|
@@ -1231,7 +1232,7 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1231
1232
|
x(A, {
|
|
1232
1233
|
name: "guanjiekongzhi",
|
|
1233
1234
|
size: "24",
|
|
1234
|
-
onClick: m[4] || (m[4] = (k) =>
|
|
1235
|
+
onClick: m[4] || (m[4] = (k) => Ve("关节控制")),
|
|
1235
1236
|
active: L.value && h.value === "关节控制",
|
|
1236
1237
|
title: "关节控制"
|
|
1237
1238
|
}, null, 8, ["active"]),
|
|
@@ -1254,35 +1255,35 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1254
1255
|
size: "24",
|
|
1255
1256
|
backgroundColor: "#ffffff",
|
|
1256
1257
|
title: "快退",
|
|
1257
|
-
onClick: (
|
|
1258
|
+
onClick: (oe = C.value) == null ? void 0 : oe.fastBackward
|
|
1258
1259
|
}, null, 8, ["onClick"]),
|
|
1259
1260
|
x(A, {
|
|
1260
1261
|
name: "bofang",
|
|
1261
1262
|
size: "24",
|
|
1262
1263
|
backgroundColor: "#ffffff",
|
|
1263
1264
|
title: "播放",
|
|
1264
|
-
onClick:
|
|
1265
|
+
onClick: He
|
|
1265
1266
|
}),
|
|
1266
1267
|
x(A, {
|
|
1267
1268
|
name: "kuaijin",
|
|
1268
1269
|
size: "24",
|
|
1269
1270
|
backgroundColor: "#ffffff",
|
|
1270
1271
|
title: "快进",
|
|
1271
|
-
onClick: (
|
|
1272
|
+
onClick: (ne = C.value) == null ? void 0 : ne.fastForward
|
|
1272
1273
|
}, null, 8, ["onClick"]),
|
|
1273
1274
|
x(A, {
|
|
1274
1275
|
name: "zanting",
|
|
1275
1276
|
size: "24",
|
|
1276
1277
|
backgroundColor: "#ffffff",
|
|
1277
1278
|
title: "暂停",
|
|
1278
|
-
onClick: (
|
|
1279
|
+
onClick: (ae = C.value) == null ? void 0 : ae.pauseAnimation
|
|
1279
1280
|
}, null, 8, ["onClick"]),
|
|
1280
1281
|
x(A, {
|
|
1281
1282
|
name: "zhongzhi",
|
|
1282
1283
|
size: "24",
|
|
1283
1284
|
backgroundColor: "#ffffff",
|
|
1284
1285
|
title: "停止",
|
|
1285
|
-
onClick: (
|
|
1286
|
+
onClick: (le = C.value) == null ? void 0 : le.resetAll
|
|
1286
1287
|
}, null, 8, ["onClick"])
|
|
1287
1288
|
]),
|
|
1288
1289
|
Q(g("div", as, [
|
|
@@ -1294,11 +1295,11 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1294
1295
|
}, " X ")
|
|
1295
1296
|
]),
|
|
1296
1297
|
x(X, { "max-height": "650px" }, {
|
|
1297
|
-
default:
|
|
1298
|
-
I.value === "场景树" ? (Z(),
|
|
1298
|
+
default: ke(() => [
|
|
1299
|
+
I.value === "场景树" ? (Z(), Je(Lt, {
|
|
1299
1300
|
key: 0,
|
|
1300
1301
|
model: N(G)
|
|
1301
|
-
}, null, 8, ["model"])) :
|
|
1302
|
+
}, null, 8, ["model"])) : ue("", !0),
|
|
1302
1303
|
I.value === "剖面视图" ? (Z(), B("div", rs, [
|
|
1303
1304
|
g("div", hs, [
|
|
1304
1305
|
g("label", cs, [
|
|
@@ -1306,10 +1307,10 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1306
1307
|
type: "radio",
|
|
1307
1308
|
name: "clipping-axis",
|
|
1308
1309
|
value: "none",
|
|
1309
|
-
"onUpdate:modelValue": m[6] || (m[6] = (k) =>
|
|
1310
|
+
"onUpdate:modelValue": m[6] || (m[6] = (k) => re(l) ? l.value = k : null),
|
|
1310
1311
|
onChange: m[7] || (m[7] = (...k) => N(r) && N(r)(...k))
|
|
1311
1312
|
}, null, 544), [
|
|
1312
|
-
[
|
|
1313
|
+
[he, N(l)]
|
|
1313
1314
|
]),
|
|
1314
1315
|
m[15] || (m[15] = g("span", { class: "radio-text" }, "无切割", -1))
|
|
1315
1316
|
]),
|
|
@@ -1318,10 +1319,10 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1318
1319
|
type: "radio",
|
|
1319
1320
|
name: "clipping-axis",
|
|
1320
1321
|
value: "x",
|
|
1321
|
-
"onUpdate:modelValue": m[8] || (m[8] = (k) =>
|
|
1322
|
+
"onUpdate:modelValue": m[8] || (m[8] = (k) => re(l) ? l.value = k : null),
|
|
1322
1323
|
onChange: m[9] || (m[9] = (...k) => N(r) && N(r)(...k))
|
|
1323
1324
|
}, null, 544), [
|
|
1324
|
-
[
|
|
1325
|
+
[he, N(l)]
|
|
1325
1326
|
]),
|
|
1326
1327
|
m[16] || (m[16] = g("span", { class: "radio-text" }, "X轴切割", -1))
|
|
1327
1328
|
]),
|
|
@@ -1330,10 +1331,10 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1330
1331
|
type: "radio",
|
|
1331
1332
|
name: "clipping-axis",
|
|
1332
1333
|
value: "y",
|
|
1333
|
-
"onUpdate:modelValue": m[10] || (m[10] = (k) =>
|
|
1334
|
+
"onUpdate:modelValue": m[10] || (m[10] = (k) => re(l) ? l.value = k : null),
|
|
1334
1335
|
onChange: m[11] || (m[11] = (...k) => N(r) && N(r)(...k))
|
|
1335
1336
|
}, null, 544), [
|
|
1336
|
-
[
|
|
1337
|
+
[he, N(l)]
|
|
1337
1338
|
]),
|
|
1338
1339
|
m[17] || (m[17] = g("span", { class: "radio-text" }, "Y轴切割", -1))
|
|
1339
1340
|
]),
|
|
@@ -1342,20 +1343,20 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1342
1343
|
type: "radio",
|
|
1343
1344
|
name: "clipping-axis",
|
|
1344
1345
|
value: "z",
|
|
1345
|
-
"onUpdate:modelValue": m[12] || (m[12] = (k) =>
|
|
1346
|
+
"onUpdate:modelValue": m[12] || (m[12] = (k) => re(l) ? l.value = k : null),
|
|
1346
1347
|
onChange: m[13] || (m[13] = (...k) => N(r) && N(r)(...k))
|
|
1347
1348
|
}, null, 544), [
|
|
1348
|
-
[
|
|
1349
|
+
[he, N(l)]
|
|
1349
1350
|
]),
|
|
1350
1351
|
m[18] || (m[18] = g("span", { class: "radio-text" }, "Z轴切割", -1))
|
|
1351
1352
|
])
|
|
1352
1353
|
])
|
|
1353
|
-
])) :
|
|
1354
|
+
])) : ue("", !0)
|
|
1354
1355
|
]),
|
|
1355
1356
|
_: 1
|
|
1356
1357
|
})
|
|
1357
1358
|
], 512), [
|
|
1358
|
-
[
|
|
1359
|
+
[ge, T.value]
|
|
1359
1360
|
]),
|
|
1360
1361
|
Q(g("div", ms, [
|
|
1361
1362
|
g("div", fs, [
|
|
@@ -1366,29 +1367,29 @@ const Ae = { class: "panel-content" }, ze = "id", Re = {
|
|
|
1366
1367
|
}, " X ")
|
|
1367
1368
|
]),
|
|
1368
1369
|
x(X, { "max-height": "650px" }, {
|
|
1369
|
-
default:
|
|
1370
|
-
Q(x(
|
|
1370
|
+
default: ke(() => [
|
|
1371
|
+
Q(x(Wt, {
|
|
1371
1372
|
ref_key: "jointRef",
|
|
1372
1373
|
ref: C,
|
|
1373
1374
|
model: N(G),
|
|
1374
1375
|
scene: N(n)
|
|
1375
1376
|
}, null, 8, ["model", "scene"]), [
|
|
1376
|
-
[
|
|
1377
|
+
[ge, h.value === "关节控制"]
|
|
1377
1378
|
])
|
|
1378
1379
|
]),
|
|
1379
1380
|
_: 1
|
|
1380
1381
|
})
|
|
1381
1382
|
], 512), [
|
|
1382
|
-
[
|
|
1383
|
+
[ge, L.value]
|
|
1383
1384
|
]),
|
|
1384
1385
|
a.value ? (Z(), B("div", _s, [
|
|
1385
1386
|
m[19] || (m[19] = g("div", { class: "loading-spinner" }, null, -1)),
|
|
1386
1387
|
g("p", null, J(b.value), 1)
|
|
1387
|
-
])) :
|
|
1388
|
+
])) : ue("", !0)
|
|
1388
1389
|
]);
|
|
1389
1390
|
};
|
|
1390
1391
|
}
|
|
1391
|
-
}, ws = /* @__PURE__ */
|
|
1392
|
+
}, ws = /* @__PURE__ */ fe(gs, [["__scopeId", "data-v-4a248817"]]);
|
|
1392
1393
|
export {
|
|
1393
1394
|
ws as default
|
|
1394
1395
|
};
|