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

better-looking results #1

Open
semibran opened this issue Jan 29, 2018 · 0 comments
Open

better-looking results #1

semibran opened this issue Jan 29, 2018 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@semibran
Copy link
Owner

The algorithm already minimizes whitespace, but I'm currently searching for a heuristic that prefers layouts that place whitespace closer to the bottom-right corner than leaving them strewn arbitrarily throughout the configuration.

An example of a "bad" configuration (generated automatically):

bad boxes

a "good" configuration (tweaked manually):

good boxes

The second one is easily the more compact revision. Unfortunately, calculating a score based on whitespace "position" is a lot more difficult than it appears. I've tried sorting by a lot of different positional shenanigans with the boxes (note that this algorithm isn't strictly bound to a grid) but no satisfactory results have come up yet.

@semibran semibran added enhancement New feature or request help wanted Extra attention is needed labels Jan 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant