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

constrain the diagram to fit a particular dimension width and height #238

Open
CrashLaker opened this issue Aug 27, 2023 · 2 comments
Open
Labels

Comments

@CrashLaker
Copy link

hi,

is it possible to set a maximum height and width?

image

regards,c.

@CrashLaker CrashLaker added the bug label Aug 27, 2023
@CrashLaker CrashLaker changed the title contrain the diagram to fit a particular dimension width and height constrain the diagram to fit a particular dimension width and height Aug 27, 2023
@soerendomroes
Copy link
Member

This is not directly possible using the layered algorithm. You could try to set a layer bound when using the COFFMAN_GRAHAM layering.strategy to make the drawing wider or set layer constraints using partition.

@CrashLaker
Copy link
Author

hi @soerendomroes thank you for your reply
1st approach was already suffice for me thanks a lot!
2nd approach looks more complex. i'll look into that
image

regards,c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants