@annotorious/openseadragon 3.0.0-rc.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.
Files changed (39) hide show
  1. package/README.md +3 -0
  2. package/dist/Annotorious.d.ts +21 -0
  3. package/dist/Annotorious.d.ts.map +1 -0
  4. package/dist/annotation/index.d.ts +3 -0
  5. package/dist/annotation/index.d.ts.map +1 -0
  6. package/dist/annotation/pixi/PixiLayer.svelte.d.ts +1 -0
  7. package/dist/annotation/pixi/PixiLayerClickEvent.d.ts +6 -0
  8. package/dist/annotation/pixi/PixiLayerClickEvent.d.ts.map +1 -0
  9. package/dist/annotation/pixi/PixiLayerConfiguration.d.ts +14 -0
  10. package/dist/annotation/pixi/PixiLayerConfiguration.d.ts.map +1 -0
  11. package/dist/annotation/pixi/index.d.ts +4 -0
  12. package/dist/annotation/pixi/index.d.ts.map +1 -0
  13. package/dist/annotation/pixi/stageRenderer.d.ts +12 -0
  14. package/dist/annotation/pixi/stageRenderer.d.ts.map +1 -0
  15. package/dist/annotation/svg/OSDLayer.svelte.d.ts +1 -0
  16. package/dist/annotation/svg/drawing/OSDToolMount.svelte.d.ts +1 -0
  17. package/dist/annotation/svg/drawing/SVGDrawingLayer.svelte.d.ts +1 -0
  18. package/dist/annotation/svg/index.d.ts +3 -0
  19. package/dist/annotation/svg/index.d.ts.map +1 -0
  20. package/dist/annotation/svg/presence/SVGPresenceLabel.svelte.d.ts +1 -0
  21. package/dist/annotation/svg/presence/SVGPresenceLayer.svelte.d.ts +1 -0
  22. package/dist/annotation/svg/presence/shapes/PresencePolygon.svelte.d.ts +1 -0
  23. package/dist/annotation/svg/presence/shapes/PresenceRectangle.svelte.d.ts +1 -0
  24. package/dist/annotorious-openseadragon.css +1 -0
  25. package/dist/annotorious-openseadragon.es.js +21876 -0
  26. package/dist/annotorious-openseadragon.es.js.map +1 -0
  27. package/dist/annotorious-openseadragon.js +1559 -0
  28. package/dist/annotorious-openseadragon.js.map +1 -0
  29. package/dist/api/fitBounds.d.ts +13 -0
  30. package/dist/api/fitBounds.d.ts.map +1 -0
  31. package/dist/api/index.d.ts +2 -0
  32. package/dist/api/index.d.ts.map +1 -0
  33. package/dist/index.d.ts +17 -0
  34. package/dist/index.d.ts.map +1 -0
  35. package/dist/keyCommands.d.ts +4 -0
  36. package/dist/keyCommands.d.ts.map +1 -0
  37. package/dist/themes/setTheme.d.ts +3 -0
  38. package/dist/themes/setTheme.d.ts.map +1 -0
  39. package/package.json +56 -0
