From 1189c26a95dfe9ee092981a8a84f953644420da7 Mon Sep 17 00:00:00 2001 From: gator Date: Sun, 16 Aug 2026 15:27:16 +0000 Subject: [PATCH] footprint: recognise ELLIPSE as a round pad MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The real geometry now arriving from EasyEDA spells a round pad ELLIPSE, which this test did not match — so every through-hole pad would have drawn as a square with the right dimensions. OVAL/ROUND are the KiCad-side spellings of the same thing. --- assets/part.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/part.js b/assets/part.js index da51a4a..1bfcf6a 100644 --- a/assets/part.js +++ b/assets/part.js @@ -19,7 +19,8 @@ function footprintSVG(p) { let s = ``; s += ``; for (const d of pads) { - const round = (d.shape || '').toUpperCase().includes('OVAL') || (d.shape || '').toUpperCase().includes('ROUND'); + // EasyEDA names a round pad ELLIPSE; OVAL/ROUND are the KiCad-side spellings. + const round = /OVAL|ROUND|ELLIPSE|CIRCLE/.test((d.shape || '').toUpperCase()); s += ``; if (d.n != null) s += `${esc(d.n)}`; }