Commit 98a08982 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

Merge branch 'tc-layout-spacing-fix' into 'master'

More spacing between graphviz dot nodes for beat.editor layout

Closes beat.editor#132

See merge request !33
parents d0397a57 a8c8ac52
Pipeline #24242 passed with stages
in 25 minutes and 16 seconds
......@@ -425,9 +425,12 @@ class Toolchain(object):
make_label = make_layout_label if is_layout else make_drawing_label
root = Digraph(
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)), nodesep=nodesep)
datasets = Digraph('dataset_cluster')
datasets.attr('graph', rank='same', label='datasets')
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment