pdf-annotator-react
Version:
A React component library for PDF annotation
22 lines (21 loc) • 778 B
TypeScript
import { Annotation, AnnotationType } from '../types';
/**
* Format annotations to JSON
*/
export declare const annotationsToJSON: (annotations: Annotation[]) => string;
/**
* Helper function for getting annotations JSON without ref
*/
export declare const getAnnotationsJSON: (annotations: Annotation[]) => string;
/**
* Helper function for getting annotations as a typed array
*/
export declare const getAnnotationsArray: (annotations: Annotation[]) => Annotation[];
/**
* Helper function for getting annotations by type
*/
export declare const getAnnotationsByType: (annotations: Annotation[], type: AnnotationType) => Annotation[];
/**
* Helper for getting pin annotations specifically
*/
export declare const getPins: (annotations: Annotation[]) => Annotation[];