@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.
25 lines (24 loc) • 666 B
TypeScript
import { ILineOptions } from "./interfaces/ILineOptions.js";
/**
* Options for configuring the behavior of a line shape.
*/
export declare class LineOptions implements ILineOptions {
/**
* 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 the line.
*/
static readonly DefaultOptions: ILineOptions;
/**
* Creates a new instance of LineOptions.
*
* @param options - The partial options provided by the user.
*/
constructor(options?: Partial<ILineOptions>);
}