@tscircuit/footprinter 0.0.260 → 0.0.262

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
@@ -74,6 +74,7 @@ __export(fn_exports, {
74
74
  sot723: () => sot723,
75
75
  sot886: () => sot886,
76
76
  sot89: () => sot89,
77
+ sot963: () => sot963,
77
78
  ssop: () => ssop,
78
79
  stampboard: () => stampboard,
79
80
  stampreceiver: () => stampreceiver,
@@ -769,7 +770,8 @@ var extendSoicDef = (newDefaults) => z6.object({
769
770
  pw: length3.default(length3.parse(newDefaults.pw ?? "0.6mm")),
770
771
  pl: length3.default(length3.parse(newDefaults.pl ?? "1.0mm")),
771
772
  legsoutside: z6.boolean().optional().default(newDefaults.legsoutside ?? false),
772
- pillpads: z6.boolean().optional().default(newDefaults.pillpads ?? false)
773
+ pillpads: z6.boolean().optional().default(newDefaults.pillpads ?? false),
774
+ silkscreen_stroke_width: z6.number().optional().default(0.1)
773
775
  }).transform((v) => {
774
776
  if (!v.pw && !v.pl) {
775
777
  v.pw = length3.parse("0.6mm");
@@ -835,7 +837,7 @@ var soicWithoutParsing = (parameters) => {
835
837
  layer: "top",
836
838
  pcb_component_id: "",
837
839
  pcb_silkscreen_path_id: "silkscreen_path_1",
838
- stroke_width: 0.1,
840
+ stroke_width: parameters.silkscreen_stroke_width ?? 0.1,
839
841
  route: [
840
842
  { x: -sw / 2, y: -sh / 2 },
841
843
  { x: -sw / 2, y: sh / 2 },
@@ -2064,22 +2066,85 @@ var pinrow = (raw_params) => {
2064
2066
  };
2065
2067
 
2066
2068
  // src/fn/sot563.ts
2067
- var sot563_def = extendSoicDef({});
2069
+ import { z as z14 } from "zod";
2070
+ import { length as length7 } from "circuit-json";
2071
+ var sot563_def = z14.object({
2072
+ fn: z14.string(),
2073
+ num_pins: z14.literal(6).default(6),
2074
+ w: z14.string().default("2.1mm"),
2075
+ h: z14.string().default("2.45mm"),
2076
+ p: z14.string().default("0.5mm"),
2077
+ pl: z14.string().default("0.675mm"),
2078
+ pw: z14.string().default("0.35mm"),
2079
+ string: z14.string().optional()
2080
+ });
2068
2081
  var sot563 = (raw_params) => {
2069
- const parameters = sot563_def.parse({
2070
- fn: "sot563",
2071
- num_pins: 6,
2072
- w: 1.94,
2073
- p: 0.5,
2074
- pw: 0.3,
2075
- pl: 0.67,
2076
- legoutside: true
2077
- });
2082
+ const parameters = sot563_def.parse({ ...raw_params, fn: "sot563" });
2083
+ const w = length7.parse(parameters.w);
2084
+ const h = length7.parse(parameters.h);
2085
+ const p = length7.parse(parameters.p);
2086
+ const pl = length7.parse(parameters.pl);
2087
+ const pw = length7.parse(parameters.pw);
2088
+ const pads = [];
2089
+ for (let i = 0; i < 6; i++) {
2090
+ const { x, y } = getSot563PadCoord(i + 1, w, p, pl);
2091
+ pads.push(rectpad(i + 1, x, y, pl, pw));
2092
+ }
2093
+ const silkscreenTopLine = {
2094
+ type: "pcb_silkscreen_path",
2095
+ layer: "top",
2096
+ pcb_component_id: "",
2097
+ route: [
2098
+ { x: -w / 2, y: h / 2 },
2099
+ { x: w / 2, y: h / 2 }
2100
+ ],
2101
+ stroke_width: 0.05,
2102
+ pcb_silkscreen_path_id: ""
2103
+ };
2104
+ const silkscreenBottomLine = {
2105
+ type: "pcb_silkscreen_path",
2106
+ layer: "top",
2107
+ pcb_component_id: "",
2108
+ route: [
2109
+ { x: -w / 2, y: -h / 2 },
2110
+ { x: w / 2, y: -h / 2 }
2111
+ ],
2112
+ stroke_width: 0.05,
2113
+ pcb_silkscreen_path_id: ""
2114
+ };
2115
+ const pin1Position = getSot563PadCoord(1, w, p, pl);
2116
+ const pin1Marking = {
2117
+ type: "pcb_silkscreen_path",
2118
+ layer: "top",
2119
+ pcb_component_id: "pin_marker_1",
2120
+ route: [
2121
+ { x: pin1Position.x - pl / 2 - 0.3, y: pin1Position.y },
2122
+ { x: pin1Position.x - pl / 2 - 0.45, y: pin1Position.y + 0.15 },
2123
+ { x: pin1Position.x - pl / 2 - 0.45, y: pin1Position.y - 0.15 },
2124
+ { x: pin1Position.x - pl / 2 - 0.3, y: pin1Position.y }
2125
+ ],
2126
+ stroke_width: 0.05,
2127
+ pcb_silkscreen_path_id: "pin_marker_1"
2128
+ };
2129
+ const silkscreenRefText = silkscreenRef(0, h / 2 + 0.4, 0.25);
2078
2130
  return {
2079
- circuitJson: soicWithoutParsing(parameters),
2131
+ circuitJson: [
2132
+ ...pads,
2133
+ silkscreenTopLine,
2134
+ silkscreenBottomLine,
2135
+ silkscreenRefText,
2136
+ pin1Marking
2137
+ ],
2080
2138
  parameters
2081
2139
  };
2082
2140
  };
2141
+ var getSot563PadCoord = (pn, w, p, pl) => {
2142
+ const padCenterOffset = w / 2 - pl / 2;
2143
+ if (pn <= 3) {
2144
+ return { x: -padCenterOffset, y: p - (pn - 1) * p };
2145
+ }
2146
+ return { x: padCenterOffset, y: -p + (pn - 4) * p };
2147
+ };
2083
2148
 
2084
2149
  // src/fn/ms012.ts
2085
2150
  var ms012_def = extendSoicDef({
@@ -2110,23 +2175,23 @@ var ms013 = (raw_params) => {
2110
2175
  };
2111
2176
 
2112
2177
  // src/fn/sot723.ts
2113
- import { length as length7 } from "circuit-json";
2114
- import { z as z14 } from "zod";
2115
- var sot723_def = z14.object({
2116
- fn: z14.string(),
2117
- num_pins: z14.literal(3).default(3),
2118
- w: z14.string().default("1.2mm"),
2119
- h: z14.string().default("1.2mm"),
2120
- pw: z14.string().default("0.40mm"),
2121
- pl: z14.string().default("0.45mm"),
2122
- p: z14.string().default("0.575mm")
2178
+ import { length as length8 } from "circuit-json";
2179
+ import { z as z15 } from "zod";
2180
+ var sot723_def = z15.object({
2181
+ fn: z15.string(),
2182
+ num_pins: z15.literal(3).default(3),
2183
+ w: z15.string().default("1.2mm"),
2184
+ h: z15.string().default("1.2mm"),
2185
+ pw: z15.string().default("0.40mm"),
2186
+ pl: z15.string().default("0.45mm"),
2187
+ p: z15.string().default("0.575mm")
2123
2188
  });
2124
2189
  var sot723 = (raw_params) => {
2125
2190
  const parameters = sot723_def.parse(raw_params);
2126
2191
  const pad2 = sot723WithoutParsing(parameters);
2127
2192
  const silkscreenRefText = silkscreenRef(
2128
2193
  0,
2129
- length7.parse(parameters.h),
2194
+ length8.parse(parameters.h),
2130
2195
  0.2
2131
2196
  );
2132
2197
  return {
@@ -2138,11 +2203,11 @@ var getCcwSot723Coords = (parameters) => {
2138
2203
  const { pn, w, h, pl, p } = parameters;
2139
2204
  if (pn === 1) {
2140
2205
  return { x: p, y: 0 };
2141
- } else if (pn === 2) {
2206
+ }
2207
+ if (pn === 2) {
2142
2208
  return { x: -p, y: -0.4 };
2143
- } else {
2144
- return { x: -p, y: 0.4 };
2145
2209
  }
2210
+ return { x: -p, y: 0.4 };
2146
2211
  };
2147
2212
  var sot723WithoutParsing = (parameters) => {
2148
2213
  const pads = [];
@@ -2169,22 +2234,22 @@ var sot723WithoutParsing = (parameters) => {
2169
2234
  };
2170
2235
 
2171
2236
  // src/fn/sod123.ts
2172
- import { z as z15 } from "zod";
2173
- import { length as length8 } from "circuit-json";
2174
- var sod_def = z15.object({
2175
- fn: z15.string(),
2176
- num_pins: z15.literal(2).default(2),
2177
- w: z15.string().default("2.36mm"),
2178
- h: z15.string().default("1.22mm"),
2179
- pl: z15.string().default("0.9mm"),
2180
- pw: z15.string().default("1.2mm"),
2181
- p: z15.string().default("3.30mm")
2237
+ import { z as z16 } from "zod";
2238
+ import { length as length9 } from "circuit-json";
2239
+ var sod_def = z16.object({
2240
+ fn: z16.string(),
2241
+ num_pins: z16.literal(2).default(2),
2242
+ w: z16.string().default("2.36mm"),
2243
+ h: z16.string().default("1.22mm"),
2244
+ pl: z16.string().default("0.9mm"),
2245
+ pw: z16.string().default("1.2mm"),
2246
+ p: z16.string().default("3.30mm")
2182
2247
  });
2183
2248
  var sod123 = (raw_params) => {
2184
2249
  const parameters = sod_def.parse(raw_params);
2185
2250
  const silkscreenRefText = silkscreenRef(
2186
2251
  0,
2187
- length8.parse(parameters.h) / 4 + 0.4,
2252
+ length9.parse(parameters.h) / 4 + 0.4,
2188
2253
  0.3
2189
2254
  );
2190
2255
  return {
@@ -2224,14 +2289,14 @@ var sodWithoutParsing = (parameters) => {
2224
2289
 
2225
2290
  // src/fn/axial.ts
2226
2291
  import {
2227
- length as length9
2292
+ length as length10
2228
2293
  } from "circuit-json";
2229
- import { z as z16 } from "zod";
2230
- var axial_def = z16.object({
2231
- fn: z16.string(),
2232
- p: length9.optional().default("2.54mm"),
2233
- id: length9.optional().default("0.7mm"),
2234
- od: length9.optional().default("1.4mm")
2294
+ import { z as z17 } from "zod";
2295
+ var axial_def = z17.object({
2296
+ fn: z17.string(),
2297
+ p: length10.optional().default("2.54mm"),
2298
+ id: length10.optional().default("0.7mm"),
2299
+ od: length10.optional().default("1.4mm")
2235
2300
  });
2236
2301
  var axial = (raw_params) => {
2237
2302
  const parameters = axial_def.parse(raw_params);
@@ -2263,8 +2328,8 @@ var axial = (raw_params) => {
2263
2328
  };
2264
2329
 
2265
2330
  // src/fn/pushbutton.ts
2266
- import { length as length10 } from "circuit-json";
2267
- import { z as z17 } from "zod";
2331
+ import { length as length11 } from "circuit-json";
2332
+ import { z as z18 } from "zod";
2268
2333
 
2269
2334
  // src/helpers/silkscreenpath.ts
2270
2335
  var silkscreenpath = (route, options = {}) => {
@@ -2279,12 +2344,12 @@ var silkscreenpath = (route, options = {}) => {
2279
2344
  };
2280
2345
 
2281
2346
  // src/fn/pushbutton.ts
2282
- var pushbutton_def = z17.object({
2283
- fn: z17.literal("pushbutton"),
2284
- w: length10.default(4.5),
2285
- h: length10.default(6.5),
2286
- id: length10.default(1),
2287
- od: length10.default(1.2)
2347
+ var pushbutton_def = z18.object({
2348
+ fn: z18.literal("pushbutton"),
2349
+ w: length11.default(4.5),
2350
+ h: length11.default(6.5),
2351
+ id: length11.default(1),
2352
+ od: length11.default(1.2)
2288
2353
  });
2289
2354
  var pushbutton = (raw_params) => {
2290
2355
  const parameters = pushbutton_def.parse(raw_params);
@@ -2331,24 +2396,24 @@ var pushbutton = (raw_params) => {
2331
2396
 
2332
2397
  // src/fn/stampboard.ts
2333
2398
  import {
2334
- length as length11
2399
+ length as length12
2335
2400
  } from "circuit-json";
2336
- import { z as z18 } from "zod";
2337
- var stampboard_def = z18.object({
2338
- fn: z18.string(),
2339
- w: length11.default("22.58mm"),
2340
- h: length11.optional(),
2341
- left: length11.optional().default(20),
2342
- right: length11.optional().default(20),
2343
- top: length11.optional().default(2),
2344
- bottom: length11.optional().default(2),
2345
- p: length11.default(length11.parse("2.54mm")),
2346
- pw: length11.default(length11.parse("1.6mm")),
2347
- pl: length11.default(length11.parse("2.4mm")),
2348
- innerhole: z18.boolean().default(false),
2349
- innerholeedgedistance: length11.default(length11.parse("1.61mm")),
2350
- silkscreenlabels: z18.boolean().default(false),
2351
- silkscreenlabelmargin: length11.default(length11.parse("0.1mm"))
2401
+ import { z as z19 } from "zod";
2402
+ var stampboard_def = z19.object({
2403
+ fn: z19.string(),
2404
+ w: length12.default("22.58mm"),
2405
+ h: length12.optional(),
2406
+ left: length12.optional().default(20),
2407
+ right: length12.optional().default(20),
2408
+ top: length12.optional().default(2),
2409
+ bottom: length12.optional().default(2),
2410
+ p: length12.default(length12.parse("2.54mm")),
2411
+ pw: length12.default(length12.parse("1.6mm")),
2412
+ pl: length12.default(length12.parse("2.4mm")),
2413
+ innerhole: z19.boolean().default(false),
2414
+ innerholeedgedistance: length12.default(length12.parse("1.61mm")),
2415
+ silkscreenlabels: z19.boolean().default(false),
2416
+ silkscreenlabelmargin: length12.default(length12.parse("0.1mm"))
2352
2417
  });
2353
2418
  var getHeight = (parameters) => {
2354
2419
  const params = stampboard_def.parse(parameters);
@@ -2757,22 +2822,22 @@ var stampboard = (raw_params) => {
2757
2822
 
2758
2823
  // src/fn/stampreceiver.ts
2759
2824
  import {
2760
- length as length12
2825
+ length as length13
2761
2826
  } from "circuit-json";
2762
- import { z as z19 } from "zod";
2763
- var stampreceiver_def = z19.object({
2764
- fn: z19.string(),
2765
- w: length12.default("22.58mm"),
2766
- h: length12.optional(),
2767
- left: length12.optional().default(20),
2768
- right: length12.optional().default(20),
2769
- top: length12.optional().default(2),
2770
- bottom: length12.optional().default(2),
2771
- p: length12.default(length12.parse("2.54mm")),
2772
- pw: length12.default(length12.parse("1.6mm")),
2773
- pl: length12.default(length12.parse("3.2mm")),
2774
- innerhole: z19.boolean().default(false),
2775
- innerholeedgedistance: length12.default(length12.parse("1.61mm"))
2827
+ import { z as z20 } from "zod";
2828
+ var stampreceiver_def = z20.object({
2829
+ fn: z20.string(),
2830
+ w: length13.default("22.58mm"),
2831
+ h: length13.optional(),
2832
+ left: length13.optional().default(20),
2833
+ right: length13.optional().default(20),
2834
+ top: length13.optional().default(2),
2835
+ bottom: length13.optional().default(2),
2836
+ p: length13.default(length13.parse("2.54mm")),
2837
+ pw: length13.default(length13.parse("1.6mm")),
2838
+ pl: length13.default(length13.parse("3.2mm")),
2839
+ innerhole: z20.boolean().default(false),
2840
+ innerholeedgedistance: length13.default(length13.parse("1.61mm"))
2776
2841
  });
2777
2842
  var getHeight2 = (parameters) => {
2778
2843
  const params = stampreceiver_def.parse(parameters);
@@ -3073,20 +3138,20 @@ var lqfp = (parameters) => {
3073
3138
 
3074
3139
  // src/fn/breakoutheaders.ts
3075
3140
  import {
3076
- length as length13
3141
+ length as length14
3077
3142
  } from "circuit-json";
3078
- import { z as z20 } from "zod";
3079
- var breakoutheaders_def = z20.object({
3080
- fn: z20.string(),
3081
- w: length13.default("10mm"),
3082
- h: length13.optional(),
3083
- left: length13.optional().default(20),
3084
- right: length13.optional().default(20),
3085
- top: length13.optional().default(0),
3086
- bottom: length13.optional().default(0),
3087
- p: length13.default(length13.parse("2.54mm")),
3088
- id: length13.optional().default(length13.parse("1mm")),
3089
- od: length13.optional().default(length13.parse("1.5mm"))
3143
+ import { z as z21 } from "zod";
3144
+ var breakoutheaders_def = z21.object({
3145
+ fn: z21.string(),
3146
+ w: length14.default("10mm"),
3147
+ h: length14.optional(),
3148
+ left: length14.optional().default(20),
3149
+ right: length14.optional().default(20),
3150
+ top: length14.optional().default(0),
3151
+ bottom: length14.optional().default(0),
3152
+ p: length14.default(length14.parse("2.54mm")),
3153
+ id: length14.optional().default(length14.parse("1mm")),
3154
+ od: length14.optional().default(length14.parse("1.5mm"))
3090
3155
  });
3091
3156
  var getHeight3 = (parameters) => {
3092
3157
  const params = breakoutheaders_def.parse(parameters);
@@ -3278,9 +3343,9 @@ var breakoutheaders = (raw_params) => {
3278
3343
 
3279
3344
  // src/fn/hc49.ts
3280
3345
  import {
3281
- length as length14
3346
+ length as length15
3282
3347
  } from "circuit-json";
3283
- import { z as z21 } from "zod";
3348
+ import { z as z22 } from "zod";
3284
3349
  var generate_u_curve = (centerX, centerY, radius, direction) => {
3285
3350
  return Array.from({ length: 25 }, (_, i) => {
3286
3351
  const theta = i / 24 * Math.PI - Math.PI / 2;
@@ -3290,13 +3355,13 @@ var generate_u_curve = (centerX, centerY, radius, direction) => {
3290
3355
  };
3291
3356
  });
3292
3357
  };
3293
- var hc49_def = z21.object({
3294
- fn: z21.string(),
3295
- p: length14.optional().default("4.88mm"),
3296
- id: length14.optional().default("0.8mm"),
3297
- od: length14.optional().default("1.5mm"),
3298
- w: length14.optional().default("5.6mm"),
3299
- h: length14.optional().default("3.5mm")
3358
+ var hc49_def = z22.object({
3359
+ fn: z22.string(),
3360
+ p: length15.optional().default("4.88mm"),
3361
+ id: length15.optional().default("0.8mm"),
3362
+ od: length15.optional().default("1.5mm"),
3363
+ w: length15.optional().default("5.6mm"),
3364
+ h: length15.optional().default("3.5mm")
3300
3365
  });
3301
3366
  var hc49 = (raw_params) => {
3302
3367
  const parameters = hc49_def.parse(raw_params);
@@ -3336,12 +3401,12 @@ var hc49 = (raw_params) => {
3336
3401
  };
3337
3402
 
3338
3403
  // src/fn/pad.ts
3339
- import { z as z22 } from "zod";
3340
- import { length as length15 } from "circuit-json";
3404
+ import { z as z23 } from "zod";
3405
+ import { length as length16 } from "circuit-json";
3341
3406
  import { mm as mm5 } from "@tscircuit/mm";
3342
- var pad_def = z22.object({
3343
- w: length15,
3344
- h: length15
3407
+ var pad_def = z23.object({
3408
+ w: length16,
3409
+ h: length16
3345
3410
  });
3346
3411
  var pad = (params) => {
3347
3412
  const { w, h } = params;
@@ -3357,17 +3422,17 @@ var pad = (params) => {
3357
3422
  };
3358
3423
 
3359
3424
  // src/fn/to92.ts
3360
- import { z as z23 } from "zod";
3361
- var to92_def = z23.object({
3362
- fn: z23.string(),
3363
- num_pins: z23.union([z23.literal(3), z23.literal(2)]).default(3),
3364
- p: z23.string().default("1.27mm"),
3365
- id: z23.string().default("0.72mm"),
3366
- od: z23.string().default("0.95mm"),
3367
- w: z23.string().default("4.5mm"),
3368
- h: z23.string().default("4.5mm"),
3369
- inline: z23.boolean().default(false),
3370
- string: z23.string().optional()
3425
+ import { z as z24 } from "zod";
3426
+ var to92_def = z24.object({
3427
+ fn: z24.string(),
3428
+ num_pins: z24.union([z24.literal(3), z24.literal(2)]).default(3),
3429
+ p: z24.string().default("1.27mm"),
3430
+ id: z24.string().default("0.72mm"),
3431
+ od: z24.string().default("0.95mm"),
3432
+ w: z24.string().default("4.5mm"),
3433
+ h: z24.string().default("4.5mm"),
3434
+ inline: z24.boolean().default(false),
3435
+ string: z24.string().optional()
3371
3436
  });
3372
3437
  var generateSemicircle = (centerX, centerY, radius) => {
3373
3438
  return Array.from({ length: 25 }, (_, i) => {
@@ -3440,22 +3505,22 @@ var to92 = (raw_params) => {
3440
3505
  };
3441
3506
 
3442
3507
  // src/fn/sod523.ts
3443
- import { z as z24 } from "zod";
3444
- import { length as length16 } from "circuit-json";
3445
- var sod_def2 = z24.object({
3446
- fn: z24.string(),
3447
- num_pins: z24.literal(2).default(2),
3448
- w: z24.string().default("2.15mm"),
3449
- h: z24.string().default("1.20mm"),
3450
- pl: z24.string().default("0.5mm"),
3451
- pw: z24.string().default("0.6mm"),
3452
- p: z24.string().default("1.4mm")
3508
+ import { z as z25 } from "zod";
3509
+ import { length as length17 } from "circuit-json";
3510
+ var sod_def2 = z25.object({
3511
+ fn: z25.string(),
3512
+ num_pins: z25.literal(2).default(2),
3513
+ w: z25.string().default("2.15mm"),
3514
+ h: z25.string().default("1.20mm"),
3515
+ pl: z25.string().default("0.5mm"),
3516
+ pw: z25.string().default("0.6mm"),
3517
+ p: z25.string().default("1.4mm")
3453
3518
  });
3454
3519
  var sod523 = (raw_params) => {
3455
3520
  const parameters = sod_def2.parse(raw_params);
3456
3521
  const silkscreenRefText = silkscreenRef(
3457
3522
  0,
3458
- length16.parse(parameters.h),
3523
+ length17.parse(parameters.h),
3459
3524
  0.3
3460
3525
  );
3461
3526
  const silkscreenLine = {
@@ -3464,20 +3529,20 @@ var sod523 = (raw_params) => {
3464
3529
  pcb_component_id: "",
3465
3530
  route: [
3466
3531
  {
3467
- x: length16.parse(parameters.p) / 2,
3468
- y: length16.parse(parameters.h) / 2
3532
+ x: length17.parse(parameters.p) / 2,
3533
+ y: length17.parse(parameters.h) / 2
3469
3534
  },
3470
3535
  {
3471
- x: -length16.parse(parameters.w) / 2 - 0.2,
3472
- y: length16.parse(parameters.h) / 2
3536
+ x: -length17.parse(parameters.w) / 2 - 0.2,
3537
+ y: length17.parse(parameters.h) / 2
3473
3538
  },
3474
3539
  {
3475
- x: -length16.parse(parameters.w) / 2 - 0.2,
3476
- y: -length16.parse(parameters.h) / 2
3540
+ x: -length17.parse(parameters.w) / 2 - 0.2,
3541
+ y: -length17.parse(parameters.h) / 2
3477
3542
  },
3478
3543
  {
3479
- x: length16.parse(parameters.p) / 2,
3480
- y: -length16.parse(parameters.h) / 2
3544
+ x: length17.parse(parameters.p) / 2,
3545
+ y: -length17.parse(parameters.h) / 2
3481
3546
  }
3482
3547
  ],
3483
3548
  stroke_width: 0.1,
@@ -3565,22 +3630,22 @@ var sop8 = (raw_params) => {
3565
3630
  };
3566
3631
 
3567
3632
  // src/fn/sod80.ts
3568
- import { z as z25 } from "zod";
3569
- import { length as length17 } from "circuit-json";
3570
- var sod80_def = z25.object({
3571
- fn: z25.string(),
3572
- num_pins: z25.literal(2).default(2),
3573
- w: z25.string().default("5.0mm"),
3574
- h: z25.string().default("2.30mm"),
3575
- pl: z25.string().default("1.25mm"),
3576
- pw: z25.string().default("2mm"),
3577
- p: z25.string().default("3.75mm")
3633
+ import { z as z26 } from "zod";
3634
+ import { length as length18 } from "circuit-json";
3635
+ var sod80_def = z26.object({
3636
+ fn: z26.string(),
3637
+ num_pins: z26.literal(2).default(2),
3638
+ w: z26.string().default("5.0mm"),
3639
+ h: z26.string().default("2.30mm"),
3640
+ pl: z26.string().default("1.25mm"),
3641
+ pw: z26.string().default("2mm"),
3642
+ p: z26.string().default("3.75mm")
3578
3643
  });
3579
3644
  var sod80 = (raw_params) => {
3580
3645
  const parameters = sod80_def.parse(raw_params);
3581
3646
  const silkscreenRefText = silkscreenRef(
3582
3647
  0,
3583
- length17.parse(parameters.h) / 2 + 1,
3648
+ length18.parse(parameters.h) / 2 + 1,
3584
3649
  0.3
3585
3650
  );
3586
3651
  const silkscreenLine = {
@@ -3589,20 +3654,20 @@ var sod80 = (raw_params) => {
3589
3654
  pcb_component_id: "",
3590
3655
  route: [
3591
3656
  {
3592
- x: length17.parse(parameters.p) / 2 + 0.5,
3593
- y: length17.parse(parameters.h) / 2 + 0.5
3657
+ x: length18.parse(parameters.p) / 2 + 0.5,
3658
+ y: length18.parse(parameters.h) / 2 + 0.5
3594
3659
  },
3595
3660
  {
3596
- x: -length17.parse(parameters.w) / 2 - 0.5,
3597
- y: length17.parse(parameters.h) / 2 + 0.5
3661
+ x: -length18.parse(parameters.w) / 2 - 0.5,
3662
+ y: length18.parse(parameters.h) / 2 + 0.5
3598
3663
  },
3599
3664
  {
3600
- x: -length17.parse(parameters.w) / 2 - 0.5,
3601
- y: -length17.parse(parameters.h) / 2 - 0.5
3665
+ x: -length18.parse(parameters.w) / 2 - 0.5,
3666
+ y: -length18.parse(parameters.h) / 2 - 0.5
3602
3667
  },
3603
3668
  {
3604
- x: length17.parse(parameters.p) / 2 + 0.5,
3605
- y: -length17.parse(parameters.h) / 2 - 0.5
3669
+ x: length18.parse(parameters.p) / 2 + 0.5,
3670
+ y: -length18.parse(parameters.h) / 2 - 0.5
3606
3671
  }
3607
3672
  ],
3608
3673
  stroke_width: 0.1,
@@ -3641,22 +3706,22 @@ var sod80WithoutParsing = (parameters) => {
3641
3706
  };
3642
3707
 
3643
3708
  // src/fn/sod123w.ts
3644
- import { z as z26 } from "zod";
3645
- import { length as length18 } from "circuit-json";
3646
- var sod_def3 = z26.object({
3647
- fn: z26.string(),
3648
- num_pins: z26.literal(2).default(2),
3649
- w: z26.string().default("4.4mm"),
3650
- h: z26.string().default("2.1mm"),
3651
- pl: z26.string().default("1.2mm"),
3652
- pw: z26.string().default("1.2mm"),
3653
- p: z26.string().default("2.9mm")
3709
+ import { z as z27 } from "zod";
3710
+ import { length as length19 } from "circuit-json";
3711
+ var sod_def3 = z27.object({
3712
+ fn: z27.string(),
3713
+ num_pins: z27.literal(2).default(2),
3714
+ w: z27.string().default("4.4mm"),
3715
+ h: z27.string().default("2.1mm"),
3716
+ pl: z27.string().default("1.2mm"),
3717
+ pw: z27.string().default("1.2mm"),
3718
+ p: z27.string().default("2.9mm")
3654
3719
  });
3655
3720
  var sod123w = (raw_params) => {
3656
3721
  const parameters = sod_def3.parse(raw_params);
3657
3722
  const silkscreenRefText = silkscreenRef(
3658
3723
  0,
3659
- length18.parse(parameters.h) - 0.5,
3724
+ length19.parse(parameters.h) - 0.5,
3660
3725
  0.3
3661
3726
  );
3662
3727
  const silkscreenLine = {
@@ -3665,20 +3730,20 @@ var sod123w = (raw_params) => {
3665
3730
  pcb_component_id: "",
3666
3731
  route: [
3667
3732
  {
3668
- x: length18.parse(parameters.p) / 2,
3669
- y: length18.parse(parameters.h) / 2
3733
+ x: length19.parse(parameters.p) / 2,
3734
+ y: length19.parse(parameters.h) / 2
3670
3735
  },
3671
3736
  {
3672
- x: -length18.parse(parameters.w) / 2 - 0.2,
3673
- y: length18.parse(parameters.h) / 2
3737
+ x: -length19.parse(parameters.w) / 2 - 0.2,
3738
+ y: length19.parse(parameters.h) / 2
3674
3739
  },
3675
3740
  {
3676
- x: -length18.parse(parameters.w) / 2 - 0.2,
3677
- y: -length18.parse(parameters.h) / 2
3741
+ x: -length19.parse(parameters.w) / 2 - 0.2,
3742
+ y: -length19.parse(parameters.h) / 2
3678
3743
  },
3679
3744
  {
3680
- x: length18.parse(parameters.p) / 2,
3681
- y: -length18.parse(parameters.h) / 2
3745
+ x: length19.parse(parameters.p) / 2,
3746
+ y: -length19.parse(parameters.h) / 2
3682
3747
  }
3683
3748
  ],
3684
3749
  stroke_width: 0.1,
@@ -3720,22 +3785,22 @@ var sodWithoutParsing3 = (parameters) => {
3720
3785
  };
3721
3786
 
3722
3787
  // src/fn/sod323.ts
3723
- import { z as z27 } from "zod";
3724
- import { length as length19 } from "circuit-json";
3725
- var sod_def4 = z27.object({
3726
- fn: z27.string(),
3727
- num_pins: z27.literal(2).default(2),
3728
- w: z27.string().default("3.30mm"),
3729
- h: z27.string().default("1.80mm"),
3730
- pl: z27.string().default("0.60mm"),
3731
- pw: z27.string().default("0.45mm"),
3732
- p: z27.string().default("2.1mm")
3788
+ import { z as z28 } from "zod";
3789
+ import { length as length20 } from "circuit-json";
3790
+ var sod_def4 = z28.object({
3791
+ fn: z28.string(),
3792
+ num_pins: z28.literal(2).default(2),
3793
+ w: z28.string().default("3.30mm"),
3794
+ h: z28.string().default("1.80mm"),
3795
+ pl: z28.string().default("0.60mm"),
3796
+ pw: z28.string().default("0.45mm"),
3797
+ p: z28.string().default("2.1mm")
3733
3798
  });
3734
3799
  var sod323 = (raw_params) => {
3735
3800
  const parameters = sod_def4.parse(raw_params);
3736
3801
  const silkscreenRefText = silkscreenRef(
3737
3802
  0,
3738
- length19.parse(parameters.h) - 0.5,
3803
+ length20.parse(parameters.h) - 0.5,
3739
3804
  0.3
3740
3805
  );
3741
3806
  const silkscreenLine = {
@@ -3744,20 +3809,20 @@ var sod323 = (raw_params) => {
3744
3809
  pcb_component_id: "",
3745
3810
  route: [
3746
3811
  {
3747
- x: length19.parse(parameters.p) / 2,
3748
- y: length19.parse(parameters.h) / 2
3812
+ x: length20.parse(parameters.p) / 2,
3813
+ y: length20.parse(parameters.h) / 2
3749
3814
  },
3750
3815
  {
3751
- x: -length19.parse(parameters.w) / 2,
3752
- y: length19.parse(parameters.h) / 2
3816
+ x: -length20.parse(parameters.w) / 2,
3817
+ y: length20.parse(parameters.h) / 2
3753
3818
  },
3754
3819
  {
3755
- x: -length19.parse(parameters.w) / 2,
3756
- y: -length19.parse(parameters.h) / 2
3820
+ x: -length20.parse(parameters.w) / 2,
3821
+ y: -length20.parse(parameters.h) / 2
3757
3822
  },
3758
3823
  {
3759
- x: length19.parse(parameters.p) / 2,
3760
- y: -length19.parse(parameters.h) / 2
3824
+ x: length20.parse(parameters.p) / 2,
3825
+ y: -length20.parse(parameters.h) / 2
3761
3826
  }
3762
3827
  ],
3763
3828
  stroke_width: 0.1,
@@ -3799,22 +3864,22 @@ var sodWithoutParsing4 = (parameters) => {
3799
3864
  };
3800
3865
 
3801
3866
  // src/fn/sod923.ts
3802
- import { z as z28 } from "zod";
3803
- import { length as length20 } from "circuit-json";
3804
- var sod_def5 = z28.object({
3805
- fn: z28.string(),
3806
- num_pins: z28.literal(2).default(2),
3807
- w: z28.string().default("1.4mm"),
3808
- h: z28.string().default("0.9mm"),
3809
- pl: z28.string().default("0.36mm"),
3810
- pw: z28.string().default("0.25mm"),
3811
- p: z28.string().default("0.85mm")
3867
+ import { z as z29 } from "zod";
3868
+ import { length as length21 } from "circuit-json";
3869
+ var sod_def5 = z29.object({
3870
+ fn: z29.string(),
3871
+ num_pins: z29.literal(2).default(2),
3872
+ w: z29.string().default("1.4mm"),
3873
+ h: z29.string().default("0.9mm"),
3874
+ pl: z29.string().default("0.36mm"),
3875
+ pw: z29.string().default("0.25mm"),
3876
+ p: z29.string().default("0.85mm")
3812
3877
  });
3813
3878
  var sod923 = (raw_params) => {
3814
3879
  const parameters = sod_def5.parse(raw_params);
3815
3880
  const silkscreenRefText = silkscreenRef(
3816
3881
  0,
3817
- length20.parse(parameters.h),
3882
+ length21.parse(parameters.h),
3818
3883
  0.3
3819
3884
  );
3820
3885
  const silkscreenLine = {
@@ -3823,20 +3888,20 @@ var sod923 = (raw_params) => {
3823
3888
  pcb_component_id: "",
3824
3889
  route: [
3825
3890
  {
3826
- x: length20.parse(parameters.p) / 2 + 0.15,
3827
- y: length20.parse(parameters.h) / 2
3891
+ x: length21.parse(parameters.p) / 2 + 0.15,
3892
+ y: length21.parse(parameters.h) / 2
3828
3893
  },
3829
3894
  {
3830
- x: -length20.parse(parameters.w) / 2 - 0.15,
3831
- y: length20.parse(parameters.h) / 2
3895
+ x: -length21.parse(parameters.w) / 2 - 0.15,
3896
+ y: length21.parse(parameters.h) / 2
3832
3897
  },
3833
3898
  {
3834
- x: -length20.parse(parameters.w) / 2 - 0.15,
3835
- y: -length20.parse(parameters.h) / 2
3899
+ x: -length21.parse(parameters.w) / 2 - 0.15,
3900
+ y: -length21.parse(parameters.h) / 2
3836
3901
  },
3837
3902
  {
3838
- x: length20.parse(parameters.p) / 2 + 0.15,
3839
- y: -length20.parse(parameters.h) / 2
3903
+ x: length21.parse(parameters.p) / 2 + 0.15,
3904
+ y: -length21.parse(parameters.h) / 2
3840
3905
  }
3841
3906
  ],
3842
3907
  stroke_width: 0.1,
@@ -3879,22 +3944,22 @@ var sodWithoutParsing5 = (parameters) => {
3879
3944
  };
3880
3945
 
3881
3946
  // src/fn/sod882.ts
3882
- import { z as z29 } from "zod";
3883
- import { length as length21 } from "circuit-json";
3884
- var sod_def6 = z29.object({
3885
- fn: z29.string(),
3886
- num_pins: z29.literal(2).default(2),
3887
- w: z29.string().default("1.3mm"),
3888
- h: z29.string().default("0.9mm"),
3889
- pl: z29.string().default("0.4mm"),
3890
- pw: z29.string().default("0.7mm"),
3891
- p: z29.string().default("0.7mm")
3947
+ import { z as z30 } from "zod";
3948
+ import { length as length22 } from "circuit-json";
3949
+ var sod_def6 = z30.object({
3950
+ fn: z30.string(),
3951
+ num_pins: z30.literal(2).default(2),
3952
+ w: z30.string().default("1.3mm"),
3953
+ h: z30.string().default("0.9mm"),
3954
+ pl: z30.string().default("0.4mm"),
3955
+ pw: z30.string().default("0.7mm"),
3956
+ p: z30.string().default("0.7mm")
3892
3957
  });
3893
3958
  var sod882 = (raw_params) => {
3894
3959
  const parameters = sod_def6.parse(raw_params);
3895
3960
  const silkscreenRefText = silkscreenRef(
3896
3961
  0,
3897
- length21.parse(parameters.h) + 0.1,
3962
+ length22.parse(parameters.h) + 0.1,
3898
3963
  0.3
3899
3964
  );
3900
3965
  const silkscreenLine = {
@@ -3903,20 +3968,20 @@ var sod882 = (raw_params) => {
3903
3968
  pcb_component_id: "",
3904
3969
  route: [
3905
3970
  {
3906
- x: length21.parse(parameters.p) / 2 + 0.2,
3907
- y: length21.parse(parameters.h) / 2 + 0.2
3971
+ x: length22.parse(parameters.p) / 2 + 0.2,
3972
+ y: length22.parse(parameters.h) / 2 + 0.2
3908
3973
  },
3909
3974
  {
3910
- x: -length21.parse(parameters.w) / 2 - 0.2,
3911
- y: length21.parse(parameters.h) / 2 + 0.2
3975
+ x: -length22.parse(parameters.w) / 2 - 0.2,
3976
+ y: length22.parse(parameters.h) / 2 + 0.2
3912
3977
  },
3913
3978
  {
3914
- x: -length21.parse(parameters.w) / 2 - 0.2,
3915
- y: -length21.parse(parameters.h) / 2 - 0.2
3979
+ x: -length22.parse(parameters.w) / 2 - 0.2,
3980
+ y: -length22.parse(parameters.h) / 2 - 0.2
3916
3981
  },
3917
3982
  {
3918
- x: length21.parse(parameters.p) / 2 + 0.2,
3919
- y: -length21.parse(parameters.h) / 2 - 0.2
3983
+ x: length22.parse(parameters.p) / 2 + 0.2,
3984
+ y: -length22.parse(parameters.h) / 2 - 0.2
3920
3985
  }
3921
3986
  ],
3922
3987
  stroke_width: 0.1,
@@ -3959,22 +4024,22 @@ var sodWithoutParsing6 = (parameters) => {
3959
4024
  };
3960
4025
 
3961
4026
  // src/fn/sod323f.ts
3962
- import { z as z30 } from "zod";
3963
- import { length as length22 } from "circuit-json";
3964
- var sod_def7 = z30.object({
3965
- fn: z30.string(),
3966
- num_pins: z30.literal(2).default(2),
3967
- w: z30.string().default("3,05mm"),
3968
- h: z30.string().default("1.65mm"),
3969
- pl: z30.string().default("0.6mm"),
3970
- pw: z30.string().default("0.6mm"),
3971
- pad_spacing: z30.string().default("2.2mm")
4027
+ import { z as z31 } from "zod";
4028
+ import { length as length23 } from "circuit-json";
4029
+ var sod_def7 = z31.object({
4030
+ fn: z31.string(),
4031
+ num_pins: z31.literal(2).default(2),
4032
+ w: z31.string().default("3,05mm"),
4033
+ h: z31.string().default("1.65mm"),
4034
+ pl: z31.string().default("0.6mm"),
4035
+ pw: z31.string().default("0.6mm"),
4036
+ pad_spacing: z31.string().default("2.2mm")
3972
4037
  });
3973
4038
  var sod323f = (raw_params) => {
3974
4039
  const parameters = sod_def7.parse(raw_params);
3975
4040
  const silkscreenRefText = silkscreenRef(
3976
4041
  0,
3977
- length22.parse(parameters.h),
4042
+ length23.parse(parameters.h),
3978
4043
  0.3
3979
4044
  );
3980
4045
  const silkscreenLine = {
@@ -3983,20 +4048,20 @@ var sod323f = (raw_params) => {
3983
4048
  pcb_component_id: "",
3984
4049
  route: [
3985
4050
  {
3986
- x: length22.parse(parameters.pad_spacing) / 2,
3987
- y: length22.parse(parameters.h) / 2
4051
+ x: length23.parse(parameters.pad_spacing) / 2,
4052
+ y: length23.parse(parameters.h) / 2
3988
4053
  },
3989
4054
  {
3990
- x: -length22.parse(parameters.w) / 2 - 0.2,
3991
- y: length22.parse(parameters.h) / 2
4055
+ x: -length23.parse(parameters.w) / 2 - 0.2,
4056
+ y: length23.parse(parameters.h) / 2
3992
4057
  },
3993
4058
  {
3994
- x: -length22.parse(parameters.w) / 2 - 0.2,
3995
- y: -length22.parse(parameters.h) / 2
4059
+ x: -length23.parse(parameters.w) / 2 - 0.2,
4060
+ y: -length23.parse(parameters.h) / 2
3996
4061
  },
3997
4062
  {
3998
- x: length22.parse(parameters.pad_spacing) / 2,
3999
- y: -length22.parse(parameters.h) / 2
4063
+ x: length23.parse(parameters.pad_spacing) / 2,
4064
+ y: -length23.parse(parameters.h) / 2
4000
4065
  }
4001
4066
  ],
4002
4067
  stroke_width: 0.1,
@@ -4039,22 +4104,22 @@ var sodWithoutParsing7 = (parameters) => {
4039
4104
  };
4040
4105
 
4041
4106
  // src/fn/sod123f.ts
4042
- import { z as z31 } from "zod";
4043
- import { length as length23 } from "circuit-json";
4044
- var sod_def8 = z31.object({
4045
- fn: z31.string(),
4046
- num_pins: z31.literal(2).default(2),
4047
- w: z31.string().default("4.4mm"),
4048
- h: z31.string().default("2.1mm"),
4049
- pl: z31.string().default("1.2mm"),
4050
- pw: z31.string().default("1.2mm"),
4051
- p: z31.string().default("2.9mm")
4107
+ import { z as z32 } from "zod";
4108
+ import { length as length24 } from "circuit-json";
4109
+ var sod_def8 = z32.object({
4110
+ fn: z32.string(),
4111
+ num_pins: z32.literal(2).default(2),
4112
+ w: z32.string().default("4.4mm"),
4113
+ h: z32.string().default("2.1mm"),
4114
+ pl: z32.string().default("1.2mm"),
4115
+ pw: z32.string().default("1.2mm"),
4116
+ p: z32.string().default("2.9mm")
4052
4117
  });
4053
4118
  var sod123f = (raw_params) => {
4054
4119
  const parameters = sod_def8.parse(raw_params);
4055
4120
  const silkscreenRefText = silkscreenRef(
4056
4121
  0,
4057
- length23.parse(parameters.h),
4122
+ length24.parse(parameters.h),
4058
4123
  0.3
4059
4124
  );
4060
4125
  const silkscreenLine = {
@@ -4063,20 +4128,20 @@ var sod123f = (raw_params) => {
4063
4128
  pcb_component_id: "",
4064
4129
  route: [
4065
4130
  {
4066
- x: length23.parse(parameters.p) / 2,
4067
- y: length23.parse(parameters.h) / 2
4131
+ x: length24.parse(parameters.p) / 2,
4132
+ y: length24.parse(parameters.h) / 2
4068
4133
  },
4069
4134
  {
4070
- x: -length23.parse(parameters.w) / 2 - 0.2,
4071
- y: length23.parse(parameters.h) / 2
4135
+ x: -length24.parse(parameters.w) / 2 - 0.2,
4136
+ y: length24.parse(parameters.h) / 2
4072
4137
  },
4073
4138
  {
4074
- x: -length23.parse(parameters.w) / 2 - 0.2,
4075
- y: -length23.parse(parameters.h) / 2
4139
+ x: -length24.parse(parameters.w) / 2 - 0.2,
4140
+ y: -length24.parse(parameters.h) / 2
4076
4141
  },
4077
4142
  {
4078
- x: length23.parse(parameters.p) / 2,
4079
- y: -length23.parse(parameters.h) / 2
4143
+ x: length24.parse(parameters.p) / 2,
4144
+ y: -length24.parse(parameters.h) / 2
4080
4145
  }
4081
4146
  ],
4082
4147
  stroke_width: 0.1,
@@ -4119,22 +4184,22 @@ var sodWithoutParsing8 = (parameters) => {
4119
4184
  };
4120
4185
 
4121
4186
  // src/fn/sod123fl.ts
4122
- import { z as z32 } from "zod";
4123
- import { length as length24 } from "circuit-json";
4124
- var sod123FL_def = z32.object({
4125
- fn: z32.string(),
4126
- num_pins: z32.literal(2).default(2),
4127
- w: z32.string().default("4.4mm"),
4128
- h: z32.string().default("2.1mm"),
4129
- pl: z32.string().default("0.91mm"),
4130
- pw: z32.string().default("1.22mm"),
4131
- p: z32.string().default("3.146mm")
4132
- });
4187
+ import { z as z33 } from "zod";
4188
+ import { length as length25 } from "circuit-json";
4189
+ var sod123FL_def = z33.object({
4190
+ fn: z33.string(),
4191
+ num_pins: z33.literal(2).default(2),
4192
+ w: z33.string().default("4.4mm"),
4193
+ h: z33.string().default("2.1mm"),
4194
+ pl: z33.string().default("0.91mm"),
4195
+ pw: z33.string().default("1.22mm"),
4196
+ p: z33.string().default("3.146mm")
4197
+ });
4133
4198
  var sod123fl = (raw_params) => {
4134
4199
  const parameters = sod123FL_def.parse(raw_params);
4135
4200
  const silkscreenRefText = silkscreenRef(
4136
4201
  0,
4137
- length24.parse(parameters.h),
4202
+ length25.parse(parameters.h),
4138
4203
  0.3
4139
4204
  );
4140
4205
  const silkscreenLine = {
@@ -4143,20 +4208,20 @@ var sod123fl = (raw_params) => {
4143
4208
  pcb_component_id: "",
4144
4209
  route: [
4145
4210
  {
4146
- x: length24.parse(parameters.p) / 2,
4147
- y: length24.parse(parameters.h) / 2
4211
+ x: length25.parse(parameters.p) / 2,
4212
+ y: length25.parse(parameters.h) / 2
4148
4213
  },
4149
4214
  {
4150
- x: -length24.parse(parameters.w) / 2 - 0.2,
4151
- y: length24.parse(parameters.h) / 2
4215
+ x: -length25.parse(parameters.w) / 2 - 0.2,
4216
+ y: length25.parse(parameters.h) / 2
4152
4217
  },
4153
4218
  {
4154
- x: -length24.parse(parameters.w) / 2 - 0.2,
4155
- y: -length24.parse(parameters.h) / 2
4219
+ x: -length25.parse(parameters.w) / 2 - 0.2,
4220
+ y: -length25.parse(parameters.h) / 2
4156
4221
  },
4157
4222
  {
4158
- x: length24.parse(parameters.p) / 2,
4159
- y: -length24.parse(parameters.h) / 2
4223
+ x: length25.parse(parameters.p) / 2,
4224
+ y: -length25.parse(parameters.h) / 2
4160
4225
  }
4161
4226
  ],
4162
4227
  stroke_width: 0.1,
@@ -4199,22 +4264,22 @@ var sodWithoutParsing9 = (parameters) => {
4199
4264
  };
4200
4265
 
4201
4266
  // src/fn/sod723.ts
4202
- import { z as z33 } from "zod";
4203
- import { length as length25 } from "circuit-json";
4204
- var sod_def9 = z33.object({
4205
- fn: z33.string(),
4206
- num_pins: z33.literal(2).default(2),
4207
- w: z33.string().default("1.80mm"),
4208
- h: z33.string().default("1.00mm"),
4209
- pl: z33.string().default("0.66mm"),
4210
- pw: z33.string().default("0.5mm"),
4211
- p: z33.string().default("0.8mm")
4267
+ import { z as z34 } from "zod";
4268
+ import { length as length26 } from "circuit-json";
4269
+ var sod_def9 = z34.object({
4270
+ fn: z34.string(),
4271
+ num_pins: z34.literal(2).default(2),
4272
+ w: z34.string().default("1.80mm"),
4273
+ h: z34.string().default("1.00mm"),
4274
+ pl: z34.string().default("0.66mm"),
4275
+ pw: z34.string().default("0.5mm"),
4276
+ p: z34.string().default("0.8mm")
4212
4277
  });
4213
4278
  var sod723 = (raw_params) => {
4214
4279
  const parameters = sod_def9.parse(raw_params);
4215
4280
  const silkscreenRefText = silkscreenRef(
4216
4281
  0,
4217
- length25.parse(parameters.h),
4282
+ length26.parse(parameters.h),
4218
4283
  0.3
4219
4284
  );
4220
4285
  const silkscreenLine = {
@@ -4223,20 +4288,20 @@ var sod723 = (raw_params) => {
4223
4288
  pcb_component_id: "",
4224
4289
  route: [
4225
4290
  {
4226
- x: length25.parse(parameters.p) / 2,
4227
- y: length25.parse(parameters.h) / 2
4291
+ x: length26.parse(parameters.p) / 2,
4292
+ y: length26.parse(parameters.h) / 2
4228
4293
  },
4229
4294
  {
4230
- x: -length25.parse(parameters.w) / 2 - 0.1,
4231
- y: length25.parse(parameters.h) / 2
4295
+ x: -length26.parse(parameters.w) / 2 - 0.1,
4296
+ y: length26.parse(parameters.h) / 2
4232
4297
  },
4233
4298
  {
4234
- x: -length25.parse(parameters.w) / 2 - 0.1,
4235
- y: -length25.parse(parameters.h) / 2
4299
+ x: -length26.parse(parameters.w) / 2 - 0.1,
4300
+ y: -length26.parse(parameters.h) / 2
4236
4301
  },
4237
4302
  {
4238
- x: length25.parse(parameters.p) / 2,
4239
- y: -length25.parse(parameters.h) / 2
4303
+ x: length26.parse(parameters.p) / 2,
4304
+ y: -length26.parse(parameters.h) / 2
4240
4305
  }
4241
4306
  ],
4242
4307
  stroke_width: 0.1,
@@ -4279,22 +4344,22 @@ var sodWithoutParsing10 = (parameters) => {
4279
4344
  };
4280
4345
 
4281
4346
  // src/fn/sod128.ts
4282
- import { z as z34 } from "zod";
4283
- import { length as length26 } from "circuit-json";
4284
- var sod_def10 = z34.object({
4285
- fn: z34.string(),
4286
- num_pins: z34.literal(2).default(2),
4287
- w: z34.string().default("6.2mm"),
4288
- h: z34.string().default("3.4mm"),
4289
- pl: z34.string().default("1.4mm"),
4290
- pw: z34.string().default("2.1mm"),
4291
- p: z34.string().default("4.4mm")
4347
+ import { z as z35 } from "zod";
4348
+ import { length as length27 } from "circuit-json";
4349
+ var sod_def10 = z35.object({
4350
+ fn: z35.string(),
4351
+ num_pins: z35.literal(2).default(2),
4352
+ w: z35.string().default("6.2mm"),
4353
+ h: z35.string().default("3.4mm"),
4354
+ pl: z35.string().default("1.4mm"),
4355
+ pw: z35.string().default("2.1mm"),
4356
+ p: z35.string().default("4.4mm")
4292
4357
  });
4293
4358
  var sod128 = (raw_params) => {
4294
4359
  const parameters = sod_def10.parse(raw_params);
4295
4360
  const silkscreenRefText = silkscreenRef(
4296
4361
  0,
4297
- length26.parse(parameters.h) / 2 + 0.4,
4362
+ length27.parse(parameters.h) / 2 + 0.4,
4298
4363
  0.3
4299
4364
  );
4300
4365
  const silkscreenLine = {
@@ -4303,20 +4368,20 @@ var sod128 = (raw_params) => {
4303
4368
  pcb_component_id: "",
4304
4369
  route: [
4305
4370
  {
4306
- x: length26.parse(parameters.p) / 2,
4307
- y: length26.parse(parameters.h) / 2
4371
+ x: length27.parse(parameters.p) / 2,
4372
+ y: length27.parse(parameters.h) / 2
4308
4373
  },
4309
4374
  {
4310
- x: -length26.parse(parameters.w) / 2 - 0.2,
4311
- y: length26.parse(parameters.h) / 2
4375
+ x: -length27.parse(parameters.w) / 2 - 0.2,
4376
+ y: length27.parse(parameters.h) / 2
4312
4377
  },
4313
4378
  {
4314
- x: -length26.parse(parameters.w) / 2 - 0.2,
4315
- y: -length26.parse(parameters.h) / 2
4379
+ x: -length27.parse(parameters.w) / 2 - 0.2,
4380
+ y: -length27.parse(parameters.h) / 2
4316
4381
  },
4317
4382
  {
4318
- x: length26.parse(parameters.p) / 2,
4319
- y: -length26.parse(parameters.h) / 2
4383
+ x: length27.parse(parameters.p) / 2,
4384
+ y: -length27.parse(parameters.h) / 2
4320
4385
  }
4321
4386
  ],
4322
4387
  stroke_width: 0.1,
@@ -4359,29 +4424,29 @@ var sodWithoutParsing11 = (parameters) => {
4359
4424
  };
4360
4425
 
4361
4426
  // src/fn/sot89.ts
4362
- import { z as z35 } from "zod";
4363
- var sot89_def = z35.object({
4364
- fn: z35.string(),
4365
- num_pins: z35.union([z35.literal(3), z35.literal(5)]).default(3),
4366
- w: z35.string().default("4.20mm"),
4367
- h: z35.string().default("4.80mm"),
4368
- pl: z35.string().default("1.3mm"),
4369
- pw: z35.string().default("0.9mm"),
4370
- p: z35.string().default("1.5mm"),
4371
- string: z35.string().optional()
4427
+ import { z as z36 } from "zod";
4428
+ var sot89_def = z36.object({
4429
+ fn: z36.string(),
4430
+ num_pins: z36.union([z36.literal(3), z36.literal(5)]).default(3),
4431
+ w: z36.string().default("4.20mm"),
4432
+ h: z36.string().default("4.80mm"),
4433
+ pl: z36.string().default("1.3mm"),
4434
+ pw: z36.string().default("0.9mm"),
4435
+ p: z36.string().default("1.5mm"),
4436
+ string: z36.string().optional()
4372
4437
  });
4373
4438
  var sot89_3 = (parameters) => {
4374
4439
  const pads = [];
4375
4440
  const padGap = Number.parseFloat(parameters.p);
4376
4441
  const padWidth = Number.parseFloat(parameters.pw);
4377
- const length48 = Number.parseFloat(parameters.w);
4442
+ const length50 = Number.parseFloat(parameters.w);
4378
4443
  const padHeight = Number.parseFloat(parameters.pl);
4379
4444
  const centerExtra = 0.175;
4380
4445
  const outerPadXShift = (padHeight - (padHeight + centerExtra)) / 2;
4381
4446
  pads.push(
4382
- rectpad(1, -length48 / 2 + outerPadXShift, padGap, padHeight, padWidth),
4383
- rectpad(2, -length48 / 2, 0, padHeight + centerExtra, padWidth),
4384
- rectpad(3, -length48 / 2 + outerPadXShift, -padGap, padHeight, padWidth)
4447
+ rectpad(1, -length50 / 2 + outerPadXShift, padGap, padHeight, padWidth),
4448
+ rectpad(2, -length50 / 2, 0, padHeight + centerExtra, padWidth),
4449
+ rectpad(3, -length50 / 2 + outerPadXShift, -padGap, padHeight, padWidth)
4385
4450
  );
4386
4451
  const silkscreenRefText = silkscreenRef(0, 0, 0.3);
4387
4452
  const width = Number.parseFloat(parameters.w) / 2 - 1;
@@ -4421,7 +4486,7 @@ var sot89_5 = (parameters) => {
4421
4486
  const pads = [];
4422
4487
  const padGap = Number.parseFloat(parameters.p);
4423
4488
  const padWidth = Number.parseFloat(parameters.pw);
4424
- const length48 = Number.parseFloat(parameters.w);
4489
+ const length50 = Number.parseFloat(parameters.w);
4425
4490
  pads.push(
4426
4491
  rectpad(1, -1.85, -1.5, 1.5, 0.7),
4427
4492
  rectpad(2, -1.85, 1.5, 1.5, 0.7),
@@ -4489,18 +4554,18 @@ var sot89 = (raw_params) => {
4489
4554
 
4490
4555
  // src/fn/to220.ts
4491
4556
  import {
4492
- length as length27
4557
+ length as length28
4493
4558
  } from "circuit-json";
4494
- import { z as z36 } from "zod";
4495
- var to220_def = z36.object({
4496
- fn: z36.string(),
4497
- p: length27.optional().default("5.0mm"),
4498
- id: length27.optional().default("1.0mm"),
4499
- od: length27.optional().default("1.9mm"),
4500
- w: length27.optional().default("13mm"),
4501
- h: length27.optional().default("7mm"),
4502
- num_pins: z36.number().optional(),
4503
- string: z36.string().optional()
4559
+ import { z as z37 } from "zod";
4560
+ var to220_def = z37.object({
4561
+ fn: z37.string(),
4562
+ p: length28.optional().default("5.0mm"),
4563
+ id: length28.optional().default("1.0mm"),
4564
+ od: length28.optional().default("1.9mm"),
4565
+ w: length28.optional().default("13mm"),
4566
+ h: length28.optional().default("7mm"),
4567
+ num_pins: z37.number().optional(),
4568
+ string: z37.string().optional()
4504
4569
  });
4505
4570
  var to220 = (raw_params) => {
4506
4571
  const parameters = to220_def.parse(raw_params);
@@ -4580,22 +4645,22 @@ var to220 = (raw_params) => {
4580
4645
  };
4581
4646
 
4582
4647
  // src/fn/minimelf.ts
4583
- import { z as z37 } from "zod";
4584
- import { length as length28 } from "circuit-json";
4585
- var minimelf_def = z37.object({
4586
- fn: z37.string(),
4587
- num_pins: z37.literal(2).default(2),
4588
- w: z37.string().default("5.40mm"),
4589
- h: z37.string().default("2.30mm"),
4590
- pl: z37.string().default("1.30mm"),
4591
- pw: z37.string().default("1.70mm"),
4592
- p: z37.string().default("3.5mm")
4648
+ import { z as z38 } from "zod";
4649
+ import { length as length29 } from "circuit-json";
4650
+ var minimelf_def = z38.object({
4651
+ fn: z38.string(),
4652
+ num_pins: z38.literal(2).default(2),
4653
+ w: z38.string().default("5.40mm"),
4654
+ h: z38.string().default("2.30mm"),
4655
+ pl: z38.string().default("1.30mm"),
4656
+ pw: z38.string().default("1.70mm"),
4657
+ p: z38.string().default("3.5mm")
4593
4658
  });
4594
4659
  var minimelf = (raw_params) => {
4595
4660
  const parameters = minimelf_def.parse(raw_params);
4596
4661
  const silkscreenRefText = silkscreenRef(
4597
4662
  0,
4598
- length28.parse(parameters.h) / 2 + 0.4,
4663
+ length29.parse(parameters.h) / 2 + 0.4,
4599
4664
  0.3
4600
4665
  );
4601
4666
  const silkscreenLine = {
@@ -4604,20 +4669,20 @@ var minimelf = (raw_params) => {
4604
4669
  pcb_component_id: "",
4605
4670
  route: [
4606
4671
  {
4607
- x: length28.parse(parameters.p) / 2,
4608
- y: length28.parse(parameters.h) / 2
4672
+ x: length29.parse(parameters.p) / 2,
4673
+ y: length29.parse(parameters.h) / 2
4609
4674
  },
4610
4675
  {
4611
- x: -length28.parse(parameters.w) / 2,
4612
- y: length28.parse(parameters.h) / 2
4676
+ x: -length29.parse(parameters.w) / 2,
4677
+ y: length29.parse(parameters.h) / 2
4613
4678
  },
4614
4679
  {
4615
- x: -length28.parse(parameters.w) / 2,
4616
- y: -length28.parse(parameters.h) / 2
4680
+ x: -length29.parse(parameters.w) / 2,
4681
+ y: -length29.parse(parameters.h) / 2
4617
4682
  },
4618
4683
  {
4619
- x: length28.parse(parameters.p) / 2,
4620
- y: -length28.parse(parameters.h) / 2
4684
+ x: length29.parse(parameters.p) / 2,
4685
+ y: -length29.parse(parameters.h) / 2
4621
4686
  }
4622
4687
  ],
4623
4688
  stroke_width: 0.1,
@@ -4656,22 +4721,22 @@ var miniMelfWithoutParsing = (parameters) => {
4656
4721
  };
4657
4722
 
4658
4723
  // src/fn/sod882d.ts
4659
- import { z as z38 } from "zod";
4660
- import { length as length29 } from "circuit-json";
4661
- var sod_def11 = z38.object({
4662
- fn: z38.string(),
4663
- num_pins: z38.literal(2).default(2),
4664
- w: z38.string().default("1.90mm"),
4665
- h: z38.string().default("1.33mm"),
4666
- pl: z38.string().default("0.5mm"),
4667
- pw: z38.string().default("0.7mm"),
4668
- p: z38.string().default("0.8mm")
4724
+ import { z as z39 } from "zod";
4725
+ import { length as length30 } from "circuit-json";
4726
+ var sod_def11 = z39.object({
4727
+ fn: z39.string(),
4728
+ num_pins: z39.literal(2).default(2),
4729
+ w: z39.string().default("1.90mm"),
4730
+ h: z39.string().default("1.33mm"),
4731
+ pl: z39.string().default("0.5mm"),
4732
+ pw: z39.string().default("0.7mm"),
4733
+ p: z39.string().default("0.8mm")
4669
4734
  });
4670
4735
  var sod882d = (raw_params) => {
4671
4736
  const parameters = sod_def11.parse(raw_params);
4672
4737
  const silkscreenRefText = silkscreenRef(
4673
4738
  0,
4674
- length29.parse(parameters.h) + 0.1,
4739
+ length30.parse(parameters.h) + 0.1,
4675
4740
  0.3
4676
4741
  );
4677
4742
  const silkscreenLine = {
@@ -4680,20 +4745,20 @@ var sod882d = (raw_params) => {
4680
4745
  pcb_component_id: "",
4681
4746
  route: [
4682
4747
  {
4683
- x: length29.parse(parameters.p) / 2 + 0.1,
4684
- y: length29.parse(parameters.h) / 2
4748
+ x: length30.parse(parameters.p) / 2 + 0.1,
4749
+ y: length30.parse(parameters.h) / 2
4685
4750
  },
4686
4751
  {
4687
- x: -length29.parse(parameters.w) / 2,
4688
- y: length29.parse(parameters.h) / 2
4752
+ x: -length30.parse(parameters.w) / 2,
4753
+ y: length30.parse(parameters.h) / 2
4689
4754
  },
4690
4755
  {
4691
- x: -length29.parse(parameters.w) / 2,
4692
- y: -length29.parse(parameters.h) / 2
4756
+ x: -length30.parse(parameters.w) / 2,
4757
+ y: -length30.parse(parameters.h) / 2
4693
4758
  },
4694
4759
  {
4695
- x: length29.parse(parameters.p) / 2 + 0.1,
4696
- y: -length29.parse(parameters.h) / 2
4760
+ x: length30.parse(parameters.p) / 2 + 0.1,
4761
+ y: -length30.parse(parameters.h) / 2
4697
4762
  }
4698
4763
  ],
4699
4764
  stroke_width: 0.1,
@@ -4736,22 +4801,22 @@ var sodWithoutParsing12 = (parameters) => {
4736
4801
  };
4737
4802
 
4738
4803
  // src/fn/melf.ts
4739
- import { z as z39 } from "zod";
4740
- import { length as length30 } from "circuit-json";
4741
- var melf_def = z39.object({
4742
- fn: z39.string(),
4743
- num_pins: z39.literal(2).default(2),
4744
- w: z39.string().default("7.0mm"),
4745
- h: z39.string().default("3.35mm"),
4746
- pl: z39.string().default("1.50mm"),
4747
- pw: z39.string().default("2.70mm"),
4748
- p: z39.string().default("4.8mm")
4804
+ import { z as z40 } from "zod";
4805
+ import { length as length31 } from "circuit-json";
4806
+ var melf_def = z40.object({
4807
+ fn: z40.string(),
4808
+ num_pins: z40.literal(2).default(2),
4809
+ w: z40.string().default("7.0mm"),
4810
+ h: z40.string().default("3.35mm"),
4811
+ pl: z40.string().default("1.50mm"),
4812
+ pw: z40.string().default("2.70mm"),
4813
+ p: z40.string().default("4.8mm")
4749
4814
  });
4750
4815
  var melf = (raw_params) => {
4751
4816
  const parameters = melf_def.parse(raw_params);
4752
4817
  const silkscreenRefText = silkscreenRef(
4753
4818
  0,
4754
- length30.parse(parameters.h),
4819
+ length31.parse(parameters.h),
4755
4820
  0.3
4756
4821
  );
4757
4822
  const silkscreenLine = {
@@ -4760,20 +4825,20 @@ var melf = (raw_params) => {
4760
4825
  pcb_component_id: "",
4761
4826
  route: [
4762
4827
  {
4763
- x: length30.parse(parameters.p) / 2,
4764
- y: length30.parse(parameters.h) / 2
4828
+ x: length31.parse(parameters.p) / 2,
4829
+ y: length31.parse(parameters.h) / 2
4765
4830
  },
4766
4831
  {
4767
- x: -length30.parse(parameters.w) / 2,
4768
- y: length30.parse(parameters.h) / 2
4832
+ x: -length31.parse(parameters.w) / 2,
4833
+ y: length31.parse(parameters.h) / 2
4769
4834
  },
4770
4835
  {
4771
- x: -length30.parse(parameters.w) / 2,
4772
- y: -length30.parse(parameters.h) / 2
4836
+ x: -length31.parse(parameters.w) / 2,
4837
+ y: -length31.parse(parameters.h) / 2
4773
4838
  },
4774
4839
  {
4775
- x: length30.parse(parameters.p) / 2,
4776
- y: -length30.parse(parameters.h) / 2
4840
+ x: length31.parse(parameters.p) / 2,
4841
+ y: -length31.parse(parameters.h) / 2
4777
4842
  }
4778
4843
  ],
4779
4844
  stroke_width: 0.1,
@@ -4816,22 +4881,22 @@ var melfWithoutParsing = (parameters) => {
4816
4881
  };
4817
4882
 
4818
4883
  // src/fn/micromelf.ts
4819
- import { z as z40 } from "zod";
4820
- import { length as length31 } from "circuit-json";
4821
- var micromelf_def = z40.object({
4822
- fn: z40.string(),
4823
- num_pins: z40.literal(2).default(2),
4824
- w: z40.string().default("3.0mm"),
4825
- h: z40.string().default("1.80mm"),
4826
- pl: z40.string().default("0.80mm"),
4827
- pw: z40.string().default("1.20mm"),
4828
- p: z40.string().default("1.6mm")
4884
+ import { z as z41 } from "zod";
4885
+ import { length as length32 } from "circuit-json";
4886
+ var micromelf_def = z41.object({
4887
+ fn: z41.string(),
4888
+ num_pins: z41.literal(2).default(2),
4889
+ w: z41.string().default("3.0mm"),
4890
+ h: z41.string().default("1.80mm"),
4891
+ pl: z41.string().default("0.80mm"),
4892
+ pw: z41.string().default("1.20mm"),
4893
+ p: z41.string().default("1.6mm")
4829
4894
  });
4830
4895
  var micromelf = (raw_params) => {
4831
4896
  const parameters = micromelf_def.parse(raw_params);
4832
4897
  const silkscreenRefText = silkscreenRef(
4833
4898
  0,
4834
- length31.parse(parameters.h),
4899
+ length32.parse(parameters.h),
4835
4900
  0.3
4836
4901
  );
4837
4902
  const silkscreenLine = {
@@ -4840,20 +4905,20 @@ var micromelf = (raw_params) => {
4840
4905
  pcb_component_id: "",
4841
4906
  route: [
4842
4907
  {
4843
- x: length31.parse(parameters.p) / 2,
4844
- y: length31.parse(parameters.h) / 2
4908
+ x: length32.parse(parameters.p) / 2,
4909
+ y: length32.parse(parameters.h) / 2
4845
4910
  },
4846
4911
  {
4847
- x: -length31.parse(parameters.w) / 2 - 0.1,
4848
- y: length31.parse(parameters.h) / 2
4912
+ x: -length32.parse(parameters.w) / 2 - 0.1,
4913
+ y: length32.parse(parameters.h) / 2
4849
4914
  },
4850
4915
  {
4851
- x: -length31.parse(parameters.w) / 2 - 0.1,
4852
- y: -length31.parse(parameters.h) / 2
4916
+ x: -length32.parse(parameters.w) / 2 - 0.1,
4917
+ y: -length32.parse(parameters.h) / 2
4853
4918
  },
4854
4919
  {
4855
- x: length31.parse(parameters.p) / 2,
4856
- y: -length31.parse(parameters.h) / 2
4920
+ x: length32.parse(parameters.p) / 2,
4921
+ y: -length32.parse(parameters.h) / 2
4857
4922
  }
4858
4923
  ],
4859
4924
  stroke_width: 0.1,
@@ -4896,22 +4961,22 @@ var microMelfWithoutParsing = (parameters) => {
4896
4961
  };
4897
4962
 
4898
4963
  // src/fn/sma.ts
4899
- import { z as z41 } from "zod";
4900
- import { length as length32 } from "circuit-json";
4901
- var sma_def = z41.object({
4902
- fn: z41.string(),
4903
- num_pins: z41.literal(2).default(2),
4904
- w: z41.string().default("7.10mm"),
4905
- h: z41.string().default("3.40mm"),
4906
- pl: z41.string().default("2.45mm"),
4907
- pw: z41.string().default("1.80mm"),
4908
- p: z41.string().default("4.05mm")
4964
+ import { z as z42 } from "zod";
4965
+ import { length as length33 } from "circuit-json";
4966
+ var sma_def = z42.object({
4967
+ fn: z42.string(),
4968
+ num_pins: z42.literal(2).default(2),
4969
+ w: z42.string().default("7.10mm"),
4970
+ h: z42.string().default("3.40mm"),
4971
+ pl: z42.string().default("2.45mm"),
4972
+ pw: z42.string().default("1.80mm"),
4973
+ p: z42.string().default("4.05mm")
4909
4974
  });
4910
4975
  var sma = (raw_params) => {
4911
4976
  const parameters = sma_def.parse(raw_params);
4912
4977
  const silkscreenRefText = silkscreenRef(
4913
4978
  0,
4914
- length32.parse(parameters.h) / 2 + 0.5,
4979
+ length33.parse(parameters.h) / 2 + 0.5,
4915
4980
  0.3
4916
4981
  );
4917
4982
  const silkscreenLine = {
@@ -4920,20 +4985,20 @@ var sma = (raw_params) => {
4920
4985
  pcb_component_id: "",
4921
4986
  route: [
4922
4987
  {
4923
- x: length32.parse(parameters.p) / 2,
4924
- y: length32.parse(parameters.h) / 2
4988
+ x: length33.parse(parameters.p) / 2,
4989
+ y: length33.parse(parameters.h) / 2
4925
4990
  },
4926
4991
  {
4927
- x: -length32.parse(parameters.w) / 2 - 0.5,
4928
- y: length32.parse(parameters.h) / 2
4992
+ x: -length33.parse(parameters.w) / 2 - 0.5,
4993
+ y: length33.parse(parameters.h) / 2
4929
4994
  },
4930
4995
  {
4931
- x: -length32.parse(parameters.w) / 2 - 0.5,
4932
- y: -length32.parse(parameters.h) / 2
4996
+ x: -length33.parse(parameters.w) / 2 - 0.5,
4997
+ y: -length33.parse(parameters.h) / 2
4933
4998
  },
4934
4999
  {
4935
- x: length32.parse(parameters.p) / 2,
4936
- y: -length32.parse(parameters.h) / 2
5000
+ x: length33.parse(parameters.p) / 2,
5001
+ y: -length33.parse(parameters.h) / 2
4937
5002
  }
4938
5003
  ],
4939
5004
  stroke_width: 0.1,
@@ -4975,22 +5040,22 @@ var smaWithoutParsing = (parameters) => {
4975
5040
  };
4976
5041
 
4977
5042
  // src/fn/smf.ts
4978
- import { z as z42 } from "zod";
4979
- import { length as length33 } from "circuit-json";
4980
- var smf_def = z42.object({
4981
- fn: z42.string(),
4982
- num_pins: z42.literal(2).default(2),
4983
- w: z42.string().default("4.80mm"),
4984
- h: z42.string().default("2.10mm"),
4985
- pl: z42.string().default("1.30mm"),
4986
- pw: z42.string().default("1.40mm"),
4987
- p: z42.string().default("2.9mm")
5043
+ import { z as z43 } from "zod";
5044
+ import { length as length34 } from "circuit-json";
5045
+ var smf_def = z43.object({
5046
+ fn: z43.string(),
5047
+ num_pins: z43.literal(2).default(2),
5048
+ w: z43.string().default("4.80mm"),
5049
+ h: z43.string().default("2.10mm"),
5050
+ pl: z43.string().default("1.30mm"),
5051
+ pw: z43.string().default("1.40mm"),
5052
+ p: z43.string().default("2.9mm")
4988
5053
  });
4989
5054
  var smf = (raw_params) => {
4990
5055
  const parameters = smf_def.parse(raw_params);
4991
5056
  const silkscreenRefText = silkscreenRef(
4992
5057
  0,
4993
- length33.parse(parameters.h) - 0.5,
5058
+ length34.parse(parameters.h) - 0.5,
4994
5059
  0.3
4995
5060
  );
4996
5061
  const silkscreenLine = {
@@ -4999,20 +5064,20 @@ var smf = (raw_params) => {
4999
5064
  pcb_component_id: "",
5000
5065
  route: [
5001
5066
  {
5002
- x: length33.parse(parameters.p) / 2,
5003
- y: length33.parse(parameters.h) / 2
5067
+ x: length34.parse(parameters.p) / 2,
5068
+ y: length34.parse(parameters.h) / 2
5004
5069
  },
5005
5070
  {
5006
- x: -length33.parse(parameters.w) / 2,
5007
- y: length33.parse(parameters.h) / 2
5071
+ x: -length34.parse(parameters.w) / 2,
5072
+ y: length34.parse(parameters.h) / 2
5008
5073
  },
5009
5074
  {
5010
- x: -length33.parse(parameters.w) / 2,
5011
- y: -length33.parse(parameters.h) / 2
5075
+ x: -length34.parse(parameters.w) / 2,
5076
+ y: -length34.parse(parameters.h) / 2
5012
5077
  },
5013
5078
  {
5014
- x: length33.parse(parameters.p) / 2,
5015
- y: -length33.parse(parameters.h) / 2
5079
+ x: length34.parse(parameters.p) / 2,
5080
+ y: -length34.parse(parameters.h) / 2
5016
5081
  }
5017
5082
  ],
5018
5083
  stroke_width: 0.1,
@@ -5055,22 +5120,22 @@ var smfWithoutParsing = (parameters) => {
5055
5120
  };
5056
5121
 
5057
5122
  // src/fn/smb.ts
5058
- import { z as z43 } from "zod";
5059
- import { length as length34 } from "circuit-json";
5060
- var smb_def = z43.object({
5061
- fn: z43.string(),
5062
- num_pins: z43.literal(2).default(2),
5063
- w: z43.string().default("7.30mm"),
5064
- h: z43.string().default("4.40mm"),
5065
- pl: z43.string().default("2.50mm"),
5066
- pw: z43.string().default("2.30mm"),
5067
- p: z43.string().default("4.30mm")
5123
+ import { z as z44 } from "zod";
5124
+ import { length as length35 } from "circuit-json";
5125
+ var smb_def = z44.object({
5126
+ fn: z44.string(),
5127
+ num_pins: z44.literal(2).default(2),
5128
+ w: z44.string().default("7.30mm"),
5129
+ h: z44.string().default("4.40mm"),
5130
+ pl: z44.string().default("2.50mm"),
5131
+ pw: z44.string().default("2.30mm"),
5132
+ p: z44.string().default("4.30mm")
5068
5133
  });
5069
5134
  var smb = (raw_params) => {
5070
5135
  const parameters = smb_def.parse(raw_params);
5071
5136
  const silkscreenRefText = silkscreenRef(
5072
5137
  0,
5073
- length34.parse(parameters.h) / 2 + 0.5,
5138
+ length35.parse(parameters.h) / 2 + 0.5,
5074
5139
  0.3
5075
5140
  );
5076
5141
  const silkscreenLine = {
@@ -5079,20 +5144,20 @@ var smb = (raw_params) => {
5079
5144
  pcb_component_id: "",
5080
5145
  route: [
5081
5146
  {
5082
- x: length34.parse(parameters.p) / 2,
5083
- y: length34.parse(parameters.h) / 2
5147
+ x: length35.parse(parameters.p) / 2,
5148
+ y: length35.parse(parameters.h) / 2
5084
5149
  },
5085
5150
  {
5086
- x: -length34.parse(parameters.w) / 2 - 0.1,
5087
- y: length34.parse(parameters.h) / 2
5151
+ x: -length35.parse(parameters.w) / 2 - 0.1,
5152
+ y: length35.parse(parameters.h) / 2
5088
5153
  },
5089
5154
  {
5090
- x: -length34.parse(parameters.w) / 2 - 0.1,
5091
- y: -length34.parse(parameters.h) / 2
5155
+ x: -length35.parse(parameters.w) / 2 - 0.1,
5156
+ y: -length35.parse(parameters.h) / 2
5092
5157
  },
5093
5158
  {
5094
- x: length34.parse(parameters.p) / 2,
5095
- y: -length34.parse(parameters.h) / 2
5159
+ x: length35.parse(parameters.p) / 2,
5160
+ y: -length35.parse(parameters.h) / 2
5096
5161
  }
5097
5162
  ],
5098
5163
  stroke_width: 0.1,
@@ -5135,16 +5200,16 @@ var smbWithoutParsing = (parameters) => {
5135
5200
  };
5136
5201
 
5137
5202
  // src/fn/smc.ts
5138
- import { z as z44 } from "zod";
5139
- import { length as length35 } from "circuit-json";
5140
- var smc_def = z44.object({
5141
- fn: z44.string(),
5142
- num_pins: z44.literal(2).default(2),
5143
- w: z44.string().default("10.70mm"),
5144
- h: z44.string().default("6.60mm"),
5145
- pl: z44.string().default("3.30mm"),
5146
- pw: z44.string().default("2.50mm"),
5147
- p: z44.string().default("6.80mm")
5203
+ import { z as z45 } from "zod";
5204
+ import { length as length36 } from "circuit-json";
5205
+ var smc_def = z45.object({
5206
+ fn: z45.string(),
5207
+ num_pins: z45.literal(2).default(2),
5208
+ w: z45.string().default("10.70mm"),
5209
+ h: z45.string().default("6.60mm"),
5210
+ pl: z45.string().default("3.30mm"),
5211
+ pw: z45.string().default("2.50mm"),
5212
+ p: z45.string().default("6.80mm")
5148
5213
  });
5149
5214
  var smc = (raw_params) => {
5150
5215
  const parameters = smc_def.parse(raw_params);
@@ -5155,20 +5220,20 @@ var smc = (raw_params) => {
5155
5220
  pcb_component_id: "",
5156
5221
  route: [
5157
5222
  {
5158
- x: length35.parse(parameters.p) / 2,
5159
- y: length35.parse(parameters.h) / 2 - 0.8
5223
+ x: length36.parse(parameters.p) / 2,
5224
+ y: length36.parse(parameters.h) / 2 - 0.8
5160
5225
  },
5161
5226
  {
5162
- x: -length35.parse(parameters.w) / 2 - 0.8,
5163
- y: length35.parse(parameters.h) / 2 - 0.8
5227
+ x: -length36.parse(parameters.w) / 2 - 0.8,
5228
+ y: length36.parse(parameters.h) / 2 - 0.8
5164
5229
  },
5165
5230
  {
5166
- x: -length35.parse(parameters.w) / 2 - 0.8,
5167
- y: -length35.parse(parameters.h) / 2 + 0.8
5231
+ x: -length36.parse(parameters.w) / 2 - 0.8,
5232
+ y: -length36.parse(parameters.h) / 2 + 0.8
5168
5233
  },
5169
5234
  {
5170
- x: length35.parse(parameters.p) / 2,
5171
- y: -length35.parse(parameters.h) / 2 + 0.8
5235
+ x: length36.parse(parameters.p) / 2,
5236
+ y: -length36.parse(parameters.h) / 2 + 0.8
5172
5237
  }
5173
5238
  ],
5174
5239
  stroke_width: 0.1,
@@ -5210,16 +5275,16 @@ var smcWithoutParsing = (parameters) => {
5210
5275
  };
5211
5276
 
5212
5277
  // src/fn/sot223.ts
5213
- import { z as z45 } from "zod";
5214
- var sot223_def = z45.object({
5215
- fn: z45.string(),
5216
- num_pins: z45.number().default(4),
5217
- w: z45.string().default("8.50mm"),
5218
- h: z45.string().default("6.90mm"),
5219
- pl: z45.string().default("2mm"),
5220
- pw: z45.string().default("1.5mm"),
5221
- p: z45.string().default("2.30mm"),
5222
- string: z45.string().optional()
5278
+ import { z as z46 } from "zod";
5279
+ var sot223_def = z46.object({
5280
+ fn: z46.string(),
5281
+ num_pins: z46.number().default(4),
5282
+ w: z46.string().default("8.50mm"),
5283
+ h: z46.string().default("6.90mm"),
5284
+ pl: z46.string().default("2mm"),
5285
+ pw: z46.string().default("1.5mm"),
5286
+ p: z46.string().default("2.30mm"),
5287
+ string: z46.string().optional()
5223
5288
  });
5224
5289
  var sot223 = (raw_params) => {
5225
5290
  const match = raw_params.string?.match(/^sot223_(\d+)/);
@@ -5465,16 +5530,16 @@ var sot223_6 = (parameters) => {
5465
5530
  };
5466
5531
 
5467
5532
  // src/fn/sot23w.ts
5468
- import { z as z46 } from "zod";
5469
- var sot23w_def = z46.object({
5470
- fn: z46.string(),
5471
- num_pins: z46.number().default(3),
5472
- w: z46.string().default("3.40mm"),
5473
- h: z46.string().default("3.30mm"),
5474
- pl: z46.string().default("1mm"),
5475
- pw: z46.string().default("0.7mm"),
5476
- p: z46.string().default("1.2mm"),
5477
- string: z46.string().optional()
5533
+ import { z as z47 } from "zod";
5534
+ var sot23w_def = z47.object({
5535
+ fn: z47.string(),
5536
+ num_pins: z47.number().default(3),
5537
+ w: z47.string().default("3.40mm"),
5538
+ h: z47.string().default("3.30mm"),
5539
+ pl: z47.string().default("1mm"),
5540
+ pw: z47.string().default("0.7mm"),
5541
+ p: z47.string().default("1.2mm"),
5542
+ string: z47.string().optional()
5478
5543
  });
5479
5544
  var sot23w = (raw_params) => {
5480
5545
  const match = raw_params.string?.match(/^sot23w_(\d+)/);
@@ -5562,16 +5627,16 @@ var sot23w_3 = (parameters) => {
5562
5627
  };
5563
5628
 
5564
5629
  // src/fn/to92s.ts
5565
- import { z as z47 } from "zod";
5566
- var to92s_def = z47.object({
5567
- fn: z47.string(),
5568
- num_pins: z47.union([z47.literal(3), z47.literal(2)]).default(3),
5569
- p: z47.string().default("1.27mm"),
5570
- id: z47.string().default("0.72mm"),
5571
- od: z47.string().default("0.95mm"),
5572
- w: z47.string().default("2.5mm"),
5573
- h: z47.string().default("4.2mm"),
5574
- string: z47.string().optional()
5630
+ import { z as z48 } from "zod";
5631
+ var to92s_def = z48.object({
5632
+ fn: z48.string(),
5633
+ num_pins: z48.union([z48.literal(3), z48.literal(2)]).default(3),
5634
+ p: z48.string().default("1.27mm"),
5635
+ id: z48.string().default("0.72mm"),
5636
+ od: z48.string().default("0.95mm"),
5637
+ w: z48.string().default("2.5mm"),
5638
+ h: z48.string().default("4.2mm"),
5639
+ string: z48.string().optional()
5575
5640
  });
5576
5641
  var to92s_3 = (parameters) => {
5577
5642
  const { p, id, od, w, h } = parameters;
@@ -5638,18 +5703,18 @@ var to92s = (raw_params) => {
5638
5703
 
5639
5704
  // src/fn/jst.ts
5640
5705
  import {
5641
- length as length36
5706
+ length as length37
5642
5707
  } from "circuit-json";
5643
- import { z as z48 } from "zod";
5644
- var jst_def = z48.object({
5645
- fn: z48.string(),
5646
- p: length36.optional(),
5647
- id: length36.optional(),
5648
- pw: length36.optional(),
5649
- pl: length36.optional(),
5650
- w: length36.optional(),
5651
- h: length36.optional(),
5652
- sh: z48.union([z48.boolean(), z48.string(), z48.number()]).optional().transform((v) => {
5708
+ import { z as z49 } from "zod";
5709
+ var jst_def = z49.object({
5710
+ fn: z49.string(),
5711
+ p: length37.optional(),
5712
+ id: length37.optional(),
5713
+ pw: length37.optional(),
5714
+ pl: length37.optional(),
5715
+ w: length37.optional(),
5716
+ h: length37.optional(),
5717
+ sh: z49.union([z49.boolean(), z49.string(), z49.number()]).optional().transform((v) => {
5653
5718
  if (typeof v === "string") {
5654
5719
  const n = Number(v);
5655
5720
  return Number.isNaN(n) ? true : n;
@@ -5658,26 +5723,26 @@ var jst_def = z48.object({
5658
5723
  }).describe(
5659
5724
  'JST SH (Surface-mount) connector family. SH stands for "Super High-density".'
5660
5725
  ),
5661
- ph: z48.boolean().optional().describe(
5726
+ ph: z49.boolean().optional().describe(
5662
5727
  'JST PH (Through-hole) connector family. PH stands for "Pin Header".'
5663
5728
  ),
5664
- string: z48.string().optional()
5729
+ string: z49.string().optional()
5665
5730
  });
5666
5731
  var variantDefaults = {
5667
5732
  ph: {
5668
- p: length36.parse("2.2mm"),
5669
- id: length36.parse("0.70mm"),
5670
- pw: length36.parse("1.20mm"),
5671
- pl: length36.parse("1.20mm"),
5672
- w: length36.parse("6mm"),
5673
- h: length36.parse("5mm")
5733
+ p: length37.parse("2.2mm"),
5734
+ id: length37.parse("0.70mm"),
5735
+ pw: length37.parse("1.20mm"),
5736
+ pl: length37.parse("1.20mm"),
5737
+ w: length37.parse("6mm"),
5738
+ h: length37.parse("5mm")
5674
5739
  },
5675
5740
  sh: {
5676
- p: length36.parse("1mm"),
5677
- pw: length36.parse("0.6mm"),
5678
- pl: length36.parse("1.55mm"),
5679
- w: length36.parse("5.8mm"),
5680
- h: length36.parse("7.8mm")
5741
+ p: length37.parse("1mm"),
5742
+ pw: length37.parse("0.6mm"),
5743
+ pl: length37.parse("1.55mm"),
5744
+ w: length37.parse("5.8mm"),
5745
+ h: length37.parse("7.8mm")
5681
5746
  }
5682
5747
  };
5683
5748
  function getVariant(params) {
@@ -5776,22 +5841,22 @@ var jst = (raw_params) => {
5776
5841
  };
5777
5842
 
5778
5843
  // src/fn/sod110.ts
5779
- import { z as z49 } from "zod";
5780
- import { length as length37 } from "circuit-json";
5781
- var sod_def12 = z49.object({
5782
- fn: z49.string(),
5783
- num_pins: z49.literal(2).default(2),
5784
- w: z49.string().default("3.30mm"),
5785
- h: z49.string().default("1.70mm"),
5786
- pl: z49.string().default("0.80mm"),
5787
- pw: z49.string().default("1mm"),
5788
- p: z49.string().default("1.90mm")
5844
+ import { z as z50 } from "zod";
5845
+ import { length as length38 } from "circuit-json";
5846
+ var sod_def12 = z50.object({
5847
+ fn: z50.string(),
5848
+ num_pins: z50.literal(2).default(2),
5849
+ w: z50.string().default("3.30mm"),
5850
+ h: z50.string().default("1.70mm"),
5851
+ pl: z50.string().default("0.80mm"),
5852
+ pw: z50.string().default("1mm"),
5853
+ p: z50.string().default("1.90mm")
5789
5854
  });
5790
5855
  var sod110 = (raw_params) => {
5791
5856
  const parameters = sod_def12.parse(raw_params);
5792
5857
  const silkscreenRefText = silkscreenRef(
5793
5858
  0,
5794
- length37.parse(parameters.h) / 2 + 0.5,
5859
+ length38.parse(parameters.h) / 2 + 0.5,
5795
5860
  0.3
5796
5861
  );
5797
5862
  const silkscreenLine = {
@@ -5800,20 +5865,20 @@ var sod110 = (raw_params) => {
5800
5865
  pcb_component_id: "",
5801
5866
  route: [
5802
5867
  {
5803
- x: length37.parse(parameters.p) / 2,
5804
- y: length37.parse(parameters.h) / 2
5868
+ x: length38.parse(parameters.p) / 2,
5869
+ y: length38.parse(parameters.h) / 2
5805
5870
  },
5806
5871
  {
5807
- x: -length37.parse(parameters.w) / 2,
5808
- y: length37.parse(parameters.h) / 2
5872
+ x: -length38.parse(parameters.w) / 2,
5873
+ y: length38.parse(parameters.h) / 2
5809
5874
  },
5810
5875
  {
5811
- x: -length37.parse(parameters.w) / 2,
5812
- y: -length37.parse(parameters.h) / 2
5876
+ x: -length38.parse(parameters.w) / 2,
5877
+ y: -length38.parse(parameters.h) / 2
5813
5878
  },
5814
5879
  {
5815
- x: length37.parse(parameters.p) / 2,
5816
- y: -length37.parse(parameters.h) / 2
5880
+ x: length38.parse(parameters.p) / 2,
5881
+ y: -length38.parse(parameters.h) / 2
5817
5882
  }
5818
5883
  ],
5819
5884
  stroke_width: 0.1,
@@ -5855,8 +5920,8 @@ var sodWithoutParsing13 = (parameters) => {
5855
5920
  };
5856
5921
 
5857
5922
  // src/fn/vssop.ts
5858
- import { z as z50 } from "zod";
5859
- import { length as length38 } from "circuit-json";
5923
+ import { z as z51 } from "zod";
5924
+ import { length as length39 } from "circuit-json";
5860
5925
  var getDefaultValues = (num_pins) => {
5861
5926
  switch (num_pins) {
5862
5927
  case 8:
@@ -5885,24 +5950,24 @@ var getDefaultValues = (num_pins) => {
5885
5950
  };
5886
5951
  }
5887
5952
  };
5888
- var vssop_def = z50.object({
5889
- fn: z50.string(),
5890
- num_pins: z50.union([z50.literal(8), z50.literal(10)]).default(8),
5891
- w: z50.string().optional(),
5892
- h: z50.string().optional(),
5893
- p: z50.string().optional(),
5894
- pl: z50.string().optional(),
5895
- pw: z50.string().optional(),
5896
- string: z50.string().optional()
5953
+ var vssop_def = z51.object({
5954
+ fn: z51.string(),
5955
+ num_pins: z51.union([z51.literal(8), z51.literal(10)]).default(8),
5956
+ w: z51.string().optional(),
5957
+ h: z51.string().optional(),
5958
+ p: z51.string().optional(),
5959
+ pl: z51.string().optional(),
5960
+ pw: z51.string().optional(),
5961
+ string: z51.string().optional()
5897
5962
  });
5898
5963
  var vssop = (raw_params) => {
5899
5964
  const parameters = vssop_def.parse(raw_params);
5900
5965
  const defaults = getDefaultValues(parameters.num_pins);
5901
- const w = length38.parse(parameters.w || defaults.w);
5902
- const h = length38.parse(parameters.h || defaults.h);
5903
- const p = length38.parse(parameters.p || defaults.p);
5904
- const pl = length38.parse(parameters.pl || defaults.pl);
5905
- const pw = length38.parse(parameters.pw || defaults.pw);
5966
+ const w = length39.parse(parameters.w || defaults.w);
5967
+ const h = length39.parse(parameters.h || defaults.h);
5968
+ const p = length39.parse(parameters.p || defaults.p);
5969
+ const pl = length39.parse(parameters.pl || defaults.pl);
5970
+ const pw = length39.parse(parameters.pw || defaults.pw);
5906
5971
  const pads = [];
5907
5972
  const half = parameters.num_pins / 2;
5908
5973
  for (let i = 0; i < parameters.num_pins; i++) {
@@ -5979,14 +6044,14 @@ var getVssopPadCoord = (pinCount, pn, w, p) => {
5979
6044
  const col = pn <= half ? -1 : 1;
5980
6045
  const row = (half - 1) / 2 - rowIndex;
5981
6046
  return {
5982
- x: col * length38.parse(pinCount === 8 ? "1.8mm" : "2.2mm"),
6047
+ x: col * length39.parse(pinCount === 8 ? "1.8mm" : "2.2mm"),
5983
6048
  y: row * p
5984
6049
  };
5985
6050
  };
5986
6051
 
5987
6052
  // src/fn/msop.ts
5988
- import { z as z51 } from "zod";
5989
- import { length as length39 } from "circuit-json";
6053
+ import { z as z52 } from "zod";
6054
+ import { length as length40 } from "circuit-json";
5990
6055
  var getDefaultValues2 = (num_pins) => {
5991
6056
  switch (num_pins) {
5992
6057
  case 10:
@@ -6023,15 +6088,15 @@ var getDefaultValues2 = (num_pins) => {
6023
6088
  };
6024
6089
  }
6025
6090
  };
6026
- var msop_def = z51.object({
6027
- fn: z51.string(),
6028
- num_pins: z51.union([z51.literal(8), z51.literal(10), z51.literal(12), z51.literal(16)]).default(8),
6029
- w: z51.string().optional(),
6030
- h: z51.string().optional(),
6031
- p: z51.string().optional(),
6032
- pl: z51.string().optional(),
6033
- pw: z51.string().optional(),
6034
- string: z51.string().optional()
6091
+ var msop_def = z52.object({
6092
+ fn: z52.string(),
6093
+ num_pins: z52.union([z52.literal(8), z52.literal(10), z52.literal(12), z52.literal(16)]).default(8),
6094
+ w: z52.string().optional(),
6095
+ h: z52.string().optional(),
6096
+ p: z52.string().optional(),
6097
+ pl: z52.string().optional(),
6098
+ pw: z52.string().optional(),
6099
+ string: z52.string().optional()
6035
6100
  });
6036
6101
  var getMsopCoords = (pinCount, pn, w, p) => {
6037
6102
  const half = pinCount / 2;
@@ -6039,18 +6104,18 @@ var getMsopCoords = (pinCount, pn, w, p) => {
6039
6104
  const col = pn <= half ? -1 : 1;
6040
6105
  const row = (half - 1) / 2 - rowIndex;
6041
6106
  return {
6042
- x: col * length39.parse("2mm"),
6107
+ x: col * length40.parse("2mm"),
6043
6108
  y: row * p
6044
6109
  };
6045
6110
  };
6046
6111
  var msop = (raw_params) => {
6047
6112
  const parameters = msop_def.parse(raw_params);
6048
6113
  const defaults = getDefaultValues2(parameters.num_pins);
6049
- const w = length39.parse(parameters.w || defaults.w);
6050
- const h = length39.parse(parameters.h || defaults.h);
6051
- const p = length39.parse(parameters.p || defaults.p);
6052
- const pl = length39.parse(parameters.pl || defaults.pl);
6053
- const pw = length39.parse(parameters.pw || defaults.pw);
6114
+ const w = length40.parse(parameters.w || defaults.w);
6115
+ const h = length40.parse(parameters.h || defaults.h);
6116
+ const p = length40.parse(parameters.p || defaults.p);
6117
+ const pl = length40.parse(parameters.pl || defaults.pl);
6118
+ const pw = length40.parse(parameters.pw || defaults.pw);
6054
6119
  const pads = [];
6055
6120
  for (let i = 0; i < parameters.num_pins; i++) {
6056
6121
  const { x, y } = getMsopCoords(parameters.num_pins, i + 1, w, p);
@@ -6121,22 +6186,22 @@ var msop = (raw_params) => {
6121
6186
  };
6122
6187
 
6123
6188
  // src/fn/sod323w.ts
6124
- import { z as z52 } from "zod";
6125
- import { length as length40 } from "circuit-json";
6126
- var sod323w_def = z52.object({
6127
- fn: z52.string(),
6128
- num_pins: z52.literal(2).default(2),
6129
- w: z52.string().default("3.8mm"),
6130
- h: z52.string().default("1.65mm"),
6131
- pl: z52.string().default("1.2mm"),
6132
- pw: z52.string().default("1.2mm"),
6133
- pad_spacing: z52.string().default("2.6mm")
6189
+ import { z as z53 } from "zod";
6190
+ import { length as length41 } from "circuit-json";
6191
+ var sod323w_def = z53.object({
6192
+ fn: z53.string(),
6193
+ num_pins: z53.literal(2).default(2),
6194
+ w: z53.string().default("3.8mm"),
6195
+ h: z53.string().default("1.65mm"),
6196
+ pl: z53.string().default("1.2mm"),
6197
+ pw: z53.string().default("1.2mm"),
6198
+ pad_spacing: z53.string().default("2.6mm")
6134
6199
  });
6135
6200
  var sod323w = (raw_params) => {
6136
6201
  const parameters = sod323w_def.parse(raw_params);
6137
6202
  const silkscreenRefText = silkscreenRef(
6138
6203
  0,
6139
- length40.parse(parameters.h),
6204
+ length41.parse(parameters.h),
6140
6205
  0.3
6141
6206
  );
6142
6207
  const silkscreenLine = {
@@ -6145,20 +6210,20 @@ var sod323w = (raw_params) => {
6145
6210
  pcb_component_id: "",
6146
6211
  route: [
6147
6212
  {
6148
- x: length40.parse(parameters.pad_spacing) / 2,
6149
- y: length40.parse(parameters.h) / 2
6213
+ x: length41.parse(parameters.pad_spacing) / 2,
6214
+ y: length41.parse(parameters.h) / 2
6150
6215
  },
6151
6216
  {
6152
- x: -length40.parse(parameters.w) / 2 - 0.2,
6153
- y: length40.parse(parameters.h) / 2
6217
+ x: -length41.parse(parameters.w) / 2 - 0.2,
6218
+ y: length41.parse(parameters.h) / 2
6154
6219
  },
6155
6220
  {
6156
- x: -length40.parse(parameters.w) / 2 - 0.2,
6157
- y: -length40.parse(parameters.h) / 2
6221
+ x: -length41.parse(parameters.w) / 2 - 0.2,
6222
+ y: -length41.parse(parameters.h) / 2
6158
6223
  },
6159
6224
  {
6160
- x: length40.parse(parameters.pad_spacing) / 2,
6161
- y: -length40.parse(parameters.h) / 2
6225
+ x: length41.parse(parameters.pad_spacing) / 2,
6226
+ y: -length41.parse(parameters.h) / 2
6162
6227
  }
6163
6228
  ],
6164
6229
  stroke_width: 0.1,
@@ -6201,22 +6266,22 @@ var sodWithoutParsing14 = (parameters) => {
6201
6266
  };
6202
6267
 
6203
6268
  // src/fn/sod323fl.ts
6204
- import { z as z53 } from "zod";
6205
- import { length as length41 } from "circuit-json";
6206
- var sod323FL_def = z53.object({
6207
- fn: z53.string(),
6208
- num_pins: z53.literal(2).default(2),
6209
- w: z53.string().default("3.20mm"),
6210
- h: z53.string().default("1.65mm"),
6211
- pl: z53.string().default("0.8mm"),
6212
- pw: z53.string().default("0.9mm"),
6213
- pad_spacing: z53.string().default("2.1mm")
6269
+ import { z as z54 } from "zod";
6270
+ import { length as length42 } from "circuit-json";
6271
+ var sod323FL_def = z54.object({
6272
+ fn: z54.string(),
6273
+ num_pins: z54.literal(2).default(2),
6274
+ w: z54.string().default("3.20mm"),
6275
+ h: z54.string().default("1.65mm"),
6276
+ pl: z54.string().default("0.8mm"),
6277
+ pw: z54.string().default("0.9mm"),
6278
+ pad_spacing: z54.string().default("2.1mm")
6214
6279
  });
6215
6280
  var sod323fl = (raw_params) => {
6216
6281
  const parameters = sod323FL_def.parse(raw_params);
6217
6282
  const silkscreenRefText = silkscreenRef(
6218
6283
  0,
6219
- length41.parse(parameters.h),
6284
+ length42.parse(parameters.h),
6220
6285
  0.3
6221
6286
  );
6222
6287
  const silkscreenLine = {
@@ -6225,20 +6290,20 @@ var sod323fl = (raw_params) => {
6225
6290
  pcb_component_id: "",
6226
6291
  route: [
6227
6292
  {
6228
- x: length41.parse(parameters.pad_spacing) / 2,
6229
- y: length41.parse(parameters.h) / 2
6293
+ x: length42.parse(parameters.pad_spacing) / 2,
6294
+ y: length42.parse(parameters.h) / 2
6230
6295
  },
6231
6296
  {
6232
- x: -length41.parse(parameters.w) / 2 - 0.2,
6233
- y: length41.parse(parameters.h) / 2
6297
+ x: -length42.parse(parameters.w) / 2 - 0.2,
6298
+ y: length42.parse(parameters.h) / 2
6234
6299
  },
6235
6300
  {
6236
- x: -length41.parse(parameters.w) / 2 - 0.2,
6237
- y: -length41.parse(parameters.h) / 2
6301
+ x: -length42.parse(parameters.w) / 2 - 0.2,
6302
+ y: -length42.parse(parameters.h) / 2
6238
6303
  },
6239
6304
  {
6240
- x: length41.parse(parameters.pad_spacing) / 2,
6241
- y: -length41.parse(parameters.h) / 2
6305
+ x: length42.parse(parameters.pad_spacing) / 2,
6306
+ y: -length42.parse(parameters.h) / 2
6242
6307
  }
6243
6308
  ],
6244
6309
  stroke_width: 0.1,
@@ -6281,20 +6346,20 @@ var sodWithoutParsing15 = (parameters) => {
6281
6346
  };
6282
6347
 
6283
6348
  // src/fn/son.ts
6284
- import { z as z54 } from "zod";
6285
- import { length as length42 } from "circuit-json";
6286
- var son_def = z54.object({
6287
- fn: z54.string(),
6288
- num_pins: z54.union([z54.literal(6), z54.literal(8)]).default(8),
6289
- w: z54.string().default("3mm"),
6290
- h: z54.string().default("3mm"),
6291
- p: z54.string().default("0.5mm"),
6292
- pl: z54.string().default("0.52mm"),
6293
- pw: z54.string().default("0.35mm"),
6294
- epw: z54.string().default("1.40mm"),
6295
- eph: z54.string().default("1.60mm"),
6296
- string: z54.string().optional(),
6297
- ep: z54.boolean().default(false)
6349
+ import { z as z55 } from "zod";
6350
+ import { length as length43 } from "circuit-json";
6351
+ var son_def = z55.object({
6352
+ fn: z55.string(),
6353
+ num_pins: z55.union([z55.literal(6), z55.literal(8)]).default(8),
6354
+ w: z55.string().default("3mm"),
6355
+ h: z55.string().default("3mm"),
6356
+ p: z55.string().default("0.5mm"),
6357
+ pl: z55.string().default("0.52mm"),
6358
+ pw: z55.string().default("0.35mm"),
6359
+ epw: z55.string().default("1.40mm"),
6360
+ eph: z55.string().default("1.60mm"),
6361
+ string: z55.string().optional(),
6362
+ ep: z55.boolean().default(false)
6298
6363
  });
6299
6364
  var son = (raw_params) => {
6300
6365
  if (raw_params.string && raw_params.string.includes("_ep")) {
@@ -6306,13 +6371,13 @@ var son = (raw_params) => {
6306
6371
  ...raw_params,
6307
6372
  num_pins: numPins
6308
6373
  });
6309
- const w = length42.parse(parameters.w);
6310
- const h = length42.parse(parameters.h);
6311
- const p = length42.parse(parameters.p);
6312
- const pl = length42.parse(parameters.pl);
6313
- const pw = length42.parse(parameters.pw);
6314
- const epw = length42.parse(parameters.epw);
6315
- const eph = length42.parse(parameters.eph);
6374
+ const w = length43.parse(parameters.w);
6375
+ const h = length43.parse(parameters.h);
6376
+ const p = length43.parse(parameters.p);
6377
+ const pl = length43.parse(parameters.pl);
6378
+ const pw = length43.parse(parameters.pw);
6379
+ const epw = length43.parse(parameters.epw);
6380
+ const eph = length43.parse(parameters.eph);
6316
6381
  const pads = [];
6317
6382
  for (let i = 0; i < parameters.num_pins; i++) {
6318
6383
  const { x, y } = getSonPadCoord(parameters.num_pins, i + 1, w, p);
@@ -6390,18 +6455,18 @@ var getSonPadCoord = (num_pins, pn, w, p) => {
6390
6455
  const col = pn <= half ? -1 : 1;
6391
6456
  const row = (half - 1) / 2 - rowIndex;
6392
6457
  return {
6393
- x: col * length42.parse("1.4mm"),
6458
+ x: col * length43.parse("1.4mm"),
6394
6459
  y: row * p
6395
6460
  };
6396
6461
  };
6397
6462
 
6398
6463
  // src/fn/solderjumper.ts
6399
- import { length as length43 } from "circuit-json";
6464
+ import { length as length44 } from "circuit-json";
6400
6465
  var solderjumper = (params) => {
6401
6466
  const { num_pins, bridged, p = 2.54, pw = 1.5, ph = 1.5 } = params;
6402
- const padSpacing = length43.parse(p);
6403
- const padWidth = length43.parse(pw);
6404
- const padHeight = length43.parse(ph);
6467
+ const padSpacing = length44.parse(p);
6468
+ const padWidth = length44.parse(pw);
6469
+ const padHeight = length44.parse(ph);
6405
6470
  const traceWidth = Math.min(padHeight / 4, 0.5);
6406
6471
  const pads = [];
6407
6472
  for (let i = 0; i < num_pins; i++) {
@@ -6489,34 +6554,34 @@ var solderjumper = (params) => {
6489
6554
  };
6490
6555
 
6491
6556
  // src/fn/sot457.ts
6492
- import { z as z55 } from "zod";
6557
+ import { z as z56 } from "zod";
6493
6558
  var commonSchema = {
6494
- fn: z55.literal("sot457"),
6495
- num_pins: z55.literal(6).default(6),
6496
- pillh: z55.string().default("0.45mm"),
6497
- pillw: z55.string().default("1.45mm"),
6498
- pl: z55.string(),
6499
- pw: z55.string(),
6500
- p: z55.string(),
6501
- wave: z55.boolean().optional(),
6502
- reflow: z55.boolean().optional()
6503
- };
6504
- var sot457DefSchema = z55.object({
6559
+ fn: z56.literal("sot457"),
6560
+ num_pins: z56.literal(6).default(6),
6561
+ pillh: z56.string().default("0.45mm"),
6562
+ pillw: z56.string().default("1.45mm"),
6563
+ pl: z56.string(),
6564
+ pw: z56.string(),
6565
+ p: z56.string(),
6566
+ wave: z56.boolean().optional(),
6567
+ reflow: z56.boolean().optional()
6568
+ };
6569
+ var sot457DefSchema = z56.object({
6505
6570
  ...commonSchema,
6506
- h: z55.string().default("2.5mm"),
6507
- w: z55.string().default("2.7mm"),
6508
- pl: z55.string().default("0.8mm"),
6509
- pw: z55.string().default("0.55mm"),
6510
- p: z55.string().default("0.95mm")
6571
+ h: z56.string().default("2.5mm"),
6572
+ w: z56.string().default("2.7mm"),
6573
+ pl: z56.string().default("0.8mm"),
6574
+ pw: z56.string().default("0.55mm"),
6575
+ p: z56.string().default("0.95mm")
6511
6576
  });
6512
- var sot457WaveSchema = z55.object({
6577
+ var sot457WaveSchema = z56.object({
6513
6578
  ...commonSchema,
6514
- h: z55.string().default("3mm"),
6515
- w: z55.string().default("4mm"),
6516
- pillr: z55.string().default("0.225mm"),
6517
- pl: z55.string().default("1.45mm"),
6518
- pw: z55.string().default("1.5mm"),
6519
- p: z55.string().default("1.475mm")
6579
+ h: z56.string().default("3mm"),
6580
+ w: z56.string().default("4mm"),
6581
+ pillr: z56.string().default("0.225mm"),
6582
+ pl: z56.string().default("1.45mm"),
6583
+ pw: z56.string().default("1.5mm"),
6584
+ p: z56.string().default("1.475mm")
6520
6585
  }).transform((data) => ({
6521
6586
  ...data,
6522
6587
  wave: data.wave ?? (data.reflow === void 0 ? true : !data.reflow),
@@ -6654,20 +6719,101 @@ var sot457 = (rawParams) => {
6654
6719
  };
6655
6720
  };
6656
6721
 
6722
+ // src/fn/sot963.ts
6723
+ import { z as z57 } from "zod";
6724
+ import { length as length45 } from "circuit-json";
6725
+ var sot963_def = z57.object({
6726
+ fn: z57.string(),
6727
+ num_pins: z57.literal(6).default(6),
6728
+ w: z57.string().default("1.1mm"),
6729
+ h: z57.string().default("1.45mm"),
6730
+ p: z57.string().default("0.35mm"),
6731
+ pl: z57.string().default("0.2mm"),
6732
+ pw: z57.string().default("0.2mm"),
6733
+ string: z57.string().optional()
6734
+ });
6735
+ var sot963 = (raw_params) => {
6736
+ const parameters = sot963_def.parse({ ...raw_params, fn: "sot963" });
6737
+ const w = length45.parse(parameters.w);
6738
+ const h = length45.parse(parameters.h);
6739
+ const p = length45.parse(parameters.p);
6740
+ const pl = length45.parse(parameters.pl);
6741
+ const pw = length45.parse(parameters.pw);
6742
+ const pads = [];
6743
+ for (let i = 0; i < 6; i++) {
6744
+ const { x, y } = getSot963PadCoord(i + 1, w, p, pl);
6745
+ pads.push(rectpad(i + 1, x, y, pl, pw));
6746
+ }
6747
+ const silkscreenTopLine = {
6748
+ type: "pcb_silkscreen_path",
6749
+ layer: "top",
6750
+ pcb_component_id: "",
6751
+ route: [
6752
+ { x: -w / 2, y: h / 2 },
6753
+ { x: w / 2, y: h / 2 }
6754
+ ],
6755
+ stroke_width: 0.05,
6756
+ pcb_silkscreen_path_id: ""
6757
+ };
6758
+ const silkscreenBottomLine = {
6759
+ type: "pcb_silkscreen_path",
6760
+ layer: "top",
6761
+ pcb_component_id: "",
6762
+ route: [
6763
+ { x: -w / 2, y: -h / 2 },
6764
+ { x: w / 2, y: -h / 2 }
6765
+ ],
6766
+ stroke_width: 0.05,
6767
+ pcb_silkscreen_path_id: ""
6768
+ };
6769
+ const pin1Position = getSot963PadCoord(1, w, p, pl);
6770
+ const pin1Marking = {
6771
+ type: "pcb_silkscreen_path",
6772
+ layer: "top",
6773
+ pcb_component_id: "pin_marker_1",
6774
+ route: [
6775
+ { x: pin1Position.x - pl / 2 - 0.3, y: pin1Position.y },
6776
+ { x: pin1Position.x - pl / 2 - 0.45, y: pin1Position.y + 0.15 },
6777
+ { x: pin1Position.x - pl / 2 - 0.45, y: pin1Position.y - 0.15 },
6778
+ { x: pin1Position.x - pl / 2 - 0.3, y: pin1Position.y }
6779
+ ],
6780
+ stroke_width: 0.05,
6781
+ pcb_silkscreen_path_id: "pin_marker_1"
6782
+ };
6783
+ const silkscreenRefText = silkscreenRef(0, h / 2 + 0.4, 0.25);
6784
+ return {
6785
+ circuitJson: [
6786
+ ...pads,
6787
+ silkscreenTopLine,
6788
+ silkscreenBottomLine,
6789
+ silkscreenRefText,
6790
+ pin1Marking
6791
+ ],
6792
+ parameters
6793
+ };
6794
+ };
6795
+ var getSot963PadCoord = (pn, w, p, pl) => {
6796
+ const padCenterOffset = w / 2 - pl / 2;
6797
+ if (pn <= 3) {
6798
+ return { x: -padCenterOffset, y: p - (pn - 1) * p };
6799
+ }
6800
+ return { x: padCenterOffset, y: -p + (pn - 4) * p };
6801
+ };
6802
+
6657
6803
  // src/fn/potentiometer.ts
6658
- import { z as z56 } from "zod";
6659
- var potentiometer_def = z56.object({
6660
- fn: z56.string(),
6661
- num_pins: z56.union([z56.literal(3), z56.literal(2)]).default(3),
6662
- p: z56.string().default("3.8mm"),
6663
- id: z56.string().default("1.25mm"),
6664
- od: z56.string().default("2.35mm"),
6665
- ca: z56.string().default("14mm").describe(
6804
+ import { z as z58 } from "zod";
6805
+ var potentiometer_def = z58.object({
6806
+ fn: z58.string(),
6807
+ num_pins: z58.union([z58.literal(3), z58.literal(2)]).default(3),
6808
+ p: z58.string().default("3.8mm"),
6809
+ id: z58.string().default("1.25mm"),
6810
+ od: z58.string().default("2.35mm"),
6811
+ ca: z58.string().default("14mm").describe(
6666
6812
  "Caliper axis (width or diameter of the potentiometer body or adjustment knob)"
6667
6813
  ),
6668
- w: z56.string().default("5.35mm"),
6669
- h: z56.string().default("4mm"),
6670
- string: z56.string().optional()
6814
+ w: z58.string().default("5.35mm"),
6815
+ h: z58.string().default("4mm"),
6816
+ string: z58.string().optional()
6671
6817
  });
6672
6818
  var potentiometer_acp = (parameters) => {
6673
6819
  const { p, id, od, h, ca } = parameters;
@@ -6734,15 +6880,15 @@ var potentiometer = (raw_params) => {
6734
6880
 
6735
6881
  // src/fn/electrolytic.ts
6736
6882
  import {
6737
- length as length44
6883
+ length as length46
6738
6884
  } from "circuit-json";
6739
- import { z as z57 } from "zod";
6740
- var electrolytic_def = z57.object({
6741
- fn: z57.string(),
6742
- p: length44.optional().default("7.5mm"),
6743
- id: length44.optional().default("1mm"),
6744
- od: length44.optional().default("2mm"),
6745
- d: length44.optional().default("10.5mm")
6885
+ import { z as z59 } from "zod";
6886
+ var electrolytic_def = z59.object({
6887
+ fn: z59.string(),
6888
+ p: length46.optional().default("7.5mm"),
6889
+ id: length46.optional().default("1mm"),
6890
+ od: length46.optional().default("2mm"),
6891
+ d: length46.optional().default("10.5mm")
6746
6892
  });
6747
6893
  var generate_circle_arcs = (centerX, centerY, radius, cut, cutHeight) => {
6748
6894
  const topArc = [];
@@ -6849,22 +6995,22 @@ var electrolytic = (raw_params) => {
6849
6995
  };
6850
6996
 
6851
6997
  // src/fn/smbf.ts
6852
- import { z as z58 } from "zod";
6853
- import { length as length45 } from "circuit-json";
6854
- var smbf_def = z58.object({
6855
- fn: z58.string(),
6856
- num_pins: z58.literal(2).default(2),
6857
- w: z58.string().default("6.5mm"),
6858
- h: z58.string().default("3mm"),
6859
- pl: z58.string().default("1.75mm"),
6860
- pw: z58.string().default("2.40mm"),
6861
- p: z58.string().default("4.75mm")
6998
+ import { z as z60 } from "zod";
6999
+ import { length as length47 } from "circuit-json";
7000
+ var smbf_def = z60.object({
7001
+ fn: z60.string(),
7002
+ num_pins: z60.literal(2).default(2),
7003
+ w: z60.string().default("6.5mm"),
7004
+ h: z60.string().default("3mm"),
7005
+ pl: z60.string().default("1.75mm"),
7006
+ pw: z60.string().default("2.40mm"),
7007
+ p: z60.string().default("4.75mm")
6862
7008
  });
6863
7009
  var smbf = (raw_params) => {
6864
7010
  const parameters = smbf_def.parse(raw_params);
6865
7011
  const silkscreenRefText = silkscreenRef(
6866
7012
  0,
6867
- length45.parse(parameters.h) - 0.5,
7013
+ length47.parse(parameters.h) - 0.5,
6868
7014
  0.3
6869
7015
  );
6870
7016
  const silkscreenLine = {
@@ -6873,20 +7019,20 @@ var smbf = (raw_params) => {
6873
7019
  pcb_component_id: "",
6874
7020
  route: [
6875
7021
  {
6876
- x: length45.parse(parameters.p) / 2,
6877
- y: length45.parse(parameters.h) / 2
7022
+ x: length47.parse(parameters.p) / 2,
7023
+ y: length47.parse(parameters.h) / 2
6878
7024
  },
6879
7025
  {
6880
- x: -length45.parse(parameters.w) / 2 - 0.3,
6881
- y: length45.parse(parameters.h) / 2
7026
+ x: -length47.parse(parameters.w) / 2 - 0.3,
7027
+ y: length47.parse(parameters.h) / 2
6882
7028
  },
6883
7029
  {
6884
- x: -length45.parse(parameters.w) / 2 - 0.3,
6885
- y: -length45.parse(parameters.h) / 2
7030
+ x: -length47.parse(parameters.w) / 2 - 0.3,
7031
+ y: -length47.parse(parameters.h) / 2
6886
7032
  },
6887
7033
  {
6888
- x: length45.parse(parameters.p) / 2,
6889
- y: -length45.parse(parameters.h) / 2
7034
+ x: length47.parse(parameters.p) / 2,
7035
+ y: -length47.parse(parameters.h) / 2
6890
7036
  }
6891
7037
  ],
6892
7038
  stroke_width: 0.1,
@@ -6928,16 +7074,16 @@ var smbfWithoutParsing = (parameters) => {
6928
7074
  };
6929
7075
 
6930
7076
  // src/fn/sot323.ts
6931
- import { z as z59 } from "zod";
6932
- var sot323_def = z59.object({
6933
- fn: z59.string(),
6934
- num_pins: z59.number().default(3),
6935
- w: z59.string().default("2.45mm"),
6936
- h: z59.string().default("2.40mm"),
6937
- pl: z59.string().default("0.70mm"),
6938
- pw: z59.string().default("0.45mm"),
6939
- p: z59.string().default("1mm"),
6940
- string: z59.string().optional()
7077
+ import { z as z61 } from "zod";
7078
+ var sot323_def = z61.object({
7079
+ fn: z61.string(),
7080
+ num_pins: z61.number().default(3),
7081
+ w: z61.string().default("2.45mm"),
7082
+ h: z61.string().default("2.40mm"),
7083
+ pl: z61.string().default("0.70mm"),
7084
+ pw: z61.string().default("0.45mm"),
7085
+ p: z61.string().default("1mm"),
7086
+ string: z61.string().optional()
6941
7087
  });
6942
7088
  var sot323 = (raw_params) => {
6943
7089
  const match = raw_params.string?.match(/^sot323_(\d+)/);
@@ -7025,30 +7171,30 @@ var sot323_3 = (parameters) => {
7025
7171
  };
7026
7172
 
7027
7173
  // src/fn/smtpad.ts
7028
- import { z as z60 } from "zod";
7029
- import { length as length46 } from "circuit-json";
7174
+ import { z as z62 } from "zod";
7175
+ import { length as length48 } from "circuit-json";
7030
7176
  import { mm as mm6 } from "@tscircuit/mm";
7031
- var smtpad_def = z60.object({
7032
- fn: z60.string(),
7033
- circle: z60.boolean().optional(),
7034
- rect: z60.boolean().optional(),
7035
- square: z60.boolean().optional(),
7036
- pill: z60.boolean().optional(),
7037
- d: length46.optional(),
7038
- pd: length46.optional(),
7039
- diameter: length46.optional(),
7040
- r: length46.optional(),
7041
- pr: length46.optional(),
7042
- radius: length46.optional(),
7043
- w: length46.optional(),
7044
- pw: length46.optional(),
7045
- width: length46.optional(),
7046
- h: length46.optional(),
7047
- ph: length46.optional(),
7048
- height: length46.optional(),
7049
- s: length46.optional(),
7050
- size: length46.optional(),
7051
- string: z60.string().optional()
7177
+ var smtpad_def = z62.object({
7178
+ fn: z62.string(),
7179
+ circle: z62.boolean().optional(),
7180
+ rect: z62.boolean().optional(),
7181
+ square: z62.boolean().optional(),
7182
+ pill: z62.boolean().optional(),
7183
+ d: length48.optional(),
7184
+ pd: length48.optional(),
7185
+ diameter: length48.optional(),
7186
+ r: length48.optional(),
7187
+ pr: length48.optional(),
7188
+ radius: length48.optional(),
7189
+ w: length48.optional(),
7190
+ pw: length48.optional(),
7191
+ width: length48.optional(),
7192
+ h: length48.optional(),
7193
+ ph: length48.optional(),
7194
+ height: length48.optional(),
7195
+ s: length48.optional(),
7196
+ size: length48.optional(),
7197
+ string: z62.string().optional()
7052
7198
  }).transform((v) => {
7053
7199
  let shape = "rect";
7054
7200
  if (v.circle) shape = "circle";
@@ -7114,18 +7260,18 @@ var smtpad = (raw_params) => {
7114
7260
  };
7115
7261
 
7116
7262
  // src/fn/platedhole.ts
7117
- import { z as z61 } from "zod";
7118
- import { length as length47 } from "circuit-json";
7263
+ import { z as z63 } from "zod";
7264
+ import { length as length49 } from "circuit-json";
7119
7265
  import { mm as mm7 } from "@tscircuit/mm";
7120
- var platedhole_def = z61.object({
7121
- fn: z61.string(),
7122
- d: length47.optional(),
7123
- hd: length47.optional(),
7124
- r: length47.optional(),
7125
- hr: length47.optional(),
7126
- pd: length47.optional(),
7127
- pr: length47.optional(),
7128
- squarepad: z61.boolean().optional().default(false)
7266
+ var platedhole_def = z63.object({
7267
+ fn: z63.string(),
7268
+ d: length49.optional(),
7269
+ hd: length49.optional(),
7270
+ r: length49.optional(),
7271
+ hr: length49.optional(),
7272
+ pd: length49.optional(),
7273
+ pr: length49.optional(),
7274
+ squarepad: z63.boolean().optional().default(false)
7129
7275
  }).transform((v) => {
7130
7276
  let holeD;
7131
7277
  if (v.d !== void 0) holeD = mm7(v.d);
@@ -7157,14 +7303,14 @@ var platedhole2 = (raw_params) => {
7157
7303
  };
7158
7304
 
7159
7305
  // src/fn/sot.ts
7160
- import { z as z62 } from "zod";
7161
- var sot_def = z62.object({
7162
- fn: z62.string(),
7163
- num_pins: z62.literal(6).default(6),
7164
- h: z62.string().default("1.6mm"),
7165
- pl: z62.string().default("1mm"),
7166
- pw: z62.string().default("0.7mm"),
7167
- p: z62.string().default("0.95mm")
7306
+ import { z as z64 } from "zod";
7307
+ var sot_def = z64.object({
7308
+ fn: z64.string(),
7309
+ num_pins: z64.literal(6).default(6),
7310
+ h: z64.string().default("1.6mm"),
7311
+ pl: z64.string().default("1mm"),
7312
+ pw: z64.string().default("0.7mm"),
7313
+ p: z64.string().default("0.95mm")
7168
7314
  });
7169
7315
  var sot = (raw_params) => {
7170
7316
  const parameters = sot_def.parse(raw_params);
@@ -7281,9 +7427,9 @@ var sotWithoutParsing = (parameters) => {
7281
7427
  };
7282
7428
 
7283
7429
  // src/fn/m2host.ts
7284
- import { z as z63 } from "zod";
7285
- var m2host_def = z63.object({
7286
- fn: z63.string()
7430
+ import { z as z65 } from "zod";
7431
+ var m2host_def = z65.object({
7432
+ fn: z65.string()
7287
7433
  });
7288
7434
  var m2host = (raw_params) => {
7289
7435
  const parameters = m2host_def.parse(raw_params);