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.

27 lines (26 loc) 726 B
import { ILineBaseStyle } from "./interfaces/ILineBaseStyle.js"; import { ILineStyle } from "./interfaces/ILineStyle.js"; import { ShapeStyle } from "./ShapeStyle.js"; /** * Represents the style options for a line. */ export declare class LineStyle extends ShapeStyle<ILineBaseStyle> implements ILineStyle { /** * The color of the line stroke. */ color: string; /** * The width of the line stroke. */ width: number; /** * Default style for the line. */ static readonly DefaultStyle: ILineStyle; /** * Creates a new instance of LineStyle. * * @param style - The partial style provided by the user. */ constructor(style?: Partial<ILineStyle>); }