Skip to content

feat: add hover color change for schematic traces#168

Open
realmpastai-web wants to merge 1 commit intotscircuit:mainfrom
realmpastai-web:feat/trace-hover-color
Open

feat: add hover color change for schematic traces#168
realmpastai-web wants to merge 1 commit intotscircuit:mainfrom
realmpastai-web:feat/trace-hover-color

Conversation

@realmpastai-web
Copy link

Summary

Adds hover color change functionality for schematic traces. When hovering over a trace, all segments of that trace (same net) are highlighted with a blue color and glow effect.

Changes

  • Added useSchematicTraceHover hook that handles trace hover interactions
  • Traces are highlighted with blue color (#3b82f6) on hover
  • All trace segments belonging to the same net are highlighted together
  • Added smooth CSS transitions for the hover effect
  • Integrated into SchematicViewer component

Visual Changes

  • On hover: traces change to blue with a subtle glow effect
  • Stroke width increases from 2 to 3 for better visibility
  • Smooth 150ms transition for all hover effects

Testing

  • Tested locally with schematic examples
  • Hover effects work correctly with all trace types
  • No interference with existing drag/edit functionality

Fixes tscircuit/tscircuit#1130

/claim #1130

- Add useSchematicTraceHover hook to highlight traces on hover
- Traces with the same schematic_trace_id are highlighted together
- Uses blue color (#3b82f6) with glow effect for visibility
- Adds smooth CSS transitions for hover effects
- Integrates with SchematicViewer component

Fixes #1130
@vercel
Copy link

vercel bot commented Mar 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
schematic-viewer Ready Ready Preview, Comment Mar 2, 2026 0:32am

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