Skip to content

Commit

Permalink
replace region surrounding spacing by ELK nodeNodeSpacing
Browse files Browse the repository at this point in the history
This makes is possible to control the spacing directly through layout
options, which is convenient, but the spacing on the outside of the
layout i.e. the spacing between the border of the state and the regions
is slightly different than before.
  • Loading branch information
Eddykasp committed Dec 9, 2024
1 parent b181d9c commit 7aa2585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ class StateSynthesis extends SubSynthesis<State, KNode> {
node.setLayoutOption(RectPackingOptions.WHITE_SPACE_ELIMINATION_STRATEGY, WhiteSpaceEliminationStrategy.EQUAL_BETWEEN_STRUCTURES)
node.setLayoutOption(RectPackingOptions.OMIT_NODE_MICRO_LAYOUT, true)
node.setLayoutOption(CoreOptions::PADDING, new ElkPadding(0))
node.setLayoutOption(CoreOptions::SPACING_NODE_NODE, 1.0)
node.setLayoutOption(CoreOptions::SPACING_NODE_NODE, 5.0)
}

def static void configureLayoutRegionDependencies(KNode node) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ControlflowRegionStyles {
background = REGION_BACKGROUND.color;
foreground = REGION_FOREGROUND.color;
lineWidth = 1;
setSurroundingSpace(2, 0);
// setSurroundingSpace(2, 0);
]
}

Expand Down

0 comments on commit 7aa2585

Please sign in to comment.