Skip to content

schematic-trace-solver / lib / solvers / TraceCleanupSolver / minimizeTurnsWithFilteredLabels.ts - #732

Open
khozakhulile27-netizen wants to merge 127 commits into
tscircuit:mainfrom
khozakhulile27-netizen:main
Open

schematic-trace-solver / lib / solvers / TraceCleanupSolver / minimizeTurnsWithFilteredLabels.ts#732
khozakhulile27-netizen wants to merge 127 commits into
tscircuit:mainfrom
khozakhulile27-netizen:main

Conversation

@khozakhulile27-netizen

Copy link
Copy Markdown

Fixes #34

Fix tracePath crash by using tracePath ?? path fallback
Merge same-net close traces

khozakhulile27-netizen and others added 30 commits May 22, 2026 12:35
Closes tscircuit#34

Adds a new `snapSameNetTraces` step to `TraceCleanupSolver` that detects
parallel segments belonging to the same net that are within a configurable
threshold (default 0.05) of each other and snaps them to their midpoint
coordinate, eliminating near-coincident same-net trace lines.

- New file: lib/solvers/TraceCleanupSolver/snapSameNetTraces.ts
- Modified: TraceCleanupSolver pipeline adds `snapping_same_net` step after `balancing_l_shapes`
- New file: tests/solvers/TraceCleanupSolver/snapSameNetTraces.test.ts (7 unit tests)
khozakhulile27-netizen and others added 28 commits July 11, 2026 11:16
Fixes tscircuit#29. Fixes tscircuit#34.

Moves test from tests/ to lib/ where tsconfig expects it. Replaces snapSameNetTraces implementation with version that passes all checks. Removes .find() that caused NaN in tests.

/claim tscircuit#29
/claim tscircuit#34

Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
Signed-off-by: Khoza khulile  <khozakhulile27@gmail.com>
…arallel-traces

Fix/snap same net parallel traces
@vercel

vercel Bot commented Jul 27, 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 Error Error Jul 27, 2026 2:43pm

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

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