@tscircuit/footprinter 0.0.273 → 0.0.274

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.d.ts CHANGED
@@ -1840,6 +1840,7 @@ type Footprinter = {
1840
1840
  sod110: () => FootprinterParamsBuilder<"w" | "h" | "p" | "pl" | "pw">;
1841
1841
  to92: () => FootprinterParamsBuilder<"w" | "h" | "p" | "id" | "od" | "inline">;
1842
1842
  to92s: () => FootprinterParamsBuilder<"w" | "h" | "p" | "id" | "od">;
1843
+ to92l: () => FootprinterParamsBuilder<"w" | "h" | "p" | "id" | "od">;
1843
1844
  sot223: () => FootprinterParamsBuilder<"w" | "h" | "p" | "pl" | "pw">;
1844
1845
  m2host: () => FootprinterParamsBuilder<never>;
1845
1846
  son: (num_pins?: number) => FootprinterParamsBuilder<"w" | "h" | "p" | "pl" | "pw" | "epw" | "eph" | "ep">;
package/dist/index.js CHANGED
@@ -81,6 +81,7 @@ __export(fn_exports, {
81
81
  stampreceiver: () => stampreceiver,
82
82
  to220: () => to220,
83
83
  to92: () => to92,
84
+ to92l: () => to92l,
84
85
  to92s: () => to92s,
85
86
  tqfp: () => tqfp,
86
87
  tssop: () => tssop,
@@ -7648,6 +7649,62 @@ var m2host = (raw_params) => {
7648
7649
  };
7649
7650
  };
7650
7651
 
7652
+ // src/fn/to92l.ts
7653
+ import { z as z68 } from "zod";
7654
+ var to92l_def = base_def.extend({
7655
+ fn: z68.string(),
7656
+ num_pins: z68.number().default(3),
7657
+ p: z68.string().default("1.27mm"),
7658
+ id: z68.string().default("0.75mm"),
7659
+ od: z68.string().default("1.3mm"),
7660
+ w: z68.string().default("4.8mm"),
7661
+ h: z68.string().default("4.0mm")
7662
+ });
7663
+ var to92l = (raw_params) => {
7664
+ const parameters = to92l_def.parse(raw_params);
7665
+ const p = Number.parseFloat(parameters.p);
7666
+ const w = Number.parseFloat(parameters.w);
7667
+ const h = Number.parseFloat(parameters.h);
7668
+ const holes = [
7669
+ platedHoleWithRectPad(1, 0, 0, parameters.id, parameters.od, parameters.od),
7670
+ platedhole(2, p, p, parameters.id, parameters.od),
7671
+ platedhole(3, p * 2, 0, parameters.id, parameters.od)
7672
+ ];
7673
+ const radius = w / 2;
7674
+ const cx = p;
7675
+ const cy = 0.2;
7676
+ const y_bottom = cy + radius - h;
7677
+ const semicircle = Array.from({ length: 32 }, (_, i) => {
7678
+ const angle = Math.PI * i / 31;
7679
+ return {
7680
+ x: cx + radius * Math.cos(angle),
7681
+ y: cy + radius * Math.sin(angle)
7682
+ };
7683
+ });
7684
+ const silkBody = {
7685
+ type: "pcb_silkscreen_path",
7686
+ layer: "top",
7687
+ pcb_component_id: "",
7688
+ pcb_silkscreen_path_id: "",
7689
+ stroke_width: 0.12,
7690
+ route: [
7691
+ ...semicircle,
7692
+ { x: cx - radius, y: y_bottom },
7693
+ { x: cx + radius, y: y_bottom },
7694
+ semicircle[0]
7695
+ ]
7696
+ };
7697
+ const silkscreenRefText = silkscreenRef(
7698
+ cx,
7699
+ cy + radius + 1,
7700
+ 0.5
7701
+ );
7702
+ return {
7703
+ circuitJson: [...holes, silkBody, silkscreenRefText],
7704
+ parameters
7705
+ };
7706
+ };
7707
+
7651
7708
  // src/helpers/is-not-null.ts
7652
7709
  function isNotNull(value) {
7653
7710
  return value !== null && value !== void 0;