-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
api gapFunctionality missing from the Python API compared to JavaFunctionality missing from the Python API compared to JavaenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Checklist
- There are no similar issues or pull requests for this yet.
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
structurizr-python/src/structurizr/view/automatic_layout.py
Lines 32 to 36 in ab5adc9
| 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
Metadata
Metadata
Assignees
Labels
api gapFunctionality missing from the Python API compared to JavaFunctionality missing from the Python API compared to JavaenhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed