whyczyk
2021-07-27 25831490433a3778f5b87b31a1baba32c8429a0e
src/assets/js/newDiagram/index.js
@@ -30,7 +30,7 @@
   };
   // 显示线条的id
   this.showLineId = true;
   this.showLineId = false;
}
// 设置canvas
@@ -103,10 +103,14 @@
   console.log('已经停止持续更新');
};
// 清空动态图表
Diagram.prototype._Clear = function () {
   this.s_ctx.clearRect(0, 0, this.width, this.height);
   this.f_ctx.clearRect(0, 0, this.width, this.height);
};
// 更新整个图表
Diagram.prototype._update = function () {
   // 清空图表
   //this.f_ctx.clearRect(0, 0, this.width, this.height);
   let options = this.flushOptions;
   options.forEach(option => {
      this.update(option);