Skip to main content

Home > blockly > utils > Rect > (constructor)

utils.Rect.(constructor)

Constructs a new instance of the Rect class

Signature:

constructor(top: number, bottom: number, left: number, right: number);

Parameters

ParameterTypeDescription
topnumberTop.
bottomnumberBottom.
leftnumberLeft.
rightnumberRight.