Size
Class
Represents the width and height of an entity.
Definition
Package:@progress/kendo-drawing
Methods
Creates a new instance with the same width and height.
Returns:
- A new Size instance with the same dimensions.
Creates a Size instance with the specified parameters.
Parameters:widthnumber
The width value.
heightnumberThe height value.
Returns:- The new Size instance.
Compares this Size with another instance.
Parameters:otherSize
The Size to compare with.
Returns:boolean
true if the size members match. Otherwise, returns false.
Gets the height value.
Returns:
number
- The current height value.
Gets the width value.
Returns:
number
- The current width value.
Sets the height to a new value.