react-pdf-ner-annotator
Version:
A React component to annotate named entities directly onto a PDF.
6 lines (5 loc) • 408 B
TypeScript
import { Rectangle } from 'tesseract.js';
import { Point } from '../interfaces/point';
export declare const isCoordsEmpty: (coordinates: Rectangle) => boolean;
export declare const calculateSelectionRectangle: (startPoint: Point, endPoint: Point) => Rectangle;
export declare const findIntersectingChildren: (children: Array<any>, selectionRect: Rectangle, offsetX?: number, offsetY?: number) => any[];