@tscircuit/footprinter 0.0.249 → 0.0.251
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -2
- package/dist/index.js +13 -11
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1031,12 +1031,14 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
1031
1031
|
num_pins: z.ZodDefault<z.ZodLiteral<3>>;
|
|
1032
1032
|
w: z.ZodDefault<z.ZodString>;
|
|
1033
1033
|
h: z.ZodDefault<z.ZodString>;
|
|
1034
|
-
pl: z.ZodDefault<z.ZodString>;
|
|
1035
1034
|
pw: z.ZodDefault<z.ZodString>;
|
|
1035
|
+
pl: z.ZodDefault<z.ZodString>;
|
|
1036
|
+
p: z.ZodDefault<z.ZodString>;
|
|
1036
1037
|
}, "strip", z.ZodTypeAny, {
|
|
1037
1038
|
fn: string;
|
|
1038
1039
|
num_pins: 3;
|
|
1039
1040
|
w: string;
|
|
1041
|
+
p: string;
|
|
1040
1042
|
pw: string;
|
|
1041
1043
|
h: string;
|
|
1042
1044
|
pl: string;
|
|
@@ -1044,6 +1046,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
1044
1046
|
fn: string;
|
|
1045
1047
|
num_pins?: 3 | undefined;
|
|
1046
1048
|
w?: string | undefined;
|
|
1049
|
+
p?: string | undefined;
|
|
1047
1050
|
pw?: string | undefined;
|
|
1048
1051
|
h?: string | undefined;
|
|
1049
1052
|
pl?: string | undefined;
|
|
@@ -1308,7 +1311,7 @@ type Footprinter = {
|
|
|
1308
1311
|
sot363: () => FootprinterParamsBuilder<"w" | "p" | "pl" | "pw">;
|
|
1309
1312
|
sot457: () => FootprinterParamsBuilder<"w" | "p" | "h" | "pl" | "pw" | "wave" | "reflow" | "pillr" | "pillh" | "pillw">;
|
|
1310
1313
|
sot563: () => FootprinterParamsBuilder<"w" | "p" | "pl" | "pw">;
|
|
1311
|
-
sot723: () => FootprinterParamsBuilder<"w" | "h" | "pl" | "pw">;
|
|
1314
|
+
sot723: () => FootprinterParamsBuilder<"w" | "h" | "pl" | "pw" | "p">;
|
|
1312
1315
|
sot23: () => FootprinterParamsBuilder<"w" | "h" | "pl" | "pw">;
|
|
1313
1316
|
sot25: () => FootprinterParamsBuilder<"w" | "h" | "pl" | "pw">;
|
|
1314
1317
|
sot: () => FootprinterParamsBuilder<"w" | "h" | "p" | "pl" | "pw">;
|
package/dist/index.js
CHANGED
|
@@ -1978,14 +1978,15 @@ var sot723_def = z13.object({
|
|
|
1978
1978
|
num_pins: z13.literal(3).default(3),
|
|
1979
1979
|
w: z13.string().default("1.2mm"),
|
|
1980
1980
|
h: z13.string().default("1.2mm"),
|
|
1981
|
-
|
|
1982
|
-
|
|
1981
|
+
pw: z13.string().default("0.40mm"),
|
|
1982
|
+
pl: z13.string().default("0.45mm"),
|
|
1983
|
+
p: z13.string().default("0.575mm")
|
|
1983
1984
|
});
|
|
1984
1985
|
var sot723 = (raw_params) => {
|
|
1985
1986
|
const parameters = sot723_def.parse(raw_params);
|
|
1986
1987
|
const pad2 = sot723WithoutParsing(parameters);
|
|
1987
1988
|
const silkscreenRefText = silkscreenRef(
|
|
1988
|
-
0
|
|
1989
|
+
0,
|
|
1989
1990
|
length6.parse(parameters.h),
|
|
1990
1991
|
0.2
|
|
1991
1992
|
);
|
|
@@ -1995,13 +1996,13 @@ var sot723 = (raw_params) => {
|
|
|
1995
1996
|
};
|
|
1996
1997
|
};
|
|
1997
1998
|
var getCcwSot723Coords = (parameters) => {
|
|
1998
|
-
const { pn, w, h, pl } = parameters;
|
|
1999
|
+
const { pn, w, h, pl, p } = parameters;
|
|
1999
2000
|
if (pn === 1) {
|
|
2000
|
-
return { x:
|
|
2001
|
+
return { x: p, y: 0 };
|
|
2001
2002
|
} else if (pn === 2) {
|
|
2002
|
-
return { x:
|
|
2003
|
+
return { x: -p, y: -0.4 };
|
|
2003
2004
|
} else {
|
|
2004
|
-
return { x:
|
|
2005
|
+
return { x: -p, y: 0.4 };
|
|
2005
2006
|
}
|
|
2006
2007
|
};
|
|
2007
2008
|
var sot723WithoutParsing = (parameters) => {
|
|
@@ -2012,7 +2013,8 @@ var sot723WithoutParsing = (parameters) => {
|
|
|
2012
2013
|
pn: i + 1,
|
|
2013
2014
|
w: Number.parseFloat(parameters.w),
|
|
2014
2015
|
h: Number.parseFloat(parameters.h),
|
|
2015
|
-
pl: Number.parseFloat(parameters.pl)
|
|
2016
|
+
pl: Number.parseFloat(parameters.pl),
|
|
2017
|
+
p: Number.parseFloat(parameters.p)
|
|
2016
2018
|
});
|
|
2017
2019
|
pads.push(
|
|
2018
2020
|
rectpad(
|
|
@@ -2020,7 +2022,7 @@ var sot723WithoutParsing = (parameters) => {
|
|
|
2020
2022
|
x,
|
|
2021
2023
|
y,
|
|
2022
2024
|
Number.parseFloat(parameters.pl),
|
|
2023
|
-
|
|
2025
|
+
Number.parseFloat(parameters.pw)
|
|
2024
2026
|
)
|
|
2025
2027
|
);
|
|
2026
2028
|
}
|
|
@@ -2036,8 +2038,8 @@ var sod_def = z14.object({
|
|
|
2036
2038
|
w: z14.string().default("2.36mm"),
|
|
2037
2039
|
h: z14.string().default("1.22mm"),
|
|
2038
2040
|
pl: z14.string().default("0.9mm"),
|
|
2039
|
-
pw: z14.string().default("
|
|
2040
|
-
p: z14.string().default("
|
|
2041
|
+
pw: z14.string().default("1.2mm"),
|
|
2042
|
+
p: z14.string().default("3.30mm")
|
|
2041
2043
|
});
|
|
2042
2044
|
var sod123 = (raw_params) => {
|
|
2043
2045
|
const parameters = sod_def.parse(raw_params);
|