@annotorious/annotorious 3.7.18 → 3.7.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ import { Annotation, Annotator } from '@annotorious/core';
3
3
  import { DrawingTool } from './annotation/tools';
4
4
  import { DrawingToolOpts } from './annotation';
5
5
  import { ImageAnnotation, ShapeType } from './model';
6
- import { Theme, AnnotoriousOpts } from './AnnotoriousOpts';
6
+ import { Theme, AnnotoriousOpts, DrawingMode } from './AnnotoriousOpts';
7
7
  export interface ImageAnnotator<I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation> extends Annotator<I, E> {
8
8
  element: HTMLDivElement;
9
9
  cancelDrawing(): void;
@@ -14,6 +14,7 @@ export interface ImageAnnotator<I extends Annotation = ImageAnnotation, E extend
14
14
  registerShapeEditor(shapeType: ShapeType, editor: typeof SvelteComponent): void;
15
15
  setDrawingTool(name: DrawingTool): void;
16
16
  setDrawingEnabled(enabled: boolean): void;
17
+ setDrawingMode(mode: DrawingMode): void;
17
18
  setTheme(theme: Theme): void;
18
19
  }
19
20
  export declare const createImageAnnotator: <I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation>(image: string | HTMLImageElement | HTMLCanvasElement, options?: AnnotoriousOpts<I, E>) => ImageAnnotator<I, E>;