Skip to content

fix(connections): smooth S-curve for vertically aligned pins #212

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Ayush9026
Copy link

Improved Connection Visualization

This PR enhances the connection lines between vertically aligned pins, making them render as smooth S-curves (fixes #208).

Key changes:

Implemented natural S-curve logic in bezier.tsx

Ensured seamless dragging without visual breakpoints

Maintained consistent behavior across all pin alignments

/claim #208
/closes #208

@GabiGrin
Copy link
Contributor

GabiGrin commented Apr 2, 2025

Hey @Ayush9026, thanks for the attempt. Your solution does have unnatural jumps (i.e. weird breakpoints):

Screen.Recording.2025-04-02.at.22.04.25.mov

@GabiGrin GabiGrin self-requested a review April 3, 2025 09:26
Copy link
Contributor

@GabiGrin GabiGrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the attempt. Your solution does have unnatural jumps (see video in my comment)

@Ayush9026
Copy link
Author

Hi @GabiGrin sir, thanks for catching that! I’ll fix the jumps in the S-curve and update the PR soon. Appreciate the review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connections - connections look bad when pins are vertically aligned
2 participants