Skip to content

Commit

Permalink
some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
naelstrof committed Mar 19, 2016
1 parent 622b1d6 commit 824bc1e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion public/scripts/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ $(document).ready(function() {
/* the default node drawing */
var color = node.color;
var ellipse = r.ellipse(0, 0, 30, 20).attr({fill: color, stroke: color, "stroke-width": 2});
var text = r.text( 0, 0, node.label || node.id ).attr({"font-size": "18px", "stroke": "#000"});
var texta = r.text( 0, 0, node.label || node.id ).attr({"font-size": "18px", "fill": "#FFF"});
/* set DOM node ID */
ellipse.node.id = node.label || node.id;
shape = r.set().
push(ellipse).
push(r.text(0, 30, node.label || node.id));
push(text).
push(texta);
shape.translate( $("#content").width()/2, 300 );
return shape;
}
Expand All @@ -45,6 +48,7 @@ $(document).ready(function() {
}
} );
for(e in g.edges) {
g.edges[e].style["font-size"] = "18px";
g.edges[e].style.stroke = g.edges[e].source.color;
g.edges[e].style.fill = g.edges[e].source.color;
}
Expand Down
2 changes: 1 addition & 1 deletion public/styles/application.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.brand {
height: 42px;
padding-top: 10px;
margin-top: 10px;
}

html, body {
Expand Down

0 comments on commit 824bc1e

Please sign in to comment.