diff --git a/src/item/Item.js b/src/item/Item.js index 7a1cbbb4..446646aa 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -591,8 +591,8 @@ Item = Base.extend({ // TODO: Handle flags, add TransformFlag class and convert to bit mask // for quicker checking // TODO: Call transform on chidren only if 'children' flag is provided - if (this.transformContent) - this.transformContent(matrix, flags); + if (this._transform) + this._transform(matrix, flags); if (this.children) { for (var i = 0, l = this.children.length; i < l; 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, // if defined. Item itself does not define this. }, diff --git a/src/item/PlacedSymbol.js b/src/item/PlacedSymbol.js index 0ce6021d..a822e8db 100644 --- a/src/item/PlacedSymbol.js +++ b/src/item/PlacedSymbol.js @@ -25,7 +25,7 @@ PlacedSymbol = Item.extend({ this._size = this._bounds.size; }, - transformContent: function(matrix, flags) { + _transform: function(matrix, flags) { var width = this._size.width; var height = this._size.height; var x = width * -0.5; diff --git a/src/item/Raster.js b/src/item/Raster.js index e36a28b4..68d7b60d 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -149,7 +149,7 @@ Raster = Item.extend({ this._canvas = canvas; }, - transformContent: function(matrix, flags) { + _transform: function(matrix, flags) { // In order to set the right context transformation when drawing the // raster, simply preconcatenate the internal matrix with the provided // one. diff --git a/src/path/Path.js b/src/path/Path.js index ccf4e147..e3432972 100644 --- a/src/path/Path.js +++ b/src/path/Path.js @@ -70,7 +70,7 @@ Path = PathItem.extend({ return -result.b; }, - transformContent: function(matrix, flags) { + _transform: function(matrix, flags) { var coords = new Array(6); for (var i = 0, l = this._segments.length; i < l; i++) { var segment = this._segments[i];