Table of Contents
A kUML layout plugin skeleton.
Replace MyLayoutEngine.layout() with your layout algorithm.
kuml plugin install build/libs/my-layout-plugin-1.0.0.jarUse your engine via frontmatter in a .kuml.kts file:
diagram(name = "Example", layout = "my-layout-plugin") { ... }Edit src/main/kotlin/com/example/plugin/layout/MyLayoutPlugin.kt.
Implement MyLayoutEngine.layout() — it receives a LayoutGraph and must return a LayoutResult
with a NodeLayout (bounds + ports) for every node and an EdgeRoute for every edge.
Plugin id |
|
Category |
layout |
kUML range |
|
Maintainer |
Your Name <your@email.com> |
License |
Apache-2.0 |