Eclipse Layout KernelPlantUML uses an external layout engine for some diagrams (classes, use cases...). By default, GraphViz/dot is used. This means that PlantUML has to call an external process to generate some diagrams. There are some work in progress to change this behavior. For example, a port of GraphViz to Java is ongoing. Recently, Hallvard Trætteberg teaches us on how to use Eclipse Layout Kernel as a library to process the layout. This is still alpha-software, but results are very interesting. This is working starting fromV1.2021.5 . ELK is distributed as an independent library. So you have to build it yourself, or you can download the complete jar file here. Both |
🎉 Copied! |
![]() |
-P
command-line option to specify the pragma, rather than putting it in the puml file: java -jar plantuml.jar -Playout=elk
[Ref. issue-582]
Do not expect too much right now, this is really an alpha-version. The idea is to get feedback from users, to know if we should continue in this direction (that is, supporting ELK within PlantUML). Still, you can test class diagram and deployment diagram and tell us what you think about the result.