tscircuit / tscircuit/schematic-trace-solver
Net labels can be placed inside chip bodies
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13
- Forks
- 314
- Avg merge
- 9h 3m
- Merged PRs (30d)
- 132
Description
In bug-report-20260707T230831Z the final placement leaves four net labels — VIN, VOUT, PG and U1.FB to R2.pin1 — fully inside chip bodies. They render behind the component and are illegible.
NetLabelNetLabelCollisionSolver only relocates a label when it overlaps another label (findNextCollidingPair looks for label-label overlaps). It does check candidate positions against chips, but only for labels it is already moving because of a label-label collision. A label that sits inside a chip without also colliding with another label is never checked against chips or moved out.
Repro (asserts no final net label is >50% inside a chip body): #653-branch adds a test.failing.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with NetLabelNetLabelCollisionSolver and its findNextCollidingPair method, then inspect the test.failing reproduction added by the #653 branch. Run that reproduction against bug-report-20260707T230831Z and verify that the final placement leaves no net label more than 50% inside a chip body.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- computer-graphics, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 74/100