Skip to main content

Home > blockly > utils > Size

utils.Size class

Class for representing sizes consisting of a width and height.

Signature:

export declare class Size 

Constructors

ConstructorModifiersDescription
(constructor)(width, height)Constructs a new instance of the Size class

Properties

PropertyModifiersTypeDescription
heightnumber
widthnumber

Methods

MethodModifiersDescription
equals(a, b)staticCompares sizes for equality.
max(a, b)staticReturns a new size with the maximum width and height values out of both sizes.
min(a, b)staticReturns a new size with the minimum width and height values out of both sizes.