Skip to content

Add deterministic row layout for decoupling cap partitions#85

Open
natanelia wants to merge 2 commits into
tscircuit:mainfrom
natanelia:fix/decoupling-caps-row-layout
Open

Add deterministic row layout for decoupling cap partitions#85
natanelia wants to merge 2 commits into
tscircuit:mainfrom
natanelia:fix/decoupling-caps-row-layout

Conversation

@natanelia
Copy link
Copy Markdown

@natanelia natanelia commented May 11, 2026

/claim #15

Summary

  • bypass generic PackSolver2 for partitions marked partitionType === "decoupling_caps"
  • place decoupling capacitors in a deterministic, centered natural-order row
  • preserve decouplingCapsGap fallback behavior and account for fixed rotated capacitor widths
  • add regression tests for row ordering, centering, spacing, and rotated dimensions
  • lazy-load the LayoutPipelineSolver06 debugger UI so tests can import its fixture data without eagerly loading UI-only dependencies

Verification

  • bun test
  • bun test tests/PackInnerPartitionsSolver/SingleInnerPartitionPackingSolver.test.ts
  • bun test tests/PackInnerPartitionsSolver/SingleInnerPartitionPackingSolver.test.ts tests/LayoutPipelineSolver/RP2040Circuit.test.ts tests/LayoutPipelineSolver/LayoutPipelineSolver03.test.tsx
  • bun run format:check
  • bun run build
  • git diff --check

@vercel
Copy link
Copy Markdown

vercel Bot commented May 11, 2026

Someone 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