@tscircuit/footprinter 0.0.348 → 0.0.349
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 +10 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1400,6 +1400,8 @@ var soic = (raw_params) => {
|
|
|
1400
1400
|
};
|
|
1401
1401
|
var soicWithoutParsing = (parameters) => {
|
|
1402
1402
|
const pads = [];
|
|
1403
|
+
let maxPadExtentX = 0;
|
|
1404
|
+
let maxPadExtentY = 0;
|
|
1403
1405
|
for (let i = 0; i < parameters.num_pins; i++) {
|
|
1404
1406
|
const { x, y } = getCcwSoicCoords({
|
|
1405
1407
|
num_pins: parameters.num_pins,
|
|
@@ -1409,6 +1411,8 @@ var soicWithoutParsing = (parameters) => {
|
|
|
1409
1411
|
pl: parameters.pl,
|
|
1410
1412
|
legsoutside: parameters.legsoutside
|
|
1411
1413
|
});
|
|
1414
|
+
maxPadExtentX = Math.max(maxPadExtentX, Math.abs(x) + parameters.pl / 2);
|
|
1415
|
+
maxPadExtentY = Math.max(maxPadExtentY, Math.abs(y) + parameters.pw / 2);
|
|
1412
1416
|
if (parameters.pillpads) {
|
|
1413
1417
|
pads.push(pillpad(i + 1, x, y, parameters.pl, parameters.pw));
|
|
1414
1418
|
} else {
|
|
@@ -1442,11 +1446,12 @@ var soicWithoutParsing = (parameters) => {
|
|
|
1442
1446
|
{ x: -sw / 2, y: -sh / 2 }
|
|
1443
1447
|
]
|
|
1444
1448
|
};
|
|
1445
|
-
const
|
|
1446
|
-
const
|
|
1447
|
-
const courtyardStepOuterHalfWidth =
|
|
1448
|
-
const courtyardStepInnerHalfHeight =
|
|
1449
|
-
const
|
|
1449
|
+
const bodyHalfWidth = parameters.w / 2;
|
|
1450
|
+
const bodyHalfHeight = sh / 2;
|
|
1451
|
+
const courtyardStepOuterHalfWidth = Math.max(maxPadExtentX, bodyHalfWidth) + 0.25;
|
|
1452
|
+
const courtyardStepInnerHalfHeight = Math.min(maxPadExtentY, bodyHalfHeight) + 0.25;
|
|
1453
|
+
const courtyardStepInnerHalfWidth = Math.min(maxPadExtentX, bodyHalfWidth) + 0.25;
|
|
1454
|
+
const courtyardStepOuterHalfHeight = Math.max(maxPadExtentY, bodyHalfHeight) + 0.25;
|
|
1450
1455
|
const courtyard = {
|
|
1451
1456
|
type: "pcb_courtyard_outline",
|
|
1452
1457
|
pcb_courtyard_outline_id: "",
|