@recogito/text-annotator 3.0.0-rc.20 → 3.0.0-rc.22
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.
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { TextAnnotatorOptions } from './TextAnnotatorOptions';
|
|
2
2
|
import { TextAnnotation } from './model';
|
|
3
3
|
import { TextAnnotatorState } from './state';
|
|
4
|
+
import { HighlightStyleExpression } from './highlight';
|
|
4
5
|
import { Annotator } from '@annotorious/core';
|
|
5
6
|
|
|
6
7
|
export interface TextAnnotator<E extends unknown = TextAnnotation> extends Annotator<TextAnnotation, E> {
|
|
7
8
|
element: HTMLElement;
|
|
9
|
+
setStyle(style: HighlightStyleExpression | undefined): void;
|
|
8
10
|
scrollIntoView(annotation: TextAnnotation): boolean;
|
|
9
11
|
state: TextAnnotatorState;
|
|
10
12
|
}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Origin as _Origin } from '@annotorious/core';
|
|
1
|
+
import { Origin as _Origin, PointerSelectAction as _PointerSelectAction } from '@annotorious/core';
|
|
2
2
|
export * from './highlight';
|
|
3
3
|
export * from './model';
|
|
4
4
|
export * from './state';
|
|
@@ -6,5 +6,9 @@ export * from './utils';
|
|
|
6
6
|
export * from './presence/PresencePainterOptions';
|
|
7
7
|
export * from './TextAnnotator';
|
|
8
8
|
export * from './TextAnnotatorOptions';
|
|
9
|
-
export type { Filter } from '@annotorious/core';
|
|
10
|
-
export
|
|
9
|
+
export type { Annotation, AnnotationBody, AnnotationTarget, Annotator, AnnotatorState, Color, Filter, FormatAdapter, HoverState, Selection, SelectionState, Store, StoreChangeEvent, StoreObserver, ParseResult, User, W3CAnnotation, W3CAnnotationBody, W3CAnnotationTarget } from '@annotorious/core';
|
|
10
|
+
export declare const PointerSelectAction: typeof _PointerSelectAction;
|
|
11
|
+
export declare const createBody: (annotation: import('@annotorious/core').Annotation, payload: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}, created?: Date, creator?: import('@annotorious/core').User) => import('@annotorious/core').AnnotationBody;
|
|
14
|
+
export declare const Origin: typeof _Origin;
|