Skip to content

fix: highlight all same-net traces on hover#204

Open
Myrarc wants to merge 3 commits into
tscircuit:mainfrom
Myrarc:main
Open

fix: highlight all same-net traces on hover#204
Myrarc wants to merge 3 commits into
tscircuit:mainfrom
Myrarc:main

Conversation

@Myrarc
Copy link
Copy Markdown

@Myrarc Myrarc commented May 20, 2026

Fixes tscircuit/tscircuit#1130
Fixes #149

/claim #1130

Summary

When hovering any trace, all schematic_trace elements belonging to the same electrical net are now highlighted together using a brightness + drop-shadow effect.

Uses Union-Find (DisjointSet) to group source_trace elements by shared connected_source_port_ids, connected_source_net_ids, and subcircuit_connectivity_map_key. Groups are mapped to schematic_trace elements via source_trace_id.

Disabled during edit mode to avoid conflicting with drag/edit styling.

When hovering any trace, all schematic_trace elements belonging to the
same electrical net are now highlighted together.

Uses Union-Find (DisjointSet) to group source_trace elements by shared
connected_source_port_ids, connected_source_net_ids, and
subcircuit_connectivity_map_key. Maps schematic_trace elements to their
net group via source_trace_id.

Disabled during edit mode to avoid conflicting with drag/edit styling.

Fixes 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:15am

Request Review

@Myrarc
Copy link
Copy Markdown
Author

Myrarc commented May 20, 2026

/claim #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