prmr / JetUML

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

Small visual glitch with aggregation line in class diagram #474

Closed cjoudrey closed 1 year ago

cjoudrey commented 2 years ago

Description

I was in the process of drawing a class diagram with two arrows pointing between two objects and noticed a slight visual glitch.

It's not a big deal, but I figured I'd open an issue in case it is a low hanging fruit.

Screenshots

Notice how the aggregate line isn't fully straight:

Screen Shot 2022-10-19 at 1 55 14 PM

Configuration

prmr commented 1 year ago

The root cause is the specification of the behavior of NodeIndex#toPoint, which computes attachment points on a node face attempting to maximize the space available on the attached face of the node. As observed, the excess precision can lead to a suboptimal look.

I will change the function so that the outcome is more visually pleasing.