UNPKG

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