UNPKG

popmotion

Version:

The animator's toolbox

15 lines 460 B
export function animateSync(animation, timeStep, round) { if (timeStep === void 0) { timeStep = 200; } if (round === void 0) { round = true; } var output = []; var step = 0; var done = false; while (!done) { var latest = animation.next(step * timeStep); output.push(round ? Math.round(latest.value) : latest.value); done = latest.done; step++; } return output; } //# sourceMappingURL=utils.js.map