Skip to main content

CanvasCursorStyle

Represents the cursor style configuration for a canvas, defining how the cursor appears in different states such as default and pan (dragging) mode.

Implements

Constructors

new CanvasCursorStyle()

new CanvasCursorStyle(style): CanvasCursorStyle

Creates a new instance of CanvasCursorStyle.

Parameters

style: Partial<ICanvasCursorStyle> = {}

The partial style provided by the user.

Returns

CanvasCursorStyle

Defined in

styles/CanvasCursorStyle.ts:32

Properties

default

default: Cursor

Cursor style in the default state.

Implementation of

ICanvasCursorStyle.default

Defined in

styles/CanvasCursorStyle.ts:12


panActive

panActive: Cursor

Cursor style when panning is active on the canvas.

Implementation of

ICanvasCursorStyle.panActive

Defined in

styles/CanvasCursorStyle.ts:17


DefaultStyle

readonly static DefaultStyle: ICanvasCursorStyle

Default style for the canvas cursors.

Defined in

styles/CanvasCursorStyle.ts:22