版博士V2.0程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Droplet.d.ts 489 B

1234567891011121314151617
  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;