@tscircuit/footprinter 0.0.186 → 0.0.188
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 +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5478,9 +5478,11 @@ var vssop = (raw_params) => {
|
|
|
5478
5478
|
const pl = length37.parse(parameters.pl || defaults.pl);
|
|
5479
5479
|
const pw = length37.parse(parameters.pw || defaults.pw);
|
|
5480
5480
|
const pads = [];
|
|
5481
|
+
const half = parameters.num_pins / 2;
|
|
5481
5482
|
for (let i = 0; i < parameters.num_pins; i++) {
|
|
5482
5483
|
const { x, y } = getVssopPadCoord(parameters.num_pins, i + 1, w, p);
|
|
5483
|
-
|
|
5484
|
+
const logical_pn = i < half ? i + 1 : parameters.num_pins - (i - half);
|
|
5485
|
+
pads.push(rectpad(logical_pn, x, y, pl, pw));
|
|
5484
5486
|
}
|
|
5485
5487
|
const silkscreenBoxWidth = w;
|
|
5486
5488
|
const silkscreenBoxHeight = h;
|