I want to get the getBBox() for svg path in jquery. i tried like this
$(\"#\"+ path id)[0].getBBox() -> returns x=0,y=0,width=0,height=0
Try Element.getBoundingClientRect(). It's from the html DOM, but works for me on SVG elements (without much transformation).