prmr / JetUML

A desktop application for fast UML diagramming.
GNU General Public License v3.0
625 stars 125 forks source link

Improvements to the Edge Label Alignments #446

Closed delphinepilon closed 2 years ago

delphinepilon commented 2 years ago

Some points could be improved in the layout and alignment of edge labels:

  1. In the state diagrams, state transition edges have a fixed line length when there are multiple words in the edge label. This can be inconvenient as it is less flexible than dynamic line lengths.

https://user-images.githubusercontent.com/43301868/142290587-ed2247e8-bfb9-4879-8dd8-ba50ee76c063.mov

  1. In class diagrams, segmented edges can have three labels. For horizontal segmented edges, the labels that are closest to the nodes are slightly shifted away from the node to clear the arrowhead. This is not the case for vertical segmented edges. Here, by horizontal segmented edge, I mean that the majority of segments are horizontal.

    LackOfLabelAndArrowheadOverlap
  2. In class diagrams, the middle label of segmented edges can sometimes overlap the segments themselves which is not ideal as it can make the labels less readable.

    LabelAndSegmentOverlap
prmr commented 2 years ago

Fixed with PR #447