Rect Object Type
Rect accepts numeric pixel values to describe how far to extend a rectangular area. These values are added to the original area's size to expand it.
Exampleโ
js
{
bottom: 20,
left: null,
right: undefined,
top: 50
}
Keys and valuesโ
bottomโ
| Type | Required |
|---|---|
number, null, undefined | No |
leftโ
| Type | Required |
|---|---|
number, null, undefined | No |
rightโ
| Type | Required |
|---|---|
number, null, undefined | No |
topโ
| Type | Required |
|---|---|
number, null, undefined | No |