RectangleStyle
Represents the style options for a rectangle.
Extends
Implements
Constructors
new RectangleStyle()
new RectangleStyle(
style
):RectangleStyle
Creates a new instance of RectangleStyle.
Parameters
• style: Partial
<IRectangleStyle
> = {}
The partial style provided by the user.
Returns
Overrides
Defined in
Properties
borderColor
borderColor:
string
The color of the border.
Implementation of
Defined in
borderWidth
borderWidth:
number
The width of the border in pixels.
Implementation of
Defined in
color
color:
string
The fill color of the rectangle.
Implementation of
Defined in
cursor
cursor:
Cursor
Specifies the cursor style for the shape.
Implementation of
Inherited from
Defined in
hover?
optional
hover:IRectangleBaseStyle
Hover style for the shape.
When the shape is in the hover state, the properties defined in this style override the default style properties.
Implementation of
Inherited from
Defined in
DefaultStyle
readonly
static
DefaultStyle:IRectangleStyle
Default style for the rectangle.