skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.66k stars 208 forks source link

direction=right / direction=down key/value pairs not working #122

Closed CFiggers closed 4 years ago

CFiggers commented 4 years ago

Direction custom classifier styles seem to be broken:

#direction: right
#.horizontal: direction=right
#.vertical: direct=down

[<vertical>A] -> [<vertical>B]
[<horizontal>C] -> [<horizontal>D]

image

#direction: down
#.horizontal: direction=right
#.vertical: direct=down

[<vertical>A] -> [<vertical>B]
[<horizontal>C] -> [<horizontal>D]

image

skanaar commented 4 years ago

The layouting algorithm operates on the entire collection of nodes. It looks visually like two separate graphs, but the algorithm treats them like a single graph.

To have different directions the node collections would have to be enclosed so they cannot affect each other.

#.horizontal: direction=right
#.vertical: direction=down
[<horizontal>flat|[A]->[B]]
[<vertical>tall|[A]->[B]]