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.

26 lines (25 loc) 801 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ShapeState = void 0; /** * 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. */ 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 || (exports.ShapeState = ShapeState = {}));