Skip to content

Add courtyard circle support#32

Merged
techmannih merged 1 commit intotscircuit:mainfrom
techmannih:jaii
May 6, 2026
Merged

Add courtyard circle support#32
techmannih merged 1 commit intotscircuit:mainfrom
techmannih:jaii

Conversation

@techmannih
Copy link
Copy Markdown
Member

Summary

Adds support for converting pcb_courtyard_circle circuit-json elements into <courtyardcircle /> in generated tscircuit footprints.

What Changed

  • added pcb_courtyard_circle handling in generateFootprintTsx
  • emitted <courtyardcircle pcbX={...} pcbY={...} radius={...} layer="..." />
  • extended the courtyard round-trip test to cover circle support
  • bumped circuit-json from ^0.0.391 to ^0.0.423 so the newer courtyard circle type/accessor is available

Why

Courtyard outlines and rects were already supported, but courtyard circles were being skipped. This made the converter incomplete for footprints that use circular courtyard geometry.

Impact

Footprints containing pcb_courtyard_circle now round-trip correctly from circuit-json to generated tscircuit code and back.

Validation

  • bunx tsc --noEmit
  • bun test

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@techmannih techmannih merged commit c449d7e into tscircuit:main May 6, 2026
3 checks passed
@tscircuitbot
Copy link
Copy Markdown


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants