@tscircuit/footprinter 0.0.232 → 0.0.234

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
@@ -2286,7 +2286,7 @@ var stampboard = (raw_params) => {
2286
2286
  const pinLabels = [];
2287
2287
  let routes = [];
2288
2288
  const innerDiameter = 1;
2289
- const outerDiameter = 1.2;
2289
+ const outerDiameter = innerDiameter;
2290
2290
  const totalPadsNumber = params.left + params.right + (params.bottom ?? 0) + (params.top ?? 0);
2291
2291
  const maxLabelLength = `pin${totalPadsNumber}`.length;
2292
2292
  const textHalf = maxLabelLength * 0.7 / 2;
@@ -7109,10 +7109,12 @@ var m2host = (raw_params) => {
7109
7109
  const pn = i + 1;
7110
7110
  if (pn >= 24 && pn <= 31) continue;
7111
7111
  const y = startY - i * halfPitch;
7112
- const x = i % 2 === 0 ? 0 : -rowOffset / 2;
7113
- const padLengthWithOffset = padLength + (i % 2 === 0 ? 0 : 0.25);
7112
+ const isBottomLayer = pn % 2 === 0;
7113
+ const padLengthWithOffset = padLength + (isBottomLayer ? 0.25 : 0);
7114
+ const rightEdgeOffset = 0.5;
7115
+ const x = rightEdgeOffset - padLengthWithOffset / 2;
7114
7116
  const pad2 = rectpad(pn, x, y, padLengthWithOffset, padWidth);
7115
- pad2.layer = pn % 2 === 0 ? "bottom" : "top";
7117
+ pad2.layer = isBottomLayer ? "bottom" : "top";
7116
7118
  pads.push(pad2);
7117
7119
  }
7118
7120
  const cutoutWidth = 46 * 0.0254;