blockly > utils > Size

utils.Size class

Class for representing sizes consisting of a width and height.

Signature:

export declare class Size 

Constructors

Constructor Modifiers Description
(constructor)(width, height) Constructs a new instance of the Size class

Properties

Property Modifiers Type Description
height number
width number

Methods

Method Modifiers Description
equals(a, b) static Compares sizes for equality.