Skip to content

feat: add courtyard to SOT-223-5 footprint#537

Open
victorjzq wants to merge 1 commit intotscircuit:mainfrom
victorjzq:feat/sot223-5-courtyard-and-dedicated-test
Open

feat: add courtyard to SOT-223-5 footprint#537
victorjzq wants to merge 1 commit intotscircuit:mainfrom
victorjzq:feat/sot223-5-courtyard-and-dedicated-test

Conversation

@victorjzq
Copy link
Contributor

Summary

  • Adds PcbCourtyardRect to the sot223_5 function in src/fn/sot223.ts
  • The courtyard is computed from pad extents + 0.25mm padding, matching the convention used by sot363, sot563, sot886, and other recent footprint additions
  • Updates the kicad parity snapshot for sot223_5 to include the courtyard overlay
  • All existing tests pass; kicad parity snapshot updated via BUN_UPDATE_SNAPSHOTS=true

Test plan

  • bun test tests/sot223.test.ts — all 5 tests pass
  • bun test tests/kicad-parity/sot223_5_kicad_parity.test.ts — passes after snapshot update
  • fp.string("sot223_5").circuitJson() returns a pcb_courtyard_rect element
  • fp.string("SOT-223-5").circuitJson() alias produces identical output

/claim #181

Add PcbCourtyardRect to the sot223_5 function to match the pattern
established by other SOT footprints (sot363, sot563, sot886, etc.).
The courtyard is calculated from the pad extents plus 0.25mm padding.

Closes tscircuit#181
@victorjzq
Copy link
Contributor Author

Hey @seveibar — this fixes the missing courtyard on SOT-223-5. CI is green, ready for review.

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