Skip to content

Fix close same-net trace alignment#434

Open
VexCode24 wants to merge 1 commit into
tscircuit:mainfrom
VexCode24:codex/align-close-same-net-traces
Open

Fix close same-net trace alignment#434
VexCode24 wants to merge 1 commit into
tscircuit:mainfrom
VexCode24:codex/align-close-same-net-traces

Conversation

@VexCode24
Copy link
Copy Markdown

Summary

  • aligns close same-net interior horizontal/vertical trace segments when they are within the routing padding threshold
  • preserves pin endpoint segments so cleanup does not disconnect traces from pins
  • adds focused regression coverage for same-net alignment, different-net isolation, and fixed endpoints

Fixes #34
/claim #34

Tests

  • bun test tests/solvers/TraceCleanupSolver/align-close-same-net-trace-segments.test.ts tests/solvers/TraceCleanupSolver/TraceCleanupSolver.test.ts
  • node node_modules/typescript/bin/tsc --noEmit
  • node node_modules/tsup/dist/cli-node.js lib/index.ts --format esm --dts
  • node_modules/@biomejs/cli-win32-x64/biome.exe check --write lib/solvers/TraceCleanupSolver/TraceCleanupSolver.ts lib/solvers/TraceCleanupSolver/alignCloseSameNetTraceSegments.ts tests/solvers/TraceCleanupSolver/align-close-same-net-trace-segments.test.ts

@vercel
Copy link
Copy Markdown

vercel Bot commented May 25, 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 25, 2026 2:26pm

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