Skip to main content

blockly > ZoomControls > position

ZoomControls.position() method

Positions the zoom controls. 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