UNPKG

pdf-annotator-react

Version:
19 lines (18 loc) 1.23 kB
import { CompetenciaInterface } from 'lingapp-revisao-redacao'; import { Annotation, AnnotationMode, AnnotationRect, AnnotationType, Point } from './types'; export declare const createAnnotation: (type: AnnotationType, rect: { x: number; y: number; width: number; height: number; pageIndex: number; }, content?: string, color?: string, category?: CompetenciaInterface) => Annotation; export declare const getAnnotationColor: (type: AnnotationType, category?: CompetenciaInterface, categoryColors?: Record<string, string>) => string; export declare const annotationModeToType: (mode: AnnotationMode) => AnnotationType; export declare const calculateRectFromPoints: (startPoint: Point, endPoint: Point, pageIndex: number) => AnnotationRect; export declare const pointsToSvgPath: (points: Point[]) => string; export declare const DEFAULT_CATEGORY_COLORS: Record<number, string>; export declare const getCategoryColor: (category?: CompetenciaInterface | null) => string; export declare const getCategoryDisplayName: (category?: CompetenciaInterface | null) => string; export declare const annotationsToJSON: (annotations: Annotation[]) => string; export declare const distance: (p1: Point, p2: Point) => number;