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. |
| 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. |