Skip to content

Commit c1bc83b

Browse files
committed
Merge pull request Leaflet#1881 from datadesk/linecap-camelcase
Corrected camelcasing of lineCap and lineJoin.
2 parents e7ebb60 + ede3aeb commit c1bc83b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/layer/vector/Path.SVG.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ L.Path = L.Path.extend({
8181
this._path.removeAttribute('stroke-dasharray');
8282
}
8383
if (this.options.lineCap) {
84-
this._path.setAttribute('stroke-linecap', this.options.linecap);
84+
this._path.setAttribute('stroke-linecap', this.options.lineCap);
8585
}
8686
if (this.options.lineJoin) {
87-
this._path.setAttribute('stroke-linejoin', this.options.linejoin);
87+
this._path.setAttribute('stroke-linejoin', this.options.lineJoin);
8888
}
8989
} else {
9090
this._path.setAttribute('stroke', 'none');

src/layer/vector/Path.VML.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({
8282
} else {
8383
stroke.dashStyle = '';
8484
}
85-
if (options.linecap) {
86-
stroke.endcap = options.linecap.replace('butt', 'flat');
85+
if (options.lineCap) {
86+
stroke.endcap = options.lineCap.replace('butt', 'flat');
8787
}
88-
if (options.linejoin) {
89-
stroke.joinstyle = options.linejoin;
88+
if (options.lineJoin) {
89+
stroke.joinstyle = options.lineJoin;
9090
}
9191

9292
} else if (stroke) {

src/layer/vector/Path.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ L.Path = L.Class.extend({
2020
stroke: true,
2121
color: '#0033ff',
2222
dashArray: null,
23-
linecap: null,
24-
linejoin: null,
23+
lineCap: null,
24+
lineJoin: null,
2525
weight: 5,
2626
opacity: 0.5,
2727

0 commit comments

Comments
 (0)