You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
Add slot dimming by precomputing compatible targets during link drag
start, improving clarity and responsiveness when connecting links.
## Changes
- What: Centralize compatibility precompute on pointer down to dim
incompatible slots across the canvas.
- What: Derive target side from the source slot type; remove overly
defensive try/catch and optional chaining.
- What: Iterate LayoutStore slot keys; clear then set compatibility per
key for simplicity.
- What: Remove redundant numeric coercions and double-negation; rely on
existing types.
- Breaking: None
- Dependencies: None
## Review Focus
- Validate dimming correctness for both input→output and output→input
drags.
- Check performance on large graphs (single pass on start; no per-frame
cost).
- Ensure no regressions with reroute snapping and node-surface
candidates.
## Screenshots (if applicable)
N/A
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5937-Add-slot-dimming-2846d73d3650816f932ed657f5526f5e)
by [Unito](https://www.unito.io)
0 commit comments