UNPKG

455 BTypeScriptView Raw
1import Path, { PathProps } from '../Path';
2export declare class CircleShape {
3 cx: number;
4 cy: number;
5 r: number;
6}
7export interface CircleProps extends PathProps {
8 shape?: Partial<CircleShape>;
9}
10declare class Circle extends Path<CircleProps> {
11 shape: CircleShape;
12 constructor(opts?: CircleProps);
13 getDefaultShape(): CircleShape;
14 buildPath(ctx: CanvasRenderingContext2D, shape: CircleShape): void;
15}
16export default Circle;