mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Move #_transform() up.
This commit is contained in:
parent
a081419a8b
commit
3ca165f413
1 changed files with 7 additions and 7 deletions
|
@ -161,6 +161,13 @@ var View = this.View = PaperScopeItem.extend(/** @lends View# */{
|
|||
return true;
|
||||
},
|
||||
|
||||
_transform: function(matrix, flags) {
|
||||
this._matrix.preConcatenate(matrix);
|
||||
// Force recalculation of these values next time they are requested.
|
||||
this._bounds = null;
|
||||
this._inverse = null;
|
||||
},
|
||||
|
||||
/**
|
||||
* The underlying native canvas element.
|
||||
*
|
||||
|
@ -284,13 +291,6 @@ var View = this.View = PaperScopeItem.extend(/** @lends View# */{
|
|||
this._transform(new Matrix().translate(Point.read(arguments).negate()));
|
||||
},
|
||||
|
||||
_transform: function(matrix, flags) {
|
||||
this._matrix.preConcatenate(matrix);
|
||||
// Force recalculation of these values next time they are requested.
|
||||
this._bounds = null;
|
||||
this._inverse = null;
|
||||
},
|
||||
|
||||
/**
|
||||
* Draws the view.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue