Type
DrawRectOpt
: RenderProps & {width
: numberWidth of the rectangle.
height
: numberHeight of the rectangle.
gradient
?: [Color, Color]Use gradient instead of solid color.
since
v3000.0
horizontal
?: booleanIf the gradient should be horizontal.
since
v3000.0
fill
?: booleanIf fill the shape with color (set this to false if you only want an outline).
radius
?: number | number[]The radius of each corner.
anchor
?: Anchor | Vec2The anchor point, or the pivot point. Default to "topleft".
How the rectangle should look like.