@tscircuit/props 0.0.321 → 0.0.322
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 +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/lib/components/smtpad.ts +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -28535,6 +28535,7 @@ interface RectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
28535
28535
|
width: Distance;
|
|
28536
28536
|
height: Distance;
|
|
28537
28537
|
portHints?: PortHints;
|
|
28538
|
+
coveredWithSolderMask?: boolean;
|
|
28538
28539
|
}
|
|
28539
28540
|
interface RotatedRectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
28540
28541
|
name?: string;
|
|
@@ -28543,12 +28544,14 @@ interface RotatedRectSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
28543
28544
|
height: Distance;
|
|
28544
28545
|
ccwRotation: number;
|
|
28545
28546
|
portHints?: PortHints;
|
|
28547
|
+
coveredWithSolderMask?: boolean;
|
|
28546
28548
|
}
|
|
28547
28549
|
interface CircleSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
28548
28550
|
name?: string;
|
|
28549
28551
|
shape: "circle";
|
|
28550
28552
|
radius: Distance;
|
|
28551
28553
|
portHints?: PortHints;
|
|
28554
|
+
coveredWithSolderMask?: boolean;
|
|
28552
28555
|
}
|
|
28553
28556
|
interface PillSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
28554
28557
|
name?: string;
|
|
@@ -28557,12 +28560,14 @@ interface PillSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
28557
28560
|
height: Distance;
|
|
28558
28561
|
radius: Distance;
|
|
28559
28562
|
portHints?: PortHints;
|
|
28563
|
+
coveredWithSolderMask?: boolean;
|
|
28560
28564
|
}
|
|
28561
28565
|
interface PolygonSmtPadProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
28562
28566
|
name?: string;
|
|
28563
28567
|
shape: "polygon";
|
|
28564
28568
|
points: Point[];
|
|
28565
28569
|
portHints?: PortHints;
|
|
28570
|
+
coveredWithSolderMask?: boolean;
|
|
28566
28571
|
}
|
|
28567
28572
|
type SmtPadProps = RectSmtPadProps | CircleSmtPadProps | RotatedRectSmtPadProps | PillSmtPadProps | PolygonSmtPadProps;
|
|
28568
28573
|
declare const rectSmtPadProps: z.ZodObject<Omit<{
|
|
@@ -28593,6 +28598,7 @@ declare const rectSmtPadProps: z.ZodObject<Omit<{
|
|
|
28593
28598
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28594
28599
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28595
28600
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
28601
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
28596
28602
|
}, "strip", z.ZodTypeAny, {
|
|
28597
28603
|
shape: "rect";
|
|
28598
28604
|
width: number;
|
|
@@ -28611,6 +28617,7 @@ declare const rectSmtPadProps: z.ZodObject<Omit<{
|
|
|
28611
28617
|
relative?: boolean | undefined;
|
|
28612
28618
|
name?: string | undefined;
|
|
28613
28619
|
portHints?: (string | number)[] | undefined;
|
|
28620
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28614
28621
|
}, {
|
|
28615
28622
|
shape: "rect";
|
|
28616
28623
|
width: string | number;
|
|
@@ -28631,6 +28638,7 @@ declare const rectSmtPadProps: z.ZodObject<Omit<{
|
|
|
28631
28638
|
relative?: boolean | undefined;
|
|
28632
28639
|
name?: string | undefined;
|
|
28633
28640
|
portHints?: (string | number)[] | undefined;
|
|
28641
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28634
28642
|
}>;
|
|
28635
28643
|
declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
28636
28644
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -28661,6 +28669,7 @@ declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
|
28661
28669
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28662
28670
|
ccwRotation: z.ZodNumber;
|
|
28663
28671
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
28672
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
28664
28673
|
}, "strip", z.ZodTypeAny, {
|
|
28665
28674
|
shape: "rotated_rect";
|
|
28666
28675
|
width: number;
|
|
@@ -28680,6 +28689,7 @@ declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
|
28680
28689
|
relative?: boolean | undefined;
|
|
28681
28690
|
name?: string | undefined;
|
|
28682
28691
|
portHints?: (string | number)[] | undefined;
|
|
28692
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28683
28693
|
}, {
|
|
28684
28694
|
shape: "rotated_rect";
|
|
28685
28695
|
width: string | number;
|
|
@@ -28701,6 +28711,7 @@ declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
|
28701
28711
|
relative?: boolean | undefined;
|
|
28702
28712
|
name?: string | undefined;
|
|
28703
28713
|
portHints?: (string | number)[] | undefined;
|
|
28714
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28704
28715
|
}>;
|
|
28705
28716
|
declare const circleSmtPadProps: z.ZodObject<Omit<{
|
|
28706
28717
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -28729,6 +28740,7 @@ declare const circleSmtPadProps: z.ZodObject<Omit<{
|
|
|
28729
28740
|
shape: z.ZodLiteral<"circle">;
|
|
28730
28741
|
radius: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28731
28742
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
28743
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
28732
28744
|
}, "strip", z.ZodTypeAny, {
|
|
28733
28745
|
shape: "circle";
|
|
28734
28746
|
radius: number;
|
|
@@ -28746,6 +28758,7 @@ declare const circleSmtPadProps: z.ZodObject<Omit<{
|
|
|
28746
28758
|
relative?: boolean | undefined;
|
|
28747
28759
|
name?: string | undefined;
|
|
28748
28760
|
portHints?: (string | number)[] | undefined;
|
|
28761
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28749
28762
|
}, {
|
|
28750
28763
|
shape: "circle";
|
|
28751
28764
|
radius: string | number;
|
|
@@ -28765,6 +28778,7 @@ declare const circleSmtPadProps: z.ZodObject<Omit<{
|
|
|
28765
28778
|
relative?: boolean | undefined;
|
|
28766
28779
|
name?: string | undefined;
|
|
28767
28780
|
portHints?: (string | number)[] | undefined;
|
|
28781
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28768
28782
|
}>;
|
|
28769
28783
|
declare const pillSmtPadProps: z.ZodObject<Omit<{
|
|
28770
28784
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -28795,6 +28809,7 @@ declare const pillSmtPadProps: z.ZodObject<Omit<{
|
|
|
28795
28809
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28796
28810
|
radius: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28797
28811
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
28812
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
28798
28813
|
}, "strip", z.ZodTypeAny, {
|
|
28799
28814
|
shape: "pill";
|
|
28800
28815
|
width: number;
|
|
@@ -28814,6 +28829,7 @@ declare const pillSmtPadProps: z.ZodObject<Omit<{
|
|
|
28814
28829
|
relative?: boolean | undefined;
|
|
28815
28830
|
name?: string | undefined;
|
|
28816
28831
|
portHints?: (string | number)[] | undefined;
|
|
28832
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28817
28833
|
}, {
|
|
28818
28834
|
shape: "pill";
|
|
28819
28835
|
width: string | number;
|
|
@@ -28835,6 +28851,7 @@ declare const pillSmtPadProps: z.ZodObject<Omit<{
|
|
|
28835
28851
|
relative?: boolean | undefined;
|
|
28836
28852
|
name?: string | undefined;
|
|
28837
28853
|
portHints?: (string | number)[] | undefined;
|
|
28854
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28838
28855
|
}>;
|
|
28839
28856
|
declare const polygonSmtPadProps: z.ZodObject<Omit<{
|
|
28840
28857
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -28872,6 +28889,7 @@ declare const polygonSmtPadProps: z.ZodObject<Omit<{
|
|
|
28872
28889
|
y: string | number;
|
|
28873
28890
|
}>, "many">;
|
|
28874
28891
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
28892
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
28875
28893
|
}, "strip", z.ZodTypeAny, {
|
|
28876
28894
|
shape: "polygon";
|
|
28877
28895
|
points: {
|
|
@@ -28892,6 +28910,7 @@ declare const polygonSmtPadProps: z.ZodObject<Omit<{
|
|
|
28892
28910
|
relative?: boolean | undefined;
|
|
28893
28911
|
name?: string | undefined;
|
|
28894
28912
|
portHints?: (string | number)[] | undefined;
|
|
28913
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28895
28914
|
}, {
|
|
28896
28915
|
shape: "polygon";
|
|
28897
28916
|
points: {
|
|
@@ -28914,6 +28933,7 @@ declare const polygonSmtPadProps: z.ZodObject<Omit<{
|
|
|
28914
28933
|
relative?: boolean | undefined;
|
|
28915
28934
|
name?: string | undefined;
|
|
28916
28935
|
portHints?: (string | number)[] | undefined;
|
|
28936
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28917
28937
|
}>;
|
|
28918
28938
|
declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
28919
28939
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -28942,6 +28962,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
28942
28962
|
shape: z.ZodLiteral<"circle">;
|
|
28943
28963
|
radius: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28944
28964
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
28965
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
28945
28966
|
}, "strip", z.ZodTypeAny, {
|
|
28946
28967
|
shape: "circle";
|
|
28947
28968
|
radius: number;
|
|
@@ -28959,6 +28980,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
28959
28980
|
relative?: boolean | undefined;
|
|
28960
28981
|
name?: string | undefined;
|
|
28961
28982
|
portHints?: (string | number)[] | undefined;
|
|
28983
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28962
28984
|
}, {
|
|
28963
28985
|
shape: "circle";
|
|
28964
28986
|
radius: string | number;
|
|
@@ -28978,6 +29000,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
28978
29000
|
relative?: boolean | undefined;
|
|
28979
29001
|
name?: string | undefined;
|
|
28980
29002
|
portHints?: (string | number)[] | undefined;
|
|
29003
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
28981
29004
|
}>, z.ZodObject<Omit<{
|
|
28982
29005
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
28983
29006
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -29006,6 +29029,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29006
29029
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
29007
29030
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
29008
29031
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
29032
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
29009
29033
|
}, "strip", z.ZodTypeAny, {
|
|
29010
29034
|
shape: "rect";
|
|
29011
29035
|
width: number;
|
|
@@ -29024,6 +29048,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29024
29048
|
relative?: boolean | undefined;
|
|
29025
29049
|
name?: string | undefined;
|
|
29026
29050
|
portHints?: (string | number)[] | undefined;
|
|
29051
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
29027
29052
|
}, {
|
|
29028
29053
|
shape: "rect";
|
|
29029
29054
|
width: string | number;
|
|
@@ -29044,6 +29069,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29044
29069
|
relative?: boolean | undefined;
|
|
29045
29070
|
name?: string | undefined;
|
|
29046
29071
|
portHints?: (string | number)[] | undefined;
|
|
29072
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
29047
29073
|
}>, z.ZodObject<Omit<{
|
|
29048
29074
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
29049
29075
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -29073,6 +29099,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29073
29099
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
29074
29100
|
ccwRotation: z.ZodNumber;
|
|
29075
29101
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
29102
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
29076
29103
|
}, "strip", z.ZodTypeAny, {
|
|
29077
29104
|
shape: "rotated_rect";
|
|
29078
29105
|
width: number;
|
|
@@ -29092,6 +29119,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29092
29119
|
relative?: boolean | undefined;
|
|
29093
29120
|
name?: string | undefined;
|
|
29094
29121
|
portHints?: (string | number)[] | undefined;
|
|
29122
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
29095
29123
|
}, {
|
|
29096
29124
|
shape: "rotated_rect";
|
|
29097
29125
|
width: string | number;
|
|
@@ -29113,6 +29141,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29113
29141
|
relative?: boolean | undefined;
|
|
29114
29142
|
name?: string | undefined;
|
|
29115
29143
|
portHints?: (string | number)[] | undefined;
|
|
29144
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
29116
29145
|
}>, z.ZodObject<Omit<{
|
|
29117
29146
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
29118
29147
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -29142,6 +29171,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29142
29171
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
29143
29172
|
radius: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
29144
29173
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
29174
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
29145
29175
|
}, "strip", z.ZodTypeAny, {
|
|
29146
29176
|
shape: "pill";
|
|
29147
29177
|
width: number;
|
|
@@ -29161,6 +29191,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29161
29191
|
relative?: boolean | undefined;
|
|
29162
29192
|
name?: string | undefined;
|
|
29163
29193
|
portHints?: (string | number)[] | undefined;
|
|
29194
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
29164
29195
|
}, {
|
|
29165
29196
|
shape: "pill";
|
|
29166
29197
|
width: string | number;
|
|
@@ -29182,6 +29213,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29182
29213
|
relative?: boolean | undefined;
|
|
29183
29214
|
name?: string | undefined;
|
|
29184
29215
|
portHints?: (string | number)[] | undefined;
|
|
29216
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
29185
29217
|
}>, z.ZodObject<Omit<{
|
|
29186
29218
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
29187
29219
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -29218,6 +29250,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29218
29250
|
y: string | number;
|
|
29219
29251
|
}>, "many">;
|
|
29220
29252
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
29253
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
29221
29254
|
}, "strip", z.ZodTypeAny, {
|
|
29222
29255
|
shape: "polygon";
|
|
29223
29256
|
points: {
|
|
@@ -29238,6 +29271,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29238
29271
|
relative?: boolean | undefined;
|
|
29239
29272
|
name?: string | undefined;
|
|
29240
29273
|
portHints?: (string | number)[] | undefined;
|
|
29274
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
29241
29275
|
}, {
|
|
29242
29276
|
shape: "polygon";
|
|
29243
29277
|
points: {
|
|
@@ -29260,6 +29294,7 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
29260
29294
|
relative?: boolean | undefined;
|
|
29261
29295
|
name?: string | undefined;
|
|
29262
29296
|
portHints?: (string | number)[] | undefined;
|
|
29297
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
29263
29298
|
}>]>;
|
|
29264
29299
|
type InferredSmtPadProps = z.input<typeof smtPadProps>;
|
|
29265
29300
|
|
package/dist/index.js
CHANGED
|
@@ -1011,7 +1011,8 @@ var rectSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
1011
1011
|
shape: z45.literal("rect"),
|
|
1012
1012
|
width: distance,
|
|
1013
1013
|
height: distance,
|
|
1014
|
-
portHints: portHints.optional()
|
|
1014
|
+
portHints: portHints.optional(),
|
|
1015
|
+
coveredWithSolderMask: z45.boolean().optional()
|
|
1015
1016
|
});
|
|
1016
1017
|
expectTypesMatch(true);
|
|
1017
1018
|
var rotatedRectSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
@@ -1020,14 +1021,16 @@ var rotatedRectSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
1020
1021
|
width: distance,
|
|
1021
1022
|
height: distance,
|
|
1022
1023
|
ccwRotation: z45.number(),
|
|
1023
|
-
portHints: portHints.optional()
|
|
1024
|
+
portHints: portHints.optional(),
|
|
1025
|
+
coveredWithSolderMask: z45.boolean().optional()
|
|
1024
1026
|
});
|
|
1025
1027
|
expectTypesMatch(true);
|
|
1026
1028
|
var circleSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
1027
1029
|
name: z45.string().optional(),
|
|
1028
1030
|
shape: z45.literal("circle"),
|
|
1029
1031
|
radius: distance,
|
|
1030
|
-
portHints: portHints.optional()
|
|
1032
|
+
portHints: portHints.optional(),
|
|
1033
|
+
coveredWithSolderMask: z45.boolean().optional()
|
|
1031
1034
|
});
|
|
1032
1035
|
expectTypesMatch(true);
|
|
1033
1036
|
var pillSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
@@ -1036,14 +1039,16 @@ var pillSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
|
1036
1039
|
width: distance,
|
|
1037
1040
|
height: distance,
|
|
1038
1041
|
radius: distance,
|
|
1039
|
-
portHints: portHints.optional()
|
|
1042
|
+
portHints: portHints.optional(),
|
|
1043
|
+
coveredWithSolderMask: z45.boolean().optional()
|
|
1040
1044
|
});
|
|
1041
1045
|
expectTypesMatch(true);
|
|
1042
1046
|
var polygonSmtPadProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({
|
|
1043
1047
|
name: z45.string().optional(),
|
|
1044
1048
|
shape: z45.literal("polygon"),
|
|
1045
1049
|
points: z45.array(point),
|
|
1046
|
-
portHints: portHints.optional()
|
|
1050
|
+
portHints: portHints.optional(),
|
|
1051
|
+
coveredWithSolderMask: z45.boolean().optional()
|
|
1047
1052
|
});
|
|
1048
1053
|
expectTypesMatch(true);
|
|
1049
1054
|
var smtPadProps = z45.discriminatedUnion("shape", [
|