ss-component-new 1.1.643 → 1.1.645

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.
Files changed (91) hide show
  1. package/dist/{array-B_wsE8_t.cjs → array-Dbtz7Lsx.cjs} +1 -1
  2. package/dist/{array-B8lWuPWk.js → array-NXwPkThl.js} +1 -1
  3. package/dist/{crypto-v3jAna0Y.js → crypto-BRyGpjGR.js} +383 -510
  4. package/dist/{crypto-DNSUM6-T.cjs → crypto-CRbcEKIz.cjs} +11 -11
  5. package/dist/{index-DkuHB0rR.js → index-B4gfcog1.js} +6 -6
  6. package/dist/index-B6ezvhL2.cjs +1 -0
  7. package/dist/{index-Dc9ujwGk.js → index-BHB6W84v.js} +1 -1
  8. package/dist/{index-CzRn17aQ.js → index-BKOLVNLy.js} +3 -3
  9. package/dist/index-BMUkNPzl.cjs +4207 -0
  10. package/dist/{index-B98K3NQ_.js → index-BMgOqys7.js} +5 -5
  11. package/dist/{index-CstZeLoO.js → index-BNPpYTxK.js} +4 -4
  12. package/dist/{index-Cq5FEQ8T.cjs → index-B_boHLxh.cjs} +1 -1
  13. package/dist/{index-yP9dxTXr.cjs → index-Bel0URH2.cjs} +1 -1
  14. package/dist/index-BseYBYRR.cjs +1 -0
  15. package/dist/{index-DZOOs3JX.js → index-BtO79Mkd.js} +5 -5
  16. package/dist/index-C0uZ6CrR.cjs +1 -0
  17. package/dist/{index-Bjsc84L1.js → index-C1fQQG9Y.js} +220 -222
  18. package/dist/{index-DaCmhrZN.js → index-C1okQZ1W.js} +5 -5
  19. package/dist/{index-Ce6cmWoK.js → index-CGBdaBEB.js} +1 -1
  20. package/dist/{index-TImrSuqA.js → index-CVDSoM3R.js} +7 -7
  21. package/dist/{index-DDZUeSoG.cjs → index-CXDxj3je.cjs} +1 -1
  22. package/dist/{index-B3z_K4tN.js → index-CXjnQuQm.js} +15 -17
  23. package/dist/{index-DnROsSAu.js → index-CnDGoX28.js} +1 -1
  24. package/dist/index-CnDYddiq.js +2511 -0
  25. package/dist/{index-H7RfjeN4.cjs → index-CvMwdfhw.cjs} +1 -1
  26. package/dist/index-CyTvXRd_.js +786 -0
  27. package/dist/{index-BXkdOTkd.js → index-CzC3BkW7.js} +6 -6
  28. package/dist/index-D-FbupVS.cjs +1 -0
  29. package/dist/{index-Dv0m3N6o.js → index-D4MvP0VN.js} +8702 -13692
  30. package/dist/index-D8yxAzMr.cjs +1 -0
  31. package/dist/{index-BGU26U8N.cjs → index-DG-Zzx6_.cjs} +12 -12
  32. package/dist/{index-C90tv0Xl.js → index-DK0ShkEj.js} +10 -9
  33. package/dist/{index-XoLdZvmA.cjs → index-DKoiQRFj.cjs} +1 -1
  34. package/dist/{index-CoO_L719.js → index-DUfwkFTo.js} +1 -1
  35. package/dist/{index-ugVCM2_1.cjs → index-DXpOifO9.cjs} +1 -1
  36. package/dist/index-DcXh-dz1.cjs +1 -0
  37. package/dist/{index-j_-9sdsj.js → index-DlrZ2H77.js} +5 -5
  38. package/dist/{index-D9rKJ22p.js → index-DroKEpJn.js} +25 -24
  39. package/dist/{index-Cf8HSIB7.js → index-DtFNS5JX.js} +1965 -1956
  40. package/dist/{index-S9mHFIiJ.js → index-DtOjrRlk.js} +8 -7
  41. package/dist/{index-CUE8dRo3.cjs → index-FCa5J2My.cjs} +1 -1
  42. package/dist/index-GtX0Y8gb.cjs +1 -0
  43. package/dist/{index-B3Uwh6Xf.cjs → index-HPLdZjoU.cjs} +1 -1
  44. package/dist/index-ZCzNjeSn.cjs +7 -0
  45. package/dist/{index-CeD_uFzd.cjs → index-_BlT7Ow2.cjs} +1 -1
  46. package/dist/{index-BV7GMSHu.cjs → index-cECmgKhq.cjs} +1 -1
  47. package/dist/{index-j-6MQx0k.cjs → index-e6ImJxWd.cjs} +1 -1
  48. package/dist/index-j8y7iBPh.cjs +1 -0
  49. package/dist/index-nkJMcLGo.js +4731 -0
  50. package/dist/{index-DamR6g_M.cjs → index-p5BDKj5j.cjs} +1 -1
  51. package/dist/index-uDDcvihH.cjs +1 -0
  52. package/dist/{index-DJq9wJbj.js → index-yCZoo-qN.js} +6 -6
  53. package/dist/{index.vue_vue_type_script_setup_true_lang-DmZ8M3M2.js → index.vue_vue_type_script_setup_true_lang-DKitPTZF.js} +7 -7
  54. package/dist/{index.vue_vue_type_script_setup_true_lang-DPRs_TEM.cjs → index.vue_vue_type_script_setup_true_lang-DLjUVVle.cjs} +1 -1
  55. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CLRx6Pr7.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-C6RGbzCD.js} +7870 -7846
  56. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-G9Ly6LrV.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-orvz-niQ.cjs} +103 -103
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Bx59UssX.js → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-KpE1paY3.js} +12008 -11626
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-Cx257lrG.cjs → index.vue_vue_type_style_index_0_scoped_248ffa0f_lang-ViCgptSE.cjs} +13 -13
  59. package/dist/{index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-DnzbmtTR.js → index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BKiJ0n5W.js} +9 -10
  60. package/dist/index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-Cri49ijq.cjs +1 -0
  61. package/dist/login-BiEodQd9.js +129 -0
  62. package/dist/login-zGHoUey-.cjs +1 -0
  63. package/dist/{main-Bytk3eJi.cjs → main-Cqr5wzb9.cjs} +1 -1
  64. package/dist/{main-B3z7cAFc.js → main-OXS6LXFh.js} +5 -5
  65. package/dist/{menu-EkyEcRhA.js → menu-Cl42pSjw.js} +1173 -1172
  66. package/dist/{menu-CcabvNj6.cjs → menu-nedhfMQM.cjs} +10 -10
  67. package/dist/{modelComp-DocJQ-pY.js → modelComp-DWx0hNJL.js} +1 -1
  68. package/dist/{modelComp-MsmKaqKZ.cjs → modelComp-VVOVTdqN.cjs} +1 -1
  69. package/dist/obj/model.mtl +42 -0
  70. package/dist/obj/model.obj +26110 -0
  71. package/dist/ss-component.cjs +1 -1
  72. package/dist/ss-component.css +2 -2
  73. package/dist/ss-component.js +9 -9
  74. package/dist/ss-component2.cjs +1 -1
  75. package/dist/ss-component2.js +9 -9
  76. package/dist/{threeModel-DUi0i12h.cjs → threeModel-BGAaDA20.cjs} +1 -1
  77. package/dist/{threeModel-8fmYfsGI.js → threeModel-CCsYNDK0.js} +62 -62
  78. package/package.json +1 -1
  79. package/public/obj/model.mtl +42 -0
  80. package/public/obj/model.obj +26110 -0
  81. package/dist/index-B1zrlvmA.cjs +0 -1
  82. package/dist/index-BJOfcIfK.cjs +0 -1
  83. package/dist/index-BdSJGJAj.cjs +0 -1
  84. package/dist/index-BgOWcpJo.cjs +0 -1
  85. package/dist/index-BgjQ12lw.cjs +0 -1
  86. package/dist/index-BtbXPos3.cjs +0 -1
  87. package/dist/index-C0YmHmRc.js +0 -3295
  88. package/dist/index-CHDQYj9k.cjs +0 -7
  89. package/dist/index-DYLTl0bA.cjs +0 -4207
  90. package/dist/index-Wq7SUf3w.cjs +0 -1
  91. package/dist/index.vue_vue_type_style_index_0_scoped_c8f6ea20_lang-BxhCfpJ1.cjs +0 -1
@@ -1,8 +1,8 @@
1
- import { ref as E, watch as ke, createElementBlock as W, openBlock as $, createBlock as Ge, computed as de, onMounted as We, onUnmounted as ot, Fragment as nt, renderList as at, createElementVNode as w, createCommentVNode as Te, toDisplayString as le, resolveComponent as qe, createVNode as C, defineComponent as lt, normalizeStyle as Ue, normalizeClass as Ye, nextTick as Be, onBeforeUnmount as rt, withDirectives as ce, unref as V, withCtx as Ve, isRef as Me, vModelRadio as xe, vShow as Ee } from "vue";
2
- import { C as ct, V as y, M as he, T as pe, Q as Ze, S as He, r as ne, R as ht, P as Ce, t as Qe, B as Ae, v as ut, w as pt, x as dt, W as mt, y as ft, A as _t, z as gt, X as yt, G as vt, D as Se, E as bt, F as Ie, H as wt, I as ze, J as Pt, K as Ke, L as et, N as tt, O as Le, q as Mt, U as ge, Y as xt, Z as Et, _ as Dt } from "./index-Dv0m3N6o.js";
1
+ import { ref as E, watch as ke, createElementBlock as W, openBlock as $, createBlock as Je, computed as de, onMounted as We, onUnmounted as ot, Fragment as nt, renderList as at, createElementVNode as w, createCommentVNode as Te, toDisplayString as le, resolveComponent as qe, createVNode as C, defineComponent as lt, normalizeStyle as Ue, normalizeClass as Ye, nextTick as Be, onBeforeUnmount as rt, withDirectives as ce, unref as V, withCtx as Ve, isRef as Me, vModelRadio as xe, vShow as Ee } from "vue";
2
+ import { C as ct, V as y, M as he, T as pe, Q as Ze, S as He, c as ne, R as ht, P as Ce, d as Qe, B as Ae, e as ut, f as pt, g as dt, W as mt, h as ft, A as _t, i as gt, X as yt, G as vt, j as Se, k as bt, l as Ie, m as wt, D as ze, H as Pt, n as Xe, o as et, p as tt, E as Le, s as Mt, q as ge, r as xt, t as Et, v as Dt } from "./index-D4MvP0VN.js";
3
3
  import { _ as ve } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- import { c as st, E as Xe } from "./menu-EkyEcRhA.js";
5
- const $e = { type: "change" }, Fe = { type: "start" }, it = { type: "end" }, De = new ht(), Je = new Ce(), Tt = Math.cos(70 * Qe.DEG2RAD), Y = new y(), G = 2 * Math.PI, k = {
4
+ import { c as st, E as Ke } from "./menu-Cl42pSjw.js";
5
+ const $e = { type: "change" }, Fe = { type: "start" }, it = { type: "end" }, De = new ht(), Ge = new Ce(), Tt = Math.cos(70 * Qe.DEG2RAD), Y = new y(), J = 2 * Math.PI, k = {
6
6
  NONE: -1,
7
7
  ROTATE: 0,
8
8
  DOLLY: 1,
@@ -87,7 +87,7 @@ class Ct extends ct {
87
87
  const t = this.object.position;
88
88
  Y.copy(t).sub(this.target), Y.applyQuaternion(this._quat), this._spherical.setFromVector3(Y), this.autoRotate && this.state === k.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);
89
89
  let i = this.minAzimuthAngle, a = this.maxAzimuthAngle;
90
- isFinite(i) && isFinite(a) && (i < -Math.PI ? i += G : i > Math.PI && (i -= G), a < -Math.PI ? a += G : a > Math.PI && (a -= G), i <= a ? this._spherical.theta = Math.max(i, Math.min(a, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (i + a) / 2 ? Math.max(i, this._spherical.theta) : Math.min(a, 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
+ isFinite(i) && isFinite(a) && (i < -Math.PI ? i += J : i > Math.PI && (i -= J), a < -Math.PI ? a += J : a > Math.PI && (a -= J), i <= a ? this._spherical.theta = Math.max(i, Math.min(a, this._spherical.theta)) : this._spherical.theta = this._spherical.theta > (i + a) / 2 ? Math.max(i, this._spherical.theta) : Math.min(a, 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);
91
91
  let d = !1;
92
92
  if (this.zoomToCursor && this._performCursorZoom || this.object.isOrthographicCamera)
93
93
  this._spherical.radius = this._clampDistance(this._spherical.radius);
@@ -111,7 +111,7 @@ class Ct extends ct {
111
111
  I.unproject(this.object), this.object.position.sub(I).add(l), this.object.updateMatrixWorld(), b = Y.length();
112
112
  } else
113
113
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
114
- b !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(b).add(this.object.position) : (De.origin.copy(this.object.position), De.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(De.direction)) < Tt ? this.object.lookAt(this.target) : (Je.setFromNormalAndCoplanarPoint(this.object.up, this.target), De.intersectPlane(Je, this.target))));
114
+ b !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(b).add(this.object.position) : (De.origin.copy(this.object.position), De.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(De.direction)) < Tt ? this.object.lookAt(this.target) : (Ge.setFromNormalAndCoplanarPoint(this.object.up, this.target), De.intersectPlane(Ge, this.target))));
115
115
  } else if (this.object.isOrthographicCamera) {
116
116
  const b = this.object.zoom;
117
117
  this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), b !== this.object.zoom && (this.object.updateProjectionMatrix(), d = !0);
@@ -119,7 +119,7 @@ class Ct extends ct {
119
119
  return this._scale = 1, this._performCursorZoom = !1, d || this._lastPosition.distanceToSquared(this.object.position) > Oe || 8 * (1 - this._lastQuaternion.dot(this.object.quaternion)) > Oe || this._lastTargetPosition.distanceToSquared(this.target) > Oe ? (this.dispatchEvent($e), this._lastPosition.copy(this.object.position), this._lastQuaternion.copy(this.object.quaternion), this._lastTargetPosition.copy(this.target), !0) : !1;
120
120
  }
121
121
  _getAutoRotationAngle(e) {
122
- return e !== null ? G / 60 * this.autoRotateSpeed * e : G / 60 / 60 * this.autoRotateSpeed;
122
+ return e !== null ? J / 60 * this.autoRotateSpeed * e : J / 60 / 60 * this.autoRotateSpeed;
123
123
  }
124
124
  _getZoomScale(e) {
125
125
  const t = Math.abs(e * 0.01);
@@ -178,7 +178,7 @@ class Ct extends ct {
178
178
  _handleMouseMoveRotate(e) {
179
179
  this._rotateEnd.set(e.clientX, e.clientY), this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
180
180
  const t = this.domElement;
181
- this._rotateLeft(G * this._rotateDelta.x / t.clientHeight), this._rotateUp(G * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd), this.update();
181
+ this._rotateLeft(J * this._rotateDelta.x / t.clientHeight), this._rotateUp(J * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd), this.update();
182
182
  }
183
183
  _handleMouseMoveDolly(e) {
184
184
  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();
@@ -193,16 +193,16 @@ class Ct extends ct {
193
193
  let t = !1;
194
194
  switch (e.code) {
195
195
  case this.keys.UP:
196
- e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(G * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, this.keyPanSpeed), t = !0;
196
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(J * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, this.keyPanSpeed), t = !0;
197
197
  break;
198
198
  case this.keys.BOTTOM:
199
- e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(-G * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, -this.keyPanSpeed), t = !0;
199
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateUp(-J * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(0, -this.keyPanSpeed), t = !0;
200
200
  break;
201
201
  case this.keys.LEFT:
202
- e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(G * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(this.keyPanSpeed, 0), t = !0;
202
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(J * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(this.keyPanSpeed, 0), t = !0;
203
203
  break;
204
204
  case this.keys.RIGHT:
205
- e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(-G * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(-this.keyPanSpeed, 0), t = !0;
205
+ e.ctrlKey || e.metaKey || e.shiftKey ? this.enableRotate && this._rotateLeft(-J * this.keyRotateSpeed / this.domElement.clientHeight) : this.enablePan && this._pan(-this.keyPanSpeed, 0), t = !0;
206
206
  break;
207
207
  }
208
208
  t && (e.preventDefault(), this.update());
@@ -242,7 +242,7 @@ class Ct extends ct {
242
242
  }
243
243
  this._rotateDelta.subVectors(this._rotateEnd, this._rotateStart).multiplyScalar(this.rotateSpeed);
244
244
  const t = this.domElement;
245
- this._rotateLeft(G * this._rotateDelta.x / t.clientHeight), this._rotateUp(G * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd);
245
+ this._rotateLeft(J * this._rotateDelta.x / t.clientHeight), this._rotateUp(J * this._rotateDelta.y / t.clientHeight), this._rotateStart.copy(this._rotateEnd);
246
246
  }
247
247
  _handleTouchMovePan(e) {
248
248
  if (this._pointers.length === 1)
@@ -506,12 +506,12 @@ function Yt(o) {
506
506
  l && (e.remove(l), l.dispose()), D && (e.remove(D), D.geometry.dispose(), D.material.dispose());
507
507
  const R = Math.min(Math.max(Math.floor(f / 20), 30), 40);
508
508
  l = new vt(f, R, 13421772, 14540253), l.rotateX(Math.PI / 2), l.position.copy(c), e.add(l);
509
- const j = new Se(f, f), X = new bt({
509
+ const j = new Se(f, f), K = new bt({
510
510
  opacity: 0.3,
511
511
  // 阴影透明度
512
512
  color: 0
513
513
  });
514
- D = new Ie(j, X), D.position.copy(c), D.position.z -= 0.01, D.receiveShadow = !0, e.add(D);
514
+ D = new Ie(j, K), D.position.copy(c), D.position.z -= 0.01, D.receiveShadow = !0, e.add(D);
515
515
  }, m = () => {
516
516
  if (A.value.length === 0)
517
517
  return;
@@ -529,7 +529,7 @@ function Yt(o) {
529
529
  console.warn("无法计算包围盒,网格更新失败");
530
530
  return;
531
531
  }
532
- const R = f.getSize(new y()), j = f.getCenter(new y()), X = Math.max(R.x, R.y, R.z), Q = Math.max(X * 8, 50), ee = new y(
532
+ const R = f.getSize(new y()), j = f.getCenter(new y()), K = Math.max(R.x, R.y, R.z), Q = Math.max(K * 8, 50), ee = new y(
533
533
  j.x,
534
534
  j.y,
535
535
  f.min.z
@@ -545,11 +545,11 @@ function Yt(o) {
545
545
  R.position.set(-8, -8, 6), e.add(R);
546
546
  const j = new ze(16777215, 0.6);
547
547
  j.position.set(0, -15, 2), e.add(j);
548
- const X = new Pt(16777215, 4473924, 0.8);
549
- e.add(X);
550
- const Q = new Ke(16777215, 1, 50);
548
+ const K = new Pt(16777215, 4473924, 0.8);
549
+ e.add(K);
550
+ const Q = new Xe(16777215, 1, 50);
551
551
  Q.position.set(15, 15, 15), e.add(Q);
552
- const ee = new Ke(16777215, 0.5, 50);
552
+ const ee = new Xe(16777215, 0.5, 50);
553
553
  ee.position.set(-15, -15, 15), e.add(ee);
554
554
  }, S = () => {
555
555
  b = requestAnimationFrame(S), a && a.update();
@@ -606,8 +606,8 @@ function Yt(o) {
606
606
  console.warn("无法计算包围盒");
607
607
  return;
608
608
  }
609
- const j = c.getSize(new y()), X = c.getCenter(new y()), ee = Math.max(j.x, j.y, j.z) * 0.8, te = new y(X.x + ee, X.y - ee, X.z + ee);
610
- t.position.copy(te), t.lookAt(X), a.target.copy(X), a.update(), p.value.copy(te), T.value.copy(X), m();
609
+ const j = c.getSize(new y()), K = c.getCenter(new y()), ee = Math.max(j.x, j.y, j.z) * 0.8, te = new y(K.x + ee, K.y - ee, K.z + ee);
610
+ t.position.copy(te), t.lookAt(K), a.target.copy(K), a.update(), p.value.copy(te), T.value.copy(K), m();
611
611
  },
612
612
  getThreeJSObjects: () => ({
613
613
  scene: e,
@@ -646,8 +646,8 @@ function Bt(o, e) {
646
646
  const B = (s - 0.567) / 0.157, H = z(B);
647
647
  m.lerpVectors(S, Z, H);
648
648
  } else if (s <= 0.881) {
649
- const B = (s - 0.724) / 0.157, K = z(B) * Math.PI;
650
- m.x = l.x + Math.sin(K) * _, m.y = l.y + Math.cos(K) * _, m.z = l.z;
649
+ const B = (s - 0.724) / 0.157, X = z(B) * Math.PI;
650
+ m.x = l.x + Math.sin(X) * _, m.y = l.y + Math.cos(X) * _, m.z = l.z;
651
651
  } else {
652
652
  const B = (s - 0.881) / 0.119, H = z(B);
653
653
  m.lerpVectors(F, d, H);
@@ -677,11 +677,11 @@ function Bt(o, e) {
677
677
  l = _.getCenter(new y()), D = Math.max(S.x, S.y, S.z) * 1.2;
678
678
  const Z = new y(l.x + D * 1.2, l.y, l.z);
679
679
  m.enabled = !1;
680
- const F = s.position.clone(), B = 1e3, H = Date.now(), K = () => {
680
+ const F = s.position.clone(), B = 1e3, H = Date.now(), X = () => {
681
681
  const q = Date.now() - H, ie = Math.min(q / B, 1), f = z(ie);
682
- s.position.lerpVectors(F, Z, f), s.lookAt(l), m.target.copy(l), ie < 1 ? requestAnimationFrame(K) : (t.value = !0, i = null, A());
682
+ s.position.lerpVectors(F, Z, f), s.lookAt(l), m.target.copy(l), ie < 1 ? requestAnimationFrame(X) : (t.value = !0, i = null, A());
683
683
  };
684
- K();
684
+ X();
685
685
  }, T = () => {
686
686
  t.value = !1, i = null, I && (cancelAnimationFrame(I), I = null);
687
687
  const { controls: s } = o();
@@ -696,8 +696,8 @@ function Bt(o, e) {
696
696
  if (!s || !m) return;
697
697
  m.enabled = !0;
698
698
  const _ = s.position.clone(), S = m.target.clone(), Z = 1500, F = Date.now(), B = () => {
699
- const H = Date.now() - F, K = Math.min(H / Z, 1), q = z(K);
700
- s.position.lerpVectors(_, d, q), m.target.lerpVectors(S, b, q), K < 1 && requestAnimationFrame(B);
699
+ const H = Date.now() - F, X = Math.min(H / Z, 1), q = z(X);
700
+ s.position.lerpVectors(_, d, q), m.target.lerpVectors(S, b, q), X < 1 && requestAnimationFrame(B);
701
701
  };
702
702
  B();
703
703
  } else
@@ -800,7 +800,7 @@ const Zt = { class: "panel-content" }, Ht = {
800
800
  ), (i, a) => {
801
801
  var d, b, l;
802
802
  return $(), W("div", Zt, [
803
- ($(), Ge(Mt, {
803
+ ($(), Je(Mt, {
804
804
  itemData: (d = t.value) == null ? void 0 : d.compData,
805
805
  key: (b = t.value) == null ? void 0 : b.id,
806
806
  index: (l = t.value) == null ? void 0 : l.id,
@@ -809,10 +809,10 @@ const Zt = { class: "panel-content" }, Ht = {
809
809
  ]);
810
810
  };
811
811
  }
812
- }, Kt = /* @__PURE__ */ ve(Ht, [["__scopeId", "data-v-1e90a659"]]), Xt = { class: "panel-content" }, $t = {
812
+ }, Xt = /* @__PURE__ */ ve(Ht, [["__scopeId", "data-v-1e90a659"]]), Kt = { class: "panel-content" }, $t = {
813
813
  key: 0,
814
814
  class: "joints-list"
815
- }, Jt = { class: "joint-info-row" }, Gt = { class: "joint-left" }, Wt = { class: "joint-name" }, qt = { class: "joint-range" }, Qt = { class: "joint-type" }, es = {
815
+ }, Gt = { class: "joint-info-row" }, Jt = { class: "joint-left" }, Wt = { class: "joint-name" }, qt = { class: "joint-range" }, Qt = { class: "joint-type" }, es = {
816
816
  key: 0,
817
817
  class: "joint-control-row"
818
818
  }, ts = { class: "slider-container" }, ss = ["min", "max", "value", "onInput", "disabled"], is = { class: "value-display" }, os = { class: "joint-value" }, ns = { class: "unit" }, as = {
@@ -842,7 +842,7 @@ const Zt = { class: "panel-content" }, Ht = {
842
842
  ), de(() => _.length > 0);
843
843
  const S = (r, g = !1) => r === "revolute" ? g ? Math.PI : -Math.PI : r === "prismatic" ? g ? 1 : -1 : 0, Z = () => {
844
844
  if (!a.value)
845
- return Xe.error("未加载 URDF"), !1;
845
+ return Ke.error("未加载 URDF"), !1;
846
846
  let r = null;
847
847
  return a.value.traverse((g) => {
848
848
  r || g.name === "Pipe_Link" && g.traverse((u) => {
@@ -852,7 +852,7 @@ const Zt = { class: "panel-content" }, Ht = {
852
852
  color: 11184810,
853
853
  shininess: 80,
854
854
  side: tt
855
- }), !0) : (Xe.error('在 "Pipe_Link" 内未找到任何 Mesh'), !1);
855
+ }), !0) : (Ke.error('在 "Pipe_Link" 内未找到任何 Mesh'), !1);
856
856
  }, F = (r) => {
857
857
  if (!r || !r.joints)
858
858
  return console.warn("URDF模型没有关节信息"), [];
@@ -897,7 +897,7 @@ const Zt = { class: "panel-content" }, Ht = {
897
897
  let M = 0;
898
898
  const h = u.Y ?? 0, n = u.C ?? 0, P = u.R ?? 0;
899
899
  return h > 0 && (M += h), n > 0 && P > 0 && (M += P * v(n)), g + M;
900
- }, 0), K = (r) => {
900
+ }, 0), X = (r) => {
901
901
  const g = [], u = r.Y ?? 0, M = r.B ?? 0, h = r.C ?? 0, n = r.R ?? 0, P = {
902
902
  pos: new y(0, 0, 0),
903
903
  localY: new y(0, 1, 0),
@@ -906,13 +906,13 @@ const Zt = { class: "panel-content" }, Ht = {
906
906
  };
907
907
  if (!u && !h) return g;
908
908
  if (g.push(P.pos.clone()), M !== 0) {
909
- const J = new ge().makeRotationAxis(P.localY, v(M));
910
- P.localX.applyMatrix4(J), P.localZ.applyMatrix4(J);
909
+ const G = new ge().makeRotationAxis(P.localY, v(M));
910
+ P.localX.applyMatrix4(G), P.localZ.applyMatrix4(G);
911
911
  }
912
912
  if (u > 0 && (P.pos.add(P.localY.clone().multiplyScalar(u * ye)), g.push(P.pos.clone())), h > 0 && n > 0) {
913
- const J = v(h), U = n * ye, ae = P.pos.clone().add(P.localX.clone().multiplyScalar(-U)), N = Math.max(16, Math.ceil(h / 5));
913
+ const G = v(h), U = n * ye, ae = P.pos.clone().add(P.localX.clone().multiplyScalar(-U)), N = Math.max(16, Math.ceil(h / 5));
914
914
  for (let x = 1; x <= N; x++) {
915
- const se = J * x / N, re = new ge().makeRotationAxis(P.localZ, se), we = P.localX.clone().multiplyScalar(U).applyMatrix4(re), Pe = ae.clone().add(we);
915
+ const se = G * x / N, re = new ge().makeRotationAxis(P.localZ, se), we = P.localX.clone().multiplyScalar(U).applyMatrix4(re), Pe = ae.clone().add(we);
916
916
  g.push(Pe);
917
917
  }
918
918
  }
@@ -932,17 +932,17 @@ const Zt = { class: "panel-content" }, Ht = {
932
932
  }
933
933
  const h = H(u), n = Math.max(0, D.value - h), P = [];
934
934
  P.push(new y(0, 0, 0));
935
- const J = new y(0, n * ye, 0);
936
- n > 0 && P.push(J);
935
+ const G = new y(0, n * ye, 0);
936
+ n > 0 && P.push(G);
937
937
  let U = {
938
- pos: J.clone(),
938
+ pos: G.clone(),
939
939
  localY: new y(0, 1, 0),
940
940
  localX: new y(1, 0, 0),
941
941
  localZ: new y(0, 0, 1)
942
942
  };
943
943
  const ae = [];
944
944
  for (let N = u.length - 1; N >= 0; N--) {
945
- const x = u[N], se = K(x);
945
+ const x = u[N], se = X(x);
946
946
  if (se.length > 0) {
947
947
  const re = se.map((ue) => {
948
948
  const _e = ue.clone(), Ne = new ge();
@@ -1004,14 +1004,14 @@ const Zt = { class: "panel-content" }, Ht = {
1004
1004
  } else
1005
1005
  ie(u, r);
1006
1006
  p.value++, p.value > je && (p.value = 0, A.value++), T.value = setTimeout(j, m());
1007
- }, X = () => {
1007
+ }, K = () => {
1008
1008
  O.value = !0, T.value && (clearTimeout(T.value), T.value = null);
1009
1009
  }, Q = () => {
1010
1010
  z.value = !1, O.value = !1, s.value = 1, T.value && (clearTimeout(T.value), T.value = null);
1011
1011
  };
1012
1012
  e({
1013
1013
  startAnimation: R,
1014
- pauseAnimation: X,
1014
+ pauseAnimation: K,
1015
1015
  stopAnimation: Q,
1016
1016
  resetAll: () => {
1017
1017
  Q(), A.value = 0, p.value = 0, i.value.forEach((r) => {
@@ -1047,7 +1047,7 @@ const Zt = { class: "panel-content" }, Ht = {
1047
1047
  be();
1048
1048
  }), ot(() => {
1049
1049
  Re(), Q();
1050
- }), (r, g) => ($(), W("div", Xt, [
1050
+ }), (r, g) => ($(), W("div", Kt, [
1051
1051
  i.value.length > 0 ? ($(), W("div", $t, [
1052
1052
  ($(!0), W(nt, null, at(i.value, (u) => {
1053
1053
  var M, h, n, P;
@@ -1055,8 +1055,8 @@ const Zt = { class: "panel-content" }, Ht = {
1055
1055
  key: u.name,
1056
1056
  class: "joint-item"
1057
1057
  }, [
1058
- w("div", Jt, [
1059
- w("div", Gt, [
1058
+ w("div", Gt, [
1059
+ w("div", Jt, [
1060
1060
  w("span", Wt, le(u.name), 1),
1061
1061
  w("span", qt, " [" + le(((M = u.limit) == null ? void 0 : M.lower.toFixed(2)) ?? (u.type === "revolute" ? "-3.14" : "-1.00")) + ", " + le(((h = u.limit) == null ? void 0 : h.upper.toFixed(2)) ?? (u.type === "revolute" ? "3.14" : "1.00")) + "] ", 1)
1062
1062
  ]),
@@ -1070,7 +1070,7 @@ const Zt = { class: "panel-content" }, Ht = {
1070
1070
  max: ((P = u.limit) == null ? void 0 : P.upper) ?? (u.type === "revolute" ? Math.PI : 1),
1071
1071
  step: 0.01,
1072
1072
  value: u.currentValue,
1073
- onInput: (J) => B(u.name, J.target.value),
1073
+ onInput: (G) => B(u.name, G.target.value),
1074
1074
  class: "joint-slider",
1075
1075
  disabled: z.value && !O.value
1076
1076
  }, null, 40, ss)
@@ -1241,10 +1241,10 @@ const Zt = { class: "panel-content" }, Ht = {
1241
1241
  getThreeJSObjects: F,
1242
1242
  clearAllModels: B,
1243
1243
  cleanup: H
1244
- } = Yt(b), { isAnimating: K, toggleAnimation: q, stopAnimation: ie } = Bt(F, v), { isClipping: f, activeClippingAxis: c, toggleClipping: R, updateClippingPlanes: j } = Vt(
1244
+ } = Yt(b), { isAnimating: X, toggleAnimation: q, stopAnimation: ie } = Bt(F, v), { isClipping: f, activeClippingAxis: c, toggleClipping: R, updateClippingPlanes: j } = Vt(
1245
1245
  F,
1246
1246
  v
1247
- ), { addModelsFromUrls: X, loadModelByDefaultPath: Q, urdfModel: ee, modelBoundingBoxes: te } = Dt(
1247
+ ), { addModelsFromUrls: K, loadModelByDefaultPath: Q, urdfModel: ee, modelBoundingBoxes: te } = Dt(
1248
1248
  F,
1249
1249
  v,
1250
1250
  l,
@@ -1252,13 +1252,13 @@ const Zt = { class: "panel-content" }, Ht = {
1252
1252
  B
1253
1253
  ), oe = () => {
1254
1254
  if (I.value || v.value.length === 0) return;
1255
- I.value = !0, K.value && ie();
1255
+ I.value = !0, X.value && ie();
1256
1256
  const { camera: h, controls: n } = F();
1257
1257
  if (!h || !n) return;
1258
1258
  n.enabled = !0;
1259
- const P = (se) => se < 0.5 ? 4 * se * se * se : 1 - Math.pow(-2 * se + 2, 3) / 2, J = h.position.clone(), U = n.target.clone(), ae = 1500, N = Date.now(), x = () => {
1259
+ const P = (se) => se < 0.5 ? 4 * se * se * se : 1 - Math.pow(-2 * se + 2, 3) / 2, G = h.position.clone(), U = n.target.clone(), ae = 1500, N = Date.now(), x = () => {
1260
1260
  const se = Date.now() - N, re = Math.min(se / ae, 1), fe = P(re);
1261
- h.position.lerpVectors(J, s.value, fe), n.target.lerpVectors(U, m.value, fe), re < 1 ? requestAnimationFrame(x) : I.value = !1;
1261
+ h.position.lerpVectors(G, s.value, fe), n.target.lerpVectors(U, m.value, fe), re < 1 ? requestAnimationFrame(x) : I.value = !1;
1262
1262
  };
1263
1263
  x();
1264
1264
  }, me = async () => d ? Promise.resolve() : new Promise((h) => {
@@ -1268,13 +1268,13 @@ const Zt = { class: "panel-content" }, Ht = {
1268
1268
  n();
1269
1269
  }), be = async (h, n) => {
1270
1270
  try {
1271
- await me(), K.value && ie(), f.value && R();
1271
+ await me(), X.value && ie(), f.value && R();
1272
1272
  const P = await n(h);
1273
1273
  return Z(te), P;
1274
1274
  } catch (P) {
1275
1275
  throw console.error("加载模型失败:", P), P;
1276
1276
  }
1277
- }, Re = async (h) => be(h, X), r = async (h) => be(h, Q), g = (h) => {
1277
+ }, Re = async (h) => be(h, K), r = async (h) => be(h, Q), g = (h) => {
1278
1278
  z.value = !0, O.value = h, h === "剖面视图" && !f.value && R();
1279
1279
  }, u = (h) => {
1280
1280
  A.value = !0, p.value = h, h === "动画仿真" && i("getAnimationData");
@@ -1292,12 +1292,12 @@ const Zt = { class: "panel-content" }, Ht = {
1292
1292
  console.error("Three.js初始化失败:", h);
1293
1293
  }
1294
1294
  }), rt(() => {
1295
- d = !1, O.value = "", p.value = "", window.removeEventListener("resize", S), K.value && ie(), H();
1295
+ d = !1, O.value = "", p.value = "", window.removeEventListener("resize", S), X.value && ie(), H();
1296
1296
  }), e({
1297
1297
  addModelsFromUrls: Re,
1298
1298
  loadModelByDefaultPath: r
1299
1299
  }), (h, n) => {
1300
- var J, U, ae, N;
1300
+ var G, U, ae, N;
1301
1301
  const P = qe("el-scrollbar");
1302
1302
  return $(), W("div", _s, [
1303
1303
  w("div", {
@@ -1348,7 +1348,7 @@ const Zt = { class: "panel-content" }, Ht = {
1348
1348
  name: "lookAround",
1349
1349
  size: "24",
1350
1350
  onClick: V(q),
1351
- title: V(K) ? "停止动画" : "动画视图"
1351
+ title: V(X) ? "停止动画" : "动画视图"
1352
1352
  }, null, 8, ["onClick", "title"])
1353
1353
  ]),
1354
1354
  w("div", vs, [
@@ -1415,7 +1415,7 @@ const Zt = { class: "panel-content" }, Ht = {
1415
1415
  size: "24",
1416
1416
  backgroundColor: "#ffffff",
1417
1417
  title: "快退",
1418
- onClick: (J = T.value) == null ? void 0 : J.fastBackward
1418
+ onClick: (G = T.value) == null ? void 0 : G.fastBackward
1419
1419
  }, null, 8, ["onClick"]),
1420
1420
  C(L, {
1421
1421
  name: "bofang",
@@ -1456,7 +1456,7 @@ const Zt = { class: "panel-content" }, Ht = {
1456
1456
  ]),
1457
1457
  C(P, { "max-height": "650px" }, {
1458
1458
  default: Ve(() => [
1459
- O.value === "场景树" ? ($(), Ge(ds, {
1459
+ O.value === "场景树" ? ($(), Je(ds, {
1460
1460
  key: 0,
1461
1461
  model: V(ee)
1462
1462
  }, null, 8, ["model"])) : Te("", !0),
@@ -1537,7 +1537,7 @@ const Zt = { class: "panel-content" }, Ht = {
1537
1537
  }, null, 8, ["model", "scene", "animationData"]), [
1538
1538
  [Ee, p.value === "关节控制"]
1539
1539
  ]),
1540
- ce(C(Kt, { animationData: o.animationData }, null, 8, ["animationData"]), [
1540
+ ce(C(Xt, { animationData: o.animationData }, null, 8, ["animationData"]), [
1541
1541
  [Ee, p.value === "动画仿真"]
1542
1542
  ])
1543
1543
  ]),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ss-component-new",
3
3
  "private": false,
4
- "version": "1.1.643",
4
+ "version": "1.1.645",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist",
@@ -0,0 +1,42 @@
1
+ # CAD Exchanger 3.24.0 (cadexchanger.com)
2
+ # Material Count: 5
3
+
4
+ newmtl Material_1
5
+ Ns 0.000000
6
+ Ka 0.200000 0.200000 0.200000
7
+ Kd 0.666667 0.666667 0.666667
8
+ Ks 0.000000 0.000000 0.000000
9
+ Ke 0.000000 0.000000 0.000000
10
+ d 1.000000
11
+
12
+ newmtl Material_2
13
+ Ns 0.000000
14
+ Ka 0.200000 0.200000 0.200000
15
+ Kd 0.133333 0.133333 0.133333
16
+ Ks 0.000000 0.000000 0.000000
17
+ Ke 0.000000 0.000000 0.000000
18
+ d 1.000000
19
+
20
+ newmtl Material_3
21
+ Ns 0.000000
22
+ Ka 0.200000 0.200000 0.200000
23
+ Kd 0.733333 0.733333 0.733333
24
+ Ks 0.000000 0.000000 0.000000
25
+ Ke 0.000000 0.000000 0.000000
26
+ d 1.000000
27
+
28
+ newmtl Material_5
29
+ Ns 0.000000
30
+ Ka 0.200000 0.200000 0.200000
31
+ Kd 0.396078 0.941176 0.450980
32
+ Ks 0.000000 0.000000 0.000000
33
+ Ke 0.000000 0.000000 0.000000
34
+ d 1.000000
35
+
36
+ newmtl Material_4
37
+ Ns 0.000000
38
+ Ka 0.200000 0.200000 0.200000
39
+ Kd 1.000000 1.000000 0.000000
40
+ Ks 0.000000 0.000000 0.000000
41
+ Ke 0.000000 0.000000 0.000000
42
+ d 1.000000