版博士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
482 B

  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;