@tscircuit/footprinter 0.0.254 → 0.0.256
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 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -986,13 +986,13 @@ var getQuadCoords = (params) => {
|
|
|
986
986
|
const pcdfe = legsoutside ? pl / 2 : -pl / 2;
|
|
987
987
|
switch (side) {
|
|
988
988
|
case "left":
|
|
989
|
-
return { x: -w / 2 - pcdfe, y: ibh / 2 - pos * p, o: "vert" };
|
|
989
|
+
return { x: -w / 2 - pcdfe + 0.1, y: ibh / 2 - pos * p, o: "vert" };
|
|
990
990
|
case "bottom":
|
|
991
|
-
return { x: -ibw / 2 + pos * p, y: -h / 2 - pcdfe, o: "horz" };
|
|
991
|
+
return { x: -ibw / 2 + pos * p, y: -h / 2 - pcdfe + 0.1, o: "horz" };
|
|
992
992
|
case "right":
|
|
993
|
-
return { x: w / 2 + pcdfe, y: -ibh / 2 + pos * p, o: "vert" };
|
|
993
|
+
return { x: w / 2 + pcdfe - 0.1, y: -ibh / 2 + pos * p, o: "vert" };
|
|
994
994
|
case "top":
|
|
995
|
-
return { x: ibw / 2 - pos * p, y: h / 2 + pcdfe, o: "horz" };
|
|
995
|
+
return { x: ibw / 2 - pos * p, y: h / 2 + pcdfe - 0.1, o: "horz" };
|
|
996
996
|
default:
|
|
997
997
|
throw new Error("Invalid pin number");
|
|
998
998
|
}
|
|
@@ -1187,6 +1187,12 @@ var quad = (raw_params) => {
|
|
|
1187
1187
|
var qfn_def = base_quad_def.extend({}).transform(quadTransform);
|
|
1188
1188
|
var qfn = (parameters) => {
|
|
1189
1189
|
parameters.legsoutside = false;
|
|
1190
|
+
if (!parameters.pl) {
|
|
1191
|
+
parameters.pl = 0.875;
|
|
1192
|
+
}
|
|
1193
|
+
if (!parameters.pw) {
|
|
1194
|
+
parameters.pw = 0.25;
|
|
1195
|
+
}
|
|
1190
1196
|
return quad(parameters);
|
|
1191
1197
|
};
|
|
1192
1198
|
|