Skip to content
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

Signature lines avoid overlay on the node. #308

Closed
2 of 7 tasks
gavr123456789 opened this issue May 5, 2020 · 3 comments
Closed
2 of 7 tasks

Signature lines avoid overlay on the node. #308

gavr123456789 opened this issue May 5, 2020 · 3 comments
Labels
feature A new feature

Comments

@gavr123456789
Copy link

I'm submitting a...

  • Bug report
  • Feature request
  • Documentation issue or request

Current behavior

The header label of the Connector element does not evade the node.

Expected behavior

The header label of the Connector element turns away from the node.

Minimal reproduction of the problem with instructions

System Information

OS:

  • Linux (Please put in notes the specific distro)
  • MacOS
  • Windows 10
  • Windows 7

NOTES:
The label only dodges when it intersects with the Connector.

SCREENSHOT:
изображение
изображение

@amolenaar
Copy link
Member

Thanks for your feedback.

Currently associations use some heuristics to figure out how to display the name and multiplicity at the end of the association line.

If the line is (pretty much) horizontal or vertical, name and multiplicity are displayed on both sides of the line. Otherwise both are displayed on the same side, depending on the angle of the line.
In doing so, the association is not aware of the side it's connected on a class or interface.

It may be worthwhile to investigate if that's possible.

Just out of curiosity: why don't you attach the lines to the top/bottom of the classes? That way the text on the association end will not overlap the class.

@danyeaw
Copy link
Member

danyeaw commented May 15, 2020

@allcontributors please add @gavr123456789 for ideas

@allcontributors
Copy link
Contributor

@danyeaw

I've put up a pull request to add @gavr123456789! 🎉

@danyeaw danyeaw added the feature A new feature label Jul 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

No branches or pull requests

3 participants