主题
Rect 继承自: PathElement
Adds a rectangle as a new sub-path.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
x | float | required | The x-axis coordinate of the top-left of the rectangle. |
y | float | required | The y-axis coordinate of the top-left of the rectangle. |
width | float | required | Width of the rectangle. |
height | float | required | Height of the rectangle. |
border_radius | BorderRadiusValue | 0 | Optional border radius to round rectangle corners. |