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

blockly > Toolbox > getClientRect

Toolbox.getClientRect() method

Returns the bounding rectangle of the drag target area in pixel units relative to viewport.

Signature:

getClientRect(): Rect | null;

Returns:

Rect | null

The component's bounding box. Null if drag target area should be ignored.