mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Improve comments.
This commit is contained in:
parent
8a53288b1e
commit
29aaf38320
1 changed files with 3 additions and 1 deletions
|
@ -1768,9 +1768,11 @@ var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
||||||
return null;
|
return null;
|
||||||
var coords = new Array(6),
|
var coords = new Array(6),
|
||||||
prevCoords = new Array(6);
|
prevCoords = new Array(6);
|
||||||
// Make coordinates for first segment available in prevCoords.
|
// If the matrix is an identity transformation, set it to null for
|
||||||
|
// faster processing
|
||||||
if (matrix && matrix.isIdentity())
|
if (matrix && matrix.isIdentity())
|
||||||
matrix = null;
|
matrix = null;
|
||||||
|
// Make coordinates for first segment available in prevCoords.
|
||||||
first._transformCoordinates(matrix, prevCoords, false);
|
first._transformCoordinates(matrix, prevCoords, false);
|
||||||
var min = prevCoords.slice(0, 2),
|
var min = prevCoords.slice(0, 2),
|
||||||
max = min.slice(0), // clone
|
max = min.slice(0), // clone
|
||||||
|
|
Loading…
Reference in a new issue