g-plugin-svg-picker
Previous
g-plugin-svg-renderer
Next
g-plugin-dom-interaction
Loading...
Provides SVG-based pickup capability.
The g-svg renderer is built in by default, so there is no need to introduce it manually.
import { Renderer as SvgRenderer } from '@antv/g-svg';// Create a renderer with the plugin built inconst svgRenderer = new SvgRenderer();
Get SVGElement
directly using elementFromPoint. Find it and query DisplayObject
by id
to return it.