@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.
24 lines (23 loc) • 587 B
JavaScript
/**
* Represents the style for a shape, including optional state-specific styles.
*/
export class ShapeStyle {
/**
* Specifies the cursor style for the shape.
*/
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;
/**
* 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;
}