Interface: IPositionable

Properties

getBoundingRectangle

Returns the bounding rectangle of the UI element in pixel units relative to the Blockly injection div.

Returns

nullable Blockly.utils.Rect The UI elements’s bounding box. Null if bounding box should be ignored by other UI elements.

position

Positions the element. Called when the window is resized.

Parameter

metrics

Blockly.MetricsManager.UiMetrics

The workspace metrics.

Value must not be null.

savedPositions

Array of non-null Blockly.utils.Rect

List of rectangles that are already on the workspace.

Value must not be null.