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
"On August 1, we went on vacation to Barcelona, Spain. Our flight took off at 11:00 am.";
81
-
82
-
annotations:Annotation[] = [
83
-
newAnnotation(3, 11, "Date", "#0069d9"),
84
-
newAnnotation(36, 45, "City", "#dc3545"),
85
-
newAnnotation(47, 52, "Country", "#28a745"),
86
-
newAnnotation(77, 85, "Time", "#5a6268"),
87
-
];
88
-
}
89
-
```
90
-
91
-
5. Having set `annotationClass="my-annotation"`, a custom CSS styling can be applied by combining `::ng-deep` with the class selector `.my-annotation`, e.g., to remove the border-radius:
72
+
3. Having set `annotationClass="my-annotation"`, a custom CSS styling can be applied by combining `::ng-deep` with the class selector `.my-annotation`, e.g., to remove the border-radius:
92
73
```css
93
74
::ng-deep.my-annotation.annotation-parent,
94
75
::ng-deep.my-annotation.annotation-content {
@@ -123,6 +104,8 @@ View and edit the live demo Angular app on <a href="https://codesandbox.io/s/ngx
123
104
| 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
105
| isOverlappingWithExistingAnnotations | Returns true if the given text selection is (partially) overlapping with an existing annotation. Returns false otherwise. |`boolean`|
0 commit comments