Skip to content

Commit

Permalink
changed default spacing factors
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Feb 13, 2024
1 parent d880fd7 commit 767d2cc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/org/rascalmpl/library/vis/Graphs.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -343,18 +343,19 @@ data CytoLayout(CytoLayoutName name = dagre(), bool animate=false)
int rows=2,
int cols=2,
bool avoidOverlap=true,
num spacingFactor=1
num spacingFactor=.1
)
| circleLayout(
CytoLayoutName name = CytoLayoutName::circle(),
bool avoidOverlap=true,
num spacingFactor=1
num spacingFactor=.1
)
| coseLayout(
CytoLayoutName name = cose()
)
| dagreLayout(
CytoLayoutName name = dagre()
CytoLayoutName name = dagre(),
num spacingFactor = .1
)
;
Expand All @@ -365,15 +366,15 @@ CytoLayout defaultCoseLayout()
)
;
CytoLayout defaultCircleLayout(bool avoidOverlap=true, num spacingFactor=1)
CytoLayout defaultCircleLayout(bool avoidOverlap=true, num spacingFactor=.1)
= circleLayout(
name = CytoLayoutName::circle(),
animate=false,
avoidOverlap=avoidOverlap,
spacingFactor=spacingFactor
);
CytoLayout defaultGridLayout(int rows=2, int cols=rows, bool avoidOverlap=true, num spacingFactor=1)
CytoLayout defaultGridLayout(int rows=2, int cols=rows, bool avoidOverlap=true, num spacingFactor=.1)
= gridLayout(
name=CytoLayoutName::grid(),
animate=false,
Expand All @@ -384,7 +385,7 @@ CytoLayout defaultGridLayout(int rows=2, int cols=rows, bool avoidOverlap=true,
)
;
CytoLayout defaultBreadthfirstLayout(num spacingFactor=1, bool circle=false, bool grid=!circle, bool directed=false)
CytoLayout defaultBreadthfirstLayout(num spacingFactor=.1, bool circle=false, bool grid=!circle, bool directed=false)
=
breadthfirstLayout(
name=CytoLayoutName::breadthfirst(),
Expand All @@ -395,7 +396,7 @@ CytoLayout defaultBreadthfirstLayout(num spacingFactor=1, bool circle=false, boo
directed=directed
);
CytoLayout defaultDagreLayout(num spacingFactor=1)
CytoLayout defaultDagreLayout(num spacingFactor=.1)
= dagreLayout(
name=CytoLayoutName::dagre(),
animate=false,
Expand Down

0 comments on commit 767d2cc

Please sign in to comment.