AnimationInterface
Summary
Creates a new Animation that will use a Layer Strategy for specific implementation support.
Constructor
aeris.maps.animations.AnimationInterface
Syntax
aeris.maps.animations.AnimationInterface
()
Summary
Item Index
Methods
Methods
getCurrentTime
Syntax
Summary
Returns:
Current time of the animation. Returns null if the animation has not yet initialized.
goToTime
Syntax
goToTime
-
time
Summary
Go to a specific time in the animation.
Parameters:
-
time
NumberThe time to go to (timestamp)
preload
Syntax
Summary
Begin preloading assets required to run the animation.
Returns:
Resolves when preloading is complete.
previous
Syntax
Summary
Go to the previous step in the animation.
Returns:
Events
change:time
Syntax
change:time
Summary
When current time of the animation changes.
Event Payload:
-
time
Date
load:complete
Syntax
load:complete
Summary
Fires when all animation tile frames are loaded.
Waiting to start an animation until this event is triggered will ensure smooth animations.
If an animation is started before all tile frames are loaded, tiles which are not yet loaded will not render until they are loaded.
load:progress
Syntax
load:progress
Summary
Fires to indicate progress in preloading tiles.
Useful for rendering loading UI to the user, or if you want to buffer an animation to a certain % done.
Event Payload:
-
Percent
Numbercomplete (where 1.0 is 100%).
load:times
Syntax
load:times
Summary
Fires when tile times are loaded for this animation.
Event Payload:
-
A
Array.list of timestamps. for which animation frames will be created.