1 | import Affix from '.';
|
2 | export declare type BindElement = HTMLElement | Window | null | undefined;
|
3 | export declare type Rect = ClientRect | DOMRect;
|
4 | export declare function getTargetRect(target: BindElement): ClientRect;
|
5 | export declare function getFixedTop(placeholderReact: Rect, targetRect: Rect, offsetTop: number | undefined): number | undefined;
|
6 | export declare function getFixedBottom(placeholderReact: Rect, targetRect: Rect, offsetBottom: number | undefined): number | undefined;
|
7 | interface ObserverEntity {
|
8 | target: HTMLElement | Window;
|
9 | affixList: Affix[];
|
10 | eventHandlers: {
|
11 | [eventName: string]: any;
|
12 | };
|
13 | }
|
14 | export declare function getObserverEntities(): ObserverEntity[];
|
15 | export declare function addObserveTarget(target: HTMLElement | Window | null, affix: Affix): void;
|
16 | export declare function removeObserveTarget(affix: Affix): void;
|
17 | export {};
|