@annotorious/openseadragon 3.0.0-rc.9 → 3.0.1
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.
- package/dist/Annotorious.d.ts +7 -8
- package/dist/annotation/index.d.ts +0 -1
- package/dist/annotation/pixi/PixiLayer.svelte.d.ts +1 -1
- package/dist/annotation/pixi/PixiLayerClickEvent.d.ts +1 -2
- package/dist/annotation/pixi/PixiLayerConfiguration.d.ts +1 -2
- package/dist/annotation/pixi/index.d.ts +0 -1
- package/dist/annotation/pixi/stageRenderer.d.ts +9 -8
- package/dist/annotation/svg/OSDLayer.svelte.d.ts +1 -1
- package/dist/annotation/svg/drawing/OSDToolMount.svelte.d.ts +1 -1
- package/dist/annotation/svg/drawing/SVGDrawingLayer.svelte.d.ts +1 -1
- package/dist/annotation/svg/index.d.ts +0 -1
- package/dist/annotation/svg/presence/SVGPresenceLabel.svelte.d.ts +1 -1
- package/dist/annotation/svg/presence/SVGPresenceLayer.svelte.d.ts +1 -1
- package/dist/annotation/svg/presence/shapes/PresencePolygon.svelte.d.ts +1 -1
- package/dist/annotation/svg/presence/shapes/PresenceRectangle.svelte.d.ts +1 -1
- package/dist/annotorious-openseadragon.css +1 -1
- package/dist/annotorious-openseadragon.es.js +29393 -20359
- package/dist/annotorious-openseadragon.es.js.map +1 -1
- package/dist/annotorious-openseadragon.js +627 -1038
- package/dist/annotorious-openseadragon.js.map +1 -1
- package/dist/api/fitBounds.d.ts +4 -5
- package/dist/api/index.d.ts +0 -1
- package/dist/index.d.ts +7 -15
- package/dist/themes/index.d.ts +0 -1
- package/dist/themes/setTheme.d.ts +2 -3
- package/package.json +18 -17
- package/dist/Annotorious.d.ts.map +0 -1
- package/dist/annotation/index.d.ts.map +0 -1
- package/dist/annotation/pixi/PixiLayerClickEvent.d.ts.map +0 -1
- package/dist/annotation/pixi/PixiLayerConfiguration.d.ts.map +0 -1
- package/dist/annotation/pixi/index.d.ts.map +0 -1
- package/dist/annotation/pixi/stageRenderer.d.ts.map +0 -1
- package/dist/annotation/svg/index.d.ts.map +0 -1
- package/dist/api/fitBounds.d.ts.map +0 -1
- package/dist/api/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/themes/index.d.ts.map +0 -1
- package/dist/themes/setTheme.d.ts.map +0 -1
package/dist/api/fitBounds.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Annotation, ImageAnnotationStore } from '@annotorious/annotorious';
|
|
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;
|
|
13
|
-
//# sourceMappingURL=fitBounds.d.ts.map
|
package/dist/api/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
export type { Annotation, AnnotationBody, AnnotationTarget, Annotator, AnnotatorState, Color, DrawingStyle, FormatAdapter, ParseResult, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget, W3CSelector } from '@annotorious/core/src/model';
|
|
3
|
-
export declare const defaultColorProvider: () => {
|
|
4
|
-
assignRandomColor: () => string;
|
|
5
|
-
releaseColor: (color: string) => number;
|
|
6
|
-
};
|
|
7
|
-
export type { HoverState, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver } from '@annotorious/core/src/state';
|
|
8
|
-
import { PointerSelectAction as _PointerSelectAction } from '@annotorious/core/src/state';
|
|
9
|
-
export declare const PointerSelectAction: typeof _PointerSelectAction;
|
|
10
|
-
export declare const createBody: (annotation: import("@annotorious/core/src/model").Annotation, payload: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
}, created?: Date, creator?: import("@annotorious/core/src/model").User) => import("@annotorious/core/src/model").AnnotationBody;
|
|
13
|
-
export type { ImageAnnotator, ImageAnnotation, ImageAnnotatorState, Polygon, Rectangle, Shape } from '@annotorious/annotorious';
|
|
1
|
+
import { createBody as _createBody, defaultColorProvider as _defaultColorProvider, UserSelectAction as _UserSelectAction } from '@annotorious/core';
|
|
14
2
|
import { ShapeType as _ShapeType } from '@annotorious/annotorious';
|
|
3
|
+
export * from './Annotorious';
|
|
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
|
+
export { _createBody as createBody, _defaultColorProvider as defaultColorProvider, _UserSelectAction as UserSelectAction };
|
|
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: <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>;
|
|
15
8
|
export declare const ShapeType: typeof _ShapeType;
|
|
16
|
-
export declare const W3CImageFormat: (source: string,
|
|
17
|
-
//# sourceMappingURL=index.d.ts.map
|
|
9
|
+
export declare const W3CImageFormat: (source: string, opts?: import('@annotorious/annotorious').W3CImageFormatAdapterOpts) => import('@annotorious/annotorious').W3CImageFormatAdapter;
|
package/dist/themes/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { default as OpenSeadragon } from 'openseadragon';
|
|
2
|
+
import { Theme } from '@annotorious/annotorious';
|
|
3
3
|
export declare const setTheme: (viewer: OpenSeadragon.Viewer, theme: Theme) => void;
|
|
4
|
-
//# sourceMappingURL=setTheme.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annotorious/openseadragon",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Annotorious for OpenSeadragon",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
7
|
-
"homepage": "https://annotorious.
|
|
7
|
+
"homepage": "https://annotorious.dev",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
@@ -34,23 +34,24 @@
|
|
|
34
34
|
"./annotorious-openseadragon.css": "./dist/annotorious-openseadragon.css"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@sveltejs/vite-plugin-svelte": "^
|
|
38
|
-
"@tsconfig/svelte": "^
|
|
39
|
-
"@types/openseadragon": "^3.0.
|
|
40
|
-
"@types/rbush": "^3.0.
|
|
41
|
-
"@types/uuid": "^
|
|
42
|
-
"svelte": "^
|
|
43
|
-
"svelte-preprocess": "^
|
|
44
|
-
"typescript": "
|
|
45
|
-
"vite": "^4.2
|
|
46
|
-
"vite-plugin-dts": "^
|
|
37
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
|
38
|
+
"@tsconfig/svelte": "^5.0.4",
|
|
39
|
+
"@types/openseadragon": "^3.0.10",
|
|
40
|
+
"@types/rbush": "^3.0.4",
|
|
41
|
+
"@types/uuid": "^10.0.0",
|
|
42
|
+
"svelte": "^4.2.19",
|
|
43
|
+
"svelte-preprocess": "^6.0.2",
|
|
44
|
+
"typescript": "5.5.4",
|
|
45
|
+
"vite": "^5.4.2",
|
|
46
|
+
"vite-plugin-dts": "^4.0.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"openseadragon": "^3.0.0 || ^4.0.0"
|
|
49
|
+
"openseadragon": "^3.0.0 || ^4.0.0 || ^5.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@
|
|
53
|
-
"
|
|
54
|
-
"
|
|
52
|
+
"@annotorious/core": "3.0.1",
|
|
53
|
+
"@annotorious/annotorious": "3.0.1",
|
|
54
|
+
"pixi.js": "^7.4.2",
|
|
55
|
+
"uuid": "^10.0.0"
|
|
55
56
|
}
|
|
56
|
-
}
|
|
57
|
+
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Annotorious.d.ts","sourceRoot":"","sources":["../src/Annotorious.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAO9C,OAAO,KAAK,EACV,SAAS,EAKV,MAAM,mBAAmB,CAAC;AAU3B,OAAO,KAAK,EACV,eAAe,EACf,WAAW,EACX,eAAe,EACf,eAAe,EACf,SAAS,EAEV,MAAM,0BAA0B,CAAC;AAIlC,OAAO,EAGL,KAAK,gBAAgB,EACtB,MAAM,OAAO,CAAC;AAEf,OAAO,0CAA0C,CAAC;AAElD,MAAM,WAAW,sBAAsB,CAAC,CAAC,SAAS,OAAO,GAAG,eAAe,CAAE,SAAQ,SAAS,CAAC,eAAe,EAAE,CAAC,CAAC;IAEhH,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC;IAE7B,SAAS,CAAC,GAAG,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAEvE,wBAAwB,CAAC,GAAG,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IAEtF,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;IAE1C,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CAElD;AAED,eAAO,MAAM,kBAAkB,gDACrB,cAAc,MAAM,6EA2J7B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/annotation/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PixiLayerClickEvent.d.ts","sourceRoot":"","sources":["../../../src/annotation/pixi/PixiLayerClickEvent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,MAAM,WAAW,mBAAmB;IAElC,aAAa,EAAE,YAAY,CAAC;IAE5B,UAAU,CAAC,EAAE,eAAe,CAAC;CAE9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PixiLayerConfiguration.d.ts","sourceRoot":"","sources":["../../../src/annotation/pixi/PixiLayerConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAElF,MAAM,WAAW,sBAAsB;IAErC;;;OAGG;IACH,OAAO,CAAC,EAAE,eAAe,EAAE,CAAC;IAE5B,iDAAiD;IACjD,KAAK,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,CAAC,EAAE,eAAe,KAAK,YAAY,CAAC,CAAC;CAE/D;AAED,MAAM,MAAM,eAAe,GAAG;IAAE,CAAC,UAAU,EAAE,eAAe,GAAG,OAAO,CAAA;CAAE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/annotation/pixi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC1D,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stageRenderer.d.ts","sourceRoot":"","sources":["../../../src/annotation/pixi/stageRenderer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAE/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,KAAK,EAAW,eAAe,EAA6B,MAAM,8BAA8B,CAAC;AAsExG,eAAO,MAAM,WAAW,WAAY,cAAc,MAAM,UAAU,iBAAiB;gCAqB9C,eAAe;;;mCAuBZ,eAAe;oBAmB9B,MAAM,UAAU,MAAM;wBAKlB,MAAM;6BAmBD,SAAS;sCAKA,eAAe,KAAK,YAAY;iCAxCrC,eAAe,YAAY,eAAe;CA0E/E,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/annotation/svg/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fitBounds.d.ts","sourceRoot":"","sources":["../../src/api/fitBounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAE/B,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,OAAO,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAA;CAEpD;AA0CD,eAAO,MAAM,SAAS,WACZ,cAAc,MAAM,SACrB,oBAAoB,WAtClB;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,SAAQ,gBAAgB,SAuCf,CAAC;AAE5C,eAAO,MAAM,wBAAwB,WAC3B,cAAc,MAAM,SACrB,oBAAoB,WA3ClB;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,SAAQ,gBAAgB,SA4CA,CAAC"}
|
package/dist/api/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/dist/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAG9B,YAAY,EACV,UAAU,EACV,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,KAAK,EACL,YAAY,EACZ,aAAa,EACb,WAAW,EACX,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACZ,MAAM,6BAA6B,CAAC;AAMrC,eAAO,MAAM,oBAAoB;;;CAAwB,CAAC;AAE1D,YAAY,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,KAAK,EACL,gBAAgB,EAChB,aAAa,EACd,MAAM,6BAA6B,CAAC;AAErC,OAAO,EACL,mBAAmB,IAAI,oBAAoB,EAC5C,MAAM,6BAA6B,CAAC;AAErC,eAAO,MAAM,mBAAmB,6BAAuB,CAAC;AAMxD,eAAO,MAAM,UAAU;;gIAAc,CAAC;AAGtC,YAAY,EACV,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,OAAO,EACP,SAAS,EACT,KAAK,EACN,MAAM,0BAA0B,CAAC;AAElC,OAAO,EACL,SAAS,IAAI,UAAU,EAExB,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,SAAS,mBAAa,CAAC;AACpC,eAAO,MAAM,cAAc,iGAAkB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/themes/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"setTheme.d.ts","sourceRoot":"","sources":["../../src/themes/setTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AAG1D,eAAO,MAAM,QAAQ,WAAY,cAAc,MAAM,SAAS,KAAK,SAuBlE,CAAA"}
|