Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.core
Commits
a8c8ac52
Commit
a8c8ac52
authored
Oct 11, 2018
by
Jaden DIEFENBAUGH
Committed by
Samuel GAIST
Oct 11, 2018
Browse files
[toolchain] Give more spacing between nodes for beat.editor
Fixes
beat.editor#132
parent
d0397a57
Pipeline
#24240
passed with stages
in 25 minutes and 13 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/core/toolchain.py
View file @
a8c8ac52
...
...
@@ -425,9 +425,12 @@ class Toolchain(object):
make_label
=
make_layout_label
if
is_layout
else
make_drawing_label
root
=
Digraph
(
self
.
name
)
splineType
=
'line'
if
is_layout
else
'polyline'
# default is 0.25, but it seems 0.5 is needed to keep everything separated
# when the layout is parsed by beat.editor
nodesep
=
'0.5'
if
is_layout
else
'0.25'
root
.
attr
(
'graph'
,
rankdir
=
'LR'
,
compound
=
'true'
,
splines
=
splineType
,
labelloc
=
't'
,
label
=
title
,
fontname
=
fontname
,
fontsize
=
str
(
3
*
int
(
fontsize
)))
fontsize
=
str
(
3
*
int
(
fontsize
))
,
nodesep
=
nodesep
)
datasets
=
Digraph
(
'dataset_cluster'
)
datasets
.
attr
(
'graph'
,
rank
=
'same'
,
label
=
'datasets'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment