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

How do you make all views use Dagre for automatic layout? #281

Closed Answered by simonbrowndotje
psacchitella asked this question in Q&A
Discussion options

You must be logged in to vote

If you have filtered views in your workspace, you'll need to filter those out:

!script groovy {
  workspace.views.views.findAll { it instanceof com.structurizr.view.ModelView }.each { it.enableAutomaticLayout(com.structurizr.view.AutomaticLayout.RankDirection.TopBottom, 300, 300, 400, false) }
}

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@psacchitella
Comment options

Answer selected by psacchitella
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #280 on June 20, 2023 20:38.