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.

22 lines (21 loc) 610 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LineDefinition = void 0; const ShapeDefinition_js_1 = require("./ShapeDefinition.js"); /** * Class representing a line definition. */ class LineDefinition extends ShapeDefinition_js_1.ShapeDefinition { /** * Creates an instance of LineDefinition. * * @param start - The starting point of the line. * @param end - The ending point of the line. */ constructor(start, end) { super(); this.start = start; this.end = end; } } exports.LineDefinition = LineDefinition;