Interaction
F2 provides an interaction mechanism to achieve the encapsulation and reuse of common interaction behavior. Based on this mechanism, we provide the following four common interactions:
Interaction
Demo
Selection for pie chart
Selection for bar chart
Pan
Pinch
For developers, they can encapsulate their own interaction behavior based on this mechanism. For details, see the Custom Interaction Behavior(todo).
Usage
For better package size, interaction mode is not packaged by default into @antv/f2. So we should require it.
The touch gestures for interactions all base on Hammer.js.
call interaction
clear interaction
Last updated