Classes
Members
(inner, constant) animatorList :Array.<module:player/Animator.Animator>
The list of managed animators.
Type:
- Array.<module:player/Animator.Animator>
- Default Value:
[]
- Source:
(inner, constant) doRequestAnimationFrame :function
The browser-specific function to request an animation frame.
Type:
- function
- Source:
(inner, constant) perf :function
The object that provides the now
method to read the current time.
Type:
- function
- Source:
(inner) runningAnimators :number
The number of running animators.
Type:
- number
- Source:
(inner, constant) TIME_STEP_MS :number
The default time step.
For browsers that do not support animation frames.
Type:
- number
- Default Value:
- 40
- Source:
(inner) timer
The handle provided by setInterval
.
For browsers that do not support animation frames.
- Source:
Methods
(inner) loop()
The main animation loop.
This function is called periodically and triggers the animation steps in all running animators.
If all animators are removed from the list of running animators, then the periodic calling is disabled.
This function can be called either through doRequestAnimationFrame
or through setInterval
.
- Source:
(inner) start()
Start the animation loop.
This function delegates the periodic update of all animators
to the loop
function, either using doRequestAnimationFrame
if the browser supports it, or using setInterval
.
- Source:
Events
done
Fired by an animator when an animation is complete.
- Source:
Listeners of This Event:
step
Fired by an animator on each animation step.
- Source:
Listeners of This Event:
stop
Fired by an animator when stopping an animation before completion.
- Source: