@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.
27 lines (26 loc) • 836 B
TypeScript
import { Cursor } from "../types/Cursor.js";
import { ICanvasCursorStyle } from "./interfaces/ICanvasCursorStyle.js";
/**
* Represents the cursor style configuration for a canvas, defining how the cursor appears in
* different states such as default and pan (dragging) mode.
*/
export declare class CanvasCursorStyle implements ICanvasCursorStyle {
/**
* Cursor style in the default state.
*/
default: Cursor;
/**
* Cursor style when panning is active on the canvas.
*/
panActive: Cursor;
/**
* Default style for the canvas cursors.
*/
static readonly DefaultStyle: ICanvasCursorStyle;
/**
* Creates a new instance of CanvasCursorStyle.
*
* @param style - The partial style provided by the user.
*/
constructor(style?: Partial<ICanvasCursorStyle>);
}