@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.
23 lines (22 loc) • 681 B
JavaScript
/**
* Enum representing the possible states for a shape.
*
* These defines the different states a shape can be in,
* allowing specific styles or behaviors to be applied.
*/
export var ShapeState;
(function (ShapeState) {
/**
* The default state of the shape, with no specific interaction.
*/
ShapeState["Default"] = "default";
/**
* The hover state, applied when the mouse is over the shape.
*/
ShapeState["Hover"] = "hover";
/**
* The active state, applied when the shape is currently being manipulated,
* such as during dragging or resizing.
*/
ShapeState["Active"] = "active";
})(ShapeState || (ShapeState = {}));