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)}`; }