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
This is a mandatory field. It sets the annotation style. Following are the list of supported annotation types:
108
110
109
-
-**underline**: Create a sketchy underline below an element.
111
+
-**underline**: This style creates a sketchy underline below an element.
110
112
-**box**: This style draws a box around the element.
111
-
-**circle**: Draw a circle around the element.
112
-
-**highlight**: Creates a highlight effect as if maked by a highlighter.
113
-
-**strike-through**: This style draws a box around the element.
114
-
-**crossed-off**: This style draws a box around the element.
113
+
-**circle**: This style draws a circle around the element.
114
+
-**highlight**: This style creates a highlight effect as if marked by a highlighter.
115
+
-**strike-through**: This style draws horizontal lines through the element.
116
+
-**crossed-off**: This style draws an 'X' across the element.
117
+
-**bracket**: This style draws a bracket around an element, usually a paragraph of text. By default on the right side, but can be configured to any or all of left, right, top, bottom.
115
118
116
119
#### isShow
117
120
@@ -175,7 +178,7 @@ Width of the annotation strokes.
175
178
176
179
#### padding
177
180
178
-
**Type**: `number`
181
+
**Type**: `number | number[]`
179
182
180
183
**Required**: `false`
181
184
@@ -203,6 +206,16 @@ This property only applies to inline text. To annotate multiline text (each line
203
206
204
207
By default annotations are drawn in two iterations, e.g. when underlining, drawing from left to right and then back from right to left. Setting this property can let you configure the number of iterations.
205
208
209
+
#### brackets
210
+
211
+
**Type**: `string | string[]`
212
+
213
+
**Required**: `false`
214
+
215
+
**Default**: `'right'`
216
+
217
+
Value could be a string or an array of strings, each string being one of these values: **left**, **right**, **top**, **bottom**. When drawing a bracket, this configures which side(s) of the element to bracket. Default value is `right`.
0 commit comments