@tscircuit/footprinter 0.0.295 → 0.0.297

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
@@ -527,6 +527,9 @@ var led = (parameters) => {
527
527
  return { circuitJson: passive(parameters), parameters };
528
528
  };
529
529
 
530
+ // src/helpers/res0402-array2.ts
531
+ import { length as length2 } from "circuit-json";
532
+
530
533
  // src/helpers/chipArray.ts
531
534
  var chipArray = (params) => {
532
535
  const { padSpacing: padSpacing7, padWidth, padHeight, padPitch, numRows, textbottom } = params;
@@ -603,9 +606,9 @@ var chipArray = (params) => {
603
606
  import { z as z4 } from "zod";
604
607
  import mm4 from "@tscircuit/mm";
605
608
  var res0402Array2_def = base_def.extend({
606
- pw: z4.string().default("0.5mm"),
607
- ph: z4.string().default("0.4mm"),
608
- p: z4.string().default("0.7mm"),
609
+ pw: length2.default("0.5mm"),
610
+ ph: length2.default("0.4mm"),
611
+ p: length2.default("0.7mm"),
609
612
  textbottom: z4.boolean().optional(),
610
613
  convex: z4.boolean().optional(),
611
614
  concave: z4.boolean().optional()
@@ -632,12 +635,13 @@ var res0402Array2 = (rawParams) => {
632
635
  };
633
636
 
634
637
  // src/helpers/res0402-array4.ts
638
+ import { length as length3 } from "circuit-json";
635
639
  import { z as z5 } from "zod";
636
640
  import mm5 from "@tscircuit/mm";
637
641
  var res0402Array4_def = base_def.extend({
638
- pw: z5.string().default("0.5mm"),
639
- ph: z5.string().default("0.32mm"),
640
- p: z5.string().default("0.5mm"),
642
+ pw: length3.default("0.5mm"),
643
+ ph: length3.default("0.32mm"),
644
+ p: length3.default("0.5mm"),
641
645
  textbottom: z5.boolean().optional(),
642
646
  convex: z5.boolean().optional(),
643
647
  concave: z5.boolean().optional()
@@ -661,12 +665,13 @@ var res0402Array4 = (rawParams) => {
661
665
  };
662
666
 
663
667
  // src/helpers/res0603-array2.ts
668
+ import { length as length4 } from "circuit-json";
664
669
  import { z as z6 } from "zod";
665
670
  import mm6 from "@tscircuit/mm";
666
671
  var res0603Array2_def = base_def.extend({
667
- pw: z6.string().default("0.9mm"),
668
- ph: z6.string().default("0.4mm"),
669
- p: z6.string().default("0.8mm"),
672
+ pw: length4.default("0.9mm"),
673
+ ph: length4.default("0.4mm"),
674
+ p: length4.default("0.8mm"),
670
675
  textbottom: z6.boolean().optional(),
671
676
  convex: z6.boolean().optional(),
672
677
  concave: z6.boolean().optional()
@@ -690,12 +695,13 @@ var res0603Array2 = (rawParams) => {
690
695
  };
691
696
 
692
697
  // src/helpers/res0603-array4.ts
698
+ import { length as length5 } from "circuit-json";
693
699
  import { z as z7 } from "zod";
694
700
  import mm7 from "@tscircuit/mm";
695
701
  var res0603Array4_def = base_def.extend({
696
- pw: z7.string().default("0.9mm"),
697
- ph: z7.string().default("0.4mm"),
698
- p: z7.string().default("0.8mm"),
702
+ pw: length5.default("0.9mm"),
703
+ ph: length5.default("0.4mm"),
704
+ p: length5.default("0.8mm"),
699
705
  textbottom: z7.boolean().optional(),
700
706
  convex: z7.boolean().optional(),
701
707
  concave: z7.boolean().optional()
@@ -719,12 +725,13 @@ var res0603Array4 = (rawParams) => {
719
725
  };
720
726
 
721
727
  // src/helpers/res0606-array2.ts
728
+ import { length as length6 } from "circuit-json";
722
729
  import { z as z8 } from "zod";
723
730
  import mm8 from "@tscircuit/mm";
724
731
  var res0606Array2_def = base_def.extend({
725
- pw: z8.string().default("0.7mm"),
726
- ph: z8.string().default("0.64mm"),
727
- p: z8.string().default("0.94mm"),
732
+ pw: length6.default("0.7mm"),
733
+ ph: length6.default("0.64mm"),
734
+ p: length6.default("0.94mm"),
728
735
  textbottom: z8.boolean().optional(),
729
736
  convex: z8.boolean().optional(),
730
737
  concave: z8.boolean().optional()
@@ -748,12 +755,13 @@ var res0606Array2 = (rawParams) => {
748
755
  };
749
756
 
750
757
  // src/helpers/res1206-array4.ts
758
+ import { length as length7 } from "circuit-json";
751
759
  import { z as z9 } from "zod";
752
760
  import mm9 from "@tscircuit/mm";
753
761
  var res1206Array4_def = base_def.extend({
754
- pw: z9.string().default("0.9mm"),
755
- ph: z9.string().default("0.9mm"),
756
- p: z9.string().default("1.34mm"),
762
+ pw: length7.default("0.9mm"),
763
+ ph: length7.default("0.9mm"),
764
+ p: length7.default("1.34mm"),
757
765
  textbottom: z9.boolean().optional(),
758
766
  convex: z9.boolean().optional(),
759
767
  concave: z9.boolean().optional()
@@ -861,7 +869,7 @@ var ALPHABET = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
861
869
 
862
870
  // src/fn/bga.ts
863
871
  import { z as z12 } from "zod";
864
- import { length as length2, distance as distance2 } from "circuit-json";
872
+ import { length as length8, distance as distance2 } from "circuit-json";
865
873
 
866
874
  // src/helpers/zod/dim-2d.ts
867
875
  import { z as z10 } from "zod";
@@ -898,10 +906,10 @@ var bga_def = base_def.extend({
898
906
  num_pins: z12.number().optional().default(64),
899
907
  grid: dim2d.optional(),
900
908
  p: distance2.default("0.8mm"),
901
- w: length2.optional(),
902
- h: length2.optional(),
903
- ball: length2.optional().describe("ball diameter"),
904
- pad: length2.optional().describe("pad width/height"),
909
+ w: length8.optional(),
910
+ h: length8.optional(),
911
+ ball: length8.optional().describe("ball diameter"),
912
+ pad: length8.optional().describe("pad width/height"),
905
913
  circularpads: z12.boolean().optional().describe("use circular pads"),
906
914
  tlorigin: z12.boolean().optional(),
907
915
  blorigin: z12.boolean().optional(),
@@ -1077,7 +1085,7 @@ var bga = (raw_params) => {
1077
1085
 
1078
1086
  // src/fn/soic.ts
1079
1087
  import { z as z13 } from "zod";
1080
- import { length as length3 } from "circuit-json";
1088
+ import { length as length9 } from "circuit-json";
1081
1089
 
1082
1090
  // src/helpers/pillpad.ts
1083
1091
  var pillpad = (pn, x, y, w, h) => {
@@ -1099,17 +1107,17 @@ var pillpad = (pn, x, y, w, h) => {
1099
1107
  var extendSoicDef = (newDefaults) => base_def.extend({
1100
1108
  fn: z13.string(),
1101
1109
  num_pins: z13.number().optional().default(8),
1102
- w: length3.default(length3.parse(newDefaults.w ?? "5.3mm")),
1103
- p: length3.default(length3.parse(newDefaults.p ?? "1.27mm")),
1104
- pw: length3.default(length3.parse(newDefaults.pw ?? "0.6mm")),
1105
- pl: length3.default(length3.parse(newDefaults.pl ?? "1.0mm")),
1110
+ w: length9.default(length9.parse(newDefaults.w ?? "5.3mm")),
1111
+ p: length9.default(length9.parse(newDefaults.p ?? "1.27mm")),
1112
+ pw: length9.default(length9.parse(newDefaults.pw ?? "0.6mm")),
1113
+ pl: length9.default(length9.parse(newDefaults.pl ?? "1.0mm")),
1106
1114
  legsoutside: z13.boolean().optional().default(newDefaults.legsoutside ?? false),
1107
1115
  pillpads: z13.boolean().optional().default(newDefaults.pillpads ?? false),
1108
1116
  silkscreen_stroke_width: z13.number().optional().default(0.1)
1109
1117
  }).transform((v) => {
1110
1118
  if (!v.pw && !v.pl) {
1111
- v.pw = length3.parse("0.6mm");
1112
- v.pl = length3.parse("1.0mm");
1119
+ v.pw = length9.parse("0.6mm");
1120
+ v.pl = length9.parse("1.0mm");
1113
1121
  } else if (!v.pw) {
1114
1122
  v.pw = v.pl * (0.6 / 1);
1115
1123
  } else if (!v.pl) {
@@ -1190,7 +1198,7 @@ var soicWithoutParsing = (parameters) => {
1190
1198
 
1191
1199
  // src/fn/quad.ts
1192
1200
  import { z as z15 } from "zod";
1193
- import { length as length4 } from "circuit-json";
1201
+ import { length as length10 } from "circuit-json";
1194
1202
 
1195
1203
  // src/helpers/zod/pin-order-specifier.ts
1196
1204
  import { z as z14 } from "zod";
@@ -1275,11 +1283,11 @@ var base_quad_def = base_def.extend({
1275
1283
  ccw: z15.boolean().default(true).optional(),
1276
1284
  startingpin: z15.string().or(z15.array(pin_order_specifier)).transform((a) => typeof a === "string" ? a.slice(1, -1).split(",") : a).pipe(z15.array(pin_order_specifier)).optional(),
1277
1285
  num_pins: z15.number().optional().default(64),
1278
- w: length4.optional(),
1279
- h: length4.optional(),
1280
- p: length4.default(length4.parse("0.5mm")),
1281
- pw: length4.optional(),
1282
- pl: length4.optional(),
1286
+ w: length10.optional(),
1287
+ h: length10.optional(),
1288
+ p: length10.default(length10.parse("0.5mm")),
1289
+ pw: length10.optional(),
1290
+ pl: length10.optional(),
1283
1291
  thermalpad: z15.union([z15.literal(true), dim2d]).optional(),
1284
1292
  legsoutside: z15.boolean().default(false)
1285
1293
  });
@@ -1686,7 +1694,7 @@ var tssop = (raw_params) => {
1686
1694
 
1687
1695
  // src/fn/sot363.ts
1688
1696
  import { z as z16 } from "zod";
1689
- import { length as length5 } from "circuit-json";
1697
+ import { length as length11 } from "circuit-json";
1690
1698
  var sot363_def = base_def.extend({
1691
1699
  fn: z16.string(),
1692
1700
  num_pins: z16.literal(6).default(6),
@@ -1699,11 +1707,11 @@ var sot363_def = base_def.extend({
1699
1707
  });
1700
1708
  var sot363 = (raw_params) => {
1701
1709
  const parameters = sot363_def.parse({ ...raw_params, fn: "sot363" });
1702
- const w = length5.parse(parameters.w);
1703
- const h = length5.parse(parameters.h);
1704
- const p = length5.parse(parameters.p);
1705
- const pl = length5.parse(parameters.pl);
1706
- const pw = length5.parse(parameters.pw);
1710
+ const w = length11.parse(parameters.w);
1711
+ const h = length11.parse(parameters.h);
1712
+ const p = length11.parse(parameters.p);
1713
+ const pl = length11.parse(parameters.pl);
1714
+ const pw = length11.parse(parameters.pw);
1707
1715
  const pads = [];
1708
1716
  for (let i = 0; i < 6; i++) {
1709
1717
  const { x, y } = getSot363PadCoord(i + 1, w, p, pl);
@@ -1767,7 +1775,7 @@ var getSot363PadCoord = (pn, w, p, pl) => {
1767
1775
 
1768
1776
  // src/fn/sot886.ts
1769
1777
  import { z as z17 } from "zod";
1770
- import { length as length6 } from "circuit-json";
1778
+ import { length as length12 } from "circuit-json";
1771
1779
  var sot886_def = base_def.extend({
1772
1780
  fn: z17.string(),
1773
1781
  num_pins: z17.literal(6).default(6),
@@ -1780,11 +1788,11 @@ var sot886_def = base_def.extend({
1780
1788
  });
1781
1789
  var sot886 = (raw_params) => {
1782
1790
  const parameters = sot886_def.parse({ ...raw_params, fn: "sot886" });
1783
- const w = length6.parse(parameters.w);
1784
- const h = length6.parse(parameters.h);
1785
- const p = length6.parse(parameters.p);
1786
- const pl = length6.parse(parameters.pl);
1787
- const pw = length6.parse(parameters.pw);
1791
+ const w = length12.parse(parameters.w);
1792
+ const h = length12.parse(parameters.h);
1793
+ const p = length12.parse(parameters.p);
1794
+ const pl = length12.parse(parameters.pl);
1795
+ const pw = length12.parse(parameters.pw);
1788
1796
  const pads = [];
1789
1797
  for (let i = 0; i < 6; i++) {
1790
1798
  const { x, y } = getSot886PadCoord(i + 1, w, p, pl);
@@ -2147,7 +2155,7 @@ var dfn = (raw_params) => {
2147
2155
 
2148
2156
  // src/fn/pinrow.ts
2149
2157
  import { z as z21 } from "zod";
2150
- import { length as length7 } from "circuit-json";
2158
+ import { length as length13 } from "circuit-json";
2151
2159
 
2152
2160
  // src/helpers/silkscreenPin.ts
2153
2161
  var silkscreenPin = ({
@@ -2237,16 +2245,16 @@ var pinrow_def = base_def.extend({
2237
2245
  fn: z21.string(),
2238
2246
  num_pins: z21.number().optional().default(6),
2239
2247
  rows: z21.union([z21.string(), z21.number()]).transform((val) => Number(val)).optional().default(1).describe("number of rows"),
2240
- p: length7.default("0.1in").describe("pitch"),
2241
- id: length7.default("1.0mm").describe("inner diameter"),
2242
- od: length7.default("1.5mm").describe("outer diameter"),
2248
+ p: length13.default("0.1in").describe("pitch"),
2249
+ id: length13.default("1.0mm").describe("inner diameter"),
2250
+ od: length13.default("1.5mm").describe("outer diameter"),
2243
2251
  male: z21.boolean().optional().describe("for male pin headers"),
2244
2252
  female: z21.boolean().optional().describe("for female pin headers"),
2245
2253
  smd: z21.boolean().optional().describe("surface mount device"),
2246
2254
  surfacemount: z21.boolean().optional().describe("surface mount device (verbose)"),
2247
2255
  rightangle: z21.boolean().optional().describe("right angle"),
2248
- pw: length7.optional().default("1.0mm").describe("pad width for SMD"),
2249
- pl: length7.optional().default("2.0mm").describe("pad length for SMD"),
2256
+ pw: length13.optional().default("1.0mm").describe("pad width for SMD"),
2257
+ pl: length13.optional().default("2.0mm").describe("pad length for SMD"),
2250
2258
  pinlabeltextalignleft: z21.boolean().optional().default(false),
2251
2259
  pinlabeltextaligncenter: z21.boolean().optional().default(false),
2252
2260
  pinlabeltextalignright: z21.boolean().optional().default(false),
@@ -2510,7 +2518,7 @@ var pinrow = (raw_params) => {
2510
2518
 
2511
2519
  // src/fn/sot563.ts
2512
2520
  import { z as z22 } from "zod";
2513
- import { length as length8 } from "circuit-json";
2521
+ import { length as length14 } from "circuit-json";
2514
2522
  var sot563_def = base_def.extend({
2515
2523
  fn: z22.string(),
2516
2524
  num_pins: z22.literal(6).default(6),
@@ -2523,11 +2531,11 @@ var sot563_def = base_def.extend({
2523
2531
  });
2524
2532
  var sot563 = (raw_params) => {
2525
2533
  const parameters = sot563_def.parse({ ...raw_params, fn: "sot563" });
2526
- const w = length8.parse(parameters.w);
2527
- const h = length8.parse(parameters.h);
2528
- const p = length8.parse(parameters.p);
2529
- const pl = length8.parse(parameters.pl);
2530
- const pw = length8.parse(parameters.pw);
2534
+ const w = length14.parse(parameters.w);
2535
+ const h = length14.parse(parameters.h);
2536
+ const p = length14.parse(parameters.p);
2537
+ const pl = length14.parse(parameters.pl);
2538
+ const pw = length14.parse(parameters.pw);
2531
2539
  const pads = [];
2532
2540
  for (let i = 0; i < 6; i++) {
2533
2541
  const { x, y } = getSot563PadCoord(i + 1, w, p, pl);
@@ -2618,7 +2626,7 @@ var ms013 = (raw_params) => {
2618
2626
  };
2619
2627
 
2620
2628
  // src/fn/sot723.ts
2621
- import { length as length9 } from "circuit-json";
2629
+ import { length as length15 } from "circuit-json";
2622
2630
  import { z as z23 } from "zod";
2623
2631
  var sot723_def = base_def.extend({
2624
2632
  fn: z23.string(),
@@ -2634,7 +2642,7 @@ var sot723 = (raw_params) => {
2634
2642
  const pad2 = sot723WithoutParsing(parameters);
2635
2643
  const silkscreenRefText = silkscreenRef(
2636
2644
  0,
2637
- length9.parse(parameters.h),
2645
+ length15.parse(parameters.h),
2638
2646
  0.2
2639
2647
  );
2640
2648
  return {
@@ -2678,7 +2686,7 @@ var sot723WithoutParsing = (parameters) => {
2678
2686
 
2679
2687
  // src/fn/sod123.ts
2680
2688
  import { z as z24 } from "zod";
2681
- import { length as length10 } from "circuit-json";
2689
+ import { length as length16 } from "circuit-json";
2682
2690
  var sod_def = base_def.extend({
2683
2691
  fn: z24.string(),
2684
2692
  num_pins: z24.literal(2).default(2),
@@ -2692,7 +2700,7 @@ var sod123 = (raw_params) => {
2692
2700
  const parameters = sod_def.parse(raw_params);
2693
2701
  const silkscreenRefText = silkscreenRef(
2694
2702
  0,
2695
- length10.parse(parameters.h) / 4 + 0.4,
2703
+ length16.parse(parameters.h) / 4 + 0.4,
2696
2704
  0.3
2697
2705
  );
2698
2706
  return {
@@ -2732,14 +2740,14 @@ var sodWithoutParsing = (parameters) => {
2732
2740
 
2733
2741
  // src/fn/axial.ts
2734
2742
  import {
2735
- length as length11
2743
+ length as length17
2736
2744
  } from "circuit-json";
2737
2745
  import { z as z25 } from "zod";
2738
2746
  var axial_def = base_def.extend({
2739
2747
  fn: z25.string(),
2740
- p: length11.optional().default("2.54mm"),
2741
- id: length11.optional().default("0.7mm"),
2742
- od: length11.optional().default("1.4mm")
2748
+ p: length17.optional().default("2.54mm"),
2749
+ id: length17.optional().default("0.7mm"),
2750
+ od: length17.optional().default("1.4mm")
2743
2751
  });
2744
2752
  var axial = (raw_params) => {
2745
2753
  const parameters = axial_def.parse(raw_params);
@@ -2772,7 +2780,7 @@ var axial = (raw_params) => {
2772
2780
 
2773
2781
  // src/fn/radial.ts
2774
2782
  import {
2775
- length as length12
2783
+ length as length18
2776
2784
  } from "circuit-json";
2777
2785
  import { z as z26 } from "zod";
2778
2786
 
@@ -2806,9 +2814,9 @@ var generateCircleArcs = (centerX, centerY, radius, cut, cutHeight, segmentLengt
2806
2814
  // src/fn/radial.ts
2807
2815
  var radial_def = base_def.extend({
2808
2816
  fn: z26.string(),
2809
- p: length12.optional().default("5mm"),
2810
- id: length12.optional().default("0.8mm"),
2811
- od: length12.optional().default("1.6mm"),
2817
+ p: length18.optional().default("5mm"),
2818
+ id: length18.optional().default("0.8mm"),
2819
+ od: length18.optional().default("1.6mm"),
2812
2820
  ceramic: z26.boolean().optional(),
2813
2821
  electrolytic: z26.boolean().optional(),
2814
2822
  polarized: z26.boolean().optional()
@@ -2908,7 +2916,7 @@ var radial = (raw_params) => {
2908
2916
  };
2909
2917
 
2910
2918
  // src/fn/pushbutton.ts
2911
- import { length as length13 } from "circuit-json";
2919
+ import { length as length19 } from "circuit-json";
2912
2920
  import { z as z27 } from "zod";
2913
2921
 
2914
2922
  // src/helpers/silkscreenpath.ts
@@ -2926,10 +2934,10 @@ var silkscreenpath = (route, options = {}) => {
2926
2934
  // src/fn/pushbutton.ts
2927
2935
  var pushbutton_def = base_def.extend({
2928
2936
  fn: z27.literal("pushbutton"),
2929
- w: length13.default(4.5),
2930
- h: length13.default(6.5),
2931
- id: length13.default(1),
2932
- od: length13.default(1.2)
2937
+ w: length19.default(4.5),
2938
+ h: length19.default(6.5),
2939
+ id: length19.default(1),
2940
+ od: length19.default(1.2)
2933
2941
  });
2934
2942
  var pushbutton = (raw_params) => {
2935
2943
  const parameters = pushbutton_def.parse(raw_params);
@@ -2976,24 +2984,24 @@ var pushbutton = (raw_params) => {
2976
2984
 
2977
2985
  // src/fn/stampboard.ts
2978
2986
  import {
2979
- length as length14
2987
+ length as length20
2980
2988
  } from "circuit-json";
2981
2989
  import { z as z28 } from "zod";
2982
2990
  var stampboard_def = base_def.extend({
2983
2991
  fn: z28.string(),
2984
- w: length14.default("22.58mm"),
2985
- h: length14.optional(),
2986
- left: length14.optional().default(20),
2987
- right: length14.optional().default(20),
2988
- top: length14.optional().default(2),
2989
- bottom: length14.optional().default(2),
2990
- p: length14.default(length14.parse("2.54mm")),
2991
- pw: length14.default(length14.parse("1.6mm")),
2992
- pl: length14.default(length14.parse("2.4mm")),
2992
+ w: length20.default("22.58mm"),
2993
+ h: length20.optional(),
2994
+ left: length20.optional().default(20),
2995
+ right: length20.optional().default(20),
2996
+ top: length20.optional().default(2),
2997
+ bottom: length20.optional().default(2),
2998
+ p: length20.default(length20.parse("2.54mm")),
2999
+ pw: length20.default(length20.parse("1.6mm")),
3000
+ pl: length20.default(length20.parse("2.4mm")),
2993
3001
  innerhole: z28.boolean().default(false),
2994
- innerholeedgedistance: length14.default(length14.parse("1.61mm")),
3002
+ innerholeedgedistance: length20.default(length20.parse("1.61mm")),
2995
3003
  silkscreenlabels: z28.boolean().default(false),
2996
- silkscreenlabelmargin: length14.default(length14.parse("0.1mm"))
3004
+ silkscreenlabelmargin: length20.default(length20.parse("0.1mm"))
2997
3005
  });
2998
3006
  var getHeight = (parameters) => {
2999
3007
  const params = stampboard_def.parse(parameters);
@@ -3402,22 +3410,22 @@ var stampboard = (raw_params) => {
3402
3410
 
3403
3411
  // src/fn/stampreceiver.ts
3404
3412
  import {
3405
- length as length15
3413
+ length as length21
3406
3414
  } from "circuit-json";
3407
3415
  import { z as z29 } from "zod";
3408
3416
  var stampreceiver_def = base_def.extend({
3409
3417
  fn: z29.string(),
3410
- w: length15.default("22.58mm"),
3411
- h: length15.optional(),
3412
- left: length15.optional().default(20),
3413
- right: length15.optional().default(20),
3414
- top: length15.optional().default(2),
3415
- bottom: length15.optional().default(2),
3416
- p: length15.default(length15.parse("2.54mm")),
3417
- pw: length15.default(length15.parse("1.6mm")),
3418
- pl: length15.default(length15.parse("3.2mm")),
3418
+ w: length21.default("22.58mm"),
3419
+ h: length21.optional(),
3420
+ left: length21.optional().default(20),
3421
+ right: length21.optional().default(20),
3422
+ top: length21.optional().default(2),
3423
+ bottom: length21.optional().default(2),
3424
+ p: length21.default(length21.parse("2.54mm")),
3425
+ pw: length21.default(length21.parse("1.6mm")),
3426
+ pl: length21.default(length21.parse("3.2mm")),
3419
3427
  innerhole: z29.boolean().default(false),
3420
- innerholeedgedistance: length15.default(length15.parse("1.61mm"))
3428
+ innerholeedgedistance: length21.default(length21.parse("1.61mm"))
3421
3429
  });
3422
3430
  var getHeight2 = (parameters) => {
3423
3431
  const params = stampreceiver_def.parse(parameters);
@@ -3718,20 +3726,20 @@ var lqfp = (parameters) => {
3718
3726
 
3719
3727
  // src/fn/breakoutheaders.ts
3720
3728
  import {
3721
- length as length16
3729
+ length as length22
3722
3730
  } from "circuit-json";
3723
3731
  import { z as z30 } from "zod";
3724
3732
  var breakoutheaders_def = base_def.extend({
3725
3733
  fn: z30.string(),
3726
- w: length16.default("10mm"),
3727
- h: length16.optional(),
3728
- left: length16.optional().default(20),
3729
- right: length16.optional().default(20),
3730
- top: length16.optional().default(0),
3731
- bottom: length16.optional().default(0),
3732
- p: length16.default(length16.parse("2.54mm")),
3733
- id: length16.optional().default(length16.parse("1mm")),
3734
- od: length16.optional().default(length16.parse("1.5mm"))
3734
+ w: length22.default("10mm"),
3735
+ h: length22.optional(),
3736
+ left: length22.optional().default(20),
3737
+ right: length22.optional().default(20),
3738
+ top: length22.optional().default(0),
3739
+ bottom: length22.optional().default(0),
3740
+ p: length22.default(length22.parse("2.54mm")),
3741
+ id: length22.optional().default(length22.parse("1mm")),
3742
+ od: length22.optional().default(length22.parse("1.5mm"))
3735
3743
  });
3736
3744
  var getHeight3 = (parameters) => {
3737
3745
  const params = breakoutheaders_def.parse(parameters);
@@ -3923,7 +3931,7 @@ var breakoutheaders = (raw_params) => {
3923
3931
 
3924
3932
  // src/fn/hc49.ts
3925
3933
  import {
3926
- length as length17
3934
+ length as length23
3927
3935
  } from "circuit-json";
3928
3936
  import { z as z31 } from "zod";
3929
3937
  var generate_u_curve = (centerX, centerY, radius, direction) => {
@@ -3937,11 +3945,11 @@ var generate_u_curve = (centerX, centerY, radius, direction) => {
3937
3945
  };
3938
3946
  var hc49_def = base_def.extend({
3939
3947
  fn: z31.string(),
3940
- p: length17.optional().default("4.88mm"),
3941
- id: length17.optional().default("0.8mm"),
3942
- od: length17.optional().default("1.5mm"),
3943
- w: length17.optional().default("5.6mm"),
3944
- h: length17.optional().default("3.5mm")
3948
+ p: length23.optional().default("4.88mm"),
3949
+ id: length23.optional().default("0.8mm"),
3950
+ od: length23.optional().default("1.5mm"),
3951
+ w: length23.optional().default("5.6mm"),
3952
+ h: length23.optional().default("3.5mm")
3945
3953
  });
3946
3954
  var hc49 = (raw_params) => {
3947
3955
  const parameters = hc49_def.parse(raw_params);
@@ -3982,11 +3990,11 @@ var hc49 = (raw_params) => {
3982
3990
 
3983
3991
  // src/fn/pad.ts
3984
3992
  import "zod";
3985
- import { length as length18 } from "circuit-json";
3993
+ import { length as length24 } from "circuit-json";
3986
3994
  import { mm as mm11 } from "@tscircuit/mm";
3987
3995
  var pad_def = base_def.extend({
3988
- w: length18,
3989
- h: length18
3996
+ w: length24,
3997
+ h: length24
3990
3998
  });
3991
3999
  var pad = (params) => {
3992
4000
  const { w, h } = params;
@@ -4146,7 +4154,7 @@ var to92 = (raw_params) => {
4146
4154
 
4147
4155
  // src/fn/sod523.ts
4148
4156
  import { z as z34 } from "zod";
4149
- import { length as length19 } from "circuit-json";
4157
+ import { length as length25 } from "circuit-json";
4150
4158
  var sod_def2 = base_def.extend({
4151
4159
  fn: z34.string(),
4152
4160
  num_pins: z34.literal(2).default(2),
@@ -4160,7 +4168,7 @@ var sod523 = (raw_params) => {
4160
4168
  const parameters = sod_def2.parse(raw_params);
4161
4169
  const silkscreenRefText = silkscreenRef(
4162
4170
  0,
4163
- length19.parse(parameters.h),
4171
+ length25.parse(parameters.h),
4164
4172
  0.3
4165
4173
  );
4166
4174
  const silkscreenLine = {
@@ -4169,20 +4177,20 @@ var sod523 = (raw_params) => {
4169
4177
  pcb_component_id: "",
4170
4178
  route: [
4171
4179
  {
4172
- x: length19.parse(parameters.p) / 2,
4173
- y: length19.parse(parameters.h) / 2
4180
+ x: length25.parse(parameters.p) / 2,
4181
+ y: length25.parse(parameters.h) / 2
4174
4182
  },
4175
4183
  {
4176
- x: -length19.parse(parameters.w) / 2 - 0.2,
4177
- y: length19.parse(parameters.h) / 2
4184
+ x: -length25.parse(parameters.w) / 2 - 0.2,
4185
+ y: length25.parse(parameters.h) / 2
4178
4186
  },
4179
4187
  {
4180
- x: -length19.parse(parameters.w) / 2 - 0.2,
4181
- y: -length19.parse(parameters.h) / 2
4188
+ x: -length25.parse(parameters.w) / 2 - 0.2,
4189
+ y: -length25.parse(parameters.h) / 2
4182
4190
  },
4183
4191
  {
4184
- x: length19.parse(parameters.p) / 2,
4185
- y: -length19.parse(parameters.h) / 2
4192
+ x: length25.parse(parameters.p) / 2,
4193
+ y: -length25.parse(parameters.h) / 2
4186
4194
  }
4187
4195
  ],
4188
4196
  stroke_width: 0.1,
@@ -4271,7 +4279,7 @@ var sop8 = (raw_params) => {
4271
4279
 
4272
4280
  // src/fn/sod80.ts
4273
4281
  import { z as z35 } from "zod";
4274
- import { length as length20 } from "circuit-json";
4282
+ import { length as length26 } from "circuit-json";
4275
4283
  var sod80_def = base_def.extend({
4276
4284
  fn: z35.string(),
4277
4285
  num_pins: z35.literal(2).default(2),
@@ -4285,7 +4293,7 @@ var sod80 = (raw_params) => {
4285
4293
  const parameters = sod80_def.parse(raw_params);
4286
4294
  const silkscreenRefText = silkscreenRef(
4287
4295
  0,
4288
- length20.parse(parameters.h) / 2 + 1,
4296
+ length26.parse(parameters.h) / 2 + 1,
4289
4297
  0.3
4290
4298
  );
4291
4299
  const silkscreenLine = {
@@ -4294,20 +4302,20 @@ var sod80 = (raw_params) => {
4294
4302
  pcb_component_id: "",
4295
4303
  route: [
4296
4304
  {
4297
- x: length20.parse(parameters.p) / 2 + 0.5,
4298
- y: length20.parse(parameters.h) / 2 + 0.5
4305
+ x: length26.parse(parameters.p) / 2 + 0.5,
4306
+ y: length26.parse(parameters.h) / 2 + 0.5
4299
4307
  },
4300
4308
  {
4301
- x: -length20.parse(parameters.w) / 2 - 0.5,
4302
- y: length20.parse(parameters.h) / 2 + 0.5
4309
+ x: -length26.parse(parameters.w) / 2 - 0.5,
4310
+ y: length26.parse(parameters.h) / 2 + 0.5
4303
4311
  },
4304
4312
  {
4305
- x: -length20.parse(parameters.w) / 2 - 0.5,
4306
- y: -length20.parse(parameters.h) / 2 - 0.5
4313
+ x: -length26.parse(parameters.w) / 2 - 0.5,
4314
+ y: -length26.parse(parameters.h) / 2 - 0.5
4307
4315
  },
4308
4316
  {
4309
- x: length20.parse(parameters.p) / 2 + 0.5,
4310
- y: -length20.parse(parameters.h) / 2 - 0.5
4317
+ x: length26.parse(parameters.p) / 2 + 0.5,
4318
+ y: -length26.parse(parameters.h) / 2 - 0.5
4311
4319
  }
4312
4320
  ],
4313
4321
  stroke_width: 0.1,
@@ -4347,7 +4355,7 @@ var sod80WithoutParsing = (parameters) => {
4347
4355
 
4348
4356
  // src/fn/sod123w.ts
4349
4357
  import { z as z36 } from "zod";
4350
- import { length as length21 } from "circuit-json";
4358
+ import { length as length27 } from "circuit-json";
4351
4359
  var sod_def3 = base_def.extend({
4352
4360
  fn: z36.string(),
4353
4361
  num_pins: z36.literal(2).default(2),
@@ -4361,7 +4369,7 @@ var sod123w = (raw_params) => {
4361
4369
  const parameters = sod_def3.parse(raw_params);
4362
4370
  const silkscreenRefText = silkscreenRef(
4363
4371
  0,
4364
- length21.parse(parameters.h) - 0.5,
4372
+ length27.parse(parameters.h) - 0.5,
4365
4373
  0.3
4366
4374
  );
4367
4375
  const silkscreenLine = {
@@ -4370,20 +4378,20 @@ var sod123w = (raw_params) => {
4370
4378
  pcb_component_id: "",
4371
4379
  route: [
4372
4380
  {
4373
- x: length21.parse(parameters.p) / 2,
4374
- y: length21.parse(parameters.h) / 2
4381
+ x: length27.parse(parameters.p) / 2,
4382
+ y: length27.parse(parameters.h) / 2
4375
4383
  },
4376
4384
  {
4377
- x: -length21.parse(parameters.w) / 2 - 0.2,
4378
- y: length21.parse(parameters.h) / 2
4385
+ x: -length27.parse(parameters.w) / 2 - 0.2,
4386
+ y: length27.parse(parameters.h) / 2
4379
4387
  },
4380
4388
  {
4381
- x: -length21.parse(parameters.w) / 2 - 0.2,
4382
- y: -length21.parse(parameters.h) / 2
4389
+ x: -length27.parse(parameters.w) / 2 - 0.2,
4390
+ y: -length27.parse(parameters.h) / 2
4383
4391
  },
4384
4392
  {
4385
- x: length21.parse(parameters.p) / 2,
4386
- y: -length21.parse(parameters.h) / 2
4393
+ x: length27.parse(parameters.p) / 2,
4394
+ y: -length27.parse(parameters.h) / 2
4387
4395
  }
4388
4396
  ],
4389
4397
  stroke_width: 0.1,
@@ -4426,7 +4434,7 @@ var sodWithoutParsing3 = (parameters) => {
4426
4434
 
4427
4435
  // src/fn/sod323.ts
4428
4436
  import { z as z37 } from "zod";
4429
- import { length as length22 } from "circuit-json";
4437
+ import { length as length28 } from "circuit-json";
4430
4438
  var sod_def4 = base_def.extend({
4431
4439
  fn: z37.string(),
4432
4440
  num_pins: z37.literal(2).default(2),
@@ -4440,7 +4448,7 @@ var sod323 = (raw_params) => {
4440
4448
  const parameters = sod_def4.parse(raw_params);
4441
4449
  const silkscreenRefText = silkscreenRef(
4442
4450
  0,
4443
- length22.parse(parameters.h) - 0.5,
4451
+ length28.parse(parameters.h) - 0.5,
4444
4452
  0.3
4445
4453
  );
4446
4454
  const silkscreenLine = {
@@ -4449,20 +4457,20 @@ var sod323 = (raw_params) => {
4449
4457
  pcb_component_id: "",
4450
4458
  route: [
4451
4459
  {
4452
- x: length22.parse(parameters.p) / 2,
4453
- y: length22.parse(parameters.h) / 2
4460
+ x: length28.parse(parameters.p) / 2,
4461
+ y: length28.parse(parameters.h) / 2
4454
4462
  },
4455
4463
  {
4456
- x: -length22.parse(parameters.w) / 2,
4457
- y: length22.parse(parameters.h) / 2
4464
+ x: -length28.parse(parameters.w) / 2,
4465
+ y: length28.parse(parameters.h) / 2
4458
4466
  },
4459
4467
  {
4460
- x: -length22.parse(parameters.w) / 2,
4461
- y: -length22.parse(parameters.h) / 2
4468
+ x: -length28.parse(parameters.w) / 2,
4469
+ y: -length28.parse(parameters.h) / 2
4462
4470
  },
4463
4471
  {
4464
- x: length22.parse(parameters.p) / 2,
4465
- y: -length22.parse(parameters.h) / 2
4472
+ x: length28.parse(parameters.p) / 2,
4473
+ y: -length28.parse(parameters.h) / 2
4466
4474
  }
4467
4475
  ],
4468
4476
  stroke_width: 0.1,
@@ -4505,7 +4513,7 @@ var sodWithoutParsing4 = (parameters) => {
4505
4513
 
4506
4514
  // src/fn/sod923.ts
4507
4515
  import { z as z38 } from "zod";
4508
- import { length as length23 } from "circuit-json";
4516
+ import { length as length29 } from "circuit-json";
4509
4517
  var sod_def5 = base_def.extend({
4510
4518
  fn: z38.string(),
4511
4519
  num_pins: z38.literal(2).default(2),
@@ -4519,7 +4527,7 @@ var sod923 = (raw_params) => {
4519
4527
  const parameters = sod_def5.parse(raw_params);
4520
4528
  const silkscreenRefText = silkscreenRef(
4521
4529
  0,
4522
- length23.parse(parameters.h),
4530
+ length29.parse(parameters.h),
4523
4531
  0.3
4524
4532
  );
4525
4533
  const silkscreenLine = {
@@ -4528,20 +4536,20 @@ var sod923 = (raw_params) => {
4528
4536
  pcb_component_id: "",
4529
4537
  route: [
4530
4538
  {
4531
- x: length23.parse(parameters.p) / 2 + 0.15,
4532
- y: length23.parse(parameters.h) / 2
4539
+ x: length29.parse(parameters.p) / 2 + 0.15,
4540
+ y: length29.parse(parameters.h) / 2
4533
4541
  },
4534
4542
  {
4535
- x: -length23.parse(parameters.w) / 2 - 0.15,
4536
- y: length23.parse(parameters.h) / 2
4543
+ x: -length29.parse(parameters.w) / 2 - 0.15,
4544
+ y: length29.parse(parameters.h) / 2
4537
4545
  },
4538
4546
  {
4539
- x: -length23.parse(parameters.w) / 2 - 0.15,
4540
- y: -length23.parse(parameters.h) / 2
4547
+ x: -length29.parse(parameters.w) / 2 - 0.15,
4548
+ y: -length29.parse(parameters.h) / 2
4541
4549
  },
4542
4550
  {
4543
- x: length23.parse(parameters.p) / 2 + 0.15,
4544
- y: -length23.parse(parameters.h) / 2
4551
+ x: length29.parse(parameters.p) / 2 + 0.15,
4552
+ y: -length29.parse(parameters.h) / 2
4545
4553
  }
4546
4554
  ],
4547
4555
  stroke_width: 0.1,
@@ -4585,7 +4593,7 @@ var sodWithoutParsing5 = (parameters) => {
4585
4593
 
4586
4594
  // src/fn/sod882.ts
4587
4595
  import { z as z39 } from "zod";
4588
- import { length as length24 } from "circuit-json";
4596
+ import { length as length30 } from "circuit-json";
4589
4597
  var sod_def6 = base_def.extend({
4590
4598
  fn: z39.string(),
4591
4599
  num_pins: z39.literal(2).default(2),
@@ -4599,7 +4607,7 @@ var sod882 = (raw_params) => {
4599
4607
  const parameters = sod_def6.parse(raw_params);
4600
4608
  const silkscreenRefText = silkscreenRef(
4601
4609
  0,
4602
- length24.parse(parameters.h) + 0.1,
4610
+ length30.parse(parameters.h) + 0.1,
4603
4611
  0.3
4604
4612
  );
4605
4613
  const silkscreenLine = {
@@ -4608,20 +4616,20 @@ var sod882 = (raw_params) => {
4608
4616
  pcb_component_id: "",
4609
4617
  route: [
4610
4618
  {
4611
- x: length24.parse(parameters.p) / 2 + 0.2,
4612
- y: length24.parse(parameters.h) / 2 + 0.2
4619
+ x: length30.parse(parameters.p) / 2 + 0.2,
4620
+ y: length30.parse(parameters.h) / 2 + 0.2
4613
4621
  },
4614
4622
  {
4615
- x: -length24.parse(parameters.w) / 2 - 0.2,
4616
- y: length24.parse(parameters.h) / 2 + 0.2
4623
+ x: -length30.parse(parameters.w) / 2 - 0.2,
4624
+ y: length30.parse(parameters.h) / 2 + 0.2
4617
4625
  },
4618
4626
  {
4619
- x: -length24.parse(parameters.w) / 2 - 0.2,
4620
- y: -length24.parse(parameters.h) / 2 - 0.2
4627
+ x: -length30.parse(parameters.w) / 2 - 0.2,
4628
+ y: -length30.parse(parameters.h) / 2 - 0.2
4621
4629
  },
4622
4630
  {
4623
- x: length24.parse(parameters.p) / 2 + 0.2,
4624
- y: -length24.parse(parameters.h) / 2 - 0.2
4631
+ x: length30.parse(parameters.p) / 2 + 0.2,
4632
+ y: -length30.parse(parameters.h) / 2 - 0.2
4625
4633
  }
4626
4634
  ],
4627
4635
  stroke_width: 0.1,
@@ -4665,7 +4673,7 @@ var sodWithoutParsing6 = (parameters) => {
4665
4673
 
4666
4674
  // src/fn/sod323f.ts
4667
4675
  import { z as z40 } from "zod";
4668
- import { length as length25 } from "circuit-json";
4676
+ import { length as length31 } from "circuit-json";
4669
4677
  var sod_def7 = base_def.extend({
4670
4678
  fn: z40.string(),
4671
4679
  num_pins: z40.literal(2).default(2),
@@ -4679,7 +4687,7 @@ var sod323f = (raw_params) => {
4679
4687
  const parameters = sod_def7.parse(raw_params);
4680
4688
  const silkscreenRefText = silkscreenRef(
4681
4689
  0,
4682
- length25.parse(parameters.h),
4690
+ length31.parse(parameters.h),
4683
4691
  0.3
4684
4692
  );
4685
4693
  const silkscreenLine = {
@@ -4688,20 +4696,20 @@ var sod323f = (raw_params) => {
4688
4696
  pcb_component_id: "",
4689
4697
  route: [
4690
4698
  {
4691
- x: length25.parse(parameters.pad_spacing) / 2,
4692
- y: length25.parse(parameters.h) / 2
4699
+ x: length31.parse(parameters.pad_spacing) / 2,
4700
+ y: length31.parse(parameters.h) / 2
4693
4701
  },
4694
4702
  {
4695
- x: -length25.parse(parameters.w) / 2 - 0.2,
4696
- y: length25.parse(parameters.h) / 2
4703
+ x: -length31.parse(parameters.w) / 2 - 0.2,
4704
+ y: length31.parse(parameters.h) / 2
4697
4705
  },
4698
4706
  {
4699
- x: -length25.parse(parameters.w) / 2 - 0.2,
4700
- y: -length25.parse(parameters.h) / 2
4707
+ x: -length31.parse(parameters.w) / 2 - 0.2,
4708
+ y: -length31.parse(parameters.h) / 2
4701
4709
  },
4702
4710
  {
4703
- x: length25.parse(parameters.pad_spacing) / 2,
4704
- y: -length25.parse(parameters.h) / 2
4711
+ x: length31.parse(parameters.pad_spacing) / 2,
4712
+ y: -length31.parse(parameters.h) / 2
4705
4713
  }
4706
4714
  ],
4707
4715
  stroke_width: 0.1,
@@ -4745,7 +4753,7 @@ var sodWithoutParsing7 = (parameters) => {
4745
4753
 
4746
4754
  // src/fn/sod123f.ts
4747
4755
  import { z as z41 } from "zod";
4748
- import { length as length26 } from "circuit-json";
4756
+ import { length as length32 } from "circuit-json";
4749
4757
  var sod_def8 = base_def.extend({
4750
4758
  fn: z41.string(),
4751
4759
  num_pins: z41.literal(2).default(2),
@@ -4759,7 +4767,7 @@ var sod123f = (raw_params) => {
4759
4767
  const parameters = sod_def8.parse(raw_params);
4760
4768
  const silkscreenRefText = silkscreenRef(
4761
4769
  0,
4762
- length26.parse(parameters.h),
4770
+ length32.parse(parameters.h),
4763
4771
  0.3
4764
4772
  );
4765
4773
  const silkscreenLine = {
@@ -4768,20 +4776,20 @@ var sod123f = (raw_params) => {
4768
4776
  pcb_component_id: "",
4769
4777
  route: [
4770
4778
  {
4771
- x: length26.parse(parameters.p) / 2,
4772
- y: length26.parse(parameters.h) / 2
4779
+ x: length32.parse(parameters.p) / 2,
4780
+ y: length32.parse(parameters.h) / 2
4773
4781
  },
4774
4782
  {
4775
- x: -length26.parse(parameters.w) / 2 - 0.2,
4776
- y: length26.parse(parameters.h) / 2
4783
+ x: -length32.parse(parameters.w) / 2 - 0.2,
4784
+ y: length32.parse(parameters.h) / 2
4777
4785
  },
4778
4786
  {
4779
- x: -length26.parse(parameters.w) / 2 - 0.2,
4780
- y: -length26.parse(parameters.h) / 2
4787
+ x: -length32.parse(parameters.w) / 2 - 0.2,
4788
+ y: -length32.parse(parameters.h) / 2
4781
4789
  },
4782
4790
  {
4783
- x: length26.parse(parameters.p) / 2,
4784
- y: -length26.parse(parameters.h) / 2
4791
+ x: length32.parse(parameters.p) / 2,
4792
+ y: -length32.parse(parameters.h) / 2
4785
4793
  }
4786
4794
  ],
4787
4795
  stroke_width: 0.1,
@@ -4825,7 +4833,7 @@ var sodWithoutParsing8 = (parameters) => {
4825
4833
 
4826
4834
  // src/fn/sod123fl.ts
4827
4835
  import { z as z42 } from "zod";
4828
- import { length as length27 } from "circuit-json";
4836
+ import { length as length33 } from "circuit-json";
4829
4837
  var sod123FL_def = base_def.extend({
4830
4838
  fn: z42.string(),
4831
4839
  num_pins: z42.literal(2).default(2),
@@ -4839,7 +4847,7 @@ var sod123fl = (raw_params) => {
4839
4847
  const parameters = sod123FL_def.parse(raw_params);
4840
4848
  const silkscreenRefText = silkscreenRef(
4841
4849
  0,
4842
- length27.parse(parameters.h),
4850
+ length33.parse(parameters.h),
4843
4851
  0.3
4844
4852
  );
4845
4853
  const silkscreenLine = {
@@ -4848,20 +4856,20 @@ var sod123fl = (raw_params) => {
4848
4856
  pcb_component_id: "",
4849
4857
  route: [
4850
4858
  {
4851
- x: length27.parse(parameters.p) / 2,
4852
- y: length27.parse(parameters.h) / 2
4859
+ x: length33.parse(parameters.p) / 2,
4860
+ y: length33.parse(parameters.h) / 2
4853
4861
  },
4854
4862
  {
4855
- x: -length27.parse(parameters.w) / 2 - 0.2,
4856
- y: length27.parse(parameters.h) / 2
4863
+ x: -length33.parse(parameters.w) / 2 - 0.2,
4864
+ y: length33.parse(parameters.h) / 2
4857
4865
  },
4858
4866
  {
4859
- x: -length27.parse(parameters.w) / 2 - 0.2,
4860
- y: -length27.parse(parameters.h) / 2
4867
+ x: -length33.parse(parameters.w) / 2 - 0.2,
4868
+ y: -length33.parse(parameters.h) / 2
4861
4869
  },
4862
4870
  {
4863
- x: length27.parse(parameters.p) / 2,
4864
- y: -length27.parse(parameters.h) / 2
4871
+ x: length33.parse(parameters.p) / 2,
4872
+ y: -length33.parse(parameters.h) / 2
4865
4873
  }
4866
4874
  ],
4867
4875
  stroke_width: 0.1,
@@ -4905,7 +4913,7 @@ var sodWithoutParsing9 = (parameters) => {
4905
4913
 
4906
4914
  // src/fn/sod723.ts
4907
4915
  import { z as z43 } from "zod";
4908
- import { length as length28 } from "circuit-json";
4916
+ import { length as length34 } from "circuit-json";
4909
4917
  var sod_def9 = base_def.extend({
4910
4918
  fn: z43.string(),
4911
4919
  num_pins: z43.literal(2).default(2),
@@ -4919,7 +4927,7 @@ var sod723 = (raw_params) => {
4919
4927
  const parameters = sod_def9.parse(raw_params);
4920
4928
  const silkscreenRefText = silkscreenRef(
4921
4929
  0,
4922
- length28.parse(parameters.h),
4930
+ length34.parse(parameters.h),
4923
4931
  0.3
4924
4932
  );
4925
4933
  const silkscreenLine = {
@@ -4928,20 +4936,20 @@ var sod723 = (raw_params) => {
4928
4936
  pcb_component_id: "",
4929
4937
  route: [
4930
4938
  {
4931
- x: length28.parse(parameters.p) / 2,
4932
- y: length28.parse(parameters.h) / 2
4939
+ x: length34.parse(parameters.p) / 2,
4940
+ y: length34.parse(parameters.h) / 2
4933
4941
  },
4934
4942
  {
4935
- x: -length28.parse(parameters.w) / 2 - 0.1,
4936
- y: length28.parse(parameters.h) / 2
4943
+ x: -length34.parse(parameters.w) / 2 - 0.1,
4944
+ y: length34.parse(parameters.h) / 2
4937
4945
  },
4938
4946
  {
4939
- x: -length28.parse(parameters.w) / 2 - 0.1,
4940
- y: -length28.parse(parameters.h) / 2
4947
+ x: -length34.parse(parameters.w) / 2 - 0.1,
4948
+ y: -length34.parse(parameters.h) / 2
4941
4949
  },
4942
4950
  {
4943
- x: length28.parse(parameters.p) / 2,
4944
- y: -length28.parse(parameters.h) / 2
4951
+ x: length34.parse(parameters.p) / 2,
4952
+ y: -length34.parse(parameters.h) / 2
4945
4953
  }
4946
4954
  ],
4947
4955
  stroke_width: 0.1,
@@ -4985,7 +4993,7 @@ var sodWithoutParsing10 = (parameters) => {
4985
4993
 
4986
4994
  // src/fn/sod128.ts
4987
4995
  import { z as z44 } from "zod";
4988
- import { length as length29 } from "circuit-json";
4996
+ import { length as length35 } from "circuit-json";
4989
4997
  var sod_def10 = base_def.extend({
4990
4998
  fn: z44.string(),
4991
4999
  num_pins: z44.literal(2).default(2),
@@ -4999,7 +5007,7 @@ var sod128 = (raw_params) => {
4999
5007
  const parameters = sod_def10.parse(raw_params);
5000
5008
  const silkscreenRefText = silkscreenRef(
5001
5009
  0,
5002
- length29.parse(parameters.h) / 2 + 0.4,
5010
+ length35.parse(parameters.h) / 2 + 0.4,
5003
5011
  0.3
5004
5012
  );
5005
5013
  const silkscreenLine = {
@@ -5008,20 +5016,20 @@ var sod128 = (raw_params) => {
5008
5016
  pcb_component_id: "",
5009
5017
  route: [
5010
5018
  {
5011
- x: length29.parse(parameters.p) / 2,
5012
- y: length29.parse(parameters.h) / 2
5019
+ x: length35.parse(parameters.p) / 2,
5020
+ y: length35.parse(parameters.h) / 2
5013
5021
  },
5014
5022
  {
5015
- x: -length29.parse(parameters.w) / 2 - 0.2,
5016
- y: length29.parse(parameters.h) / 2
5023
+ x: -length35.parse(parameters.w) / 2 - 0.2,
5024
+ y: length35.parse(parameters.h) / 2
5017
5025
  },
5018
5026
  {
5019
- x: -length29.parse(parameters.w) / 2 - 0.2,
5020
- y: -length29.parse(parameters.h) / 2
5027
+ x: -length35.parse(parameters.w) / 2 - 0.2,
5028
+ y: -length35.parse(parameters.h) / 2
5021
5029
  },
5022
5030
  {
5023
- x: length29.parse(parameters.p) / 2,
5024
- y: -length29.parse(parameters.h) / 2
5031
+ x: length35.parse(parameters.p) / 2,
5032
+ y: -length35.parse(parameters.h) / 2
5025
5033
  }
5026
5034
  ],
5027
5035
  stroke_width: 0.1,
@@ -5079,14 +5087,14 @@ var sot89_3 = (parameters) => {
5079
5087
  const pads = [];
5080
5088
  const padGap = Number.parseFloat(parameters.p);
5081
5089
  const padWidth = Number.parseFloat(parameters.pw);
5082
- const length52 = Number.parseFloat(parameters.w);
5090
+ const length58 = Number.parseFloat(parameters.w);
5083
5091
  const padHeight = Number.parseFloat(parameters.pl);
5084
5092
  const centerExtra = 0.175;
5085
5093
  const outerPadXShift = (padHeight - (padHeight + centerExtra)) / 2;
5086
5094
  pads.push(
5087
- rectpad(1, -length52 / 2 + outerPadXShift, padGap, padHeight, padWidth),
5088
- rectpad(2, -length52 / 2, 0, padHeight + centerExtra, padWidth),
5089
- rectpad(3, -length52 / 2 + outerPadXShift, -padGap, padHeight, padWidth)
5095
+ rectpad(1, -length58 / 2 + outerPadXShift, padGap, padHeight, padWidth),
5096
+ rectpad(2, -length58 / 2, 0, padHeight + centerExtra, padWidth),
5097
+ rectpad(3, -length58 / 2 + outerPadXShift, -padGap, padHeight, padWidth)
5090
5098
  );
5091
5099
  const silkscreenRefText = silkscreenRef(0, 0, 0.3);
5092
5100
  const width = Number.parseFloat(parameters.w) / 2 - 1;
@@ -5126,7 +5134,7 @@ var sot89_5 = (parameters) => {
5126
5134
  const pads = [];
5127
5135
  const padGap = Number.parseFloat(parameters.p);
5128
5136
  const padWidth = Number.parseFloat(parameters.pw);
5129
- const length52 = Number.parseFloat(parameters.w);
5137
+ const length58 = Number.parseFloat(parameters.w);
5130
5138
  pads.push(
5131
5139
  rectpad(1, -1.85, -1.5, 1.5, 0.7),
5132
5140
  rectpad(2, -1.85, 1.5, 1.5, 0.7),
@@ -5194,16 +5202,16 @@ var sot89 = (raw_params) => {
5194
5202
 
5195
5203
  // src/fn/to220.ts
5196
5204
  import {
5197
- length as length30
5205
+ length as length36
5198
5206
  } from "circuit-json";
5199
5207
  import { z as z46 } from "zod";
5200
5208
  var to220_def = base_def.extend({
5201
5209
  fn: z46.string(),
5202
- p: length30.optional().default("5.0mm"),
5203
- id: length30.optional().default("1.0mm"),
5204
- od: length30.optional().default("1.9mm"),
5205
- w: length30.optional().default("13mm"),
5206
- h: length30.optional().default("7mm"),
5210
+ p: length36.optional().default("5.0mm"),
5211
+ id: length36.optional().default("1.0mm"),
5212
+ od: length36.optional().default("1.9mm"),
5213
+ w: length36.optional().default("13mm"),
5214
+ h: length36.optional().default("7mm"),
5207
5215
  num_pins: z46.number().optional(),
5208
5216
  string: z46.string().optional()
5209
5217
  });
@@ -5286,7 +5294,7 @@ var to220 = (raw_params) => {
5286
5294
 
5287
5295
  // src/fn/minimelf.ts
5288
5296
  import { z as z47 } from "zod";
5289
- import { length as length31 } from "circuit-json";
5297
+ import { length as length37 } from "circuit-json";
5290
5298
  var minimelf_def = base_def.extend({
5291
5299
  fn: z47.string(),
5292
5300
  num_pins: z47.literal(2).default(2),
@@ -5300,7 +5308,7 @@ var minimelf = (raw_params) => {
5300
5308
  const parameters = minimelf_def.parse(raw_params);
5301
5309
  const silkscreenRefText = silkscreenRef(
5302
5310
  0,
5303
- length31.parse(parameters.h) / 2 + 0.4,
5311
+ length37.parse(parameters.h) / 2 + 0.4,
5304
5312
  0.3
5305
5313
  );
5306
5314
  const silkscreenLine = {
@@ -5309,20 +5317,20 @@ var minimelf = (raw_params) => {
5309
5317
  pcb_component_id: "",
5310
5318
  route: [
5311
5319
  {
5312
- x: length31.parse(parameters.p) / 2,
5313
- y: length31.parse(parameters.h) / 2
5320
+ x: length37.parse(parameters.p) / 2,
5321
+ y: length37.parse(parameters.h) / 2
5314
5322
  },
5315
5323
  {
5316
- x: -length31.parse(parameters.w) / 2,
5317
- y: length31.parse(parameters.h) / 2
5324
+ x: -length37.parse(parameters.w) / 2,
5325
+ y: length37.parse(parameters.h) / 2
5318
5326
  },
5319
5327
  {
5320
- x: -length31.parse(parameters.w) / 2,
5321
- y: -length31.parse(parameters.h) / 2
5328
+ x: -length37.parse(parameters.w) / 2,
5329
+ y: -length37.parse(parameters.h) / 2
5322
5330
  },
5323
5331
  {
5324
- x: length31.parse(parameters.p) / 2,
5325
- y: -length31.parse(parameters.h) / 2
5332
+ x: length37.parse(parameters.p) / 2,
5333
+ y: -length37.parse(parameters.h) / 2
5326
5334
  }
5327
5335
  ],
5328
5336
  stroke_width: 0.1,
@@ -5362,7 +5370,7 @@ var miniMelfWithoutParsing = (parameters) => {
5362
5370
 
5363
5371
  // src/fn/sod882d.ts
5364
5372
  import { z as z48 } from "zod";
5365
- import { length as length32 } from "circuit-json";
5373
+ import { length as length38 } from "circuit-json";
5366
5374
  var sod_def11 = base_def.extend({
5367
5375
  fn: z48.string(),
5368
5376
  num_pins: z48.literal(2).default(2),
@@ -5376,7 +5384,7 @@ var sod882d = (raw_params) => {
5376
5384
  const parameters = sod_def11.parse(raw_params);
5377
5385
  const silkscreenRefText = silkscreenRef(
5378
5386
  0,
5379
- length32.parse(parameters.h) + 0.1,
5387
+ length38.parse(parameters.h) + 0.1,
5380
5388
  0.3
5381
5389
  );
5382
5390
  const silkscreenLine = {
@@ -5385,20 +5393,20 @@ var sod882d = (raw_params) => {
5385
5393
  pcb_component_id: "",
5386
5394
  route: [
5387
5395
  {
5388
- x: length32.parse(parameters.p) / 2 + 0.1,
5389
- y: length32.parse(parameters.h) / 2
5396
+ x: length38.parse(parameters.p) / 2 + 0.1,
5397
+ y: length38.parse(parameters.h) / 2
5390
5398
  },
5391
5399
  {
5392
- x: -length32.parse(parameters.w) / 2,
5393
- y: length32.parse(parameters.h) / 2
5400
+ x: -length38.parse(parameters.w) / 2,
5401
+ y: length38.parse(parameters.h) / 2
5394
5402
  },
5395
5403
  {
5396
- x: -length32.parse(parameters.w) / 2,
5397
- y: -length32.parse(parameters.h) / 2
5404
+ x: -length38.parse(parameters.w) / 2,
5405
+ y: -length38.parse(parameters.h) / 2
5398
5406
  },
5399
5407
  {
5400
- x: length32.parse(parameters.p) / 2 + 0.1,
5401
- y: -length32.parse(parameters.h) / 2
5408
+ x: length38.parse(parameters.p) / 2 + 0.1,
5409
+ y: -length38.parse(parameters.h) / 2
5402
5410
  }
5403
5411
  ],
5404
5412
  stroke_width: 0.1,
@@ -5442,7 +5450,7 @@ var sodWithoutParsing12 = (parameters) => {
5442
5450
 
5443
5451
  // src/fn/melf.ts
5444
5452
  import { z as z49 } from "zod";
5445
- import { length as length33 } from "circuit-json";
5453
+ import { length as length39 } from "circuit-json";
5446
5454
  var melf_def = base_def.extend({
5447
5455
  fn: z49.string(),
5448
5456
  num_pins: z49.literal(2).default(2),
@@ -5456,7 +5464,7 @@ var melf = (raw_params) => {
5456
5464
  const parameters = melf_def.parse(raw_params);
5457
5465
  const silkscreenRefText = silkscreenRef(
5458
5466
  0,
5459
- length33.parse(parameters.h),
5467
+ length39.parse(parameters.h),
5460
5468
  0.3
5461
5469
  );
5462
5470
  const silkscreenLine = {
@@ -5465,20 +5473,20 @@ var melf = (raw_params) => {
5465
5473
  pcb_component_id: "",
5466
5474
  route: [
5467
5475
  {
5468
- x: length33.parse(parameters.p) / 2,
5469
- y: length33.parse(parameters.h) / 2
5476
+ x: length39.parse(parameters.p) / 2,
5477
+ y: length39.parse(parameters.h) / 2
5470
5478
  },
5471
5479
  {
5472
- x: -length33.parse(parameters.w) / 2,
5473
- y: length33.parse(parameters.h) / 2
5480
+ x: -length39.parse(parameters.w) / 2,
5481
+ y: length39.parse(parameters.h) / 2
5474
5482
  },
5475
5483
  {
5476
- x: -length33.parse(parameters.w) / 2,
5477
- y: -length33.parse(parameters.h) / 2
5484
+ x: -length39.parse(parameters.w) / 2,
5485
+ y: -length39.parse(parameters.h) / 2
5478
5486
  },
5479
5487
  {
5480
- x: length33.parse(parameters.p) / 2,
5481
- y: -length33.parse(parameters.h) / 2
5488
+ x: length39.parse(parameters.p) / 2,
5489
+ y: -length39.parse(parameters.h) / 2
5482
5490
  }
5483
5491
  ],
5484
5492
  stroke_width: 0.1,
@@ -5522,7 +5530,7 @@ var melfWithoutParsing = (parameters) => {
5522
5530
 
5523
5531
  // src/fn/micromelf.ts
5524
5532
  import { z as z50 } from "zod";
5525
- import { length as length34 } from "circuit-json";
5533
+ import { length as length40 } from "circuit-json";
5526
5534
  var micromelf_def = base_def.extend({
5527
5535
  fn: z50.string(),
5528
5536
  num_pins: z50.literal(2).default(2),
@@ -5536,7 +5544,7 @@ var micromelf = (raw_params) => {
5536
5544
  const parameters = micromelf_def.parse(raw_params);
5537
5545
  const silkscreenRefText = silkscreenRef(
5538
5546
  0,
5539
- length34.parse(parameters.h),
5547
+ length40.parse(parameters.h),
5540
5548
  0.3
5541
5549
  );
5542
5550
  const silkscreenLine = {
@@ -5545,20 +5553,20 @@ var micromelf = (raw_params) => {
5545
5553
  pcb_component_id: "",
5546
5554
  route: [
5547
5555
  {
5548
- x: length34.parse(parameters.p) / 2,
5549
- y: length34.parse(parameters.h) / 2
5556
+ x: length40.parse(parameters.p) / 2,
5557
+ y: length40.parse(parameters.h) / 2
5550
5558
  },
5551
5559
  {
5552
- x: -length34.parse(parameters.w) / 2 - 0.1,
5553
- y: length34.parse(parameters.h) / 2
5560
+ x: -length40.parse(parameters.w) / 2 - 0.1,
5561
+ y: length40.parse(parameters.h) / 2
5554
5562
  },
5555
5563
  {
5556
- x: -length34.parse(parameters.w) / 2 - 0.1,
5557
- y: -length34.parse(parameters.h) / 2
5564
+ x: -length40.parse(parameters.w) / 2 - 0.1,
5565
+ y: -length40.parse(parameters.h) / 2
5558
5566
  },
5559
5567
  {
5560
- x: length34.parse(parameters.p) / 2,
5561
- y: -length34.parse(parameters.h) / 2
5568
+ x: length40.parse(parameters.p) / 2,
5569
+ y: -length40.parse(parameters.h) / 2
5562
5570
  }
5563
5571
  ],
5564
5572
  stroke_width: 0.1,
@@ -5602,7 +5610,7 @@ var microMelfWithoutParsing = (parameters) => {
5602
5610
 
5603
5611
  // src/fn/sma.ts
5604
5612
  import { z as z51 } from "zod";
5605
- import { length as length35 } from "circuit-json";
5613
+ import { length as length41 } from "circuit-json";
5606
5614
  var sma_def = base_def.extend({
5607
5615
  fn: z51.string(),
5608
5616
  num_pins: z51.literal(2).default(2),
@@ -5616,7 +5624,7 @@ var sma = (raw_params) => {
5616
5624
  const parameters = sma_def.parse(raw_params);
5617
5625
  const silkscreenRefText = silkscreenRef(
5618
5626
  0,
5619
- length35.parse(parameters.h) / 2 + 0.5,
5627
+ length41.parse(parameters.h) / 2 + 0.5,
5620
5628
  0.3
5621
5629
  );
5622
5630
  const silkscreenLine = {
@@ -5625,20 +5633,20 @@ var sma = (raw_params) => {
5625
5633
  pcb_component_id: "",
5626
5634
  route: [
5627
5635
  {
5628
- x: length35.parse(parameters.p) / 2,
5629
- y: length35.parse(parameters.h) / 2
5636
+ x: length41.parse(parameters.p) / 2,
5637
+ y: length41.parse(parameters.h) / 2
5630
5638
  },
5631
5639
  {
5632
- x: -length35.parse(parameters.w) / 2 - 0.5,
5633
- y: length35.parse(parameters.h) / 2
5640
+ x: -length41.parse(parameters.w) / 2 - 0.5,
5641
+ y: length41.parse(parameters.h) / 2
5634
5642
  },
5635
5643
  {
5636
- x: -length35.parse(parameters.w) / 2 - 0.5,
5637
- y: -length35.parse(parameters.h) / 2
5644
+ x: -length41.parse(parameters.w) / 2 - 0.5,
5645
+ y: -length41.parse(parameters.h) / 2
5638
5646
  },
5639
5647
  {
5640
- x: length35.parse(parameters.p) / 2,
5641
- y: -length35.parse(parameters.h) / 2
5648
+ x: length41.parse(parameters.p) / 2,
5649
+ y: -length41.parse(parameters.h) / 2
5642
5650
  }
5643
5651
  ],
5644
5652
  stroke_width: 0.1,
@@ -5681,7 +5689,7 @@ var smaWithoutParsing = (parameters) => {
5681
5689
 
5682
5690
  // src/fn/smf.ts
5683
5691
  import { z as z52 } from "zod";
5684
- import { length as length36 } from "circuit-json";
5692
+ import { length as length42 } from "circuit-json";
5685
5693
  var smf_def = base_def.extend({
5686
5694
  fn: z52.string(),
5687
5695
  num_pins: z52.literal(2).default(2),
@@ -5695,7 +5703,7 @@ var smf = (raw_params) => {
5695
5703
  const parameters = smf_def.parse(raw_params);
5696
5704
  const silkscreenRefText = silkscreenRef(
5697
5705
  0,
5698
- length36.parse(parameters.h) - 0.5,
5706
+ length42.parse(parameters.h) - 0.5,
5699
5707
  0.3
5700
5708
  );
5701
5709
  const silkscreenLine = {
@@ -5704,20 +5712,20 @@ var smf = (raw_params) => {
5704
5712
  pcb_component_id: "",
5705
5713
  route: [
5706
5714
  {
5707
- x: length36.parse(parameters.p) / 2,
5708
- y: length36.parse(parameters.h) / 2
5715
+ x: length42.parse(parameters.p) / 2,
5716
+ y: length42.parse(parameters.h) / 2
5709
5717
  },
5710
5718
  {
5711
- x: -length36.parse(parameters.w) / 2,
5712
- y: length36.parse(parameters.h) / 2
5719
+ x: -length42.parse(parameters.w) / 2,
5720
+ y: length42.parse(parameters.h) / 2
5713
5721
  },
5714
5722
  {
5715
- x: -length36.parse(parameters.w) / 2,
5716
- y: -length36.parse(parameters.h) / 2
5723
+ x: -length42.parse(parameters.w) / 2,
5724
+ y: -length42.parse(parameters.h) / 2
5717
5725
  },
5718
5726
  {
5719
- x: length36.parse(parameters.p) / 2,
5720
- y: -length36.parse(parameters.h) / 2
5727
+ x: length42.parse(parameters.p) / 2,
5728
+ y: -length42.parse(parameters.h) / 2
5721
5729
  }
5722
5730
  ],
5723
5731
  stroke_width: 0.1,
@@ -5761,7 +5769,7 @@ var smfWithoutParsing = (parameters) => {
5761
5769
 
5762
5770
  // src/fn/smb.ts
5763
5771
  import { z as z53 } from "zod";
5764
- import { length as length37 } from "circuit-json";
5772
+ import { length as length43 } from "circuit-json";
5765
5773
  var smb_def = base_def.extend({
5766
5774
  fn: z53.string(),
5767
5775
  num_pins: z53.literal(2).default(2),
@@ -5775,7 +5783,7 @@ var smb = (raw_params) => {
5775
5783
  const parameters = smb_def.parse(raw_params);
5776
5784
  const silkscreenRefText = silkscreenRef(
5777
5785
  0,
5778
- length37.parse(parameters.h) / 2 + 0.5,
5786
+ length43.parse(parameters.h) / 2 + 0.5,
5779
5787
  0.3
5780
5788
  );
5781
5789
  const silkscreenLine = {
@@ -5784,20 +5792,20 @@ var smb = (raw_params) => {
5784
5792
  pcb_component_id: "",
5785
5793
  route: [
5786
5794
  {
5787
- x: length37.parse(parameters.p) / 2,
5788
- y: length37.parse(parameters.h) / 2
5795
+ x: length43.parse(parameters.p) / 2,
5796
+ y: length43.parse(parameters.h) / 2
5789
5797
  },
5790
5798
  {
5791
- x: -length37.parse(parameters.w) / 2 - 0.1,
5792
- y: length37.parse(parameters.h) / 2
5799
+ x: -length43.parse(parameters.w) / 2 - 0.1,
5800
+ y: length43.parse(parameters.h) / 2
5793
5801
  },
5794
5802
  {
5795
- x: -length37.parse(parameters.w) / 2 - 0.1,
5796
- y: -length37.parse(parameters.h) / 2
5803
+ x: -length43.parse(parameters.w) / 2 - 0.1,
5804
+ y: -length43.parse(parameters.h) / 2
5797
5805
  },
5798
5806
  {
5799
- x: length37.parse(parameters.p) / 2,
5800
- y: -length37.parse(parameters.h) / 2
5807
+ x: length43.parse(parameters.p) / 2,
5808
+ y: -length43.parse(parameters.h) / 2
5801
5809
  }
5802
5810
  ],
5803
5811
  stroke_width: 0.1,
@@ -5841,7 +5849,7 @@ var smbWithoutParsing = (parameters) => {
5841
5849
 
5842
5850
  // src/fn/smc.ts
5843
5851
  import { z as z54 } from "zod";
5844
- import { length as length38 } from "circuit-json";
5852
+ import { length as length44 } from "circuit-json";
5845
5853
  var smc_def = base_def.extend({
5846
5854
  fn: z54.string(),
5847
5855
  num_pins: z54.literal(2).default(2),
@@ -5860,20 +5868,20 @@ var smc = (raw_params) => {
5860
5868
  pcb_component_id: "",
5861
5869
  route: [
5862
5870
  {
5863
- x: length38.parse(parameters.p) / 2,
5864
- y: length38.parse(parameters.h) / 2 - 0.8
5871
+ x: length44.parse(parameters.p) / 2,
5872
+ y: length44.parse(parameters.h) / 2 - 0.8
5865
5873
  },
5866
5874
  {
5867
- x: -length38.parse(parameters.w) / 2 - 0.8,
5868
- y: length38.parse(parameters.h) / 2 - 0.8
5875
+ x: -length44.parse(parameters.w) / 2 - 0.8,
5876
+ y: length44.parse(parameters.h) / 2 - 0.8
5869
5877
  },
5870
5878
  {
5871
- x: -length38.parse(parameters.w) / 2 - 0.8,
5872
- y: -length38.parse(parameters.h) / 2 + 0.8
5879
+ x: -length44.parse(parameters.w) / 2 - 0.8,
5880
+ y: -length44.parse(parameters.h) / 2 + 0.8
5873
5881
  },
5874
5882
  {
5875
- x: length38.parse(parameters.p) / 2,
5876
- y: -length38.parse(parameters.h) / 2 + 0.8
5883
+ x: length44.parse(parameters.p) / 2,
5884
+ y: -length44.parse(parameters.h) / 2 + 0.8
5877
5885
  }
5878
5886
  ],
5879
5887
  stroke_width: 0.1,
@@ -6343,17 +6351,17 @@ var to92s = (raw_params) => {
6343
6351
 
6344
6352
  // src/fn/jst.ts
6345
6353
  import {
6346
- length as length39
6354
+ length as length45
6347
6355
  } from "circuit-json";
6348
6356
  import { z as z58 } from "zod";
6349
6357
  var jst_def = base_def.extend({
6350
6358
  fn: z58.string(),
6351
- p: length39.optional(),
6352
- id: length39.optional(),
6353
- pw: length39.optional(),
6354
- pl: length39.optional(),
6355
- w: length39.optional(),
6356
- h: length39.optional(),
6359
+ p: length45.optional(),
6360
+ id: length45.optional(),
6361
+ pw: length45.optional(),
6362
+ pl: length45.optional(),
6363
+ w: length45.optional(),
6364
+ h: length45.optional(),
6357
6365
  sh: z58.union([z58.boolean(), z58.string(), z58.number()]).optional().transform((v) => {
6358
6366
  if (typeof v === "string") {
6359
6367
  const n = Number(v);
@@ -6370,19 +6378,19 @@ var jst_def = base_def.extend({
6370
6378
  });
6371
6379
  var variantDefaults = {
6372
6380
  ph: {
6373
- p: length39.parse("2.2mm"),
6374
- id: length39.parse("0.70mm"),
6375
- pw: length39.parse("1.20mm"),
6376
- pl: length39.parse("1.20mm"),
6377
- w: length39.parse("6mm"),
6378
- h: length39.parse("5mm")
6381
+ p: length45.parse("2.2mm"),
6382
+ id: length45.parse("0.70mm"),
6383
+ pw: length45.parse("1.20mm"),
6384
+ pl: length45.parse("1.20mm"),
6385
+ w: length45.parse("6mm"),
6386
+ h: length45.parse("5mm")
6379
6387
  },
6380
6388
  sh: {
6381
- p: length39.parse("1mm"),
6382
- pw: length39.parse("0.6mm"),
6383
- pl: length39.parse("1.55mm"),
6384
- w: length39.parse("5.8mm"),
6385
- h: length39.parse("7.8mm")
6389
+ p: length45.parse("1mm"),
6390
+ pw: length45.parse("0.6mm"),
6391
+ pl: length45.parse("1.55mm"),
6392
+ w: length45.parse("5.8mm"),
6393
+ h: length45.parse("7.8mm")
6386
6394
  }
6387
6395
  };
6388
6396
  function getVariant(params) {
@@ -6500,7 +6508,7 @@ var jst = (raw_params) => {
6500
6508
 
6501
6509
  // src/fn/sod110.ts
6502
6510
  import { z as z59 } from "zod";
6503
- import { length as length40 } from "circuit-json";
6511
+ import { length as length46 } from "circuit-json";
6504
6512
  var sod_def12 = base_def.extend({
6505
6513
  fn: z59.string(),
6506
6514
  num_pins: z59.literal(2).default(2),
@@ -6514,7 +6522,7 @@ var sod110 = (raw_params) => {
6514
6522
  const parameters = sod_def12.parse(raw_params);
6515
6523
  const silkscreenRefText = silkscreenRef(
6516
6524
  0,
6517
- length40.parse(parameters.h) / 2 + 0.5,
6525
+ length46.parse(parameters.h) / 2 + 0.5,
6518
6526
  0.3
6519
6527
  );
6520
6528
  const silkscreenLine = {
@@ -6523,20 +6531,20 @@ var sod110 = (raw_params) => {
6523
6531
  pcb_component_id: "",
6524
6532
  route: [
6525
6533
  {
6526
- x: length40.parse(parameters.p) / 2,
6527
- y: length40.parse(parameters.h) / 2
6534
+ x: length46.parse(parameters.p) / 2,
6535
+ y: length46.parse(parameters.h) / 2
6528
6536
  },
6529
6537
  {
6530
- x: -length40.parse(parameters.w) / 2,
6531
- y: length40.parse(parameters.h) / 2
6538
+ x: -length46.parse(parameters.w) / 2,
6539
+ y: length46.parse(parameters.h) / 2
6532
6540
  },
6533
6541
  {
6534
- x: -length40.parse(parameters.w) / 2,
6535
- y: -length40.parse(parameters.h) / 2
6542
+ x: -length46.parse(parameters.w) / 2,
6543
+ y: -length46.parse(parameters.h) / 2
6536
6544
  },
6537
6545
  {
6538
- x: length40.parse(parameters.p) / 2,
6539
- y: -length40.parse(parameters.h) / 2
6546
+ x: length46.parse(parameters.p) / 2,
6547
+ y: -length46.parse(parameters.h) / 2
6540
6548
  }
6541
6549
  ],
6542
6550
  stroke_width: 0.1,
@@ -6579,7 +6587,7 @@ var sodWithoutParsing13 = (parameters) => {
6579
6587
 
6580
6588
  // src/fn/vssop.ts
6581
6589
  import { z as z60 } from "zod";
6582
- import { length as length41 } from "circuit-json";
6590
+ import { length as length47 } from "circuit-json";
6583
6591
  var getDefaultValues = (num_pins) => {
6584
6592
  switch (num_pins) {
6585
6593
  case 8:
@@ -6621,11 +6629,11 @@ var vssop_def = base_def.extend({
6621
6629
  var vssop = (raw_params) => {
6622
6630
  const parameters = vssop_def.parse(raw_params);
6623
6631
  const defaults = getDefaultValues(parameters.num_pins);
6624
- const w = length41.parse(parameters.w || defaults.w);
6625
- const h = length41.parse(parameters.h || defaults.h);
6626
- const p = length41.parse(parameters.p || defaults.p);
6627
- const pl = length41.parse(parameters.pl || defaults.pl);
6628
- const pw = length41.parse(parameters.pw || defaults.pw);
6632
+ const w = length47.parse(parameters.w || defaults.w);
6633
+ const h = length47.parse(parameters.h || defaults.h);
6634
+ const p = length47.parse(parameters.p || defaults.p);
6635
+ const pl = length47.parse(parameters.pl || defaults.pl);
6636
+ const pw = length47.parse(parameters.pw || defaults.pw);
6629
6637
  const pads = [];
6630
6638
  const half = parameters.num_pins / 2;
6631
6639
  for (let i = 0; i < parameters.num_pins; i++) {
@@ -6702,14 +6710,14 @@ var getVssopPadCoord = (pinCount, pn, w, p) => {
6702
6710
  const col = pn <= half ? -1 : 1;
6703
6711
  const row = (half - 1) / 2 - rowIndex;
6704
6712
  return {
6705
- x: col * length41.parse(pinCount === 8 ? "1.8mm" : "2.2mm"),
6713
+ x: col * length47.parse(pinCount === 8 ? "1.8mm" : "2.2mm"),
6706
6714
  y: row * p
6707
6715
  };
6708
6716
  };
6709
6717
 
6710
6718
  // src/fn/msop.ts
6711
6719
  import { z as z61 } from "zod";
6712
- import { length as length42 } from "circuit-json";
6720
+ import { length as length48 } from "circuit-json";
6713
6721
  var getDefaultValues2 = (num_pins) => {
6714
6722
  switch (num_pins) {
6715
6723
  case 10:
@@ -6762,18 +6770,18 @@ var getMsopCoords = (pinCount, pn, w, p) => {
6762
6770
  const col = pn <= half ? -1 : 1;
6763
6771
  const row = (half - 1) / 2 - rowIndex;
6764
6772
  return {
6765
- x: col * length42.parse("2mm"),
6773
+ x: col * length48.parse("2mm"),
6766
6774
  y: row * p
6767
6775
  };
6768
6776
  };
6769
6777
  var msop = (raw_params) => {
6770
6778
  const parameters = msop_def.parse(raw_params);
6771
6779
  const defaults = getDefaultValues2(parameters.num_pins);
6772
- const w = length42.parse(parameters.w || defaults.w);
6773
- const h = length42.parse(parameters.h || defaults.h);
6774
- const p = length42.parse(parameters.p || defaults.p);
6775
- const pl = length42.parse(parameters.pl || defaults.pl);
6776
- const pw = length42.parse(parameters.pw || defaults.pw);
6780
+ const w = length48.parse(parameters.w || defaults.w);
6781
+ const h = length48.parse(parameters.h || defaults.h);
6782
+ const p = length48.parse(parameters.p || defaults.p);
6783
+ const pl = length48.parse(parameters.pl || defaults.pl);
6784
+ const pw = length48.parse(parameters.pw || defaults.pw);
6777
6785
  const pads = [];
6778
6786
  for (let i = 0; i < parameters.num_pins; i++) {
6779
6787
  const { x, y } = getMsopCoords(parameters.num_pins, i + 1, w, p);
@@ -6845,7 +6853,7 @@ var msop = (raw_params) => {
6845
6853
 
6846
6854
  // src/fn/sod323w.ts
6847
6855
  import { z as z62 } from "zod";
6848
- import { length as length43 } from "circuit-json";
6856
+ import { length as length49 } from "circuit-json";
6849
6857
  var sod323w_def = base_def.extend({
6850
6858
  fn: z62.string(),
6851
6859
  num_pins: z62.literal(2).default(2),
@@ -6859,7 +6867,7 @@ var sod323w = (raw_params) => {
6859
6867
  const parameters = sod323w_def.parse(raw_params);
6860
6868
  const silkscreenRefText = silkscreenRef(
6861
6869
  0,
6862
- length43.parse(parameters.h),
6870
+ length49.parse(parameters.h),
6863
6871
  0.3
6864
6872
  );
6865
6873
  const silkscreenLine = {
@@ -6868,20 +6876,20 @@ var sod323w = (raw_params) => {
6868
6876
  pcb_component_id: "",
6869
6877
  route: [
6870
6878
  {
6871
- x: length43.parse(parameters.pad_spacing) / 2,
6872
- y: length43.parse(parameters.h) / 2
6879
+ x: length49.parse(parameters.pad_spacing) / 2,
6880
+ y: length49.parse(parameters.h) / 2
6873
6881
  },
6874
6882
  {
6875
- x: -length43.parse(parameters.w) / 2 - 0.2,
6876
- y: length43.parse(parameters.h) / 2
6883
+ x: -length49.parse(parameters.w) / 2 - 0.2,
6884
+ y: length49.parse(parameters.h) / 2
6877
6885
  },
6878
6886
  {
6879
- x: -length43.parse(parameters.w) / 2 - 0.2,
6880
- y: -length43.parse(parameters.h) / 2
6887
+ x: -length49.parse(parameters.w) / 2 - 0.2,
6888
+ y: -length49.parse(parameters.h) / 2
6881
6889
  },
6882
6890
  {
6883
- x: length43.parse(parameters.pad_spacing) / 2,
6884
- y: -length43.parse(parameters.h) / 2
6891
+ x: length49.parse(parameters.pad_spacing) / 2,
6892
+ y: -length49.parse(parameters.h) / 2
6885
6893
  }
6886
6894
  ],
6887
6895
  stroke_width: 0.1,
@@ -6925,7 +6933,7 @@ var sodWithoutParsing14 = (parameters) => {
6925
6933
 
6926
6934
  // src/fn/sod323fl.ts
6927
6935
  import { z as z63 } from "zod";
6928
- import { length as length44 } from "circuit-json";
6936
+ import { length as length50 } from "circuit-json";
6929
6937
  var sod323FL_def = base_def.extend({
6930
6938
  fn: z63.string(),
6931
6939
  num_pins: z63.literal(2).default(2),
@@ -6939,7 +6947,7 @@ var sod323fl = (raw_params) => {
6939
6947
  const parameters = sod323FL_def.parse(raw_params);
6940
6948
  const silkscreenRefText = silkscreenRef(
6941
6949
  0,
6942
- length44.parse(parameters.h),
6950
+ length50.parse(parameters.h),
6943
6951
  0.3
6944
6952
  );
6945
6953
  const silkscreenLine = {
@@ -6948,20 +6956,20 @@ var sod323fl = (raw_params) => {
6948
6956
  pcb_component_id: "",
6949
6957
  route: [
6950
6958
  {
6951
- x: length44.parse(parameters.pad_spacing) / 2,
6952
- y: length44.parse(parameters.h) / 2
6959
+ x: length50.parse(parameters.pad_spacing) / 2,
6960
+ y: length50.parse(parameters.h) / 2
6953
6961
  },
6954
6962
  {
6955
- x: -length44.parse(parameters.w) / 2 - 0.2,
6956
- y: length44.parse(parameters.h) / 2
6963
+ x: -length50.parse(parameters.w) / 2 - 0.2,
6964
+ y: length50.parse(parameters.h) / 2
6957
6965
  },
6958
6966
  {
6959
- x: -length44.parse(parameters.w) / 2 - 0.2,
6960
- y: -length44.parse(parameters.h) / 2
6967
+ x: -length50.parse(parameters.w) / 2 - 0.2,
6968
+ y: -length50.parse(parameters.h) / 2
6961
6969
  },
6962
6970
  {
6963
- x: length44.parse(parameters.pad_spacing) / 2,
6964
- y: -length44.parse(parameters.h) / 2
6971
+ x: length50.parse(parameters.pad_spacing) / 2,
6972
+ y: -length50.parse(parameters.h) / 2
6965
6973
  }
6966
6974
  ],
6967
6975
  stroke_width: 0.1,
@@ -7005,7 +7013,7 @@ var sodWithoutParsing15 = (parameters) => {
7005
7013
 
7006
7014
  // src/fn/son.ts
7007
7015
  import { z as z64 } from "zod";
7008
- import { length as length45 } from "circuit-json";
7016
+ import { length as length51 } from "circuit-json";
7009
7017
  var son_def = base_def.extend({
7010
7018
  fn: z64.string(),
7011
7019
  num_pins: z64.union([z64.literal(6), z64.literal(8)]).default(8),
@@ -7029,13 +7037,13 @@ var son = (raw_params) => {
7029
7037
  ...raw_params,
7030
7038
  num_pins: numPins
7031
7039
  });
7032
- const w = length45.parse(parameters.w);
7033
- const h = length45.parse(parameters.h);
7034
- const p = length45.parse(parameters.p);
7035
- const pl = length45.parse(parameters.pl);
7036
- const pw = length45.parse(parameters.pw);
7037
- const epw = length45.parse(parameters.epw);
7038
- const eph = length45.parse(parameters.eph);
7040
+ const w = length51.parse(parameters.w);
7041
+ const h = length51.parse(parameters.h);
7042
+ const p = length51.parse(parameters.p);
7043
+ const pl = length51.parse(parameters.pl);
7044
+ const pw = length51.parse(parameters.pw);
7045
+ const epw = length51.parse(parameters.epw);
7046
+ const eph = length51.parse(parameters.eph);
7039
7047
  const pads = [];
7040
7048
  for (let i = 0; i < parameters.num_pins; i++) {
7041
7049
  const { x, y } = getSonPadCoord(parameters.num_pins, i + 1, w, p);
@@ -7113,18 +7121,18 @@ var getSonPadCoord = (num_pins, pn, w, p) => {
7113
7121
  const col = pn <= half ? -1 : 1;
7114
7122
  const row = (half - 1) / 2 - rowIndex;
7115
7123
  return {
7116
- x: col * length45.parse("1.4mm"),
7124
+ x: col * length51.parse("1.4mm"),
7117
7125
  y: row * p
7118
7126
  };
7119
7127
  };
7120
7128
 
7121
7129
  // src/fn/solderjumper.ts
7122
- import { length as length46 } from "circuit-json";
7130
+ import { length as length52 } from "circuit-json";
7123
7131
  var solderjumper = (params) => {
7124
7132
  const { num_pins, bridged, p = 2.54, pw = 1.5, ph = 1.5 } = params;
7125
- const padSpacing7 = length46.parse(p);
7126
- const padWidth = length46.parse(pw);
7127
- const padHeight = length46.parse(ph);
7133
+ const padSpacing7 = length52.parse(p);
7134
+ const padWidth = length52.parse(pw);
7135
+ const padHeight = length52.parse(ph);
7128
7136
  const traceWidth = Math.min(padHeight / 4, 0.5);
7129
7137
  const pads = [];
7130
7138
  for (let i = 0; i < num_pins; i++) {
@@ -7379,7 +7387,7 @@ var sot457 = (rawParams) => {
7379
7387
 
7380
7388
  // src/fn/sot963.ts
7381
7389
  import { z as z66 } from "zod";
7382
- import { length as length47 } from "circuit-json";
7390
+ import { length as length53 } from "circuit-json";
7383
7391
  var sot963_def = base_def.extend({
7384
7392
  fn: z66.string(),
7385
7393
  num_pins: z66.literal(6).default(6),
@@ -7392,11 +7400,11 @@ var sot963_def = base_def.extend({
7392
7400
  });
7393
7401
  var sot963 = (raw_params) => {
7394
7402
  const parameters = sot963_def.parse({ ...raw_params, fn: "sot963" });
7395
- const w = length47.parse(parameters.w);
7396
- const h = length47.parse(parameters.h);
7397
- const p = length47.parse(parameters.p);
7398
- const pl = length47.parse(parameters.pl);
7399
- const pw = length47.parse(parameters.pw);
7403
+ const w = length53.parse(parameters.w);
7404
+ const h = length53.parse(parameters.h);
7405
+ const p = length53.parse(parameters.p);
7406
+ const pl = length53.parse(parameters.pl);
7407
+ const pw = length53.parse(parameters.pw);
7400
7408
  const pads = [];
7401
7409
  for (let i = 0; i < 6; i++) {
7402
7410
  const { x, y } = getSot963PadCoord(i + 1, w, p, pl);
@@ -7538,15 +7546,15 @@ var potentiometer = (raw_params) => {
7538
7546
 
7539
7547
  // src/fn/electrolytic.ts
7540
7548
  import {
7541
- length as length48
7549
+ length as length54
7542
7550
  } from "circuit-json";
7543
7551
  import { z as z68 } from "zod";
7544
7552
  var electrolytic_def = base_def.extend({
7545
7553
  fn: z68.string(),
7546
- p: length48.optional().default("7.5mm"),
7547
- id: length48.optional().default("1mm"),
7548
- od: length48.optional().default("2mm"),
7549
- d: length48.optional().default("10.5mm")
7554
+ p: length54.optional().default("7.5mm"),
7555
+ id: length54.optional().default("1mm"),
7556
+ od: length54.optional().default("2mm"),
7557
+ d: length54.optional().default("10.5mm")
7550
7558
  });
7551
7559
  var generate_circle_arcs = (centerX, centerY, radius, cut, cutHeight) => {
7552
7560
  const topArc = [];
@@ -7654,7 +7662,7 @@ var electrolytic = (raw_params) => {
7654
7662
 
7655
7663
  // src/fn/smbf.ts
7656
7664
  import { z as z69 } from "zod";
7657
- import { length as length49 } from "circuit-json";
7665
+ import { length as length55 } from "circuit-json";
7658
7666
  var smbf_def = base_def.extend({
7659
7667
  fn: z69.string(),
7660
7668
  num_pins: z69.literal(2).default(2),
@@ -7668,7 +7676,7 @@ var smbf = (raw_params) => {
7668
7676
  const parameters = smbf_def.parse(raw_params);
7669
7677
  const silkscreenRefText = silkscreenRef(
7670
7678
  0,
7671
- length49.parse(parameters.h) - 0.5,
7679
+ length55.parse(parameters.h) - 0.5,
7672
7680
  0.3
7673
7681
  );
7674
7682
  const silkscreenLine = {
@@ -7677,20 +7685,20 @@ var smbf = (raw_params) => {
7677
7685
  pcb_component_id: "",
7678
7686
  route: [
7679
7687
  {
7680
- x: length49.parse(parameters.p) / 2,
7681
- y: length49.parse(parameters.h) / 2
7688
+ x: length55.parse(parameters.p) / 2,
7689
+ y: length55.parse(parameters.h) / 2
7682
7690
  },
7683
7691
  {
7684
- x: -length49.parse(parameters.w) / 2 - 0.3,
7685
- y: length49.parse(parameters.h) / 2
7692
+ x: -length55.parse(parameters.w) / 2 - 0.3,
7693
+ y: length55.parse(parameters.h) / 2
7686
7694
  },
7687
7695
  {
7688
- x: -length49.parse(parameters.w) / 2 - 0.3,
7689
- y: -length49.parse(parameters.h) / 2
7696
+ x: -length55.parse(parameters.w) / 2 - 0.3,
7697
+ y: -length55.parse(parameters.h) / 2
7690
7698
  },
7691
7699
  {
7692
- x: length49.parse(parameters.p) / 2,
7693
- y: -length49.parse(parameters.h) / 2
7700
+ x: length55.parse(parameters.p) / 2,
7701
+ y: -length55.parse(parameters.h) / 2
7694
7702
  }
7695
7703
  ],
7696
7704
  stroke_width: 0.1,
@@ -7830,7 +7838,7 @@ var sot323_3 = (parameters) => {
7830
7838
 
7831
7839
  // src/fn/smtpad.ts
7832
7840
  import { z as z71 } from "zod";
7833
- import { length as length50 } from "circuit-json";
7841
+ import { length as length56 } from "circuit-json";
7834
7842
  import { mm as mm14 } from "@tscircuit/mm";
7835
7843
  var smtpad_def = base_def.extend({
7836
7844
  fn: z71.string(),
@@ -7838,20 +7846,20 @@ var smtpad_def = base_def.extend({
7838
7846
  rect: z71.boolean().optional(),
7839
7847
  square: z71.boolean().optional(),
7840
7848
  pill: z71.boolean().optional(),
7841
- d: length50.optional(),
7842
- pd: length50.optional(),
7843
- diameter: length50.optional(),
7844
- r: length50.optional(),
7845
- pr: length50.optional(),
7846
- radius: length50.optional(),
7847
- w: length50.optional(),
7848
- pw: length50.optional(),
7849
- width: length50.optional(),
7850
- h: length50.optional(),
7851
- ph: length50.optional(),
7852
- height: length50.optional(),
7853
- s: length50.optional(),
7854
- size: length50.optional(),
7849
+ d: length56.optional(),
7850
+ pd: length56.optional(),
7851
+ diameter: length56.optional(),
7852
+ r: length56.optional(),
7853
+ pr: length56.optional(),
7854
+ radius: length56.optional(),
7855
+ w: length56.optional(),
7856
+ pw: length56.optional(),
7857
+ width: length56.optional(),
7858
+ h: length56.optional(),
7859
+ ph: length56.optional(),
7860
+ height: length56.optional(),
7861
+ s: length56.optional(),
7862
+ size: length56.optional(),
7855
7863
  string: z71.string().optional()
7856
7864
  }).transform((v) => {
7857
7865
  let shape = "rect";
@@ -7919,16 +7927,16 @@ var smtpad = (raw_params) => {
7919
7927
 
7920
7928
  // src/fn/platedhole.ts
7921
7929
  import { z as z72 } from "zod";
7922
- import { length as length51 } from "circuit-json";
7930
+ import { length as length57 } from "circuit-json";
7923
7931
  import { mm as mm15 } from "@tscircuit/mm";
7924
7932
  var platedhole_def = base_def.extend({
7925
7933
  fn: z72.string(),
7926
- d: length51.optional(),
7927
- hd: length51.optional(),
7928
- r: length51.optional(),
7929
- hr: length51.optional(),
7930
- pd: length51.optional(),
7931
- pr: length51.optional(),
7934
+ d: length57.optional(),
7935
+ hd: length57.optional(),
7936
+ r: length57.optional(),
7937
+ hr: length57.optional(),
7938
+ pd: length57.optional(),
7939
+ pr: length57.optional(),
7932
7940
  squarepad: z72.boolean().optional().default(false)
7933
7941
  }).transform((v) => {
7934
7942
  let holeD;