@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.
31 lines (30 loc) • 875 B
TypeScript
import { IRectangleBaseStyle } from "./interfaces/IRectangleBaseStyle.js";
import { IRectangleStyle } from "./interfaces/IRectangleStyle.js";
import { ShapeStyle } from "./ShapeStyle.js";
/**
* Represents the style options for a rectangle.
*/
export declare class RectangleStyle extends ShapeStyle<IRectangleBaseStyle> implements IRectangleStyle {
/**
* The color of the border.
*/
borderColor: string;
/**
* The width of the border in pixels.
*/
borderWidth: number;
/**
* The fill color of the rectangle.
*/
color: string;
/**
* Default style for the rectangle.
*/
static readonly DefaultStyle: IRectangleStyle;
/**
* Creates a new instance of RectangleStyle.
*
* @param style - The partial style provided by the user.
*/
constructor(style?: Partial<IRectangleStyle>);
}