Defines types of fading animations for use with the createFadeAnimation method.
Type Details
- yFiles module
- view
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 given argument to an enum constant of this enum type.
Remarks
Most notably, this method can convert an enum constant's name into the enum constant itself.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - WebGLFadeAnimationType
- The value to convert to an enum constant.
Returns
- ↪WebGLFadeAnimationType
- The enum constant that corresponds to the given argument.
Returns the name of the given enum constant.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- value - WebGLFadeAnimationType
- The numeric value of an enum constant.
Returns
- ↪string
- The name of the enum constant.
Throws
- Exception({ name: 'Error' })
- If this type is a flags enums, and the provided value doesn't correspond to a single enum constant, or if this enum type contains no constant of the given numeric value.