AnimationManager$Typings extension

on

Properties

activeAnimations Set<Animation>
Gets the set of currently animating Animations being managed by this AnimationManager, including any running #defaultAnimation.
getter/setter pair
defaultAnimation Animation
This read-only property gets the Animation that carries out the default built-in GoJS animations. This animation is usually only referenced to modify default animation properties, such as the Animation#easing or Animation#duration.
getter/setter pair
duration num
Gets or sets the default duration, in milliseconds, used as the duration for the #defaultAnimation and for animations that have their Animation#duration set to NaN.
getter/setter pair
initialAnimationStyle EnumValue
Gets or sets the initial animation style that is set up by the #defaultAnimation. This can be AnimationManager.Default, AnimationManager.AnimateLocations, or AnimationManager.None.
getter/setter pair
isAnimating bool
This read-only property is true when the animation manager is currently animating any animation, including the #defaultAnimation.
getter/setter pair
isEnabled bool
Gets or sets whether this AnimationManager operates.
getter/setter pair
isInitial bool
Gets or sets whether a default animation is performed on an initial layout.
getter/setter pair
isTicking bool
This read-only property is true when the animation manager is in the middle of an animation tick. Animation only operates on GraphObjects during ticks, but code outside of AnimationManager's control may execute between ticks.
getter/setter pair

Methods

canStart(String reason) bool
This method is passed the reason a default animation is to begin, and must return true or false based on whether or not the animation is to be allowed. Returning true means the animation will occur, returning false will stop the animation's setup.
stopAnimation([bool? stopsAllAnimations]) → void
Stops the #defaultAnimation and updates the Diagram to its final state.