Skip to content

[BOUNTY #15] Specialized Layout for Decoupling Capacitors#49

Open
zhaog100 wants to merge 2 commits intotscircuit:mainfrom
zhaog100:fix/decoupling-caps-layout-15
Open

[BOUNTY #15] Specialized Layout for Decoupling Capacitors#49
zhaog100 wants to merge 2 commits intotscircuit:mainfrom
zhaog100:fix/decoupling-caps-layout-15

Conversation

@zhaog100
Copy link
Copy Markdown

Summary

Decoupling capacitors were laid out using the generic PackSolver2, resulting in messy arrangements. This PR adds a specialized horizontal layout for decoupling capacitor partitions.

Changes

  • SingleInnerPartitionPackingSolver.ts: When partitionType === "decoupling_caps"", skip PackSolver2 and arrange capacitors in a clean horizontal row with uniform gap (decouplingCapsGap`) and 0-degree rotation
  • DecouplingCapsLayout.test.ts: New tests verifying horizontal arrangement, gap spacing, and correct placement

/claim #15

When partitionType is 'decoupling_caps', arrange capacitors in a clean
horizontal row with uniform gap instead of using the generic PackSolver2.

- Skip PackSolver2 for decoupling_caps partitions
- Place caps in a single row with consistent spacing (decouplingCapsGap)
- All caps use 0-degree rotation for uniform orientation
- Add tests verifying horizontal arrangement, gap spacing, and placement
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 25, 2026

@zhaog100 is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant