blockly > DragTarget > getClientRect

DragTarget.getClientRect() method

Returns the bounding rectangle of the drag target area in pixel units relative to the Blockly injection div.

Signature:

getClientRect(): Rect | null;

Returns:

Rect | null

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