Skip to content

Conversation

@stmh
Copy link
Collaborator

@stmh stmh commented Feb 1, 2026

Summary

  • Add reusable getCircleHandlePosition utility for calculating handle positions along a circle arc using cos/sin
  • Update TerminalNode to use arc-based positioning (150 degree spread) for multiple input/output handles
  • Add test terminal nodes with multiple handles for visual testing

This prevents handle overlap when terminal nodes have multiple ports.

Test plan

  • Verify single-handle terminal nodes still display correctly (centered)
  • Test multi-output start nodes - handles should spread along right arc
  • Test multi-input end/exit nodes - handles should spread along left arc
  • Check visual appearance with 2, 3, and 4 handles
CleanShot 2026-02-01 at 23 44 18@2x

Use cos/sin calculations to position multiple input/output handles
along the circular edge of terminal nodes, preventing overlap when
nodes have multiple ports.

- Add reusable getCircleHandlePosition utility for circular handle placement
- Update TerminalNode to use arc-based positioning (150 degree spread)
- Add test terminal nodes with multiple handles for visual testing
@stmh stmh requested a review from d34dman February 1, 2026 23:07
@d34dman d34dman merged commit 257e2d7 into flowdrop-io:1.x Feb 3, 2026
3 checks passed
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.

2 participants