mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 14:10:14 -05:00
More variable definition chaining.
This commit is contained in:
parent
49e828ab9d
commit
e892d4446a
1 changed files with 5 additions and 4 deletions
|
@ -94,14 +94,15 @@ var Path = this.Path = PathItem.extend({
|
|||
// Use matrix.transform version() that takes arrays of multiple
|
||||
// points for largely improved performance, as no calls to
|
||||
// Point.read() and Point constructors are necessary.
|
||||
var point = segment.point;
|
||||
var handleIn = segment.handleIn;
|
||||
var point = segment.point,
|
||||
handleIn = segment.handleIn,
|
||||
handleOut = segment.handleOut,
|
||||
x = point.x,
|
||||
y = point.y;
|
||||
if (handleIn.isZero())
|
||||
handleIn = null;
|
||||
var handleOut = segment.handleOut;
|
||||
if (handleOut.isZero())
|
||||
handleOut = null;
|
||||
var x = point.x, y = point.y;
|
||||
coords[0] = x;
|
||||
coords[1] = y;
|
||||
var index = 2;
|
||||
|
|
Loading…
Reference in a new issue