skanaar / nomnoml

The sassy UML diagram renderer
https://www.nomnoml.com
MIT License
2.66k stars 208 forks source link

[Feature Request] Add <inc> and <ext> associations between usecases #135

Closed luxlogica closed 2 years ago

luxlogica commented 3 years ago

Right now, there doesn't seem to be a way to add includes and extends relationships between use-cases, when creating Use Case diagrams. As this is an essential part of UML Use Case diagrams, it would be nice to have this feature.

In order to make the feature even more useful, what would be required here is the ability to simply add relationship labels to the middle of relationship lines. This could then be also used in the future for other UML diagrams, too - like applying <<use>> labels in class diagram relationships.

skanaar commented 3 years ago

The layouting library, dagre, now supports edge labels out-of-the-box which I would like to implement. But I haven't figured out how to do the syntax for it.

This is a possible syntax, but it gets pretty crowded 😞 [parent] start - middle -> end [child]

luxlogica commented 3 years ago

@skanaar that syntax looks pretty good to me! 👍 It looks quite similar to the syntax used by some diagrams in Mermaid.

skanaar commented 3 years ago

Related to #131