Isogon.d.ts 468 B

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