Animation$Typings extension

on

Properties

duration num

Available on Animation, provided by the Animation$Typings extension

Gets or sets the duration for animations, in milliseconds.
getter/setter pair
easing EasingFunction

Available on Animation, provided by the Animation$Typings extension

Gets or sets the easing function this Animation will use to modify default properties.
getter/setter pair
finished ↔ void Function(Animation)?

Available on Animation, provided by the Animation$Typings extension

Gets or sets the function to execute when the user Animation finishes.
getter/setter pair
isAnimating bool

Available on Animation, provided by the Animation$Typings extension

This read-only property is true when the Animation is currently running.
getter/setter pair
isViewportUnconstrained bool

Available on Animation, provided by the Animation$Typings extension

Gets or sets whether this Animation should allow an unconstrained viewport during the runtime of the animation. This temporarily sets the Diagram#scrollMode to Diagram.InfiniteScroll, and restores the value at the end of the animation. This is done so that animating objects can move out of the viewport temporarily during the animation and not trigger scrollbars.
getter/setter pair
reversible bool

Available on Animation, provided by the Animation$Typings extension

Gets or sets whether this Animation will repeat its animation in reverse at the end of the duration. Default false.
getter/setter pair
runCount num

Available on Animation, provided by the Animation$Typings extension

Gets or sets whether this Animation should be repeat, and how many times. The default is 1, which means the animation does not repeat.
getter/setter pair

Methods

add(Object obj, String effectName, [dynamic startValue, dynamic endValue, bool? cosmetic]) Animation

Available on Animation, provided by the Animation$Typings extension

Add an object (GraphObject or Diagram) and effect name, with specified start and end values, to this Animation.
addTemporaryPart(Part part, Diagram diagram) Animation

Available on Animation, provided by the Animation$Typings extension

Add a temporary Part to this animation. This part will be added to the Diagram when the animation is started, and removed from the Diagram when the animation completes. This is intended to be used with #add, to animate properties of this Part or its elements.
advanceTo(num duration, [bool? resume]) → void

Available on Animation, provided by the Animation$Typings extension

@expose (undocumented) Debug only.
getTemporaryState(Object obj) Object

Available on Animation, provided by the Animation$Typings extension

Gets the ObjectData associated with this GraphObject or Diagram. If no state exists, this creates and returns a new ObjectData.
start() Animation

Available on Animation, provided by the Animation$Typings extension

Start this animation.
stop() Animation

Available on Animation, provided by the Animation$Typings extension

Stops a running Animation and updates the animating objects to their final state.
suspend() → void

Available on Animation, provided by the Animation$Typings extension

@expose (undocumented) Debug only.