nomnoml icon indicating copy to clipboard operation
nomnoml copied to clipboard

Multiple associations between the same classes

Open jirutka opened this issue 4 years ago • 6 comments

UML allows multiple associations between the same classes using roles. How can this be written in nomnoml?

[Person|
  username: string
]

[Thesis|
  title: string
]

[Thesis] supervisor -> [Person]
[Thesis] reviewer -> [Person]  // This is not rendered!

jirutka avatar Jul 03 '20 15:07 jirutka

I am also interested in this

jacobsacco avatar Jul 03 '20 20:07 jacobsacco

This have to be a regression, nomnoml originally supported this. Won't have time to look deeply into this right now, but Pull Requests are always welcome :)

skanaar avatar Jul 06 '20 10:07 skanaar

Actually, I removed that feature since it crashed Dagre (the layouting library). See commit https://github.com/skanaar/nomnoml/commit/46c1be786721997d4051f55ddf5643c01f847f88

skanaar avatar Jul 08 '20 07:07 skanaar

Well, but this is like throwing the baby out with the bathwater – this “fix” makes nomnoml basically unusable for the most of real diagrams. :(

jirutka avatar Jul 08 '20 10:07 jirutka

@jirutka Pull request are welcome. This is an open source project, I appreciate any help I can get. Especially when it comes to corner cases like this.

skanaar avatar Jul 08 '20 10:07 skanaar

I understand that. Unfortunately I'm extremely busy now and don't have time for any new projects. :(

jirutka avatar Jul 08 '20 10:07 jirutka

This is now supported in v1.6.1

skanaar avatar May 21 '23 15:05 skanaar