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.";
82
-
83
-
annotations:Annotation[] = [
84
-
newAnnotation(3, 11, "Date", "#0069d9"),
85
-
newAnnotation(36, 45, "City", "#dc3545"),
86
-
newAnnotation(47, 52, "Country", "#28a745"),
87
-
newAnnotation(77, 85, "Time", "#5a6268"),
88
-
];
89
-
}
90
-
```
91
-
92
-
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:
93
73
```css
94
74
::ng-deep.my-annotation.annotation-parent,
95
75
::ng-deep.my-annotation.annotation-content {
@@ -124,16 +104,18 @@ View and edit the live demo Angular app on <a href="https://codesandbox.io/s/ngx
124
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` |
125
105
| isOverlappingWithExistingAnnotations | Returns true if the given text selection is (partially) overlapping with an existing annotation. Returns false otherwise. |`boolean`|
126
106
107
+
---
108
+
127
109
## Development
128
110
129
111
### Recreate project from scratch
130
112
131
113
```bash
132
-
npm install -g @angular/cli@^18
114
+
npm install -g @angular/cli@^19
133
115
ng new ngx-annotate-text-workspace
134
116
cd ngx-annotate-text-workspace/
135
117
ng generate library ngx-annotate-text
136
-
ng add angular-eslint@^18
118
+
ng add angular-eslint@^19
137
119
ng g angular-eslint:add-eslint-to-project ngx-annotate-text-workspace
138
120
ng g angular-eslint:add-eslint-to-project ngx-annotate-text
0 commit comments