ss-component-new 1.3.682 → 1.3.684

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 (58) hide show
  1. package/dist/{MTLLoader-qT5QxtXm.js → MTLLoader-DzMo1SNe.js} +86 -86
  2. package/dist/{URDFLoader-D3eMTiZb.js → URDFLoader-BAROJ9ka.js} +112 -112
  3. package/dist/{animationData-DBAbHIow.js → animationData-CTWTDXsQ.js} +7 -7
  4. package/dist/{array-jRfpOka6.js → array-CRYq9Jxn.js} +4 -4
  5. package/dist/{clone-epSiajPW.js → clone-sAhQxdz5.js} +1 -1
  6. package/dist/{eleIcon-BWVKfp5t.js → eleIcon-6RTuwqdk.js} +1 -1
  7. package/dist/fileUtil-UOt_otFo.js +20 -0
  8. package/dist/{iconfont-DsSG_70z.js → iconfont-TorEaqH3.js} +49 -49
  9. package/dist/{index-Bvvz41NY.js → index--N4l6N1w.js} +1 -1
  10. package/dist/{index-Bmk-CXy5.js → index-2gwwCj6d.js} +2 -2
  11. package/dist/{index-BLAPVSLU.js → index-9UYMNDVY.js} +25949 -25999
  12. package/dist/{index-CH8pGxiX.js → index-B0BoH4wm.js} +8 -8
  13. package/dist/{index-XGieOXX9.js → index-B30aeKGM.js} +2 -2
  14. package/dist/{index-BkChdIqr.js → index-B4nNFQS-.js} +22 -22
  15. package/dist/{index-C-Cstw1x.js → index-B8_ZqXDA.js} +10 -10
  16. package/dist/{index--PjD6UIW.js → index-BCmMcLum.js} +5 -5
  17. package/dist/{index-D_kI6aHR.js → index-BKMAFsRN.js} +2 -2
  18. package/dist/{index-SjNcMhxZ.js → index-BRQACLz0.js} +5 -5
  19. package/dist/{index-D1o4d6gh.js → index-BZg5q_rs.js} +2 -2
  20. package/dist/{index-BLnbN_F-.js → index-Bkg9CQm3.js} +1 -1
  21. package/dist/{index-DVURXaLH.js → index-Bywqjsvo.js} +11810 -11450
  22. package/dist/{index-CmRnsU1X.js → index-BzT9veMM.js} +4 -4
  23. package/dist/{index-B4vESlof.js → index-C06Ba2iF.js} +2 -2
  24. package/dist/{index-CNydoPVR.js → index-C8LpAkhu.js} +6 -6
  25. package/dist/{index-FNOjQQWl.js → index-C9_Pcose.js} +2 -2
  26. package/dist/index-CGzlH16h.js +331 -0
  27. package/dist/{index-BpGFvMaU.js → index-COBZQS9O.js} +2 -2
  28. package/dist/{index-kmuFWiAq.js → index-COV5ar9Q.js} +4 -4
  29. package/dist/{index-YVR3acYT.js → index-CvOCu8lX.js} +1 -1
  30. package/dist/{index-C5r4GvjQ.js → index-D-YGtSgX.js} +5 -5
  31. package/dist/{index-CfHObnEf.js → index-D-_Ie1fO.js} +1 -1
  32. package/dist/{index-CUJOuk-t.js → index-D2g9hX2c.js} +4 -4
  33. package/dist/{index-CPRVBnQZ.js → index-DUPQ7Cfd.js} +3 -3
  34. package/dist/{index-DT2KzAmL.js → index-D_f48W32.js} +4 -4
  35. package/dist/{index-3va3ENB8.js → index-DyoKmN7k.js} +2 -2
  36. package/dist/{index-B-oUd2b-.js → index-G2ZhOQG1.js} +6 -6
  37. package/dist/{index-Bto8e0_l.js → index-TpycHQ-H.js} +3 -3
  38. package/dist/{index-Bd9AU0ks.js → index-dcW2d4Zs.js} +1 -1
  39. package/dist/{index-CWCQy24b.js → index-hGjbrq0G.js} +2 -2
  40. package/dist/{index-Lc7md2MS.js → index-tLigeTzl.js} +10 -9
  41. package/dist/{index.vue_vue_type_style_index_0_scoped_83e6d490_lang-QPys2KyW.js → index.vue_vue_type_style_index_0_scoped_83e6d490_lang-LGVq0cuS.js} +13581 -13407
  42. package/dist/{isString-CoCw_sp3.js → isString-DzMmG8uL.js} +1 -1
  43. package/dist/{main-Bgh_Vl8E.js → main-B27LAY78.js} +4 -4
  44. package/dist/{menuIndex-B7ZUahFp.js → menuIndex-C_G8igKy.js} +1 -1
  45. package/dist/{request-DiogHwkN.js → request-CllqY4TP.js} +1 -0
  46. package/dist/ss-component.css +2 -2
  47. package/dist/ss-component.js +12 -12
  48. package/dist/ss-component2.js +13 -13
  49. package/dist/{threeModel-DF67wAtc.js → threeModel-vX7holAy.js} +5 -5
  50. package/dist/{threePreview-CQQPm2oj.js → threePreview-0iSlhKYj.js} +5 -5
  51. package/dist/{threeSceneView-MukJjphg.js → threeSceneView-D1dS9xmL.js} +12 -12
  52. package/dist/{threeSceneViewForCPMPIP-Cmw3lxMx.js → threeSceneViewForCPMPIP-DWvkVqSw.js} +9 -9
  53. package/dist/{threeTrackPathView-d9QnH6pv.js → threeTrackPathView-BzrYvQKg.js} +87 -87
  54. package/dist/{threeViewerHost-CxKP0BGS.js → threeViewerHost-BA3W7FKF.js} +3 -3
  55. package/dist/{urdfTree-BMwSzHf8.js → urdfTree-CZeEnUnE.js} +1 -1
  56. package/dist/{workpieceTreePanel-DTFfwsXF.js → workpieceTreePanel-BLWHbILu.js} +32 -32
  57. package/package.json +1 -1
  58. package/dist/index-CN6F4ryE.js +0 -342
