Skip to main content

IRectangleStyle

Represents the style options for a rectangle including the states.

Extends

Properties

active?

optional active: IShapeBaseStyle

Active style for the shape.

When the shape is in the active state, the properties defined in this style override the default style properties.

Inherited from

IShapeStyle.active

Defined in

styles/interfaces/IShapeStyle.ts:27


borderColor?

optional borderColor: string

The color of the border.

Inherited from

IRectangleBaseStyle.borderColor

Defined in

styles/interfaces/IRectangleBaseStyle.ts:10


borderWidth?

optional borderWidth: number

The width of the border in pixels.

Inherited from

IRectangleBaseStyle.borderWidth

Defined in

styles/interfaces/IRectangleBaseStyle.ts:15


color?

optional color: string

The fill color of the rectangle.

Inherited from

IRectangleBaseStyle.color

Defined in

styles/interfaces/IRectangleBaseStyle.ts:20


cursor?

optional cursor: Cursor

Specifies the cursor style for the shape.

Inherited from

IShapeStyle.cursor

Defined in

styles/interfaces/IShapeStyle.ts:11


hover?

optional hover: IShapeBaseStyle

Hover style for the shape.

When the shape is in the hover state, the properties defined in this style override the default style properties.

Inherited from

IShapeStyle.hover

Defined in

styles/interfaces/IShapeStyle.ts:19