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