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
108
109
-
-**underline**: Create a sketchy underline below an element.
109
+
-**underline**: This style creates a sketchy underline below an element.
110
110
-**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.
111
+
-**circle**: This style draws a circle around the element.
112
+
-**highlight**: This style creates a highlight effect as if marked by a highlighter.
113
+
-**strike-through**: This style draws horizontal lines through the element.
114
+
-**crossed-off**: This style draws an 'X' across the element.
115
+
-**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
116
116
117
#### isShow
117
118
@@ -143,16 +144,6 @@ Turn on/off animation when annotating.
143
144
144
145
Duration of the animation in milliseconds.
145
146
146
-
#### animationDelay
147
-
148
-
**Type**: `number`
149
-
150
-
**Required**: `false`
151
-
152
-
**Default**: `0` - You can change it when install _(see above)_.
153
-
154
-
Delay in animation in milliseconds.
155
-
156
147
#### color
157
148
158
149
**Type**: `string`
@@ -175,7 +166,7 @@ Width of the annotation strokes.
175
166
176
167
#### padding
177
168
178
-
**Type**: `number`
169
+
**Type**: `number | number[]`
179
170
180
171
**Required**: `false`
181
172
@@ -203,6 +194,16 @@ This property only applies to inline text. To annotate multiline text (each line
203
194
204
195
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
196
197
+
#### brackets
198
+
199
+
**Type**: `string | string[]`
200
+
201
+
**Required**: `false`
202
+
203
+
**Default**: `'right'`
204
+
205
+
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