@antv/g-plugin-svg-picker

A G plugin for picking in SVG

Usage no npm install needed!

<script type="module">
  import antvGPluginSvgPicker from 'https://cdn.skypack.dev/@antv/g-plugin-svg-picker';
</script>

README

@antv/g-plugin-svg-picker

直接使用 elementFromPoint 获取 SVGElement。 找到后通过 id 查询 DisplayObject 返回。