UNPKG

pdf-annotator-react

Version:
36 lines (35 loc) 1.44 kB
import React from 'react'; import { Annotation, AnnotationMode } from '../types'; import { CompetenciaInterface } from 'lingapp-revisao-redacao'; export interface PdfAnnotatorRef { getAnnotationsJSON: () => string; selectAnnotationById: (annotationId: string) => boolean; } export declare const PdfAnnotator: React.ForwardRefExoticComponent<{ url: string; annotations?: Annotation[]; scale?: number; pageNumber?: number; onDocumentLoadSuccess?: (numPages: number) => void; onPageChange?: (pageNumber: number) => void; annotationMode?: AnnotationMode; onAnnotationModeChange?: (mode: AnnotationMode) => void; currentCategory?: CompetenciaInterface; onCategoryChange?: (category: CompetenciaInterface | undefined) => void; onAnnotationsChange?: (annotations: Annotation[]) => void; customCategories?: import("lingapp-revisao-redacao").CompetenciaWithTags[]; highlightColor?: string; underlineColor?: string; strikeoutColor?: string; rectangleColor?: string; drawingColor?: string; textColor?: string; commentColor?: string; pinColor?: string; highlightingColor?: string; pdfWorkerSrc?: string; fitToWidth?: boolean; defaultThickness?: number; viewOnly?: boolean; } & import("../types").AnnotationEventCallbacks & React.RefAttributes<PdfAnnotatorRef>>; export declare const getAnnotationsJSON: (annotations: Annotation[]) => string;