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

Function awaitAll

src/core/core.animations.js:134–145  ·  view source on GitHub ↗
(animations, properties)

Source from the content-addressed store, hash-verified

132}
133
134function awaitAll(animations, properties) {
135 const running = [];
136 const keys = Object.keys(properties);
137 for (let i = 0; i < keys.length; i++) {
138 const anim = animations[keys[i]];
139 if (anim && anim.active()) {
140 running.push(anim.wait());
141 }
142 }
143 // @ts-ignore
144 return Promise.all(running);
145}
146
147function resolveTargetOptions(target, newOptions) {
148 if (!newOptions) {

Callers 1

_animateOptionsMethod · 0.85

Calls 2

activeMethod · 0.80
waitMethod · 0.80

Tested by

no test coverage detected