Skip to content

Align close same-net trace segments#511

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

Align close same-net trace segments#511
Misterate wants to merge 1 commit into
tscircuit:mainfrom
Misterate:fix/same-net-trace-alignment-34

Conversation

@Misterate

@Misterate Misterate commented Jun 10, 2026

Copy link
Copy Markdown

Fixes #34

Summary

  • add a same-net alignment cleanup phase to TraceOverlapShiftSolver
  • snap-align close, overlapping, parallel segments within the same globalConnNetId to the same X/Y coordinate
  • avoid moving terminal segments and preserve different-net behavior

Tests

  • npx --yes bun test tests/solvers/TraceOverlapShiftSolver/TraceOverlapShiftSolver.test.ts
  • npx --yes bun x tsc --noEmit
  • npx --yes bun test tests/solvers/TraceCleanupSolver/TraceCleanupSolver.test.ts
  • npx --yes bun test tests/solvers/SchematicTracePipelineSolver/SchematicTracePipelineSolver_repro01.test.ts
  • npx --yes bun test

/claim #34

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
schematic-trace-solver Ready Ready Preview, Comment Jun 10, 2026 2:45am

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