@lunit/insight-viewer
Version:
Based on the cornerstone library, it provides several components for handling Dicom images
11 lines (10 loc) • 475 B
TypeScript
import type { Annotation } from '../../../types';
interface AddAnnotationParams {
annotation: Annotation | null;
annotations: Annotation[];
selectedAnnotation?: Annotation | null;
onAdd?: (annotation: Annotation) => Annotation | null;
onChange?: (annotations: Annotation[]) => void;
}
export declare const addAnnotation: ({ annotations, selectedAnnotation, onAdd, onChange }: AddAnnotationParams) => (annotation: Annotation) => void;
export {};