Skip to content

Instantly share code, notes, and snippets.

@jatin-lab49
Last active May 27, 2020 19:19
Show Gist options
  • Save jatin-lab49/4a0bc5f787df8d674e3d54b72edbfc2f to your computer and use it in GitHub Desktop.
Save jatin-lab49/4a0bc5f787df8d674e3d54b72edbfc2f to your computer and use it in GitHub Desktop.
TIL-Lab49/plantuml-lines

Linetypes in PlantUML

Sometimes your boxes in PlantUML end up next to each other. In this case, PlantUML by default adds a curved line which doesn't look very tidy.

gist_demo_reg

To fix this, you can use the skinparam linetype as below

Add ortho linetype:

skinparam linetype ortho

gist_demo_ortho

Add polyline linetype:

skinparam linetype polyline

gist_demo_polyline

Full plantuml:

@startuml

skinparam linetype polyline

database "MySQL" as mysql #grey
database "Oracle" as oracle #grey
rectangle "Container" as ws #grey {
    rectangle "Test job" as testjob #yellow
}
oracle -left-> testjob
testjob <-right- mysql

@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment