Repository navigation
fix: preserve imported silkscreen layers and compose text rotation - #5901
Open
rushabhcodes wants to merge 5 commits into
Open
rushabhcodes wants to merge 5 commits into
rushabhcodes wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
rushabhcodes
force-pushed
the
codex/fix-imported-bottom-silkscreen
branch
from
November 25, 2026 15:19
ca663c1 to
882d2b2
Compare
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.