Skip to content

fix: render imported MOSFET symbols with physical pin mapping - #559

Draft
MustafaMulla29 wants to merge 2 commits into
mainfrom
codex/fix-mosfet-terminal-mapping
Draft

fix: render imported MOSFET symbols with physical pin mapping#559
MustafaMulla29 wants to merge 2 commits into
mainfrom
codex/fix-mosfet-terminal-mapping

Conversation

@MustafaMulla29

@MustafaMulla29 MustafaMulla29 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Box-only EasyEDA MOSFET imports such as C501008 (STL130N6F7) now use standard MOSFET geometry through the existing <chip symbol={...}> pattern. Physical pin numbers, aliases, footprint pads, and source/drain internal connections are preserved. Existing custom drawings and ambiguous pin layouts keep their current behavior.

Channel type and mode are inferred only from explicit source metadata. When absent, the generated component requires them:

<STL130N6F7 name="Q_HA" channelType="n" mosfetMode="enhancement" />

Keeps the original repro as one unconnected component. A separate test file and snapshot cover secondary-pin connections, all eight pins and the exposed drain pad, all four channel/mode variants, and missing metadata.

Validation: 17 focused tests, typecheck, and formatting pass. The previous revision passed every CI check; the test separation is being checked again.

Updated schematic snapshot

@MustafaMulla29
MustafaMulla29 marked this pull request as draft September 9, 2026 15:49
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