UNPKG

574 BTypeScriptView Raw
1import Path, { PathProps } from '../Path';
2export declare class ArcShape {
3 cx: number;
4 cy: number;
5 r: number;
6 startAngle: number;
7 endAngle: number;
8 clockwise?: boolean;
9}
10export interface ArcProps extends PathProps {
11 shape?: Partial<ArcShape>;
12}
13declare class Arc extends Path<ArcProps> {
14 shape: ArcShape;
15 constructor(opts?: ArcProps);
16 getDefaultStyle(): {
17 stroke: string;
18 fill: string;
19 };
20 getDefaultShape(): ArcShape;
21 buildPath(ctx: CanvasRenderingContext2D, shape: ArcShape): void;
22}
23export default Arc;