Ring.d.ts 451 B

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