Skip to content

Conversation

@jeff-phillips-18
Copy link
Member

Description

Updates the creation of edges for the Dagre layout in the Topology Package demo so that the layout show more of a realistic use of the dagre layout.
Adds a Dagre Horizontal layout to the demo as well.

Type of change

  • Refactoring (no functional changes, no api changes)
  • Documentation content changes

Screen shots / Gifs for design review

See http://dagre-demo-fix.surge.sh/

@patternfly-build
Copy link

Copy link
Contributor

@nicolethoen nicolethoen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One question

if (options.logEvents) {
controller.addEventListener(GRAPH_POSITION_CHANGE_EVENT, graphPositionChangeListener);
controller.addEventListener(GRAPH_LAYOUT_END_EVENT, layoutEndListener);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be combined with the return statement as

return () => {
  if (options.logEvents) {
    controller.removeEventListener(GRAPH_POSITION_CHANGE_EVENT, graphPositionChangeListener);
    controller.removeEventListener(GRAPH_LAYOUT_END_EVENT, layoutEndListener);
  }
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants