Stay organized with collections Save and categorize content based on your preferences.

blockly > IPositionable > getBoundingRectangle

IPositionable.getBoundingRectangle() method

Returns the bounding rectangle of the UI element in pixel units relative to the Blockly injection div.

Signature:

getBoundingRectangle(): Rect | null;

Returns:

Rect | null

The UI elements's bounding box. Null if bounding box should be ignored by other UI elements.