Skip to content

Add same-net trace alignment phase#409

Open
MinhThienNguyen040905 wants to merge 1 commit into
tscircuit:mainfrom
MinhThienNguyen040905:fix/same-net-trace-alignment
Open

Add same-net trace alignment phase#409
MinhThienNguyen040905 wants to merge 1 commit into
tscircuit:mainfrom
MinhThienNguyen040905:fix/same-net-trace-alignment

Conversation

@MinhThienNguyen040905
Copy link
Copy Markdown

/claim #29

Summary

  • Add a dedicated SameNetTraceAlignmentSolver pipeline phase after trace cleanup.
  • Align close overlapping same-net horizontal/vertical internal trace segments onto a shared axis.
  • Preserve terminal segments so pin endpoints do not drift.
  • Skip different-net candidates and reject alignments that would introduce a new different-net intersection.

Verification

  • npm exec --yes --package bun -- bun test tests\solvers\SameNetTraceAlignmentSolver\SameNetTraceAlignmentSolver.test.ts
  • npm exec --yes --package bun -- bun test tests\examples\example29.test.ts tests\examples\example34.test.ts
  • npm exec --yes --package bun -- bun test
  • node node_modules\typescript\bin\tsc --noEmit
  • npm run build
  • git diff --check

@vercel
Copy link
Copy Markdown

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

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.

1 participant