@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.
21 lines (20 loc) • 406 B
JavaScript
/**
* Base options for configuring the behavior of all shapes.
*/
export class ShapeOptions {
/**
* Determines if the shape should be visible or not.
*/
visible;
/**
* Determines if the shape can be dragged by mouse.
*/
draggable;
/**
* Default options for shapes.
*/
static DefaultOptions = {
visible: true,
draggable: true
};
}