Rect 对象类型
Rect 接受数字像素值来描述矩形区域延伸多远。这些值将添加到原始区域的大小中以将其扩展。
¥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
| 类型 | 必需的 |
|---|---|
编号,null,undefined | 不 |
left
| 类型 | 必需的 |
|---|---|
编号,null,undefined | 不 |
right
| 类型 | 必需的 |
|---|---|
编号,null,undefined | 不 |
top
| 类型 | 必需的 |
|---|---|
编号,null,undefined | 不 |
使用者
¥Used by