mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Simplify code.
This commit is contained in:
parent
3d06f215c8
commit
b035077d31
1 changed files with 2 additions and 2 deletions
|
@ -222,8 +222,8 @@ var PathFitter = Base.extend({
|
|||
u[i - first] = u[i - first - 1]
|
||||
+ this.points[i].getDistance(this.points[i - 1]);
|
||||
}
|
||||
for (var i = first + 1; i <= last; i++) {
|
||||
u[i - first] = u[i - first] / u[last - first];
|
||||
for (var i = 1, m = last - first; i <= m; i++) {
|
||||
u[i] /= u[m];
|
||||
}
|
||||
return u;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue