UNPKG

@dfsj/echarts

Version:

专业的水文曲线组件或构造函数以及通用的echart二次封装图表

12 lines (10 loc) 4.62 kB
/** * * @dfsj/echarts: 专业的水文曲线组件或构造函数以及通用的echart二次封装图表 * 版本: v4.0.0-alpha.9 * 作者:yangbo <1747837358@qq.com> * 日期:2026-07-10 17:09:23 * * */ import{defineProperty as t,objectSpread2 as e}from"../../_virtual/_rollupPluginBabelHelpers.js";import r,{options as n,axis as o}from"../../config.js";import{to as i}from"../../utils/tools.js";import a from"../../utils/assign.js";var u,l=[new URL("./images/0.png",import.meta.url).href,new URL("./images/1.png",import.meta.url).href,new URL("./images/2.png",import.meta.url).href,new URL("./images/3.png",import.meta.url).href,new URL("./images/4.png",import.meta.url).href,new URL("./images/5.png",import.meta.url).href,new URL("./images/6.png",import.meta.url).href,new URL("./images/7.png",import.meta.url).href,new URL("./images/8.png",import.meta.url).href,new URL("./images/9.png",import.meta.url).href],f=(t(t(t(t(t(t(t(t(t(t(u={},-1,{section:[30,1e3,50,1080,1920],water:[function(t){return 1080},function(t){return 1080}],point:function(t){return Math.round(t)<30?1020:(700700+310*t)/1e3},mark:[1e3,900]}),0,{section:[30,1e3,50,1080,1920],water:[function(t){return 1200},function(t){return 1200}],point:function(t){return Math.round(t)<30?1110:(185060+898*t)/1e3},mark:[1100,900]}),1,{section:[30,1e3,50,1080,1920],water:[function(t){return 1200},function(t){return 1200}],point:function(t){return Math.round(t)<30?1180:(253e3+900*t)/1e3},mark:[1200,900]}),2,{section:[34,1e3,50,1080,1920],water:[function(t){return 1200},function(t){return 1200}],point:function(t){return Math.round(t)<30?1070:(4e4+1e3*t)/1e3},mark:[1100,900]}),3,{section:[34,962,88,1080,1920],water:[function(t){return 1223},function(t){return 956}],point:function(t){return Math.round(t)<30?1440:t<316?940:(555168+257*t)/677},mark:[1250,800]}),4,{section:[34,962,88,1080,1920],water:[function(t){return 1223},function(t){return 956}],point:function(t){return Math.round(t)<30?1440:t<316?940:(555168+257*t)/677},mark:[1250,800]}),5,{section:[34,1e3,50,1080,1920],water:[function(t){return 1200},function(t){return 1200}],point:function(t){return Math.round(t)<30?1070:(4e4+1e3*t)/1e3},mark:[1100,900]}),6,{section:[34,1e3,50,1080,1920],water:[function(t){return 1200},function(t){return 1200}],point:function(t){return Math.round(t)<30?1070:(4e4+1e3*t)/1e3},mark:[1100,900]}),7,{section:[34,1e3,50,1080,1920],water:[function(t){return 1200},function(t){return 1200}],point:function(t){return Math.round(t)<30?1070:(4e4+1e3*t)/1e3},mark:[1100,900]}),8,{section:[43,945,92,1080,1920],water:[function(t){return 1e3},function(t){return 1e3}],point:function(t){return Math.round(t)<43?1670:t>340?960:(253500+93*t)/297},mark:[1130,800]}),t(u,9,{section:[48,945,90,1080,1920],water:[function(t){return 1e3},function(t){return 1e3}],point:function(t){return Math.round(t)<43?1670:t>340?960:(253500+93*t)/297},mark:[1130,800]})),c=a({},n,{$capacity:{symbol:"circle",symbolSize:1,label:{fontSize:18,offset:[110,0],color:"#fff",textShadowBlur:5,textShadowColor:r.markColor[1]}},$stage:{symbol:"path://".concat(r.icon.stage),symbolSize:160,symbolOffset:[100,-3],label:{fontSize:15,offset:[33,-5]}},$current:{z:3,silent:!0,type:"scatter",symbolKeepAspect:!0,hoverAnimation:!0,showEffectOn:"render",rippleEffect:{brushType:"stroke"},label:{show:!0,color:"inherit",fontSize:16,fontWeight:"bold"},itemStyle:{color:r.markColor[1],shadowBlur:5,shadowColor:"rgba(51,51,51,0.56)",shadowOffsetX:1,shadowOffsetY:1}},$water:{z:0,type:"water",symbolSize:0,xAxisIndex:0,tooltip:!1,count:3,itemStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"skyblue"},{offset:.7,color:"deepskyblue"}],global:!1}}},$area:{history:{title:"历史",symbol:"circle"},forecast:{title:"预报",symbol:"emptyCircle"}},title:{x:"center",text:"大坝示意图",top:10,textStyle:{fontSize:15}},color:r.color,legend:!1,tooltip:{formatter:function(t){return"".concat(t.value[6],":").concat(t.value[1],"(m)")}},grid:{top:60,bottom:30,left:80,right:80},timeline:{axisType:"category",autoPlay:!1,playInterval:1e3,bottom:0,left:80,right:80,data:null,z:3,label:{color:"#fff"},progress:{label:{color:"#4ff8c4"}}},xAxis:{type:"value",min:0,max:1920,axisTick:!1,axisLabel:!1,splitLine:!1,axisLine:!1},yAxis:e(e({},o),{},{name:"高程(m)",type:"value",splitLine:!1,axisLabel:{formatter:function(t){return i(t)}},nameTextStyle:e(e({},o.nameTextStyle),{},{align:"right"})}),graphic:{type:"image",id:"background",bounding:"raw",left:80,bottom:30,z:1,position:[0,0],style:{}},series:[]});export{l as IMAGES,f as TYPES,c as default};