Skip to content
/ kibana Public
forked from elastic/kibana

Commit

Permalink
Add animation to service map layout (elastic#56042)
Browse files Browse the repository at this point in the history
We had previously deleted the animation because the method we were using for adding nodes to the map would wipe the whole map out before redrawing it and make for very awkward animation.

The way it works now is the Cytoscape component calls `add` on the cytoscape instance when new elements are added, so the animation looks ok.

Fixes elastic#54796.

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
smith and elasticmachine committed Jan 31, 2020
1 parent cf19b86 commit 547e877
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import { defaultIcon, iconForNode } from './icons';
const layout = {
name: 'dagre',
nodeDimensionsIncludeLabels: true,
rankDir: 'LR'
rankDir: 'LR',
animate: true,
animationEasing: theme.euiAnimSlightBounce,
animationDuration: parseInt(theme.euiAnimSpeedNormal, 10)
};

function isService(el: cytoscape.NodeSingular) {
Expand Down

0 comments on commit 547e877

Please sign in to comment.