Kaynağa Gözat

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

chenwen 1 ay önce
ebeveyn
işleme
8cb3a0deb5
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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)