UNPKG

606 BTypeScriptView Raw
1import Path, { PathProps } from '../Path';
2export declare class TrochoidShape {
3 cx: number;
4 cy: number;
5 r: number;
6 r0: number;
7 d: number;
8 location: string;
9}
10export interface TrochoidProps extends PathProps {
11 shape?: Partial<TrochoidShape>;
12}
13declare class Trochoid extends Path<TrochoidProps> {
14 shape: TrochoidShape;
15 constructor(opts?: TrochoidProps);
16 getDefaultStyle(): {
17 stroke: string;
18 fill: string;
19 };
20 getDefaultShape(): TrochoidShape;
21 buildPath(ctx: CanvasRenderingContext2D, shape: TrochoidShape): void;
22}
23export default Trochoid;