-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
28 lines (28 loc) · 850 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import React, { CSSProperties } from "react";
import { Preset } from "superellipsejs";
export interface SuperEllipseProps {
r1?: number;
r2?: number;
p1?: number;
p2?: number;
}
interface Bounds {
readonly width: number;
readonly height: number;
}
declare function SuperEllipse(props: SuperEllipseProps & React.HTMLAttributes<HTMLDivElement>): JSX.Element;
export declare function getMaskStyle(bounds: Bounds, props: SuperEllipseProps): CSSProperties;
export interface SuperEllipseImgProps {
width: number;
height: number;
href: string;
style?: CSSProperties;
r1?: number;
r2?: number;
backgroundColor?: string;
strokeColor?: string;
strokeWidth?: number;
}
export declare const SuperEllipseImg: (props: SuperEllipseImgProps) => JSX.Element;
export { Preset };
export default SuperEllipse;