File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -23,15 +23,6 @@ defaults._set('global', {
2323 }
2424} ) ;
2525
26- function setStyle ( ctx , vm ) {
27- ctx . lineCap = vm . borderCapStyle ;
28- ctx . setLineDash ( vm . borderDash ) ;
29- ctx . lineDashOffset = vm . borderDashOffset ;
30- ctx . lineJoin = vm . borderJoinStyle ;
31- ctx . lineWidth = vm . borderWidth ;
32- ctx . strokeStyle = vm . borderColor ;
33- }
34-
3526function startAtGap ( line , options ) {
3627 const points = line . _children ;
3728 const count = points . length ;
@@ -49,6 +40,15 @@ function startAtGap(line, options) {
4940 }
5041}
5142
43+ function setStyle ( ctx , vm ) {
44+ ctx . lineCap = vm . borderCapStyle ;
45+ ctx . setLineDash ( vm . borderDash ) ;
46+ ctx . lineDashOffset = vm . borderDashOffset ;
47+ ctx . lineJoin = vm . borderJoinStyle ;
48+ ctx . lineWidth = vm . borderWidth ;
49+ ctx . strokeStyle = vm . borderColor ;
50+ }
51+
5252function lineTo ( ctx , previous , target ) {
5353 ctx . lineTo ( target . x , target . y ) ;
5454}
You can’t perform that action at this time.
0 commit comments