Skip to content

Add deterministic decoupling cap row layout#91

Open
dustinvali wants to merge 2 commits into
tscircuit:mainfrom
dustinvali:decap-partition-centered-row
Open

Add deterministic decoupling cap row layout#91
dustinvali wants to merge 2 commits into
tscircuit:mainfrom
dustinvali:decap-partition-centered-row

Conversation

@dustinvali
Copy link
Copy Markdown

@dustinvali dustinvali commented May 11, 2026

Summary

/claim #15

  • add a dedicated fast path for partitionType === "decoupling_caps" in SingleInnerPartitionPackingSolver
  • place decoupling-cap partitions as a deterministic centered row using natural chip ordering
  • apply edge-to-edge spacing from decouplingCapsGap, falling back to chipGap, with rotation-aware width handling
  • add focused solver coverage for ordering, centering, custom gap spacing, and fallback gap spacing
  • add the current circuit-to-svg dependency explicitly so @tscircuit/schematic-viewer resolves the schematic simulation SVG export used by the existing test suite

Testing

  • bun test tests/PackInnerPartitionsSolver/SingleInnerPartitionPackingSolver.test.ts
  • bun test tests/IdentifyDecouplingCapsSolver/IdentifyDecouplingCapsSolver06.test.ts
  • bun test
  • bun run format:check
  • bun run build

@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

@dustinvali 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