Skip to main content

ShapeStyle

Represents the style for a shape, including optional state-specific styles.

Extended by

Type Parameters

TStyle extends IShapeBaseStyle

Implements

Constructors

new ShapeStyle()

new ShapeStyle<TStyle>(): ShapeStyle<TStyle>

Returns

ShapeStyle<TStyle>

Properties

active?

optional active: TStyle

Active style for the shape.

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

Implementation of

IShapeStyle.active

Defined in

styles/ShapeStyle.ts:28


cursor

cursor: Cursor

Specifies the cursor style for the shape.

Implementation of

IShapeStyle.cursor

Defined in

styles/ShapeStyle.ts:12


hover?

optional hover: TStyle

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

IShapeStyle.hover

Defined in

styles/ShapeStyle.ts:20