documentationfor yFiles for HTML 2.6

IAnimation

An interface for animations that can be run by Animator.

Inheritance Hierarchy

Remarks

Instances of classes implementing this interface change their state according to a relative animation time. The animation time is a double between 0 for the start of the animation and 1 for the end of the animation.
  • An animated object is first created using the constructor of a subclass.
  • Immediately before the animation a client calls initialize.
  • To change the state of the animated object a client does a series of calls to animate, usually with an increasing relative time parameter.
  • If the animation is done, the client calls cleanUp once.
  • While animate uses a relative time scheme, there might be an absolute time value for the preferred duration of the whole sequence of animation steps. Since an IAnimation instance has no control on the number of animate calls or the intervals between them, the preferred duration is only a hint on how long the animation should take. Clients can ask for that hint using preferredDuration and try to find a suitable sequence of animate calls in order to fulfill the preference.

Type Details

yfiles module
view-component
yfiles-umd modules
All view modules
Legacy UMD name
yfiles.view.IAnimation

See Also

Properties

Methods

Static Methods