Broken class diagram when linetype set to ortho

+1 vote
asked Feb 4, 2022 in Bug by mirecg (220 points)
commented Feb 4, 2022 by The-Lu (65,440 points)


A possible workaround is to use ELK, with:

!pragma layout elk


See also doc. here:

If that can help,

commented Feb 4, 2022 by mirecg (220 points)
Thank you, switching to ELK layout engine solves this particular problem.

But as I read about it that it is only alpha version.

It would be better if it could be fixed in default layout engine. I have lot of similar diagrams, and trying to edit all and see what hapens is not very good idea.

1 Answer

+1 vote
answered Feb 5, 2022 by Martin (8,360 points)

Playing with some of the skinparams can help, I wonder whether the introduction of themes has changed the defaults, but I don't know what the old values were.

skinparam classfontSize 10
skinparam arrowfontSize 10
skinparam nodesep 100
skinparam ranksep 75
skinparam padding 0

commented Feb 7, 2022 by mirecg (220 points)
It seems you are right, those parameters must have changed specifically only when linetype is set to ortho. This is better workarround than using ELK, since ELK doesn't respect positional hints, and don't what else could it break. Thank you.

It should be worth of fixing this, so that linetype ortho would have same skinparam settings as for default linetype (spline).