mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-27 22:29:11 -04:00
Add _dontNotify parameter to Matrix#reset() and use it in Item#applyMatrix()
This commit is contained in:
parent
1f55ec4349
commit
5a131930fb
2 changed files with 4 additions and 3 deletions
src/basic
|
@ -140,10 +140,11 @@ var Matrix = Base.extend(/** @lends Matrix# */{
|
|||
* "Resets" the matrix by setting its values to the ones of the identity
|
||||
* matrix that results in no transformation.
|
||||
*/
|
||||
reset: function() {
|
||||
reset: function(_dontNotify) {
|
||||
this._a = this._d = 1;
|
||||
this._c = this._b = this._tx = this._ty = 0;
|
||||
this._changed();
|
||||
if (!_dontNotify)
|
||||
this._changed();
|
||||
return this;
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue