@annotorious/annotorious 3.0.0-rc.22 → 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 +7 -10
- package/dist/AnnotoriousOpts.d.ts +3 -2
- package/dist/annotation/SVGAnnotationLayerPointerEvent.d.ts +3 -2
- package/dist/annotation/editors/editorsRegistry.d.ts +3 -2
- package/dist/annotation/tools/DrawingToolConfig.d.ts +2 -1
- package/dist/annotation/tools/drawingToolsRegistry.d.ts +3 -2
- package/dist/annotation/utils/responsive.d.ts +1 -1
- package/dist/annotation/utils/styling.d.ts +3 -2
- package/dist/annotorious.es.js +1 -7
- package/dist/annotorious.es.js.map +1 -1
- package/dist/annotorious.js +1 -1
- package/dist/annotorious.js.map +1 -1
- package/dist/keyboardCommands.d.ts +2 -1
- package/dist/model/core/ImageAnnotation.d.ts +3 -2
- package/dist/model/core/Shape.d.ts +2 -1
- package/dist/model/core/ellipse/Ellipse.d.ts +2 -1
- package/dist/model/core/polygon/Polygon.d.ts +2 -1
- package/dist/model/core/rectangle/Rectangle.d.ts +2 -1
- package/dist/model/core/rectangle/rectangleUtils.d.ts +3 -2
- package/dist/model/core/shapeUtils.d.ts +2 -1
- package/dist/model/w3c/W3CImageAnnotation.d.ts +4 -3
- package/dist/model/w3c/W3CImageFormatAdapter.d.ts +4 -3
- package/dist/model/w3c/fragment/FragmentSelector.d.ts +2 -1
- package/dist/model/w3c/svg/SVGSelector.d.ts +2 -1
- package/dist/state/ImageAnnotationStore.d.ts +3 -2
- package/dist/state/ImageAnnotatorState.d.ts +5 -4
- package/dist/state/spatialTree.d.ts +2 -1
- package/dist/themes/smart/setTheme.d.ts +2 -1
- package/package.json +9 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Annotation, UndoStack } from '@annotorious/core';
|
|
2
|
+
|
|
2
3
|
export declare const initKeyboardCommands: <T extends Annotation>(undoStack: UndoStack<T>, container?: Element) => {
|
|
3
4
|
destroy: () => void;
|
|
4
5
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { Shape } from './Shape';
|
|
2
|
+
import { Annotation, AnnotationTarget } from '@annotorious/core';
|
|
3
|
+
|
|
3
4
|
export interface ImageAnnotation extends Annotation {
|
|
4
5
|
target: ImageAnnotationTarget;
|
|
5
6
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ShapeUtil } from '../shapeUtils';
|
|
2
|
+
import { Rectangle } from './Rectangle';
|
|
3
|
+
|
|
3
4
|
export declare const RectangleUtil: ShapeUtil<Rectangle>;
|
|
4
5
|
//# sourceMappingURL=rectangleUtils.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { SVGSelector } from './svg';
|
|
2
|
+
import { FragmentSelector } from './fragment';
|
|
3
|
+
import { W3CAnnotation, W3CAnnotationTarget } from '@annotorious/core';
|
|
4
|
+
|
|
4
5
|
export interface W3CImageAnnotation extends W3CAnnotation {
|
|
5
6
|
target: W3CImageAnnotationTarget | W3CImageAnnotationTarget[];
|
|
6
7
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { W3CImageAnnotation } from './W3CImageAnnotation';
|
|
2
|
+
import { ImageAnnotation } from '../core';
|
|
3
|
+
import { FormatAdapter, ParseResult, W3CAnnotation } from '@annotorious/core';
|
|
4
|
+
|
|
4
5
|
export type W3CImageFormatAdapter = FormatAdapter<ImageAnnotation, W3CImageAnnotation>;
|
|
5
6
|
export declare const W3CImageFormat: (source: string, invertY?: boolean) => W3CImageFormatAdapter;
|
|
6
7
|
export declare const parseW3CImageAnnotation: (annotation: W3CAnnotation, invertY?: boolean) => ParseResult<ImageAnnotation>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ImageAnnotation } from '../model';
|
|
2
|
+
import { Store, SvelteAnnotatorState, SvelteStore } from '@annotorious/core';
|
|
3
|
+
|
|
3
4
|
export type ImageAnnotationStore = Store<ImageAnnotation> & {
|
|
4
5
|
getAt(x: number, y: number): ImageAnnotation | undefined;
|
|
5
6
|
getIntersecting(x: number, y: number, width: number, height: number): ImageAnnotation[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { ImageAnnotationStore, SvelteImageAnnotatorState } from './ImageAnnotationStore';
|
|
2
|
+
import { AnnotatorState, HoverState, SelectionState } from '@annotorious/core';
|
|
3
|
+
import { AnnotoriousOpts } from '../AnnotoriousOpts';
|
|
4
|
+
import { ImageAnnotation } from '../model';
|
|
5
|
+
|
|
5
6
|
export type ImageAnnotatorState<T extends ImageAnnotationStore = ImageAnnotationStore> = AnnotatorState<ImageAnnotation> & {
|
|
6
7
|
store: T;
|
|
7
8
|
selection: SelectionState<ImageAnnotation>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Theme } from '../../AnnotoriousOpts';
|
|
2
|
+
|
|
2
3
|
export declare const sampleBrightness: (imageOrCanvas: HTMLElement) => number;
|
|
3
4
|
export declare const detectTheme: (imageOrCanvas: HTMLElement) => "dark" | "light";
|
|
4
5
|
export declare const setTheme: (imageOrCanvas: HTMLElement, container: HTMLElement, theme: Theme) => void;
|
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.23",
|
|
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",
|
|
@@ -36,19 +36,19 @@
|
|
|
36
36
|
"./src": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@sveltejs/vite-plugin-svelte": "^3.0
|
|
39
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.0",
|
|
40
40
|
"@tsconfig/svelte": "^5.0.4",
|
|
41
41
|
"@types/rbush": "^3.0.3",
|
|
42
42
|
"jsdom": "^24.0.0",
|
|
43
|
-
"svelte": "^4.2.
|
|
44
|
-
"svelte-preprocess": "^5.1.
|
|
45
|
-
"typescript": "^5.4.
|
|
46
|
-
"vite": "^5.2.
|
|
47
|
-
"vite-plugin-dts": "^3.
|
|
48
|
-
"vitest": "^1.
|
|
43
|
+
"svelte": "^4.2.15",
|
|
44
|
+
"svelte-preprocess": "^5.1.4",
|
|
45
|
+
"typescript": "^5.4.5",
|
|
46
|
+
"vite": "^5.2.10",
|
|
47
|
+
"vite-plugin-dts": "^3.9.0",
|
|
48
|
+
"vitest": "^1.5.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@annotorious/core": "3.0.0-rc.
|
|
51
|
+
"@annotorious/core": "3.0.0-rc.23",
|
|
52
52
|
"rbush": "^3.0.1",
|
|
53
53
|
"uuid": "^9.0.1"
|
|
54
54
|
}
|