@@ -1,6 +1,6 @@
1
- import { d as K, y as C, e as x } from "./index-CPRVBnQZ.js";
2
- import { r as N, b6 as S } from "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-QPys2KyW.js";
3
- import { c as O } from "./index-DT2KzAmL.js";
1
+ import { d as K, y as C, e as x } from "./index-DUPQ7Cfd.js";
2
+ import { r as N, bf as S } from "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-LGVq0cuS.js";
3
+ import { c as O } from "./index-D_f48W32.js";
4
4
  const g = async (n) => {
5
5
  const e = n.join("/"), c = sessionStorage.getItem("systemKey");
6
6
  return await K(e, c, "");
@@ -22,9 +22,9 @@ const g = async (n) => {
22
22
  console.log("夹持长度", P, b);
23
23
  const G = Number(P), m = {}, l = await g(["弯管仿真加工分析", "仿真动画生成"]);
24
24
  l == null || l.forEach((a) => {
25
- var d, f, y, M, w, F;
25
+ var f, d, y, M, w, F;
26
26
  if ((a == null ? void 0 : a.comp) === "Table") {
27
- let L = [], u = (y = (f = (d = a == null ? void 0 : a.compData) == null ? void 0 : d.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : f.contents) == null ? void 0 : y.map((t) => t == null ? void 0 : t.label), h = (F = (w = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : F.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
27
+ let L = [], u = (y = (d = (f = a == null ? void 0 : a.compData) == null ? void 0 : f.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : y.map((t) => t == null ? void 0 : t.label), h = (F = (w = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : F.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
28
28
  h == null || h.forEach((t) => {
29
29
  L.push(
30
30
  x(
@@ -50,9 +50,9 @@ const g = async (n) => {
50
50
  console.log("夹持长度", P, b);
51
51
  const G = Number(P), m = {}, l = await g(["双弯管仿真加工分析", "仿真动画生成"]);
52
52
  l == null || l.forEach((a) => {
53
- var d, f, y, M, w, F;
53
+ var f, d, y, M, w, F;
54
54
  if ((a == null ? void 0 : a.comp) === "Table") {
55
- let L = [], u = (y = (f = (d = a == null ? void 0 : a.compData) == null ? void 0 : d.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : f.contents) == null ? void 0 : y.map((t) => t == null ? void 0 : t.label), h = (F = (w = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : F.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
55
+ let L = [], u = (y = (d = (f = a == null ? void 0 : a.compData) == null ? void 0 : f.find((t) => (t == null ? void 0 : t.key) === "header")) == null ? void 0 : d.contents) == null ? void 0 : y.map((t) => t == null ? void 0 : t.label), h = (F = (w = (M = a == null ? void 0 : a.compData) == null ? void 0 : M.find((t) => (t == null ? void 0 : t.key) === "tableContents")) == null ? void 0 : w.contents) == null ? void 0 : F.map((t) => (t = t == null ? void 0 : t.filter((o) => !(o != null && o.id)), t));
56
56
  h == null || h.forEach((t) => {
57
57
  L.push(
58
58
  x(
@@ -1,11 +1,11 @@
1
1
  import { ref as k, computed as ae, resolveComponent as te, openBlock as p, createElementBlock as M, Fragment as ue, renderList as ce, createElementVNode as w, toDisplayString as re, createVNode as R, reactive as la, watch as be, createBlock as j, resolveDynamicComponent as le, unref as _, withCtx as L, isRef as Ye, createTextVNode as de, normalizeStyle as ta, createCommentVNode as q, withModifiers as ve, normalizeClass as qe, nextTick as na } from "vue";
2
- import { T as Ie, g as aa, D as oa, E as sa, F as Je, U as ra } from "./index-BLAPVSLU.js";
3
- import { a as Ce, p as he, s as ie, c as K, u as ke, E as ua } from "./index-DT2KzAmL.js";
2
+ import { T as Ie, g as aa, D as oa, E as sa, F as Je, U as ra } from "./index-9UYMNDVY.js";
3
+ import { a as Ce, p as he, s as ie, c as K, u as ke, E as ua } from "./index-D_f48W32.js";
4
4
  import { _ as we } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  import ca from "./index-BFqUz4pN.js";
6
- import { e as ia, d as da } from "./index-DVURXaLH.js";
6
+ import { e as ia, d as da } from "./index-Bywqjsvo.js";
7
7
  import { s as va } from "./index-DJrzqi4-.js";
8
- import { E as pa } from "./request-DiogHwkN.js";
8
+ import { E as pa } from "./request-CllqY4TP.js";
9
9
  const fa = { class: "type-select" }, ha = { class: "group-label" }, ga = { class: "group-items" }, ma = ["onDragstart"], ba = {
10
10
  __name: "index",
11
11
  props: {
@@ -1,4 +1,4 @@
1
- import { a5 as r } from "./index-DT2KzAmL.js";
1
+ import { a5 as r } from "./index-D_f48W32.js";
2
2
  var a = 4;
3
3
  function n(o) {
4
4
  return r(o, a);
@@ -1,5 +1,5 @@
1
1
  import { computed as s, resolveComponent as a, openBlock as e, createElementBlock as p, createVNode as i, normalizeProps as l, guardReactiveProps as m, withCtx as _, createBlock as d, resolveDynamicComponent as u } from "vue";
2
- import { I as f, bN as v } from "./request-DiogHwkN.js";
2
+ import { I as f, bN as v } from "./request-CllqY4TP.js";
3
3
  import { _ as I } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const C = { class: "icon-selector-warp-item" }, h = {
5
5
  __name: "eleIcon",
@@ -0,0 +1,20 @@
1
+ function m(e = "") {
2
+ const t = e.match(/filename\*=UTF-8''([^;]+)/i);
3
+ if (t)
4
+ return decodeURIComponent(t[1]);
5
+ const o = e.match(/filename=["']?([^"';]+)["']?/);
6
+ return o ? o[1] : "download.xlsx";
7
+ }
8
+ const s = (e, t) => {
9
+ if (!e) return;
10
+ const o = document.createElement("a");
11
+ o.style.display = "none", o.href = e, o.download = decodeURI(t ?? ""), document.body.appendChild(o), o.click(), document.body.removeChild(o);
12
+ }, p = (e) => {
13
+ var c, a;
14
+ const t = ((c = e == null ? void 0 : e.headers) == null ? void 0 : c["content-type"]) || "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", o = new Blob([e.data], { type: t }), i = (a = e == null ? void 0 : e.headers) == null ? void 0 : a["content-disposition"], l = m(i) || "数据.xlsx", d = window.URL.createObjectURL(o), n = document.createElement("a");
15
+ n.href = d, n.setAttribute("download", l), document.body.appendChild(n), n.click(), document.body.removeChild(n), window.URL.revokeObjectURL(d);
16
+ };
17
+ export {
18
+ p as i,
19
+ s as t
20
+ };
@@ -1,5 +1,5 @@
1
- import { shallowRef as b2, ref as Y, defineComponent as z2, computed as Z, openBlock as n2, createElementBlock as h2, createElementVNode as D, normalizeStyle as d2, normalizeClass as m2 } from "vue";
2
- import { bi as w2, V as p, M as I, bj as U, at as c2, bk as u2, ap as C, bl as D2, m as J, p as F2, E as t2, B as j, h as R, av as P2, G as E2, e as e2, f as x2, S as H2, C as B2, P as S2, W as C2, b as V2, A as T2, c as L2, bm as O2, X as R2, i as k2, D as o2, H as j2, j as f2, a$ as I2, k as N2, l as Y2 } from "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-QPys2KyW.js";
1
+ import { shallowRef as b2, ref as Y, defineComponent as z2, computed as Z, openBlock as n2, createElementBlock as h2, createElementVNode as D, normalizeStyle as d2, normalizeClass as u2 } from "vue";
2
+ import { br as w2, V as p, M as I, bs as U, aC as c2, bt as m2, ay as C, bu as D2, m as J, p as F2, E as t2, B as j, h as R, aE as P2, G as E2, e as e2, f as x2, S as H2, C as B2, P as S2, W as C2, b as V2, A as T2, c as L2, bv as O2, X as R2, i as k2, D as o2, H as j2, j as f2, b8 as I2, k as N2, l as Y2 } from "./index.vue_vue_type_style_index_0_scoped_83e6d490_lang-LGVq0cuS.js";
3
3
  import { _ as A2 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const v2 = { type: "change" }, r2 = { type: "start" }, _2 = { type: "end" }, $ = new D2(), M2 = new J(), Z2 = Math.cos(70 * F2.DEG2RAD), g = new p(), P = 2 * Math.PI, z = {
5
5
  NONE: -1,
@@ -19,7 +19,7 @@ class U2 extends w2 {
19
19
  * @param {?HTMLDOMElement} domElement - The HTML element used for event listeners.
20
20
  */
21
21
  constructor(t, e = null) {
22
- super(t, e), this.state = z.NONE, this.target = new p(), this.cursor = new p(), 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: I.ROTATE, MIDDLE: I.DOLLY, RIGHT: I.PAN }, this.touches = { ONE: U.ROTATE, TWO: U.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new p(), this._lastQuaternion = new c2(), this._lastTargetPosition = new p(), this._quat = new c2().setFromUnitVectors(t.up, new p(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new u2(), this._sphericalDelta = new u2(), this._scale = 1, this._panOffset = new p(), this._rotateStart = new C(), this._rotateEnd = new C(), this._rotateDelta = new C(), this._panStart = new C(), this._panEnd = new C(), this._panDelta = new C(), this._dollyStart = new C(), this._dollyEnd = new C(), this._dollyDelta = new C(), this._dollyDirection = new p(), this._mouse = new C(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = K2.bind(this), this._onPointerDown = X2.bind(this), this._onPointerUp = W2.bind(this), this._onContextMenu = e1.bind(this), this._onMouseWheel = Q2.bind(this), this._onKeyDown = $2.bind(this), this._onTouchStart = J2.bind(this), this._onTouchMove = t1.bind(this), this._onMouseDown = G2.bind(this), this._onMouseMove = q2.bind(this), this._interceptControlDown = i1.bind(this), this._interceptControlUp = a1.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
22
+ super(t, e), this.state = z.NONE, this.target = new p(), this.cursor = new p(), 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: I.ROTATE, MIDDLE: I.DOLLY, RIGHT: I.PAN }, this.touches = { ONE: U.ROTATE, TWO: U.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this._lastPosition = new p(), this._lastQuaternion = new c2(), this._lastTargetPosition = new p(), this._quat = new c2().setFromUnitVectors(t.up, new p(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new m2(), this._sphericalDelta = new m2(), this._scale = 1, this._panOffset = new p(), this._rotateStart = new C(), this._rotateEnd = new C(), this._rotateDelta = new C(), this._panStart = new C(), this._panEnd = new C(), this._panDelta = new C(), this._dollyStart = new C(), this._dollyEnd = new C(), this._dollyDelta = new C(), this._dollyDirection = new p(), this._mouse = new C(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = K2.bind(this), this._onPointerDown = X2.bind(this), this._onPointerUp = W2.bind(this), this._onContextMenu = e1.bind(this), this._onMouseWheel = Q2.bind(this), this._onKeyDown = $2.bind(this), this._onTouchStart = J2.bind(this), this._onTouchMove = t1.bind(this), this._onMouseDown = G2.bind(this), this._onMouseMove = q2.bind(this), this._interceptControlDown = i1.bind(this), this._interceptControlUp = a1.bind(this), this.domElement !== null && this.connect(this.domElement), this.update();
23
23
  }
24
24
  connect(t) {
25
25
  super.connect(t), 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";
@@ -106,8 +106,8 @@ class U2 extends w2 {
106
106
  n.unproject(this.object);
107
107
  const f = this.object.zoom;
108
108
  this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), this.object.updateProjectionMatrix(), c = f !== this.object.zoom;
109
- const m = new p(this._mouse.x, this._mouse.y, 0);
110
- m.unproject(this.object), this.object.position.sub(m).add(n), this.object.updateMatrixWorld(), r = g.length();
109
+ const u = new p(this._mouse.x, this._mouse.y, 0);
110
+ u.unproject(this.object), this.object.position.sub(u).add(n), this.object.updateMatrixWorld(), r = g.length();
111
111
  } else
112
112
  console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
113
113
  r !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(r).add(this.object.position) : ($.origin.copy(this.object.position), $.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot($.direction)) < Z2 ? this.object.lookAt(this.target) : (M2.setFromNormalAndCoplanarPoint(this.object.up, this.target), $.intersectPlane(M2, this.target))));
@@ -507,8 +507,8 @@ function I1(i, t) {
507
507
  const { scene: e, camera: a, renderer: s, controls: c } = i();
508
508
  if (!e || !a || !s || !c)
509
509
  return;
510
- const r = s1(t), n = o1(r), f = l1(a, n), { center: m } = n, { cameraZ: M, far: b } = f;
511
- a.position.copy(m), a.position.z += M, a.lookAt(m), a.far = Math.max(b, 100), a.updateProjectionMatrix(), c.target.copy(m), c.update();
510
+ const r = s1(t), n = o1(r), f = l1(a, n), { center: u } = n, { cameraZ: M, far: b } = f;
511
+ a.position.copy(u), a.position.z += M, a.lookAt(u), a.far = Math.max(b, 100), a.updateProjectionMatrix(), c.target.copy(u), c.update();
512
512
  }
513
513
  function n1(i, t) {
514
514
  i.geometry.dispose(), Array.isArray(i.material) ? i.material.forEach((e) => e.dispose()) : i.material.dispose(), t && t.remove(i), i.geometry = null, i.material = null;
@@ -530,10 +530,10 @@ function c1(i, t) {
530
530
  }
531
531
  }
532
532
  function N1(i) {
533
- let t = null, e = null, a = null, s = null, c = null, r = [], n = null, f = null, m = null, M = null;
533
+ let t = null, e = null, a = null, s = null, c = null, r = [], n = null, f = null, u = null, M = null;
534
534
  const A = 1e3 / 30;
535
535
  let L = 0;
536
- const w = b2([]), _ = Y(new p()), h = Y(new p()), d = Y(!1), u = Y(!1), y = () => {
536
+ const w = b2([]), _ = Y(new p()), h = Y(new p()), d = Y(!1), m = Y(!1), y = () => {
537
537
  if (!i.value) return;
538
538
  const o = i.value;
539
539
  t = B(), e = S(o), a = E(o), s = x(e, a), M = V(), c = k(o, s), r = W(), _.value.copy(e.position), h.value.copy(s.target), a2(100, new p(0, 0, 0)), p2();
@@ -556,7 +556,7 @@ function N1(i) {
556
556
  }, v.panSpeed = 0.7, v;
557
557
  }, V = () => {
558
558
  const o = new O2(1e3);
559
- return o.visible = u.value, t == null || t.add(o), o;
559
+ return o.visible = m.value, t == null || t.add(o), o;
560
560
  }, k = (o, l) => {
561
561
  if (e && a && o) {
562
562
  const v = new R2(e, a, {
@@ -598,11 +598,11 @@ function N1(i) {
598
598
  }), r = null;
599
599
  }, a2 = (o, l) => {
600
600
  if (!t) return;
601
- f && (t.remove(f), f.dispose()), m && (t.remove(m), m.geometry.dispose(), m.material.dispose());
601
+ f && (t.remove(f), f.dispose()), u && (t.remove(u), u.geometry.dispose(), u.material.dispose());
602
602
  const v = Math.min(Math.max(Math.floor(o / 10), 20), 100);
603
603
  f = new E2(o, v, 13421772, 14540253), f.rotateX(Math.PI / 2), f.position.copy(l), f.visible = d.value, t.add(f);
604
604
  const F = new e2(o, o), H = new x2({ opacity: 0.3, color: 0 });
605
- m = new R(F, H), m.position.copy(l), m.position.z -= 0.01, m.receiveShadow = !0, t.add(m);
605
+ u = new R(F, H), u.position.copy(l), u.position.z -= 0.01, u.receiveShadow = !0, t.add(u);
606
606
  }, X = () => {
607
607
  if (w.value.length === 0) {
608
608
  a2(100, new p(0, 0, 0));
@@ -652,7 +652,7 @@ function N1(i) {
652
652
  initialCameraPosition: _,
653
653
  initialTargetPosition: h,
654
654
  isGridVisible: d,
655
- axesHelperVisible: u,
655
+ axesHelperVisible: m,
656
656
  // 方法
657
657
  initThreeJS: y,
658
658
  handleResize: () => {
@@ -668,7 +668,7 @@ function N1(i) {
668
668
  gizmo: c
669
669
  }),
670
670
  cleanup: () => {
671
- n && cancelAnimationFrame(n), G(), m && c1(m), f == null || f.dispose(), M == null || M.dispose(), s == null || s.dispose(), a == null || a.dispose(), c == null || c.dispose(), i2(), t == null || t.clear();
671
+ n && cancelAnimationFrame(n), G(), u && c1(u), f == null || f.dispose(), M == null || M.dispose(), s == null || s.dispose(), a == null || a.dispose(), c == null || c.dispose(), i2(), t == null || t.clear();
672
672
  },
673
673
  setModels: (o) => {
674
674
  t && (G(), o.forEach((l) => {
@@ -695,7 +695,7 @@ function N1(i) {
695
695
  d.value = o, f && (f.visible = o);
696
696
  },
697
697
  toggleAxesVisibility: () => {
698
- u.value = !u.value, M && (M.visible = u.value);
698
+ m.value = !m.value, M && (M.visible = m.value);
699
699
  },
700
700
  fitCameraToAllModels: s2,
701
701
  clearAllModels: G,
@@ -722,18 +722,18 @@ function N1(i) {
722
722
  }
723
723
  function Y1(i, t) {
724
724
  const e = Y(!1);
725
- let a = null, s = 12700, c = new p(), r = new p(), n = new p(), f = 0, m = null;
725
+ let a = null, s = 12700, c = new p(), r = new p(), n = new p(), f = 0, u = null;
726
726
  const M = (h) => h < 0.5 ? 4 * h * h * h : 1 - Math.pow(-2 * h + 2, 3) / 2, b = (h) => {
727
- const d = new p(), u = f * 1.2, y = new p(n.x + u, n.y, n.z), B = new p(n.x, n.y + u, n.z), S = new p(n.x, n.y - u, n.z);
727
+ const d = new p(), m = f * 1.2, y = new p(n.x + m, n.y, n.z), B = new p(n.x, n.y + m, n.z), S = new p(n.x, n.y - m, n.z);
728
728
  if (h <= 0.567) {
729
729
  const x = h / 0.567 * Math.PI * 2;
730
- d.x = n.x + Math.cos(x) * u, d.z = n.z + Math.sin(x) * u, d.y = n.y;
730
+ d.x = n.x + Math.cos(x) * m, d.z = n.z + Math.sin(x) * m, d.y = n.y;
731
731
  } else if (h <= 0.724) {
732
732
  const E = (h - 0.567) / 0.157, x = M(E);
733
733
  d.lerpVectors(y, B, x);
734
734
  } else if (h <= 0.881) {
735
735
  const E = (h - 0.724) / 0.157, V = M(E) * Math.PI;
736
- d.x = n.x + Math.sin(V) * u, d.y = n.y + Math.cos(V) * u, d.z = n.z;
736
+ d.x = n.x + Math.sin(V) * m, d.y = n.y + Math.cos(V) * m, d.z = n.z;
737
737
  } else {
738
738
  const E = (h - 0.881) / 0.119, x = M(E);
739
739
  d.lerpVectors(S, c, x);
@@ -743,24 +743,24 @@ function Y1(i, t) {
743
743
  const { camera: h, controls: d } = i();
744
744
  if (!h || !d) return;
745
745
  a || (a = Date.now());
746
- const u = Date.now() - a, y = Math.min(u / s, 1);
746
+ const m = Date.now() - a, y = Math.min(m / s, 1);
747
747
  if (y >= 1) {
748
748
  w();
749
749
  return;
750
750
  }
751
751
  const B = b(y);
752
- h.position.copy(B), h.lookAt(n), d.target.copy(n), m = requestAnimationFrame(A);
752
+ h.position.copy(B), h.lookAt(n), d.target.copy(n), u = requestAnimationFrame(A);
753
753
  }, L = () => {
754
754
  if (t.value.length === 0) return;
755
755
  const { camera: h, controls: d } = i();
756
756
  if (!h || !d) return;
757
757
  c.copy(h.position), r.copy(d.target);
758
- const u = new j();
758
+ const m = new j();
759
759
  t.value.forEach((k) => {
760
- u.expandByObject(k);
760
+ m.expandByObject(k);
761
761
  });
762
- const y = u.getSize(new p());
763
- n = u.getCenter(new p()), f = Math.max(y.x, y.y, y.z) * 1.2;
762
+ const y = m.getSize(new p());
763
+ n = m.getCenter(new p()), f = Math.max(y.x, y.y, y.z) * 1.2;
764
764
  const B = new p(n.x + f * 1.2, n.y, n.z);
765
765
  d.enabled = !1;
766
766
  const S = h.position.clone(), E = 1e3, x = Date.now(), V = () => {
@@ -769,7 +769,7 @@ function Y1(i, t) {
769
769
  };
770
770
  V();
771
771
  }, w = () => {
772
- e.value = !1, a = null, m && (cancelAnimationFrame(m), m = null);
772
+ e.value = !1, a = null, u && (cancelAnimationFrame(u), u = null);
773
773
  const { controls: h } = i();
774
774
  h && (h.enabled = !0, h.target.copy(r));
775
775
  };
@@ -777,13 +777,13 @@ function Y1(i, t) {
777
777
  isAnimating: e,
778
778
  toggleAnimation: () => {
779
779
  if (e.value) {
780
- e.value = !1, a = null, m && (cancelAnimationFrame(m), m = null);
780
+ e.value = !1, a = null, u && (cancelAnimationFrame(u), u = null);
781
781
  const { camera: h, controls: d } = i();
782
782
  if (!h || !d) return;
783
783
  d.enabled = !0;
784
- const u = h.position.clone(), y = d.target.clone(), B = 1500, S = Date.now(), E = () => {
784
+ const m = h.position.clone(), y = d.target.clone(), B = 1500, S = Date.now(), E = () => {
785
785
  const x = Date.now() - S, V = Math.min(x / B, 1), k = M(V);
786
- h.position.lerpVectors(u, c, k), d.target.lerpVectors(y, r, k), V < 1 && requestAnimationFrame(E);
786
+ h.position.lerpVectors(m, c, k), d.target.lerpVectors(y, r, k), V < 1 && requestAnimationFrame(E);
787
787
  };
788
788
  E();
789
789
  } else
@@ -811,14 +811,14 @@ function Z1(i, t) {
811
811
  new J(new p(0, 0, 1), 0)
812
812
  // Z轴平面
813
813
  ];
814
- }, m = () => {
814
+ }, u = () => {
815
815
  r.makeEmpty(), t.value.forEach((_) => {
816
816
  r.expandByObject(_);
817
817
  }), n = r.getCenter(new p());
818
818
  }, M = (_) => {
819
819
  const h = r.getSize(new p());
820
- let d, u, y;
821
- _ === T.X ? (d = new e2(h.z * 1.2, h.y * 1.2), u = new p(n.x, n.y, n.z), y = new t2(0, Math.PI / 2, 0)) : _ === T.Y ? (d = new e2(h.x * 1.2, h.z * 1.2), u = new p(n.x, n.y, n.z), y = new t2(Math.PI / 2, 0, 0)) : _ === T.Z && (d = new e2(h.x * 1.2, h.y * 1.2), u = new p(n.x, n.y, n.z), y = new t2(0, 0, 0));
820
+ let d, m, y;
821
+ _ === T.X ? (d = new e2(h.z * 1.2, h.y * 1.2), m = new p(n.x, n.y, n.z), y = new t2(0, Math.PI / 2, 0)) : _ === T.Y ? (d = new e2(h.x * 1.2, h.z * 1.2), m = new p(n.x, n.y, n.z), y = new t2(Math.PI / 2, 0, 0)) : _ === T.Z && (d = new e2(h.x * 1.2, h.y * 1.2), m = new p(n.x, n.y, n.z), y = new t2(0, 0, 0));
822
822
  const B = new N2({
823
823
  color: 8900331,
824
824
  transparent: !0,
@@ -826,18 +826,18 @@ function Z1(i, t) {
826
826
  side: Y2,
827
827
  depthWrite: !1
828
828
  }), S = new R(d, B);
829
- return u && S.position.copy(u), y && S.rotation.copy(y), S;
829
+ return m && S.position.copy(m), y && S.rotation.copy(y), S;
830
830
  }, b = () => {
831
831
  if (A(), L(), a.value === "none")
832
832
  return;
833
- m();
833
+ u();
834
834
  let _ = null;
835
835
  if (a.value === T.X ? (s[0].constant = -n.x, _ = s[0]) : a.value === T.Y ? (s[1].constant = -n.y, _ = s[1]) : a.value === T.Z && (s[2].constant = -n.z, _ = s[2]), _) {
836
836
  t.value.forEach((d) => {
837
- d.traverse((u) => {
838
- u instanceof R && u.isMesh && u.material && (Array.isArray(u.material) ? u.material.forEach((y) => {
837
+ d.traverse((m) => {
838
+ m instanceof R && m.isMesh && m.material && (Array.isArray(m.material) ? m.material.forEach((y) => {
839
839
  y.clippingPlanes = [_];
840
- }) : u.material.clippingPlanes = [_]);
840
+ }) : m.material.clippingPlanes = [_]);
841
841
  });
842
842
  });
843
843
  const { scene: h } = i();
@@ -866,35 +866,35 @@ function Z1(i, t) {
866
866
  isClipping: e,
867
867
  activeClippingAxis: a,
868
868
  toggleClipping: () => {
869
- e.value = !e.value, e.value ? (f(), t.value.length > 0 && m()) : (a.value = "none", A(), L());
869
+ e.value = !e.value, e.value ? (f(), t.value.length > 0 && u()) : (a.value = "none", A(), L());
870
870
  },
871
871
  updateClippingPlanes: b,
872
872
  clearClippingPlanes: A,
873
873
  clearClippingMeshes: L
874
874
  };
875
875
  }
876
- const r1 = { class: "panel-content" }, p1 = { class: "clipping-content" }, d1 = { class: "radio-group" }, m1 = { class: "radio-label" }, u1 = ["checked"], f1 = { class: "radio-label" }, v1 = ["checked"], M1 = { class: "radio-label" }, z1 = ["checked"], A1 = { class: "radio-label" }, _1 = ["checked"], y1 = /* @__PURE__ */ z2({
876
+ const r1 = { class: "panel-content" }, p1 = { class: "clipping-content" }, d1 = { class: "radio-group" }, u1 = { class: "radio-label" }, m1 = ["checked"], f1 = { class: "radio-label" }, v1 = ["checked"], M1 = { class: "radio-label" }, z1 = ["checked"], A1 = { class: "radio-label" }, _1 = ["checked"], y1 = /* @__PURE__ */ z2({
877
877
  __name: "clippingPanel",
878
878
  props: {
879
879
  value: {}
880
880
  },
881
881
  emits: ["change"],
882
882
  setup(i, { emit: t }) {
883
- const e = i, a = t, s = Z(() => e.value === T.NONE), c = Z(() => e.value === T.X), r = Z(() => e.value === T.Y), n = Z(() => e.value === T.Z), f = (m) => {
884
- const b = m.target.value;
883
+ const e = i, a = t, s = Z(() => e.value === T.NONE), c = Z(() => e.value === T.X), r = Z(() => e.value === T.Y), n = Z(() => e.value === T.Z), f = (u) => {
884
+ const b = u.target.value;
885
885
  a("change", b);
886
886
  };
887
- return (m, M) => (n2(), h2("div", r1, [
887
+ return (u, M) => (n2(), h2("div", r1, [
888
888
  D("div", p1, [
889
889
  D("div", d1, [
890
- D("label", m1, [
890
+ D("label", u1, [
891
891
  D("input", {
892
892
  type: "radio",
893
893
  name: "clipping-axis",
894
894
  value: "none",
895
895
  checked: s.value,
896
896
  onChange: f
897
- }, null, 40, u1),
897
+ }, null, 40, m1),
898
898
  M[0] || (M[0] = D("span", { class: "radio-text" }, "无切割", -1))
899
899
  ]),
900
900
  D("label", f1, [
@@ -955,11 +955,11 @@ const r1 = { class: "panel-content" }, p1 = { class: "clipping-content" }, d1 =
955
955
  };
956
956
  });
957
957
  return (c, r) => (n2(), h2("div", {
958
- class: m2(["container", { active: i.active }]),
958
+ class: u2(["container", { active: i.active }]),
959
959
  style: d2(e.value)
960
960
  }, [
961
961
  (n2(), h2("svg", {
962
- class: m2(["svg-icon", [c.$attrs.class, i.spin && "svg-icon-spin"]]),
962
+ class: u2(["svg-icon", [c.$attrs.class, i.spin && "svg-icon-spin"]]),
963
963
  style: d2(s.value),
964
964
  "aria-hidden": "true"
965
965
  }, [
@@ -988,10 +988,10 @@ window._iconfont_svg_string_4634042 = '<svg><symbol id="icon-jichuangxuanze" vie
988
988
  }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(a, 0) : (s = function() {
989
989
  document.removeEventListener("DOMContentLoaded", s, !1), a();
990
990
  }, document.addEventListener("DOMContentLoaded", s, !1)) : document.attachEvent && (c = a, r = i.document, n = !1, M(), r.onreadystatechange = function() {
991
- r.readyState == "complete" && (r.onreadystatechange = null, m());
991
+ r.readyState == "complete" && (r.onreadystatechange = null, u());
992
992
  });
993
993
  }
994
- function m() {
994
+ function u() {
995
995
  n || (n = !0, c());
996
996
  }
997
997
  function M() {
@@ -1000,7 +1000,7 @@ window._iconfont_svg_string_4634042 = '<svg><symbol id="icon-jichuangxuanze" vie
1000
1000
  } catch {
1001
1001
  return void setTimeout(M, 50);
1002
1002
  }
1003
- m();
1003
+ u();
1004
1004
  }
1005
1005
  })(window);
1006
1006
  export {
@@ -1,4 +1,4 @@
1
- import { c as t, d as y, u as d } from "./index-YVR3acYT.js";
1
+ import { c as t, d as y, u as d } from "./index-CvOCu8lX.js";
2
2
  import { ref as o } from "vue";
3
3
  const m = (e) => {
4
4
  const a = {};
@@ -1,6 +1,6 @@
1
1
  import { computed as n, ref as c, defineComponent as s, reactive as p, onMounted as i, openBlock as u, createElementBlock as f, createVNode as b } from "vue";
2
- import { V as m } from "./index-BLAPVSLU.js";
3
- import { g as d, c as _ } from "./index-Bto8e0_l.js";
2
+ import { V as m } from "./index-9UYMNDVY.js";
3
+ import { g as d, c as _ } from "./index-TpycHQ-H.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = c([]), g = n(() => [
6
6
  {