From 7b73ec238d1bc63b4a2cce1751355c3e504b8cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 26 Feb 2017 00:22:49 +0100 Subject: [PATCH] Remove onPath winding hack again. See #1073 --- src/path/PathItem.Boolean.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index de2a5289..aab4cde7 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -658,17 +658,6 @@ PathItem.inject(new function() { // it now to treat the path as closed: if (vClose && (res = handleCurve(vClose))) return res; - if (onPath && !windingL && !windingR) { - // If the point is on the path and the windings canceled - // each other, we treat the point as if it was inside the - // path. A point inside a path has a winding of [+1,-1] - // for clockwise and [-1,+1] for counter-clockwise paths. - // If the ray is cast in y direction (dir == 1), the - // windings always have opposite sign. - var add = path.isClockwise(closed) ^ dir ? 1 : -1; - windingL += add; - windingR += add; - } vClose = null; } }