PlantUML different layouts

You can use the following command with State, Class, Component or Usecase diagrams: left to right direction (see https://plantuml.com/use-case-diagram#d551e48d272b2b07) Edit: This comment from 2012 originally claimed that the feature was scheduled for the next release. It’s been available forever now.

Can’t render component diagram with PlantUML in IntelliJ

On a mac using Intellij, if Intellij cannot find graphviz, testdot doesn’t work and graphviz was installed with brew install graphviz: In Intellij, click the wrench icon on the far right of the menu panel that contains the plantuml view and editor arrangement. Click ‘Open settings’ For ‘Graphviz dot executable’ add /opt/homebrew/bin/dot. Click OK and … Read more

How to correct PlantUML Line Path

There are some tricks that you can try, listed below. The layouting itself is performed by GraphViz (dot layouting iirc), and GraphViz simply does this sometimes. Graph layouting is a NP-complete problem, so algorithms usually take harsh shortcuts. Typical workarounds that I’ve seen or used include: adding hidden lines a -[hidden]- b extending the length … Read more

PlantUml define relative position of components

A typical approach is to mark a line as hidden. One thing to keep in mind is that hidden is only supported for left-to-right ->, and top-to-bottom –> lines, so you need to place the left and right side accordingly (syntax X <[hidden]- Y doesn’t seem to be supported). @startuml class ComponentA ComponentB -[hidden]> ComponentA … Read more

tech