New animation builder attached to this animation manager
Optionalname: string | nullAnimationBuilder
Set time speed of animation relative to real time, where 1 is real time, <1 is slower than real time and >1 is faster than real time.
Create a Rotation animation step that uses this element by default
Create a Scale animation step tied to this element
when a number is used, it will apply to both x and y if y is null
use a number to define the y scale, or use null
to use the x value (null)
Create a Trigger animation step
callback can be a function or an id to a function map
Add a custom animation step that uses this element by default
Create a Delay animation step
Use the duration value in options to define delay duration
Create a Translation or Position animation step tied to this element
define if targetOrOptionsOrX is x (number)
Create a Translation or Position animation step tied to this element
define if targetOrOptionsOrX is x (number)
Create a Color animation step tied to this element
Create a Opacity animation step tied to this element
Create a Transform animation step tied to this element
Create a pulse animation step tied to this element
pulse scale (number) or pulse animation step options
Create a Dissolve in animation step
Use the duration value in options to define dissolving duration
Create a Dissolve out animation step
Use the duration value in options to define dissolving duration
Create a Dim color animation step
Use the duration value in options to define dimming duration
Create a Undim color animation step
Use the duration value in options to define undimming duration
Create a Scenario animation step tied to this element
Create a Parallel animation step that animates all child elements with the target scenario name
Cancel one or all animations managed by this manager (in the animations
array).
name of animation or null to cancel all
(null)
force the animation to complete
or freeze - null will perform the default operation (null)
Start one or all animations managed by this manager (in the animations
array).
Optionaloptions: OBJ_AnimationStartGet remaining duration of all animations
define this if you want remaining duration from a custom time
Animation Manager
This class manages animations and creates animation steps for use in animations.
Each FigureElement has its own
AnimationManagerin theanimationsproperty, though any animation manager can animate any other element. Therefore all parallel animations can go through the same manager, or be spread throughout different element's animation managers. Spread animations out between elements, or keeping them all in oneAnimationManagercan change how readable code is, how convenient it is to cancel running animations, and what order the animations are performed in (AnimationManagers tied to elements drawn earlier will perform their animation steps before those tied to elements drawn later).AnimationManagers will only be processed on each animation frame if the element they are tied to is not hidden.The
animationsproperty withinAnimationManageris simply an array that contains a number AnimationSteps that are executed in parallel. Typically, these steps would themselves be SerialAnimationSteps or a series of animations. This means the animation manager is running a number of animation series in parallel.The
AnimationManagers on FigureElements should be used instead of instantiating this class separately, as those onFigureElementswill be automatically processed every animation frame.Param
See
Example
Example
Example
Example