summaryrefslogtreecommitdiff
path: root/scripts/view/view.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-11-11 22:57:24 +0200
committerAlon Levy <alon@pobox.com>2014-11-11 22:57:24 +0200
commit3af0a82791b6bf3e24015d652c9fbddba0d1cfeb (patch)
tree74aa4f9bba8bd4dfe8fd242577eb4a5fca7a674d /scripts/view/view.js
parent11c0789ae6e5b0e8e91c55d36a64ce27cd533265 (diff)
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.
Diffstat (limited to 'scripts/view/view.js')
0 files changed, 0 insertions, 0 deletions