mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -05:00
Shorten code a bit.
This commit is contained in:
parent
4dbba5f806
commit
af909238eb
1 changed files with 1 additions and 6 deletions
|
@ -350,12 +350,7 @@ var Matrix = this.Matrix = Base.extend({
|
||||||
tr = bounds.getTopRight(),
|
tr = bounds.getTopRight(),
|
||||||
br = bounds.getBottomRight(),
|
br = bounds.getBottomRight(),
|
||||||
bl = bounds.getBottomLeft(),
|
bl = bounds.getBottomLeft(),
|
||||||
coords = [
|
coords = [ tl.x, tl.y, tr.x, tr.y, br.x, br.y, bl.x, bl.y ];
|
||||||
tl.x, tl.y,
|
|
||||||
tr.x, tr.y,
|
|
||||||
br.x, br.y,
|
|
||||||
bl.x, bl.y
|
|
||||||
];
|
|
||||||
this.transform(coords, 0, coords, 0, 4);
|
this.transform(coords, 0, coords, 0, 4);
|
||||||
// Loop through all x and y coordinates and update min and max values.
|
// Loop through all x and y coordinates and update min and max values.
|
||||||
// Start with the first coordinate pair for both (coords.slice(0, 2)).
|
// Start with the first coordinate pair for both (coords.slice(0, 2)).
|
||||||
|
|
Loading…
Reference in a new issue