@tscircuit/checks 0.0.154 → 0.0.155

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -2401,6 +2401,9 @@ function doPcbElementsOverlap(elem1, elem2) {
2401
2401
  const layers1 = getElementLayers(elem1);
2402
2402
  const layers2 = getElementLayers(elem2);
2403
2403
  if (!doLayersOverlap(layers1, layers2)) return false;
2404
+ if (elem1.type === "pcb_smtpad" && elem2.type === "pcb_smtpad") {
2405
+ return getPadToPadGap(elem1, elem2) <= 0;
2406
+ }
2404
2407
  const bounds1 = getBoundsOfPcbElements4([elem1]);
2405
2408
  const bounds2 = getBoundsOfPcbElements4([elem2]);
2406
2409
  return doBoundsOverlap(bounds1, bounds2);