@annotorious/annotorious 3.0.0-rc.20 → 3.0.0-rc.3

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.
Files changed (80) hide show
  1. package/dist/Annotorious.d.ts +2 -7
  2. package/dist/Annotorious.d.ts.map +1 -1
  3. package/dist/AnnotoriousOpts.d.ts +3 -4
  4. package/dist/AnnotoriousOpts.d.ts.map +1 -1
  5. package/dist/annotation/SVGAnnotationLayerPointerEvent.d.ts.map +1 -1
  6. package/dist/annotation/editors/Handle.d.ts +14 -0
  7. package/dist/annotation/editors/Handle.d.ts.map +1 -0
  8. package/dist/annotation/editors/editorsRegistry.d.ts +1 -1
  9. package/dist/annotation/editors/editorsRegistry.d.ts.map +1 -1
  10. package/dist/annotation/editors/index.d.ts +1 -1
  11. package/dist/annotation/editors/index.d.ts.map +1 -1
  12. package/dist/annotation/tools/drawingToolsRegistry.d.ts +4 -4
  13. package/dist/annotation/tools/drawingToolsRegistry.d.ts.map +1 -1
  14. package/dist/annotation/utils/responsive.d.ts +1 -2
  15. package/dist/annotation/utils/responsive.d.ts.map +1 -1
  16. package/dist/annotation/utils/styling.d.ts +1 -1
  17. package/dist/annotation/utils/styling.d.ts.map +1 -1
  18. package/dist/annotation/utils/touch.d.ts.map +1 -1
  19. package/dist/annotorious.css +1 -1
  20. package/dist/annotorious.es.js +2087 -2359
  21. package/dist/annotorious.es.js.map +1 -1
  22. package/dist/annotorious.js +1 -1
  23. package/dist/annotorious.js.map +1 -1
  24. package/dist/index.d.ts +7 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/keyboardCommands.d.ts +2 -2
  27. package/dist/keyboardCommands.d.ts.map +1 -1
  28. package/dist/model/w3c/W3CImageFormatAdapter.d.ts +2 -3
  29. package/dist/model/w3c/W3CImageFormatAdapter.d.ts.map +1 -1
  30. package/dist/model/w3c/fragment/FragmentSelector.d.ts +2 -1
  31. package/dist/model/w3c/fragment/FragmentSelector.d.ts.map +1 -1
  32. package/dist/model/w3c/index.d.ts +0 -1
  33. package/dist/model/w3c/index.d.ts.map +1 -1
  34. package/dist/model/w3c/svg/SVG.d.ts.map +1 -1
  35. package/dist/model/w3c/svg/SVGSelector.d.ts +2 -1
  36. package/dist/model/w3c/svg/SVGSelector.d.ts.map +1 -1
  37. package/dist/state/ImageAnnotatorState.d.ts.map +1 -1
  38. package/dist/state/spatialTree.d.ts +1 -1
  39. package/dist/state/spatialTree.d.ts.map +1 -1
  40. package/dist/themes/smart/setTheme.d.ts +1 -3
  41. package/dist/themes/smart/setTheme.d.ts.map +1 -1
  42. package/package.json +13 -13
  43. package/src/Annotorious.css +5 -5
  44. package/src/Annotorious.ts +28 -34
  45. package/src/AnnotoriousOpts.ts +6 -11
  46. package/src/annotation/SVGAnnotationLayer.svelte +15 -21
  47. package/src/annotation/SVGAnnotationLayerPointerEvent.ts +2 -1
  48. package/src/annotation/Transform.ts +1 -1
  49. package/src/annotation/editors/Editor.svelte +11 -10
  50. package/src/annotation/editors/EditorMount.svelte +2 -2
  51. package/src/annotation/editors/Handle.ts +21 -0
  52. package/src/annotation/editors/index.ts +2 -2
  53. package/src/annotation/editors/polygon/PolygonEditor.svelte +16 -16
  54. package/src/annotation/editors/rectangle/RectangleEditor.svelte +43 -46
  55. package/src/annotation/shapes/Ellipse.svelte +2 -2
  56. package/src/annotation/shapes/Polygon.svelte +2 -2
  57. package/src/annotation/shapes/Rectangle.svelte +2 -2
  58. package/src/annotation/tools/ToolMount.svelte +3 -3
  59. package/src/annotation/tools/drawingToolsRegistry.ts +1 -2
  60. package/src/annotation/tools/polygon/RubberbandPolygon.svelte +13 -40
  61. package/src/annotation/tools/rectangle/RubberbandRectangle.svelte +10 -16
  62. package/src/annotation/utils/responsive.ts +1 -1
  63. package/src/annotation/utils/touch.ts +1 -4
  64. package/src/index.ts +16 -23
  65. package/src/keyboardCommands.ts +7 -11
  66. package/src/model/w3c/W3CImageFormatAdapter.ts +21 -53
  67. package/src/model/w3c/fragment/FragmentSelector.ts +6 -5
  68. package/src/model/w3c/index.ts +0 -1
  69. package/src/model/w3c/svg/SVG.ts +2 -1
  70. package/src/model/w3c/svg/SVGSelector.ts +13 -11
  71. package/src/state/ImageAnnotatorState.ts +3 -3
  72. package/src/state/spatialTree.ts +2 -3
  73. package/src/themes/dark/index.css +2 -2
  74. package/src/themes/light/index.css +2 -2
  75. package/src/themes/smart/setTheme.ts +6 -10
  76. package/dist/annotation/editors/Handle.svelte.d.ts +0 -1
  77. package/dist/model/w3c/W3CImageAnnotation.d.ts +0 -11
  78. package/dist/model/w3c/W3CImageAnnotation.d.ts.map +0 -1
  79. package/src/annotation/editors/Handle.svelte +0 -66
  80. package/src/model/w3c/W3CImageAnnotation.ts +0 -17
