@annotorious/svelte 3.0.0-rc.1 → 3.0.0-rc.10
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-svelte.es.js +14 -6
- package/dist/annotorious-svelte.es.js.map +1 -1
- package/dist/annotorious-svelte.es10.js +120 -2
- package/dist/annotorious-svelte.es10.js.map +1 -1
- package/dist/annotorious-svelte.es11.js +2 -2
- package/dist/annotorious-svelte.es11.js.map +1 -1
- package/dist/annotorious-svelte.es12.js +20 -0
- package/dist/annotorious-svelte.es12.js.map +1 -0
- package/dist/annotorious-svelte.es13.js +7 -0
- package/dist/annotorious-svelte.es13.js.map +1 -0
- package/dist/annotorious-svelte.es14.js +11 -0
- package/dist/annotorious-svelte.es14.js.map +1 -0
- package/dist/annotorious-svelte.es15.js +10 -0
- package/dist/annotorious-svelte.es15.js.map +1 -0
- package/dist/annotorious-svelte.es2.js +1 -1
- package/dist/annotorious-svelte.es3.js +2 -110
- package/dist/annotorious-svelte.es3.js.map +1 -1
- package/dist/annotorious-svelte.es4.js +9 -123
- package/dist/annotorious-svelte.es4.js.map +1 -1
- package/dist/annotorious-svelte.es5.js +1204 -223
- package/dist/annotorious-svelte.es5.js.map +1 -1
- package/dist/annotorious-svelte.es6.js +108 -7
- package/dist/annotorious-svelte.es6.js.map +1 -1
- package/dist/annotorious-svelte.es7.js +125 -2
- package/dist/annotorious-svelte.es7.js.map +1 -1
- package/dist/annotorious-svelte.es8.js +238 -20518
- package/dist/annotorious-svelte.es8.js.map +1 -1
- package/dist/annotorious-svelte.es9.js +22148 -115
- package/dist/annotorious-svelte.es9.js.map +1 -1
- package/dist/index.d.ts +11 -2
- package/dist/index.d.ts.map +1 -1
- package/package.json +7 -2
- package/src/index.ts +53 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
export * from './osd';
|
|
2
2
|
export { default as MouseOverTooltip } from './MouseOverTooltip.svelte';
|
|
3
|
-
export type {
|
|
4
|
-
export type {
|
|
3
|
+
export type { Annotation, AnnotationBody, AnnotationTarget, Annotator, AnnotatorState, Color, DrawingStyle, FormatAdapter, ParseResult, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget, W3CSelector } from '@annotorious/core/src/model';
|
|
4
|
+
export type { HoverState, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, SvelteAnnotator, SvelteAnnotatorState } from '@annotorious/core/src/state';
|
|
5
|
+
import { PointerSelectAction as _PointerSelectAction } from '@annotorious/core/src/state';
|
|
6
|
+
export declare const PointerSelectAction: typeof _PointerSelectAction;
|
|
7
|
+
export declare const createBody: (annotation: import("@annotorious/core/src/model").Annotation, payload: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}, created?: Date, creator?: import("@annotorious/core/src/model").User) => import("@annotorious/core/src/model").AnnotationBody;
|
|
10
|
+
export type { ImageAnnotator, ImageAnnotation, ImageAnnotatorState, Polygon, Rectangle, Shape } from '@annotorious/annotorious';
|
|
11
|
+
import { ShapeType as _ShapeType } from '@annotorious/annotorious';
|
|
12
|
+
export declare const ShapeType: typeof _ShapeType;
|
|
13
|
+
export declare const W3CImageFormat: (source: string, invertY?: boolean) => import("@annotorious/annotorious").W3CImageFormatAdapter;
|
|
5
14
|
//# 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,OAAO,CAAC;AAEtB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGxE,YAAY,EACV,eAAe,EACf,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AAEtB,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAGxE,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;AAErC,YAAY,EACV,UAAU,EACV,SAAS,EACT,cAAc,EACd,KAAK,EACL,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,oBAAoB,EACrB,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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annotorious/svelte",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.10",
|
|
4
4
|
"description": "Annotorious Svelte bindings",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
"types": "./src/index.ts",
|
|
16
16
|
"svelte": "./src/index.ts",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@annotorious/core": "*",
|
|
19
18
|
"@sveltejs/vite-plugin-svelte": "^2.4.6",
|
|
20
19
|
"@tsconfig/svelte": "^3.0.0",
|
|
21
20
|
"@types/openseadragon": "^3.0.7",
|
|
@@ -27,7 +26,13 @@
|
|
|
27
26
|
"vite-plugin-dts": "^3.6.0"
|
|
28
27
|
},
|
|
29
28
|
"peerDependencies": {
|
|
29
|
+
"@annotorious/core": "*",
|
|
30
30
|
"openseadragon": "^3.0.0 || ^4.0.0"
|
|
31
31
|
},
|
|
32
|
+
"peerDependenciesMeta": {
|
|
33
|
+
"openseadragon": {
|
|
34
|
+
"optional": true
|
|
35
|
+
}
|
|
36
|
+
},
|
|
32
37
|
"sideEffects": false
|
|
33
38
|
}
|
package/src/index.ts
CHANGED
|
@@ -2,13 +2,61 @@ export * from './osd';
|
|
|
2
2
|
|
|
3
3
|
export { default as MouseOverTooltip } from './MouseOverTooltip.svelte';
|
|
4
4
|
|
|
5
|
-
//
|
|
5
|
+
// Essential re-exports from @annotorious/core
|
|
6
6
|
export type {
|
|
7
|
+
Annotation,
|
|
8
|
+
AnnotationBody,
|
|
9
|
+
AnnotationTarget,
|
|
10
|
+
Annotator,
|
|
11
|
+
AnnotatorState,
|
|
12
|
+
Color,
|
|
13
|
+
DrawingStyle,
|
|
14
|
+
FormatAdapter,
|
|
15
|
+
ParseResult,
|
|
16
|
+
User,
|
|
17
|
+
W3CAnnotation,
|
|
18
|
+
W3CAnnotationBody,
|
|
19
|
+
W3CAnnotationTarget,
|
|
20
|
+
W3CSelector
|
|
21
|
+
} from '@annotorious/core/src/model';
|
|
22
|
+
|
|
23
|
+
export type {
|
|
24
|
+
HoverState,
|
|
25
|
+
Selection,
|
|
26
|
+
SelectionState,
|
|
27
|
+
Store,
|
|
28
|
+
StoreChangeEvent,
|
|
29
|
+
StoreObserver,
|
|
7
30
|
SvelteAnnotator,
|
|
8
31
|
SvelteAnnotatorState
|
|
9
|
-
} from '@annotorious/core';
|
|
32
|
+
} from '@annotorious/core/src/state';
|
|
33
|
+
|
|
34
|
+
import {
|
|
35
|
+
PointerSelectAction as _PointerSelectAction
|
|
36
|
+
} from '@annotorious/core/src/state';
|
|
37
|
+
|
|
38
|
+
export const PointerSelectAction = _PointerSelectAction;
|
|
39
|
+
|
|
40
|
+
import {
|
|
41
|
+
createBody as _createBody
|
|
42
|
+
} from '@annotorious/core/src/utils';
|
|
10
43
|
|
|
11
|
-
|
|
44
|
+
export const createBody = _createBody;
|
|
45
|
+
|
|
46
|
+
// Essential re-exports from @annotorious/annotorious
|
|
12
47
|
export type {
|
|
13
|
-
|
|
14
|
-
|
|
48
|
+
ImageAnnotator,
|
|
49
|
+
ImageAnnotation,
|
|
50
|
+
ImageAnnotatorState,
|
|
51
|
+
Polygon,
|
|
52
|
+
Rectangle,
|
|
53
|
+
Shape
|
|
54
|
+
} from '@annotorious/annotorious';
|
|
55
|
+
|
|
56
|
+
import {
|
|
57
|
+
ShapeType as _ShapeType,
|
|
58
|
+
W3CImageFormat as _W3CImageFormat
|
|
59
|
+
} from '@annotorious/annotorious';
|
|
60
|
+
|
|
61
|
+
export const ShapeType = _ShapeType;
|
|
62
|
+
export const W3CImageFormat = _W3CImageFormat;
|