From 9f5f3192b732e511aa0b2621ddf51c2d44d4bd81 Mon Sep 17 00:00:00 2001 From: iconexperience Date: Wed, 1 Mar 2017 09:06:53 +0100 Subject: [PATCH] Set curve time to 1 for curves completely right or left of point for better performance. Note that we cannot set the time to 0, because this would invoke special handling for crossing at the curve's start point. --- src/path/PathItem.Boolean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/PathItem.Boolean.js b/src/path/PathItem.Boolean.js index 646002e5..4068b0be 100644 --- a/src/path/PathItem.Boolean.js +++ b/src/path/PathItem.Boolean.js @@ -515,7 +515,7 @@ PathItem.inject(new function() { var t = po === o0 ? 0 : po === o3 ? 1 : paL > max(a0, a1, a2, a3) || paR < min(a0, a1, a2, a3) - ? 0.5 + ? 1 : Curve.solveCubic(v, io, po, roots, 0, 1) === 1 ? roots[0] : 0.5,