{"_id":"@antv/g-plugin-gesture@2.1.3","bugs":{"url":"https://github.com/antvis/g/issues"},"dist":{"shasum":"ba731e4708e551e415529f2d5f6289b0bf031e37","tarball":"http://registry-npm.ywwl.com/@antv/g-plugin-gesture/download/@antv/g-plugin-gesture-2.1.3.tgz","fileCount":17,"integrity":"sha512-aqtuuJxhsG2m4YJEV8Cxf+f1NNpRBJrmVxPCb1fKPF9o8zQu7sAA15a8FFQ4vRmoVUhZBfNRAfAWfthaKDq/sw==","signatures":[{"sig":"MEUCIQCH6OYnlHR06gcq9qMlWPOaLQ1NIvkZsq2Cs5lLJ1KSegIgW1Yqpxw6bEDOjIxAl8YNS19gegFgj2H66Toroxbw7xM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHjVGtTzI48Y82C/Y+Ejc64sQXvYGDxUn3tFHsdcU+t1AiEAljgESl8m3vMl5b+sy2fyNz6EQGlhQI1C/iadxLDwfnk="}],"unpackedSize":161987,"size":41559,"noattachment":false,"key":"/@antv/g-plugin-gesture/-/@antv/g-plugin-gesture-2.1.3.tgz"},"main":"dist/index.js","name":"@antv/g-plugin-gesture","_from":"file:antv-g-plugin-gesture-2.1.3.tgz","types":"types/index.d.ts","unpkg":"dist/index.umd.min.js","author":{"name":"https://github.com/orgs/antvis/people"},"module":"dist/index.esm.js","exports":{"types":"./types/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.js"},"license":"MIT","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"},"version":"2.1.3","_npmUser":{"name":"wang1212","email":"mrwang1212@126.com"},"homepage":"https://github.com/antvis/g#readme","keywords":["antv","g"],"_resolved":"/tmp/1e9c8e65d0b2bb8bbffc52f5cc47bc67/antv-g-plugin-gesture-2.1.3.tgz","_integrity":"sha512-aqtuuJxhsG2m4YJEV8Cxf+f1NNpRBJrmVxPCb1fKPF9o8zQu7sAA15a8FFQ4vRmoVUhZBfNRAfAWfthaKDq/sw==","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":{},"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"}],"_nodeVersion":"20.20.2","dependencies":{"tslib":"^2.5.3","@antv/g-lite":"2.7.2","@babel/runtime":"^7.25.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/g-plugin-gesture_2.1.3_1792118379071_0.7455706277373222"},"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":1792118379151,"_cnpm_publish_time":1792118379151,"dist-tags":{"alpha":"2.0.11-alpha.0","beta":"2.0.39-beta.0","latest":"2.1.3","next":"2.0.10"}}