版博士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.

Circle.d.ts 455 B

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