UNPKG

@recogito/annotorious

Version:

A JavaScript image annotation library

12 lines 745 B
import { PointerSelectAction } from '@annotorious/core'; import type { Annotation, DrawingStyle, FormatAdapter } from '@annotorious/core'; import type { ImageAnnotation } from './model'; export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation> { adapter?: FormatAdapter<I, E>; autoSave?: boolean; pointerSelectAction?: PointerSelectAction | ((a: I) => PointerSelectAction); readOnly?: boolean; style?: DrawingStyle | ((annotation: I) => DrawingStyle); } export declare const fillDefaults: <I extends ImageAnnotation = ImageAnnotation, E extends unknown = ImageAnnotation>(opts: AnnotoriousOpts<I, E>) => AnnotoriousOpts<I, E>; //# sourceMappingURL=AnnotoriousOpts.d.ts.map