From 50f285798c02da8cc90cab38eb7e5d80adbf1452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Mon, 14 Feb 2011 01:14:43 +0000 Subject: [PATCH] Fix Item#setPosition and Item#setBounds to actually work (unfinished porting work). --- src/item/Item.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index 45708d3a..22cda9e5 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -387,7 +387,7 @@ Item = Base.extend({ }, getBounds: function() { - // TODO: Implement + // TODO: Implement for items other than paths return new Rectangle(); }, @@ -409,7 +409,7 @@ Item = Base.extend({ center = bounds.center; matrix.translate(-center.x, -center.y); // Now execute the transformation: - transform(matrix); + this.transform(matrix); }, /** @@ -434,7 +434,7 @@ Item = Base.extend({ }, setPosition: function(point) { - translate(point.subtract(this.position)); + this.translate(point.subtract(this.position)); }, /** @@ -529,7 +529,7 @@ Item = Base.extend({ * @see Matrix#shear(double, double) */ shear: function(shx, shy, center) { - // TODO: Add support for center ack to Scriptographer too! + // TODO: Add support for center back to Scriptographer too! this.transform(new Matrix().shear(shx, shy, center || this.position)); } });