@tscircuit/props 0.0.365 → 0.0.367
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/README.md +2 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/lib/components/board.ts +3 -0
- package/lib/components/smtpad.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -231,6 +231,8 @@ export interface BoardProps
|
|
|
231
231
|
topSilkscreenColor?: BoardColor;
|
|
232
232
|
/** Color of the bottom silkscreen */
|
|
233
233
|
bottomSilkscreenColor?: BoardColor;
|
|
234
|
+
/** Whether the board should be assembled on both sides */
|
|
235
|
+
doubleSidedAssembly?: boolean;
|
|
234
236
|
}
|
|
235
237
|
```
|
|
236
238
|
|
package/dist/index.d.ts
CHANGED
|
@@ -10886,6 +10886,8 @@ interface BoardProps extends Omit<SubcircuitGroupProps, "subcircuit" | "connecti
|
|
|
10886
10886
|
topSilkscreenColor?: BoardColor;
|
|
10887
10887
|
/** Color of the bottom silkscreen */
|
|
10888
10888
|
bottomSilkscreenColor?: BoardColor;
|
|
10889
|
+
/** Whether the board should be assembled on both sides */
|
|
10890
|
+
doubleSidedAssembly?: boolean;
|
|
10889
10891
|
}
|
|
10890
10892
|
declare const boardProps: z.ZodObject<Omit<{
|
|
10891
10893
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -11580,9 +11582,11 @@ declare const boardProps: z.ZodObject<Omit<{
|
|
|
11580
11582
|
silkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
11581
11583
|
topSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
11582
11584
|
bottomSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
11585
|
+
doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
11583
11586
|
}, "strip", z.ZodTypeAny, {
|
|
11584
11587
|
material: "fr4" | "fr1";
|
|
11585
11588
|
layers: 2 | 4;
|
|
11589
|
+
doubleSidedAssembly: boolean;
|
|
11586
11590
|
symbol?: SymbolProp | undefined;
|
|
11587
11591
|
key?: any;
|
|
11588
11592
|
pcbX?: number | undefined;
|
|
@@ -12168,6 +12172,7 @@ declare const boardProps: z.ZodObject<Omit<{
|
|
|
12168
12172
|
silkscreenColor?: BoardColor | undefined;
|
|
12169
12173
|
topSilkscreenColor?: BoardColor | undefined;
|
|
12170
12174
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
12175
|
+
doubleSidedAssembly?: boolean | undefined;
|
|
12171
12176
|
}>;
|
|
12172
12177
|
|
|
12173
12178
|
interface BreakoutProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
@@ -28450,6 +28455,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
|
|
|
28450
28455
|
silkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
28451
28456
|
topSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
28452
28457
|
bottomSilkscreenColor: z.ZodOptional<z.ZodType<BoardColor, z.ZodTypeDef, BoardColor>>;
|
|
28458
|
+
doubleSidedAssembly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
28453
28459
|
} & {
|
|
28454
28460
|
leftPinCount: z.ZodOptional<z.ZodNumber>;
|
|
28455
28461
|
rightPinCount: z.ZodOptional<z.ZodNumber>;
|
|
@@ -28464,6 +28470,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
|
|
|
28464
28470
|
}, "strip", z.ZodTypeAny, {
|
|
28465
28471
|
material: "fr4" | "fr1";
|
|
28466
28472
|
layers: 2 | 4;
|
|
28473
|
+
doubleSidedAssembly: boolean;
|
|
28467
28474
|
symbol?: SymbolProp | undefined;
|
|
28468
28475
|
key?: any;
|
|
28469
28476
|
pcbX?: number | undefined;
|
|
@@ -29063,6 +29070,7 @@ declare const stampboardProps: z.ZodObject<Omit<{
|
|
|
29063
29070
|
silkscreenColor?: BoardColor | undefined;
|
|
29064
29071
|
topSilkscreenColor?: BoardColor | undefined;
|
|
29065
29072
|
bottomSilkscreenColor?: BoardColor | undefined;
|
|
29073
|
+
doubleSidedAssembly?: boolean | undefined;
|
|
29066
29074
|
leftPins?: string[] | undefined;
|
|
29067
29075
|
rightPins?: string[] | undefined;
|
|
29068
29076
|
topPins?: string[] | undefined;
|
|
@@ -30772,6 +30780,7 @@ interface RectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
30772
30780
|
width: Distance;
|
|
30773
30781
|
height: Distance;
|
|
30774
30782
|
rectBorderRadius?: Distance;
|
|
30783
|
+
cornerRadius?: Distance;
|
|
30775
30784
|
portHints?: PortHints;
|
|
30776
30785
|
coveredWithSolderMask?: boolean;
|
|
30777
30786
|
}
|
|
@@ -30780,6 +30789,7 @@ interface RotatedRectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
30780
30789
|
shape: "rotated_rect";
|
|
30781
30790
|
width: Distance;
|
|
30782
30791
|
height: Distance;
|
|
30792
|
+
cornerRadius?: Distance;
|
|
30783
30793
|
ccwRotation: number;
|
|
30784
30794
|
portHints?: PortHints;
|
|
30785
30795
|
coveredWithSolderMask?: boolean;
|
|
@@ -30836,6 +30846,7 @@ declare const rectSmtPadProps: z.ZodObject<Omit<{
|
|
|
30836
30846
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
30837
30847
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
30838
30848
|
rectBorderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
30849
|
+
cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
30839
30850
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
30840
30851
|
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
30841
30852
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -30857,6 +30868,7 @@ declare const rectSmtPadProps: z.ZodObject<Omit<{
|
|
|
30857
30868
|
name?: string | undefined;
|
|
30858
30869
|
portHints?: (string | number)[] | undefined;
|
|
30859
30870
|
rectBorderRadius?: number | undefined;
|
|
30871
|
+
cornerRadius?: number | undefined;
|
|
30860
30872
|
coveredWithSolderMask?: boolean | undefined;
|
|
30861
30873
|
}, {
|
|
30862
30874
|
shape: "rect";
|
|
@@ -30879,6 +30891,7 @@ declare const rectSmtPadProps: z.ZodObject<Omit<{
|
|
|
30879
30891
|
name?: string | undefined;
|
|
30880
30892
|
portHints?: (string | number)[] | undefined;
|
|
30881
30893
|
rectBorderRadius?: string | number | undefined;
|
|
30894
|
+
cornerRadius?: string | number | undefined;
|
|
30882
30895
|
coveredWithSolderMask?: boolean | undefined;
|
|
30883
30896
|
}>;
|
|
30884
30897
|
declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
@@ -30909,6 +30922,7 @@ declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
|
30909
30922
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
30910
30923
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
30911
30924
|
ccwRotation: z.ZodNumber;
|
|
30925
|
+
cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
30912
30926
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
30913
30927
|
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
30914
30928
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -30930,6 +30944,7 @@ declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
|
30930
30944
|
relative?: boolean | undefined;
|
|
30931
30945
|
name?: string | undefined;
|
|
30932
30946
|
portHints?: (string | number)[] | undefined;
|
|
30947
|
+
cornerRadius?: number | undefined;
|
|
30933
30948
|
coveredWithSolderMask?: boolean | undefined;
|
|
30934
30949
|
}, {
|
|
30935
30950
|
shape: "rotated_rect";
|
|
@@ -30952,6 +30967,7 @@ declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
|
30952
30967
|
relative?: boolean | undefined;
|
|
30953
30968
|
name?: string | undefined;
|
|
30954
30969
|
portHints?: (string | number)[] | undefined;
|
|
30970
|
+
cornerRadius?: string | number | undefined;
|
|
30955
30971
|
coveredWithSolderMask?: boolean | undefined;
|
|
30956
30972
|
}>;
|
|
30957
30973
|
declare const circleSmtPadProps: z.ZodObject<Omit<{
|
|
@@ -31270,6 +31286,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
31270
31286
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
31271
31287
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
31272
31288
|
rectBorderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
31289
|
+
cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
31273
31290
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
31274
31291
|
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
31275
31292
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -31291,6 +31308,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
31291
31308
|
name?: string | undefined;
|
|
31292
31309
|
portHints?: (string | number)[] | undefined;
|
|
31293
31310
|
rectBorderRadius?: number | undefined;
|
|
31311
|
+
cornerRadius?: number | undefined;
|
|
31294
31312
|
coveredWithSolderMask?: boolean | undefined;
|
|
31295
31313
|
}, {
|
|
31296
31314
|
shape: "rect";
|
|
@@ -31313,6 +31331,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
31313
31331
|
name?: string | undefined;
|
|
31314
31332
|
portHints?: (string | number)[] | undefined;
|
|
31315
31333
|
rectBorderRadius?: string | number | undefined;
|
|
31334
|
+
cornerRadius?: string | number | undefined;
|
|
31316
31335
|
coveredWithSolderMask?: boolean | undefined;
|
|
31317
31336
|
}>, z.ZodObject<Omit<{
|
|
31318
31337
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -31342,6 +31361,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
31342
31361
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
31343
31362
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
31344
31363
|
ccwRotation: z.ZodNumber;
|
|
31364
|
+
cornerRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
31345
31365
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
31346
31366
|
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
31347
31367
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -31363,6 +31383,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
31363
31383
|
relative?: boolean | undefined;
|
|
31364
31384
|
name?: string | undefined;
|
|
31365
31385
|
portHints?: (string | number)[] | undefined;
|
|
31386
|
+
cornerRadius?: number | undefined;
|
|
31366
31387
|
coveredWithSolderMask?: boolean | undefined;
|
|
31367
31388
|
}, {
|
|
31368
31389
|
shape: "rotated_rect";
|
|
@@ -31385,6 +31406,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
31385
31406
|
relative?: boolean | undefined;
|
|
31386
31407
|
name?: string | undefined;
|
|
31387
31408
|
portHints?: (string | number)[] | undefined;
|
|
31409
|
+
cornerRadius?: string | number | undefined;
|
|
31388
31410
|
coveredWithSolderMask?: boolean | undefined;
|
|
31389
31411
|
}>, z.ZodObject<Omit<{
|
|
31390
31412
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
package/dist/index.js
CHANGED
|
@@ -650,7 +650,8 @@ var boardProps = subcircuitGroupProps.omit({ connections: true }).extend({
|
|
|
650
650
|
bottomSolderMaskColor: boardColor.optional(),
|
|
651
651
|
silkscreenColor: boardColor.optional(),
|
|
652
652
|
topSilkscreenColor: boardColor.optional(),
|
|
653
|
-
bottomSilkscreenColor: boardColor.optional()
|
|
653
|
+
bottomSilkscreenColor: boardColor.optional(),
|
|
654
|
+
doubleSidedAssembly: z28.boolean().optional().default(false)
|
|
654
655
|
});
|
|
655
656
|
expectTypesMatch(true);
|
|
656
657
|
|
|
@@ -1059,6 +1060,7 @@ var rectSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
1059
1060
|
width: distance,
|
|
1060
1061
|
height: distance,
|
|
1061
1062
|
rectBorderRadius: distance.optional(),
|
|
1063
|
+
cornerRadius: distance.optional(),
|
|
1062
1064
|
portHints: portHints.optional(),
|
|
1063
1065
|
coveredWithSolderMask: z46.boolean().optional()
|
|
1064
1066
|
});
|
|
@@ -1069,6 +1071,7 @@ var rotatedRectSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
1069
1071
|
width: distance,
|
|
1070
1072
|
height: distance,
|
|
1071
1073
|
ccwRotation: z46.number(),
|
|
1074
|
+
cornerRadius: distance.optional(),
|
|
1072
1075
|
portHints: portHints.optional(),
|
|
1073
1076
|
coveredWithSolderMask: z46.boolean().optional()
|
|
1074
1077
|
});
|