`linetype ortho` breaks rendering

+2 votes
asked Jul 8, 2021 in Bug by bond007 (400 points)

Steps to reproduce:

https://user-images.githubusercontent.com/5232392/124894013-74903c00-e005-11eb-8705-30ae39d1fcb1.png

https://user-images.githubusercontent.com/5232392/124894020-75c16900-e005-11eb-892c-e7b50b419b5a.png

1 Answer

0 votes
answered Jul 8, 2021 by The-Lu (64,960 points)

Hello B.,

With last online version, it seems to work:

@startuml
skinparam {
  linetype ortho
}

node a
node b
node c
node d

a -- d
b -- d
d -- c
@enduml

If that can help,
Regards,
Th.

commented Jul 8, 2021 by The-Lu (64,960 points)

An alternative is to use ELK, as:

@startuml
!pragma layout elk

node a
node b
node c
node d

a -- d
b -- d
d -- c
@enduml

If that can help,
Regards,
Th.

commented Jul 8, 2021 by bond007 (400 points)

Thank you! I tried and got the following result. It runs from IntelliJ IDEA plugin for PlantUMLhttps://imagizer.imageshack.com/img923/1880/gI8Zxc.png

https://imagizer.imageshack.com/img924/8232/oC6WuG.png

commented Jul 8, 2021 by bond007 (400 points)
commented Jul 9, 2021 by The-Lu (64,960 points)

1/ And if you test just on one line:

skinparam linetype ortho

2/ For ELK, it must be deployed on the server before to use... (see doc. on ELK)

Regards,
Th.

...