diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/animation/Timeline.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/animation/Timeline.js b/src/animation/Timeline.js index d175ae6..f37cb7a 100644 --- a/src/animation/Timeline.js +++ b/src/animation/Timeline.js @@ -44,10 +44,17 @@ export default class Timeline extends EventTarget { this._stepImmediate = this._stepFn.bind(this, true) } + // returns information on each runner in the timeline. + // (start, duration, end, and runner) + + getSchedule () { + return this._runners.map(makeSchedule) + } + // schedules a runner on the timeline schedule (runner, delay, when) { if (runner == null) { - return this._runners.map(makeSchedule) + return this.getSchedule() } // The start time for the next animation can either be given explicitly, |