Skip to content

fix(vson): default dimensions so bare vson/vson8 render - #904

Open
Furox-Art wants to merge 2 commits into
tscircuit:mainfrom
Furox-Art:fix/vson-bare-name-defaults
Open

Furox-Art wants to merge 2 commits into
tscircuit:mainfrom
Furox-Art:fix/vson-bare-name-defaults

Conversation

@Furox-Art

Copy link
Copy Markdown

Fixes #782

Summary

vson is listed by getFootprintNames(), but any bare vsonN name threw a raw ZodError (Required: p, w, grid, pinw, pinh) while the sibling SON-family footprints (son, wson) render from their bare names. The def carried a comment "can't use defaults because there is not a lot of common dimensions", leaving advertised names uncallable.

Changes

Default to a common 3x3mm-body VSON-8:

  • p: 0.5mm pitch
  • w: 2.75mm row separation (pads tucked under the body edges)
  • grid: 3x3mm
  • pinw/pinh: 0.25mm x 0.6mm

grid.x <= w + pinw is required by the stepped-courtyard helper (createRectUnionOutline), and the defaults satisfy it. Explicit parameters still win.

Testing

  • tests/vson-bare-name.test.ts: bare vson8 renders 8 pads in two 4-pad rows at the expected pitch/separation/pad size, bare vson defaults to 8 pins, and explicit dimensions override the defaults

vson declared p/w/grid/pinw/pinh with no defaults ("can't use defaults
because there is not a lot of common dimensions"), so any bare vsonN
name — which getFootprintNames() advertises — threw a raw ZodError
while the son/wson siblings render from their bare names.

Default to a common 3x3mm-body VSON-8: 0.5mm pitch, 2.75mm row
separation (pads tucked under the body edges), 0.25x0.6mm pin pads.
grid.x must stay <= w + pinw for the stepped courtyard helper, which
the defaults satisfy. Explicit parameters still win.

Fixes tscircuit#782
@Furox-Art

Copy link
Copy Markdown
Author

Friendly maintainer review request: this contribution has been updated with the latest fixes and checks. Please review when convenient. Thank you.

This branch has not been deployed

No deployments
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.

vson8 throws a raw parse error while son8/wson8 render from a bare name

1 participant