jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Other
41.15k stars 7.64k forks source link

Orthogonal line segments are not horizontal #4553

Open richardwhitehead opened 3 months ago

richardwhitehead commented 3 months ago

Preflight Checklist

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

If you are technical, you should reporting bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug Lines of style "orthogonal" are not actually orthogonal.

To Reproduce Steps to reproduce the behavior:

  1. Drag a line or arrow onto the drawing sheet. It appears at about 45 degrees, with both ends snapped to grid points.
  2. Change the line style from Straight to Orthogonal
  3. Observe that the horizontal part of the line is not exactly horizontal - it has an angle of perhaps one degree.
  4. Sometimes it is possible to correct this by dragging one segment of the line, other times it cannot be fixed.

Expected behavior The horizontal section should be at zero degrees and the vertical section at 90 degrees.

Screenshots Image1

draw.io version (In the Help->About menu of the draw.io editor):

Desktop (please complete the following information):

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

Additional context Add any other context about the problem here.

issue drawio

Serengan commented 2 months ago

I have already opened a similar issue

https://github.com/jgraph/drawio-desktop/issues/1495