mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Change array format.
This commit is contained in:
parent
d442ab1d71
commit
0305c91e8c
1 changed files with 5 additions and 5 deletions
|
@ -162,11 +162,11 @@ Raster = Item.extend({
|
|||
var x = -width / 2;
|
||||
var y = -height / 2;
|
||||
var coords = [
|
||||
x, y,
|
||||
x + width, y,
|
||||
x + width, y + height,
|
||||
x, y + height];
|
||||
this.matrix.preConcatenate(matrix);
|
||||
x, y,
|
||||
x + width, y,
|
||||
x + width, y + height,
|
||||
x, y + height
|
||||
];
|
||||
this.matrix.transform(coords, 0, coords, 0, 4);
|
||||
|
||||
var xMin = coords[0], xMax = coords[0];
|
||||
|
|
Loading…
Reference in a new issue