@annotorious/annotorious 3.0.0-rc.23 → 3.0.0-rc.24

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.
@@ -1,9 +1,9 @@
1
- import { Theme, AnnotoriousOpts } from './AnnotoriousOpts';
2
- import { ImageAnnotation, ShapeType } from './model';
3
- import { DrawingToolOpts } from './annotation';
4
- import { DrawingTool } from './annotation/tools';
5
- import { Annotator } from '@annotorious/core';
6
1
  import { SvelteComponent } from 'svelte';
2
+ import { Annotator } from '@annotorious/core';
3
+ import { DrawingTool } from './annotation/tools';
4
+ import { DrawingToolOpts } from './annotation';
5
+ import { ImageAnnotation, ShapeType } from './model';
6
+ import { Theme, AnnotoriousOpts } from './AnnotoriousOpts';
7
7
 
8
8
  export interface ImageAnnotator<E extends unknown = ImageAnnotation> extends Annotator<ImageAnnotation, E> {
9
9
  listDrawingTools(): string[];
@@ -1,5 +1,5 @@
1
+ import { Annotation, DrawingStyleExpression, FormatAdapter, PointerSelectAction } from '@annotorious/core';
1
2
  import { ImageAnnotation } from './model';
2
- import { Annotation, DrawingStyle, FormatAdapter, PointerSelectAction } from '@annotorious/core';
3
3
 
4
4
  export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation> {
5
5
  adapter?: FormatAdapter<I, E>;
@@ -7,7 +7,7 @@ export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E exten
7
7
  drawingEnabled?: boolean;
8
8
  drawingMode?: DrawingMode;
9
9
  pointerSelectAction?: PointerSelectAction | ((a: I) => PointerSelectAction);
10
- style?: DrawingStyle | ((annotation: I) => DrawingStyle);
10
+ style?: DrawingStyleExpression<ImageAnnotation>;
11
11
  theme?: Theme;
12
12
  }
13
13
  export type DrawingMode = 'click' | 'drag';
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotoriousOpts.d.ts","sourceRoot":"","sources":["../src/AnnotoriousOpts.ts"],"names":[],"mappings":"AAAA,OAAO,KAA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SAAS,OAAO,GAAG,eAAe;IAE1G,OAAO,CAAC,EAAE,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAE9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,cAAc,CAAC,EAAE,OAAO,CAAC;IAIzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B,mBAAmB,CAAC,EAAE,mBAAmB,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,mBAAmB,CAAC,CAAC;IAE5E,KAAK,CAAC,EAAE,sBAAsB,CAAC,eAAe,CAAC,CAAC;IAEhD,KAAK,CAAC,EAAE,KAAK,CAAC;CAEf;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9C,eAAO,MAAM,YAAY,2FACjB,gBAAgB,CAAC,EAAE,CAAC,CAAC,YACjB,gBAAgB,CAAC,EAAE,CAAC,CAAC,KAC9B,gBAAgB,CAAC,EAAE,CAAC,CAUtB,CAAC"}
@@ -1,5 +1,5 @@
1
- import { ImageAnnotation } from '../model';
2
1
  import { SvelteImageAnnotationStore } from '../state';
2
+ import { ImageAnnotation } from '../model';
3
3
 
4
4
  export interface SVGAnnotationLayerPointerEvent {
5
5
  originalEvent: PointerEvent;
@@ -1,5 +1,5 @@
1
- import { SvelteComponent } from 'svelte';
2
1
  import { ShapeType, Shape } from '../../model';
2
+ import { SvelteComponent } from 'svelte';
3
3
 
4
4
  export declare const getEditor: (shape: Shape) => typeof SvelteComponent | undefined;
5
5
  export declare const registerEditor: (shapeType: ShapeType, editor: typeof SvelteComponent) => Map<ShapeType, typeof SvelteComponent>;
@@ -1,5 +1,5 @@
1
- import { DrawingMode } from '../../AnnotoriousOpts';
2
1
  import { SvelteComponent } from 'svelte';
2
+ import { DrawingMode } from '../../AnnotoriousOpts';
3
3
 
4
4
  export type DrawingTool = 'rectangle' | 'polygon' | string;
5
5
  export type DrawingToolOpts = {
@@ -1,5 +1,5 @@
1
- import { ImageAnnotation } from '../../model';
2
1
  import { DrawingStyleExpression } from '@annotorious/core';
2
+ import { ImageAnnotation } from '../../model';
3
3
 
4
4
  export declare const computeStyle: (annotation: ImageAnnotation, style?: DrawingStyleExpression<ImageAnnotation>) => string | undefined;
5
5
  //# sourceMappingURL=styling.d.ts.map