# HG changeset patch # User wycc # Date 1284990441 -28800 # Node ID 702e4874a58a6e499ca4a53eb64fa55d39cc6c2f # Parent dfe28355bdedfb9ae5774671c9bba32376a494e5 Use the center as the default transformaqtion point. diff -r dfe28355bded -r 702e4874a58a nodejs/svg.js --- a/nodejs/svg.js Sun Sep 19 19:28:33 2010 +0800 +++ b/nodejs/svg.js Mon Sep 20 21:47:21 2010 +0800 @@ -276,10 +276,10 @@ 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; + //center.x = bbox.x; + //center.y = bbox.y; a = node.attr("transform-center-x"); if(!a) return 1;