@@ -1,20 +1,15 @@
1
1
  import type { SvelteComponent } from 'svelte';
2
- import { type Annotator } from '@annotorious/core';
2
+ import type { Annotator } from '@annotorious/core';
3
3
  import { type DrawingTool } from './annotation/tools';
4
4
  import type { DrawingToolOpts } from './annotation';
5
5
  import type { ImageAnnotation, ShapeType } from './model';
6
- import { type Theme } from './AnnotoriousOpts';
7
6
  import type { AnnotoriousOpts } from './AnnotoriousOpts';
8
- import './Annotorious.css';
9
- import './themes/dark/index.css';
10
- import './themes/light/index.css';
11
7
  export interface ImageAnnotator<E extends unknown = ImageAnnotation> extends Annotator<ImageAnnotation, E> {
12
8
  listDrawingTools(): string[];
13
9
  registerDrawingTool(name: string, tool: typeof SvelteComponent, opts?: DrawingToolOpts): void;
14
10
  registerShapeEditor(shapeType: ShapeType, editor: typeof SvelteComponent): void;
15
- setDrawingTool(name: DrawingTool): void;
11
+ setDrawingTool(tool: DrawingTool): void;
16
12
  setDrawingEnabled(enabled: boolean): void;
17
- setTheme(theme: Theme): void;
18
13
  }
19
14
  export declare const createImageAnnotator: <E extends unknown = ImageAnnotation>(image: string | HTMLImageElement | HTMLCanvasElement, options?: AnnotoriousOpts<ImageAnnotation, E>) => ImageAnnotator<E>;
20
15
  //# sourceMapping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,CAAC,KAC3C,eAAe,CAAC,CAuIlB,CAAA"}
