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.

9 lines (8 loc) 322 B
import { Serializable } from "../common/Serializable.js"; /** * An abstract class that extends Serializable and implements the IShapeDefinition interface. * This class provides a base definition for shapes that can be serialized into * an array or JSON string. */ export class ShapeDefinition extends Serializable { }