Ellipse.d.ts 482 B

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