feat: Edit Path button for editable connector routes#49
Merged
Conversation
… 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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: