UNPKG

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