UNPKG

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