@tscircuit/footprinter 0.0.270 → 0.0.271
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 +8 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1467,8 +1467,8 @@ var sot23_def = base_def.extend({
|
|
|
1467
1467
|
num_pins: z11.number().default(3),
|
|
1468
1468
|
w: z11.string().default("1.92mm"),
|
|
1469
1469
|
h: z11.string().default("2.74mm"),
|
|
1470
|
-
pl: z11.string().default("
|
|
1471
|
-
pw: z11.string().default("0.
|
|
1470
|
+
pl: z11.string().default("1.32mm"),
|
|
1471
|
+
pw: z11.string().default("0.6mm"),
|
|
1472
1472
|
p: z11.string().default("0.95mm"),
|
|
1473
1473
|
string: z11.string().optional()
|
|
1474
1474
|
});
|
|
@@ -1509,14 +1509,14 @@ var sot23 = (raw_params) => {
|
|
|
1509
1509
|
throw new Error("Invalid number of pins");
|
|
1510
1510
|
};
|
|
1511
1511
|
var getCcwSot23Coords = (parameters) => {
|
|
1512
|
-
const { pn, w, h, pl } = parameters;
|
|
1512
|
+
const { pn, w, h, pl, p } = parameters;
|
|
1513
1513
|
if (pn === 1) {
|
|
1514
|
-
return { x: -1.
|
|
1514
|
+
return { x: -1.155, y: p };
|
|
1515
1515
|
}
|
|
1516
1516
|
if (pn === 2) {
|
|
1517
|
-
return { x: 1.
|
|
1517
|
+
return { x: -1.155, y: -p };
|
|
1518
1518
|
}
|
|
1519
|
-
return { x: 1.
|
|
1519
|
+
return { x: 1.15, y: 0 };
|
|
1520
1520
|
};
|
|
1521
1521
|
var sot23_3 = (parameters) => {
|
|
1522
1522
|
const pads = [];
|
|
@@ -1526,7 +1526,8 @@ var sot23_3 = (parameters) => {
|
|
|
1526
1526
|
pn: i + 1,
|
|
1527
1527
|
w: Number.parseFloat(parameters.w),
|
|
1528
1528
|
h: Number.parseFloat(parameters.h),
|
|
1529
|
-
pl: Number.parseFloat(parameters.pl)
|
|
1529
|
+
pl: Number.parseFloat(parameters.pl),
|
|
1530
|
+
p: Number.parseFloat(parameters.p)
|
|
1530
1531
|
});
|
|
1531
1532
|
pads.push(
|
|
1532
1533
|
rectpad(
|