getBBox

open external fun getBBox(options: SVGBoundingBoxOptions = definedExternally): SVGRect(source)

The getBBox() method of the SVGGraphicsElement interface returns the smallest rectangle that contains the element. The rectangle is measured in the user coordinate system of the element, with the geometry attributes of the element and its descendants applied.

MDN Reference