item.setMatrix useful

This commit is contained in:
sapics 2015-07-11 18:31:03 +09:00
parent 4044089d0e
commit da2caa999e

View file

@ -1130,9 +1130,9 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
return this._matrix;
},
setMatrix: function(matrix) {
setMatrix: function() {
// Use Matrix#initialize to easily copy over values.
this._matrix.initialize(matrix);
this._matrix.initialize.apply(this._matrix, arguments);
if (this._applyMatrix) {
// Directly apply the internal matrix. This will also call
// _changed() for us.