浏览代码

add plot stop functional

tags/2.12.0
Caven Chen 3 年前
父节点
当前提交
26b9dd7673
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12
    0
      modules/plot/Plot.js

+ 12
- 0
modules/plot/Plot.js 查看文件

@@ -188,6 +188,18 @@ class Plot {
return this
}

/**
*
* @return {Plot}
*/
stop() {
if (this._currentWorker) {
this._currentWorker.stop()
}
this._currentWorker = null
return undefined
}

/**
*
* @returns {Plot}

正在加载...
取消
保存