@@ -0,0 +1,13 @@
1
+ import type { ImageAnnotationStore } from '@annotorious/annotorious/src';
2
+ import type OpenSeadragon from 'openseadragon';
3
+ export interface FitboundsOptions {
4
+ immediately?: boolean;
5
+ padding?: number | [number, number, number, number];
6
+ }
7
+ export declare const fitBounds: (viewer: OpenSeadragon.Viewer, store: ImageAnnotationStore) => (arg: {
8
+ id: string;
9
+ } | string, opts?: FitboundsOptions) => void;
10
+ export declare const fitBoundsWithConstraints: (viewer: OpenSeadragon.Viewer, store: ImageAnnotationStore) => (arg: {
11
+ id: string;
12
+ } | string, opts?: FitboundsOptions) => void;
13
+ //# sourceMappingURL=fitBounds.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,2 @@
1
+ export * from './fitBounds';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,17 @@
1
+ export * from './Annotorious';
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/annotorious").Annotation, payload: {
11
+ [key: string]: any;
12
+ }, created?: Date, creator?: import("@annotorious/annotorious").User) => import("@annotorious/annotorious").AnnotationBody;
13
+ export type { ImageAnnotator, ImageAnnotation, ImageAnnotatorState, Polygon, Rectangle, Shape } from '@annotorious/annotorious';
14
+ import { ShapeType as _ShapeType } from '@annotorious/annotorious';
15
+ export declare const ShapeType: typeof _ShapeType;
16
+ export declare const W3CImageFormat: (source: string, invertY?: boolean) => import("@annotorious/annotorious").W3CImageFormatAdapter;
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,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;;0HAAc,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"}
@@ -0,0 +1,4 @@
1
+ import type { ImageAnnotation, ImageAnnotationStore } from '@annotorious/annotorious/src';
2
+ import type { SelectionState } from '@annotorious/core';
3
+ export declare const initKeyCommands: (container: HTMLElement, selection: SelectionState<ImageAnnotation>, store: ImageAnnotationStore) => void;
4
+ //# sourceMappingURL=keyCommands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyCommands.d.ts","sourceRoot":"","sources":["../src/keyCommands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC1F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD,eAAO,MAAM,eAAe,cACf,WAAW,aACX,eAAe,eAAe,CAAC,SACnC,oBAAoB,SAkB5B,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type OpenSeadragon from 'openseadragon';
2
+ export declare const setTheme: (viewer: OpenSeadragon.Viewer) => void;
3
+ //# sourceMappingURL=setTheme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setTheme.d.ts","sourceRoot":"","sources":["../../src/themes/setTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,aAAa,MAAM,eAAe,CAAC;AAG/C,eAAO,MAAM,QAAQ,WAAY,cAAc,MAAM,SAkBpD,CAAA"}
package/package.json ADDED
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "@annotorious/openseadragon",
3
+ "version": "3.0.0-rc.1",
4
+ "description": "Annotorious for OpenSeadragon",
5
+ "author": "Rainer Simon",
6
+ "license": "BSD-3-Clause",
7
+ "homepage": "https://annotorious.github.io",
8
+ "type": "module",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/recogito/annotorious.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/recogito/annotorious/issues"
15
+ },
16
+ "scripts": {
17
+ "start": "vite",
18
+ "build": "tsc && vite build",
19
+ "preview": "vite preview",
20
+ "test": "echo 'Skipping tests in @annotorious/openseadragon package'"
21
+ },
22
+ "main": "./dist/annotorious-openseadragon.js",
23
+ "module": "./dist/annotorious-openseadragon.es.js",
24
+ "types": "./dist/index.d.ts",
25
+ "files": [
26
+ "dist"
27
+ ],
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/annotorious-openseadragon.es.js",
32
+ "require": "./dist/annotorious-openseadragon.js"
33
+ },
34
+ "./annotorious-openseadragon.css": "./dist/annotorious-openseadragon.css"
35
+ },
36
+ "devDependencies": {
37
+ "@sveltejs/vite-plugin-svelte": "^2.0.4",
38
+ "@tsconfig/svelte": "^3.0.0",
39
+ "@types/openseadragon": "^3.0.4",
40
+ "@types/rbush": "^3.0.0",
41
+ "@types/uuid": "^9.0.1",
42
+ "svelte": "^3.59.2",
43
+ "svelte-preprocess": "^4.10.7",
44
+ "typescript": "^4.9.5",
45
+ "vite": "^4.2.1",
46
+ "vite-plugin-dts": "^3.6.0"
47
+ },
48
+ "peerDependencies": {
49
+ "openseadragon": "^3.0.0 || ^4.0.0"
50
+ },
51
+ "dependencies": {
52
+ "@neodrag/svelte": "^2.0.3",
53
+ "pixi.js": "^6.5.10",
54
+ "uuid": "^9.0.0"
55
+ }
56
+ }