UNPKG

pdf-annotator-react

Version:
26 lines (25 loc) 988 B
import React from 'react'; import * as pdfjsLib from 'pdfjs-dist'; import { Annotation, Point, AnnotationMode } from '../types'; interface PdfPageProps { pdfDocument: pdfjsLib.PDFDocumentProxy; pageNumber: number; scale: number; annotations: Annotation[]; onAnnotationClick?: (annotation: Annotation, event?: React.MouseEvent) => void; onPointerDown?: (point: Point, pageIndex: number) => void; onPointerMove?: (point: Point, pageIndex: number) => void; onPointerUp?: (point: Point, pageIndex: number) => void; onCommentAdd?: (point: Point, pageIndex: number) => void; onTextClick?: (point: Point, pageIndex: number) => void; activeDrawingPoints?: Point[]; isDrawing?: boolean; drawingColor?: string; drawingThickness?: number; selectedAnnotation?: Annotation | null; currentMode?: AnnotationMode; startPoint?: Point | null; forceRotation?: number; } export declare const PdfPage: React.FC<PdfPageProps>; export {};