interface AnnotationPeak { wavenumber: number; transmittance: number; absorbance: number; kind: string; assignment?: string; } interface AnnotationLabel { text: string; size: string; anchor: string; color: string; angle?: number; position: { x: number; y: number; dy: string; }; } interface AnnotationPosition { x: number; y: number; dy: string; dx: string; } interface Annotation { line: number; type: string; strokeColor: string; strokeWidth: number; fillColor: string; labels?: AnnotationLabel[]; position?: AnnotationPosition[]; } interface GetAnnotationsOptions { /** Fill color for annotation rectangles. */ fillColor?: string; /** Stroke color for annotation rectangles. */ strokeColor?: string; /** Display the kind ('m', 'w', 'S'). */ showKind?: boolean; /** Display the assignment. */ showAssignment?: boolean; /** Callback allowing to add properties to an annotation. */ creationFct?: (annotation: Annotation, peak: AnnotationPeak) => void; /** 't100'=transmittance in %, 't'=transmittance, 'a'=absorbance. */ mode?: 'a' | 't' | 't100'; /** Angle for assignment labels in absorbance mode. */ assignmentAngle?: number; } /** * Creates annotations for jsgraph that allows to display the result of peak picking. * @param peaks - Array of peaks with wavenumber, transmittance, absorbance, kind. * @param options - Display options for the annotations. * @returns Array of annotation objects for jsgraph. */ export declare function getAnnotations(peaks: AnnotationPeak[], options?: GetAnnotationsOptions): Annotation[]; export {}; //# sourceMappingURL=getAnnotations.d.ts.map