Skip to content

[FEATURE] Improve relationship line routing #563

@lazuee

Description

@lazuee

Is your feature request related to a problem? Please describe.
Currently, relationship lines can overlap with tables, making the diagram harder to read.

Describe the solution you'd like

  • Add a safety margin around tables. When the dragged startTable/endTable touches this margin, the connector should switch to the opposite side of the target table (not the dragged one). The safety margin should also ensure that lines do not pass through the margin; instead, they should route around it unless they are connecting directly to the table.
  • Improve pathfinding logic so relationship lines avoid overlapping with tables or other connectors (e.g., temporarily store existing paths and check for collisions before finalizing a new one).
  • Implement shortest path calculation to reduce unnecessarily long or awkward straight lines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions