You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| annotations | Represents the parts of the given text which shall be annotated. | Annotation[] |[]|
109
-
| annotationClass | An optional CSS class applied to all elements which wrap the annotated parts of the given text. | string ||
110
-
| removable | Determines whether annotations shall have a small button in the top right corner so that the user can remove an annotation. | boolean |true|
111
-
| text | The text which shall be displayed and annotated. | string ||
108
+
| annotations | Represents the parts of the given text which shall be annotated. |`Annotation[]`|`[]`|
109
+
| annotationClass | An optional CSS class applied to all elements which wrap the annotated parts of the given text. |`string\|undefined`|`undefined`|
110
+
| removable | Determines whether annotations shall have a small button in the top right corner so that the user can remove an annotation. |`boolean`|`true`|
111
+
| text | The text which shall be displayed and annotated. |`string`|empty string|
| getCurrentTextSelection | Returns the start index and end index of the currently selected text range. Returns `undefined`if no text is currently selected. | ISelection |
| getCurrentTextSelection | Returns the start index and end index of the currently selected text range. Returns `undefined`if no text is currently selected. |`ISelection\|undefined`|
124
+
| isOverlappingWithExistingAnnotations | Returns trueif the given text selection is (partially) overlapping with an existing annotation. Returns false otherwise. |`boolean`|
124
125
125
126
126
127
@@ -132,7 +133,7 @@ Run `ng build ngx-annotate-text` to build the project. The build artifacts will
132
133
133
134
### Running linting tools
134
135
135
-
Run `ng lint ngx-annotate-text ` to execute TSLint.
136
+
Run `ng lint ngx-annotate-text ` to execute ESLint.
0 commit comments