[Pkg-javascript-commits] [leaflet] 03/78: + missing lineCap and lineJoin options for Path.Canvas.

Jonas Smedegaard dr at jones.dk
Sat May 7 08:58:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet.

commit 61c39eb98c961c0809181ea88524d06d702baebc
Author: george <gbuhanov at gmail.com>
Date:   Tue Jan 20 17:14:00 2015 +0500

    + missing lineCap and lineJoin options for Path.Canvas.
    
    Fix whitespace
    
    Fix
---
 src/layer/vector/canvas/Path.Canvas.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/layer/vector/canvas/Path.Canvas.js b/src/layer/vector/canvas/Path.Canvas.js
index 5906a38..0eaaf97 100644
--- a/src/layer/vector/canvas/Path.Canvas.js
+++ b/src/layer/vector/canvas/Path.Canvas.js
@@ -73,6 +73,13 @@ L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path :
 		if (options.fill) {
 			this._ctx.fillStyle = options.fillColor || options.color;
 		}
+
+		if (options.lineCap) {
+			this._ctx.lineCap = options.lineCap;
+		}
+		if (options.lineJoin) {
+			this._ctx.lineJoin = options.lineJoin;
+		}
 	},
 
 	_drawPath: function () {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet.git



More information about the Pkg-javascript-commits mailing list