Skip to content

Add same-net trace axis cleanup#412

Open
dekacchi wants to merge 1 commit into
tscircuit:mainfrom
dekacchi:codex/same-net-trace-axis-cleanup-29-34
Open

Add same-net trace axis cleanup#412
dekacchi wants to merge 1 commit into
tscircuit:mainfrom
dekacchi:codex/same-net-trace-axis-cleanup-29-34

Conversation

@dekacchi
Copy link
Copy Markdown

Summary

  • add a final TraceCleanupSolver pass that aligns nearby overlapping same-net horizontal/vertical internal trace segments onto a shared axis
  • preserve endpoint-only segments and reject moves that would create different-net trace, chip, or different-net label collisions
  • add focused coverage for horizontal/vertical same-net alignment, different-net no-op behavior, endpoint anchoring, and update affected visual snapshots

Addresses #29 and #34.

Verification

  • bun test tests/solvers/TraceCleanupSolver/alignNearbySameNetTraceSegments.test.ts tests/examples/example18.test.ts tests/examples/example19.test.ts tests/examples/example29.test.ts tests/examples/example34.test.ts
  • bun test
  • bunx tsc --noEmit --pretty false
  • bun run format:check
  • bun run build
  • git diff --check

/claim #29
/claim #34

@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 7:02pm

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