Skip to content

Merge nearby same-net trace segments#453

Open
CProphet16 wants to merge 3 commits into
tscircuit:mainfrom
CProphet16:codex/merge-nearby-same-net-segments
Open

Merge nearby same-net trace segments#453
CProphet16 wants to merge 3 commits into
tscircuit:mainfrom
CProphet16:codex/merge-nearby-same-net-segments

Conversation

@CProphet16
Copy link
Copy Markdown

@CProphet16 CProphet16 commented May 30, 2026

Summary

  • add a TraceCleanupSolver phase that snaps nearby overlapping same-net trace segments onto a shared X/Y line
  • skip endpoint segments so pin attachment points stay fixed
  • add focused coverage for horizontal merge, vertical merge, endpoint preservation, and different-net preservation

Closes #34
Closes #29

Verification

  • npx bun test — 67 pass, 4 skip, 0 fail
  • npm run build — ESM and DTS build success

Note: local install required npm's legacy/force peer handling because this repo currently has peer dependency conflicts around bun-match-svg/React and TypeScript is a peer dependency for build.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 30, 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 30, 2026 4:04am

Request Review

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

Labels

None yet

Projects

None yet

1 participant