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.

This commit is contained in:
iconexperience 2017-03-01 09:06:53 +01:00
parent 86d05624c0
commit 9f5f3192b7

View file

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