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.

14 lines (13 loc) 282 B
/** * Represents options for configuring shapes. */ export interface IShapeOptions { /** * Determines if the shape should be visible or not. */ visible?: boolean; /** * Determines if the shape can be dragged by mouse. */ draggable?: boolean; }