Skip to content

Highlight connected schematic traces on hover#209

Open
junn-dev wants to merge 1 commit into
tscircuit:mainfrom
junn-dev:codex/highlight-connected-traces-1130
Open

Highlight connected schematic traces on hover#209
junn-dev wants to merge 1 commit into
tscircuit:mainfrom
junn-dev:codex/highlight-connected-traces-1130

Conversation

@junn-dev
Copy link
Copy Markdown

Summary

  • add a schematic trace hover hook that groups traces by their connected source nets
  • highlight every schematic trace on the same net when any segment is hovered
  • rebind hover listeners when the rendered SVG changes so resize/rerender keeps working

Fixes tscircuit/tscircuit#1130

Tests

  • cmd /c npx biome check lib/components/SchematicViewer.tsx lib/hooks/useHighlightConnectedSchematicTraces.ts
  • cmd /c npx --yes --package typescript@5.9.3 tsc --noEmit
  • git diff --check

@vercel
Copy link
Copy Markdown

vercel Bot commented May 21, 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 21, 2026 4:08pm

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