Skip to content

[BOUNTY #86] Fix same-net traces not visually merged in schematic#2074

Open
zhaog100 wants to merge 1 commit intotscircuit:mainfrom
zhaog100:fix/same-net-trace-merging-86
Open

[BOUNTY #86] Fix same-net traces not visually merged in schematic#2074
zhaog100 wants to merge 1 commit intotscircuit:mainfrom
zhaog100:fix/same-net-trace-merging-86

Conversation

@zhaog100
Copy link

Summary

Fixes #86 — When two same-net components are placed further apart (schX distance > 2.4), the schematic trace solver fails to create a continuous connection.

Problem

The default maxMspPairDistance was set to 2.4, which is too restrictive. When components like JP6 (schX=-4) and R1 (schX=-0.2) are spaced further apart, the solver would skip creating traces between them, resulting in visually broken connections.

Solution

Increase the default maxMspPairDistance from 2.4 to 5 in createSchematicTraceSolverInputProblem.ts.

Changes

  • lib/components/primitive-components/Group/Group_doInitialSchematicTraceRender/createSchematicTraceSolverInputProblem.ts: Changed default maxMspPairDistance from 2.4 to 5
  • Updated schematic snapshot for repro49-same-net-not-combine test

Testing

  • repro49-same-net-not-combine test passes
  • ✅ Related schematic tests pass (repro4, repro5, repro13, repro14, repro15)

Closes #86

…race merging

When two same-net components are placed further apart (schX distance > 2.4),
the schematic trace solver fails to create a continuous connection because
the default maxMspPairDistance is too restrictive.

This fix increases the default from 2.4 to 5, which allows same-net traces
to properly merge when components are spaced further apart (e.g. JP6 to R1
with schX=-4 and schX=-0.2).

Closes tscircuit#86
@vercel
Copy link

vercel bot commented Mar 25, 2026

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

Project Deployment Actions Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview, Comment Mar 25, 2026 0:19am

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.

1 participant