Static
animationsTrack an object of active animations by name, context, and function This allows a currently playing animation to be referenced and terminated
Static
STATESThe possible states of an animation.
Static
tickerThe ticker used for animations.
Static
animateApply an animation from the current value of some attribute to a new value Resolve a Promise once the animation has concluded and the attributes have reached their new target
An array of attributes to animate
Additional options which customize the animation
A Promise which resolves to true once the animation has concluded or false if the animation was prematurely terminated
let animation = [
{
parent: token,
attribute: "x",
to: 1000
},
{
parent: token,
attribute: "y",
to: 2000
}
];
CanvasAnimation.animate(attributes, {duration:500});
Static
getRetrieve an animation currently in progress by its name
The animation name to retrieve
The animation data, or undefined
Static
terminateStatic
easeStatic
easeStatic
easeStatic
Private
#animateGeneric ticker function to implement the animation. This animation wrapper executes once per frame for the duration of the animation event. Once the animated attributes have converged to their targets, it resolves the original Promise. The user-provided ontick function runs each frame update to apply additional behaviors.
The incremental time which has elapsed
The animation which is being performed
Static
Private
#updateUpdate a single attribute according to its animation completion percentage
The attribute being animated
The animation completion percentage
A helper class providing utility methods for PIXI Canvas animation