Encapsulates the values that specify how the visualization of an indicator should be transitioned when entering or leaving the visualization.
Remarks
This class is immutable and provides read-only access to the properties specified in the constructor, only. The class is modelled loosely after the set of CSS transition properties. However, it only offers a limited set of properties, a duration, and an easing function. Transition timing is a single animation cycle with a given duration. An easing function determines how progress is made during the transition.
In most parts of the API, you can depend on automatic conversion and use CSS-like strings where an instance of this class would be required, otherwise.
Type Details
- yfiles module
- view-webgl
- yfiles-umd modules
- view-webgl, view
- Legacy UMD name
- yfiles.view.WebGL2Transition
Constructors
WebGL2Transition
(properties?: WebGL2TransitionProperties, duration?: TimeSpan, easing?: WebGL2AnimationEasing)Creates a new immutable instance with the provided values.
Parameters
A map of options to pass to the method.
- properties - WebGL2TransitionProperties
- The properties to transition. Defaults to SCALE.
- duration - TimeSpan
- The duration of the transition. Defaults to 0.3 seconds.
- easing - WebGL2AnimationEasing
- The easing to apply. Defaults to LINEAR
Properties
Gets the duration of a the transition.
Gets the easing function to apply for the transition.
Gets the set of properties to transition.
Constants
A transition that has a zero duration.