Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve workflow layouter #156

Merged
merged 1 commit into from
Apr 18, 2022
Merged

Improve workflow layouter #156

merged 1 commit into from
Apr 18, 2022

Conversation

planger
Copy link
Member

@planger planger commented Apr 5, 2022

  • Remove bendpoints, because they are inconvenient for editing later on
  • Set alignmenet of node placement to balanced

* Remove bendpoints, because they are inconvenient for editing later on
* Set alignmenet of node placement to balanced
@planger planger requested a review from tortmayr April 5, 2022 11:20
configurator.configureByType("graph");
this.layout((GGraph) modelState.getRoot(), configurator);
configurator.configureByType("graph")
.setProperty(LayeredOptions.NODE_PLACEMENT_BK_FIXED_ALIGNMENT,
Copy link
Contributor

Choose a reason for hiding this comment

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

I would also set the EDGE_ROUTING property to polyline. Otherwise we create a lot of unnecessary bendpoints that we have to remove afterwards.

Suggested change
.setProperty(LayeredOptions.NODE_PLACEMENT_BK_FIXED_ALIGNMENT,
.setProperty(LayeredOptions.EDGE_ROUTING, EdgeRouting.POLYLINE),
.setProperty(LayeredOptions.NODE_PLACEMENT_BK_FIXED_ALIGNMENT,

Copy link
Contributor

@tortmayr tortmayr left a comment

Choose a reason for hiding this comment

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

Looks good to me! The autolayouted diagram looks way better now. 👍

@tortmayr tortmayr merged commit b7edcd3 into master Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants