Skip to content

Infer reflected pin 1 orientations - #715

Draft
seveibar wants to merge 1 commit into
mainfrom
agent/infer-pin1-reflections
Draft

Infer reflected pin 1 orientations#715
seveibar wants to merge 1 commit into
mainfrom
agent/infer-pin1-reflections

Conversation

@seveibar

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #714.

  • infer pin 1's actual side from pin ordering, so corner pads distinguish cases such as leftside,top from topside,left
  • evaluate all four rotations and their reflected equivalents, preferring a rotation and reflecting when the requested orientation implies reversed pin ordering
  • transform reflected footprint geometry consistently, including pad/hole rotations, paths, polygons, text mirroring and anchor alignment, courtyards, and rectangular cutouts
  • update the documentation to describe ordering-aware reflection inference

For example, DIP pin 1 at the upper-left is inferred as leftside,top because pin 2 continues downward. Requesting topside,left reflects the footprint so pin 2 continues rightward.

Validation

  • bun test — 452 pass, 0 fail
  • focused pin-location tests — 9 pass, 0 fail
  • bun run build — ESM and DTS builds pass
  • all eight orientations exercised across SOIC, DIP, QFP, crystal, SOT-23, BGA, passive, pin-row, and radial footprints
  • Biome checks on changed files
  • git diff --check

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