Skip to content

Merge nearby same-net trace segments#350

Open
mithustar39 wants to merge 1 commit into
tscircuit:mainfrom
mithustar39:fix-merge-same-net-traces
Open

Merge nearby same-net trace segments#350
mithustar39 wants to merge 1 commit into
tscircuit:mainfrom
mithustar39:fix-merge-same-net-traces

Conversation

@mithustar39
Copy link
Copy Markdown

@mithustar39 mithustar39 commented May 15, 2026

Fixes #34.
/attempt #34
Adds a TraceCleanupSolver pass that snaps nearby overlapping same-net internal trace segments onto the same X/Y coordinate so they visually merge, while preserving terminal pin endpoints.

Also avoids snapping onto an existing different-net coincident segment.

Tests:

  • npx.cmd bun test
  • npx.cmd tsc --noEmit
  • npm.cmd run build

@vercel
Copy link
Copy Markdown

vercel Bot commented May 15, 2026

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

Project Deployment Actions Updated (UTC)
schematic-trace-solver Ready Ready Preview, Comment May 15, 2026 10:19pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge same-net trace lines that are close together (make at the same Y or same X)

1 participant