Skip to content

Highlight all same-net schematic traces on hover#200

Open
TodouWisiper wants to merge 1 commit into
tscircuit:mainfrom
TodouWisiper:fix-hover-connected-traces
Open

Highlight all same-net schematic traces on hover#200
TodouWisiper wants to merge 1 commit into
tscircuit:mainfrom
TodouWisiper:fix-hover-connected-traces

Conversation

@TodouWisiper
Copy link
Copy Markdown

Summary

  • add SVG hover handling that maps the hovered schematic trace to its source trace
  • expand the highlight to every schematic trace whose source trace shares any connected_source_net_ids
  • restore each visible trace path's original stroke when hover leaves and disable this behavior while edit mode is active

This targets tscircuit/tscircuit#1130, including the reviewer feedback that another trace on the same net should highlight even when it is not the exact same source trace segment.

Tests

  • npx biome check lib\components\SchematicViewer.tsx lib\hooks\useHighlightConnectedSchematicTracesOnHover.ts
  • npx bun run build

Fixes tscircuit/tscircuit#1130

@vercel
Copy link
Copy Markdown

vercel Bot commented May 14, 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 14, 2026 10:17am

Request Review

@TodouWisiper
Copy link
Copy Markdown
Author

/claim tscircuit/tscircuit#1130

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