Rename #transformContent() to #_transform(), to make sure it's supposed to be a private method.

This commit is contained in:
Jürg Lehni 2011-03-03 12:47:55 +00:00
parent 1f29f6f104
commit 53b091b871
4 changed files with 6 additions and 6 deletions

View file

@ -591,8 +591,8 @@ Item = Base.extend({
// TODO: Handle flags, add TransformFlag class and convert to bit mask // TODO: Handle flags, add TransformFlag class and convert to bit mask
// for quicker checking // for quicker checking
// TODO: Call transform on chidren only if 'children' flag is provided // TODO: Call transform on chidren only if 'children' flag is provided
if (this.transformContent) if (this._transform)
this.transformContent(matrix, flags); this._transform(matrix, flags);
if (this.children) { if (this.children) {
for (var i = 0, l = this.children.length; i < l; i++) { for (var i = 0, l = this.children.length; i < l; i++) {
var child = this.children[i]; var child = this.children[i];
@ -602,7 +602,7 @@ Item = Base.extend({
}, },
/* /*
transformContent: function(matrix, flags) { _transform: function(matrix, flags) {
// The code that performs the actual transformation of content, // The code that performs the actual transformation of content,
// if defined. Item itself does not define this. // if defined. Item itself does not define this.
}, },

View file

@ -25,7 +25,7 @@ PlacedSymbol = Item.extend({
this._size = this._bounds.size; this._size = this._bounds.size;
}, },
transformContent: function(matrix, flags) { _transform: function(matrix, flags) {
var width = this._size.width; var width = this._size.width;
var height = this._size.height; var height = this._size.height;
var x = width * -0.5; var x = width * -0.5;

View file

@ -149,7 +149,7 @@ Raster = Item.extend({
this._canvas = canvas; this._canvas = canvas;
}, },
transformContent: function(matrix, flags) { _transform: function(matrix, flags) {
// In order to set the right context transformation when drawing the // In order to set the right context transformation when drawing the
// raster, simply preconcatenate the internal matrix with the provided // raster, simply preconcatenate the internal matrix with the provided
// one. // one.

View file

@ -70,7 +70,7 @@ Path = PathItem.extend({
return -result.b; return -result.b;
}, },
transformContent: function(matrix, flags) { _transform: function(matrix, flags) {
var coords = new Array(6); var coords = new Array(6);
for (var i = 0, l = this._segments.length; i < l; i++) { for (var i = 0, l = this._segments.length; i < l; i++) {
var segment = this._segments[i]; var segment = this._segments[i];