Skip to content

Commit

Permalink
Allow server to specify shape of pseudo nodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
foot authored and davkal committed Feb 9, 2016
1 parent 4e2b5b8 commit fdd3f6f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/app/scripts/charts/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ const nodeShapes = {
'cloud': NodeShapeCloud
};

function getNodeShape({pseudo, shape, stack}) {
if (pseudo) {
return NodeShapeCircle;
}
function getNodeShape({shape, stack}) {
const nodeShape = nodeShapes[shape];
return stack ? stackedShape(nodeShape) : nodeShape;
}
Expand Down

0 comments on commit fdd3f6f

Please sign in to comment.