@tscircuit/footprinter 0.0.275 → 0.0.277
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 +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7720,6 +7720,7 @@ import { z as z68 } from "zod";
|
|
|
7720
7720
|
var to92l_def = base_def.extend({
|
|
7721
7721
|
fn: z68.string(),
|
|
7722
7722
|
num_pins: z68.number().default(3),
|
|
7723
|
+
inline: z68.boolean().default(false),
|
|
7723
7724
|
p: z68.string().default("1.27mm"),
|
|
7724
7725
|
id: z68.string().default("0.75mm"),
|
|
7725
7726
|
od: z68.string().default("1.3mm"),
|
|
@@ -7731,13 +7732,15 @@ var to92l = (raw_params) => {
|
|
|
7731
7732
|
const p = Number.parseFloat(parameters.p);
|
|
7732
7733
|
const w = Number.parseFloat(parameters.w);
|
|
7733
7734
|
const h = Number.parseFloat(parameters.h);
|
|
7735
|
+
const od = parameters.inline ? 1.05 : Number.parseFloat(parameters.od);
|
|
7736
|
+
const padH = parameters.inline ? 1.5 : od;
|
|
7734
7737
|
const holes = [
|
|
7735
|
-
platedHoleWithRectPad(1, 0, 0, parameters.id,
|
|
7736
|
-
platedhole(2, p, p, parameters.id,
|
|
7737
|
-
|
|
7738
|
+
platedHoleWithRectPad(1, 0, 0, parameters.id, od, padH, 0, 0),
|
|
7739
|
+
parameters.inline ? platedHolePill(2, p, 0, parameters.id, od, padH) : platedhole(2, p, p, parameters.id, od),
|
|
7740
|
+
parameters.inline ? platedHolePill(3, p * 2, 0, parameters.id, od, padH) : platedhole(3, p * 2, 0, parameters.id, od)
|
|
7738
7741
|
];
|
|
7739
7742
|
const radius = w / 2;
|
|
7740
|
-
const cx = p;
|
|
7743
|
+
const cx = parameters.inline ? p - 0.09 : p;
|
|
7741
7744
|
const cy = 0.2;
|
|
7742
7745
|
const y_bottom = cy + radius - h;
|
|
7743
7746
|
const semicircle = Array.from({ length: 32 }, (_, i) => {
|