@avolutions/canvas-painter
Version:
CanvasPainter.js is a simple yet powerful JavaScript library for drawing basic shapes (rectangles, circles, etc.) on HTML5 Canvas with ease. Perfect for creating 2D graphics in your web projects.
26 lines (25 loc) • 712 B
TypeScript
import { CanvasCursorStyle } from "./CanvasCursorStyle.js";
import { ICanvasStyle } from "./interfaces/ICanvasStyle.js";
/**
* Class representing the style of a canvas.
*/
export declare class CanvasStyle implements ICanvasStyle {
/**
* Default color for canvas shapes.
*/
color: string;
/**
* Cursor style configuration for different canvas interaction states.
*/
cursor: CanvasCursorStyle;
/**
* Default style for the canvas.
*/
static readonly DefaultStyle: ICanvasStyle;
/**
* Creates a new instance of CanvasStyle.
*
* @param style - The partial style provided by the user.
*/
constructor(style?: Partial<ICanvasStyle>);
}