svg_crop
svg_crop copied to clipboard
SVG needs to be ON the dom
Anyone who is here in the future, here is two days of my life....
In order for getBoundlingClientRect()
to work, the svg object needs to be on the DOM, otherwise, everything returned is 0
. I hope this helps someone.