mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
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:
parent
86d05624c0
commit
9f5f3192b7
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue