-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Qualifier labels and associations' lines not correctly drawn for qualified associations #1467
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Otherwise, qualifier labels of qualified associations pointing left or up are drawn on the wrong end of the association.
…alified associations (plantuml#1467)
Hi @arnaudroques, The two examples from above now look as follows: Drawing arrow heads remains an issue. The arrow head pointing at V4 is missing in case 2. It gets even worse if used with more than one qualifier per association like in the following example. But maybe that should be a separate issue ticket.
|
You made a good job but there were a small regression on this diagram (for example) Now my solution is not perfect because we keep running through all links when calling However, I suggest that we first fix all qualified association issues before making any premature optimization.
That's another story and you should probably open another issue for that. |
Thank you. Good you found one of the few cases where the shield size calculation was still necessary in the modified I'm not sure, we can avoid running through all the links (in worst case) when calling I've made a few tests with a couple of diagrams. Your change fixed the component diagram examples, but didn't break my example. I think, we can close this ticket now. We'll open another issue for the arrow heads problem. Thank you for the very quick replies and merges. |
[Just for the record] Regards, |
Uh oh!
There was an error while loading. Please reload this page.
Problem description
When using qualified associations the qualifier labels overlap with classes, are placed on the wrong side of an association, or the association's line between the qualifier and the target class is not visible. In addition, the length of edges cannot be modified if a direction is added to the association definition.
I have a few examples to illustrate that.
This issue is a follow up of a previous discussion in the user forum. That discussion contains hints to additional issues with qualified associations.
Steps to reproduce - Example 1
Customer
and hides the association line between the classesHashMap
andCustomer
or it doesn't exist at all. There has to be a bigger distance between the classesHashMap
andCustomer
for the association to be drawn correctly.Please notice that the association length between the classes
Shop
andCustomer
could successfully be drawn longer than usually by writing--->
instead of-->
.Expected behavior

I expected the diagram to look something like
Steps to reproduce - Example 2
HashMap
class. In addition, changing the association line's length does not work with a direction hint, i.e. replacingHashMap [key: K] -r-> V2
withHashMap [key: K] -r----> V2
doesn't change the line's length.Expected behavior
I expected the qualified associations to be drawn the same way as the case
HashMap [key: K] -d-> V3
, but with adapted direction. The result should like something like the following. Increasing the length of the edge in source code (e.g. replacingHashMap [key: K] -r-> V2
withHashMap [key: K] -r----> V2
) should increase the rendered association's length.The text was updated successfully, but these errors were encountered: