1 |
- import{T as e,g as t,a}from"./index.esm.9495837c.js";const o=new e,s=(e,s,i,r,l,n,c,p={alpha:0,beta:0,distance:100},h,d,D=!1,m,u)=>{const w=D?100:50,F=t(l,r),f={tooltip:{show:!1},backgroundColor:n?"#D5D5D5":"#fff",grid3D:{show:!1,axisLine:{lineStyle:{color:"#DADFE7",width:.5}},axisTick:{show:!1},axisLabel:{show:!1},splitLine:{lineStyle:{color:"#DADFE7",width:.5}},axisPointer:{show:!1},postEffect:{screenSpaceAmbientOcclusion:!0},boxWidth:90,boxHeight:40,boxDepth:w,viewControl:{autoRotate:h,projection:"perspective",alpha:p.alpha,beta:p.beta,minAlpha:0,distance:p.distance,center:[0,0,0],zoomSensitivity:0,rotateSensitivity:[1,1]},left:0,top:0},xAxis3D:{type:"value",min:0,max:i-1,name:"",splitArea:{show:!1}},yAxis3D:{type:"value",name:"",splitArea:{show:!1}},zAxis3D:{type:"value",min:0,max:40,name:"",splitArea:{show:!0,areaStyle:{color:["#FFFFFF","#ECECEC"]}}},series:[]};if(f.series.push({type:"surface",shading:"color",wireframe:{show:!1},data:e}),c){const e=a(s,i,F);f.series.push({type:"surface",shading:"color",colorMaterial:{detailTexture:c},wireframe:{show:!1},itemStyle:{color:"#FFFFFF",opacity:.35},data:e})}if(D){const e=o.getHealthData(F,m),t=e.plot3dDataColor,a=e.scatterData;f.series.push({type:"surface",shading:"color",wireframe:{show:!1},data:t}),f.series.push({type:"scatter3D",data:a,symbolSize:4,itemStyle:{color:"#5C8ECA"},emphasis:{label:{show:!1}}})}if(d){const e=[];for(let t=-5;t<=0;t+=5)for(let a=0;a<=38;a+=38)e.push([a,t,0]);f.series.push({type:"surface",shading:"color",colorMaterial:{detailTexture:d},wireframe:{show:!1},itemStyle:{color:n?"#D5D5D5":"#FFFFFF"},data:e})}return f},i=(e,t,a,i,r,l,n,c=!1,p=!1,h)=>{console.log(l,n);const{plotColorData:d,yLen:D,zMax:m}=o.getFeaturePlotData(e,t,a,!0);return s(d,38,D,m,i,r,l,{alpha:15,beta:50,distance:150},p,n,c,h)},r=(e,t,a,i,r,l,n,c)=>{const{plotColorData:p,xLen:h,zMax:d}=o.getLinePlotData(e,i,r,n);return s(p,h,e.length,d,a,t,l,{alpha:30,beta:0,distance:100},n,c)};export{i as a,r as g};
|