Skip to content

better-looking results #1

@semibran

Description

@semibran

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions