rooks
Version:
Essential React custom hooks ⚓ to super charge your components!
28 lines • 715 B
TypeScript
export declare class DOMRectPolyfill implements DOMRect {
static fromRect(rect?: {
height?: number;
width?: number;
x?: number;
y?: number;
}): DOMRectPolyfill;
constructor(x?: number, y?: number, width?: number, height?: number);
x: number;
y: number;
width: number;
height: number;
get top(): number;
get right(): number;
get bottom(): number;
get left(): number;
toJSON(): {
bottom: number;
height: number;
left: number;
right: number;
top: number;
width: number;
x: number;
y: number;
};
}
//# sourceMappingURL=domrect-polyfill.d.ts.map