2.0.3 • Published 4 days ago
@antv/g-plugin-gesture v2.0.3
@antv/g-plugin-gesture
Getting Started
Create and register plugin in renderer.
import { Renderer } from '@antv/g-canvas';
import { Plugin } from '@antv/g-plugin-gesture';
const plugin = new Plugin();
const renderer = new Renderer();
renderer.registerPlugin(plugin);
Enable gesture with gestureEnabled
in style.
const circle = new Circle({
style: {
cx: 200,
cy: 200,
r: 100,
fill: 'blue',
gestureEnabled: true,
},
});
Then we can listen gesture event such as press
on plugin:
canvas.addEventListener('press', (e) => {
console.log(e.target);
});
2.0.3
4 days ago
2.0.2
16 days ago
2.0.1
1 month ago
2.0.0
2 months ago
1.2.12
2 months ago
1.2.11
2 months ago
1.2.10-next.19
2 months ago
1.2.10-next.18
2 months ago
1.2.10-next.20
2 months ago
1.2.10-next.17
2 months ago
1.2.10-next.16
2 months ago
1.2.10-next.15
2 months ago
1.2.10-next.14
2 months ago
1.2.10-next.13
3 months ago
1.2.10
3 months ago
1.2.10-next.12
3 months ago
1.2.10-next.11
3 months ago
1.2.10-next.10
3 months ago
1.2.10-next.9
3 months ago
1.2.10-next.8
3 months ago
1.2.10-next.7
4 months ago
1.2.10-next.6
4 months ago
1.2.10-next.2
4 months ago
1.2.10-next.3
4 months ago
1.2.10-next.4
4 months ago
1.2.10-next.1
4 months ago
1.2.10-next.0
4 months ago
1.2.9
4 months ago
1.2.8
5 months ago
1.2.7
6 months ago
1.2.6
6 months ago
1.2.5
6 months ago
1.2.4
6 months ago
1.2.3
7 months ago
1.2.2
7 months ago
1.2.1
8 months ago
1.2.0
8 months ago
1.1.2
8 months ago
1.1.1
9 months ago
1.1.0
9 months ago