88
99A Vue wrapper for [ RoughNotation] ( https://roughnotation.com/ ) , a small JavaScript library to create and animate annotations on a web page.
1010
11- [ Visit website to see it in action] ( https://roughnotation.com/ )
11+ - [ Visit website to see it in action] ( https://roughnotation.com/ )
12+ - [ Rough Notation Github] ( https://github.com/pshihn/rough-notation )
13+
14+ ## Table of Contents
15+
16+ - [ Installation] ( #installation )
17+ - [ Usage] ( #usage )
18+ - [ Global options] ( #global-options )
19+ - [ Props] ( #props )
20+ - [ Events] ( #events )
21+ - [ TODO] ( #todo )
22+ - [ License] ( #license )
1223
1324## Installation
1425
@@ -45,6 +56,35 @@ template:
4556</RoughNotation >
4657```
4758
59+ ## Global options
60+
61+ The default global options are:
62+
63+ ``` js
64+ {
65+ // Turn on/off animation when annotating.
66+ animate: true ,
67+ // Duration of the animation in milliseconds.
68+ animationDuration: 800 ,
69+ // Delay in animation in milliseconds.
70+ animationDelay: 0 ,
71+ // Representing the color of the annotation sketch.
72+ color: ' currentColor' ,
73+ // Width of the annotation strokes.
74+ strokeWidth: 1 ,
75+ // (in pixels) Padding between the element and roughly where the annotation is drawn.
76+ padding: 5 ,
77+ }
78+ ```
79+
80+ You can change the options when install:
81+
82+ ``` js
83+ import VueRoughNotation from ' vue-rough-notation' ;
84+
85+ Vue .use (VueRoughNotation, options);
86+ ```
87+
4888## Props
4989
5090### type
@@ -78,7 +118,7 @@ Whether draws the annotation.
78118
79119** Required** : ` false `
80120
81- ** Default** : ` true `
121+ ** Default** : ` true ` - You can change it when install _ (see above) _ .
82122
83123Turn on/off animation when annotating.
84124
@@ -88,7 +128,7 @@ Turn on/off animation when annotating.
88128
89129** Required** : ` false `
90130
91- ** Default** : ` 800 `
131+ ** Default** : ` 800 ` - You can change it when install _ (see above) _ .
92132
93133Duration of the animation in milliseconds.
94134
@@ -98,7 +138,7 @@ Duration of the animation in milliseconds.
98138
99139** Required** : ` false `
100140
101- ** Default** : ` 0 `
141+ ** Default** : ` 0 ` - You can change it when install _ (see above) _ .
102142
103143Delay in animation in milliseconds.
104144
@@ -108,7 +148,7 @@ Delay in animation in milliseconds.
108148
109149** Required** : ` false `
110150
111- ** Default** : ` currentColor `
151+ ** Default** : ` currentColor ` - You can change it when install _ (see above) _ .
112152
113153Representing the color of the annotation sketch.
114154
@@ -118,7 +158,7 @@ Representing the color of the annotation sketch.
118158
119159** Required** : ` false `
120160
121- ** Default** : ` 1 `
161+ ** Default** : ` 1 ` - You can change it when install _ (see above) _ .
122162
123163Width of the annotation strokes.
124164
@@ -128,7 +168,7 @@ Width of the annotation strokes.
128168
129169** Required** : ` false `
130170
131- ** Default** : ` 5 ` (in pixels)
171+ ** Default** : ` 5 ` (in pixels) - You can change it when install _ (see above) _
132172
133173Padding between the element and roughly where the annotation is drawn.
134174
0 commit comments