Skip to content

Wire footprint insertion direction into PCB components and align board DRC fields#2165

Merged
ShiboSoftwareDev merged 11 commits intomainfrom
insertiondirection
Apr 23, 2026
Merged

Wire footprint insertion direction into PCB components and align board DRC fields#2165
ShiboSoftwareDev merged 11 commits intomainfrom
insertiondirection

Conversation

@ShiboSoftwareDev
Copy link
Copy Markdown
Contributor

@ShiboSoftwareDev ShiboSoftwareDev commented Apr 21, 2026

Propagate footprint.insertionDirection onto pcb_component.insertion_direction using the component’s global pre-layout rotation plus bottom-side mirroring, and make primitive footprint flipping respect originalLayer so bottom-authored footprints and footprint constraints behave correctly. Bump @tscircuit/circuit-json-util to rely on its built-in PCB component transform updates.

Also align board manufacturing defaults and tests with the new *Clearance field names in circuit-json, replace the stale JLC tolerance import with a local helper, and add regression coverage for transformed insertion directions and originalLayer="bottom" footprint layout.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tscircuit-core-benchmarks Ready Ready Preview, Comment Apr 23, 2026 4:10am

Request Review

Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think transformPcbElements should automatically perform this

@ShiboSoftwareDev ShiboSoftwareDev changed the title Wire footprint insertionDirection through PCB transforms Wire footprint insertion direction into PCB components and align board DRC fields Apr 22, 2026
Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you take a look over this, you removed the ysage of the jlc spec module

Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Undo jlc spec modifications

@ShiboSoftwareDev ShiboSoftwareDev merged commit eb26850 into main Apr 23, 2026
10 checks passed
@ShiboSoftwareDev ShiboSoftwareDev deleted the insertiondirection branch April 23, 2026 04:15
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