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

rectpacking: Fix micro layout for rectpacking including content alignment and label placement. #997

Merged
merged 3 commits into from
Feb 13, 2024

Conversation

soerendomroes
Copy link
Contributor

@soerendomroes soerendomroes commented Feb 12, 2024

Previously it was only done after because whitespace elimination might change node sizes. However, if the node size cannot fit the label, we need to do this before the layout too.

I suggest to maybe take a look at #989 and see whether this has the same reason. If both are fixed, I propose an elkjs only release for this fix.

Also fixes #996

Previously it was only done after because whitespace elimination might
change node sizes. However, if the node size cannot fit the label, we
need to do this before the layout too.
@soerendomroes soerendomroes added the alg-rectpacking Affects the ELK RectPacking algorithm. label Feb 12, 2024
@soerendomroes soerendomroes added this to the Release 0.9.1 milestone Feb 12, 2024
@soerendomroes soerendomroes changed the title rectpacking: Do node micro layout before and after layout. rectpacking: Fix micro layout for rectpacking including content alignment and label placement. Feb 13, 2024
@soerendomroes soerendomroes linked an issue Feb 13, 2024 that may be closed by this pull request
Copy link
Contributor

@Eddykasp Eddykasp left a comment

Choose a reason for hiding this comment

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

👍

@soerendomroes soerendomroes merged commit c6f44e8 into eclipse-elk:master Feb 13, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alg-rectpacking Affects the ELK RectPacking algorithm.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rectpacking does microlayout only after the layout step Rectpacking unaware of ContentAlignment
2 participants