ソースを参照

多井功图对比绘制增加滤波处理

chenwen 1 ヶ月 前
コミット
8cb3a0deb5
1 ファイル変更4 行追加0 行削除
  1. 4 0
      src/components/diagram/lib/multidiagram.js

+ 4 - 0
src/components/diagram/lib/multidiagram.js

@@ -195,6 +195,10 @@ Diagram.prototype={
 	
 	drawMultiCurve:function(){
 		this.lineGroup.getLines().forEach(line=>{
+			
+			//绘制数据前进行滤波
+			line.datas=Utils.waveFilter(line.datas,6)
+			
 			let curveShape= new createjs.Shape();
 			//this.stage.addChild(curveShape)
 			this.drawCurve(line,curveShape.graphics)