Skip to content

Highlight connected schematic traces on hover#206

Open
kayeve wants to merge 1 commit into
tscircuit:mainfrom
kayeve:kayeve/fix-1130-trace-hover
Open

Highlight connected schematic traces on hover#206
kayeve wants to merge 1 commit into
tscircuit:mainfrom
kayeve:kayeve/fix-1130-trace-hover

Conversation

@kayeve
Copy link
Copy Markdown

@kayeve kayeve commented May 20, 2026

What changed

  • Added hover tracking for schematic traces.
  • When one rendered trace is hovered, all traces sharing the same source net receive the same hover styling.
  • Falls back to source trace grouping when source net metadata is unavailable.

Why it fixes the issue

This makes all trace segments connected under the same net visually respond together on hover, matching the behavior requested in tscircuit/tscircuit#1130.

Tests run

  • tsc --noEmit
  • biome format --line-ending crlf lib/hooks/useHighlightConnectedTracesOnHover.ts lib/components/SchematicViewer.tsx
  • git diff --check

Closes tscircuit/tscircuit#1130

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 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 20, 2026 6:18pm

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

2 participants