VSeed, an elegant data composer, transforming complexity into simplicity.
!!!###!!!title=animation——VisActor/VGrammar tutorial documents!!!###!!!!!!###!!!description=In VGrammar, animation (animation effects) is a form of expression that can make the visualization scene more vivid and help users better understand the changes in data. VGrammar supports defining the animation effects of graphic elements by using a configuration method. VGrammar supports two types of animations:- Graphic element animation- Global deformation animation!!!###!!!
Animation
In VGrammar, animation (animation effects) is a form of expression that can make the visualization scene more vivid and help users better understand the changes in data. VGrammar supports defining the animation effects of graphic elements by using a configuration method. VGrammar supports two types of animations:
Graphic element animation
Global deformation animation
Graphic Element Animation
To configure a graphic element animation in VGrammar, we need to use a series of predefined configuration parameters. The animation of the graphic element is mainly set through two configurations:
animationState: Which animation states the graphics element needs to enable
animation: The specific animation configurations for various states
Below, we will introduce these configuration parameters one by one.
This parameter can be used to set the states that need to be animated. Three data change states are supported by default: enter, update, exit. Users can also set animationState as the corresponding signal to control whether the animation is triggered or not.
animation
animation is used to set the type, duration, easing function, and other specific configurations of the animation for this graphics element in different states;
By passing a custom animation class through custom, we can execute a custom visual channel interpolation logic. It can be configured with type animation or channel animation for joint use or can be used independently, as the custom visual channel interpolation logic specified by custom has the highest priority.