comparison nodejs/svg.js @ 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 dfe28355bded
children eff2f580b536
comparison
equal deleted inserted replaced
851:85f22a771e4a 852:0027379c962e
274 bbox.height = parseFloat(vstr); 274 bbox.height = parseFloat(vstr);
275 bbox.y -= bbox.height; 275 bbox.y -= bbox.height;
276 276
277 tgt.center = center = new Object(); 277 tgt.center = center = new Object();
278 278
279 //center.x = bbox.width / 2 + bbox.x; 279 center.x = bbox.width / 2 + bbox.x;
280 //center.y = bbox.height / 2 + bbox.y; 280 center.y = bbox.height / 2 + bbox.y;
281 center.x = bbox.x;
282 center.y = bbox.y;
283 a = node.attr("transform-center-x"); 281 a = node.attr("transform-center-x");
284 if(!a) 282 if(!a)
285 return 1; 283 return 1;
286 284
287 vstr = a.value(); 285 vstr = a.value();