@fairfox/adorn
Version:
Powerfully performant keyword matching and annotation for the DOM
17 lines • 673 B
TypeScript
export declare class TextNodesFromDOM {
private baseElement;
private range;
private ownerDocument;
private ignoreNodeNames;
private readonly nodeReg;
private textNodes;
constructor(baseElement: HTMLElement, ignoreNodeNames: string[]);
getIsTextNodeInViewport: (node: Node) => boolean;
walkerFilter: (node: Node) => number;
watchScroll: (watchCB: (nodes: Node[]) => void) => (() => void);
watchDOM: (watchDOMCB: (nodes: Node[]) => void) => MutationObserver;
endWatchDOM(mo: MutationObserver): void;
endWatchScroll(cb: () => void): void;
walk: (base: HTMLElement | Node) => Node[];
}
//# sourceMappingURL=index.d.ts.map