Add norank option on links

+1 vote
asked Mar 5, 2015 in Wanted features by fred (540 points)
Hello,

Complex class diagrams are difficult to understand. Using [hidden] links helps somewhat, but adding more control over layout would help.

For instance, it is common to display class diagrams according to their inheritance hierarchy (i.e., ignoring associations for ranking). In PlantUML, as far as I understand, this is only achievable by not displaying associations at all.

Here is a suggestion: adding a [norank] link option (like [hidden]) that would ignore the link for ranking (constraint=false in graphviz) but still show it.

Basically, [norank] (shown but ignored for ranking) is the opposite of [hidden] (not shown but considered for ranking.

For instance:

@startuml

class B extends A

class C extends A

B -[norank]- C

@enduml

Note that in this specific case, using a horizontal link between B and C would probably give the same result because they are at the same inheritance level. However, the result would be quite different on more complex class diagrams.

 

Best regards,

Fred

1 Answer

+3 votes
answered Mar 5, 2015 by plantuml (295,000 points)
selected Mar 5, 2015 by fred
 
Best answer
Hi,

We like the idea.

This has been implemented in the last beta :

https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

If you think this is usefull, we will include it in next official release.

Thanks for the suggestion!
commented Mar 5, 2015 by fred (540 points)
Tested and working as expected. Thanks!
...