Class: AnimationFactory

Animation. AnimationFactory

Factory to create an animation

new AnimationFactory()

Methods


<static> create(type, options)

Factory to create an animation. Creates an animation based on :
  • the animation type ANIMATION,
  • the options for the specific animation
Severals animations can be created :
Parameters:
Name Type Description
type ANIMATION Type of animation.
options AbstractAnimation.inertia_configuration | AbstractAnimation.interpolated_configuration | AbstractAnimation.path_configuration | AbstractAnimation.segmented_configuration See the options for each animation for further information
See:
Throws:
Type not valid - a valid type is included in the list ANIMATION
Type
RangeError
Returns:
- the interface to handle an animation
Type
AbstractAnimation