@annotorious/annotorious 3.0.0-rc.23 → 3.0.0-rc.25
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 +5 -5
- package/dist/AnnotoriousOpts.d.ts +2 -2
- package/dist/AnnotoriousOpts.d.ts.map +1 -1
- package/dist/annotation/SVGAnnotationLayerPointerEvent.d.ts +1 -1
- package/dist/annotation/editors/editorsRegistry.d.ts +1 -1
- package/dist/annotation/tools/drawingToolsRegistry.d.ts +1 -1
- package/dist/annotation/utils/styling.d.ts +1 -1
- package/dist/annotorious.es.js +773 -761
- package/dist/annotorious.es.js.map +1 -1
- package/dist/annotorious.js +1 -1
- package/dist/annotorious.js.map +1 -1
- package/dist/model/core/ImageAnnotation.d.ts +1 -1
- package/dist/model/core/rectangle/rectangleUtils.d.ts +1 -1
- package/dist/model/w3c/W3CImageAnnotation.d.ts +2 -2
- package/dist/model/w3c/W3CImageFormatAdapter.d.ts +2 -2
- package/dist/state/ImageAnnotationStore.d.ts +1 -1
- package/dist/state/ImageAnnotatorState.d.ts +3 -3
- package/package.json +6 -6
- package/src/Annotorious.ts +1 -1
- package/src/AnnotoriousOpts.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { SVGSelector } from './svg';
|
|
2
|
-
import { FragmentSelector } from './fragment';
|
|
3
1
|
import { W3CAnnotation, W3CAnnotationTarget } from '@annotorious/core';
|
|
2
|
+
import { FragmentSelector } from './fragment';
|
|
3
|
+
import { SVGSelector } from './svg';
|
|
4
4
|
|
|
5
5
|
export interface W3CImageAnnotation extends W3CAnnotation {
|
|
6
6
|
target: W3CImageAnnotationTarget | W3CImageAnnotationTarget[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { W3CImageAnnotation } from './W3CImageAnnotation';
|
|
2
|
-
import { ImageAnnotation } from '../core';
|
|
3
1
|
import { FormatAdapter, ParseResult, W3CAnnotation } from '@annotorious/core';
|
|
2
|
+
import { ImageAnnotation } from '../core';
|
|
3
|
+
import { W3CImageAnnotation } from './W3CImageAnnotation';
|
|
4
4
|
|
|
5
5
|
export type W3CImageFormatAdapter = FormatAdapter<ImageAnnotation, W3CImageAnnotation>;
|
|
6
6
|
export declare const W3CImageFormat: (source: string, invertY?: boolean) => W3CImageFormatAdapter;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ImageAnnotation } from '../model';
|
|
2
1
|
import { Store, SvelteAnnotatorState, SvelteStore } from '@annotorious/core';
|
|
2
|
+
import { ImageAnnotation } from '../model';
|
|
3
3
|
|
|
4
4
|
export type ImageAnnotationStore = Store<ImageAnnotation> & {
|
|
5
5
|
getAt(x: number, y: number): ImageAnnotation | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ImageAnnotationStore, SvelteImageAnnotatorState } from './ImageAnnotationStore';
|
|
2
|
-
import { AnnotatorState, HoverState, SelectionState } from '@annotorious/core';
|
|
3
|
-
import { AnnotoriousOpts } from '../AnnotoriousOpts';
|
|
4
1
|
import { ImageAnnotation } from '../model';
|
|
2
|
+
import { AnnotoriousOpts } from '../AnnotoriousOpts';
|
|
3
|
+
import { AnnotatorState, HoverState, SelectionState } from '@annotorious/core';
|
|
4
|
+
import { ImageAnnotationStore, SvelteImageAnnotatorState } from './ImageAnnotationStore';
|
|
5
5
|
|
|
6
6
|
export type ImageAnnotatorState<T extends ImageAnnotationStore = ImageAnnotationStore> = AnnotatorState<ImageAnnotation> & {
|
|
7
7
|
store: T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annotorious/annotorious",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.25",
|
|
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",
|
|
@@ -40,15 +40,15 @@
|
|
|
40
40
|
"@tsconfig/svelte": "^5.0.4",
|
|
41
41
|
"@types/rbush": "^3.0.3",
|
|
42
42
|
"jsdom": "^24.0.0",
|
|
43
|
-
"svelte": "^4.2.
|
|
43
|
+
"svelte": "^4.2.17",
|
|
44
44
|
"svelte-preprocess": "^5.1.4",
|
|
45
45
|
"typescript": "^5.4.5",
|
|
46
|
-
"vite": "^5.2.
|
|
47
|
-
"vite-plugin-dts": "^3.9.
|
|
48
|
-
"vitest": "^1.
|
|
46
|
+
"vite": "^5.2.11",
|
|
47
|
+
"vite-plugin-dts": "^3.9.1",
|
|
48
|
+
"vitest": "^1.6.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@annotorious/core": "3.0.0-rc.
|
|
51
|
+
"@annotorious/core": "3.0.0-rc.25",
|
|
52
52
|
"rbush": "^3.0.1",
|
|
53
53
|
"uuid": "^9.0.1"
|
|
54
54
|
}
|
package/src/Annotorious.ts
CHANGED
|
@@ -139,7 +139,7 @@ export const createImageAnnotator = <E extends unknown = ImageAnnotation>(
|
|
|
139
139
|
const setDrawingEnabled = (enabled: boolean) =>
|
|
140
140
|
annotationLayer.$set({ drawingEnabled: enabled });
|
|
141
141
|
|
|
142
|
-
const setFilter = (
|
|
142
|
+
const setFilter = (_: Filter) => {
|
|
143
143
|
console.warn('Filter not implemented yet');
|
|
144
144
|
}
|
|
145
145
|
|
package/src/AnnotoriousOpts.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Annotation, DrawingStyle, FormatAdapter, PointerSelectAction } from '@annotorious/core';
|
|
1
|
+
import type { Annotation, DrawingStyle, DrawingStyleExpression, FormatAdapter, PointerSelectAction } from '@annotorious/core';
|
|
2
2
|
import type { ImageAnnotation } from './model';
|
|
3
3
|
|
|
4
4
|
export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation> {
|
|
@@ -15,7 +15,7 @@ export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E exten
|
|
|
15
15
|
|
|
16
16
|
pointerSelectAction?: PointerSelectAction | ((a: I) => PointerSelectAction);
|
|
17
17
|
|
|
18
|
-
style?:
|
|
18
|
+
style?: DrawingStyleExpression<ImageAnnotation>;
|
|
19
19
|
|
|
20
20
|
theme?: Theme;
|
|
21
21
|
|