Skip to content

Support PCB dimension offset directions - #886

Merged
ShiboSoftwareDev merged 2 commits into
tscircuit:mainfrom
anil08607:fix/fabrication-dimension-offset
Oct 1, 2026
Merged

ShiboSoftwareDev merged 2 commits into
tscircuit:mainfrom
anil08607:fix/fabrication-dimension-offset

Conversation

@anil08607

@anil08607 anil08607 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

PCB and fabrication dimensions need both an offset magnitude and a direction to preserve imported board annotations. Add optional unitless offsetDirection in footprint-local coordinates to both primitive prop schemas while retaining the existing unit-aware offset distance. Omission keeps the existing API; runtime support uses the perpendicular to the endpoints when no direction is supplied.

Found while addressing tscircuit/circuit-json-to-tscircuit#130 and #132.

Validation: focused schema regressions pass, TypeScript typecheck and format checks pass. All four required documentation/type generation scripts were run and their outputs included.

Runtime implementation: tscircuit/core#4266.

@ShiboSoftwareDev ShiboSoftwareDev changed the title Support fabrication dimension offset direction Support PCB dimension offset directions Oct 1, 2026
@ShiboSoftwareDev
ShiboSoftwareDev merged commit b803c2e into tscircuit:main Oct 1, 2026
4 checks passed
@tscircuitbot

Copy link
Copy Markdown
Contributor

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.

3 participants