@dfsj/echarts
Version:
专业的水文曲线组件或构造函数以及通用的echart二次封装图表
12 lines (10 loc) • 937 B
JavaScript
/**
*
* @dfsj/echarts: 专业的水文曲线组件或构造函数以及通用的echart二次封装图表
* 版本: v4.0.0-alpha.9
* 作者:yangbo <1747837358@qq.com>
* 日期:2026-07-10 17:09:23
*
*
*/
import*as e from"echarts";import t from"./waterLayout.js";var a=e.extendChartView({type:"water",render:function(e,a,o){this.group.removeAll();for(var r=o.getCoordinateSystems()[0],s=e.getData().getItemModel(0),i=s.getModel("itemStyle"),g=s.get("data").map(function(t){return r.convertToPixel(null,{seriesModel:e},t)}),d=s.get("count"),p=o.getHeight()-(s.get("grid.0.bottom")||0),l=0;l<d;l++){var n=new t({shape:{height:p,layout:g,speedX:s.get("speedX"),speedY:s.get("speedY")+l/1e3,amplitude:s.get("amplitude"),wave:s.get("wave")},style:i.getItemStyle()});n.animate("shape",!0).when(1e3,{phase:1}).start(),this.group.add(n)}},dispose:function(){this.group.removeAll()}});export{a as default};