Skip to main content

blockly > IPositionable > position

IPositionable.position() method

Positions the element. Called when the window is resized.

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