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

Feature Request: Prioritize width/16:9 aspect ratio - Ideal for Powerpoints #24

Open
drewbitt opened this issue Jan 23, 2023 · 2 comments

Comments

@drewbitt
Copy link

d2 in most diagrams I have tried favors scaling vertically, especially when using containers. However, in the common scenario of using a diagram for a Powerpoint, it would be ideal to instead expand wide while filling most of the space of a 16x9 aspect ratio. TALA seeds are the best bet to get it to expand wide, but it can do some funky stuff when connecting containers - 1 container up top, 4 containers at bottom, etc.

A simple way to consistently create something like the below where the containers & connections fill the space well would be a value addition to TALA
image

@alixander
Copy link
Contributor

Should be doable. Do you care that it's "exactly 16x9" (algorithm doesn't consider moves that breaks this), or can it be "about 16x9" (algorithm puts a negative weight on moves that break 16x9, but can still do it to look good in other factors)? @drewbitt

@drewbitt
Copy link
Author

drewbitt commented Jan 23, 2023

@alixander "About" 16x9 would be beneficial if the diagram is accompanied by other elements on the slide, so in scenarios where there's not much content. No reason to force 16x9 there. I'm curious though if an "about" approach would be able to create an acceptable diagram with a large amount of data or if that would need to be forced.

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

No branches or pull requests

2 participants