From 3af0a82791b6bf3e24015d652c9fbddba0d1cfeb Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 11 Nov 2014 22:57:24 +0200 Subject: Fix highlight of node and edge TODO 1: This is a bit magic. The problem is that I'm not sure exactly if the nodes/edges given to the click callback are updated correctly when we just do renames. So the code is a bit protective - it compares names instead of comparing objects. This might work or not later with multiple edges. But I really need to fix it so we never have callbacks with stale data. TODO 2: Plus I'm not using classes correctly, instead setting attributes in the d3 update function (update). This is already done but is a bad smell, makes it harder to change properties easily. Used for stroke-width here and for nodes, for color. --- res/css/style.css | 1 - 1 file changed, 1 deletion(-) (limited to 'res/css') diff --git a/res/css/style.css b/res/css/style.css index b8d10cc5..14a33d77 100644 --- a/res/css/style.css +++ b/res/css/style.css @@ -129,7 +129,6 @@ input:focus { .link { fill: none; stroke: #404040; - stroke-width: 2px; z-index:1; } -- cgit v1.3.1