/claim https://github.com/tscircuit/tscircuit/issues/1130 /fixes https://github.com/tscircuit/tscircuit/issues/1130

DEMO VIDEO: https://github.com/user-attachments/assets/3e5a25ea-b4a5-47f2-b9c8-754ea05cfebb

Problem

Hovering over traces only highlighted the specific trace, not all connected traces in the same electrical net.

Solution

Implemented hover state management that highlights all traces connected under the same net with blue coloring and increased stroke width.

Changes

  • new: lib/components/SchematicTraceMouseTarget.tsx - handles trace hover detection
  • mod: lib/components/SchematicViewer.tsx - added trace net grouping and hover coordination
  • mod: lib/utils/z-index-map.ts - added z-index for trace highlights

Technical Details

  • Groups schematic traces by net_id from circuit data
  • Post-processes SVG to add data-net-id attributes for CSS targeting
  • Uses existing MouseTracker for hover detection
  • Applies .trace-hover CSS class with blue highlight (#3399ff)

Claim

Total prize pool $25
Total paid $0
Status Pending
Submitted October 22, 2025
Last updated October 22, 2025

Contributors

EX

Excellencedev

@Excellencedev

100%

Sponsors

TS

tscircuit

@tscircuit

$25