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