Socket
Book a DemoInstallSign in
Socket

@antv/g-plugin-gesture

Package Overview
Dependencies
Maintainers
70
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antv/g-plugin-gesture

A G plugin for Gesture implemented with PointerEvents

2.0.38
latest
Source
npmnpm
Version published
Weekly downloads
810
97.08%
Maintainers
70
Weekly downloads
 
Created
Source

@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);
});

Keywords

antv

FAQs

Package last updated on 30 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.