[Pkg-javascript-commits] [leaflet] 11/78: Canvas path holes fillRule fix

Jonas Smedegaard dr at jones.dk
Sat May 7 08:58:42 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 ec0b5ee49611a73b64ce7008a947a4712e7ba96a
Author: w8r <info at w8r.name>
Date:   Mon May 18 14:02:11 2015 +0200

    Canvas path holes fillRule fix
---
 src/layer/vector/canvas/Path.Canvas.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/layer/vector/canvas/Path.Canvas.js b/src/layer/vector/canvas/Path.Canvas.js
index 0eaaf97..818abc2 100644
--- a/src/layer/vector/canvas/Path.Canvas.js
+++ b/src/layer/vector/canvas/Path.Canvas.js
@@ -117,7 +117,7 @@ L.Path = (L.Path.SVG && !window.L_PREFER_CANVAS) || !L.Browser.canvas ? L.Path :
 
 		if (options.fill) {
 			ctx.globalAlpha = options.fillOpacity;
-			ctx.fill();
+			ctx.fill(options.fillRule || 'evenodd');
 		}
 
 		if (options.stroke) {

-- 
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