@redocly/theme
Version:
Shared UI components lib
16 lines (15 loc) • 569 B
TypeScript
export declare class MockIntersectionObserver {
readonly root: Element | Document | null;
readonly rootMargin: string;
readonly thresholds: ReadonlyArray<number>;
private viewPort;
private entries;
private readonly callback;
constructor(callback: IntersectionObserverCallback, options?: IntersectionObserverInit);
private intersect;
isInViewPort(target: HTMLElement): boolean;
observe(target: HTMLElement): void;
unobserve(target: HTMLElement): void;
disconnect(): void;
takeRecords(): IntersectionObserverEntry[];
}