@huridocs/react-text-selection-handler
Version:
React pdf handler allows to render a PDF and handle text selection and highlights.
13 lines • 392 B
TypeScript
export interface SelectionRectangle {
left: number;
top: number;
width: number;
height: number;
regionId?: string;
}
export interface TextSelection {
selectionRectangles: SelectionRectangle[];
text?: string;
}
export declare const domRectToSelectionRectangle: (rectangle: DOMRect, region: Element) => SelectionRectangle;
//# sourceMappingURL=TextSelection.d.ts.map