Add explanatory comments to Raster#transformContent().

This commit is contained in:
Jürg Lehni 2011-02-28 20:17:59 +01:00
parent 763fc95776
commit c3d02bbd16

View file

@ -150,6 +150,13 @@ Raster = Item.extend({
},
transformContent: function(matrix, flags) {
// In order to set the right context transformation when drawing the
// raster, simply preconcatenate the internal matrix with the provided
// one.
this.matrix.preConcatenate(matrix);
// Now rotate the corner points of the image rectangle do find the
// extremas that define our raster's bounds, and update them straight
// away
var width = this._size.width;
var height = this._size.height;
var x = width * -0.5;