版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

18 lines
489 B

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