UNPKG

@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.

15 lines (14 loc) 341 B
import { ICanvasCursorStyle } from "./ICanvasCursorStyle.js"; /** * Represents the style of a canvas. */ export interface ICanvasStyle { /** * Default color for canvas shapes. */ color?: string; /** * Cursor style configuration for different canvas interaction states. */ cursor?: ICanvasCursorStyle; }