@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.
19 lines (18 loc) • 486 B
TypeScript
import { IShapeOptions } from "./interfaces/IShapeOptions.js";
/**
* Base options for configuring the behavior of all shapes.
*/
export declare class ShapeOptions implements IShapeOptions {
/**
* Determines if the shape should be visible or not.
*/
visible: boolean;
/**
* Determines if the shape can be dragged by mouse.
*/
draggable: boolean;
/**
* Default options for shapes.
*/
static readonly DefaultOptions: ShapeOptions;
}