UNPKG

545 BTypeScriptView Raw
1import Path, { PathProps } from '../Path';
2export declare class RoseShape {
3 cx: number;
4 cy: number;
5 r: number[];
6 k: number;
7 n: number;
8}
9export interface RoseProps extends PathProps {
10 shape?: Partial<RoseShape>;
11}
12declare class Rose extends Path<RoseProps> {
13 shape: RoseShape;
14 constructor(opts?: RoseProps);
15 getDefaultStyle(): {
16 stroke: string;
17 fill: string;
18 };
19 getDefaultShape(): RoseShape;
20 buildPath(ctx: CanvasRenderingContext2D, shape: RoseShape): void;
21}
22export default Rose;