UNPKG

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