diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-12 13:32:06 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-12 13:32:06 +0300 |
| commit | 92c7303c37e46f8ecea8c016f63fea9516c3aa26 (patch) | |
| tree | 72138072c19a0972a5d5b60f2dd252e44210667b /src/client/view | |
| parent | 095e9e86fbb693aaf4dc04744873c9c8b6109270 (diff) | |
client/view/graph_view: add and export {node,link}__hover__{start,end}
Diffstat (limited to 'src/client/view')
| -rw-r--r-- | src/client/view/graph_view.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 36fcce59..b06241fa 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -522,6 +522,7 @@ function GraphView(spec) { set_link_label_text(d.id, link_text__short(d)); } } + gv.link__hover__start = link__hover__start; var link__hover__end = function (d) { var e = document.getElementById(d.id); @@ -532,6 +533,7 @@ function GraphView(spec) { set_link_label_text(d.id, ""); } } + gv.link__hover__end = link__hover__end; var link_on_hover = function (d) { $('#' + d.id).hover(function (e) { @@ -541,6 +543,18 @@ function GraphView(spec) { }); } + gv.node__hover__start = function (d) { + var e = document.getElementById(d.id); + + add_class(e, 'hovering'); + } + + gv.node__hover__end = function (d) { + var e = document.getElementById(d.id); + + remove_class(e, 'hovering'); + } + relayout = (relayout === undefined && true) || relayout; link = set_data_by_id(d3.select(unselected_link_group).selectAll("g.link"), visible_links); |
