diff options
-rw-r--r-- | gstudio/templates/gstudio/skeleton.html | 16 | ||||
-rw-r--r-- | objectapp/templates/objectapp/skeleton.html | 12 |
2 files changed, 14 insertions, 14 deletions
diff --git a/gstudio/templates/gstudio/skeleton.html b/gstudio/templates/gstudio/skeleton.html index 7d4179bb..7c1c6986 100644 --- a/gstudio/templates/gstudio/skeleton.html +++ b/gstudio/templates/gstudio/skeleton.html @@ -426,10 +426,10 @@ function load(key) var force = d3.layout.force() - .linkStrength(0.5) - .charge(-5000) + .linkStrength(1) + .charge(-4000) .friction(0.7) - .gravity(0.7) + .gravity(0.4) .linkDistance(50) .nodes([]) .links([]) @@ -668,7 +668,7 @@ $(window).bind('keydown',function(event) { new_g.filter(function(d) { return (d._id).charAt(0)=="-"; }).append("svg:rect") .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("width", function(d) {var ttx=d.screen_name ; return (ttx.length+bbox.width+50)}) .attr("height", bbox.height) .call(force.drag) .style("fill-opacity", ".1") @@ -684,11 +684,11 @@ $(window).bind('keydown',function(event) { .attr("cx", bbox.x+25) .attr("cy", bbox.y+13) .call(force.drag) - .attr("rx",function(d) {var ttx=d.screen_name ; return (ttx.length + 40)}) + .attr("rx",function(d) {var ttx=d.screen_name ; return (ttx.length + 70)}) .attr("ry",13) - .style("fill-opacity", ".2") - .style("stroke", "#666") - .style("stroke-width", "1.5px") + .style("fill-opacity", "0.3") + .style("stroke", "white") + .style("stroke-width", "0.0px") .style("fill", function(d) {if ((d.expanded=="true" && d.refType=="Objecttype") ||(d._id=={{object.id}}) ) return "blue"; else if(d.expanded=="true" && d.refType=="Gbobject") return "red"; else return "none"}); diff --git a/objectapp/templates/objectapp/skeleton.html b/objectapp/templates/objectapp/skeleton.html index 3ae65f61..96459574 100644 --- a/objectapp/templates/objectapp/skeleton.html +++ b/objectapp/templates/objectapp/skeleton.html @@ -453,7 +453,7 @@ var q = 110 + "%"; .linkStrength(0.5) .charge(-5000) .friction(0.7) - .gravity(0.7) + .gravity(0.5) .linkDistance(50) .nodes([]) .links([]) @@ -695,7 +695,7 @@ $(window).bind('keydown',function(event) { new_g.filter(function(d) { return (d._id).charAt(0)=="-"; }).append("svg:rect") .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("width", function(d) {var ttx=d.screen_name ; return (ttx.length +bbox.width+50)}) .attr("height", bbox.height) .call(force.drag) .style("fill-opacity", ".1") @@ -712,12 +712,12 @@ $(window).bind('keydown',function(event) { .attr("cx", bbox.x+25) .attr("cy", bbox.y+13) .call(force.drag) - .attr("rx",function(d) {var ttx=d.screen_name ; return (ttx.length + 40)}) + .attr("rx",function(d) {var ttx=d.screen_name ; return (ttx.length + 70)}) .attr("ry",13) - .style("fill-opacity", ".2") - .style("stroke", "#666") - .style("stroke-width", "1.5px") + .style("fill-opacity", "0.3") + .style("stroke", "white") + .style("stroke-width", "0.0px") .style("fill", function(d) {if ((d.expanded=="true" && d.refType=="Gbobject") ||(d._id=={{object.id}}) ) return "red"; else if(d.expanded=="true" && d.refType=="Objecttype") return "blue"; else return "none"}) |