mySVGLocatable.getBBox() in SVG 1.1
Get the bounding box of the element.
- Return Type
- SVGRect
Description
The bounding box is the tightest fitting rectangle aligned with the axes of the applicable element's user coordinate system that entirely encloses the applicable element and its descendants.
The bounding box is computed exclusive of any values for clipping, masking, filter effects, opacity, stroke-width, or overflow visibility.
For curved shapes, the bounding box encloses all portions of the shape, not just end points. For text elements, for the purposes of the bounding box calculation, each glyph is treated as a separate graphics element. The calculations assume that all glyphs occupy the full glyph cell. For example, for horizontal text, the calculations assume that each glyph extends vertically to the full ascent and descent values for the font.