Skip to main content

LineStyle

Represents the style options for a line.

Extends

Implements

Constructors

new LineStyle()

new LineStyle(style): LineStyle

Creates a new instance of LineStyle.

Parameters

style: Partial<ILineStyle> = {}

The partial style provided by the user.

Returns

LineStyle

Overrides

ShapeStyle.constructor

Defined in

styles/LineStyle.ts:34

Properties

color

color: string

The color of the line stroke.

Implementation of

ILineStyle.color

Defined in

styles/LineStyle.ts:13


cursor

cursor: Cursor

Specifies the cursor style for the shape.

Implementation of

ILineStyle.cursor

Inherited from

ShapeStyle.cursor

Defined in

styles/ShapeStyle.ts:12


hover?

optional hover: ILineBaseStyle

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

ILineStyle.hover

Inherited from

ShapeStyle.hover

Defined in

styles/ShapeStyle.ts:20


width

width: number

The width of the line stroke.

Implementation of

ILineStyle.width

Defined in

styles/LineStyle.ts:18


DefaultStyle

readonly static DefaultStyle: ILineStyle

Default style for the line.

Defined in

styles/LineStyle.ts:23