Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

Autolayout doesn't support resizePaper and margin #87

Open
1 task done
WLun001 opened this issue Dec 28, 2021 · 1 comment
Open
1 task done

Autolayout doesn't support resizePaper and margin #87

WLun001 opened this issue Dec 28, 2021 · 1 comment
Labels
api gap Functionality missing from the Python API compared to Java enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@WLun001
Copy link

WLun001 commented Dec 28, 2021

Checklist

Is your feature related to a problem? Please describe it.

Currently auto layout can be set with the following code:

workspace.views.automatic_layout = AutomaticLayout(
            rank_direction=RankDIrection.TopBottom,
            rank_separation=300,
            edge_separation=10,
            node_separation=300,
            vertices=False
        )

but it only support the following parameters

rank_direction
rank_separation
node_separation
edge_separation
vertices

rank_direction: RankDirection = Field(..., alias="rankDirection")
rank_separation: int = Field(..., alias="rankSeparation")
node_separation: int = Field(..., alias="nodeSeparation")
edge_separation: int = Field(..., alias="edgeSeparation")
vertices: bool

But structurizr.com supports more than that. For example resize paper

https://graphviz.structurizr.com/?view=id&resizePaper=true&rankDirection=TB&rankSeparation=300&nodeSeparation=300&margin=400

Describe the solution you would like.

To add resizePaper and margin params support to AutomaticLayout class

Describe alternatives you considered

Manually auto layout on structurizr.com

Additional context

@Midnighter
Copy link
Owner

Hi @WLun001,

Thanks for the report. That seems a fairly easy addition but I'm currently wrapped up in other work. Would you be able to add these parameters?

@Midnighter Midnighter added api gap Functionality missing from the Python API compared to Java enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Jan 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api gap Functionality missing from the Python API compared to Java enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants