[ type ] Size

Description:

Represents the size of a 2D object. Used when setting or getting the size of UI component, Shape size, and more.

Type: Object

Properties:

Name Type Description

width

number

The width dimension.

height

number

The height dimension.

Examples:

Example of a Size object:

const size = {width: 300, height: 200};

Also See: