ss-component-new 1.2.121 → 1.2.122

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 (90) hide show
  1. package/dist/{MTLLoader-BU0Uj5jP.cjs → MTLLoader-C3Mwa0DG.cjs} +1 -1
  2. package/dist/{MTLLoader-BoGYC8Ei.js → MTLLoader-CECUv0TG.js} +1 -1
  3. package/dist/{OBJLoader-Cixm3SxG.cjs → OBJLoader-BhO9E6m_.cjs} +1 -1
  4. package/dist/{OBJLoader-qEN5sPHA.js → OBJLoader-vFGADRWo.js} +1 -1
  5. package/dist/{OrbitControls-73QGXBgx.js → OrbitControls-CoH93kH0.js} +1 -1
  6. package/dist/{OrbitControls-nn1QAWCC.cjs → OrbitControls-zW5_6oOD.cjs} +1 -1
  7. package/dist/{animationData-Ij535Tj0.cjs → animationData-CY3SAeDf.cjs} +1 -1
  8. package/dist/{animationData-DAR1Psji.js → animationData-DCdo-KUg.js} +1 -1
  9. package/dist/{iconfont-DfFi5cMT.js → iconfont-DPTO1--M.js} +2 -2
  10. package/dist/{iconfont-CJHykbIU.cjs → iconfont-Lb3Rmbfu.cjs} +1 -1
  11. package/dist/{index-DXvlbTUX.cjs → index-84wYghA3.cjs} +1 -1
  12. package/dist/{index-CwOWx2zX.cjs → index-B0UFZtAt.cjs} +1 -1
  13. package/dist/{index-Dn4ovLEw.cjs → index-B8EtAMgn.cjs} +1 -1
  14. package/dist/{index-DTW2q40y.js → index-BK8axche.js} +1 -1
  15. package/dist/{index-C3b3wO-F.js → index-Be6NY7JZ.js} +8 -7
  16. package/dist/{index-CYrx4kMZ.cjs → index-BiNDWoAZ.cjs} +1 -1
  17. package/dist/{index-CXVSplxS.js → index-Bj7QllaL.js} +1 -1
  18. package/dist/{index-C4trWxW0.cjs → index-Bq1zdC9V.cjs} +1 -1
  19. package/dist/{index-CG8drmPs.js → index-BqmEGrlq.js} +13 -13
  20. package/dist/{index-hlssbOO3.js → index-C30zBc6M.js} +2 -2
  21. package/dist/{index-BdICMliy.cjs → index-C6DS-XxA.cjs} +2 -2
  22. package/dist/{index-Bn0Dbcck.js → index-CAZD7S8c.js} +2 -2
  23. package/dist/{index-B2sc_EIV.js → index-CEHJm6r5.js} +6 -6
  24. package/dist/{index-HEONGHaA.js → index-CG-WfrdD.js} +1 -1
  25. package/dist/{index-1sx5rdNK.cjs → index-CG-kE7PY.cjs} +1 -1
  26. package/dist/{index-FmeTqV-z.cjs → index-CI-9yvFD.cjs} +1 -1
  27. package/dist/{index-SK2R8Au3.js → index-CJpThE2S.js} +3 -3
  28. package/dist/{index-DhZqGX5M.js → index-CM0cLvw_.js} +1 -1
  29. package/dist/{index-ChDPZPsX.cjs → index-CciFmfil.cjs} +1 -1
  30. package/dist/{index-B8cT6gbr.cjs → index-CkvOmIDp.cjs} +1 -1
  31. package/dist/{index-B4ax-cew.js → index-Cl-Cnuoa.js} +4 -4
  32. package/dist/{index-BkhztLVb.js → index-CrKbt_xC.js} +1 -1
  33. package/dist/{index-BRuyTMcP.cjs → index-CtID4Zuf.cjs} +1 -1
  34. package/dist/{index-CnOxqbyO.cjs → index-D3kXgdT0.cjs} +1 -1
  35. package/dist/{index-WXtrPIUb.cjs → index-D5q1Dddy.cjs} +1 -1
  36. package/dist/{index-DdnkbwZU.cjs → index-D9k61SwT.cjs} +1 -1
  37. package/dist/{index-Ck4xHqWp.cjs → index-DEVssjjb.cjs} +1 -1
  38. package/dist/{index-CE4MFdkj.js → index-DM027L0b.js} +2 -2
  39. package/dist/{index-DsABDW9D.js → index-DVNVG42M.js} +3 -3
  40. package/dist/{index-Cvb_fmHO.js → index-DWF7rMdX.js} +1 -1
  41. package/dist/{index-D3Iedo8k.js → index-DfunOpvD.js} +6 -6
  42. package/dist/{index-Lmou0Dh-.cjs → index-DhuNr0pz.cjs} +1 -1
  43. package/dist/{index-CGcDTU7m.js → index-Dq5Iuki5.js} +3 -3
  44. package/dist/{index-DeDBfYgx.js → index-DqwctBgW.js} +1 -1
  45. package/dist/{index-BzKqzHNY.cjs → index-DxIVsg4v.cjs} +1 -1
  46. package/dist/{index-DKtWCD8p.js → index-NtxcGmht.js} +1 -1
  47. package/dist/{index-L7Er1Xkn.js → index-OSXFbepp.js} +1 -1
  48. package/dist/{index-BcRqxekC.cjs → index-bMxNVoK5.cjs} +1 -1
  49. package/dist/{index-A57hDM9a.js → index-dJqrVHto.js} +1 -1
  50. package/dist/{index-BQIvl8vA.cjs → index-nlVvcGUU.cjs} +1 -1
  51. package/dist/{index-BQcWm9j-.cjs → index-ojMKhyW7.cjs} +1 -1
  52. package/dist/{index-B3XAh8gm.cjs → index-zhpGmqta.cjs} +1 -1
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-CPSLiF_e.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-5s_JkyjT.js} +6 -6
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-C4PvOEJj.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BD9nSJPJ.cjs} +1 -1
  55. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-f4HnuW1V.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BgpFgom2.js} +1642 -1647
  56. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BeChwhwq.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BpudsPqw.cjs} +58 -58
  57. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-D4zYHB5Q.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-tGLExksa.js} +3 -3
  58. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CM-kfGD_.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-zJyeAkTE.cjs} +1 -1
  59. package/dist/{index.vue_vue_type_style_index_1_lang-CU4J66mB.cjs → index.vue_vue_type_style_index_1_lang-7wstajTI.cjs} +1 -1
  60. package/dist/{index.vue_vue_type_style_index_1_lang-BbGlPlCS.js → index.vue_vue_type_style_index_1_lang-Bv_bfXI7.js} +4 -4
  61. package/dist/{loaderUtil-BdpTKBk4.cjs → loaderUtil-FSY6nzkw.cjs} +1 -1
  62. package/dist/{loaderUtil-B592P_6Y.js → loaderUtil-Qkf3OGme.js} +1 -1
  63. package/dist/{main-BkfmaAvF.js → main-BPxir7-6.js} +2 -2
  64. package/dist/{main-MrCi9qsL.cjs → main-DnckO_qB.cjs} +1 -1
  65. package/dist/ss-component.cjs +1 -1
  66. package/dist/ss-component.css +1 -1
  67. package/dist/ss-component.js +9 -9
  68. package/dist/ss-component2.cjs +1 -1
  69. package/dist/ss-component2.js +10 -10
  70. package/dist/{threeModel-BjTvKKlz.cjs → threeModel-AC_eef5y.cjs} +1 -1
  71. package/dist/{threeModel-CgvecinJ.js → threeModel-Dze987Xj.js} +4 -4
  72. package/dist/{threePreview-CpGJT5JF.js → threePreview-C-gMHx1q.js} +4 -4
  73. package/dist/{threePreview-CZUHJyvq.cjs → threePreview-KodXUTk8.cjs} +1 -1
  74. package/dist/{threeSceneView-C15fSMC0.cjs → threeSceneView-B-RuhVH5.cjs} +1 -1
  75. package/dist/{threeSceneView-BqpYM5f8.js → threeSceneView-BOSBjjsc.js} +6 -6
  76. package/dist/{threeSceneViewForCPMPIP-P5_VO8mK.js → threeSceneViewForCPMPIP-CxS1vijk.js} +7 -7
  77. package/dist/{threeSceneViewForCPMPIP-BgO2g3cI.cjs → threeSceneViewForCPMPIP-DK9xOlyD.cjs} +1 -1
  78. package/dist/{threeTrackPathView-6Gz7GbWR.cjs → threeTrackPathView-2W_GSj2E.cjs} +1 -1
  79. package/dist/{threeTrackPathView-T-i6Ljm_.js → threeTrackPathView-BKIlZrgg.js} +5 -5
  80. package/dist/{threeViewerHost-BnkccBX4.js → threeViewerHost-B7T6UF3N.js} +21 -20
  81. package/dist/{threeViewerHost-BrW-Q5yS.cjs → threeViewerHost-ZigQifBN.cjs} +2 -2
  82. package/dist/{urdfTree-B5MFR-vI.js → urdfTree-B_jZzuSA.js} +1 -1
  83. package/dist/{urdfTree-DcDCH-Mt.cjs → urdfTree-a-IdfJ0p.cjs} +1 -1
  84. package/dist/{workpieceTreePanel-CwWOx6nS.js → workpieceTreePanel-BiT-90Xu.js} +6 -6
  85. package/dist/{workpieceTreePanel-CNXYaSy_.cjs → workpieceTreePanel-CVr7KtFN.cjs} +1 -1
  86. package/package.json +1 -1
  87. package/dist/obj/model.mtl +0 -42
  88. package/dist/obj/model.obj +0 -26110
  89. package/public/obj/model.mtl +0 -42
  90. package/public/obj/model.obj +0 -26110
@@ -1,2 +1,2 @@
1
- "use strict";const i=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BeChwhwq.cjs");class P extends i.Loader{constructor(e){super(e)}load(e,l,u,t){const o=this,c=new i.FileLoader(this.manager);c.setPath(this.path),c.setResponseType("arraybuffer"),c.setRequestHeader(this.requestHeader),c.setWithCredentials(this.withCredentials),c.load(e,function(n){try{l(o.parse(n))}catch(r){t?t(r):console.error(r),o.manager.itemError(e)}},u,t)}parse(e){function l(s){const a=new DataView(s),p=32/8*3+32/8*3*3+16/8,f=a.getUint32(80,!0);if(80+32/8+f*p===a.byteLength)return!0;const x=[115,111,108,105,100];for(let m=0;m<5;m++)if(u(x,a,m))return!1;return!0}function u(s,a,p){for(let f=0,g=s.length;f<g;f++)if(s[f]!==a.getUint8(p+f))return!1;return!0}function t(s){const a=new DataView(s),p=a.getUint32(80,!0);let f,g,x,m=!1,L,_,M,v,B;for(let d=0;d<70;d++)a.getUint32(d,!1)==1129270351&&a.getUint8(d+4)==82&&a.getUint8(d+5)==61&&(m=!0,L=new Float32Array(p*3*3),_=a.getUint8(d+6)/255,M=a.getUint8(d+7)/255,v=a.getUint8(d+8)/255,B=a.getUint8(d+9)/255);const k=84,h=12*4+2,F=new i.BufferGeometry,y=new Float32Array(p*3*3),C=new Float32Array(p*3*3),S=new i.Color;for(let d=0;d<p;d++){const A=k+d*h,O=a.getFloat32(A,!0),R=a.getFloat32(A+4,!0),T=a.getFloat32(A+8,!0);if(m){const w=a.getUint16(A+48,!0);(w&32768)===0?(f=(w&31)/31,g=(w>>5&31)/31,x=(w>>10&31)/31):(f=_,g=M,x=v)}for(let w=1;w<=3;w++){const U=A+w*12,b=d*3*3+(w-1)*3;y[b]=a.getFloat32(U,!0),y[b+1]=a.getFloat32(U+4,!0),y[b+2]=a.getFloat32(U+8,!0),C[b]=O,C[b+1]=R,C[b+2]=T,m&&(S.setRGB(f,g,x,i.SRGBColorSpace),L[b]=S.r,L[b+1]=S.g,L[b+2]=S.b)}}return F.setAttribute("position",new i.BufferAttribute(y,3)),F.setAttribute("normal",new i.BufferAttribute(C,3)),m&&(F.setAttribute("color",new i.BufferAttribute(L,3)),F.hasColors=!0,F.alpha=B),F}function o(s){const a=new i.BufferGeometry,p=/solid([\s\S]*?)endsolid/g,f=/facet([\s\S]*?)endfacet/g,g=/solid\s(.+)/;let x=0;const m=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,L=new RegExp("vertex"+m+m+m,"g"),_=new RegExp("normal"+m+m+m,"g"),M=[],v=[],B=[],k=new i.Vector3;let h,F=0,y=0,C=0;for(;(h=p.exec(s))!==null;){y=C;const S=h[0],d=(h=g.exec(S))!==null?h[1]:"";for(B.push(d);(h=f.exec(S))!==null;){let R=0,T=0;const w=h[0];for(;(h=_.exec(w))!==null;)k.x=parseFloat(h[1]),k.y=parseFloat(h[2]),k.z=parseFloat(h[3]),T++;for(;(h=L.exec(w))!==null;)M.push(parseFloat(h[1]),parseFloat(h[2]),parseFloat(h[3])),v.push(k.x,k.y,k.z),R++,C++;T!==1&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+x),R!==3&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+x),x++}const A=y,O=C-y;a.userData.groupNames=B,a.addGroup(A,O,F),F++}return a.setAttribute("position",new i.Float32BufferAttribute(M,3)),a.setAttribute("normal",new i.Float32BufferAttribute(v,3)),a}function c(s){return typeof s!="string"?new TextDecoder().decode(s):s}function n(s){if(typeof s=="string"){const a=new Uint8Array(s.length);for(let p=0;p<s.length;p++)a[p]=s.charCodeAt(p)&255;return a.buffer||a}else return s}const r=n(e);return l(r)?t(r):o(c(e))}}class V extends i.Loader{constructor(e){super(e)}load(e,l,u,t){const o=this,c=this.path===""?i.LoaderUtils.extractUrlBase(e):this.path,n=new i.FileLoader(this.manager);n.setPath(this.path),n.setRequestHeader(this.requestHeader),n.setWithCredentials(this.withCredentials),n.load(e,function(r){try{l(o.parse(r,c))}catch(s){t?t(s):console.error(s),o.manager.itemError(e)}},u,t)}setMaterialOptions(e){return this.materialOptions=e,this}parse(e,l){const u=e.split(`
1
+ "use strict";const i=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BpudsPqw.cjs");class P extends i.Loader{constructor(e){super(e)}load(e,l,u,t){const o=this,c=new i.FileLoader(this.manager);c.setPath(this.path),c.setResponseType("arraybuffer"),c.setRequestHeader(this.requestHeader),c.setWithCredentials(this.withCredentials),c.load(e,function(n){try{l(o.parse(n))}catch(r){t?t(r):console.error(r),o.manager.itemError(e)}},u,t)}parse(e){function l(s){const a=new DataView(s),p=32/8*3+32/8*3*3+16/8,f=a.getUint32(80,!0);if(80+32/8+f*p===a.byteLength)return!0;const x=[115,111,108,105,100];for(let m=0;m<5;m++)if(u(x,a,m))return!1;return!0}function u(s,a,p){for(let f=0,g=s.length;f<g;f++)if(s[f]!==a.getUint8(p+f))return!1;return!0}function t(s){const a=new DataView(s),p=a.getUint32(80,!0);let f,g,x,m=!1,L,_,M,v,B;for(let d=0;d<70;d++)a.getUint32(d,!1)==1129270351&&a.getUint8(d+4)==82&&a.getUint8(d+5)==61&&(m=!0,L=new Float32Array(p*3*3),_=a.getUint8(d+6)/255,M=a.getUint8(d+7)/255,v=a.getUint8(d+8)/255,B=a.getUint8(d+9)/255);const k=84,h=12*4+2,F=new i.BufferGeometry,y=new Float32Array(p*3*3),C=new Float32Array(p*3*3),S=new i.Color;for(let d=0;d<p;d++){const A=k+d*h,O=a.getFloat32(A,!0),R=a.getFloat32(A+4,!0),T=a.getFloat32(A+8,!0);if(m){const w=a.getUint16(A+48,!0);(w&32768)===0?(f=(w&31)/31,g=(w>>5&31)/31,x=(w>>10&31)/31):(f=_,g=M,x=v)}for(let w=1;w<=3;w++){const U=A+w*12,b=d*3*3+(w-1)*3;y[b]=a.getFloat32(U,!0),y[b+1]=a.getFloat32(U+4,!0),y[b+2]=a.getFloat32(U+8,!0),C[b]=O,C[b+1]=R,C[b+2]=T,m&&(S.setRGB(f,g,x,i.SRGBColorSpace),L[b]=S.r,L[b+1]=S.g,L[b+2]=S.b)}}return F.setAttribute("position",new i.BufferAttribute(y,3)),F.setAttribute("normal",new i.BufferAttribute(C,3)),m&&(F.setAttribute("color",new i.BufferAttribute(L,3)),F.hasColors=!0,F.alpha=B),F}function o(s){const a=new i.BufferGeometry,p=/solid([\s\S]*?)endsolid/g,f=/facet([\s\S]*?)endfacet/g,g=/solid\s(.+)/;let x=0;const m=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,L=new RegExp("vertex"+m+m+m,"g"),_=new RegExp("normal"+m+m+m,"g"),M=[],v=[],B=[],k=new i.Vector3;let h,F=0,y=0,C=0;for(;(h=p.exec(s))!==null;){y=C;const S=h[0],d=(h=g.exec(S))!==null?h[1]:"";for(B.push(d);(h=f.exec(S))!==null;){let R=0,T=0;const w=h[0];for(;(h=_.exec(w))!==null;)k.x=parseFloat(h[1]),k.y=parseFloat(h[2]),k.z=parseFloat(h[3]),T++;for(;(h=L.exec(w))!==null;)M.push(parseFloat(h[1]),parseFloat(h[2]),parseFloat(h[3])),v.push(k.x,k.y,k.z),R++,C++;T!==1&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+x),R!==3&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+x),x++}const A=y,O=C-y;a.userData.groupNames=B,a.addGroup(A,O,F),F++}return a.setAttribute("position",new i.Float32BufferAttribute(M,3)),a.setAttribute("normal",new i.Float32BufferAttribute(v,3)),a}function c(s){return typeof s!="string"?new TextDecoder().decode(s):s}function n(s){if(typeof s=="string"){const a=new Uint8Array(s.length);for(let p=0;p<s.length;p++)a[p]=s.charCodeAt(p)&255;return a.buffer||a}else return s}const r=n(e);return l(r)?t(r):o(c(e))}}class V extends i.Loader{constructor(e){super(e)}load(e,l,u,t){const o=this,c=this.path===""?i.LoaderUtils.extractUrlBase(e):this.path,n=new i.FileLoader(this.manager);n.setPath(this.path),n.setRequestHeader(this.requestHeader),n.setWithCredentials(this.withCredentials),n.load(e,function(r){try{l(o.parse(r,c))}catch(s){t?t(s):console.error(s),o.manager.itemError(e)}},u,t)}setMaterialOptions(e){return this.materialOptions=e,this}parse(e,l){const u=e.split(`
2
2
  `);let t={};const o=/\s+/,c={};for(let r=0;r<u.length;r++){let s=u[r];if(s=s.trim(),s.length===0||s.charAt(0)==="#")continue;const a=s.indexOf(" ");let p=a>=0?s.substring(0,a):s;p=p.toLowerCase();let f=a>=0?s.substring(a+1):"";if(f=f.trim(),p==="newmtl")t={name:f},c[f]=t;else if(p==="ka"||p==="kd"||p==="ks"||p==="ke"){const g=f.split(o,3);t[p]=[parseFloat(g[0]),parseFloat(g[1]),parseFloat(g[2])]}else t[p]=f}const n=new D(this.resourcePath||l,this.materialOptions);return n.setCrossOrigin(this.crossOrigin),n.setManager(this.manager),n.setMaterials(c),n}}class D{constructor(e="",l={}){this.baseUrl=e,this.options=l,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.crossOrigin="anonymous",this.side=this.options.side!==void 0?this.options.side:i.FrontSide,this.wrap=this.options.wrap!==void 0?this.options.wrap:i.RepeatWrapping}setCrossOrigin(e){return this.crossOrigin=e,this}setManager(e){this.manager=e}setMaterials(e){this.materialsInfo=this.convert(e),this.materials={},this.materialsArray=[],this.nameLookup={}}convert(e){if(!this.options)return e;const l={};for(const u in e){const t=e[u],o={};l[u]=o;for(const c in t){let n=!0,r=t[c];const s=c.toLowerCase();switch(s){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(r=[r[0]/255,r[1]/255,r[2]/255]),this.options&&this.options.ignoreZeroRGBs&&r[0]===0&&r[1]===0&&r[2]===0&&(n=!1);break}n&&(o[s]=r)}}return l}preload(){for(const e in this.materialsInfo)this.create(e)}getIndex(e){return this.nameLookup[e]}getAsArray(){let e=0;for(const l in this.materialsInfo)this.materialsArray[e]=this.create(l),this.nameLookup[l]=e,e++;return this.materialsArray}create(e){return this.materials[e]===void 0&&this.createMaterial_(e),this.materials[e]}createMaterial_(e){const l=this,u=this.materialsInfo[e],t={name:e,side:this.side};function o(n,r){return typeof r!="string"||r===""?"":/^https?:\/\//i.test(r)?r:n+r}function c(n,r){if(t[n])return;const s=l.getTextureParams(r,t),a=l.loadTexture(o(l.baseUrl,s.url));a.repeat.copy(s.scale),a.offset.copy(s.offset),a.wrapS=l.wrap,a.wrapT=l.wrap,(n==="map"||n==="emissiveMap")&&(a.colorSpace=i.SRGBColorSpace),t[n]=a}for(const n in u){const r=u[n];let s;if(r!=="")switch(n.toLowerCase()){case"kd":t.color=i.ColorManagement.colorSpaceToWorking(new i.Color().fromArray(r),i.SRGBColorSpace);break;case"ks":t.specular=i.ColorManagement.colorSpaceToWorking(new i.Color().fromArray(r),i.SRGBColorSpace);break;case"ke":t.emissive=i.ColorManagement.colorSpaceToWorking(new i.Color().fromArray(r),i.SRGBColorSpace);break;case"map_kd":c("map",r);break;case"map_ks":c("specularMap",r);break;case"map_ke":c("emissiveMap",r);break;case"norm":c("normalMap",r);break;case"map_bump":case"bump":c("bumpMap",r);break;case"disp":c("displacementMap",r);break;case"map_d":c("alphaMap",r),t.transparent=!0;break;case"ns":t.shininess=parseFloat(r);break;case"d":s=parseFloat(r),s<1&&(t.opacity=s,t.transparent=!0);break;case"tr":s=parseFloat(r),this.options&&this.options.invertTrProperty&&(s=1-s),s>0&&(t.opacity=1-s,t.transparent=!0);break}}return this.materials[e]=new i.MeshPhongMaterial(t),this.materials[e]}getTextureParams(e,l){const u={scale:new i.Vector2(1,1),offset:new i.Vector2(0,0)},t=e.split(/\s+/);let o;return o=t.indexOf("-bm"),o>=0&&(l.bumpScale=parseFloat(t[o+1]),t.splice(o,2)),o=t.indexOf("-mm"),o>=0&&(l.displacementBias=parseFloat(t[o+1]),l.displacementScale=parseFloat(t[o+2]),t.splice(o,3)),o=t.indexOf("-s"),o>=0&&(u.scale.set(parseFloat(t[o+1]),parseFloat(t[o+2])),t.splice(o,4)),o=t.indexOf("-o"),o>=0&&(u.offset.set(parseFloat(t[o+1]),parseFloat(t[o+2])),t.splice(o,4)),u.url=t.join(" ").trim(),u}loadTexture(e,l,u,t,o){const c=this.manager!==void 0?this.manager:i.DefaultLoadingManager;let n=c.getHandler(e);n===null&&(n=new i.TextureLoader(c)),n.setCrossOrigin&&n.setCrossOrigin(this.crossOrigin);const r=n.load(e,u,t,o);return l!==void 0&&(r.mapping=l),r}}exports.MTLLoader=V;exports.STLLoader=P;
@@ -1,4 +1,4 @@
1
- import { O as W, R as z, w as G, C as B, f as O, a5 as V, V as q, aE as H, Q as Y, aB as Z, ad as j, aA as D, o as Q, Y as E, aU as X, a3 as J } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-f4HnuW1V.js";
1
+ import { O as W, R as z, w as G, C as B, f as O, a5 as V, V as q, aE as H, Q as Y, aB as Z, ad as j, aA as D, o as Q, Y as E, aU as X, a3 as J } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BgpFgom2.js";
2
2
  class N extends W {
3
3
  /**
4
4
  * Constructs a new STL loader.
@@ -1,4 +1,4 @@
1
- "use strict";const r=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BeChwhwq.cjs"),z=/^[og]\s*(.+)?/,B=/^mtllib /,U=/^usemtl /,S=/^usemap /,A=/\s+/,P=new r.Vector3,M=new r.Vector3,I=new r.Vector3,C=new r.Vector3,j=new r.Vector3,V=new r.Color;function D(){const L={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(s,e){if(this.object&&this.object.fromDeclaration===!1){this.object.name=s,this.object.fromDeclaration=e!==!1;return}const n=this.object&&typeof this.object.currentMaterial=="function"?this.object.currentMaterial():void 0;if(this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0),this.object={name:s||"",fromDeclaration:e!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(t,i){const l=this._finalize(!1);l&&(l.inherited||l.groupCount<=0)&&this.materials.splice(l.index,1);const m={index:this.materials.length,name:t||"",mtllib:Array.isArray(i)&&i.length>0?i[i.length-1]:"",smooth:l!==void 0?l.smooth:this.smooth,groupStart:l!==void 0?l.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(b){const a={index:typeof b=="number"?b:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return a.clone=this.clone.bind(a),a}};return this.materials.push(m),m},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){const i=this.currentMaterial();if(i&&i.groupEnd===-1&&(i.groupEnd=this.geometry.vertices.length/3,i.groupCount=i.groupEnd-i.groupStart,i.inherited=!1),t&&this.materials.length>1)for(let l=this.materials.length-1;l>=0;l--)this.materials[l].groupCount<=0&&this.materials.splice(l,1);return t&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),i}},n&&n.name&&typeof n.clone=="function"){const t=n.clone(0);t.inherited=!0,this.object.materials.push(t)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(s,e){const n=parseInt(s,10);return(n>=0?n-1:n+e/3)*3},parseNormalIndex:function(s,e){const n=parseInt(s,10);return(n>=0?n-1:n+e/3)*3},parseUVIndex:function(s,e){const n=parseInt(s,10);return(n>=0?n-1:n+e/2)*2},addVertex:function(s,e,n){const t=this.vertices,i=this.object.geometry.vertices;i.push(t[s+0],t[s+1],t[s+2]),i.push(t[e+0],t[e+1],t[e+2]),i.push(t[n+0],t[n+1],t[n+2])},addVertexPoint:function(s){const e=this.vertices;this.object.geometry.vertices.push(e[s+0],e[s+1],e[s+2])},addVertexLine:function(s){const e=this.vertices;this.object.geometry.vertices.push(e[s+0],e[s+1],e[s+2])},addNormal:function(s,e,n){const t=this.normals,i=this.object.geometry.normals;i.push(t[s+0],t[s+1],t[s+2]),i.push(t[e+0],t[e+1],t[e+2]),i.push(t[n+0],t[n+1],t[n+2])},addFaceNormal:function(s,e,n){const t=this.vertices,i=this.object.geometry.normals;P.fromArray(t,s),M.fromArray(t,e),I.fromArray(t,n),j.subVectors(I,M),C.subVectors(P,M),j.cross(C),j.normalize(),i.push(j.x,j.y,j.z),i.push(j.x,j.y,j.z),i.push(j.x,j.y,j.z)},addColor:function(s,e,n){const t=this.colors,i=this.object.geometry.colors;t[s]!==void 0&&i.push(t[s+0],t[s+1],t[s+2]),t[e]!==void 0&&i.push(t[e+0],t[e+1],t[e+2]),t[n]!==void 0&&i.push(t[n+0],t[n+1],t[n+2])},addUV:function(s,e,n){const t=this.uvs,i=this.object.geometry.uvs;i.push(t[s+0],t[s+1]),i.push(t[e+0],t[e+1]),i.push(t[n+0],t[n+1])},addDefaultUV:function(){const s=this.object.geometry.uvs;s.push(0,0),s.push(0,0),s.push(0,0)},addUVLine:function(s){const e=this.uvs;this.object.geometry.uvs.push(e[s+0],e[s+1])},addFace:function(s,e,n,t,i,l,m,b,a){const u=this.vertices.length;let o=this.parseVertexIndex(s,u),c=this.parseVertexIndex(e,u),f=this.parseVertexIndex(n,u);if(this.addVertex(o,c,f),this.addColor(o,c,f),m!==void 0&&m!==""){const p=this.normals.length;o=this.parseNormalIndex(m,p),c=this.parseNormalIndex(b,p),f=this.parseNormalIndex(a,p),this.addNormal(o,c,f)}else this.addFaceNormal(o,c,f);if(t!==void 0&&t!==""){const p=this.uvs.length;o=this.parseUVIndex(t,p),c=this.parseUVIndex(i,p),f=this.parseUVIndex(l,p),this.addUV(o,c,f),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(s){this.object.geometry.type="Points";const e=this.vertices.length;for(let n=0,t=s.length;n<t;n++){const i=this.parseVertexIndex(s[n],e);this.addVertexPoint(i),this.addColor(i)}},addLineGeometry:function(s,e){this.object.geometry.type="Line";const n=this.vertices.length,t=this.uvs.length;for(let i=0,l=s.length;i<l;i++)this.addVertexLine(this.parseVertexIndex(s[i],n));for(let i=0,l=e.length;i<l;i++)this.addUVLine(this.parseUVIndex(e[i],t))}};return L.startObject("",!1),L}class G extends r.Loader{constructor(s){super(s),this.materials=null}load(s,e,n,t){const i=this,l=new r.FileLoader(this.manager);l.setPath(this.path),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(s,function(m){try{e(i.parse(m))}catch(b){t?t(b):console.error(b),i.manager.itemError(s)}},n,t)}setMaterials(s){return this.materials=s,this}parse(s){const e=new D;s.indexOf(`\r
1
+ "use strict";const r=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BpudsPqw.cjs"),z=/^[og]\s*(.+)?/,B=/^mtllib /,U=/^usemtl /,S=/^usemap /,A=/\s+/,P=new r.Vector3,M=new r.Vector3,I=new r.Vector3,C=new r.Vector3,j=new r.Vector3,V=new r.Color;function D(){const L={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(s,e){if(this.object&&this.object.fromDeclaration===!1){this.object.name=s,this.object.fromDeclaration=e!==!1;return}const n=this.object&&typeof this.object.currentMaterial=="function"?this.object.currentMaterial():void 0;if(this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0),this.object={name:s||"",fromDeclaration:e!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(t,i){const l=this._finalize(!1);l&&(l.inherited||l.groupCount<=0)&&this.materials.splice(l.index,1);const m={index:this.materials.length,name:t||"",mtllib:Array.isArray(i)&&i.length>0?i[i.length-1]:"",smooth:l!==void 0?l.smooth:this.smooth,groupStart:l!==void 0?l.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(b){const a={index:typeof b=="number"?b:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return a.clone=this.clone.bind(a),a}};return this.materials.push(m),m},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){const i=this.currentMaterial();if(i&&i.groupEnd===-1&&(i.groupEnd=this.geometry.vertices.length/3,i.groupCount=i.groupEnd-i.groupStart,i.inherited=!1),t&&this.materials.length>1)for(let l=this.materials.length-1;l>=0;l--)this.materials[l].groupCount<=0&&this.materials.splice(l,1);return t&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),i}},n&&n.name&&typeof n.clone=="function"){const t=n.clone(0);t.inherited=!0,this.object.materials.push(t)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(s,e){const n=parseInt(s,10);return(n>=0?n-1:n+e/3)*3},parseNormalIndex:function(s,e){const n=parseInt(s,10);return(n>=0?n-1:n+e/3)*3},parseUVIndex:function(s,e){const n=parseInt(s,10);return(n>=0?n-1:n+e/2)*2},addVertex:function(s,e,n){const t=this.vertices,i=this.object.geometry.vertices;i.push(t[s+0],t[s+1],t[s+2]),i.push(t[e+0],t[e+1],t[e+2]),i.push(t[n+0],t[n+1],t[n+2])},addVertexPoint:function(s){const e=this.vertices;this.object.geometry.vertices.push(e[s+0],e[s+1],e[s+2])},addVertexLine:function(s){const e=this.vertices;this.object.geometry.vertices.push(e[s+0],e[s+1],e[s+2])},addNormal:function(s,e,n){const t=this.normals,i=this.object.geometry.normals;i.push(t[s+0],t[s+1],t[s+2]),i.push(t[e+0],t[e+1],t[e+2]),i.push(t[n+0],t[n+1],t[n+2])},addFaceNormal:function(s,e,n){const t=this.vertices,i=this.object.geometry.normals;P.fromArray(t,s),M.fromArray(t,e),I.fromArray(t,n),j.subVectors(I,M),C.subVectors(P,M),j.cross(C),j.normalize(),i.push(j.x,j.y,j.z),i.push(j.x,j.y,j.z),i.push(j.x,j.y,j.z)},addColor:function(s,e,n){const t=this.colors,i=this.object.geometry.colors;t[s]!==void 0&&i.push(t[s+0],t[s+1],t[s+2]),t[e]!==void 0&&i.push(t[e+0],t[e+1],t[e+2]),t[n]!==void 0&&i.push(t[n+0],t[n+1],t[n+2])},addUV:function(s,e,n){const t=this.uvs,i=this.object.geometry.uvs;i.push(t[s+0],t[s+1]),i.push(t[e+0],t[e+1]),i.push(t[n+0],t[n+1])},addDefaultUV:function(){const s=this.object.geometry.uvs;s.push(0,0),s.push(0,0),s.push(0,0)},addUVLine:function(s){const e=this.uvs;this.object.geometry.uvs.push(e[s+0],e[s+1])},addFace:function(s,e,n,t,i,l,m,b,a){const u=this.vertices.length;let o=this.parseVertexIndex(s,u),c=this.parseVertexIndex(e,u),f=this.parseVertexIndex(n,u);if(this.addVertex(o,c,f),this.addColor(o,c,f),m!==void 0&&m!==""){const p=this.normals.length;o=this.parseNormalIndex(m,p),c=this.parseNormalIndex(b,p),f=this.parseNormalIndex(a,p),this.addNormal(o,c,f)}else this.addFaceNormal(o,c,f);if(t!==void 0&&t!==""){const p=this.uvs.length;o=this.parseUVIndex(t,p),c=this.parseUVIndex(i,p),f=this.parseUVIndex(l,p),this.addUV(o,c,f),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(s){this.object.geometry.type="Points";const e=this.vertices.length;for(let n=0,t=s.length;n<t;n++){const i=this.parseVertexIndex(s[n],e);this.addVertexPoint(i),this.addColor(i)}},addLineGeometry:function(s,e){this.object.geometry.type="Line";const n=this.vertices.length,t=this.uvs.length;for(let i=0,l=s.length;i<l;i++)this.addVertexLine(this.parseVertexIndex(s[i],n));for(let i=0,l=e.length;i<l;i++)this.addUVLine(this.parseUVIndex(e[i],t))}};return L.startObject("",!1),L}class G extends r.Loader{constructor(s){super(s),this.materials=null}load(s,e,n,t){const i=this,l=new r.FileLoader(this.manager);l.setPath(this.path),l.setRequestHeader(this.requestHeader),l.setWithCredentials(this.withCredentials),l.load(s,function(m){try{e(i.parse(m))}catch(b){t?t(b):console.error(b),i.manager.itemError(s)}},n,t)}setMaterials(s){return this.materials=s,this}parse(s){const e=new D;s.indexOf(`\r
2
2
  `)!==-1&&(s=s.replace(/\r\n/g,`
3
3
  `)),s.indexOf(`\\
4
4
  `)!==-1&&(s=s.replace(/\\\n/g,""));const n=s.split(`
@@ -1,4 +1,4 @@
1
- import { O as N, R, C as H, f as k, u as T, w as P, aE as w, ai as C, ah as U, ag as L, o as J, am as O, ao as z, k as D, V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-f4HnuW1V.js";
1
+ import { O as N, R, C as H, f as k, u as T, w as P, aE as w, ai as C, ah as U, ag as L, o as J, am as O, ao as z, k as D, V } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BgpFgom2.js";
2
2
  const q = /^[og]\s*(.+)?/, W = /^mtllib /, K = /^usemtl /, Q = /^usemap /, E = /\s+/, S = new V(), F = new V(), B = new V(), G = new V(), j = new V(), _ = new H();
3
3
  function X() {
4
4
  const I = {
@@ -1,4 +1,4 @@
1
- import { b5 as S, V as p, M as u, b6 as _, a0 as E, b7 as P, Y as c, b8 as w, q as O, s as R } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-f4HnuW1V.js";
1
+ import { b5 as S, V as p, M as u, b6 as _, a0 as E, b7 as P, Y as c, b8 as w, q as O, s as R } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BgpFgom2.js";
2
2
  const D = { type: "change" }, b = { type: "start" }, M = { type: "end" }, f = new w(), T = new O(), j = Math.cos(70 * R.DEG2RAD), n = new p(), r = 2 * Math.PI, o = {
3
3
  NONE: -1,
4
4
  ROTATE: 0,
@@ -1 +1 @@
1
- "use strict";const s=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BeChwhwq.cjs"),y={type:"change"},m={type:"start"},g={type:"end"},_=new s.Ray,b=new s.Plane,E=Math.cos(70*s.MathUtils.DEG2RAD),h=new s.Vector3,l=2*Math.PI,a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},u=1e-6;class P extends s.Controls{constructor(t,e=null){super(t,e),this.state=a.NONE,this.target=new s.Vector3,this.cursor=new s.Vector3,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=.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:s.MOUSE.ROTATE,MIDDLE:s.MOUSE.DOLLY,RIGHT:s.MOUSE.PAN},this.touches={ONE:s.TOUCH.ROTATE,TWO:s.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new s.Vector3,this._lastQuaternion=new s.Quaternion,this._lastTargetPosition=new s.Vector3,this._quat=new s.Quaternion().setFromUnitVectors(t.up,new s.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new s.Spherical,this._sphericalDelta=new s.Spherical,this._scale=1,this._panOffset=new s.Vector3,this._rotateStart=new s.Vector2,this._rotateEnd=new s.Vector2,this._rotateDelta=new s.Vector2,this._panStart=new s.Vector2,this._panEnd=new s.Vector2,this._panDelta=new s.Vector2,this._dollyStart=new s.Vector2,this._dollyEnd=new s.Vector2,this._dollyDelta=new s.Vector2,this._dollyDirection=new s.Vector3,this._mouse=new s.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=D.bind(this),this._onPointerDown=T.bind(this),this._onPointerUp=M.bind(this),this._onContextMenu=L.bind(this),this._onMouseWheel=w.bind(this),this._onKeyDown=R.bind(this),this._onTouchStart=j.bind(this),this._onTouchMove=A.bind(this),this._onMouseDown=S.bind(this),this._onMouseMove=O.bind(this),this._interceptControlDown=C.bind(this),this._interceptControlUp=x.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(t){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"}disconnect(){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"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(y),this.update(),this.state=a.NONE}update(t=null){const e=this.object.position;h.copy(e).sub(this.target),h.applyQuaternion(this._quat),this._spherical.setFromVector3(h),this.autoRotate&&this.state===a.NONE&&this._rotateLeft(this._getAutoRotationAngle(t)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let o=this.minAzimuthAngle,n=this.maxAzimuthAngle;isFinite(o)&&isFinite(n)&&(o<-Math.PI?o+=l:o>Math.PI&&(o-=l),n<-Math.PI?n+=l:n>Math.PI&&(n-=l),o<=n?this._spherical.theta=Math.max(o,Math.min(n,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(o+n)/2?Math.max(o,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);let r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const c=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=c!=this._spherical.radius}if(h.setFromSpherical(this._spherical),h.applyQuaternion(this._quatInverse),e.copy(this.target).add(h),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){let c=null;if(this.object.isPerspectiveCamera){const p=h.length();c=this._clampDistance(p*this._scale);const d=p-c;this.object.position.addScaledVector(this._dollyDirection,d),this.object.updateMatrixWorld(),r=!!d}else if(this.object.isOrthographicCamera){const p=new s.Vector3(this._mouse.x,this._mouse.y,0);p.unproject(this.object);const d=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=d!==this.object.zoom;const f=new s.Vector3(this._mouse.x,this._mouse.y,0);f.unproject(this.object),this.object.position.sub(f).add(p),this.object.updateMatrixWorld(),c=h.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;c!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(c).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))<E?this.object.lookAt(this.target):(b.setFromNormalAndCoplanarPoint(this.object.up,this.target),_.intersectPlane(b,this.target))))}else if(this.object.isOrthographicCamera){const c=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),c!==this.object.zoom&&(this.object.updateProjectionMatrix(),r=!0)}return this._scale=1,this._performCursorZoom=!1,r||this._lastPosition.distanceToSquared(this.object.position)>u||8*(1-this._lastQuaternion.dot(this.object.quaternion))>u||this._lastTargetPosition.distanceToSquared(this.target)>u?(this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?l/60*this.autoRotateSpeed*t:l/60/60*this.autoRotateSpeed}_getZoomScale(t){const e=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){h.setFromMatrixColumn(e,0),h.multiplyScalar(-t),this._panOffset.add(h)}_panUp(t,e){this.screenSpacePanning===!0?h.setFromMatrixColumn(e,1):(h.setFromMatrixColumn(e,0),h.crossVectors(this.object.up,h)),h.multiplyScalar(t),this._panOffset.add(h)}_pan(t,e){const o=this.domElement;if(this.object.isPerspectiveCamera){const n=this.object.position;h.copy(n).sub(this.target);let r=h.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*r/o.clientHeight,this.object.matrix),this._panUp(2*e*r/o.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/o.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/o.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const o=this.domElement.getBoundingClientRect(),n=t-o.left,r=e-o.top,c=o.width,p=o.height;this._mouse.x=n/c*2-1,this._mouse.y=-(r/p)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.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()}_handleMouseMovePan(t){this._panEnd.set(t.clientX,t.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()}_handleMouseWheel(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0;break}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._rotateStart.set(o,n)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panStart.set(o,n)}}_handleTouchStartDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),n=.5*(t.pageX+o.x),r=.5*(t.pageY+o.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panEnd.set(o,n)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyEnd.set(0,r),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const c=(t.pageX+e.x)*.5,p=(t.pageY+e.y)*.5;this._updateZoomParameters(c,p)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId){this._pointers.splice(e,1);return}}_isTrackingPointer(t){for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return!0;return!1}_trackPointer(t){let e=this._pointerPositions[t.pointerId];e===void 0&&(e=new s.Vector2,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){const e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){const e=t.deltaMode,o={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(e){case 1:o.deltaY*=16;break;case 2:o.deltaY*=100;break}return t.ctrlKey&&!this._controlActive&&(o.deltaY*=10),o}}function T(i){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(i.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(i)&&(this._addPointer(i),i.pointerType==="touch"?this._onTouchStart(i):this._onMouseDown(i)))}function D(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function M(i){switch(this._removePointer(i),this._pointers.length){case 0:this.domElement.releasePointerCapture(i.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(g),this.state=a.NONE;break;case 1:const t=this._pointers[0],e=this._pointerPositions[t];this._onTouchStart({pointerId:t,pageX:e.x,pageY:e.y});break}}function S(i){let t;switch(i.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=-1}switch(t){case s.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=a.DOLLY;break;case s.MOUSE.ROTATE:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}break;case s.MOUSE.PAN:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function O(i){switch(this.state){case a.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(i);break;case a.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(i);break;case a.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(i);break}}function w(i){this.enabled===!1||this.enableZoom===!1||this.state!==a.NONE||(i.preventDefault(),this.dispatchEvent(m),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(g))}function R(i){this.enabled!==!1&&this._handleKeyDown(i)}function j(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case s.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=a.TOUCH_ROTATE;break;case s.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(i),this.state=a.TOUCH_PAN;break;default:this.state=a.NONE}break;case 2:switch(this.touches.TWO){case s.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=a.TOUCH_DOLLY_PAN;break;case s.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(i),this.state=a.TOUCH_DOLLY_ROTATE;break;default:this.state=a.NONE}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function A(i){switch(this._trackPointer(i),this.state){case a.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(i),this.update();break;case a.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(i),this.update();break;case a.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(i),this.update();break;case a.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(i),this.update();break;default:this.state=a.NONE}}function L(i){this.enabled!==!1&&i.preventDefault()}function C(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function x(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}exports.OrbitControls=P;
1
+ "use strict";const s=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BpudsPqw.cjs"),y={type:"change"},m={type:"start"},g={type:"end"},_=new s.Ray,b=new s.Plane,E=Math.cos(70*s.MathUtils.DEG2RAD),h=new s.Vector3,l=2*Math.PI,a={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6},u=1e-6;class P extends s.Controls{constructor(t,e=null){super(t,e),this.state=a.NONE,this.target=new s.Vector3,this.cursor=new s.Vector3,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=.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:s.MOUSE.ROTATE,MIDDLE:s.MOUSE.DOLLY,RIGHT:s.MOUSE.PAN},this.touches={ONE:s.TOUCH.ROTATE,TWO:s.TOUCH.DOLLY_PAN},this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this._domElementKeyEvents=null,this._lastPosition=new s.Vector3,this._lastQuaternion=new s.Quaternion,this._lastTargetPosition=new s.Vector3,this._quat=new s.Quaternion().setFromUnitVectors(t.up,new s.Vector3(0,1,0)),this._quatInverse=this._quat.clone().invert(),this._spherical=new s.Spherical,this._sphericalDelta=new s.Spherical,this._scale=1,this._panOffset=new s.Vector3,this._rotateStart=new s.Vector2,this._rotateEnd=new s.Vector2,this._rotateDelta=new s.Vector2,this._panStart=new s.Vector2,this._panEnd=new s.Vector2,this._panDelta=new s.Vector2,this._dollyStart=new s.Vector2,this._dollyEnd=new s.Vector2,this._dollyDelta=new s.Vector2,this._dollyDirection=new s.Vector3,this._mouse=new s.Vector2,this._performCursorZoom=!1,this._pointers=[],this._pointerPositions={},this._controlActive=!1,this._onPointerMove=D.bind(this),this._onPointerDown=T.bind(this),this._onPointerUp=M.bind(this),this._onContextMenu=L.bind(this),this._onMouseWheel=w.bind(this),this._onKeyDown=R.bind(this),this._onTouchStart=j.bind(this),this._onTouchMove=A.bind(this),this._onMouseDown=S.bind(this),this._onMouseMove=O.bind(this),this._interceptControlDown=C.bind(this),this._interceptControlUp=x.bind(this),this.domElement!==null&&this.connect(this.domElement),this.update()}connect(t){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"}disconnect(){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"}dispose(){this.disconnect()}getPolarAngle(){return this._spherical.phi}getAzimuthalAngle(){return this._spherical.theta}getDistance(){return this.object.position.distanceTo(this.target)}listenToKeyEvents(t){t.addEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=t}stopListenToKeyEvents(){this._domElementKeyEvents!==null&&(this._domElementKeyEvents.removeEventListener("keydown",this._onKeyDown),this._domElementKeyEvents=null)}saveState(){this.target0.copy(this.target),this.position0.copy(this.object.position),this.zoom0=this.object.zoom}reset(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(y),this.update(),this.state=a.NONE}update(t=null){const e=this.object.position;h.copy(e).sub(this.target),h.applyQuaternion(this._quat),this._spherical.setFromVector3(h),this.autoRotate&&this.state===a.NONE&&this._rotateLeft(this._getAutoRotationAngle(t)),this.enableDamping?(this._spherical.theta+=this._sphericalDelta.theta*this.dampingFactor,this._spherical.phi+=this._sphericalDelta.phi*this.dampingFactor):(this._spherical.theta+=this._sphericalDelta.theta,this._spherical.phi+=this._sphericalDelta.phi);let o=this.minAzimuthAngle,n=this.maxAzimuthAngle;isFinite(o)&&isFinite(n)&&(o<-Math.PI?o+=l:o>Math.PI&&(o-=l),n<-Math.PI?n+=l:n>Math.PI&&(n-=l),o<=n?this._spherical.theta=Math.max(o,Math.min(n,this._spherical.theta)):this._spherical.theta=this._spherical.theta>(o+n)/2?Math.max(o,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);let r=!1;if(this.zoomToCursor&&this._performCursorZoom||this.object.isOrthographicCamera)this._spherical.radius=this._clampDistance(this._spherical.radius);else{const c=this._spherical.radius;this._spherical.radius=this._clampDistance(this._spherical.radius*this._scale),r=c!=this._spherical.radius}if(h.setFromSpherical(this._spherical),h.applyQuaternion(this._quatInverse),e.copy(this.target).add(h),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){let c=null;if(this.object.isPerspectiveCamera){const p=h.length();c=this._clampDistance(p*this._scale);const d=p-c;this.object.position.addScaledVector(this._dollyDirection,d),this.object.updateMatrixWorld(),r=!!d}else if(this.object.isOrthographicCamera){const p=new s.Vector3(this._mouse.x,this._mouse.y,0);p.unproject(this.object);const d=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),this.object.updateProjectionMatrix(),r=d!==this.object.zoom;const f=new s.Vector3(this._mouse.x,this._mouse.y,0);f.unproject(this.object),this.object.position.sub(f).add(p),this.object.updateMatrixWorld(),c=h.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),this.zoomToCursor=!1;c!==null&&(this.screenSpacePanning?this.target.set(0,0,-1).transformDirection(this.object.matrix).multiplyScalar(c).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))<E?this.object.lookAt(this.target):(b.setFromNormalAndCoplanarPoint(this.object.up,this.target),_.intersectPlane(b,this.target))))}else if(this.object.isOrthographicCamera){const c=this.object.zoom;this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/this._scale)),c!==this.object.zoom&&(this.object.updateProjectionMatrix(),r=!0)}return this._scale=1,this._performCursorZoom=!1,r||this._lastPosition.distanceToSquared(this.object.position)>u||8*(1-this._lastQuaternion.dot(this.object.quaternion))>u||this._lastTargetPosition.distanceToSquared(this.target)>u?(this.dispatchEvent(y),this._lastPosition.copy(this.object.position),this._lastQuaternion.copy(this.object.quaternion),this._lastTargetPosition.copy(this.target),!0):!1}_getAutoRotationAngle(t){return t!==null?l/60*this.autoRotateSpeed*t:l/60/60*this.autoRotateSpeed}_getZoomScale(t){const e=Math.abs(t*.01);return Math.pow(.95,this.zoomSpeed*e)}_rotateLeft(t){this._sphericalDelta.theta-=t}_rotateUp(t){this._sphericalDelta.phi-=t}_panLeft(t,e){h.setFromMatrixColumn(e,0),h.multiplyScalar(-t),this._panOffset.add(h)}_panUp(t,e){this.screenSpacePanning===!0?h.setFromMatrixColumn(e,1):(h.setFromMatrixColumn(e,0),h.crossVectors(this.object.up,h)),h.multiplyScalar(t),this._panOffset.add(h)}_pan(t,e){const o=this.domElement;if(this.object.isPerspectiveCamera){const n=this.object.position;h.copy(n).sub(this.target);let r=h.length();r*=Math.tan(this.object.fov/2*Math.PI/180),this._panLeft(2*t*r/o.clientHeight,this.object.matrix),this._panUp(2*e*r/o.clientHeight,this.object.matrix)}else this.object.isOrthographicCamera?(this._panLeft(t*(this.object.right-this.object.left)/this.object.zoom/o.clientWidth,this.object.matrix),this._panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/o.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)}_dollyOut(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale/=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_dollyIn(t){this.object.isPerspectiveCamera||this.object.isOrthographicCamera?this._scale*=t:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)}_updateZoomParameters(t,e){if(!this.zoomToCursor)return;this._performCursorZoom=!0;const o=this.domElement.getBoundingClientRect(),n=t-o.left,r=e-o.top,c=o.width,p=o.height;this._mouse.x=n/c*2-1,this._mouse.y=-(r/p)*2+1,this._dollyDirection.set(this._mouse.x,this._mouse.y,1).unproject(this.object).sub(this.object.position).normalize()}_clampDistance(t){return Math.max(this.minDistance,Math.min(this.maxDistance,t))}_handleMouseDownRotate(t){this._rotateStart.set(t.clientX,t.clientY)}_handleMouseDownDolly(t){this._updateZoomParameters(t.clientX,t.clientX),this._dollyStart.set(t.clientX,t.clientY)}_handleMouseDownPan(t){this._panStart.set(t.clientX,t.clientY)}_handleMouseMoveRotate(t){this._rotateEnd.set(t.clientX,t.clientY),this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd),this.update()}_handleMouseMoveDolly(t){this._dollyEnd.set(t.clientX,t.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()}_handleMouseMovePan(t){this._panEnd.set(t.clientX,t.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()}_handleMouseWheel(t){this._updateZoomParameters(t.clientX,t.clientY),t.deltaY<0?this._dollyIn(this._getZoomScale(t.deltaY)):t.deltaY>0&&this._dollyOut(this._getZoomScale(t.deltaY)),this.update()}_handleKeyDown(t){let e=!1;switch(t.code){case this.keys.UP:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,this.keyPanSpeed),e=!0;break;case this.keys.BOTTOM:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateUp(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(0,-this.keyPanSpeed),e=!0;break;case this.keys.LEFT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(this.keyPanSpeed,0),e=!0;break;case this.keys.RIGHT:t.ctrlKey||t.metaKey||t.shiftKey?this.enableRotate&&this._rotateLeft(-l*this.keyRotateSpeed/this.domElement.clientHeight):this.enablePan&&this._pan(-this.keyPanSpeed,0),e=!0;break}e&&(t.preventDefault(),this.update())}_handleTouchStartRotate(t){if(this._pointers.length===1)this._rotateStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._rotateStart.set(o,n)}}_handleTouchStartPan(t){if(this._pointers.length===1)this._panStart.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panStart.set(o,n)}}_handleTouchStartDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyStart.set(0,r)}_handleTouchStartDollyPan(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enablePan&&this._handleTouchStartPan(t)}_handleTouchStartDollyRotate(t){this.enableZoom&&this._handleTouchStartDolly(t),this.enableRotate&&this._handleTouchStartRotate(t)}_handleTouchMoveRotate(t){if(this._pointers.length==1)this._rotateEnd.set(t.pageX,t.pageY);else{const o=this._getSecondPointerPosition(t),n=.5*(t.pageX+o.x),r=.5*(t.pageY+o.y);this._rotateEnd.set(n,r)}this._rotateDelta.subVectors(this._rotateEnd,this._rotateStart).multiplyScalar(this.rotateSpeed);const e=this.domElement;this._rotateLeft(l*this._rotateDelta.x/e.clientHeight),this._rotateUp(l*this._rotateDelta.y/e.clientHeight),this._rotateStart.copy(this._rotateEnd)}_handleTouchMovePan(t){if(this._pointers.length===1)this._panEnd.set(t.pageX,t.pageY);else{const e=this._getSecondPointerPosition(t),o=.5*(t.pageX+e.x),n=.5*(t.pageY+e.y);this._panEnd.set(o,n)}this._panDelta.subVectors(this._panEnd,this._panStart).multiplyScalar(this.panSpeed),this._pan(this._panDelta.x,this._panDelta.y),this._panStart.copy(this._panEnd)}_handleTouchMoveDolly(t){const e=this._getSecondPointerPosition(t),o=t.pageX-e.x,n=t.pageY-e.y,r=Math.sqrt(o*o+n*n);this._dollyEnd.set(0,r),this._dollyDelta.set(0,Math.pow(this._dollyEnd.y/this._dollyStart.y,this.zoomSpeed)),this._dollyOut(this._dollyDelta.y),this._dollyStart.copy(this._dollyEnd);const c=(t.pageX+e.x)*.5,p=(t.pageY+e.y)*.5;this._updateZoomParameters(c,p)}_handleTouchMoveDollyPan(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enablePan&&this._handleTouchMovePan(t)}_handleTouchMoveDollyRotate(t){this.enableZoom&&this._handleTouchMoveDolly(t),this.enableRotate&&this._handleTouchMoveRotate(t)}_addPointer(t){this._pointers.push(t.pointerId)}_removePointer(t){delete this._pointerPositions[t.pointerId];for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId){this._pointers.splice(e,1);return}}_isTrackingPointer(t){for(let e=0;e<this._pointers.length;e++)if(this._pointers[e]==t.pointerId)return!0;return!1}_trackPointer(t){let e=this._pointerPositions[t.pointerId];e===void 0&&(e=new s.Vector2,this._pointerPositions[t.pointerId]=e),e.set(t.pageX,t.pageY)}_getSecondPointerPosition(t){const e=t.pointerId===this._pointers[0]?this._pointers[1]:this._pointers[0];return this._pointerPositions[e]}_customWheelEvent(t){const e=t.deltaMode,o={clientX:t.clientX,clientY:t.clientY,deltaY:t.deltaY};switch(e){case 1:o.deltaY*=16;break;case 2:o.deltaY*=100;break}return t.ctrlKey&&!this._controlActive&&(o.deltaY*=10),o}}function T(i){this.enabled!==!1&&(this._pointers.length===0&&(this.domElement.setPointerCapture(i.pointerId),this.domElement.addEventListener("pointermove",this._onPointerMove),this.domElement.addEventListener("pointerup",this._onPointerUp)),!this._isTrackingPointer(i)&&(this._addPointer(i),i.pointerType==="touch"?this._onTouchStart(i):this._onMouseDown(i)))}function D(i){this.enabled!==!1&&(i.pointerType==="touch"?this._onTouchMove(i):this._onMouseMove(i))}function M(i){switch(this._removePointer(i),this._pointers.length){case 0:this.domElement.releasePointerCapture(i.pointerId),this.domElement.removeEventListener("pointermove",this._onPointerMove),this.domElement.removeEventListener("pointerup",this._onPointerUp),this.dispatchEvent(g),this.state=a.NONE;break;case 1:const t=this._pointers[0],e=this._pointerPositions[t];this._onTouchStart({pointerId:t,pageX:e.x,pageY:e.y});break}}function S(i){let t;switch(i.button){case 0:t=this.mouseButtons.LEFT;break;case 1:t=this.mouseButtons.MIDDLE;break;case 2:t=this.mouseButtons.RIGHT;break;default:t=-1}switch(t){case s.MOUSE.DOLLY:if(this.enableZoom===!1)return;this._handleMouseDownDolly(i),this.state=a.DOLLY;break;case s.MOUSE.ROTATE:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}else{if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}break;case s.MOUSE.PAN:if(i.ctrlKey||i.metaKey||i.shiftKey){if(this.enableRotate===!1)return;this._handleMouseDownRotate(i),this.state=a.ROTATE}else{if(this.enablePan===!1)return;this._handleMouseDownPan(i),this.state=a.PAN}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function O(i){switch(this.state){case a.ROTATE:if(this.enableRotate===!1)return;this._handleMouseMoveRotate(i);break;case a.DOLLY:if(this.enableZoom===!1)return;this._handleMouseMoveDolly(i);break;case a.PAN:if(this.enablePan===!1)return;this._handleMouseMovePan(i);break}}function w(i){this.enabled===!1||this.enableZoom===!1||this.state!==a.NONE||(i.preventDefault(),this.dispatchEvent(m),this._handleMouseWheel(this._customWheelEvent(i)),this.dispatchEvent(g))}function R(i){this.enabled!==!1&&this._handleKeyDown(i)}function j(i){switch(this._trackPointer(i),this._pointers.length){case 1:switch(this.touches.ONE){case s.TOUCH.ROTATE:if(this.enableRotate===!1)return;this._handleTouchStartRotate(i),this.state=a.TOUCH_ROTATE;break;case s.TOUCH.PAN:if(this.enablePan===!1)return;this._handleTouchStartPan(i),this.state=a.TOUCH_PAN;break;default:this.state=a.NONE}break;case 2:switch(this.touches.TWO){case s.TOUCH.DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchStartDollyPan(i),this.state=a.TOUCH_DOLLY_PAN;break;case s.TOUCH.DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchStartDollyRotate(i),this.state=a.TOUCH_DOLLY_ROTATE;break;default:this.state=a.NONE}break;default:this.state=a.NONE}this.state!==a.NONE&&this.dispatchEvent(m)}function A(i){switch(this._trackPointer(i),this.state){case a.TOUCH_ROTATE:if(this.enableRotate===!1)return;this._handleTouchMoveRotate(i),this.update();break;case a.TOUCH_PAN:if(this.enablePan===!1)return;this._handleTouchMovePan(i),this.update();break;case a.TOUCH_DOLLY_PAN:if(this.enableZoom===!1&&this.enablePan===!1)return;this._handleTouchMoveDollyPan(i),this.update();break;case a.TOUCH_DOLLY_ROTATE:if(this.enableZoom===!1&&this.enableRotate===!1)return;this._handleTouchMoveDollyRotate(i),this.update();break;default:this.state=a.NONE}}function L(i){this.enabled!==!1&&i.preventDefault()}function C(i){i.key==="Control"&&(this._controlActive=!0,this.domElement.getRootNode().addEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}function x(i){i.key==="Control"&&(this._controlActive=!1,this.domElement.getRootNode().removeEventListener("keyup",this._interceptControlUp,{passive:!0,capture:!0}))}exports.OrbitControls=P;
@@ -1 +1 @@
1
- "use strict";const V=require("./index.vue_vue_type_style_index_1_lang-B8_elAaU.cjs"),k=require("./threeViewerHost-BrW-Q5yS.cjs"),a=require("./dataUtil-B4sGo38_.cjs"),q=require("./index-C8qRkCgn.cjs"),E=async()=>{let n={};const c=["弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["弯管仿真加工分析","加工位姿生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持长度||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(V.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=q.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},O=async()=>{let n={};const c=["双弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["双弯管仿真加工分析","加工工艺生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持位置||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["双弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(V.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=q.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},B=async n=>await k.downloadFile(n),X=async n=>await k.readCsv(n),Y=async n=>{const c=await B(n);return await X(c)};exports.fetchDoubleRobotAnimationData=O;exports.fetchSingleRobotAnimationData=E;exports.initXYZBCList=Y;
1
+ "use strict";const V=require("./index.vue_vue_type_style_index_1_lang-B8_elAaU.cjs"),k=require("./threeViewerHost-ZigQifBN.cjs"),a=require("./dataUtil-B4sGo38_.cjs"),q=require("./index-C8qRkCgn.cjs"),E=async()=>{let n={};const c=["弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["弯管仿真加工分析","加工位姿生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持长度||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(V.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=q.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},O=async()=>{let n={};const c=["双弯管仿真加工分析","模具筛选安装"],y=await a.getMenuData(c),L=a.getTargetGroup("输入(加工件)",y),i=a.getFormData(L),u=i.管长||0,m=i.外径||0;console.log("管长",u,"外径",m,i);const P=u,C=m/2,T=["双弯管仿真加工分析","加工工艺生成"],G=await a.getMenuData(T),R=a.getTargetGroup("输入",G),g=a.getFormData(R),D=g.夹持位置||0;console.log("夹持长度",D,g);const _=Number(D),r={},A=["双弯管仿真加工分析","仿真动画生成"],s=await a.getMenuData(A);s==null||s.forEach(t=>{var h,b,f,d,M,F;if((t==null?void 0:t.comp)==="Table"){let w=[],p=(f=(b=(h=t==null?void 0:t.compData)==null?void 0:h.find(e=>(e==null?void 0:e.key)==="header"))==null?void 0:b.contents)==null?void 0:f.map(e=>e==null?void 0:e.label),l=(F=(M=(d=t==null?void 0:t.compData)==null?void 0:d.find(e=>(e==null?void 0:e.key)==="tableContents"))==null?void 0:M.contents)==null?void 0:F.map(e=>(e=e==null?void 0:e.filter(o=>!(o!=null&&o.id)),e));l==null||l.forEach(e=>{w.push(V.getValueToObjectValue(e,p==null?void 0:p.filter(o=>o!=="操作")))}),r[t.name]=w,r[t.name+"Content"]=t}});const x=q.cloneDeep(r)||[];return n={initialPipeLength:P,pipeRadius:C,clampLength:_,animationData:x},n},B=async n=>await k.downloadFile(n),X=async n=>await k.readCsv(n),Y=async n=>{const c=await B(n);return await X(c)};exports.fetchDoubleRobotAnimationData=O;exports.fetchSingleRobotAnimationData=E;exports.initXYZBCList=Y;
@@ -1,5 +1,5 @@
1
1
  import { k as x } from "./index.vue_vue_type_style_index_1_lang-Cg1p_3ne.js";
2
- import { i as N, j as V } from "./threeViewerHost-BnkccBX4.js";
2
+ import { i as N, j as V } from "./threeViewerHost-B7T6UF3N.js";
3
3
  import { g as r, a as L, e as y } from "./dataUtil-DQX9rTvE.js";
4
4
  import { c as O } from "./index-BUYYl2Pc.js";
5
5
  const z = async () => {
@@ -1,6 +1,6 @@
1
1
  import { shallowRef as t2, ref as _ } from "vue";
2
- import { V as r, a0 as a2, E as G, k as E, a2 as e2, B as S, G as i2, h as N, j as c2, S as o2, C as h2, P as n2, W as s2, e as p2, A as r2, f as d2, M as J, b4 as v2, X as z2, l as f2, D as Z, H as A2, n as K, aD as M2, o as m2, p as u2, q as U } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-f4HnuW1V.js";
3
- import { O as F2 } from "./OrbitControls-73QGXBgx.js";
2
+ import { V as r, a0 as a2, E as G, k as E, a2 as e2, B as S, G as i2, h as N, j as c2, S as o2, C as h2, P as n2, W as s2, e as p2, A as r2, f as d2, M as J, b4 as v2, X as z2, l as f2, D as Z, H as A2, n as K, aD as M2, o as m2, p as u2, q as U } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BgpFgom2.js";
3
+ import { O as F2 } from "./OrbitControls-CoH93kH0.js";
4
4
  const R2 = (i, a = "YZX") => {
5
5
  const l = new r(), o = new a2(), n = new r(), p = new G();
6
6
  i.getWorldPosition(l), i.getWorldQuaternion(o), i.getWorldScale(n), p.setFromQuaternion(o, a);