Class: TimelineManager

b5. TimelineManager

b5.TimelineManager

new b5.TimelineManager(timelines){b5.TimelineManager}

animation/timelineManager.js, line 20

A TimelineManager manages a collection of b5.Timeline's. The app and each actor / scene has its own timeline manager

For a complete overview of Animation see Booty5 Animation Overview

Name Type Description
timelines Array.<b5.Timeline>

Array of timelines that are managed by this manager

Properties:
Name Type Description
timelines Array.<b5.Timeline>

Array of timelines that are managed by this manager

Returns:
Type Description
b5.TimelineManager The created timeline manager

Methods

add(timeline){b5.Timeline}

animation/timelineManager.js, line 31

Adds the supplied timeline to the manager

Name Type Description
timeline b5.Timeline

The timeline to add

Returns:
Type Description
b5.Timeline The added timeline

find(name){b5.Timeline}

animation/timelineManager.js, line 61

Searches the timeline manager for the named timeline

Name Type Description
name string

Name of timeline to find

Returns:
Type Description
b5.Timeline Found timeline or null if not found

pause()

animation/timelineManager.js, line 76

Pauses playback of the timeline manager and all of its contained timelines

play()

animation/timelineManager.js, line 86

Sets the timeline manager playing the timeline playing all contained timelines, if timeline manager is paused then it will be un-paused

remove(timeline)

animation/timelineManager.js, line 42

Removes the supplied timeline from the manager

Name Type Description
timeline b5.Timeline

The timeline to remove

restart()

animation/timelineManager.js, line 96

Restarts the timeline manager restarting all timlines contained within the manager from their beginning

update(dt)

animation/timelineManager.js, line 118

Updates all timelines that are managed by this manager, automatically called by the app, scene or actor that manages it

Name Type Description
dt number

Time that has passed since this timeline manager was last updated in seconds