blockly > Trashcan > position

Trashcan.position() method

Positions the trashcan. It is positioned in the opposite corner to the corner the categories/toolbox starts at.

Signature:

position(metrics: UiMetrics, savedPositions: Rect[]): void;

Parameters

Parameter Type Description
metrics UiMetrics The workspace metrics.
savedPositions Rect[] List of rectangles that are already on the workspace.

Returns:

void