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
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:
The text was updated successfully, but these errors were encountered:
pshihn
changed the title
Update types to accept SVGGElement | HTMLElement in the constructor
Update types to accept SVGElement | HTMLElement in the constructor
Dec 7, 2019
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:The text was updated successfully, but these errors were encountered: