Mercurial > MadButterfly
comparison nodejs/svg.js @ 848:702e4874a58a
Use the center as the default transformaqtion point.
author | wycc |
---|---|
date | Mon, 20 Sep 2010 21:47:21 +0800 |
parents | dfe28355bded |
children | 881efcd8a18f |
comparison
equal
deleted
inserted
replaced
847:dfe28355bded | 848:702e4874a58a |
---|---|
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; | 281 //center.x = bbox.x; |
282 center.y = bbox.y; | 282 //center.y = bbox.y; |
283 a = node.attr("transform-center-x"); | 283 a = node.attr("transform-center-x"); |
284 if(!a) | 284 if(!a) |
285 return 1; | 285 return 1; |
286 | 286 |
287 vstr = a.value(); | 287 vstr = a.value(); |