Created by: ansman
This will use getBoundingClientRect
instead of offsetWidth
/offsetHeight
because it works with SVG elements instead.
Created by: ansman
This will use getBoundingClientRect
instead of offsetWidth
/offsetHeight
because it works with SVG elements instead.