elk: postprocess to balance bends
alixander opened this issue · comments
Alexander Wang commented
We can postprocess ELK layouts to make the bends in the middle of routes to look nicer.
style: {
fill: transparent
}
*.style: {
fill: transparent
stroke: black
}
# How to apply stroke color to all connections?
# * -> *.style: {
# stroke: black
# }
# This will override terminator class styling.
# *: {
# height: 100
# width: 150
# }
classes: {
terminator: {
# label: ""
height: 50
width: 150
style: {
border-radius: 1000
}
}
process: {
height: 100
width: 150
}
input: {
height: 100
width: 150
shape: parallelogram
}
condition: {
height: 100
width: 150
shape: diamond
}
loop: {
height: 100
width: 150
shape: hexagon
}
}
start1 -> data -> condition1
true: from diamond's\n right corner
false: from diamond's\n left corner
condition1 -> false: no
condition1 -> true: yes
false -> end1
true -> end1
start2 -> loop1 -> process1
process1 -> loop1: continue
loop1 -> end2: break
start1.class: terminator
start2.class: terminator
end1.class: terminator
end2.class: terminator
process1: inside loop
process1.class: process
data.class: input
loop1: i = 0(1)n
loop1.class: loop
condition1
condition1.class: condition