Skip to content

Commit

Permalink
finalized i think
Browse files Browse the repository at this point in the history
  • Loading branch information
naelstrof committed Mar 19, 2016
1 parent 824bc1e commit de8df7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions public/scripts/dracula_graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Graph.Renderer.Raphael = function(element, graph, width, height) {
}
};
d.onmouseup = function () {
selfRef.isDrag && selfRef.isDrag.set.animate({"fill-opacity": .6}, 500);
selfRef.isDrag && selfRef.isDrag.set.animate({"fill-opacity": 1}, 500);
selfRef.isDrag = false;
};
this.draw();
Expand Down Expand Up @@ -256,7 +256,7 @@ Graph.Renderer.Raphael.prototype = {

shape = node.render(this.r, node).hide();

shape.attr({"fill-opacity": .6});
shape.attr({"fill-opacity": 1});
/* re-reference to the node an element belongs to, needed for dragging all elements of a node */
shape.items.forEach(function(item){ item.set = shape; item.node.style.cursor = "move"; });
shape.mousedown(this.dragger);
Expand Down
4 changes: 2 additions & 2 deletions public/scripts/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ $(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"});
var text = r.text( 0, 0, node.label || node.id ).attr({"font-size": "18px", "stroke": "#FFF", "stroke-width" : 3});
var texta = r.text( 0, 0, node.label || node.id ).attr({"font-size": "18px", "fill": "#000"});
/* set DOM node ID */
ellipse.node.id = node.label || node.id;
shape = r.set().
Expand Down

0 comments on commit de8df7a

Please sign in to comment.