@tscircuit/footprinter 0.0.258 → 0.0.259

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
@@ -4281,7 +4281,7 @@ import { z as z34 } from "zod";
4281
4281
  var sot89_def = z34.object({
4282
4282
  fn: z34.string(),
4283
4283
  num_pins: z34.union([z34.literal(3), z34.literal(5)]).default(3),
4284
- w: z34.string().default("4.80mm"),
4284
+ w: z34.string().default("4.20mm"),
4285
4285
  h: z34.string().default("4.80mm"),
4286
4286
  pl: z34.string().default("1.3mm"),
4287
4287
  pw: z34.string().default("0.9mm"),
@@ -4294,10 +4294,12 @@ var sot89_3 = (parameters) => {
4294
4294
  const padWidth = Number.parseFloat(parameters.pw);
4295
4295
  const length47 = Number.parseFloat(parameters.w);
4296
4296
  const padHeight = Number.parseFloat(parameters.pl);
4297
+ const centerExtra = 0.175;
4298
+ const outerPadXShift = (padHeight - (padHeight + centerExtra)) / 2;
4297
4299
  pads.push(
4298
- rectpad(1, -length47 / 2, padGap, padHeight, padWidth),
4299
- rectpad(2, -length47 / 2 + (1.5 - 1.3) / 2, 0, 1.5, padWidth),
4300
- rectpad(3, -length47 / 2, -padGap, padHeight, padWidth)
4300
+ rectpad(1, -length47 / 2 + outerPadXShift, padGap, padHeight, padWidth),
4301
+ rectpad(2, -length47 / 2, 0, padHeight + centerExtra, padWidth),
4302
+ rectpad(3, -length47 / 2 + outerPadXShift, -padGap, padHeight, padWidth)
4301
4303
  );
4302
4304
  const silkscreenRefText = silkscreenRef(0, 0, 0.3);
4303
4305
  const width = Number.parseFloat(parameters.w) / 2 - 1;