Skip to content

Allow for layout arg to maintain size of svg element #663

@sammdec

Description

@sammdec

Currently when using the layout arg vpype will use the bounding box of the geometries to align it to the center and scale it to the size taking into account any margins and paper size.

It would be cool if we could use the dimensions of the svg element to align to center and scale to the paper size.

The usecase for this would be handling multi layered plots that are made up of separate svg files that are split based on plot layer it would make it easy to align to paper size and any margins while maintaining any empty space around the layers to keep consistent with other layers.

In the CLI my suggestion is to have a --no-bb flag in the layout arg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions