Animation$Typings extension

on

Properties

duration num
Gets or sets the duration for animations, in milliseconds.
getter/setter pair
easing EasingFunction
Gets or sets the easing function this Animation will use to modify default properties.
getter/setter pair
finished ↔ (void Function(Animation)?)
Gets or sets the function to execute when the user Animation finishes.
getter/setter pair
isAnimating bool
This read-only property is true when the Animation is currently running.
getter/setter pair
isViewportUnconstrained bool
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
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
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
Add an object (GraphObject or Diagram) and effect name, with specified start and end values, to this Animation.
addTemporaryPart(Part part, Diagram diagram) Animation
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
@expose (undocumented) Debug only.
getTemporaryState(Object obj) Object
Gets the ObjectData associated with this GraphObject or Diagram. If no state exists, this creates and returns a new ObjectData.
start() Animation
Start this animation.
stop() Animation
Stops a running Animation and updates the animating objects to their final state.
suspend() → void
@expose (undocumented) Debug only.