Defines types of fading animations for use with the createFadeAnimation method.
Type Details
- yfiles module
- view-webgl
- yfiles-umd modules
- view-webgl, view
- Legacy UMD name
- yfiles.view.WebGL2FadeAnimationType
Constants
Fading from a specifically colored version of the visualization.
Remarks
The color shading is specified by the color1 and color2 parameters of createFadeAnimation. Color1 is used for the white regions and color2 for the black regions in a grayscale representation of a graph item. Gray values in between are interpolated between the two colors. If only one color is specified, or the two colors are identical, the item will fade from this color.
Fading in from a transparent or semi-transparent visualization.
Remarks
The semi-transparency can be specified by the color1 parameter of createFadeAnimation. The alpha values of the colors used for the fading from semi-transparent animation are interpolated between the one of the current color and the one of color1. Note that, only the alpha value of color1 is taken into consideration for the fading from semi-transparent.
Fading out to a transparent or semi-transparent visualization.
Remarks
The semi-transparency can be specified by the color1 parameter of createFadeAnimation. The alpha values of the colors used for the fading to semi-transparent animation are interpolated between the one of the current color and the one of color1. Note that, only the alpha value of color1 is taken into consideration for the fading to semi-transparent.
Fading to a specifically colored version of the visualization.
Remarks
The color shading is specified by the color1 and color2 parameters of createFadeAnimation. Color1 is used for the white regions and color2 for the black regions in a grayscale representation of a graph item. Gray values in between are interpolated between the two colors. If only one color is specified, or the two colors are identical, the item will fade to this color.
Static Methods
Converts the argument to WebGL2FadeAnimationType.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - WebGL2FadeAnimationType
- The value to convert to WebGL2FadeAnimationType.
Returns
- ↪WebGL2FadeAnimationType
- Either
value
if it is already a WebGL2FadeAnimationType or an appropriate converted value.