@recogito/text-annotator 4.0.0-beta → 4.0.2-beta
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/index.d.ts +12 -409
- package/dist/model/core/text-annotation.d.ts +1 -1
- package/dist/model/w3c/w3c-text-annotation.d.ts +1 -1
- package/dist/model/w3c/w3c-text-format-adapter.d.ts +3 -3
- package/dist/rendering/base-renderer.d.ts +8 -8
- package/dist/rendering/highlight-style.d.ts +3 -3
- package/dist/rendering/highlight.d.ts +3 -3
- package/dist/rendering/index.d.ts +1 -0
- package/dist/rendering/renderer-css-highlight/css-highlight-renderer.d.ts +3 -2
- package/dist/rendering/renderer-spans/spans-renderer.d.ts +4 -2
- package/dist/rendering/viewport.d.ts +2 -2
- package/dist/selection-handler.d.ts +7 -7
- package/dist/state/spatial-tree.d.ts +5 -5
- package/dist/state/text-annotation-store.d.ts +5 -5
- package/dist/state/text-annotator-state.d.ts +6 -5
- package/dist/text-annotator-options.d.ts +5 -5
- package/dist/text-annotator.css +1 -1
- package/dist/text-annotator.d.ts +7 -6
- package/dist/text-annotator.es.js +558 -536
- package/dist/text-annotator.es.js.map +1 -1
- package/dist/text-annotator.umd.js +2 -2
- package/dist/text-annotator.umd.js.map +1 -1
- package/dist/utils/annotation/range-to-selector.d.ts +1 -1
- package/dist/utils/annotation/revive-annotation.d.ts +1 -1
- package/dist/utils/annotation/scroll-into-view.d.ts +2 -2
- package/dist/utils/highlight/compute-z-index.d.ts +2 -2
- package/package.json +10 -11
- package/dist/src/index.d.ts +0 -12
package/dist/text-annotator.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Annotator } from '@annotorious/core';
|
|
2
|
-
import { HighlightStyleExpression, Renderer } from './rendering';
|
|
3
|
-
import { TextAnnotation } from './model';
|
|
4
|
-
import { TextAnnotatorState } from './state';
|
|
5
|
-
import { TextAnnotatorOptions } from './text-annotator-options';
|
|
6
|
-
|
|
1
|
+
import { type Annotator } from '@annotorious/core';
|
|
2
|
+
import type { HighlightStyleExpression, Renderer } from './rendering';
|
|
3
|
+
import type { TextAnnotation } from './model';
|
|
4
|
+
import { type TextAnnotatorState } from './state';
|
|
5
|
+
import { type TextAnnotatorOptions } from './text-annotator-options';
|
|
6
|
+
import './text-annotator.css';
|
|
7
|
+
export interface TextAnnotator<I extends TextAnnotation = TextAnnotation, E extends unknown = TextAnnotation> extends Omit<Annotator<I, E>, 'setStyle' | 'state'> {
|
|
7
8
|
element: HTMLElement;
|
|
8
9
|
renderer: Renderer;
|
|
9
10
|
setStyle(style?: HighlightStyleExpression, id?: string): void;
|