gaphor / gaphor

Gaphor is the simple modeling tool
https://gaphor.org
1.87k stars 200 forks source link

Improve rectilinear lines drawing #2503

Open sz332 opened 1 year ago

sz332 commented 1 year ago

Is your feature request related to a problem?

I tried to create some diagrams using rectilinear rendered lines and found it extremely frustrating and non-intuitive. Added a video about what it looked like.

https://github.com/gaphor/gaphor/assets/8182138/5019e12b-f5da-4c0e-818f-3e97b2c67b36

Describe the solution you'd like

I would like to work it more consistently based on the following criteria:

The biggest issue compared to other editors I see is that when drawing a line between two elements the endpoints are getting anchored in Gaphor. In other tools they are not anchored (or can be de-anchored) and the connector point (to the element) is freely moving around the edge of the components which supports the use of rectilinear lines so much better.

If you need more info, I am happy to create some comparison videos.

Bambofy commented 1 year ago

Just to add the direction of the line at its end points is not being taken into account. The head (diamond end) of the line should travel out east but instead it is traveling south.

danyeaw commented 1 year ago

Hi @sz332, we definitely need to improve the rectilinear drawing including #2486.

The mouse cursor shall look differently when moved over a turning point ( <-> or the same 90 degree rotated )

My cursor is changing to a different icon, if it isn't working, I think this is a bug

There shall be a clear way to remove a turning point (or all points)

You can drag a turning point to another turning point, or the end points to collapse them