diff options
author | anujag <anujag@inspiration.(none)> | 2012-07-02 18:48:14 +0530 |
---|---|---|
committer | anujag <anujag@inspiration.(none)> | 2012-07-02 18:48:14 +0530 |
commit | 04aaba1f8a52c5eb2820102abd90626c74f68017 (patch) | |
tree | ce4730f92968a361e53618c441e7916abe96edb1 /gstudio/templates/gstudio/skeleton.html | |
parent | 71829c19e5b711503d010e594563a0a14bbf8d54 (diff) | |
download | gnowsys-04aaba1f8a52c5eb2820102abd90626c74f68017.tar.gz |
Merged graph code
Diffstat (limited to 'gstudio/templates/gstudio/skeleton.html')
-rw-r--r-- | gstudio/templates/gstudio/skeleton.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html index 6bb3d46..c99bab9 100644 --- a/gstudio/templates/gstudio/skeleton.html +++ b/gstudio/templates/gstudio/skeleton.html @@ -502,7 +502,7 @@ $(window).bind('keydown',function(event) { - var text1 = new_g.append("svg:text") + text1 = new_g.append("svg:text") .attr("class",function(d) {var e=(d._id).charAt(0); if (d._id==key) return "mainnode";else if (e=="-") return "nodetext"; else if (isNaN(d._id)) return "relnode"; else return "node"; }) .attr("y", 20) .attr("x", 25) @@ -514,12 +514,11 @@ $(window).bind('keydown',function(event) { return d.screen_name; }); - var bbox = text1.node().getBBox(); - + bbox = text1.node().getBBox(); + console.log(bbox); new_g.filter(function(d) { return (d._id).charAt(0)=="-"; }).append("svg:rect") - .attr("x",bbox.x-22 - ) + .attr("x",bbox.x-22) .attr("y", bbox.y) .attr("width", function(d) {var ttx=d.screen_name ; return (ttx.length+bbox.width+40)}) .attr("height", bbox.height) |