ls1intum / Apollon

UML Modeling Editor written in React
https://apollon-library.readthedocs.io
MIT License
65 stars 22 forks source link

Multiple associations between two elements should be separate #268

Open akesfeden opened 1 year ago

akesfeden commented 1 year ago

Is your feature request related to a problem?

When I add two associations between elements on the same horizontal axis (e.g. two classes in a Class Diagram), I would like to see them separate from each other. Instead they overlap like below:

image

Describe the solution you'd like

I'd like to see the lines apart from each other, preferably spread out evenly among the side of one of the diagrams like below:

image

Describe alternatives you've considered

As a hacky solution, I tried putting another small elements behind my the actual element and draw associations from that element. Like below but the "Package" elements should be in the background. I put them to front to explain what I did, if I move "Bonus" element a bit, then "Package" elements are hidden behind "Bonus" element and it seems the associations are connected to "Bonus" element. This works good on screen but when I generate a PDF, "Package" elements that are hidden behind the "Bonus" element on screen moves to the foreground in the generated PDF. If the PDF shows them exactly as they are on the screen, this would also be a sufficient solution for my specific problem.

image