@annotorious/openseadragon 3.0.0-rc.21 → 3.0.0-rc.23
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 +6 -6
- package/dist/Annotorious.d.ts.map +1 -1
- package/dist/annotation/pixi/PixiLayerClickEvent.d.ts +2 -1
- package/dist/annotation/pixi/PixiLayerConfiguration.d.ts +2 -1
- package/dist/annotation/pixi/stageRenderer.d.ts +9 -6
- package/dist/annotation/pixi/stageRenderer.d.ts.map +1 -1
- package/dist/annotorious-openseadragon.css +1 -1
- package/dist/annotorious-openseadragon.es.js +4118 -4105
- package/dist/annotorious-openseadragon.es.js.map +1 -1
- package/dist/annotorious-openseadragon.js +60 -60
- package/dist/annotorious-openseadragon.js.map +1 -1
- package/dist/api/fitBounds.d.ts +3 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/themes/setTheme.d.ts +3 -2
- package/package.json +11 -11
package/dist/api/fitBounds.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { default as OpenSeadragon } from 'openseadragon';
|
|
2
|
+
import { ImageAnnotationStore } from '@annotorious/annotorious';
|
|
3
|
+
|
|
3
4
|
export interface FitboundsOptions {
|
|
4
5
|
immediately?: boolean;
|
|
5
6
|
padding?: number | [number, number, number, number];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
export type { Annotation, AnnotationBody, AnnotationTarget, Annotator, AnnotatorState, Color, DrawingStyle, FormatAdapter, HoverState, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, ParseResult, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget } from '@annotorious/core';
|
|
1
|
+
import { ShapeType as _ShapeType } from '@annotorious/annotorious';
|
|
3
2
|
import { PointerSelectAction as _PointerSelectAction } from '@annotorious/core';
|
|
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';
|
|
4
5
|
export declare const defaultColorProvider: () => {
|
|
5
6
|
assignRandomColor: () => string;
|
|
6
7
|
releaseColor: (color: string) => number;
|
|
7
8
|
};
|
|
8
9
|
export declare const PointerSelectAction: typeof _PointerSelectAction;
|
|
9
|
-
export declare const createBody: (annotation: import(
|
|
10
|
+
export declare const createBody: (annotation: import('@annotorious/core').Annotation, payload: {
|
|
10
11
|
[key: string]: any;
|
|
11
|
-
}, created?: Date | undefined, creator?: import(
|
|
12
|
+
}, created?: Date | undefined, creator?: import('@annotorious/core').User | undefined) => import('@annotorious/core').AnnotationBody;
|
|
12
13
|
export type { AnnotoriousOpts, DrawingMode, DrawingTool, FragmentSelector, ImageAnnotator as AnnotoriousImageAnnotator, ImageAnnotation, ImageAnnotator, ImageAnnotatorState, Polygon, PolygonGeometry, Rectangle, RectangleGeometry, Shape, SVGSelector, W3CImageAnnotation, W3CImageAnnotationTarget } from '@annotorious/annotorious';
|
|
13
|
-
import
|
|
14
|
-
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> | undefined) => import("@annotorious/annotorious").ImageAnnotator<E>;
|
|
14
|
+
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> | undefined) => import('@annotorious/annotorious').ImageAnnotator<E>;
|
|
15
15
|
export declare const ShapeType: typeof _ShapeType;
|
|
16
|
-
export declare const W3CImageFormat: (source: string, invertY?: boolean | undefined) => import(
|
|
16
|
+
export declare const W3CImageFormat: (source: string, invertY?: boolean | undefined) => import('@annotorious/annotorious').W3CImageFormatAdapter;
|
|
17
17
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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,UAAU,EACV,SAAS,EACT,cAAc,EACd,KAAK,EACL,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAGL,mBAAmB,IAAI,oBAAoB,EAC5C,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,oBAAoB;;;CAAwB,CAAC;AAC1D,eAAO,MAAM,mBAAmB,6BAAuB,CAAC;AACxD,eAAO,MAAM,UAAU;;oIAAc,CAAC;AAGtC,YAAY,EACV,eAAe,EACf,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,cAAc,IAAI,yBAAyB,EAC3C,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,OAAO,EACP,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAEL,SAAS,IAAI,UAAU,EAExB,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,oBAAoB,yTAAwB,CAAC;AAC1D,eAAO,MAAM,SAAS,mBAAa,CAAC;AACpC,eAAO,MAAM,cAAc,6GAAkB,CAAC"}
|
|
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,eAAe,EACf,gBAAgB,EAChB,SAAS,EACT,cAAc,EACd,KAAK,EACL,YAAY,EACZ,sBAAsB,EACtB,aAAa,EACb,UAAU,EACV,SAAS,EACT,cAAc,EACd,KAAK,EACL,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,IAAI,EACJ,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAGL,mBAAmB,IAAI,oBAAoB,EAC5C,MAAM,mBAAmB,CAAC;AAE3B,eAAO,MAAM,oBAAoB;;;CAAwB,CAAC;AAC1D,eAAO,MAAM,mBAAmB,6BAAuB,CAAC;AACxD,eAAO,MAAM,UAAU;;oIAAc,CAAC;AAGtC,YAAY,EACV,eAAe,EACf,WAAW,EACX,WAAW,EACX,gBAAgB,EAChB,cAAc,IAAI,yBAAyB,EAC3C,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,OAAO,EACP,eAAe,EACf,SAAS,EACT,iBAAiB,EACjB,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAEL,SAAS,IAAI,UAAU,EAExB,MAAM,0BAA0B,CAAC;AAElC,eAAO,MAAM,oBAAoB,yTAAwB,CAAC;AAC1D,eAAO,MAAM,SAAS,mBAAa,CAAC;AACpC,eAAO,MAAM,cAAc,6GAAkB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Theme } from '@annotorious/annotorious';
|
|
2
|
+
import { default as OpenSeadragon } from 'openseadragon';
|
|
3
|
+
|
|
3
4
|
export declare const setTheme: (viewer: OpenSeadragon.Viewer, theme: Theme) => void;
|
|
4
5
|
//# sourceMappingURL=setTheme.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annotorious/openseadragon",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.23",
|
|
4
4
|
"description": "Annotorious for OpenSeadragon",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
"./annotorious-openseadragon.css": "./dist/annotorious-openseadragon.css"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@sveltejs/vite-plugin-svelte": "^3.0
|
|
38
|
-
"@tsconfig/svelte": "^5.0.
|
|
37
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
|
38
|
+
"@tsconfig/svelte": "^5.0.4",
|
|
39
39
|
"@types/openseadragon": "^3.0.10",
|
|
40
40
|
"@types/rbush": "^3.0.3",
|
|
41
41
|
"@types/uuid": "^9.0.8",
|
|
42
|
-
"svelte": "^4.2.
|
|
43
|
-
"svelte-preprocess": "^5.1.
|
|
44
|
-
"typescript": "^5.
|
|
45
|
-
"vite": "^5.2.
|
|
46
|
-
"vite-plugin-dts": "^3.
|
|
42
|
+
"svelte": "^4.2.15",
|
|
43
|
+
"svelte-preprocess": "^5.1.4",
|
|
44
|
+
"typescript": "^5.4.5",
|
|
45
|
+
"vite": "^5.2.10",
|
|
46
|
+
"vite-plugin-dts": "^3.9.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"openseadragon": "^3.0.0 || ^4.0.0"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@annotorious/core": "
|
|
53
|
-
"@annotorious/annotorious": "
|
|
52
|
+
"@annotorious/core": "3.0.0-rc.23",
|
|
53
|
+
"@annotorious/annotorious": "3.0.0-rc.23",
|
|
54
54
|
"pixi.js": "^7.4.2",
|
|
55
55
|
"uuid": "^9.0.1"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|