{"name":"@antv/g-plugin-gesture","version":"2.1.2","keywords":["antv","g"],"author":{"name":"https://github.com/orgs/antvis/people"},"license":"MIT","_id":"@antv/g-plugin-gesture@2.1.2","maintainers":[{"name":"lvisei","email":"yunji.me@outlook.com"},{"name":"iaaron","email":"943720372@qq.com"},{"name":"jinke.li","email":"jinke.li666@gmail.com"},{"name":"lzxue","email":"120635640@qq.com"},{"name":"army8735","email":"army8735@qq.com"},{"name":"dengfuping","email":"dengfuping_private@163.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"chenluli","email":"chenluuli@gmail.com"},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"bbsqq","email":"1491812683@qq.com"},{"name":"banxuan","email":"zhuyuxin0627@gmail.com"},{"name":"yanxiong","email":"ojh496845051@gmail.com"},{"name":"atool","email":"wzwahl36@qq.com"},{"name":"pearl_wang","email":"610999886@qq.com"},{"name":"interstellarmt","email":"787982239@qq.com"},{"name":"alex_zjt","email":"alex_zjt@163.com"},{"name":"duxinyue023","email":"duxinyue.dxy@antgroup.com"},{"name":"wang1212","email":"mrwang1212@126.com"},{"name":"gaofuhong","email":"gaofh1023@163.com"}],"homepage":"https://github.com/antvis/g#readme","bugs":{"url":"https://github.com/antvis/g/issues"},"dist":{"shasum":"e51caef538789ecd65ea05bd926a4b152c9bea1a","tarball":"http://registry-npm.ywwl.com/@antv/g-plugin-gesture/download/@antv/g-plugin-gesture-2.1.2.tgz","fileCount":17,"integrity":"sha512-y1bWyrqNyCjpL5ub4n/szvSCUV2L+5QdXg7kTvEe4Iz432EqzV38HZwW6QeRC8Pn6iKLmspd3tBBqDFh+KTXoA==","signatures":[{"sig":"MEYCIQCce3/SbKNbjvwK7HJ+H/A7IN6sUan4nC7yiJPMJtZRtgIhALfp2wE7sJkGiF3Hok8BhiMefNxxfQ6NIc/wnMokdMsr","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCICXjM6xV7RVB6RX5rcN9q8cxhZldQMxwJ/0LXzgvsVqvAiBYtmgnOyATptGAKnPq41SbwF13c1X/WKE655fD00p5wg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":161987,"size":41559,"noattachment":false,"key":"/@antv/g-plugin-gesture/-/@antv/g-plugin-gesture-2.1.2.tgz"},"main":"dist/index.js","_from":"file:antv-g-plugin-gesture-2.1.2.tgz","types":"types/index.d.ts","unpkg":"dist/index.umd.min.js","module":"dist/index.esm.js","exports":{"types":"./types/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.js"},"scripts":{"sync":"tnpm sync","build":"npm run build:js && npm run build:types","watch":"rollup -c -w","build:js":"rimraf dist && rollup -c","build:types":"rimraf types && tsc --emitDeclarationOnly --noCheck"},"_npmUser":{"name":"wang1212","email":"mrwang1212@126.com"},"_resolved":"/tmp/811b5634799f8ae1c781821cbf04ac95/antv-g-plugin-gesture-2.1.2.tgz","_integrity":"sha512-y1bWyrqNyCjpL5ub4n/szvSCUV2L+5QdXg7kTvEe4Iz432EqzV38HZwW6QeRC8Pn6iKLmspd3tBBqDFh+KTXoA==","repository":{"url":"git+https://github.com/antvis/g.git","type":"git"},"_npmVersion":"10.8.2","description":"A G plugin for Gesture implemented with PointerEvents","directories":{},"_nodeVersion":"20.20.2","dependencies":{"tslib":"^2.5.3","@antv/g-lite":"2.7.1","@babel/runtime":"^7.25.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/g-plugin-gesture_2.1.2_1791625840511_0.7862567448684845","host":"s3://npm-registry-packages-npm-production"},"readme":"# @antv/g-plugin-gesture\n\n## Getting Started\n\nCreate and register plugin in renderer.\n\n```js\nimport { Renderer } from '@antv/g-canvas';\nimport { Plugin } from '@antv/g-plugin-gesture';\n\nconst plugin = new Plugin();\nconst renderer = new Renderer();\nrenderer.registerPlugin(plugin);\n```\n\nEnable gesture with `gestureEnabled` in style.\n\n```js\nconst circle = new Circle({\n    style: {\n        cx: 200,\n        cy: 200,\n        r: 100,\n        fill: 'blue',\n        gestureEnabled: true,\n    },\n});\n```\n\nThen we can listen gesture event such as `press` on plugin:\n\n```js\ncanvas.addEventListener('press', (e) => {\n    console.log(e.target);\n});\n```\n","publish_time":1791625840591,"_cnpm_publish_time":1791625840591,"dist-tags":{"alpha":"2.0.11-alpha.0","beta":"2.0.39-beta.0","latest":"2.1.3","next":"2.0.10"}}