mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Minor cleanup.
This commit is contained in:
parent
fc600595a4
commit
4c94553b81
1 changed files with 2 additions and 2 deletions
|
@ -464,7 +464,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
|
||||||
if (!t2Inside)
|
if (!t2Inside)
|
||||||
lenghts.push(c3.getLength(), c4.getLength());
|
lenghts.push(c3.getLength(), c4.getLength());
|
||||||
var pt = this.getPoint(),
|
var pt = this.getPoint(),
|
||||||
offset = Math.min.apply(null, lenghts) / 64,
|
offset = Math.min.apply(Math, lenghts) / 64,
|
||||||
v2 = t1Inside ? c2.getTangentAtTime(t1)
|
v2 = t1Inside ? c2.getTangentAtTime(t1)
|
||||||
: c2.getPointAt(offset).subtract(pt),
|
: c2.getPointAt(offset).subtract(pt),
|
||||||
v1 = t1Inside ? v2.negate()
|
v1 = t1Inside ? v2.negate()
|
||||||
|
|
Loading…
Reference in a new issue