2.0.35 • Published 6 months ago

@antv/g-plugin-gesture v2.0.35

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@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.28

10 months ago

2.0.29

10 months ago

2.0.35

6 months ago

2.0.33

6 months ago

2.0.34

6 months ago

2.0.31

9 months ago

2.0.32

9 months ago

2.0.30

10 months ago

2.0.16

12 months ago

2.0.19

11 months ago

2.0.17

12 months ago

2.0.18

12 months ago

2.0.26

10 months ago

2.0.27

10 months ago

2.0.24

11 months ago

2.0.25

11 months ago

2.0.22

11 months ago

2.0.23

11 months ago

2.0.20

11 months ago

2.0.21

11 months ago

2.0.15

12 months ago

2.0.14

12 months ago

2.0.13

12 months ago

2.0.12

12 months ago

2.0.11

12 months ago

2.0.11-alpha.0

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.5

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.8

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.12

2 years ago

1.2.11

2 years ago

1.2.10-next.19

2 years ago

1.2.10-next.18

2 years ago

1.2.10-next.20

2 years ago

1.2.10-next.17

2 years ago

1.2.10-next.16

2 years ago

1.2.10-next.15

2 years ago

1.2.10-next.14

2 years ago

1.2.10-next.13

2 years ago

1.2.10

2 years ago

1.2.10-next.12

2 years ago

1.2.10-next.11

2 years ago

1.2.10-next.10

2 years ago

1.2.10-next.9

2 years ago

1.2.10-next.8

2 years ago

1.2.10-next.7

2 years ago

1.2.10-next.6

2 years ago

1.2.10-next.2

2 years ago

1.2.10-next.3

2 years ago

1.2.10-next.4

2 years ago

1.2.10-next.1

2 years ago

1.2.10-next.0

2 years ago

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago