svg_crop icon indicating copy to clipboard operation
svg_crop copied to clipboard

SVG needs to be ON the dom

Open Sparticuz opened this issue 1 year ago • 0 comments

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.

Sparticuz avatar Oct 19 '22 16:10 Sparticuz