Skip to main content

Home > blockly > ZoomControls

ZoomControls class

Class for a zoom controls.

Signature:

export declare class ZoomControls implements IPositionable 

Implements: IPositionable

Constructors

ConstructorModifiersDescription
(constructor)(workspace)Constructs a new instance of the ZoomControls class

Properties

PropertyModifiersTypeDescription
idstringThe unique ID for this component that is used to register with the ComponentManager.

Methods

MethodModifiersDescription
createDom()Create the zoom controls.
dispose()Disposes of this zoom controls. Unlink from all DOM elements to prevent memory leaks.
getBoundingRectangle()Returns the bounding rectangle of the UI element in pixel units relative to the Blockly injection div.
init()Initializes the zoom controls.
position(metrics, savedPositions)Positions the zoom controls. It is positioned in the opposite corner to the corner the categories/toolbox starts at.