blockly > IPositionable

IPositionable interface

Interface for a component that is positioned on top of the workspace.

Signature:

export interface IPositionable extends IComponent 

Extends: IComponent

Methods

Method Description
getBoundingRectangle() Returns the bounding rectangle of the UI element in pixel units relative to the Blockly injection div.
position(metrics, savedPositions) Positions the element. Called when the window is resized.