Skip to main content

CanvasStyle

Class representing the style of a canvas.

Implements​

Constructors​

new CanvasStyle()​

new CanvasStyle(style): CanvasStyle

Creates a new instance of CanvasStyle.

Parameters​

• style: Partial<ICanvasStyle> = {}

The partial style provided by the user.

Returns​

CanvasStyle

Defined in​

styles/CanvasStyle.ts:32

Properties​

color​

color: string

Default color for canvas shapes.

Implementation of​

ICanvasStyle.color

Defined in​

styles/CanvasStyle.ts:12


cursor​

cursor: CanvasCursorStyle

Cursor style configuration for different canvas interaction states.

Implementation of​

ICanvasStyle.cursor

Defined in​

styles/CanvasStyle.ts:17


DefaultStyle​

readonly static DefaultStyle: ICanvasStyle

Default style for the canvas.

Defined in​

styles/CanvasStyle.ts:22