Skip to content

Highlight connected schematic traces on hover#220

Open
Forage409 wants to merge 1 commit into
tscircuit:mainfrom
Forage409:fix-highlight-connected-traces
Open

Highlight connected schematic traces on hover#220
Forage409 wants to merge 1 commit into
tscircuit:mainfrom
Forage409:fix-highlight-connected-traces

Conversation

@Forage409
Copy link
Copy Markdown

Fixes tscircuit/tscircuit#1130

/claim tscircuit/tscircuit#1130

Adds hover highlighting for all schematic traces that share the same source trace/net. When hovering one trace segment, connected schematic traces receive a highlight class so the full net is visually connected.

Validation:

  • bun install --ignore-scripts
  • bun run build
  • git diff --check

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 6, 2026

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

Project Deployment Actions Updated (UTC)
schematic-viewer Ready Ready Preview, Comment Jun 6, 2026 2:32am

Request Review

@Forage409
Copy link
Copy Markdown
Author

Updated the PR with a focused Cosmos fixture for manual verification: examples/example21-connected-trace-hover.fixture.tsx.

Also adjusted the grouping key to prefer source_net_id before falling back to source_trace_id, so separate schematic trace segments on the same net are highlighted together.

Validation after update:

  • bun run build
  • git diff --check

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.

Change of color on hover for traces are missing

1 participant