UNPKG

@vue-pdf-viewer/viewer

Version:

The PDF Viewer component for Vue 3 and Nuxt

11 lines (10 loc) 1.01 kB
import type { CSSProperties } from 'vue'; import type { FlagKeyword, HighlightArea, HighlightMatchPosition, NormalizedKeyword, SingleKeyword } from './types'; export declare const normalizeFlagKeyword: (flagKeyword: FlagKeyword) => NormalizedKeyword; export declare const normalizeSingleKeyword: (keyword: SingleKeyword, matchCase?: boolean, wholeWords?: boolean) => NormalizedKeyword; export declare const sortHighlightPosition: (a: HighlightArea, b: HighlightArea) => 0 | 1 | -1; export declare const getHighlightStyle: (area: HighlightArea) => CSSProperties; export declare const unwrap: (ele: Node) => void; export declare const getHighlightElement: (layerRef: HTMLElement, query: HighlightMatchPosition, selector?: string) => HTMLElement; export declare const getHighlightElements: (layerRef: HTMLElement, querySelector: string) => Promise<NodeListOf<Element>>; export declare function scrollHighlightIntoView(highlightEle: HTMLElement, pageContainer: HTMLElement, viewerContainer: HTMLElement): void;