pdf-annotator-react
Version:
A React component library for PDF annotation
20 lines (19 loc) • 646 B
TypeScript
import React from 'react';
import { Annotation, Point, AnnotationMode } from '../types';
interface AnnotationLayerProps {
annotations: Annotation[];
pageIndex: number;
scale: number;
onAnnotationClick?: (annotation: Annotation, event?: React.MouseEvent) => void;
activeDrawingPoints?: Point[];
isDrawing?: boolean;
drawingColor?: string;
drawingThickness?: number;
selectedAnnotation?: Annotation | null;
currentMode?: AnnotationMode;
startPoint?: Point | null;
originalWidth?: number;
originalHeight?: number;
}
export declare const AnnotationLayer: React.FC<AnnotationLayerProps>;
export {};