Skip to main content

Home > 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

ParameterTypeDescription
metricsUiMetricsThe workspace metrics.
savedPositionsRect[]List of rectangles that are already on the workspace.

Returns:

void