Skip to content

Highlight connected schematic traces on hover#186

Open
vneuralhiive wants to merge 1 commit into
tscircuit:mainfrom
vneuralhiive:fix-connected-schematic-trace-hover
Open

Highlight connected schematic traces on hover#186
vneuralhiive wants to merge 1 commit into
tscircuit:mainfrom
vneuralhiive:fix-connected-schematic-trace-hover

Conversation

@vneuralhiive
Copy link
Copy Markdown

Fixes tscircuit/tscircuit#1130
Closes #149

Summary

  • Adds hover highlighting for schematic traces connected to the hovered trace.
  • Groups connected traces using both connected_source_port_ids and connected_source_net_ids.
  • Walks connectivity transitively so multi-segment nets and traces connected through shared ports highlight together.
  • Disables trace-hover highlighting while edit mode is active to avoid conflicting with drag/edit trace styling.

Verification

  • npm exec -- biome lint lib/components/SchematicViewer.tsx lib/hooks/use-highlight-connected-traces-on-hover.ts lib/utils/get-connected-schematic-trace-ids.ts
  • npm exec --package typescript@5.8.3 -- tsc --noEmit
  • Functional connected-trace grouping check returned {"sch1":["sch1","sch2"],"sch3":["sch3","sch4"]}

@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
schematic-viewer Ready Ready Preview, Comment May 11, 2026 6:27am

Request Review

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.

Change of color on hover for traces are missing

1 participant