Skip to content

Preserve arbitrary silkscreen rectangle rotation - #4265

Closed
anil08607 wants to merge 1 commit into
tscircuit:mainfrom
anil08607:fix/silkscreen-rect-rotation
Closed

anil08607 wants to merge 1 commit into
tscircuit:mainfrom
anil08607:fix/silkscreen-rect-rotation

Conversation

@anil08607

@anil08607 anil08607 commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Silkscreen rectangles currently discard arbitrary rotation and swap dimensions for quarter turns. Preserve their local width/height and emit the orientation of the transformed +X direction as ccw_rotation, including reflected bottom-layer footprints. Compute the axis-aligned PCB size from transformed corners and preserve rotation when importing Circuit JSON footprints.

A labelled visual regression covers parent rotations 0/90/180/270/30 degrees on both layers with an additional 15-degree rectangle rotation. A pad on the rectangle's local +X edge independently checks emitted geometry. Found while auditing tscircuit/circuit-json-to-tscircuit#89.

Depends on tscircuit/props#884. A narrow development-only Bun patch mirrors that props change. This PR stays draft until the props release is available; replace the patch with that release before merging.

Validation: all 15 related silkscreen tests pass, including the existing rotation repro; the package ESM/declaration build and the new regression's TypeScript check pass.

Converter mapping: tscircuit/circuit-json-to-tscircuit#119.

@vercel

vercel Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
tscircuit-core-benchmarks Ready Ready Preview Oct 1, 2026 1:54am UTC

Request Review

@github-actions

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown

This PR has been automatically marked as stale because it has had no recent activity. It will be closed if no further activity occurs.

@github-actions

github-actions Bot commented Oct 7, 2026

Copy link
Copy Markdown

This PR was closed because it has been inactive for 1 day since being marked as stale.

@github-actions github-actions Bot closed this Oct 7, 2026

This branch was successfully deployed

1 active deployment
Preview — d39eff7e Deployed Oct 1, 2026 by vercel[bot]
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