@tscircuit/footprinter 0.0.177 → 0.0.178
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 +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6653,7 +6653,8 @@ var platedhole_def = z58.object({
|
|
|
6653
6653
|
r: length45.optional(),
|
|
6654
6654
|
hr: length45.optional(),
|
|
6655
6655
|
pd: length45.optional(),
|
|
6656
|
-
pr: length45.optional()
|
|
6656
|
+
pr: length45.optional(),
|
|
6657
|
+
squarepad: z58.boolean().optional().default(false)
|
|
6657
6658
|
}).transform((v) => {
|
|
6658
6659
|
let holeD;
|
|
6659
6660
|
if (v.d !== void 0)
|
|
@@ -6676,15 +6677,16 @@ var platedhole_def = z58.object({
|
|
|
6676
6677
|
return {
|
|
6677
6678
|
fn: v.fn,
|
|
6678
6679
|
d: holeD,
|
|
6679
|
-
pd: padD
|
|
6680
|
+
pd: padD,
|
|
6681
|
+
squarepad: v.squarepad ?? false
|
|
6680
6682
|
};
|
|
6681
6683
|
});
|
|
6682
6684
|
var platedhole3 = (raw_params) => {
|
|
6683
6685
|
const params = platedhole_def.parse(raw_params);
|
|
6684
|
-
const { d, pd } = params;
|
|
6686
|
+
const { d, pd, squarepad } = params;
|
|
6685
6687
|
return {
|
|
6686
6688
|
circuitJson: [
|
|
6687
|
-
platedhole(1, 0, 0, d, pd),
|
|
6689
|
+
squarepad ? platedHoleWithRectPad(1, 0, 0, d, pd, pd) : platedhole(1, 0, 0, d, pd),
|
|
6688
6690
|
silkscreenRef(0, pd / 2 + 0.5, 0.2)
|
|
6689
6691
|
],
|
|
6690
6692
|
parameters: params
|