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

Connection point editor incorrectly moves default connection points on some shapes #4821

Open
2 tasks done
ErikSwan opened this issue Dec 30, 2024 · 0 comments
Open
2 tasks done

Comments

@ErikSwan
Copy link

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

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 report 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
The connection point editor incorrectly moves/resets the location of some default connection points for some irregular shapes like the Trapezoid.

To Reproduce
Steps to reproduce the behavior:

  1. Create a blank diagram.
  2. Add a Trapezoid shape to the diagram and note the location of the default connection points (visible by hovering over the shape with the mouse cursor):
    image
  3. Right-click on the placed Trapezoid shape and click on "Edit Connection Points..."
  4. Note that the placement/position of all connection points shown in the Edit Connection Points window is still correct:
    image
  5. Without changing any of the connection points, simply click "Apply" to close the dialog.
  6. Note that the default connection points along the sloped edges of the shape have now been moved to the outer bounding box of the shape:
    image

Expected behavior
I would expect that not changing any of the connection points in the window and clicking "Apply" would result in the connection points being in the locations shown in the "Edit Connection Points" window (i.e. the same locations they were in previously/by default).

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

  • draw.io version 26.0.2

Desktop (please complete the following information):

  • OS: Windows 10 22H2
  • Browser: Microsoft Edge
  • Browser Version: Version 131.0.2903.112 (Official build) (64-bit)

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

  • Yes

Additional context
Strangely, this does not seem to affect all non-rectangular shapes. I checked a limited set of irregularly-shaped (i.e. non-rectangular) default shapes.

These ones show the issue:

  • Trapezoid
  • Triangle
  • Hexagon
  • Step
  • Diamond
  • Parallelogram
  • Circle

These shapes do not show the issue:

  • Card
  • Tape
  • Cloud
  • Cylinder
  • Or
  • And
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant