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:
Object with coordinates of the bounding box.