MCPcopy
hub / github.com/chartjs/Chart.js / cancel

Method cancel

src/core/core.animation.js:67–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 }
66
67 cancel() {
68 if (this._active) {
69 // update current evaluated value, for smoother animations
70 this.tick(Date.now());
71 this._active = false;
72 this._notify(false);
73 }
74 }
75
76 tick(date) {
77 const elapsed = date - this._start;

Callers 2

_createAnimationsMethod · 0.80
stopMethod · 0.80

Calls 2

tickMethod · 0.95
_notifyMethod · 0.95

Tested by

no test coverage detected