Skip to main content

CircleStyle

Represents the style options for a circle.

Extends

Implements

Constructors

new CircleStyle()

new CircleStyle(style): CircleStyle

Creates a new instance of CircleStyle.

Parameters

style: Partial<ICircleStyle> = {}

The partial style provided by the user.

Returns

CircleStyle

Overrides

ShapeStyle.constructor

Defined in

styles/CircleStyle.ts:40

Properties

active?

optional active: ICircleBaseStyle

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

ICircleStyle.active

Inherited from

ShapeStyle.active

Defined in

styles/ShapeStyle.ts:28


borderColor

borderColor: string

The color of the border.

Implementation of

ICircleStyle.borderColor

Defined in

styles/CircleStyle.ts:13


borderWidth

borderWidth: number

The width of the border in pixels.

Implementation of

ICircleStyle.borderWidth

Defined in

styles/CircleStyle.ts:18


color

color: string

The fill color of the circle.

Implementation of

ICircleStyle.color

Defined in

styles/CircleStyle.ts:23


cursor

cursor: Cursor

Specifies the cursor style for the shape.

Implementation of

ICircleStyle.cursor

Inherited from

ShapeStyle.cursor

Defined in

styles/ShapeStyle.ts:12


hover?

optional hover: ICircleBaseStyle

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

ICircleStyle.hover

Inherited from

ShapeStyle.hover

Defined in

styles/ShapeStyle.ts:20


DefaultStyle

readonly static DefaultStyle: ICircleStyle

Default style for the circle.

Defined in

styles/CircleStyle.ts:28