Change array format.

This commit is contained in:
Jürg Lehni 2011-02-28 20:21:21 +01:00
parent d442ab1d71
commit 0305c91e8c

View file

@ -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];