UNPKG

react-layout-motion

Version:
20 lines (19 loc) 622 B
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 {};