From de8df7acf198797171a6afbefa2d2ba3e16f602b Mon Sep 17 00:00:00 2001 From: naelstrof Date: Sat, 19 Mar 2016 01:28:17 -0600 Subject: [PATCH] finalized i think --- public/scripts/dracula_graph.js | 4 ++-- public/scripts/get.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/scripts/dracula_graph.js b/public/scripts/dracula_graph.js index f3e43e1..5947d78 100644 --- a/public/scripts/dracula_graph.js +++ b/public/scripts/dracula_graph.js @@ -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(); @@ -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); diff --git a/public/scripts/get.js b/public/scripts/get.js index 38f4496..d24488b 100644 --- a/public/scripts/get.js +++ b/public/scripts/get.js @@ -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().