@annotorious/openseadragon 3.0.0 → 3.0.2

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,12 +1,12 @@
1
- import { ImageAnnotationStore } from '@annotorious/annotorious';
1
+ import { Annotation, ImageAnnotationStore } from '@annotorious/annotorious';
2
2
  import { default as OpenSeadragon } from 'openseadragon';
3
3
  export interface FitboundsOptions {
4
4
  immediately?: boolean;
5
5
  padding?: number | [number, number, number, number];
6
6
  }
7
- export declare const fitBounds: (viewer: OpenSeadragon.Viewer, store: ImageAnnotationStore) => (arg: {
7
+ export declare const fitBounds: <I extends Annotation>(viewer: OpenSeadragon.Viewer, store: ImageAnnotationStore<I>) => (arg: {
8
8
  id: string;
9
9
  } | string, opts?: FitboundsOptions) => void;
10
- export declare const fitBoundsWithConstraints: (viewer: OpenSeadragon.Viewer, store: ImageAnnotationStore) => (arg: {
10
+ export declare const fitBoundsWithConstraints: <I extends Annotation>(viewer: OpenSeadragon.Viewer, store: ImageAnnotationStore<I>) => (arg: {
11
11
  id: string;
12
12
  } | string, opts?: FitboundsOptions) => void;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,6 @@ export * from './Annotorious';
4
4
  export type { Annotation, AnnotationBody, AnnotationState, AnnotationTarget, Annotator, AnnotatorState, Color, DrawingStyle, DrawingStyleExpression, FormatAdapter, HoverState, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, ParseResult, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget } from '@annotorious/core';
5
5
  export { _createBody as createBody, _defaultColorProvider as defaultColorProvider, _UserSelectAction as UserSelectAction };
6
6
  export type { AnnotoriousOpts, DrawingMode, DrawingTool, FragmentSelector, ImageAnnotator as AnnotoriousImageAnnotator, ImageAnnotation, ImageAnnotator, ImageAnnotatorState, Polygon, PolygonGeometry, Rectangle, RectangleGeometry, Shape, SVGSelector, W3CImageAnnotation, W3CImageAnnotationTarget, W3CImageFormatAdapter, W3CImageFormatAdapterOpts } from '@annotorious/annotorious';
7
- export declare const createImageAnnotator: <E extends unknown = import('@annotorious/annotorious').ImageAnnotation>(image: string | HTMLImageElement | HTMLCanvasElement, options?: import('@annotorious/annotorious').AnnotoriousOpts<import('@annotorious/annotorious').ImageAnnotation, E>) => import('@annotorious/annotorious').ImageAnnotator<E>;
7
+ export declare const createImageAnnotator: <I extends import('@annotorious/core').Annotation = import('@annotorious/annotorious').ImageAnnotation, E extends unknown = import('@annotorious/annotorious').ImageAnnotation>(image: string | HTMLImageElement | HTMLCanvasElement, options?: import('@annotorious/annotorious').AnnotoriousOpts<I, E>) => import('@annotorious/annotorious').ImageAnnotator<I, E>;
8
8
  export declare const ShapeType: typeof _ShapeType;
9
9
  export declare const W3CImageFormat: (source: string, opts?: import('@annotorious/annotorious').W3CImageFormatAdapterOpts) => import('@annotorious/annotorious').W3CImageFormatAdapter;
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@annotorious/openseadragon",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Annotorious for OpenSeadragon",
5
5
  "author": "Rainer Simon",
6
6
  "license": "BSD-3-Clause",
7
- "homepage": "https://annotorious.github.io",
7
+ "homepage": "https://annotorious.dev",
8
8
  "type": "module",
9
9
  "repository": {
10
10
  "type": "git",
@@ -49,8 +49,8 @@
49
49
  "openseadragon": "^3.0.0 || ^4.0.0 || ^5.0.0"
50
50
  },
51
51
  "dependencies": {
52
- "@annotorious/core": "3.0.0",
53
- "@annotorious/annotorious": "3.0.0",
52
+ "@annotorious/core": "3.0.2",
53
+ "@annotorious/annotorious": "3.0.2",
54
54
  "pixi.js": "^7.4.2",
55
55
  "uuid": "^10.0.0"
56
56
  }