You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2018/11/26 15:30:22 UTC

qpid-dispatch git commit: DISPATCH-1193 Improve console's depiction of traffic congestion by smoothly transitioning link colors

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master dc6b9a709 -> 42b4ab5d4


DISPATCH-1193 Improve console's depiction of traffic congestion by smoothly transitioning link colors


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/42b4ab5d
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/42b4ab5d
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/42b4ab5d

Branch: refs/heads/master
Commit: 42b4ab5d4d1ecb244309e896f36224e03b344ec2
Parents: dc6b9a7
Author: Ernest Allen <ea...@redhat.com>
Authored: Mon Nov 26 10:30:10 2018 -0500
Committer: Ernest Allen <ea...@redhat.com>
Committed: Mon Nov 26 10:30:10 2018 -0500

----------------------------------------------------------------------
 console/stand-alone/plugin/js/topology/traffic.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/42b4ab5d/console/stand-alone/plugin/js/topology/traffic.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/topology/traffic.js b/console/stand-alone/plugin/js/topology/traffic.js
index d6bccad..a6079fc 100644
--- a/console/stand-alone/plugin/js/topology/traffic.js
+++ b/console/stand-alone/plugin/js/topology/traffic.js
@@ -166,7 +166,6 @@ class Congestion extends TrafficAnimation{
           let id = dir + '-' + congestion.substr(1) + (small ? '-s' : '');
           colors[id] = { dir: dir, color: congestion, small: small };
           path
-            .attr('stroke', congestion)
             .classed('traffic', true)
             .attr('marker-start', function (d) {
               return null;
@@ -176,6 +175,10 @@ class Congestion extends TrafficAnimation{
               return null;
               //return d.right ? 'url(' + self.traffic.prefix + '#' + id + ')' : null;
             });
+          path
+            .transition()
+            .duration(1000)
+            .attr('stroke', congestion);
         }
       }
       // create the svg:def that holds the custom markers


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org