Make View#transform() private.

This commit is contained in:
Jürg Lehni 2011-05-17 13:43:10 +01:00
parent f3f5515763
commit 160f3d55c7

View file

@ -144,12 +144,12 @@ var View = this.View = Base.extend({
setZoom: function(zoom) {
// TODO: Clamp the view between 1/32 and 64, just like Illustrator?
this.transform(new Matrix().scale(zoom / this._zoom, this.getCenter()));
this._transform(new Matrix().scale(zoom / this._zoom, this.getCenter()));
this._zoom = zoom;
},
scrollBy: function(point) {
this.transform(new Matrix().translate(Point.read(arguments).negate()));
this._transform(new Matrix().translate(Point.read(arguments).negate()));
},
draw: function() {
@ -184,7 +184,7 @@ var View = this.View = Base.extend({
return !!res.length;
},
transform: function(matrix, flags) {
_transform: function(matrix, flags) {
this._matrix.preConcatenate(matrix);
// Force recalculation of these values next time they are requested.
this._bounds = null;