Parcourir la source

add plot stop functional

tags/2.12.0
Caven Chen il y a 3 ans
Parent
révision
26b9dd7673
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 12
    0
      modules/plot/Plot.js

+ 12
- 0
modules/plot/Plot.js Voir le fichier

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

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

/**
*
* @returns {Plot}

Chargement…
Annuler
Enregistrer