blockly > BlockSvg > getBoundingRectangle
BlockSvg.getBoundingRectangle() method
Returns the coordinates of a bounding box describing the dimensions of this block and any blocks stacked below it. Coordinate system: workspace coordinates.
Signature:
getBoundingRectangle(): Rect;
Returns:
Rect
Object with coordinates of the bounding box.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `getBoundingRectangle()` method calculates the coordinates of a bounding box encompassing the block and any connected blocks below it."],["It returns a `Rect` object, providing the bounding box's coordinates in workspace units."]]],[]]