1
+ {"version":3,"file":"Annotorious.d.ts","sourceRoot":"","sources":["../src/Annotorious.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,KAAK,EAAE,SAAS,EAA8B,MAAM,mBAAmB,CAAC;AAG/E,OAAO,EAA2C,KAAK,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAE/F,OAAO,KAAK,EAAE,eAAe,EAAkC,MAAM,cAAc,CAAC;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAI1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGzD,OAAO,mBAAmB,CAAC;AAC3B,OAAO,yBAAyB,CAAC;AACjC,OAAO,0BAA0B,CAAC;AAElC,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,OAAO,GAAG,eAAe,CAAE,SAAQ,SAAS,CAAC,eAAe,EAAE,CAAC,CAAC;IAExG,gBAAgB,IAAI,MAAM,EAAE,CAAC;IAE7B,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,eAAe,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAE9F,mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,eAAe,GAAG,IAAI,CAAC;IAEhF,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,IAAI,CAAC;IAExC,iBAAiB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;CAE3C;AAED,eAAO,MAAM,oBAAoB,+CACxB,MAAM,GAAG,gBAAgB,GAAG,iBAAiB,qEAqIrD,CAAA"}
@@ -1,4 +1,5 @@
1
- import type { Annotation, DrawingStyle, FormatAdapter, PointerSelectAction } from '@annotorious/core';
1
+ import { PointerSelectAction } from '@annotorious/core';
2
+ import type { Annotation, DrawingStyle, FormatAdapter } from '@annotorious/core';
2
3
  import type { ImageAnnotation } from './model';
3
4
  export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation> {
4
5
  adapter?: FormatAdapter<I, E>;
@@ -7,9 +8,7 @@ export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E exten
7
8
  drawingMode?: DrawingMode;
8
9
  pointerSelectAction?: PointerSelectAction | ((a: I) => PointerSelectAction);
9
10
  style?: DrawingStyle | ((annotation: I) => DrawingStyle);
10
- theme?: Theme;
11
11
  }
12
12
  export type DrawingMode = 'click' | 'drag';
13
- export type Theme = 'dark' | 'light' | 'auto';
14
- export declare const fillDefaults: <I extends ImageAnnotation = ImageAnnotation, E extends unknown = ImageAnnotation>(opts: AnnotoriousOpts<I, E>, defaults: AnnotoriousOpts<I, E>) => AnnotoriousOpts<I, E>;
13
+ export declare const fillDefaults: <I extends ImageAnnotation = ImageAnnotation, E extends unknown = ImageAnnotation>(opts: AnnotoriousOpts<I, E>) => AnnotoriousOpts<I, E>;
15
14
  //# sourceMappingURL=AnnotoriousOpts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AnnotoriousOpts.d.ts","sourceRoot":"","sources":["../src/AnnotoriousOpts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACtG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAE/C,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,UAAU,GAAG,eAAe,EAAE,CAAC,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,m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C,CAAC;CAE1D;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,eAAO,MAAM,YAAY,0IAWxB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SVGAnnotationLayerPointerEvent.d.ts","sourceRoot":"","sources":["../../src/annotation/SVGAnnotationLayerPointerEvent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAEhD,MAAM,WAAW,8BAA8B;IAE7C,aAAa,EAAE,YAAY,CAAC;IAE5B,UAAU,CAAC,EAAE,eAAe,CAAC;CAE9B;AAKD,eAAO,MAAM,iBAAiB,QAAS,aAAa,SAAS,0BAA0B;;uBAQ3D,YAAY;CAgBvC,CAAA"}
1
+ {"version":3,"file":"SVGAnnotationLayerPointerEvent.d.ts","sourceRoot":"","sources":["../../src/annotation/SVGAnnotationLayerPointerEvent.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,MAAM,WAAW,8BAA8B;IAE7C,aAAa,EAAE,YAAY,CAAC;IAE5B,UAAU,CAAC,EAAE,eAAe,CAAC;CAE9B;AAKD,eAAO,MAAM,iBAAiB,QAAS,aAAa,SAAS,0BAA0B;;uBAQ3D,YAAY;CAgBvC,CAAA"}
@@ -0,0 +1,14 @@
1
+ export type Handle = string;
2
+ export declare const Handle: {
3
+ (value: string | number): string;
4
+ SHAPE: string;
5
+ TOP: string;
6
+ RIGHT: string;
7
+ BOTTOM: string;
8
+ LEFT: string;
9
+ TOP_LEFT: string;
10
+ TOP_RIGHT: string;
11
+ BOTTOM_RIGHT: string;
12
+ BOTTOM_LEFT: string;
13
+ };
14
+ //# sourceMappingURL=Handle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Handle.d.ts","sourceRoot":"","sources":["../../../src/annotation/editors/Handle.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC;AAE5B,eAAO,MAAM,MAAM;YAAW,MAAM,GAAG,MAAM;;;;;;;;;;CAAsB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ShapeType, type Shape } from '../../model';
2
2
  import type { SvelteComponent } from 'svelte';
3
- export declare const getEditor: (shape: Shape) => typeof SvelteComponent | undefined;
3
+ export declare const getEditor: (shape: Shape) => typeof SvelteComponent;
4
4
  export declare const registerEditor: (shapeType: ShapeType, editor: typeof SvelteComponent) => Map<ShapeType, typeof SvelteComponent>;
5
5
  //# sourceMappingURL=editorsRegistry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editorsRegistry.d.ts","sourceRoot":"","sources":["../../../src/annotation/editors/editorsRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAS9C,eAAO,MAAM,SAAS,UAAW,KAAK,uCAA+B,CAAC;AAEtE,eAAO,MAAM,cAAc,cAAe,SAAS,UAAU,sBAAsB,2CAChD,CAAC"}
1
+ {"version":3,"file":"editorsRegistry.d.ts","sourceRoot":"","sources":["../../../src/annotation/editors/editorsRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAS9C,eAAO,MAAM,SAAS,UAAW,KAAK,2BAA+B,CAAC;AAEtE,eAAO,MAAM,cAAc,cAAe,SAAS,UAAU,sBAAsB,2CAChD,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export * from './polygon';
2
2
  export * from './rectangle';
3
3
  export * from './editorsRegistry';
4
+ export * from './Handle';
4
5
  export { default as Editor } from './Editor.svelte';
5
6
  export { default as EditorMount } from './EditorMount.svelte';
6
- export { default as Handle } from './Handle.svelte';
7
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/annotation/editors/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/annotation/editors/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
@@ -3,15 +3,15 @@ import type { DrawingMode } from '../../AnnotoriousOpts';
3
3
  export type DrawingTool = 'rectangle' | 'polygon' | string;
4
4
  export type DrawingToolOpts = {
5
5
  drawingMode?: DrawingMode;
6
- [key: string]: any;
6
+ [key: string]: string;
7
7
  };
8
8
  export declare const listDrawingTools: () => string[];
9
9
  export declare const getTool: (name: string) => {
10
10
  tool: typeof SvelteComponent;
11
- opts?: DrawingToolOpts | undefined;
12
- } | undefined;
11
+ opts?: DrawingToolOpts;
12
+ };
13
13
  export declare const registerTool: (name: string, tool: typeof SvelteComponent, opts?: DrawingToolOpts) => Map<string, {
14
14
  tool: typeof SvelteComponent;
15
- opts?: DrawingToolOpts | undefined;
15
+ opts?: DrawingToolOpts;
16
16
  }>;
17
17
  //# sourceMappingURL=drawingToolsRegistry.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawingToolsRegistry.d.ts","sourceRoot":"","sources":["../../../src/annotation/tools/drawingToolsRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,MAAM,MAAM,eAAe,GAAG;IAE5B,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CAEpB,CAAA;AAQD,eAAO,MAAM,gBAAgB,gBAA+B,CAAC;AAE7D,eAAO,MAAM,OAAO,SAAU,MAAM;UAPY,sBAAsB;;aAOT,CAAC;AAE9D,eAAO,MAAM,YAAY,SAAU,MAAM,QAAQ,sBAAsB,SAAS,eAAe;UAT/C,sBAAsB;;EAUhC,CAAC"}
1
+ {"version":3,"file":"drawingToolsRegistry.d.ts","sourceRoot":"","sources":["../../../src/annotation/tools/drawingToolsRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAG9C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,MAAM,CAAC;AAE3D,MAAM,MAAM,eAAe,GAAG;IAE5B,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CAEvB,CAAA;AAOD,eAAO,MAAM,gBAAgB,gBAA+B,CAAC;AAE7D,eAAO,MAAM,OAAO,SAAU,MAAM;UAPY,sBAAsB;WAAS,eAAe;CAOjC,CAAC;AAE9D,eAAO,MAAM,YAAY,SAAU,MAAM,QAAQ,sBAAsB,SAAS,eAAe;UAT/C,sBAAsB;WAAS,eAAe;EAUxD,CAAC"}
@@ -1,6 +1,5 @@
1
- /// <reference types="svelte" />
2
1
  export declare const enableResponsive: (image: HTMLImageElement | HTMLCanvasElement, svg: SVGSVGElement) => {
3
2
  destroy: () => void;
4
- subscribe: (this: void, run: import("svelte/store").Subscriber<number>, invalidate?: import("svelte/store").Invalidator<number> | undefined) => import("svelte/store").Unsubscriber;
3
+ subscribe: (this: void, run: import("svelte/store").Subscriber<number>, invalidate?: (value?: number) => void) => import("svelte/store").Unsubscriber;
5
4
  };
6
5
  //# sourceMappingURL=responsive.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../src/annotation/utils/responsive.ts"],"names":[],"mappings":";AAsBA,eAAO,MAAM,gBAAgB,UAAW,gBAAgB,GAAG,iBAAiB,OAAO,aAAa;;;CAgC/F,CAAA"}
1
+ {"version":3,"file":"responsive.d.ts","sourceRoot":"","sources":["../../../src/annotation/utils/responsive.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,gBAAgB,UAAW,gBAAgB,GAAG,iBAAiB,OAAO,aAAa;;;CAgC/F,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import type { DrawingStyle } from '@annotorious/core';
2
2
  import type { ImageAnnotation } from '../../model';
3
- export declare const computeStyle: (annotation: ImageAnnotation, style?: DrawingStyle | ((a: ImageAnnotation) => DrawingStyle) | undefined) => string | undefined;
3
+ export declare const computeStyle: (annotation: ImageAnnotation, style?: DrawingStyle | ((a: ImageAnnotation) => DrawingStyle)) => string;
4
4
  //# sourceMappingURL=styling.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styling.d.ts","sourceRoot":"","sources":["../../../src/annotation/utils/styling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,eAAO,MAAM,YAAY,eAAgB,eAAe,8BAA8B,eAAe,KAAK,YAAY,oCAerH,CAAA"}
1
+ {"version":3,"file":"styling.d.ts","sourceRoot":"","sources":["../../../src/annotation/utils/styling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,eAAO,MAAM,YAAY,eAAgB,eAAe,8BAA8B,eAAe,KAAK,YAAY,YAerH,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"touch.d.ts","sourceRoot":"","sources":["../../../src/annotation/utils/touch.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,SAGe,CAAC"}
1
+ {"version":3,"file":"touch.d.ts","sourceRoot":"","sources":["../../../src/annotation/utils/touch.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,SAA2D,CAAC"}
@@ -1 +1 @@
1
- .a9s-touch-halo.svelte-1sgkh33{fill:transparent;stroke-width:0}.a9s-touch-halo.touched.svelte-1sgkh33{fill:#ffffff40}.a9s-annotationlayer{box-sizing:border-box;height:100%;left:0;outline:none;position:absolute;top:0;touch-action:none;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.a9s-annotationlayer ellipse,.a9s-annotationlayer polygon,.a9s-annotationlayer rect{fill:transparent;shape-rendering:geometricPrecision;vector-effect:non-scaling-stroke}.a9s-edge-handle{fill:transparent;stroke:transparent;stroke-width:6px}.a9s-shape-handle,.a9s-handle{cursor:move}.a9s-edge-handle-top{cursor:n-resize}.a9s-edge-handle-right{cursor:e-resize}.a9s-edge-handle-bottom{cursor:s-resize}.a9s-edge-handle-left{cursor:w-resize}.a9s-handle.a9s-corner-handle-topleft{cursor:nw-resize}.a9s-handle.a9s-corner-handle-topright{cursor:ne-resize}.a9s-handle.a9s-corner-handle-bottomright{cursor:se-resize}.a9s-handle.a9s-corner-handle-bottomleft{cursor:sw-resize}.a9s-annotationlayer .a9s-outer,div[data-theme=dark] .a9s-annotationlayer .a9s-outer{display:none}.a9s-annotationlayer .a9s-inner,div[data-theme=dark] .a9s-annotationlayer .a9s-inner{fill:#0000001f;stroke:#000;stroke-width:1px}rect.a9s-handle,div[data-theme=dark] rect.a9s-handle{fill:#000;rx:2px}rect.a9s-close-polygon-handle,div[data-theme=dark] rect.a9s-close-polygon-handle{fill:#000;rx:1px}.a9s-annotationlayer .a9s-outer,div[data-theme=light] .a9s-annotationlayer .a9s-outer{display:block;stroke:#00000040;stroke-width:3.5px}.a9s-annotationlayer .a9s-inner,div[data-theme=light] .a9s-annotationlayer .a9s-inner{fill:#ffffff26;stroke:#fff;stroke-width:1.5px}rect.a9s-handle,div[data-theme=light] rect.a9s-handle{fill:#fff;rx:1px;stroke:#00000073;stroke-width:1px}rect.a9s-close-polygon-handle,div[data-theme=light] rect.a9s-close-polygon-handle{fill:#fff;rx:1px;stroke:#00000073;stroke-width:1px}
1
+ .a9s-annotationlayer{box-sizing:border-box;height:100%;left:0;outline:none;position:absolute;top:0;touch-action:none;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.a9s-annotationlayer ellipse,.a9s-annotationlayer polygon,.a9s-annotationlayer rect{fill:transparent;shape-rendering:geometricPrecision;vector-effect:non-scaling-stroke}.a9s-edge-handle{fill:transparent;stroke:transparent;stroke-width:6px}.a9s-shape-handle,.a9s-corner-handle{cursor:move}.a9s-edge-handle-top{cursor:n-resize}.a9s-edge-handle-right{cursor:e-resize}.a9s-edge-handle-bottom{cursor:s-resize}.a9s-edge-handle-left{cursor:w-resize}.a9s-corner-handle.a9s-corner-handle-topleft{cursor:nw-resize}.a9s-corner-handle.a9s-corner-handle-topright{cursor:ne-resize}.a9s-corner-handle.a9s-corner-handle-bottomright{cursor:se-resize}.a9s-corner-handle.a9s-corner-handle-bottomleft{cursor:sw-resize}.a9s-annotationlayer .a9s-outer,div[data-theme=dark] .a9s-annotationlayer .a9s-outer{display:none}.a9s-annotationlayer .a9s-inner,div[data-theme=dark] .a9s-annotationlayer .a9s-inner{fill:#0000001f;stroke:#000;stroke-width:1px}rect.a9s-corner-handle,div[data-theme=dark] rect.a9s-corner-handle{fill:#000;rx:2px}rect.a9s-close-polygon-handle,div[data-theme=dark] rect.a9s-close-polygon-handle{fill:#000;rx:1px}.a9s-annotationlayer .a9s-outer,div[data-theme=light] .a9s-annotationlayer .a9s-outer{display:block;stroke:#00000040;stroke-width:3.5px}.a9s-annotationlayer .a9s-inner,div[data-theme=light] .a9s-annotationlayer .a9s-inner{fill:#ffffff26;stroke:#fff;stroke-width:1.5px}rect.a9s-corner-handle,div[data-theme=light] rect.a9s-corner-handle{fill:#fff;rx:1px;stroke:#00000073;stroke-width:1px}rect.a9s-close-polygon-handle,div[data-theme=light] rect.a9s-close-polygon-handle{fill:#fff;rx:1px;stroke:#00000073;stroke-width:1px}