feat: add courtyard support for KiCad footprints#180
Open
janisag07 wants to merge 1 commit intotscircuit:mainfrom
Open
feat: add courtyard support for KiCad footprints#180janisag07 wants to merge 1 commit intotscircuit:mainfrom
janisag07 wants to merge 1 commit intotscircuit:mainfrom
Conversation
- Parse F.CrtYd and B.CrtYd layers from fp_line elements and detect axis-aligned rectangles - Add fp_rect parsing to the kicad-zod schema and parser - Emit pcb_courtyard_rect circuit-json elements with correct center, width, height, and layer - Add courtyard tests covering both fp_line-based and fp_rect-based courtyards Fixes tscircuit/tscircuit#1081
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Feb 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
F.CrtYdandB.CrtYdlayers fromfp_lineelements and detect axis-aligned rectanglesfp_rectparsing to the kicad-zod schema and parser (handles courtyards defined asfp_rect)pcb_courtyard_rectcircuit-json elements with correct center, width, height, and layerFixes tscircuit/tscircuit#1081
Test plan
bun test— all 18 tests pass (16 existing + 2 new courtyard tests)fp_linesegments (R_01005_0402Metric): 4 lines → 1pcb_courtyard_rectfp_rect(DIP-10): rect element → 1pcb_courtyard_rect(12.26mm × 13.2mm)