@recogito/text-annotator 3.0.0-rc.17 → 3.0.0-rc.19
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/src/SelectionHandler.d.ts +3 -2
- package/dist/src/TextAnnotator.d.ts +7 -5
- package/dist/src/TextAnnotatorOptions.d.ts +8 -5
- package/dist/src/api/scrollIntoView.d.ts +3 -2
- package/dist/src/highlight/Highlight.d.ts +6 -0
- package/dist/src/highlight/HighlightPainter.d.ts +7 -4
- package/dist/src/highlight/HighlightStyle.d.ts +7 -4
- package/dist/src/highlight/baseRenderer.d.ts +21 -0
- package/dist/src/highlight/canvas/canvasRenderer.d.ts +4 -0
- package/dist/src/highlight/canvas/index.d.ts +1 -1
- package/dist/src/highlight/highlights/highlightsRenderer.d.ts +6 -0
- package/dist/src/highlight/highlights/index.d.ts +1 -0
- package/dist/src/highlight/index.d.ts +2 -1
- package/dist/src/highlight/span/index.d.ts +1 -0
- package/dist/src/highlight/span/spansRenderer.d.ts +4 -0
- package/dist/src/highlight/viewport.d.ts +3 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/model/core/TextAnnotation.d.ts +3 -1
- package/dist/src/model/w3c/W3CTextAnnotation.d.ts +2 -1
- package/dist/src/model/w3c/W3CTextFormatAdapter.d.ts +5 -4
- package/dist/src/presence/PresencePainter.d.ts +4 -3
- package/dist/src/state/TextAnnotationStore.d.ts +7 -7
- package/dist/src/state/TextAnnotatorState.d.ts +6 -6
- package/dist/src/state/spatialTree.d.ts +9 -6
- package/dist/src/utils/isRevived.d.ts +2 -1
- package/dist/src/utils/rangeToSelector.d.ts +2 -1
- package/dist/src/utils/reviveAnnotation.d.ts +2 -1
- package/dist/src/utils/reviveSelector.d.ts +2 -1
- package/dist/src/utils/reviveTarget.d.ts +2 -1
- package/dist/src/utils/splitAnnotatableRanges.d.ts +1 -1
- package/dist/test/model/w3c/fixtures.d.ts +2 -1
- package/dist/text-annotator.css +1 -1
- package/dist/text-annotator.es.js +1099 -1029
- 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/package.json +9 -8
- package/dist/src/highlight/canvas/highlightRenderer.d.ts +0 -11
- package/dist/src/highlight/css/highlightRenderer.d.ts +0 -11
- package/dist/src/highlight/css/highlights.d.ts +0 -10
- package/dist/src/highlight/css/index.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recogito/text-annotator",
|
|
3
|
-
"version": "3.0.0-rc.
|
|
3
|
+
"version": "3.0.0-rc.19",
|
|
4
4
|
"description": "A JavaScript text annotation library",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -29,16 +29,17 @@
|
|
|
29
29
|
"@types/jsdom": "^21.1.6",
|
|
30
30
|
"@types/rbush": "^3.0.3",
|
|
31
31
|
"@types/uuid": "^9.0.8",
|
|
32
|
-
"jsdom": "^
|
|
33
|
-
"svelte": "^4.2.
|
|
34
|
-
"typescript": "^5.
|
|
35
|
-
"vite": "^5.
|
|
36
|
-
"vite-plugin-dts": "^3.
|
|
37
|
-
"vitest": "^1.
|
|
32
|
+
"jsdom": "^24.0.0",
|
|
33
|
+
"svelte": "^4.2.12",
|
|
34
|
+
"typescript": "^5.4.3",
|
|
35
|
+
"vite": "^5.2.6",
|
|
36
|
+
"vite-plugin-dts": "^3.8.0",
|
|
37
|
+
"vitest": "^1.4.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@annotorious/core": "^3.0.0-rc.
|
|
40
|
+
"@annotorious/core": "^3.0.0-rc.22",
|
|
41
41
|
"colord": "^2.9.3",
|
|
42
|
+
"dequal": "^2.0.3",
|
|
42
43
|
"rbush": "^3.0.1",
|
|
43
44
|
"uuid": "^9.0.1"
|
|
44
45
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DrawingStyle, Filter, ViewportState } from '@annotorious/core';
|
|
2
|
-
import type { TextAnnotation } from '../../model';
|
|
3
|
-
import type { TextAnnotatorState } from '../../state';
|
|
4
|
-
import type { HighlightPainter } from '../HighlightPainter';
|
|
5
|
-
export declare const createCanvasHighlightRenderer: (container: HTMLElement, state: TextAnnotatorState, viewport: ViewportState) => {
|
|
6
|
-
destroy: () => void;
|
|
7
|
-
refresh: () => number;
|
|
8
|
-
setDrawingStyle: (style: DrawingStyle | ((a: TextAnnotation, selected?: boolean) => DrawingStyle)) => void;
|
|
9
|
-
setFilter: (filter?: Filter) => void;
|
|
10
|
-
setPainter: (painter: HighlightPainter) => HighlightPainter;
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { DrawingStyle, Filter, ViewportState } from '@annotorious/core';
|
|
2
|
-
import type { TextAnnotatorState } from '../../state';
|
|
3
|
-
import type { TextAnnotation } from '../../model';
|
|
4
|
-
import type { HighlightPainter } from '../HighlightPainter';
|
|
5
|
-
export declare const createCSSHighlightRenderer: (container: HTMLElement, state: TextAnnotatorState, viewport: ViewportState) => {
|
|
6
|
-
destroy: () => void;
|
|
7
|
-
refresh: () => void;
|
|
8
|
-
setDrawingStyle: (style: DrawingStyle | ((a: TextAnnotation, selected?: boolean) => DrawingStyle)) => void;
|
|
9
|
-
setFilter: (filter?: Filter) => void;
|
|
10
|
-
setPainter: (painter: HighlightPainter) => void;
|
|
11
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { DrawingStyle } from '@annotorious/core';
|
|
2
|
-
import type { TextAnnotation } from '../../model';
|
|
3
|
-
import type { HighlightPainter } from '../HighlightPainter';
|
|
4
|
-
import type { AnnotationRects } from 'src/state';
|
|
5
|
-
import type { ViewportBounds } from '../viewport';
|
|
6
|
-
export declare const createHighlights: () => {
|
|
7
|
-
destroy: () => void;
|
|
8
|
-
refresh: (highlights: AnnotationRects[], viewportBounds: ViewportBounds, selected: string[], currentStyle: DrawingStyle | ((annotation: TextAnnotation, selected: boolean) => DrawingStyle)) => void;
|
|
9
|
-
setPainter: (painter: HighlightPainter) => HighlightPainter;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './highlightRenderer';
|