@recogito/text-annotator 3.0.0-rc.12 → 3.0.0-rc.14
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,2 +1,12 @@
|
|
|
1
1
|
import type { TextSelector } from '../model';
|
|
2
|
+
/**
|
|
3
|
+
* Retrieves the DOM range from the given text annotation position
|
|
4
|
+
* Only the annotatable elements are processed and counted towards the range
|
|
5
|
+
*
|
|
6
|
+
* @param start start of the annotated content
|
|
7
|
+
* @param end end of the annotated content
|
|
8
|
+
* @param offsetReference the HTML container of the annotated content
|
|
9
|
+
*
|
|
10
|
+
* @returns the DOM range
|
|
11
|
+
*/
|
|
2
12
|
export declare const reviveSelector: (selector: TextSelector, container: HTMLElement) => TextSelector;
|