@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) • 847 B
TypeScript
import { Cursor } from "../types/Cursor.js";
import { IShapeBaseStyle } from "./interfaces/IShapeBaseStyle.js";
import { IShapeStyle } from "./interfaces/IShapeStyle.js";
/**
* Represents the style for a shape, including optional state-specific styles.
*/
export declare class ShapeStyle<TStyle extends IShapeBaseStyle> implements IShapeStyle {
/**
* Specifies the cursor style for the shape.
*/
cursor: Cursor;
/**
* Hover style for the shape.
*
* When the shape is in the hover state, the properties defined in this style
* override the default style properties.
*/
hover?: TStyle;
/**
* Active style for the shape.
*
* When the shape is in the active state, the properties defined in this style
* override the default style properties.
*/
active?: TStyle;
}