ranksep not working inside states of state diagram

0 votes
asked Oct 2 in Bug by sschwinn (120 points)

Hello all,

I wanted to reduce the distance between nodes to make my state diagram slimmer. Unfortunately ranksep does not work inside states, while nodesep does work. See the following examples:

skinparam nodesep 50
skinparam ranksep 50

www.plantuml.com/plantuml/png/JP7BQiGm34Nt-Wgj2u79P3AFJSb_b2vCB8X9_S1s5gNqtwiY6MUJd7k5ZWXPIZMv7luBDcS9oQVwZPRAcbsgBWOekml9PEFHnn3NBKTFMFD1fqc8l449vykfp2RiMW8VgOHbR71jOA3HX3-0gE7MSUvux_Ze-EpuwZXUWCF7soSETdXNums7p46Siqp4UfSWteS4CJzbHzml3Mp7_wT4lWA_0FngOoYZElXBhzfEK2Pj3HJ3gBiB1Sj_u0y0

_______

skinparam nodesep 15
skinparam ranksep 15

www.plantuml.com/plantuml/png/JP7BQe0m44NtynMpBWYDxswA_r6w26R0OFCWYOjI-kyTT6pSn7FdCYT8bbnqAeVxWiqQGdAnVAEXl2ORYmqUycvzr4axTC67TKl14PPqqAFnWJSeeXeUmwJzBaFWImfXLZUqD-Z_hiCVG9JGLnmgZXMdYdF5juhg5JXyl7nYOvftCVRO90wNSv3cj8uIJkyauJJFiiDkFYIm7P7FA_8jy0l0dxk6hCJ1VzhAj8FSoLH3reookv0t_09_

Observed behavior:

As can be seen with (*,s1), (s2,s3), (s3,sa) and (sa,*), the connections are according to the nodesep and ranksep specifications. If you change the parameters, these values follow the changes. Connection (s2,s3) is long and not affected by the parameters, but this is as expected, since s3 is a big state.

All connections inside s3 are not affected at all by the ranksep and nodesep parameters.

Expected Behavior:

All connections inside s3 follow (somewhat) the restrictions given by the parameters. I expected to at least affect the vertical connections (*,s4),(s5,s6), (s6,s7), and (s7,s8).

Tested Versions:
Current Version of PlantUML Web Server (see links)

Local Version on Computer (some old 2019 Version)

Thanks in advance!

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...