File tree 2 files changed +12
-10
lines changed
src/components/annotations 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 9
9
'use strict' ;
10
10
11
11
/**
12
- * centerx is a center of scaling tuned for maximum scalability of
13
- * the arrowhead ie throughout mag=0.3..3 the head is joined smoothly
14
- * to the line, but the endpoint moves.
15
- * backoff is the distance to move the arrowhead, and the end of the
16
- * line, in order to end at the right place
17
- *
18
- * TODO: option to have the pointed-to point a little in front of the
19
- * end of the line, as people tend to want a bit of a gap there...
12
+ * All paths are tuned for maximum scalability of the arrowhead,
13
+ * ie throughout arrowwidth=0.3..3 the head is joined smoothly
14
+ * to the line, with the line coming from the left and ending at (0, 0).
15
+ * `backoff` is the distance to move the arrowhead and the end of the line,
16
+ * in order that the arrowhead points to the desired place, either at
17
+ * the tip of the arrow or (in the case of circle or square)
18
+ * the center of the symbol.
20
19
*/
21
20
22
21
module . exports = [
Original file line number Diff line number Diff line change @@ -164,13 +164,16 @@ module.exports = {
164
164
min : 0.3 ,
165
165
dflt : 1 ,
166
166
role : 'style' ,
167
- description : 'Sets the size (in px) of annotation arrow head.'
167
+ description : [
168
+ 'Sets the size of the annotation arrow head, relative to `arrowwidth`.' ,
169
+ 'A value of 1 (default) gives a head about 3x as wide as the line.'
170
+ ] . join ( ' ' )
168
171
} ,
169
172
arrowwidth : {
170
173
valType : 'number' ,
171
174
min : 0.1 ,
172
175
role : 'style' ,
173
- description : 'Sets the width (in px) of annotation arrow.'
176
+ description : 'Sets the width (in px) of annotation arrow line .'
174
177
} ,
175
178
standoff : {
176
179
valType : 'number' ,
You can’t perform that action at this time.
0 commit comments