react-layout-motion
Version:
React layout animation library (coming soon)
20 lines (19 loc) • 622 B
TypeScript
export interface Layout {
element: HTMLElement;
rect: DOMRect;
}
interface LayoutManagerInterface {
registerLayout: (id: string, element: HTMLElement) => string;
unregisterLayout: (id: string) => void;
getLayout: (id: string) => Layout | null;
}
export declare class LayoutManager implements LayoutManagerInterface {
private static instance;
private layoutMap;
static getInstance(): LayoutManager;
registerLayout(layoutId: string, element: HTMLElement): string;
unregisterLayout(id: string): void;
getLayout(id: string): Layout | null;
private getRelativeRect;
}
export {};