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
Defined in
Properties
color
color:
string
Default color for canvas shapes.
Implementation of
Defined in
cursor
cursor:
CanvasCursorStyle
Cursor style configuration for different canvas interaction states.
Implementation of
Defined in
DefaultStyle
readonly
static
DefaultStyle:ICanvasStyle
Default style for the canvas.