New! Render PlantUML diagrams directly inside GitHub
with our official browser extension —
No server. No tokens. No tracking. Zero permissions but clipboard. —
Try it out and let us know what you think!
Eclipse Layout Kernel
V1.2021.5.
Requirement
From V1.2021.5 to V1.2024.6
ELK is distributed as an independent library. So you have to build it yourself, or you can download the complete jar file here.
Both plantuml.jar and elk-full.jar have to be in the very same folder. You cannot rename elk-full.jar
Since V1.2024.6
Since V1.2024.6, ELK is directly included on the PlantUML package and on the plantuml.jar.
[Ref. GH-1813]
Usage
Then you can invoke ELK instead of Graphviz with the !pragma layout elk directive.
Example:
-P command-line option to specify the pragma, rather than putting it in the puml file:
java -jar plantuml.jar -Playout=elk
[Ref. GH-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.