@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) • 546 B
TypeScript
import { Point } from "../types/Point.js";
import { ShapeDefinition } from "./ShapeDefinition.js";
/**
* Class representing a line definition.
*/
export declare class LineDefinition extends ShapeDefinition {
/** The starting point of the line. */
start: Point;
/** The ending point of the line. */
end: Point;
/**
* Creates an instance of LineDefinition.
*
* @param start - The starting point of the line.
* @param end - The ending point of the line.
*/
constructor(start: Point, end: Point);
}