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:
57
+
58
+
-**underline**: Create a sketchy underline below an element.
59
+
-**box**: This style draws a box around the element.
60
+
-**circle**: Draw a circle around the element.
61
+
-**highlight**: Creates a highlight effect as if maked by a highlighter.
62
+
-**strike-through**: This style draws a box around the element.
63
+
-**crossed-off**: This style draws a box around the element.
53
64
54
65
### isShow
55
66
56
67
**Type**: `boolean`
57
68
69
+
**Required**: `false`
70
+
58
71
**Default**: `false`
59
72
60
73
Whether draws the annotation.
61
74
75
+
### animate
76
+
77
+
**Type**: `boolean`
78
+
79
+
**Required**: `false`
80
+
81
+
**Default**: `true`
82
+
83
+
Turn on/off animation when annotating.
84
+
85
+
### animationDuration
86
+
87
+
**Type**: `number`
88
+
89
+
**Required**: `false`
90
+
91
+
**Default**: `800`
92
+
93
+
Duration of the animation in milliseconds.
94
+
95
+
### animationDelay
96
+
97
+
**Type**: `number`
98
+
99
+
**Required**: `false`
100
+
101
+
**Default**: `0`
102
+
103
+
Delay in animation in milliseconds.
104
+
105
+
### color
106
+
107
+
**Type**: `string`
108
+
109
+
**Required**: `false`
110
+
111
+
**Default**: `currentColor`
112
+
113
+
Representing the color of the annotation sketch.
114
+
115
+
### strokeWidth
116
+
117
+
**Type**: `number`
118
+
119
+
**Required**: `false`
120
+
121
+
**Default**: `1`
122
+
123
+
Width of the annotation strokes.
124
+
125
+
### padding
126
+
127
+
**Type**: `number`
128
+
129
+
**Required**: `false`
130
+
131
+
**Default**: `5`(in pixels)
132
+
133
+
Padding between the element and roughly where the annotation is drawn.
134
+
62
135
### tag
63
136
64
137
**Type**: `string`
65
138
139
+
**Required**: `false`
140
+
66
141
**Default**: `'div'`
67
142
68
143
String HTML tag name (default: `div`); if falsy (for example `null` or `undefined`), the component will be renderless (the content won't be wrapped in a tag), in this case, only the first child will be rendered
0 commit comments