@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
package/dist/Annotorious.d.ts
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import './Annotorious.css';
|
|
9
|
-
import './themes/dark/index.css';
|
|
10
|
-
import './themes/light/index.css';
|
|
1
|
+
import { Theme, AnnotoriousOpts } from './AnnotoriousOpts';
|
|
2
|
+
import { ImageAnnotation, ShapeType } from './model';
|
|
3
|
+
import { DrawingToolOpts } from './annotation';
|
|
4
|
+
import { DrawingTool } from './annotation/tools';
|
|
5
|
+
import { Annotator } from '@annotorious/core';
|
|
6
|
+
import { SvelteComponent } from 'svelte';
|
|
7
|
+
|
|
11
8
|
export interface ImageAnnotator<E extends unknown = ImageAnnotation> extends Annotator<ImageAnnotation, E> {
|
|
12
9
|
listDrawingTools(): string[];
|
|
13
10
|
registerDrawingTool(name: string, tool: typeof SvelteComponent, opts?: DrawingToolOpts): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ImageAnnotation } from './model';
|
|
2
|
+
import { Annotation, DrawingStyle, FormatAdapter, PointerSelectAction } from '@annotorious/core';
|
|
3
|
+
|
|
3
4
|
export interface AnnotoriousOpts<I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation> {
|
|
4
5
|
adapter?: FormatAdapter<I, E>;
|
|
5
6
|
autoSave?: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ImageAnnotation } from '../model';
|
|
2
|
+
import { SvelteImageAnnotationStore } from '../state';
|
|
3
|
+
|
|
3
4
|
export interface SVGAnnotationLayerPointerEvent {
|
|
4
5
|
originalEvent: PointerEvent;
|
|
5
6
|
annotation?: ImageAnnotation;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { SvelteComponent } from 'svelte';
|
|
2
|
+
import { ShapeType, Shape } from '../../model';
|
|
3
|
+
|
|
3
4
|
export declare const getEditor: (shape: Shape) => typeof SvelteComponent | undefined;
|
|
4
5
|
export declare const registerEditor: (shapeType: ShapeType, editor: typeof SvelteComponent) => Map<ShapeType, typeof SvelteComponent>;
|
|
5
6
|
//# sourceMappingURL=editorsRegistry.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { DrawingMode } from '../../AnnotoriousOpts';
|
|
2
|
+
import { SvelteComponent } from 'svelte';
|
|
3
|
+
|
|
3
4
|
export type DrawingTool = 'rectangle' | 'polygon' | string;
|
|
4
5
|
export type DrawingToolOpts = {
|
|
5
6
|
drawingMode?: DrawingMode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="svelte" />
|
|
2
2
|
export declare const enableResponsive: (image: HTMLImageElement | HTMLCanvasElement, svg: SVGSVGElement) => {
|
|
3
3
|
destroy: () => void;
|
|
4
|
-
subscribe: (this: void, run: import(
|
|
4
|
+
subscribe: (this: void, run: import('svelte/store').Subscriber<number>, invalidate?: import('svelte/store').Invalidator<number> | undefined) => import('svelte/store').Unsubscriber;
|
|
5
5
|
};
|
|
6
6
|
//# sourceMappingURL=responsive.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { ImageAnnotation } from '../../model';
|
|
2
|
+
import { DrawingStyleExpression } from '@annotorious/core';
|
|
3
|
+
|
|
3
4
|
export declare const computeStyle: (annotation: ImageAnnotation, style?: DrawingStyleExpression<ImageAnnotation>) => string | undefined;
|
|
4
5
|
//# sourceMappingURL=styling.d.ts.map
|
package/dist/annotorious.es.js
CHANGED
|
@@ -495,13 +495,7 @@ function qt(e, t, n) {
|
|
|
495
495
|
return yt.randomUUID();
|
|
496
496
|
e = e || {};
|
|
497
497
|
const o = e.random || (e.rng || Pn)();
|
|
498
|
-
|
|
499
|
-
n = n || 0;
|
|
500
|
-
for (let i = 0; i < 16; ++i)
|
|
501
|
-
t[n + i] = o[i];
|
|
502
|
-
return t;
|
|
503
|
-
}
|
|
504
|
-
return Yn(o);
|
|
498
|
+
return o[6] = o[6] & 15 | 64, o[8] = o[8] & 63 | 128, Yn(o);
|
|
505
499
|
}
|
|
506
500
|
var _t = Object.prototype.hasOwnProperty;
|
|
507
501
|
function de(e, t) {
|