File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -81,10 +81,10 @@ L.Path = L.Path.extend({
81
81
this . _path . removeAttribute ( 'stroke-dasharray' ) ;
82
82
}
83
83
if ( this . options . lineCap ) {
84
- this . _path . setAttribute ( 'stroke-linecap' , this . options . linecap ) ;
84
+ this . _path . setAttribute ( 'stroke-linecap' , this . options . lineCap ) ;
85
85
}
86
86
if ( this . options . lineJoin ) {
87
- this . _path . setAttribute ( 'stroke-linejoin' , this . options . linejoin ) ;
87
+ this . _path . setAttribute ( 'stroke-linejoin' , this . options . lineJoin ) ;
88
88
}
89
89
} else {
90
90
this . _path . setAttribute ( 'stroke' , 'none' ) ;
Original file line number Diff line number Diff line change @@ -82,11 +82,11 @@ L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({
82
82
} else {
83
83
stroke . dashStyle = '' ;
84
84
}
85
- if ( options . linecap ) {
86
- stroke . endcap = options . linecap . replace ( 'butt' , 'flat' ) ;
85
+ if ( options . lineCap ) {
86
+ stroke . endcap = options . lineCap . replace ( 'butt' , 'flat' ) ;
87
87
}
88
- if ( options . linejoin ) {
89
- stroke . joinstyle = options . linejoin ;
88
+ if ( options . lineJoin ) {
89
+ stroke . joinstyle = options . lineJoin ;
90
90
}
91
91
92
92
} else if ( stroke ) {
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ L.Path = L.Class.extend({
20
20
stroke : true ,
21
21
color : '#0033ff' ,
22
22
dashArray : null ,
23
- linecap : null ,
24
- linejoin : null ,
23
+ lineCap : null ,
24
+ lineJoin : null ,
25
25
weight : 5 ,
26
26
opacity : 0.5 ,
27
27
You can’t perform that action at this time.
0 commit comments