svg-click-handler
v1.0.0
Published
A lightweight library to handle click events on embedded SVGs inside <object> elements.
Maintainers
Readme
svgclickhandler
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.
Installation
Install via NPM:
npm install svgclickhandler