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β
{
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 |
Used byβ
Is this page useful?