Skip to content

feat: Edit Path button for editable connector routes#49

Merged
CristianEdwards merged 1 commit into
mainfrom
Release
Mar 22, 2026
Merged

feat: Edit Path button for editable connector routes#49
CristianEdwards merged 1 commit into
mainfrom
Release

Conversation

@CristianEdwards
Copy link
Copy Markdown
Owner

Adds an Edit Path button in the connector inspector that converts the auto-computed routing into editable waypoints.

Problem: When a connector is created, the routing algorithm computes intermediate bend points to avoid obstacles, but these are recalculated every frame and can't be dragged. Users had to manually 'Add Bend' to get editable control points, losing the auto-routed path.

Solution: The new 'Edit Path' button materializes the current computed route points into real waypoints:

  • For routed connectors (with L-bends): extracts the intermediate points from the algorithm
  • For straight-line connectors: adds a midpoint between source and target
  • After conversion, all points appear as draggable handles on the canvas
  • Existing 'Add Bend' and 'Remove Bend' continue to work as before

… as editable waypoints

When a connector is selected, the new Edit Path button converts its
computed route points into real waypoints that can be dragged on the
canvas. For straight-line connectors (no intermediate points), a
midpoint is added. This allows editing the default path without
manually adding additional bends.
@CristianEdwards CristianEdwards merged commit cd23db2 into main Mar 22, 2026
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

Successfully merging this pull request may close these issues.

1 participant