commit | b15a39483b4d4e4b40b4c9a66f96902d2d599e43 | [log] [tgz] |
---|---|---|
author | Steven Burrows <sburrows@villa-technologies.com> | Tue Jan 17 17:25:04 2017 +0000 |
committer | Simon Hunt <simon@onlab.us> | Tue Jan 31 18:57:59 2017 +0000 |
tree | 2469679e2fd8de9725c502359e6a369c99404aea | |
parent | 51590ff58cb6928bdbb773dc586c80b90cf1a31a [diff] [blame] |
Topo2: Update links on websocket events Change-Id: I6a8b05cc0eaf67e2b10dd39aeb4b876c61c40ec6
diff --git a/web/gui/src/main/webapp/app/view/topo2/topo2Link.js b/web/gui/src/main/webapp/app/view/topo2/topo2Link.js index bcd315d..73ac150 100644 --- a/web/gui/src/main/webapp/app/view/topo2/topo2Link.js +++ b/web/gui/src/main/webapp/app/view/topo2/topo2Link.js
@@ -319,6 +319,18 @@ if (this.get('enhanced')) { this.enhance(); } + }, + remove: function () { + + var width = linkScale(widthRatio) / t2zs.scale(); + + this.el.transition() + .duration(300) + .attr('stroke', '#ff0000') + .style('stroke-width', width * 4) + .transition() + .delay(1000) + .style('opacity', 0); } });