Skip to content

Rect 继承自: PathElement

Adds a rectangle as a new sub-path.

属性 ​

名称类型默认值说明
xfloatrequiredThe x-axis coordinate of the top-left of the rectangle.
yfloatrequiredThe y-axis coordinate of the top-left of the rectangle.
widthfloatrequiredWidth of the rectangle.
heightfloatrequiredHeight of the rectangle.
border_radiusBorderRadiusValue0Optional border radius to round rectangle corners.

关注我,学习大模型、大数据、Python等热门技术。