changeset 852:0027379c962e abs_n_rel_center

Revert changeset 76fe4afce640
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 20 Sep 2010 22:43:43 +0800
parents 85f22a771e4a
children 13e0953c3fb3
files nodejs/svg.js
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/svg.js	Mon Sep 20 22:43:43 2010 +0800
+++ b/nodejs/svg.js	Mon Sep 20 22:43:43 2010 +0800
@@ -276,10 +276,8 @@
 
     tgt.center = center = new Object();
     
-    //center.x = bbox.width / 2 + bbox.x;
-    //center.y = bbox.height / 2 + bbox.y;
-    center.x = bbox.x;
-    center.y = bbox.y;
+    center.x = bbox.width / 2 + bbox.x;
+    center.y = bbox.height / 2 + bbox.y;
     a = node.attr("transform-center-x");
     if(!a)
 	return 1;