Skip to content

Layout margin: default and configuration #46

@not-my-profile

Description

@not-my-profile

The padding of the diagram is currently hard coded to 80px:

pub const LAYOUT_MARGIN: f32 = 80.0;

Personally I think this is way too much. When viewing such an image on mobile with a max-width: 100% it leads to wasted space.
mermaid-js apparently defaults to 8px, graphviz to 8 points (whatever a point is but it looks similar).

So I think it would be nice if the default would be lowered and perhaps in addition made configurable with yet another CLI option (though #45 would help with that).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions