Skip to content

Convert DIP inch and centimeter dimensions to millimeters - #883

Open
Danty-pig123 wants to merge 1 commit into
tscircuit:mainfrom
Danty-pig123:fix/dip-dimension-units
Open

Danty-pig123 wants to merge 1 commit into
tscircuit:mainfrom
Danty-pig123:fix/dip-dimension-units

Conversation

@Danty-pig123

@Danty-pig123 Danty-pig123 commented Sep 13, 2026

Copy link
Copy Markdown

The documented dip4_w0.3in input produces 0.3 mm between pin rows instead of 7.62 mm. DIP's custom parser only converts mils and treats other unit suffixes as millimeters.

Use Circuit JSON's length parser for row width, pitch, hole diameter and pad diameter. Retain case-insensitive mil inputs. Add numeric geometry checks for inch/centimeter inputs through the string and builder APIs, plus two SVG snapshots.

The new regressions fail on the original source. All 20 focused DIP tests pass with Bun 1.3.5, as do the package/declaration build and formatting. The full suite has 569 passes and four SVG mismatches (smf, parity/qfn32_thermalpad3.1x3.1mm, parity/sod523, diode-kicad-parity/sod523); the unchanged baseline has the same four failures with 560 passes.

Linux CI has 572 passes and only the QFN32 SVG mismatch. That same failure occurs on the unchanged production base in September 11 CI, whose only added file is an unrelated SOIC test. Build and formatting checks pass.

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