@annotorious/annotorious 3.0.3 → 3.0.4
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.
|
@@ -2,7 +2,7 @@ import { ImageAnnotation } from '../model';
|
|
|
2
2
|
import { AnnotoriousOpts } from '../AnnotoriousOpts';
|
|
3
3
|
import { Annotation, AnnotatorState, HoverState, SelectionState } from '@annotorious/core';
|
|
4
4
|
import { ImageAnnotationStore, SvelteImageAnnotatorState } from './ImageAnnotationStore';
|
|
5
|
-
export type ImageAnnotatorState<I extends Annotation> = AnnotatorState<I> & {
|
|
5
|
+
export type ImageAnnotatorState<I extends Annotation = ImageAnnotation> = AnnotatorState<I> & {
|
|
6
6
|
store: ImageAnnotationStore<I>;
|
|
7
7
|
selection: SelectionState<ImageAnnotation>;
|
|
8
8
|
hover: HoverState<ImageAnnotation>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annotorious/annotorious",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Add image annotation functionality to any web page with a few lines of JavaScript",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"vitest": "^2.0.5"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@annotorious/core": "3.0.
|
|
51
|
+
"@annotorious/core": "3.0.4",
|
|
52
52
|
"rbush": "^4.0.1",
|
|
53
53
|
"uuid": "^10.0.0"
|
|
54
54
|
}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
$: if (editorComponent) editorComponent.$set({ transform });
|
|
24
24
|
$: if (editorComponent) editorComponent.$set({ viewportScale });
|
|
25
25
|
|
|
26
|
-
onMount(() => {
|
|
26
|
+
onMount(() => {
|
|
27
27
|
editorComponent = new editor({
|
|
28
28
|
target,
|
|
29
29
|
props: { shape: annotation.target.selector, computedStyle, transform, viewportScale }
|
|
@@ -20,7 +20,7 @@ import type {
|
|
|
20
20
|
SvelteImageAnnotatorState
|
|
21
21
|
} from './ImageAnnotationStore';
|
|
22
22
|
|
|
23
|
-
export type ImageAnnotatorState<I extends Annotation> = AnnotatorState<I> & {
|
|
23
|
+
export type ImageAnnotatorState<I extends Annotation = ImageAnnotation> = AnnotatorState<I> & {
|
|
24
24
|
|
|
25
25
|
store: ImageAnnotationStore<I>;
|
|
26
26
|
|