RectangleBounds

6 Jul 20261 minute to read

The RectangleBounds module is used to provide the properties of rectangle bounds.

Properties

bottom number

specifies the bottom value of the rectangle.

height number

specifies the height of the rectangle.

Defaults to 0

isEmpty boolean

Returns true if height and width of the rectangle is zero.

Defaults to ‘false’

left number

specifies the left value of the rectangle.

Defaults to 0

specifies the right of the rectangle.

Defaults to 0

size number

specifies the size of the rectangle.

Defaults to 0

top number

specifies the top value of the rectangle.

Defaults to 0

width number

specifies the width of the rectangle.

Defaults to 0

x number

specifies the x co-ordinate of the upper-left corner of the rectangle.

Defaults to 0

y number

specifies the y co-ordinate of the upper-left corner of the rectangle.

Defaults to 0