@vue-pdf-viewer/viewer
Version:
A vue-pdf-viewer component for Vue and Nuxt. Suitable for vue-pdf document.
12 lines (11 loc) • 775 B
TypeScript
import type { PDFDocumentProxy } from 'pdfjs-dist';
import type { AnnotationEventPayload } from '@/utils/types';
declare const EVENTS_TO_HANDLER: string[];
declare function annotationEventsHandler(evt: Event, pdfDoc: PDFDocumentProxy, annotationObjList: Object[], viewerRotation: number, annotationStorage?: any): AnnotationEventPayload | Promise<AnnotationEventPayload | undefined> | undefined;
declare const insertDate: (annotationLayer?: HTMLDivElement) => void;
/**
* Get the parent annotation element for a popup.
* Returns the cached annotation element that triggered this popup.
*/
declare function getPopupParentAnnotation(popupElement: HTMLElement): HTMLElement | null;
export { EVENTS_TO_HANDLER, annotationEventsHandler, insertDate, getPopupParentAnnotation };