archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
914 stars 267 forks source link

Relationship snaps to center of object if a joint is within the boundaries of an element #1040

Open q-rt opened 2 months ago

q-rt commented 2 months ago

Version of Archi

5.2.0 #202311011021

Archi Plug-ins

All plugins

Operating System

Windows 11

Expected Behavior

An association should always be attached/snap to the wall of the bounding box.

Actual Behavior

When an association bends and the bending point movies within the boundaries of the element it is attached to the association snaps to center of object instead of remaining attached to the wall of the bounding box.

Steps to Reproduce the Behavior

  1. Create grouping A
  2. Create actor B
  3. Connect A with B throw an association C
  4. Grab center point of association C (C-Point) to bend the line connecting A and B
  5. Move C-Point outside the boundaries of either A or B -> observe that the association is connected to the wall of both boxes
  6. Move C-Point inside the boundaries of either A or B -> observe that the association snaps to the center of either A or B respectively

https://github.com/archimatetool/archi/assets/20205517/d6886ca1-2aa1-4e9a-a04d-392a9381d4dd

Phillipus commented 2 months ago

Yes, it's a known issue and depends on the distance between elements. Added to the "to do" list for investigation.