ss-component-new 1.3.474 → 1.3.475

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 (85) hide show
  1. package/dist/{OrbitControls-X8Tx1hPt.js → OrbitControls-CcniPNk7.js} +1 -1
  2. package/dist/{OrbitControls-DvnUitVd.cjs → OrbitControls-kK6BBpL4.cjs} +1 -1
  3. package/dist/{PCDLoader-BG-ZSu84.js → PCDLoader-B0_dKUxm.js} +1 -1
  4. package/dist/{PCDLoader-Dy4BlpG3.cjs → PCDLoader-BhWhU7AF.cjs} +1 -1
  5. package/dist/{animationData-Bln0M7cD.js → animationData-_k7oY6dT.js} +1 -1
  6. package/dist/{animationData-BsfHPO-P.cjs → animationData-u3PDQuOQ.cjs} +1 -1
  7. package/dist/{iconfont-D9hgzLCg.cjs → iconfont-BYcEzhNe.cjs} +1 -1
  8. package/dist/{iconfont-BQBCgO1O.js → iconfont-DiGd__OT.js} +2 -2
  9. package/dist/{index-BTghn1W2.cjs → index-4sRonvwO.cjs} +1 -1
  10. package/dist/{index-BWUv92s4.cjs → index-BER-9cea.cjs} +1 -1
  11. package/dist/{index-BQCj3fMV.js → index-BEmcYHbr.js} +13 -13
  12. package/dist/{index-CD5uCiH9.js → index-BG20WI0G.js} +1 -1
  13. package/dist/{index-BOb1nNwq.js → index-BWlbMCvF.js} +3 -3
  14. package/dist/{index-DlMQigjS.js → index-B_hltucu.js} +1 -1
  15. package/dist/{index-8dhcui8A.js → index-BeRXwYS6.js} +1 -1
  16. package/dist/{index-BQOERy34.cjs → index-BrmJTI0B.cjs} +1 -1
  17. package/dist/{index-BKIacUel.cjs → index-Bu78K7ZG.cjs} +1 -1
  18. package/dist/{index-CNbYtIV_.cjs → index-BvHQ4rgD.cjs} +1 -1
  19. package/dist/{index-Dq4Lwm9O.cjs → index-C-B1N90Y.cjs} +1 -1
  20. package/dist/{index-DJL-eKIo.js → index-C35tMkD-.js} +2 -2
  21. package/dist/{index-sVdFHyjl.cjs → index-C89mMUM5.cjs} +1 -1
  22. package/dist/{index-CHIWRNqT.cjs → index-C8G1ik6O.cjs} +1 -1
  23. package/dist/{index-BWxZZ5t2.js → index-C8howWAV.js} +6 -6
  24. package/dist/{index-BW7PEvq0.js → index-CFp-3Ii5.js} +1 -1
  25. package/dist/{index-BAC9zNh7.js → index-CV1On3aP.js} +3 -3
  26. package/dist/{index-DFfIPpCG.js → index-CZU4FRVk.js} +3 -3
  27. package/dist/{index-D_Xo-WAP.cjs → index-Ca7EraIq.cjs} +1 -1
  28. package/dist/{index-DyeuJeIz.js → index-Cjax9TjT.js} +2 -2
  29. package/dist/{index-Djzfu6It.js → index-CnERmJxh.js} +3 -3
  30. package/dist/{index-CJIlx0kh.cjs → index-CoDkK5hg.cjs} +1 -1
  31. package/dist/{index-DOoRG-By.cjs → index-CsdTTuj7.cjs} +1 -1
  32. package/dist/{index-CmDV_HX-.cjs → index-Cvv5GKOV.cjs} +1 -1
  33. package/dist/{index-TGKm3MXI.js → index-Cx8gP3xA.js} +6 -6
  34. package/dist/{index-0JtF10qC.cjs → index-CxNA05bD.cjs} +1 -1
  35. package/dist/{index-CMiciReg.js → index-D04ebGoA.js} +1 -1
  36. package/dist/{index-FrPdQKQq.js → index-D54GltRD.js} +1 -1
  37. package/dist/{index-B1cEBcBv.cjs → index-D8agmBOg.cjs} +1 -1
  38. package/dist/{index-CZ01Uey-.js → index-DBZg952W.js} +4 -4
  39. package/dist/{index-cAtiRq0m.js → index-DHHOxu2C.js} +2 -2
  40. package/dist/{index-iDpB4RnF.cjs → index-DHotzRf6.cjs} +1 -1
  41. package/dist/{index-C6xyzF3E.cjs → index-DiH9I8Qd.cjs} +1 -1
  42. package/dist/{index-B74gcS36.cjs → index-DmN5XL7c.cjs} +1 -1
  43. package/dist/{index-CyjcMwPq.js → index-DoOEAJe9.js} +1 -1
  44. package/dist/{index-CdNXBIFC.cjs → index-DpDOUFmB.cjs} +1 -1
  45. package/dist/{index-B8MP6uHs.cjs → index-DqcKRmzN.cjs} +1 -1
  46. package/dist/{index-CbjEUSvK.cjs → index-LkiYEgcl.cjs} +1 -1
  47. package/dist/{index-CJfoKnFP.js → index-ThbaNcbe.js} +1 -1
  48. package/dist/{index-CeuUur0J.js → index-_qmANZPg.js} +1 -1
  49. package/dist/{index-BdB_acmm.cjs → index-eGw5gJGa.cjs} +1 -1
  50. package/dist/{index-ChCxwtv1.js → index-oXfFN0Pr.js} +1 -1
  51. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-DCLueP3M.cjs → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Cws68h8h.cjs} +1 -1
  52. package/dist/{index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BRGuwIGi.js → index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-tsnXyC8a.js} +6 -6
  53. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CYXAbj2a.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B3RSoHQA.js} +4379 -4379
  54. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DpGu0pGu.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BkkUVCLE.cjs} +73 -73
  55. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CbAt1Sgy.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-BzTbm05u.js} +3 -3
  56. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-CzixMCTz.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-ChLyboIT.cjs} +1 -1
  57. package/dist/{index.vue_vue_type_style_index_1_lang-bvR0uxez.js → index.vue_vue_type_style_index_1_lang-Cwuh77RJ.js} +3 -3
  58. package/dist/{index.vue_vue_type_style_index_1_lang-DiCmmZWZ.cjs → index.vue_vue_type_style_index_1_lang-D_Jkk1jj.cjs} +1 -1
  59. package/dist/{main-DBuDKx9k.js → main-CQ5P45HO.js} +2 -2
  60. package/dist/{main-BAdh_eGu.cjs → main-CdLPmV9p.cjs} +1 -1
  61. package/dist/{pointTrack-C3DjtFZp.cjs → pointTrack-BlTNQUei.cjs} +1 -1
  62. package/dist/{pointTrack-DINaUvcX.js → pointTrack-o_VVFlmw.js} +1 -1
  63. package/dist/{robotUtil-BeynP2xM.js → robotUtil-BIMs6Vbb.js} +1 -1
  64. package/dist/{robotUtil-CI-r19FW.cjs → robotUtil-CHCt1RuS.cjs} +1 -1
  65. package/dist/ss-component.cjs +1 -1
  66. package/dist/ss-component.js +9 -9
  67. package/dist/ss-component2.cjs +1 -1
  68. package/dist/ss-component2.js +10 -10
  69. package/dist/{threeModel-CEX82wRN.cjs → threeModel-DP_7xQQL.cjs} +1 -1
  70. package/dist/{threeModel-DT3NAfO0.js → threeModel-OAebCYSS.js} +5 -5
  71. package/dist/{threePreview-D3TXuSzk.cjs → threePreview-BNlZnB3i.cjs} +1 -1
  72. package/dist/{threePreview-BDS4HbKS.js → threePreview-RzBngWrN.js} +3 -3
  73. package/dist/{threeSceneView-Cl6V_agq.cjs → threeSceneView-C1o5iNCO.cjs} +1 -1
  74. package/dist/{threeSceneView-DN0ThqUj.js → threeSceneView-C8vlDAO-.js} +7 -7
  75. package/dist/{threeSceneViewForCPMPIP-Bln3jqsZ.cjs → threeSceneViewForCPMPIP-ByuSeCFK.cjs} +1 -1
  76. package/dist/{threeSceneViewForCPMPIP-6wdyEUgw.js → threeSceneViewForCPMPIP-CdhbgviA.js} +10 -10
  77. package/dist/{threeTrackPathView-C8VR9-qO.cjs → threeTrackPathView-BqI0D7OI.cjs} +1 -1
  78. package/dist/{threeTrackPathView-B1oaH-Qc.js → threeTrackPathView-DyGh44hI.js} +5 -5
  79. package/dist/{threeViewerHost-BaGBR8jd.js → threeViewerHost-CTUpfC_Y.js} +2 -2
  80. package/dist/{threeViewerHost-pVmmGFpg.cjs → threeViewerHost-Czjy_lsO.cjs} +2 -2
  81. package/dist/{urdfTree-BU2M7_8q.cjs → urdfTree-CE1RFgO5.cjs} +1 -1
  82. package/dist/{urdfTree-BhqPlNff.js → urdfTree-Du-nKROV.js} +1 -1
  83. package/dist/{workpieceTreePanel-DiVmUGRy.js → workpieceTreePanel-BCaK6cMT.js} +5 -5
  84. package/dist/{workpieceTreePanel-2XzE7ufi.cjs → workpieceTreePanel-XnZWnUpu.cjs} +1 -1
  85. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),I=require("./iconfont-D9hgzLCg.cjs"),b=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-DpGu0pGu.cjs"),Ee=require("./threeViewerHost-pVmmGFpg.cjs"),j=require("./index-CEwxrYB-.cjs"),le=require("./urdfTree-BU2M7_8q.cjs"),D=require("./pointTrack-C3DjtFZp.cjs"),W=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=require("./svgIcon-BH_8oaav.cjs"),xe=require("./isString-Cvx5mmsS.cjs"),R={POINT:"point",LINE:"line"};function Se(){const d=e.ref(R.LINE),p=l=>{d.value=l},h=e.computed(()=>d.value===R.POINT),u=e.computed(()=>d.value===R.LINE);return{trackType:d,setTrackType:p,isPoint:h,isLine:u,trackTypeConstants:R}}const Ie={class:"table-container"},De=["title"],ze=["title"],$e=["title"],Pe=["title"],Ae=e.defineComponent({__name:"trackScroller",props:{list:{},currentId:{}},setup(d){const p=d,h=e.ref();function u(l){e.nextTick(()=>{var i;const f=p.list.findIndex(n=>n.id===l);f>-1&&((i=h.value)==null||i.scrollToItem(f,"center"))})}return e.watch(()=>p.currentId,u,{immediate:!0}),(l,f)=>(e.openBlock(),e.createElementBlock("div",Ie,[f[0]||(f[0]=e.createStaticVNode('<div class="table-header" data-v-c4baa40f><div class="header-cell line-number-col" data-v-c4baa40f>行号</div><div class="header-cell" data-v-c4baa40f>X</div><div class="header-cell" data-v-c4baa40f>Y</div><div class="header-cell" data-v-c4baa40f>Z</div></div>',1)),e.createVNode(e.unref(D.script$2),{class:"scroller",ref_key:"scrollerRef",ref:h,items:l.list,"item-size":32,"items-limit":1/0,"key-field":"id"},{default:e.withCtx(({item:i,index:n})=>{var m,a,k,r,E,y;return[e.createElementVNode("div",{class:e.normalizeClass({row:!0,active:i.id===l.currentId})},[e.createElementVNode("div",{class:"cell line-number-col",title:n+1},e.toDisplayString(n+1),9,De),e.createElementVNode("div",{class:"cell",title:(m=i.x)==null?void 0:m.toFixed(5)},e.toDisplayString((a=i.x)==null?void 0:a.toFixed(5)),9,ze),e.createElementVNode("div",{class:"cell",title:(k=i.y)==null?void 0:k.toFixed(5)},e.toDisplayString((r=i.y)==null?void 0:r.toFixed(5)),9,$e),e.createElementVNode("div",{class:"cell",title:(E=i.z)==null?void 0:E.toFixed(5)},e.toDisplayString((y=i.z)==null?void 0:y.toFixed(5)),9,Pe)],2)]}),_:1},8,["items"])]))}}),Fe=W._export_sfc(Ae,[["__scopeId","data-v-c4baa40f"]]);function Be(d=.5,p=4){const h=new b.SphereGeometry(.3,16,16),u=new b.MeshBasicMaterial({color:16768256});return new b.Mesh(h,u)}function Le(d,p){d.position.copy(p)}function Ue(d,p,h=new b.Color(16711680)){const u=new b.Vector3;p.getWorldPosition(u);const l=d.geometry.attributes.position,f=d.geometry.attributes.color,i=new b.Color(2003455);let n=1/0,m=-1;for(let a=0;a<l.count;a++){const r=new b.Vector3().fromBufferAttribute(l,a).distanceTo(u);r<n&&(n=r,m=a)}for(let a=0;a<f.count;a++)i.toArray(f.array,a*3);if(m!==-1){const a=h.toArray(),k=m*3+2;for(let r=0;r<k;r=r+3)f.array[r]=a[0],f.array[r+1]=a[1],f.array[r+2]=a[2]}f.needsUpdate=!0}function ae(d,p,h,u=new b.Color(16711680)){Le(d,p),Ue(h,d,u)}const Re={class:"panel-content"},je={class:"animation-controls"},Me={class:"control-row"},Oe={class:"control-row"},qe={class:"frame-info"},Ke={class:"control-row slider-row"},Ge={class:"scroller-row"},He=e.defineComponent({__name:"trackAnimationPanel",props:{cloud:{},knife:{},vectors:{}},emits:["getThreeData"],setup(d,{expose:p,emit:h}){const u=d,l=e.computed(()=>u.vectors),f=e.computed(()=>{const s=l.value||[];return s==null?void 0:s.map((z,A)=>{const{x:$,y:F,z:x}=z;return{id:A,x:$,y:F,z:x}})}),i=e.ref(!1),n=e.ref(0),m=e.ref(100);let a=!1;const k=s=>`第 ${s+1} 帧`,r=s=>{if(s<0||s>=l.value.length){console.error(`帧索引 ${s} 超出范围`);return}const v=l.value[s];n.value=s,ae(u.knife,v,u.cloud)},E=async()=>{if(l.value.length===0){j.ElMessage.error("无法播放动画:无数据");return}if(!i.value){i.value=!0,a=!1,l.value.length-1===n.value&&(n.value=0);try{for(let s=n.value+1;s<l.value.length&&!a;s++)await new Promise(v=>setTimeout(v,m.value)),r(s);a||j.ElMessage.success("动画播放完成")}catch(s){console.error("动画播放出错:",s)}finally{i.value=!1}}},y=async()=>{i.value&&(a=!0,await new Promise(s=>{const v=e.watch(()=>i.value,z=>{v(),s()})}),j.ElMessage.info("动画已停止"))},L=async s=>{i.value&&await y(),r(s)},M=async()=>{i.value&&await y(),!(n.value+1>=l.value.length)&&r(n.value+1)},O=async()=>{i.value&&await y(),n.value!==0&&r(n.value-1)},g=()=>{n.value=0};return p({playAnimation:E,stopAnimation:y,forwardFrame:M,backwardFrame:O,resetAnimationFrame:g,reset:async()=>{await y(),g()}}),(s,v)=>{const z=e.resolveComponent("el-input-number"),A=e.resolveComponent("el-form-item"),$=e.resolveComponent("el-form"),F=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("div",je,[e.createElementVNode("div",Me,[e.createVNode($,{"label-width":"80px",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(A,{label:"帧间隔:",prop:"frameDuration"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:m.value,"onUpdate:modelValue":v[0]||(v[0]=x=>m.value=x),min:0,max:5e3,step:10,style:{width:"100%"},size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),e.createElementVNode("div",Oe,[v[2]||(v[2]=e.createElementVNode("label",{class:"row-label"},"当前帧:",-1)),e.createElementVNode("span",qe,e.toDisplayString(n.value+1)+" / "+e.toDisplayString(l.value.length),1)]),e.createElementVNode("div",Ke,[v[3]||(v[3]=e.createElementVNode("label",{class:"row-label"},"动画进度:",-1)),e.createVNode(F,{modelValue:n.value,"onUpdate:modelValue":v[1]||(v[1]=x=>n.value=x),min:0,max:l.value.length>0?l.value.length-1:0,step:1,"format-tooltip":k,onInput:L,disabled:l.value.length===0,style:{flex:"1","margin-left":"5px"}},null,8,["modelValue","max","disabled"])]),e.createElementVNode("div",Ge,[e.createVNode(Fe,{class:"scroller",list:f.value,"current-id":n.value},null,8,["list","current-id"])])])])}}}),Je=W._export_sfc(He,[["__scopeId","data-v-af71163f"]]),Xe={class:"obj-viewer-container"},We={class:"buttonGroup-topLeft"},Ye={class:"buttonGroup-left"},Ze={class:"buttonGroup-right"},Qe={class:"buttonGroup-bottom"},et={class:"left-panel"},tt={class:"panel-header"},ot={class:"panel-body"},nt={key:1,class:"clipping-content"},lt={class:"radio-group"},at={class:"radio-label"},rt={class:"radio-label"},st={class:"radio-label"},it={class:"radio-label"},ct={class:"right-panel"},ut={class:"panel-header"},dt={class:"panel-body"},vt={key:0,class:"loading-overlay"},ft=e.defineComponent({__name:"threeTrackPathView",props:{fileBlobs:{},threeData:{default:()=>""},trackFileType:{}},emits:["getAnimationData","getThreeData"],setup(d,{emit:p}){const h=p,u=d,l=e.ref(null),f=e.ref(!1),i=e.ref(""),n=e.ref(),m=e.ref(!1),a=e.ref(""),k=e.ref(!1),r=e.ref(""),E=e.shallowRef(null),y=e.shallowRef(null),{currentModels:L,initThreeJS:M,handleResize:O,getThreeJSObjects:g,cleanup:Y,axesHelperVisible:s,toggleAxesVisibility:v,zoomIn:z,zoomOut:A}=I.useThreeJS(l),{isAnimating:$,toggleAnimation:F,stopAnimation:x}=I.useAnimation(g,L),{isClipping:re,activeClippingAxis:w,toggleClipping:se,updateClippingPlanes:T}=I.useClipping(g,L),{isPoint:Z,isLine:Q,setTrackType:ie,trackTypeConstants:ee}=Se(),ce=()=>{v()},ue=t=>{m.value=!0,a.value=t,t==="剖面视图"&&!re.value&&se()},q=t=>{k.value=!0,r.value=t,t==="动画仿真"&&h("getAnimationData")},de=()=>{var t;C.value&&((t=n==null?void 0:n.value)==null||t.playAnimation())},K=()=>{var t;C.value&&((t=n==null?void 0:n.value)==null||t.stopAnimation())},ve=()=>{var t;C.value&&((t=n==null?void 0:n.value)==null||t.forwardFrame())},fe=()=>{var t;C.value&&((t=n==null?void 0:n.value)==null||t.backwardFrame())},G=e.ref([]),B=e.ref([]),pe=e.computed(()=>{var o;return(o=u.trackFileType)==null?void 0:o.isUv}),me=e.computed(()=>{var o;return(o=u.trackFileType)==null?void 0:o.isCyd}),ge=e.computed(()=>{var o;return(o=u.trackFileType)==null?void 0:o.isCpt}),C=e.computed(()=>{var o;return(o=u.trackFileType)==null?void 0:o.isNc}),H=e.computed(()=>{const t=u.fileBlobs||[];return t==null?void 0:t[0]}),_=e.shallowRef(),P=e.shallowRef(),te=e.computed(()=>P.value||_.value),S=e.shallowRef(),he=()=>{const{scene:t}=g();_.value&&t&&(I.disposeObj(_.value,t),_.value=null),P.value&&t&&(I.disposeObj(P.value,t),P.value=null)},ke=()=>{const{scene:t}=g();S.value&&t&&(I.disposeObj(S.value,t),S.value=null)},oe=()=>{he(),ke()},ye=t=>{const{scene:o}=g(),N=new b.Line(t.geometry.clone(),t.material);return N.name="轨迹路径克隆体",N.position.copy(t.position),N.rotation.copy(t.rotation),N.scale.copy(t.scale),o==null||o.add(N),N},Ve=t=>{if(Z.value){_.value=D.drawPoints(g,t),P.value=null;return}if(Q.value){_.value=D.drawLine(g,t),P.value=ye(_.value);return}},we=async t=>{const o=URL.createObjectURL(t),N=await Ee.readFileText(o);if(URL.revokeObjectURL(o),xe.isString(N)){const c=await D.getPoints(N,u.trackFileType)||[];G.value=c;const X=G.value;C.value&&Ve(X),pe.value&&(_.value=D.drawLine(g,X)),(me.value||ge.value)&&(_.value=D.drawPoints(g,X)),I.frameCameraToObject3D(g,_.value)}},ne=async t=>{ie(t),await J(H.value)},Ne=async()=>Be(),_e=async()=>{var t,o;if(S.value=await Ne(),B.value=D.convertPointsToVector3(G.value),B.value&&B.value.length){ae(S.value,B.value[0],te.value,new b.Color(16711680)),(o=(t=y.value)==null?void 0:t.add)==null||o.call(t,S.value);return}},be=async()=>{var t;await((t=n==null?void 0:n.value)==null?void 0:t.reset()),await J(H.value)},J=async t=>{oe(),K(),await we(t),C.value&&_e()};e.watch(()=>H.value,async t=>{t&&await J(t)},{immediate:!0,deep:!0});let U=null;const Ce=()=>{M(),e.nextTick(()=>{l.value&&(U=new ResizeObserver(O),U.observe(l.value))});const t=g();y.value=t.scene,y.value&&(y.value.name="CPMPIP")},Te=()=>{U&&U.disconnect(),$.value&&x(),K(),oe(),Y()};return e.onMounted(async()=>{try{Ce()}catch(t){console.error("Three.js 初始化失败:",t),j.ElMessage.error("渲染引擎初始化失败!")}}),e.onBeforeUnmount(()=>{Te()}),(t,o)=>{const N=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",Xe,[e.createElementVNode("div",{ref_key:"threejsContainer",ref:l,class:"threejs-container"},null,512),e.createElementVNode("div",We,[e.createVNode(V.ThreeSvgIcon,{name:"viewReset",size:"24",onClick:be,title:"重置"}),e.createVNode(V.ThreeSvgIcon,{name:"fangda",size:"24",title:"放大",onClick:e.unref(z)},null,8,["onClick"]),e.createVNode(V.ThreeSvgIcon,{name:"suoxiao",size:"24",title:"缩小",onClick:e.unref(A)},null,8,["onClick"]),e.createVNode(V.ThreeSvgIcon,{name:"lookAround",size:"24",onClick:e.unref(F),title:e.unref($)?"停止动画":"动画视图"},null,8,["onClick","title"]),e.createVNode(V.ThreeSvgIcon,{name:"zuobiaoxi",size:"24",active:e.unref(s),onClick:ce,title:"显隐坐标轴"},null,8,["active"]),C.value?(e.openBlock(),e.createBlock(V.ThreeSvgIcon,{key:0,name:"dianyun",size:"24",active:e.unref(Z),onClick:o[0]||(o[0]=c=>ne(e.unref(ee).POINT)),title:"点云"},null,8,["active"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(V.ThreeSvgIcon,{key:1,name:"luoxuanxian",size:"24",active:e.unref(Q),onClick:o[1]||(o[1]=c=>ne(e.unref(ee).LINE)),title:"线体"},null,8,["active"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ye,[e.renderSlot(t.$slots,"button-left",{switchRightPanel:ue},void 0,!0)]),e.createElementVNode("div",Ze,[e.renderSlot(t.$slots,"button-right",{switchRightPanel:q},void 0,!0),e.createVNode(V.ThreeSvgIcon,{name:"guanjiekongzhi",size:"24",onClick:o[2]||(o[2]=c=>q("关节控制")),active:k.value&&r.value==="关节控制",title:"关节控制"},null,8,["active"]),e.createVNode(V.ThreeSvgIcon,{name:"donghuafangzhen",size:"24",title:"动画仿真",onClick:o[3]||(o[3]=c=>q("动画仿真")),active:k.value&&r.value==="动画仿真"},null,8,["active"])]),e.createElementVNode("div",Qe,[e.createVNode(V.ThreeSvgIcon,{name:"kuaitui",size:"24",backgroundColor:"#ffffff",title:"快退",onClick:fe}),e.createVNode(V.ThreeSvgIcon,{name:"bofang",size:"24",backgroundColor:"#ffffff",title:"播放",onClick:de}),e.createVNode(V.ThreeSvgIcon,{name:"kuaijin",size:"24",backgroundColor:"#ffffff",title:"快进",onClick:ve}),e.createVNode(V.ThreeSvgIcon,{name:"zanting",size:"24",backgroundColor:"#ffffff",title:"暂停",onClick:K})]),e.withDirectives(e.createElementVNode("div",et,[e.createElementVNode("div",tt,[e.createElementVNode("span",null,e.toDisplayString(a.value),1),e.createElementVNode("span",{class:"close",onClick:o[4]||(o[4]=c=>m.value=!1)}," X ")]),e.createElementVNode("div",ot,[e.createVNode(N,{height:"100%"},{default:e.withCtx(()=>[a.value==="场景树"?(e.openBlock(),e.createBlock(le.UrdfTree,{key:0,model:E.value},null,8,["model"])):e.createCommentVNode("",!0),a.value==="剖面视图"?(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",lt,[e.createElementVNode("label",at,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"none","onUpdate:modelValue":o[5]||(o[5]=c=>e.isRef(w)?w.value=c:null),onChange:o[6]||(o[6]=(...c)=>e.unref(T)&&e.unref(T)(...c))},null,544),[[e.vModelRadio,e.unref(w)]]),o[14]||(o[14]=e.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),e.createElementVNode("label",rt,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"x","onUpdate:modelValue":o[7]||(o[7]=c=>e.isRef(w)?w.value=c:null),onChange:o[8]||(o[8]=(...c)=>e.unref(T)&&e.unref(T)(...c))},null,544),[[e.vModelRadio,e.unref(w)]]),o[15]||(o[15]=e.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),e.createElementVNode("label",st,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"y","onUpdate:modelValue":o[9]||(o[9]=c=>e.isRef(w)?w.value=c:null),onChange:o[10]||(o[10]=(...c)=>e.unref(T)&&e.unref(T)(...c))},null,544),[[e.vModelRadio,e.unref(w)]]),o[16]||(o[16]=e.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),e.createElementVNode("label",it,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"z","onUpdate:modelValue":o[11]||(o[11]=c=>e.isRef(w)?w.value=c:null),onChange:o[12]||(o[12]=(...c)=>e.unref(T)&&e.unref(T)(...c))},null,544),[[e.vModelRadio,e.unref(w)]]),o[17]||(o[17]=e.createElementVNode("span",{class:"radio-text"},"Z轴切割",-1))])])])):e.createCommentVNode("",!0)]),_:1})])],512),[[e.vShow,m.value]]),e.withDirectives(e.createElementVNode("div",ct,[e.createElementVNode("div",ut,[e.createElementVNode("span",null,e.toDisplayString(r.value),1),e.createElementVNode("span",{class:"close",onClick:o[13]||(o[13]=c=>k.value=!1)}," X ")]),e.createElementVNode("div",dt,[e.createVNode(N,{height:"100%"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(le.JointPanel,{model:E.value},null,8,["model"]),[[e.vShow,r.value==="关节控制"]]),e.withDirectives(e.createVNode(Je,{ref_key:"animationPanelRef",ref:n,cloud:te.value,knife:S.value,vectors:B.value},null,8,["cloud","knife","vectors"]),[[e.vShow,r.value==="动画仿真"&&C.value]])]),_:1})])],512),[[e.vShow,k.value]]),f.value?(e.openBlock(),e.createElementBlock("div",vt,[o[18]||(o[18]=e.createElementVNode("div",{class:"loading-spinner"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(i.value),1)])):e.createCommentVNode("",!0)])}}}),pt=W._export_sfc(ft,[["__scopeId","data-v-ef80e7b1"]]);exports.default=pt;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),I=require("./iconfont-BYcEzhNe.cjs"),b=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BkkUVCLE.cjs"),Ee=require("./threeViewerHost-Czjy_lsO.cjs"),j=require("./index-CEwxrYB-.cjs"),le=require("./urdfTree-CE1RFgO5.cjs"),D=require("./pointTrack-BlTNQUei.cjs"),W=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),V=require("./svgIcon-BH_8oaav.cjs"),xe=require("./isString-Cvx5mmsS.cjs"),R={POINT:"point",LINE:"line"};function Se(){const d=e.ref(R.LINE),p=l=>{d.value=l},h=e.computed(()=>d.value===R.POINT),u=e.computed(()=>d.value===R.LINE);return{trackType:d,setTrackType:p,isPoint:h,isLine:u,trackTypeConstants:R}}const Ie={class:"table-container"},De=["title"],ze=["title"],$e=["title"],Pe=["title"],Ae=e.defineComponent({__name:"trackScroller",props:{list:{},currentId:{}},setup(d){const p=d,h=e.ref();function u(l){e.nextTick(()=>{var i;const f=p.list.findIndex(n=>n.id===l);f>-1&&((i=h.value)==null||i.scrollToItem(f,"center"))})}return e.watch(()=>p.currentId,u,{immediate:!0}),(l,f)=>(e.openBlock(),e.createElementBlock("div",Ie,[f[0]||(f[0]=e.createStaticVNode('<div class="table-header" data-v-c4baa40f><div class="header-cell line-number-col" data-v-c4baa40f>行号</div><div class="header-cell" data-v-c4baa40f>X</div><div class="header-cell" data-v-c4baa40f>Y</div><div class="header-cell" data-v-c4baa40f>Z</div></div>',1)),e.createVNode(e.unref(D.script$2),{class:"scroller",ref_key:"scrollerRef",ref:h,items:l.list,"item-size":32,"items-limit":1/0,"key-field":"id"},{default:e.withCtx(({item:i,index:n})=>{var m,a,k,r,E,y;return[e.createElementVNode("div",{class:e.normalizeClass({row:!0,active:i.id===l.currentId})},[e.createElementVNode("div",{class:"cell line-number-col",title:n+1},e.toDisplayString(n+1),9,De),e.createElementVNode("div",{class:"cell",title:(m=i.x)==null?void 0:m.toFixed(5)},e.toDisplayString((a=i.x)==null?void 0:a.toFixed(5)),9,ze),e.createElementVNode("div",{class:"cell",title:(k=i.y)==null?void 0:k.toFixed(5)},e.toDisplayString((r=i.y)==null?void 0:r.toFixed(5)),9,$e),e.createElementVNode("div",{class:"cell",title:(E=i.z)==null?void 0:E.toFixed(5)},e.toDisplayString((y=i.z)==null?void 0:y.toFixed(5)),9,Pe)],2)]}),_:1},8,["items"])]))}}),Fe=W._export_sfc(Ae,[["__scopeId","data-v-c4baa40f"]]);function Be(d=.5,p=4){const h=new b.SphereGeometry(.3,16,16),u=new b.MeshBasicMaterial({color:16768256});return new b.Mesh(h,u)}function Le(d,p){d.position.copy(p)}function Ue(d,p,h=new b.Color(16711680)){const u=new b.Vector3;p.getWorldPosition(u);const l=d.geometry.attributes.position,f=d.geometry.attributes.color,i=new b.Color(2003455);let n=1/0,m=-1;for(let a=0;a<l.count;a++){const r=new b.Vector3().fromBufferAttribute(l,a).distanceTo(u);r<n&&(n=r,m=a)}for(let a=0;a<f.count;a++)i.toArray(f.array,a*3);if(m!==-1){const a=h.toArray(),k=m*3+2;for(let r=0;r<k;r=r+3)f.array[r]=a[0],f.array[r+1]=a[1],f.array[r+2]=a[2]}f.needsUpdate=!0}function ae(d,p,h,u=new b.Color(16711680)){Le(d,p),Ue(h,d,u)}const Re={class:"panel-content"},je={class:"animation-controls"},Me={class:"control-row"},Oe={class:"control-row"},qe={class:"frame-info"},Ke={class:"control-row slider-row"},Ge={class:"scroller-row"},He=e.defineComponent({__name:"trackAnimationPanel",props:{cloud:{},knife:{},vectors:{}},emits:["getThreeData"],setup(d,{expose:p,emit:h}){const u=d,l=e.computed(()=>u.vectors),f=e.computed(()=>{const s=l.value||[];return s==null?void 0:s.map((z,A)=>{const{x:$,y:F,z:x}=z;return{id:A,x:$,y:F,z:x}})}),i=e.ref(!1),n=e.ref(0),m=e.ref(100);let a=!1;const k=s=>`第 ${s+1} 帧`,r=s=>{if(s<0||s>=l.value.length){console.error(`帧索引 ${s} 超出范围`);return}const v=l.value[s];n.value=s,ae(u.knife,v,u.cloud)},E=async()=>{if(l.value.length===0){j.ElMessage.error("无法播放动画:无数据");return}if(!i.value){i.value=!0,a=!1,l.value.length-1===n.value&&(n.value=0);try{for(let s=n.value+1;s<l.value.length&&!a;s++)await new Promise(v=>setTimeout(v,m.value)),r(s);a||j.ElMessage.success("动画播放完成")}catch(s){console.error("动画播放出错:",s)}finally{i.value=!1}}},y=async()=>{i.value&&(a=!0,await new Promise(s=>{const v=e.watch(()=>i.value,z=>{v(),s()})}),j.ElMessage.info("动画已停止"))},L=async s=>{i.value&&await y(),r(s)},M=async()=>{i.value&&await y(),!(n.value+1>=l.value.length)&&r(n.value+1)},O=async()=>{i.value&&await y(),n.value!==0&&r(n.value-1)},g=()=>{n.value=0};return p({playAnimation:E,stopAnimation:y,forwardFrame:M,backwardFrame:O,resetAnimationFrame:g,reset:async()=>{await y(),g()}}),(s,v)=>{const z=e.resolveComponent("el-input-number"),A=e.resolveComponent("el-form-item"),$=e.resolveComponent("el-form"),F=e.resolveComponent("el-slider");return e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("div",je,[e.createElementVNode("div",Me,[e.createVNode($,{"label-width":"80px",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(A,{label:"帧间隔:",prop:"frameDuration"},{default:e.withCtx(()=>[e.createVNode(z,{modelValue:m.value,"onUpdate:modelValue":v[0]||(v[0]=x=>m.value=x),min:0,max:5e3,step:10,style:{width:"100%"},size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),e.createElementVNode("div",Oe,[v[2]||(v[2]=e.createElementVNode("label",{class:"row-label"},"当前帧:",-1)),e.createElementVNode("span",qe,e.toDisplayString(n.value+1)+" / "+e.toDisplayString(l.value.length),1)]),e.createElementVNode("div",Ke,[v[3]||(v[3]=e.createElementVNode("label",{class:"row-label"},"动画进度:",-1)),e.createVNode(F,{modelValue:n.value,"onUpdate:modelValue":v[1]||(v[1]=x=>n.value=x),min:0,max:l.value.length>0?l.value.length-1:0,step:1,"format-tooltip":k,onInput:L,disabled:l.value.length===0,style:{flex:"1","margin-left":"5px"}},null,8,["modelValue","max","disabled"])]),e.createElementVNode("div",Ge,[e.createVNode(Fe,{class:"scroller",list:f.value,"current-id":n.value},null,8,["list","current-id"])])])])}}}),Je=W._export_sfc(He,[["__scopeId","data-v-af71163f"]]),Xe={class:"obj-viewer-container"},We={class:"buttonGroup-topLeft"},Ye={class:"buttonGroup-left"},Ze={class:"buttonGroup-right"},Qe={class:"buttonGroup-bottom"},et={class:"left-panel"},tt={class:"panel-header"},ot={class:"panel-body"},nt={key:1,class:"clipping-content"},lt={class:"radio-group"},at={class:"radio-label"},rt={class:"radio-label"},st={class:"radio-label"},it={class:"radio-label"},ct={class:"right-panel"},ut={class:"panel-header"},dt={class:"panel-body"},vt={key:0,class:"loading-overlay"},ft=e.defineComponent({__name:"threeTrackPathView",props:{fileBlobs:{},threeData:{default:()=>""},trackFileType:{}},emits:["getAnimationData","getThreeData"],setup(d,{emit:p}){const h=p,u=d,l=e.ref(null),f=e.ref(!1),i=e.ref(""),n=e.ref(),m=e.ref(!1),a=e.ref(""),k=e.ref(!1),r=e.ref(""),E=e.shallowRef(null),y=e.shallowRef(null),{currentModels:L,initThreeJS:M,handleResize:O,getThreeJSObjects:g,cleanup:Y,axesHelperVisible:s,toggleAxesVisibility:v,zoomIn:z,zoomOut:A}=I.useThreeJS(l),{isAnimating:$,toggleAnimation:F,stopAnimation:x}=I.useAnimation(g,L),{isClipping:re,activeClippingAxis:w,toggleClipping:se,updateClippingPlanes:T}=I.useClipping(g,L),{isPoint:Z,isLine:Q,setTrackType:ie,trackTypeConstants:ee}=Se(),ce=()=>{v()},ue=t=>{m.value=!0,a.value=t,t==="剖面视图"&&!re.value&&se()},q=t=>{k.value=!0,r.value=t,t==="动画仿真"&&h("getAnimationData")},de=()=>{var t;C.value&&((t=n==null?void 0:n.value)==null||t.playAnimation())},K=()=>{var t;C.value&&((t=n==null?void 0:n.value)==null||t.stopAnimation())},ve=()=>{var t;C.value&&((t=n==null?void 0:n.value)==null||t.forwardFrame())},fe=()=>{var t;C.value&&((t=n==null?void 0:n.value)==null||t.backwardFrame())},G=e.ref([]),B=e.ref([]),pe=e.computed(()=>{var o;return(o=u.trackFileType)==null?void 0:o.isUv}),me=e.computed(()=>{var o;return(o=u.trackFileType)==null?void 0:o.isCyd}),ge=e.computed(()=>{var o;return(o=u.trackFileType)==null?void 0:o.isCpt}),C=e.computed(()=>{var o;return(o=u.trackFileType)==null?void 0:o.isNc}),H=e.computed(()=>{const t=u.fileBlobs||[];return t==null?void 0:t[0]}),_=e.shallowRef(),P=e.shallowRef(),te=e.computed(()=>P.value||_.value),S=e.shallowRef(),he=()=>{const{scene:t}=g();_.value&&t&&(I.disposeObj(_.value,t),_.value=null),P.value&&t&&(I.disposeObj(P.value,t),P.value=null)},ke=()=>{const{scene:t}=g();S.value&&t&&(I.disposeObj(S.value,t),S.value=null)},oe=()=>{he(),ke()},ye=t=>{const{scene:o}=g(),N=new b.Line(t.geometry.clone(),t.material);return N.name="轨迹路径克隆体",N.position.copy(t.position),N.rotation.copy(t.rotation),N.scale.copy(t.scale),o==null||o.add(N),N},Ve=t=>{if(Z.value){_.value=D.drawPoints(g,t),P.value=null;return}if(Q.value){_.value=D.drawLine(g,t),P.value=ye(_.value);return}},we=async t=>{const o=URL.createObjectURL(t),N=await Ee.readFileText(o);if(URL.revokeObjectURL(o),xe.isString(N)){const c=await D.getPoints(N,u.trackFileType)||[];G.value=c;const X=G.value;C.value&&Ve(X),pe.value&&(_.value=D.drawLine(g,X)),(me.value||ge.value)&&(_.value=D.drawPoints(g,X)),I.frameCameraToObject3D(g,_.value)}},ne=async t=>{ie(t),await J(H.value)},Ne=async()=>Be(),_e=async()=>{var t,o;if(S.value=await Ne(),B.value=D.convertPointsToVector3(G.value),B.value&&B.value.length){ae(S.value,B.value[0],te.value,new b.Color(16711680)),(o=(t=y.value)==null?void 0:t.add)==null||o.call(t,S.value);return}},be=async()=>{var t;await((t=n==null?void 0:n.value)==null?void 0:t.reset()),await J(H.value)},J=async t=>{oe(),K(),await we(t),C.value&&_e()};e.watch(()=>H.value,async t=>{t&&await J(t)},{immediate:!0,deep:!0});let U=null;const Ce=()=>{M(),e.nextTick(()=>{l.value&&(U=new ResizeObserver(O),U.observe(l.value))});const t=g();y.value=t.scene,y.value&&(y.value.name="CPMPIP")},Te=()=>{U&&U.disconnect(),$.value&&x(),K(),oe(),Y()};return e.onMounted(async()=>{try{Ce()}catch(t){console.error("Three.js 初始化失败:",t),j.ElMessage.error("渲染引擎初始化失败!")}}),e.onBeforeUnmount(()=>{Te()}),(t,o)=>{const N=e.resolveComponent("el-scrollbar");return e.openBlock(),e.createElementBlock("div",Xe,[e.createElementVNode("div",{ref_key:"threejsContainer",ref:l,class:"threejs-container"},null,512),e.createElementVNode("div",We,[e.createVNode(V.ThreeSvgIcon,{name:"viewReset",size:"24",onClick:be,title:"重置"}),e.createVNode(V.ThreeSvgIcon,{name:"fangda",size:"24",title:"放大",onClick:e.unref(z)},null,8,["onClick"]),e.createVNode(V.ThreeSvgIcon,{name:"suoxiao",size:"24",title:"缩小",onClick:e.unref(A)},null,8,["onClick"]),e.createVNode(V.ThreeSvgIcon,{name:"lookAround",size:"24",onClick:e.unref(F),title:e.unref($)?"停止动画":"动画视图"},null,8,["onClick","title"]),e.createVNode(V.ThreeSvgIcon,{name:"zuobiaoxi",size:"24",active:e.unref(s),onClick:ce,title:"显隐坐标轴"},null,8,["active"]),C.value?(e.openBlock(),e.createBlock(V.ThreeSvgIcon,{key:0,name:"dianyun",size:"24",active:e.unref(Z),onClick:o[0]||(o[0]=c=>ne(e.unref(ee).POINT)),title:"点云"},null,8,["active"])):e.createCommentVNode("",!0),C.value?(e.openBlock(),e.createBlock(V.ThreeSvgIcon,{key:1,name:"luoxuanxian",size:"24",active:e.unref(Q),onClick:o[1]||(o[1]=c=>ne(e.unref(ee).LINE)),title:"线体"},null,8,["active"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",Ye,[e.renderSlot(t.$slots,"button-left",{switchRightPanel:ue},void 0,!0)]),e.createElementVNode("div",Ze,[e.renderSlot(t.$slots,"button-right",{switchRightPanel:q},void 0,!0),e.createVNode(V.ThreeSvgIcon,{name:"guanjiekongzhi",size:"24",onClick:o[2]||(o[2]=c=>q("关节控制")),active:k.value&&r.value==="关节控制",title:"关节控制"},null,8,["active"]),e.createVNode(V.ThreeSvgIcon,{name:"donghuafangzhen",size:"24",title:"动画仿真",onClick:o[3]||(o[3]=c=>q("动画仿真")),active:k.value&&r.value==="动画仿真"},null,8,["active"])]),e.createElementVNode("div",Qe,[e.createVNode(V.ThreeSvgIcon,{name:"kuaitui",size:"24",backgroundColor:"#ffffff",title:"快退",onClick:fe}),e.createVNode(V.ThreeSvgIcon,{name:"bofang",size:"24",backgroundColor:"#ffffff",title:"播放",onClick:de}),e.createVNode(V.ThreeSvgIcon,{name:"kuaijin",size:"24",backgroundColor:"#ffffff",title:"快进",onClick:ve}),e.createVNode(V.ThreeSvgIcon,{name:"zanting",size:"24",backgroundColor:"#ffffff",title:"暂停",onClick:K})]),e.withDirectives(e.createElementVNode("div",et,[e.createElementVNode("div",tt,[e.createElementVNode("span",null,e.toDisplayString(a.value),1),e.createElementVNode("span",{class:"close",onClick:o[4]||(o[4]=c=>m.value=!1)}," X ")]),e.createElementVNode("div",ot,[e.createVNode(N,{height:"100%"},{default:e.withCtx(()=>[a.value==="场景树"?(e.openBlock(),e.createBlock(le.UrdfTree,{key:0,model:E.value},null,8,["model"])):e.createCommentVNode("",!0),a.value==="剖面视图"?(e.openBlock(),e.createElementBlock("div",nt,[e.createElementVNode("div",lt,[e.createElementVNode("label",at,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"none","onUpdate:modelValue":o[5]||(o[5]=c=>e.isRef(w)?w.value=c:null),onChange:o[6]||(o[6]=(...c)=>e.unref(T)&&e.unref(T)(...c))},null,544),[[e.vModelRadio,e.unref(w)]]),o[14]||(o[14]=e.createElementVNode("span",{class:"radio-text"},"无切割",-1))]),e.createElementVNode("label",rt,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"x","onUpdate:modelValue":o[7]||(o[7]=c=>e.isRef(w)?w.value=c:null),onChange:o[8]||(o[8]=(...c)=>e.unref(T)&&e.unref(T)(...c))},null,544),[[e.vModelRadio,e.unref(w)]]),o[15]||(o[15]=e.createElementVNode("span",{class:"radio-text"},"X轴切割",-1))]),e.createElementVNode("label",st,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"y","onUpdate:modelValue":o[9]||(o[9]=c=>e.isRef(w)?w.value=c:null),onChange:o[10]||(o[10]=(...c)=>e.unref(T)&&e.unref(T)(...c))},null,544),[[e.vModelRadio,e.unref(w)]]),o[16]||(o[16]=e.createElementVNode("span",{class:"radio-text"},"Y轴切割",-1))]),e.createElementVNode("label",it,[e.withDirectives(e.createElementVNode("input",{type:"radio",name:"clipping-axis",value:"z","onUpdate:modelValue":o[11]||(o[11]=c=>e.isRef(w)?w.value=c:null),onChange:o[12]||(o[12]=(...c)=>e.unref(T)&&e.unref(T)(...c))},null,544),[[e.vModelRadio,e.unref(w)]]),o[17]||(o[17]=e.createElementVNode("span",{class:"radio-text"},"Z轴切割",-1))])])])):e.createCommentVNode("",!0)]),_:1})])],512),[[e.vShow,m.value]]),e.withDirectives(e.createElementVNode("div",ct,[e.createElementVNode("div",ut,[e.createElementVNode("span",null,e.toDisplayString(r.value),1),e.createElementVNode("span",{class:"close",onClick:o[13]||(o[13]=c=>k.value=!1)}," X ")]),e.createElementVNode("div",dt,[e.createVNode(N,{height:"100%"},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(le.JointPanel,{model:E.value},null,8,["model"]),[[e.vShow,r.value==="关节控制"]]),e.withDirectives(e.createVNode(Je,{ref_key:"animationPanelRef",ref:n,cloud:te.value,knife:S.value,vectors:B.value},null,8,["cloud","knife","vectors"]),[[e.vShow,r.value==="动画仿真"&&C.value]])]),_:1})])],512),[[e.vShow,k.value]]),f.value?(e.openBlock(),e.createElementBlock("div",vt,[o[18]||(o[18]=e.createElementVNode("div",{class:"loading-spinner"},null,-1)),e.createElementVNode("p",null,e.toDisplayString(i.value),1)])):e.createCommentVNode("",!0)])}}}),pt=W._export_sfc(ft,[["__scopeId","data-v-ef80e7b1"]]);exports.default=pt;
@@ -1,10 +1,10 @@
1
1
  import { ref as k, computed as $, defineComponent as de, watch as ve, createElementBlock as J, openBlock as V, createStaticVNode as He, createVNode as v, unref as u, withCtx as G, createElementVNode as l, normalizeClass as We, toDisplayString as F, nextTick as xe, resolveComponent as R, shallowRef as K, onMounted as Ye, onBeforeUnmount as Ze, withDirectives as I, createCommentVNode as B, createBlock as ce, renderSlot as he, isRef as W, vModelRadio as Y, vShow as Z } from "vue";
2
- import { u as qe, a as Qe, b as et, f as tt, d as ue } from "./iconfont-BQBCgO1O.js";
3
- import { C as ee, aJ as lt, am as nt, r as at, V as _e, N as ot } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CYXAbj2a.js";
4
- import { r as st } from "./threeViewerHost-BaGBR8jd.js";
2
+ import { u as qe, a as Qe, b as et, f as tt, d as ue } from "./iconfont-DiGd__OT.js";
3
+ import { C as ee, aJ as lt, am as nt, r as at, V as _e, N as ot } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B3RSoHQA.js";
4
+ import { r as st } from "./threeViewerHost-CTUpfC_Y.js";
5
5
  import { E as Q } from "./index-CA0SFykF.js";
6
- import { U as it, J as rt } from "./urdfTree-BhqPlNff.js";
7
- import { s as ct, g as ut, d as Ce, a as Te, c as dt } from "./pointTrack-DINaUvcX.js";
6
+ import { U as it, J as rt } from "./urdfTree-Du-nKROV.js";
7
+ import { s as ct, g as ut, d as Ce, a as Te, c as dt } from "./pointTrack-o_VVFlmw.js";
8
8
  import { _ as fe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  import { T as C } from "./svgIcon-OBhwktPM.js";
10
10
  import { i as vt } from "./isString-C_qk7R_g.js";
@@ -1,7 +1,7 @@
1
1
  import { computed as l0, defineComponent as Hc, defineAsyncComponent as Ja, ref as ri, watch as Vc, createElementBlock as ti, openBlock as jt, normalizeClass as Gc, createElementVNode as Xc, createBlock as Za, createCommentVNode as ai, renderSlot as st, unref as qa, withCtx as mt } from "vue";
2
2
  import { a as xs, c0 as zc, p as Y0, s as ds } from "./index-CA0SFykF.js";
3
3
  import { u as vs } from "./index.vue_vue_type_style_index_1_lang-B7HH0PCt.js";
4
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CYXAbj2a.js";
4
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-B3RSoHQA.js";
5
5
  import { _ as $c } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  function x_(e) {
7
7
  const t = sessionStorage.getItem("loginToken") ?? "123456";
@@ -24807,7 +24807,7 @@ const n_ = { class: "top-menu" }, i_ = {
24807
24807
  },
24808
24808
  emits: ["getThreeData"],
24809
24809
  setup(e, { emit: t }) {
24810
- const r = Ja(() => import("./threeSceneView-DN0ThqUj.js")), a = Ja(() => import("./threePreview-BDS4HbKS.js")), n = Ja(() => import("./threeTrackPathView-B1oaH-Qc.js")), i = Ja(() => import("./threeSceneViewForCPMPIP-6wdyEUgw.js")), s = {
24810
+ const r = Ja(() => import("./threeSceneView-C8vlDAO-.js")), a = Ja(() => import("./threePreview-RzBngWrN.js")), n = Ja(() => import("./threeTrackPathView-DyGh44hI.js")), i = Ja(() => import("./threeSceneViewForCPMPIP-CdhbgviA.js")), s = {
24811
24811
  ROBOT_SCENE: "robot",
24812
24812
  // 机器人场景
24813
24813
  LATHE_SCENE: "latheScene",