UNPKG

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