react-pdf-highlighter
Version:
Set of React components for PDF annotation
15 lines (14 loc) • 650 B
TypeScript
export declare const getDocument: (elm: any) => Document;
export declare const getWindow: (elm: any) => typeof window;
export declare const isHTMLElement: (elm: any) => boolean;
export declare const isHTMLCanvasElement: (elm: any) => boolean;
export declare const asElement: (x: any) => HTMLElement;
export declare const getPageFromElement: (target: HTMLElement) => {
node: HTMLElement;
number: number;
} | null;
export declare const getPageFromRange: (range: Range) => {
node: HTMLElement;
number: number;
} | null | undefined;
export declare const findOrCreateContainerLayer: (container: HTMLElement, className: string) => Element;