blockly > WorkspaceSvg > getBlocksBoundingBox
WorkspaceSvg.getBlocksBoundingBox() method
Calculate the bounding box for the blocks on the workspace. Coordinate system: workspace coordinates.
Signature:
getBlocksBoundingBox(): Rect;
Returns:
Contains the position and size of the bounding box containing the blocks on the workspace.