版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

17 строки
455 B

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