You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 27, 2025. It is now read-only.
I have been using this lib with SVGElements and it works great, but I always need to cast the element to any because constructor takes in HTMLElement.
Bonus feature: Also perform getScreenCTM inverse calculation when SVG, to create clientX, clientY in SVG viewport's coordinate system. When using scaled SVGs, I often do the following:
I have been using this lib with SVGElements and it works great, but I always need to cast the element to
anybecause constructor takes in HTMLElement.Bonus feature: Also perform
getScreenCTMinverse calculation when SVG, to create clientX, clientY in SVG viewport's coordinate system. When using scaled SVGs, I often do the following: