Skip to content

fix: preserve imported silkscreen layers and compose text rotation - #5901

Open
rushabhcodes wants to merge 5 commits into
codex/repro-imported-bottom-silkscreenfrom
codex/fix-imported-bottom-silkscreen
Open

rushabhcodes wants to merge 5 commits into
codex/repro-imported-bottom-silkscreenfrom
codex/fix-imported-bottom-silkscreen

Conversation

@rushabhcodes

@rushabhcodes rushabhcodes commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Reconstructing a KiCad subcircuit no longer moves bottom silkscreen text to the top layer or replaces its board orientation with a footprint-local angle. R2 in the two-resistor fixture stays bottom at 0°, matching native KiCad's mirrored, upright reference label.

Stacked on #5900 using GitHub's native stack feature. Preserve the imported text layer and derive text direction from the same parent/flip/local transform used for primitive placement. Omitted footprint-local text angles inherit the parent rotation. The expected-failure repros become passing tests, with updated PCB SVG and top/bottom angled 3D PNG snapshots. Additional coverage compares the text baseline against actual pad-center directions on both sides. Existing rotated-component, pinheader, routing, and imported-board snapshots are updated for the composed rotation; the equivalent -90° inline angle becomes normalized 270°.

Validation: the 90 targeted Core tests and 29 additional CI regression cases pass locally. The 3D repros pass without snapshot-update flags. A negative control substituting the pre-fix 3D image fails at the 3D snapshot comparison itself, before the layer/rotation assertions. Formatting and typechecks pass. Combined with circuit-to-svg #980, the original board's R2 silkscreen and fabrication labels match KiCad's bottom-side orientation and mirroring. Fabrication overlays are intentionally hidden by the 3D exporter; the 3D images validate silkscreen placement and rotation.

After: top 3D

After: bottom 3D

@rushabhcodes
rushabhcodes added this pull request to stack #5902 November 25, 2026 15:09
@vercel

vercel Bot commented Nov 25, 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 Nov 25, 2026 3:24pm UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview — 9e149683 Deployed Nov 25, 2026 by vercel[bot]
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.

1 participant