# HG changeset patch # User Thinker K.F. Li # Date 1283237687 -28800 # Node ID ba6bb69ee4192034ba39312462d02d50e962b3ea # Parent 210e4d24a3ba72e7ffb9aff2c1bdb62f65dc2c4c Fix issue of incorrect top position of bbox. x of bbox generated by Inkscape is left-bottom corner and relative to left-bottom corner of page. Up-direction is positive. But, in previous implement, it assume getting a left-top corner. It is wrong, and it is fixed, now. diff -r 210e4d24a3ba -r ba6bb69ee419 nodejs/svg.js --- a/nodejs/svg.js Tue Aug 31 14:52:12 2010 +0800 +++ b/nodejs/svg.js Tue Aug 31 14:54:47 2010 +0800 @@ -269,6 +269,7 @@ a = node.attr("bbox-height"); vstr = a.value(); tgt.bbox_height = parseFloat(vstr); + tgt.bbox_y -= tgt.bbox_height; tgt.center_x = tgt.bbox_width / 2 + tgt.bbox_x; a = node.attr("transform-center-x");