Skip to main content
Version: Version 5

Class: Size

Represents the dimensions of an object in terms of width and height.

Implements

Constructors

Constructor

new Size(width?, height?): Size

Creates a new Size instance with the specified width and height.

Parameters

width?

number

The width of the object.

height?

number

The height of the object.

Returns

Size

Properties

height

height: number

The height of the object.


width

width: number

The width of the object.

Methods

clone()

clone(): Size

Creates a deep copy of the object.

Returns

Size

A new instance that is a deep copy of the original object.

Implementation of

Cloneable.clone