checkEnclosure

external fun checkEnclosure(element: SVGElement, rect: SVGRect): Boolean(source)

The checkEnclosure() method of the SVGSVGElement interface checks if the rendered content of the given element is entirely contained within the supplied rectangle.

MDN Reference