blockly > utils > Size
utils.Size class
Class for representing sizes consisting of a width and height.
Signature:
export declare class Size
Constructors
Properties
Property |
Modifiers |
Type |
Description |
height |
|
number |
|
width |
|
number |
|
Methods
Method |
Modifiers |
Description |
equals(a, b) |
static |
Compares sizes for equality. |
max(a, b) |
static |
Returns a new size with the maximum width and height values out of both sizes. |
min(a, b) |
static |
Returns a new size with the minimum width and height values out of both sizes. |