版博士V2.0程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

18 行
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;