RectangleBounds
12 Sep 20251 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.
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.
right number
specifies the right of the rectangle.
size number
specifies the size of the rectangle.
top number
specifies the top value of the rectangle.
width number
specifies the width of the rectangle.
x number
specifies the x co-ordinate of the upper-left corner of the rectangle.
y number
specifies the y co-ordinate of the upper-left corner of the rectangle.