@tscircuit/footprinter 0.0.234 → 0.0.236
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.d.ts +55 -11
- package/dist/index.js +45 -27
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -120,6 +120,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
120
120
|
pw: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
121
121
|
pl: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
122
122
|
legsoutside: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
123
|
+
pillpads: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
123
124
|
}, "strip", z.ZodTypeAny, {
|
|
124
125
|
fn: string;
|
|
125
126
|
num_pins: number;
|
|
@@ -128,6 +129,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
128
129
|
pw: number;
|
|
129
130
|
pl: number;
|
|
130
131
|
legsoutside: boolean;
|
|
132
|
+
pillpads: boolean;
|
|
131
133
|
}, {
|
|
132
134
|
fn: string;
|
|
133
135
|
num_pins?: number | undefined;
|
|
@@ -136,6 +138,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
136
138
|
pw?: string | number | undefined;
|
|
137
139
|
pl?: string | number | undefined;
|
|
138
140
|
legsoutside?: boolean | undefined;
|
|
141
|
+
pillpads?: boolean | undefined;
|
|
139
142
|
}>, NowDefined<{
|
|
140
143
|
fn: string;
|
|
141
144
|
num_pins: number;
|
|
@@ -144,7 +147,8 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
144
147
|
pw: number;
|
|
145
148
|
pl: number;
|
|
146
149
|
legsoutside: boolean;
|
|
147
|
-
|
|
150
|
+
pillpads: boolean;
|
|
151
|
+
}, "w" | "p" | "pw" | "pl" | "pillpads">, {
|
|
148
152
|
fn: string;
|
|
149
153
|
num_pins?: number | undefined;
|
|
150
154
|
w?: string | number | undefined;
|
|
@@ -152,6 +156,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
152
156
|
pw?: string | number | undefined;
|
|
153
157
|
pl?: string | number | undefined;
|
|
154
158
|
legsoutside?: boolean | undefined;
|
|
159
|
+
pillpads?: boolean | undefined;
|
|
155
160
|
}>, z.ZodEffects<z.ZodObject<{
|
|
156
161
|
fn: z.ZodString;
|
|
157
162
|
num_pins: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -288,6 +293,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
288
293
|
pw: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
289
294
|
pl: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
290
295
|
legsoutside: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
296
|
+
pillpads: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
291
297
|
}, "strip", z.ZodTypeAny, {
|
|
292
298
|
fn: string;
|
|
293
299
|
num_pins: number;
|
|
@@ -296,6 +302,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
296
302
|
pw: number;
|
|
297
303
|
pl: number;
|
|
298
304
|
legsoutside: boolean;
|
|
305
|
+
pillpads: boolean;
|
|
299
306
|
}, {
|
|
300
307
|
fn: string;
|
|
301
308
|
num_pins?: number | undefined;
|
|
@@ -304,6 +311,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
304
311
|
pw?: string | number | undefined;
|
|
305
312
|
pl?: string | number | undefined;
|
|
306
313
|
legsoutside?: boolean | undefined;
|
|
314
|
+
pillpads?: boolean | undefined;
|
|
307
315
|
}>, NowDefined<{
|
|
308
316
|
fn: string;
|
|
309
317
|
num_pins: number;
|
|
@@ -312,7 +320,8 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
312
320
|
pw: number;
|
|
313
321
|
pl: number;
|
|
314
322
|
legsoutside: boolean;
|
|
315
|
-
|
|
323
|
+
pillpads: boolean;
|
|
324
|
+
}, "w" | "p" | "pw" | "pl" | "pillpads">, {
|
|
316
325
|
fn: string;
|
|
317
326
|
num_pins?: number | undefined;
|
|
318
327
|
w?: string | number | undefined;
|
|
@@ -320,6 +329,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
320
329
|
pw?: string | number | undefined;
|
|
321
330
|
pl?: string | number | undefined;
|
|
322
331
|
legsoutside?: boolean | undefined;
|
|
332
|
+
pillpads?: boolean | undefined;
|
|
323
333
|
}>, z.ZodEffects<z.ZodObject<{
|
|
324
334
|
fn: z.ZodString;
|
|
325
335
|
num_pins: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -328,6 +338,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
328
338
|
pw: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
329
339
|
pl: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
330
340
|
legsoutside: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
341
|
+
pillpads: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
331
342
|
}, "strip", z.ZodTypeAny, {
|
|
332
343
|
fn: string;
|
|
333
344
|
num_pins: number;
|
|
@@ -336,6 +347,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
336
347
|
pw: number;
|
|
337
348
|
pl: number;
|
|
338
349
|
legsoutside: boolean;
|
|
350
|
+
pillpads: boolean;
|
|
339
351
|
}, {
|
|
340
352
|
fn: string;
|
|
341
353
|
num_pins?: number | undefined;
|
|
@@ -344,6 +356,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
344
356
|
pw?: string | number | undefined;
|
|
345
357
|
pl?: string | number | undefined;
|
|
346
358
|
legsoutside?: boolean | undefined;
|
|
359
|
+
pillpads?: boolean | undefined;
|
|
347
360
|
}>, NowDefined<{
|
|
348
361
|
fn: string;
|
|
349
362
|
num_pins: number;
|
|
@@ -352,7 +365,8 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
352
365
|
pw: number;
|
|
353
366
|
pl: number;
|
|
354
367
|
legsoutside: boolean;
|
|
355
|
-
|
|
368
|
+
pillpads: boolean;
|
|
369
|
+
}, "w" | "p" | "pw" | "pl" | "pillpads">, {
|
|
356
370
|
fn: string;
|
|
357
371
|
num_pins?: number | undefined;
|
|
358
372
|
w?: string | number | undefined;
|
|
@@ -360,6 +374,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
360
374
|
pw?: string | number | undefined;
|
|
361
375
|
pl?: string | number | undefined;
|
|
362
376
|
legsoutside?: boolean | undefined;
|
|
377
|
+
pillpads?: boolean | undefined;
|
|
363
378
|
}>, z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
364
379
|
fn: z.ZodString;
|
|
365
380
|
num_pins: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -769,6 +784,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
769
784
|
pw: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
770
785
|
pl: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
771
786
|
legsoutside: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
787
|
+
pillpads: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
772
788
|
}, "strip", z.ZodTypeAny, {
|
|
773
789
|
fn: string;
|
|
774
790
|
num_pins: number;
|
|
@@ -777,6 +793,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
777
793
|
pw: number;
|
|
778
794
|
pl: number;
|
|
779
795
|
legsoutside: boolean;
|
|
796
|
+
pillpads: boolean;
|
|
780
797
|
}, {
|
|
781
798
|
fn: string;
|
|
782
799
|
num_pins?: number | undefined;
|
|
@@ -785,6 +802,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
785
802
|
pw?: string | number | undefined;
|
|
786
803
|
pl?: string | number | undefined;
|
|
787
804
|
legsoutside?: boolean | undefined;
|
|
805
|
+
pillpads?: boolean | undefined;
|
|
788
806
|
}>, NowDefined<{
|
|
789
807
|
fn: string;
|
|
790
808
|
num_pins: number;
|
|
@@ -793,7 +811,8 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
793
811
|
pw: number;
|
|
794
812
|
pl: number;
|
|
795
813
|
legsoutside: boolean;
|
|
796
|
-
|
|
814
|
+
pillpads: boolean;
|
|
815
|
+
}, "w" | "p" | "pw" | "pl" | "pillpads">, {
|
|
797
816
|
fn: string;
|
|
798
817
|
num_pins?: number | undefined;
|
|
799
818
|
w?: string | number | undefined;
|
|
@@ -801,6 +820,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
801
820
|
pw?: string | number | undefined;
|
|
802
821
|
pl?: string | number | undefined;
|
|
803
822
|
legsoutside?: boolean | undefined;
|
|
823
|
+
pillpads?: boolean | undefined;
|
|
804
824
|
}>, z.ZodObject<{
|
|
805
825
|
fn: z.ZodString;
|
|
806
826
|
num_pins: z.ZodDefault<z.ZodNumber>;
|
|
@@ -836,6 +856,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
836
856
|
pw: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
837
857
|
pl: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
838
858
|
legsoutside: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
859
|
+
pillpads: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
839
860
|
}, "strip", z.ZodTypeAny, {
|
|
840
861
|
fn: string;
|
|
841
862
|
num_pins: number;
|
|
@@ -844,6 +865,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
844
865
|
pw: number;
|
|
845
866
|
pl: number;
|
|
846
867
|
legsoutside: boolean;
|
|
868
|
+
pillpads: boolean;
|
|
847
869
|
}, {
|
|
848
870
|
fn: string;
|
|
849
871
|
num_pins?: number | undefined;
|
|
@@ -852,6 +874,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
852
874
|
pw?: string | number | undefined;
|
|
853
875
|
pl?: string | number | undefined;
|
|
854
876
|
legsoutside?: boolean | undefined;
|
|
877
|
+
pillpads?: boolean | undefined;
|
|
855
878
|
}>, NowDefined<{
|
|
856
879
|
fn: string;
|
|
857
880
|
num_pins: number;
|
|
@@ -860,7 +883,8 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
860
883
|
pw: number;
|
|
861
884
|
pl: number;
|
|
862
885
|
legsoutside: boolean;
|
|
863
|
-
|
|
886
|
+
pillpads: boolean;
|
|
887
|
+
}, "w" | "p" | "pw" | "pl" | "pillpads">, {
|
|
864
888
|
fn: string;
|
|
865
889
|
num_pins?: number | undefined;
|
|
866
890
|
w?: string | number | undefined;
|
|
@@ -868,6 +892,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
868
892
|
pw?: string | number | undefined;
|
|
869
893
|
pl?: string | number | undefined;
|
|
870
894
|
legsoutside?: boolean | undefined;
|
|
895
|
+
pillpads?: boolean | undefined;
|
|
871
896
|
}>, z.ZodEffects<z.ZodObject<{
|
|
872
897
|
fn: z.ZodString;
|
|
873
898
|
num_pins: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -876,6 +901,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
876
901
|
pw: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
877
902
|
pl: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
878
903
|
legsoutside: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
904
|
+
pillpads: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
879
905
|
}, "strip", z.ZodTypeAny, {
|
|
880
906
|
fn: string;
|
|
881
907
|
num_pins: number;
|
|
@@ -884,6 +910,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
884
910
|
pw: number;
|
|
885
911
|
pl: number;
|
|
886
912
|
legsoutside: boolean;
|
|
913
|
+
pillpads: boolean;
|
|
887
914
|
}, {
|
|
888
915
|
fn: string;
|
|
889
916
|
num_pins?: number | undefined;
|
|
@@ -892,6 +919,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
892
919
|
pw?: string | number | undefined;
|
|
893
920
|
pl?: string | number | undefined;
|
|
894
921
|
legsoutside?: boolean | undefined;
|
|
922
|
+
pillpads?: boolean | undefined;
|
|
895
923
|
}>, NowDefined<{
|
|
896
924
|
fn: string;
|
|
897
925
|
num_pins: number;
|
|
@@ -900,7 +928,8 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
900
928
|
pw: number;
|
|
901
929
|
pl: number;
|
|
902
930
|
legsoutside: boolean;
|
|
903
|
-
|
|
931
|
+
pillpads: boolean;
|
|
932
|
+
}, "w" | "p" | "pw" | "pl" | "pillpads">, {
|
|
904
933
|
fn: string;
|
|
905
934
|
num_pins?: number | undefined;
|
|
906
935
|
w?: string | number | undefined;
|
|
@@ -908,6 +937,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
908
937
|
pw?: string | number | undefined;
|
|
909
938
|
pl?: string | number | undefined;
|
|
910
939
|
legsoutside?: boolean | undefined;
|
|
940
|
+
pillpads?: boolean | undefined;
|
|
911
941
|
}>, z.ZodObject<{
|
|
912
942
|
fn: z.ZodString;
|
|
913
943
|
num_pins: z.ZodDefault<z.ZodLiteral<3>>;
|
|
@@ -937,6 +967,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
937
967
|
pw: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
938
968
|
pl: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
939
969
|
legsoutside: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
970
|
+
pillpads: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
940
971
|
}, "strip", z.ZodTypeAny, {
|
|
941
972
|
fn: string;
|
|
942
973
|
num_pins: number;
|
|
@@ -945,6 +976,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
945
976
|
pw: number;
|
|
946
977
|
pl: number;
|
|
947
978
|
legsoutside: boolean;
|
|
979
|
+
pillpads: boolean;
|
|
948
980
|
}, {
|
|
949
981
|
fn: string;
|
|
950
982
|
num_pins?: number | undefined;
|
|
@@ -953,6 +985,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
953
985
|
pw?: string | number | undefined;
|
|
954
986
|
pl?: string | number | undefined;
|
|
955
987
|
legsoutside?: boolean | undefined;
|
|
988
|
+
pillpads?: boolean | undefined;
|
|
956
989
|
}>, NowDefined<{
|
|
957
990
|
fn: string;
|
|
958
991
|
num_pins: number;
|
|
@@ -961,7 +994,8 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
961
994
|
pw: number;
|
|
962
995
|
pl: number;
|
|
963
996
|
legsoutside: boolean;
|
|
964
|
-
|
|
997
|
+
pillpads: boolean;
|
|
998
|
+
}, "w" | "p" | "pw" | "pl" | "pillpads">, {
|
|
965
999
|
fn: string;
|
|
966
1000
|
num_pins?: number | undefined;
|
|
967
1001
|
w?: string | number | undefined;
|
|
@@ -969,6 +1003,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
969
1003
|
pw?: string | number | undefined;
|
|
970
1004
|
pl?: string | number | undefined;
|
|
971
1005
|
legsoutside?: boolean | undefined;
|
|
1006
|
+
pillpads?: boolean | undefined;
|
|
972
1007
|
}>, z.ZodEffects<z.ZodObject<{
|
|
973
1008
|
fn: z.ZodString;
|
|
974
1009
|
num_pins: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -977,6 +1012,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
977
1012
|
pw: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
978
1013
|
pl: z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
979
1014
|
legsoutside: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1015
|
+
pillpads: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
980
1016
|
}, "strip", z.ZodTypeAny, {
|
|
981
1017
|
fn: string;
|
|
982
1018
|
num_pins: number;
|
|
@@ -985,6 +1021,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
985
1021
|
pw: number;
|
|
986
1022
|
pl: number;
|
|
987
1023
|
legsoutside: boolean;
|
|
1024
|
+
pillpads: boolean;
|
|
988
1025
|
}, {
|
|
989
1026
|
fn: string;
|
|
990
1027
|
num_pins?: number | undefined;
|
|
@@ -993,6 +1030,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
993
1030
|
pw?: string | number | undefined;
|
|
994
1031
|
pl?: string | number | undefined;
|
|
995
1032
|
legsoutside?: boolean | undefined;
|
|
1033
|
+
pillpads?: boolean | undefined;
|
|
996
1034
|
}>, NowDefined<{
|
|
997
1035
|
fn: string;
|
|
998
1036
|
num_pins: number;
|
|
@@ -1001,7 +1039,8 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
1001
1039
|
pw: number;
|
|
1002
1040
|
pl: number;
|
|
1003
1041
|
legsoutside: boolean;
|
|
1004
|
-
|
|
1042
|
+
pillpads: boolean;
|
|
1043
|
+
}, "w" | "p" | "pw" | "pl" | "pillpads">, {
|
|
1005
1044
|
fn: string;
|
|
1006
1045
|
num_pins?: number | undefined;
|
|
1007
1046
|
w?: string | number | undefined;
|
|
@@ -1009,6 +1048,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
1009
1048
|
pw?: string | number | undefined;
|
|
1010
1049
|
pl?: string | number | undefined;
|
|
1011
1050
|
legsoutside?: boolean | undefined;
|
|
1051
|
+
pillpads?: boolean | undefined;
|
|
1012
1052
|
}>, z.ZodObject<{
|
|
1013
1053
|
tht: z.ZodBoolean;
|
|
1014
1054
|
p: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -1053,6 +1093,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
1053
1093
|
circle: z.ZodOptional<z.ZodBoolean>;
|
|
1054
1094
|
rect: z.ZodOptional<z.ZodBoolean>;
|
|
1055
1095
|
square: z.ZodOptional<z.ZodBoolean>;
|
|
1096
|
+
pill: z.ZodOptional<z.ZodBoolean>;
|
|
1056
1097
|
d: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
1057
1098
|
pd: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
1058
1099
|
diameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -1072,6 +1113,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
1072
1113
|
fn: string;
|
|
1073
1114
|
string?: string | undefined;
|
|
1074
1115
|
circle?: boolean | undefined;
|
|
1116
|
+
pill?: boolean | undefined;
|
|
1075
1117
|
w?: number | undefined;
|
|
1076
1118
|
rect?: boolean | undefined;
|
|
1077
1119
|
width?: number | undefined;
|
|
@@ -1092,6 +1134,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
1092
1134
|
fn: string;
|
|
1093
1135
|
string?: string | undefined;
|
|
1094
1136
|
circle?: boolean | undefined;
|
|
1137
|
+
pill?: boolean | undefined;
|
|
1095
1138
|
w?: string | number | undefined;
|
|
1096
1139
|
rect?: boolean | undefined;
|
|
1097
1140
|
width?: string | number | undefined;
|
|
@@ -1110,7 +1153,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
1110
1153
|
size?: string | number | undefined;
|
|
1111
1154
|
}>, {
|
|
1112
1155
|
fn: string;
|
|
1113
|
-
shape: "circle" | "rect" | "square";
|
|
1156
|
+
shape: "circle" | "pill" | "rect" | "square";
|
|
1114
1157
|
radius: number | undefined;
|
|
1115
1158
|
width: number | undefined;
|
|
1116
1159
|
height: number | undefined;
|
|
@@ -1118,6 +1161,7 @@ declare const any_footprinter_def: z.ZodUnion<[z.ZodObject<{
|
|
|
1118
1161
|
fn: string;
|
|
1119
1162
|
string?: string | undefined;
|
|
1120
1163
|
circle?: boolean | undefined;
|
|
1164
|
+
pill?: boolean | undefined;
|
|
1121
1165
|
w?: string | number | undefined;
|
|
1122
1166
|
rect?: boolean | undefined;
|
|
1123
1167
|
width?: string | number | undefined;
|
|
@@ -1163,7 +1207,7 @@ type Footprinter = {
|
|
|
1163
1207
|
quad: (num_pins?: number) => FootprinterParamsBuilder<"w" | "l" | "square" | "pl" | "pr" | "pb" | "pt" | "p" | "pw" | "ph">;
|
|
1164
1208
|
bga: (num_pins?: number) => FootprinterParamsBuilder<"grid" | "p" | "w" | "h" | "ball" | "pad" | "missing" | "tlorigin" | "blorigin" | "trorigin" | "brorigin" | "circularpads">;
|
|
1165
1209
|
qfn: (num_pins?: number) => FootprinterParamsBuilder<"w" | "h" | "p">;
|
|
1166
|
-
soic: (num_pins?: number) => FootprinterParamsBuilder<"w" | "p" | "id" | "od">;
|
|
1210
|
+
soic: (num_pins?: number) => FootprinterParamsBuilder<"w" | "p" | "pw" | "pl" | "id" | "od" | "pillpads">;
|
|
1167
1211
|
mlp: (num_pins?: number) => FootprinterParamsBuilder<"w" | "h" | "p">;
|
|
1168
1212
|
ssop: (num_pins?: number) => FootprinterParamsBuilder<"w" | "p">;
|
|
1169
1213
|
tssop: (num_pins?: number) => FootprinterParamsBuilder<"w" | "p">;
|
|
@@ -1223,7 +1267,7 @@ type Footprinter = {
|
|
|
1223
1267
|
stampboard: () => FootprinterParamsBuilder<"w" | "h" | "left" | "right" | "top" | "bottom" | "p" | "pw" | "pl" | "innerhole" | "innerholeedgedistance" | "silkscreenlabels" | "silkscreenlabelmargin">;
|
|
1224
1268
|
stampreceiver: () => FootprinterParamsBuilder<"w" | "h" | "left" | "right" | "top" | "bottom" | "p" | "pw" | "pl" | "innerhole" | "innerholeedgedistance">;
|
|
1225
1269
|
breakoutheaders: () => FootprinterParamsBuilder<"w" | "h" | "left" | "right" | "top" | "bottom" | "p" | "id" | "od">;
|
|
1226
|
-
smtpad: () => FootprinterParamsBuilder<"circle" | "rect" | "square" | "d" | "pd" | "diameter" | "r" | "pr" | "radius" | "w" | "pw" | "width" | "h" | "ph" | "height" | "s" | "size"> & {
|
|
1270
|
+
smtpad: () => FootprinterParamsBuilder<"circle" | "rect" | "square" | "pill" | "d" | "pd" | "diameter" | "r" | "pr" | "radius" | "w" | "pw" | "width" | "h" | "ph" | "height" | "s" | "size"> & {
|
|
1227
1271
|
params: () => any;
|
|
1228
1272
|
soup: () => AnySoupElement[];
|
|
1229
1273
|
circuitJson: () => AnyCircuitElement[];
|
package/dist/index.js
CHANGED
|
@@ -705,6 +705,24 @@ var bga = (raw_params) => {
|
|
|
705
705
|
// src/fn/soic.ts
|
|
706
706
|
import { z as z6 } from "zod";
|
|
707
707
|
import { length as length3 } from "circuit-json";
|
|
708
|
+
|
|
709
|
+
// src/helpers/pillpad.ts
|
|
710
|
+
var pillpad = (pn, x, y, w, h) => {
|
|
711
|
+
return {
|
|
712
|
+
type: "pcb_smtpad",
|
|
713
|
+
x,
|
|
714
|
+
y,
|
|
715
|
+
width: w,
|
|
716
|
+
height: h,
|
|
717
|
+
radius: h / 2,
|
|
718
|
+
layer: "top",
|
|
719
|
+
shape: "pill",
|
|
720
|
+
pcb_smtpad_id: "",
|
|
721
|
+
port_hints: Array.isArray(pn) ? pn.map((item) => item.toString()) : [pn.toString()]
|
|
722
|
+
};
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
// src/fn/soic.ts
|
|
708
726
|
var extendSoicDef = (newDefaults) => z6.object({
|
|
709
727
|
fn: z6.string(),
|
|
710
728
|
num_pins: z6.number().optional().default(8),
|
|
@@ -712,7 +730,8 @@ var extendSoicDef = (newDefaults) => z6.object({
|
|
|
712
730
|
p: length3.default(length3.parse(newDefaults.p ?? "1.27mm")),
|
|
713
731
|
pw: length3.default(length3.parse(newDefaults.pw ?? "0.6mm")),
|
|
714
732
|
pl: length3.default(length3.parse(newDefaults.pl ?? "1.0mm")),
|
|
715
|
-
legsoutside: z6.boolean().optional().default(newDefaults.legsoutside ?? false)
|
|
733
|
+
legsoutside: z6.boolean().optional().default(newDefaults.legsoutside ?? false),
|
|
734
|
+
pillpads: z6.boolean().optional().default(newDefaults.pillpads ?? false)
|
|
716
735
|
}).transform((v) => {
|
|
717
736
|
if (!v.pw && !v.pl) {
|
|
718
737
|
v.pw = length3.parse("0.6mm");
|
|
@@ -759,7 +778,11 @@ var soicWithoutParsing = (parameters) => {
|
|
|
759
778
|
pl: parameters.pl,
|
|
760
779
|
legsoutside: parameters.legsoutside
|
|
761
780
|
});
|
|
762
|
-
|
|
781
|
+
if (parameters.pillpads) {
|
|
782
|
+
pads.push(pillpad(i + 1, x, y, parameters.pl, parameters.pw));
|
|
783
|
+
} else {
|
|
784
|
+
pads.push(rectpad(i + 1, x, y, parameters.pl, parameters.pw));
|
|
785
|
+
}
|
|
763
786
|
}
|
|
764
787
|
const m = Math.min(1, parameters.p / 2);
|
|
765
788
|
const sw = parameters.w - (parameters.legsoutside ? 0 : parameters.pl * 2) - 0.2;
|
|
@@ -6295,24 +6318,6 @@ var solderjumper = (params) => {
|
|
|
6295
6318
|
|
|
6296
6319
|
// src/fn/sot457.ts
|
|
6297
6320
|
import { z as z54 } from "zod";
|
|
6298
|
-
|
|
6299
|
-
// src/helpers/pillpad.ts
|
|
6300
|
-
var pillpad = (pn, x, y, w, h) => {
|
|
6301
|
-
return {
|
|
6302
|
-
type: "pcb_smtpad",
|
|
6303
|
-
x,
|
|
6304
|
-
y,
|
|
6305
|
-
width: w,
|
|
6306
|
-
height: h,
|
|
6307
|
-
radius: h / 2,
|
|
6308
|
-
layer: "top",
|
|
6309
|
-
shape: "pill",
|
|
6310
|
-
pcb_smtpad_id: "",
|
|
6311
|
-
port_hints: Array.isArray(pn) ? pn.map((item) => item.toString()) : [pn.toString()]
|
|
6312
|
-
};
|
|
6313
|
-
};
|
|
6314
|
-
|
|
6315
|
-
// src/fn/sot457.ts
|
|
6316
6321
|
var commonSchema = {
|
|
6317
6322
|
fn: z54.literal("sot457"),
|
|
6318
6323
|
num_pins: z54.literal(6).default(6),
|
|
@@ -6856,6 +6861,7 @@ var smtpad_def = z59.object({
|
|
|
6856
6861
|
circle: z59.boolean().optional(),
|
|
6857
6862
|
rect: z59.boolean().optional(),
|
|
6858
6863
|
square: z59.boolean().optional(),
|
|
6864
|
+
pill: z59.boolean().optional(),
|
|
6859
6865
|
d: length45.optional(),
|
|
6860
6866
|
pd: length45.optional(),
|
|
6861
6867
|
diameter: length45.optional(),
|
|
@@ -6876,6 +6882,7 @@ var smtpad_def = z59.object({
|
|
|
6876
6882
|
if (v.circle) shape = "circle";
|
|
6877
6883
|
if (v.square) shape = "square";
|
|
6878
6884
|
if (v.rect) shape = "rect";
|
|
6885
|
+
if (v.pill) shape = "pill";
|
|
6879
6886
|
let radius;
|
|
6880
6887
|
let width;
|
|
6881
6888
|
let height;
|
|
@@ -6897,7 +6904,10 @@ var smtpad_def = z59.object({
|
|
|
6897
6904
|
if (v.h !== void 0) height = mm6(v.h);
|
|
6898
6905
|
else if (v.ph !== void 0) height = mm6(v.ph);
|
|
6899
6906
|
else if (v.height !== void 0) height = mm6(v.height);
|
|
6900
|
-
else height = width;
|
|
6907
|
+
else if (shape === "square") height = width;
|
|
6908
|
+
else if (shape === "rect")
|
|
6909
|
+
height = width;
|
|
6910
|
+
else height = mm6("1mm");
|
|
6901
6911
|
}
|
|
6902
6912
|
return {
|
|
6903
6913
|
fn: v.fn,
|
|
@@ -6910,14 +6920,22 @@ var smtpad_def = z59.object({
|
|
|
6910
6920
|
var smtpad = (raw_params) => {
|
|
6911
6921
|
const params = smtpad_def.parse(raw_params);
|
|
6912
6922
|
const { shape, radius, width, height } = params;
|
|
6923
|
+
let pad2;
|
|
6924
|
+
let silkscreenOffset;
|
|
6925
|
+
if (shape === "circle") {
|
|
6926
|
+
pad2 = circlepad(1, { x: 0, y: 0, radius });
|
|
6927
|
+
silkscreenOffset = radius + 0.5;
|
|
6928
|
+
} else if (shape === "pill") {
|
|
6929
|
+
pad2 = pillpad(1, 0, 0, width, height);
|
|
6930
|
+
silkscreenOffset = Math.max(width, height) / 2 + 0.5;
|
|
6931
|
+
} else {
|
|
6932
|
+
pad2 = rectpad(1, 0, 0, width, height);
|
|
6933
|
+
silkscreenOffset = height / 2 + 0.5;
|
|
6934
|
+
}
|
|
6913
6935
|
return {
|
|
6914
6936
|
circuitJson: [
|
|
6915
|
-
|
|
6916
|
-
silkscreenRef(
|
|
6917
|
-
0,
|
|
6918
|
-
shape === "circle" ? radius + 0.5 : height / 2 + 0.5,
|
|
6919
|
-
0.2
|
|
6920
|
-
)
|
|
6937
|
+
pad2,
|
|
6938
|
+
silkscreenRef(0, silkscreenOffset, 0.2)
|
|
6921
6939
|
],
|
|
6922
6940
|
parameters: params
|
|
6923
6941
|
};
|