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

Method _notify

src/core/core.animator.js:23–33  ·  view source on GitHub ↗

* @private

(chart, anims, date, type)

Source from the content-addressed store, hash-verified

21 * @private
22 */
23 _notify(chart, anims, date, type) {
24 const callbacks = anims.listeners[type];
25 const numSteps = anims.duration;
26
27 callbacks.forEach(fn => fn({
28 chart,
29 initial: anims.initial,
30 numSteps,
31 currentStep: Math.min(date - anims.start, numSteps)
32 }));
33 }
34
35 /**
36 * @private

Callers 2

_updateMethod · 0.95
stopMethod · 0.95

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected