UNPKG

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