svgclickhandler
is a lightweight JavaScript library that makes it easy to handle click events on SVG elements embedded inside <object>
tags. It extracts the xlink:href
of clickable elements (e.g., <a>
tags) and invokes a custom callback with the result.
Install via NPM:
npm install svgclickhandler