From 406e6c95b93b089104b1bda6b9dba78f47ec9006 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 14 Feb 2016 21:44:34 +0100 Subject: [PATCH] Adjust comments to match new implementation --- src/path/PathItem.Boolean.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 1e35b859..1df0bae2 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -427,14 +427,14 @@ PathItem.inject(new function() { } } // Use the on-curve windings if no other intersections were - // found or if they canceled each other. + // found or if they canceled each other. On single paths + // this ensures that the overally winding is 1 if the + // point was on a monotonic curve. if (windLeft === 0 && windRight === 0) { windLeft = windLeftOnCurve; windRight = windRightOnCurve; } } - // If the point was on a monotonic curve, we are on the path by - // definition. In this case ensure that the winding is at least 1. return Math.max(abs(windLeft), abs(windRight)); }