@tscircuit/props 0.0.407 → 0.0.409
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 +80 -8
- package/dist/index.js +24 -10
- package/dist/index.js.map +1 -1
- package/lib/components/hole.ts +6 -0
- package/lib/components/panel.ts +12 -0
- package/lib/components/platedhole.ts +12 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -12809,6 +12809,13 @@ interface PanelProps extends BaseGroupProps {
|
|
|
12809
12809
|
* If true, prevent a solder mask from being applied to this panel.
|
|
12810
12810
|
*/
|
|
12811
12811
|
noSolderMask?: boolean;
|
|
12812
|
+
/** Method for panelization */
|
|
12813
|
+
panelizationMethod?: "tab-routing" | "none";
|
|
12814
|
+
/** Gap between boards in a panel */
|
|
12815
|
+
boardGap?: Distance;
|
|
12816
|
+
tabWidth?: Distance;
|
|
12817
|
+
tabLength?: Distance;
|
|
12818
|
+
mouseBites?: boolean;
|
|
12812
12819
|
}
|
|
12813
12820
|
declare const panelProps: z.ZodObject<Omit<{
|
|
12814
12821
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -13327,6 +13334,11 @@ declare const panelProps: z.ZodObject<Omit<{
|
|
|
13327
13334
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
13328
13335
|
children: z.ZodOptional<z.ZodAny>;
|
|
13329
13336
|
noSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
13337
|
+
panelizationMethod: z.ZodOptional<z.ZodEnum<["tab-routing", "none"]>>;
|
|
13338
|
+
boardGap: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13339
|
+
tabWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13340
|
+
tabLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
13341
|
+
mouseBites: z.ZodOptional<z.ZodBoolean>;
|
|
13330
13342
|
}, "strip", z.ZodTypeAny, {
|
|
13331
13343
|
width: number;
|
|
13332
13344
|
height: number;
|
|
@@ -13571,6 +13583,11 @@ declare const panelProps: z.ZodObject<Omit<{
|
|
|
13571
13583
|
schPack?: boolean | undefined;
|
|
13572
13584
|
schMatchAdapt?: boolean | undefined;
|
|
13573
13585
|
noSolderMask?: boolean | undefined;
|
|
13586
|
+
panelizationMethod?: "none" | "tab-routing" | undefined;
|
|
13587
|
+
boardGap?: number | undefined;
|
|
13588
|
+
tabWidth?: number | undefined;
|
|
13589
|
+
tabLength?: number | undefined;
|
|
13590
|
+
mouseBites?: boolean | undefined;
|
|
13574
13591
|
}, {
|
|
13575
13592
|
width: string | number;
|
|
13576
13593
|
height: string | number;
|
|
@@ -13817,6 +13834,11 @@ declare const panelProps: z.ZodObject<Omit<{
|
|
|
13817
13834
|
schPack?: boolean | undefined;
|
|
13818
13835
|
schMatchAdapt?: boolean | undefined;
|
|
13819
13836
|
noSolderMask?: boolean | undefined;
|
|
13837
|
+
panelizationMethod?: "none" | "tab-routing" | undefined;
|
|
13838
|
+
boardGap?: string | number | undefined;
|
|
13839
|
+
tabWidth?: string | number | undefined;
|
|
13840
|
+
tabLength?: string | number | undefined;
|
|
13841
|
+
mouseBites?: boolean | undefined;
|
|
13820
13842
|
}>;
|
|
13821
13843
|
|
|
13822
13844
|
interface BreakoutProps extends Omit<SubcircuitGroupProps, "subcircuit"> {
|
|
@@ -25014,6 +25036,7 @@ interface CirclePlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "la
|
|
|
25014
25036
|
outerDiameter: number | string;
|
|
25015
25037
|
portHints?: PortHints;
|
|
25016
25038
|
solderMaskMargin?: Distance;
|
|
25039
|
+
coveredWithSolderMask?: boolean;
|
|
25017
25040
|
}
|
|
25018
25041
|
interface OvalPlatedHoleProps extends Omit<PcbLayoutProps, "layer"> {
|
|
25019
25042
|
name?: string;
|
|
@@ -25029,6 +25052,7 @@ interface OvalPlatedHoleProps extends Omit<PcbLayoutProps, "layer"> {
|
|
|
25029
25052
|
innerWidth?: number | string;
|
|
25030
25053
|
/** @deprecated use holeHeight */
|
|
25031
25054
|
innerHeight?: number | string;
|
|
25055
|
+
coveredWithSolderMask?: boolean;
|
|
25032
25056
|
}
|
|
25033
25057
|
interface PillPlatedHoleProps extends Omit<PcbLayoutProps, "layer"> {
|
|
25034
25058
|
name?: string;
|
|
@@ -25047,6 +25071,7 @@ interface PillPlatedHoleProps extends Omit<PcbLayoutProps, "layer"> {
|
|
|
25047
25071
|
innerHeight?: number | string;
|
|
25048
25072
|
portHints?: PortHints;
|
|
25049
25073
|
solderMaskMargin?: Distance;
|
|
25074
|
+
coveredWithSolderMask?: boolean;
|
|
25050
25075
|
}
|
|
25051
25076
|
interface CircularHoleWithRectPlatedProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
|
|
25052
25077
|
name?: string;
|
|
@@ -25062,6 +25087,7 @@ interface CircularHoleWithRectPlatedProps extends Omit<PcbLayoutProps, "pcbRotat
|
|
|
25062
25087
|
holeOffsetX?: number | string;
|
|
25063
25088
|
holeOffsetY?: number | string;
|
|
25064
25089
|
solderMaskMargin?: Distance;
|
|
25090
|
+
coveredWithSolderMask?: boolean;
|
|
25065
25091
|
}
|
|
25066
25092
|
interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
|
|
25067
25093
|
name?: string;
|
|
@@ -25077,6 +25103,7 @@ interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotati
|
|
|
25077
25103
|
holeOffsetX?: number | string;
|
|
25078
25104
|
holeOffsetY?: number | string;
|
|
25079
25105
|
solderMaskMargin?: Distance;
|
|
25106
|
+
coveredWithSolderMask?: boolean;
|
|
25080
25107
|
}
|
|
25081
25108
|
interface HoleWithPolygonPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "layer"> {
|
|
25082
25109
|
name?: string;
|
|
@@ -25091,6 +25118,7 @@ interface HoleWithPolygonPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRot
|
|
|
25091
25118
|
holeOffsetY: number | string;
|
|
25092
25119
|
portHints?: PortHints;
|
|
25093
25120
|
solderMaskMargin?: Distance;
|
|
25121
|
+
coveredWithSolderMask?: boolean;
|
|
25094
25122
|
}
|
|
25095
25123
|
type PlatedHoleProps = CirclePlatedHoleProps | OvalPlatedHoleProps | PillPlatedHoleProps | CircularHoleWithRectPlatedProps | PillWithRectPadPlatedHoleProps | HoleWithPolygonPadPlatedHoleProps;
|
|
25096
25124
|
declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
@@ -25154,6 +25182,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25154
25182
|
outerDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
25155
25183
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
25156
25184
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25185
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
25157
25186
|
}, "strip", z.ZodTypeAny, {
|
|
25158
25187
|
shape: "circle";
|
|
25159
25188
|
holeDiameter: number;
|
|
@@ -25184,6 +25213,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25184
25213
|
connectsTo?: string | string[] | undefined;
|
|
25185
25214
|
portHints?: (string | number)[] | undefined;
|
|
25186
25215
|
solderMaskMargin?: number | undefined;
|
|
25216
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25187
25217
|
}, {
|
|
25188
25218
|
shape: "circle";
|
|
25189
25219
|
holeDiameter: string | number;
|
|
@@ -25214,6 +25244,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25214
25244
|
connectsTo?: string | string[] | undefined;
|
|
25215
25245
|
portHints?: (string | number)[] | undefined;
|
|
25216
25246
|
solderMaskMargin?: string | number | undefined;
|
|
25247
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25217
25248
|
}>, z.ZodObject<Omit<{
|
|
25218
25249
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25219
25250
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -25279,6 +25310,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25279
25310
|
innerHeight: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25280
25311
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
25281
25312
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25313
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
25282
25314
|
}, "strip", z.ZodTypeAny, {
|
|
25283
25315
|
shape: "oval";
|
|
25284
25316
|
outerWidth: number;
|
|
@@ -25310,6 +25342,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25310
25342
|
connectsTo?: string | string[] | undefined;
|
|
25311
25343
|
portHints?: (string | number)[] | undefined;
|
|
25312
25344
|
solderMaskMargin?: number | undefined;
|
|
25345
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25313
25346
|
holeWidth?: number | undefined;
|
|
25314
25347
|
holeHeight?: number | undefined;
|
|
25315
25348
|
innerWidth?: number | undefined;
|
|
@@ -25347,6 +25380,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25347
25380
|
connectsTo?: string | string[] | undefined;
|
|
25348
25381
|
portHints?: (string | number)[] | undefined;
|
|
25349
25382
|
solderMaskMargin?: string | number | undefined;
|
|
25383
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25350
25384
|
innerWidth?: string | number | undefined;
|
|
25351
25385
|
innerHeight?: string | number | undefined;
|
|
25352
25386
|
}>, z.ZodObject<Omit<{
|
|
@@ -25417,6 +25451,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25417
25451
|
holeOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25418
25452
|
holeOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25419
25453
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25454
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
25420
25455
|
}, "strip", z.ZodTypeAny, {
|
|
25421
25456
|
shape: "pill";
|
|
25422
25457
|
outerWidth: number;
|
|
@@ -25448,6 +25483,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25448
25483
|
connectsTo?: string | string[] | undefined;
|
|
25449
25484
|
portHints?: (string | number)[] | undefined;
|
|
25450
25485
|
solderMaskMargin?: number | undefined;
|
|
25486
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25451
25487
|
holeWidth?: number | undefined;
|
|
25452
25488
|
holeHeight?: number | undefined;
|
|
25453
25489
|
innerWidth?: number | undefined;
|
|
@@ -25488,6 +25524,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25488
25524
|
connectsTo?: string | string[] | undefined;
|
|
25489
25525
|
portHints?: (string | number)[] | undefined;
|
|
25490
25526
|
solderMaskMargin?: string | number | undefined;
|
|
25527
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25491
25528
|
innerWidth?: string | number | undefined;
|
|
25492
25529
|
innerHeight?: string | number | undefined;
|
|
25493
25530
|
rectPad?: boolean | undefined;
|
|
@@ -25560,6 +25597,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25560
25597
|
holeOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25561
25598
|
holeOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25562
25599
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25600
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
25563
25601
|
}, "strip", z.ZodTypeAny, {
|
|
25564
25602
|
shape: "circular_hole_with_rect_pad";
|
|
25565
25603
|
holeDiameter: number;
|
|
@@ -25591,6 +25629,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25591
25629
|
connectsTo?: string | string[] | undefined;
|
|
25592
25630
|
portHints?: (string | number)[] | undefined;
|
|
25593
25631
|
solderMaskMargin?: number | undefined;
|
|
25632
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25594
25633
|
holeOffsetX?: number | undefined;
|
|
25595
25634
|
holeOffsetY?: number | undefined;
|
|
25596
25635
|
rectBorderRadius?: number | undefined;
|
|
@@ -25627,6 +25666,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25627
25666
|
connectsTo?: string | string[] | undefined;
|
|
25628
25667
|
portHints?: (string | number)[] | undefined;
|
|
25629
25668
|
solderMaskMargin?: string | number | undefined;
|
|
25669
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25630
25670
|
holeOffsetX?: string | number | undefined;
|
|
25631
25671
|
holeOffsetY?: string | number | undefined;
|
|
25632
25672
|
rectBorderRadius?: string | number | undefined;
|
|
@@ -25699,6 +25739,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25699
25739
|
holeOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25700
25740
|
holeOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25701
25741
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25742
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
25702
25743
|
}, "strip", z.ZodTypeAny, {
|
|
25703
25744
|
shape: "pill_hole_with_rect_pad";
|
|
25704
25745
|
holeWidth: number;
|
|
@@ -25733,6 +25774,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25733
25774
|
connectsTo?: string | string[] | undefined;
|
|
25734
25775
|
portHints?: (string | number)[] | undefined;
|
|
25735
25776
|
solderMaskMargin?: number | undefined;
|
|
25777
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25736
25778
|
holeOffsetX?: number | undefined;
|
|
25737
25779
|
holeOffsetY?: number | undefined;
|
|
25738
25780
|
}, {
|
|
@@ -25769,6 +25811,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25769
25811
|
connectsTo?: string | string[] | undefined;
|
|
25770
25812
|
portHints?: (string | number)[] | undefined;
|
|
25771
25813
|
solderMaskMargin?: string | number | undefined;
|
|
25814
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25772
25815
|
holeOffsetX?: string | number | undefined;
|
|
25773
25816
|
holeOffsetY?: string | number | undefined;
|
|
25774
25817
|
}>, z.ZodObject<Omit<{
|
|
@@ -25846,6 +25889,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25846
25889
|
holeOffsetY: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
25847
25890
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
25848
25891
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25892
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
25849
25893
|
}, "strip", z.ZodTypeAny, {
|
|
25850
25894
|
shape: "hole_with_polygon_pad";
|
|
25851
25895
|
holeOffsetX: number;
|
|
@@ -25882,6 +25926,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25882
25926
|
holeDiameter?: number | undefined;
|
|
25883
25927
|
portHints?: (string | number)[] | undefined;
|
|
25884
25928
|
solderMaskMargin?: number | undefined;
|
|
25929
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25885
25930
|
holeWidth?: number | undefined;
|
|
25886
25931
|
holeHeight?: number | undefined;
|
|
25887
25932
|
}, {
|
|
@@ -25920,6 +25965,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25920
25965
|
holeDiameter?: string | number | undefined;
|
|
25921
25966
|
portHints?: (string | number)[] | undefined;
|
|
25922
25967
|
solderMaskMargin?: string | number | undefined;
|
|
25968
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25923
25969
|
holeWidth?: string | number | undefined;
|
|
25924
25970
|
holeHeight?: string | number | undefined;
|
|
25925
25971
|
}>]>, {
|
|
@@ -25952,6 +25998,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25952
25998
|
connectsTo?: string | string[] | undefined;
|
|
25953
25999
|
portHints?: (string | number)[] | undefined;
|
|
25954
26000
|
solderMaskMargin?: number | undefined;
|
|
26001
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25955
26002
|
} | {
|
|
25956
26003
|
shape: "oval";
|
|
25957
26004
|
outerWidth: number;
|
|
@@ -25983,6 +26030,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25983
26030
|
connectsTo?: string | string[] | undefined;
|
|
25984
26031
|
portHints?: (string | number)[] | undefined;
|
|
25985
26032
|
solderMaskMargin?: number | undefined;
|
|
26033
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
25986
26034
|
holeWidth?: number | undefined;
|
|
25987
26035
|
holeHeight?: number | undefined;
|
|
25988
26036
|
innerWidth?: number | undefined;
|
|
@@ -26018,6 +26066,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26018
26066
|
connectsTo?: string | string[] | undefined;
|
|
26019
26067
|
portHints?: (string | number)[] | undefined;
|
|
26020
26068
|
solderMaskMargin?: number | undefined;
|
|
26069
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26021
26070
|
holeWidth?: number | undefined;
|
|
26022
26071
|
holeHeight?: number | undefined;
|
|
26023
26072
|
innerWidth?: number | undefined;
|
|
@@ -26056,6 +26105,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26056
26105
|
connectsTo?: string | string[] | undefined;
|
|
26057
26106
|
portHints?: (string | number)[] | undefined;
|
|
26058
26107
|
solderMaskMargin?: number | undefined;
|
|
26108
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26059
26109
|
holeOffsetX?: number | undefined;
|
|
26060
26110
|
holeOffsetY?: number | undefined;
|
|
26061
26111
|
rectBorderRadius?: number | undefined;
|
|
@@ -26095,6 +26145,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26095
26145
|
connectsTo?: string | string[] | undefined;
|
|
26096
26146
|
portHints?: (string | number)[] | undefined;
|
|
26097
26147
|
solderMaskMargin?: number | undefined;
|
|
26148
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26098
26149
|
holeOffsetX?: number | undefined;
|
|
26099
26150
|
holeOffsetY?: number | undefined;
|
|
26100
26151
|
} | {
|
|
@@ -26133,6 +26184,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26133
26184
|
holeDiameter?: number | undefined;
|
|
26134
26185
|
portHints?: (string | number)[] | undefined;
|
|
26135
26186
|
solderMaskMargin?: number | undefined;
|
|
26187
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26136
26188
|
holeWidth?: number | undefined;
|
|
26137
26189
|
holeHeight?: number | undefined;
|
|
26138
26190
|
}, {
|
|
@@ -26165,6 +26217,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26165
26217
|
connectsTo?: string | string[] | undefined;
|
|
26166
26218
|
portHints?: (string | number)[] | undefined;
|
|
26167
26219
|
solderMaskMargin?: string | number | undefined;
|
|
26220
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26168
26221
|
} | {
|
|
26169
26222
|
shape: "oval";
|
|
26170
26223
|
outerWidth: string | number;
|
|
@@ -26198,6 +26251,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26198
26251
|
connectsTo?: string | string[] | undefined;
|
|
26199
26252
|
portHints?: (string | number)[] | undefined;
|
|
26200
26253
|
solderMaskMargin?: string | number | undefined;
|
|
26254
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26201
26255
|
innerWidth?: string | number | undefined;
|
|
26202
26256
|
innerHeight?: string | number | undefined;
|
|
26203
26257
|
} | {
|
|
@@ -26233,6 +26287,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26233
26287
|
connectsTo?: string | string[] | undefined;
|
|
26234
26288
|
portHints?: (string | number)[] | undefined;
|
|
26235
26289
|
solderMaskMargin?: string | number | undefined;
|
|
26290
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26236
26291
|
innerWidth?: string | number | undefined;
|
|
26237
26292
|
innerHeight?: string | number | undefined;
|
|
26238
26293
|
rectPad?: boolean | undefined;
|
|
@@ -26269,6 +26324,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26269
26324
|
connectsTo?: string | string[] | undefined;
|
|
26270
26325
|
portHints?: (string | number)[] | undefined;
|
|
26271
26326
|
solderMaskMargin?: string | number | undefined;
|
|
26327
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26272
26328
|
holeOffsetX?: string | number | undefined;
|
|
26273
26329
|
holeOffsetY?: string | number | undefined;
|
|
26274
26330
|
rectBorderRadius?: string | number | undefined;
|
|
@@ -26308,6 +26364,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26308
26364
|
connectsTo?: string | string[] | undefined;
|
|
26309
26365
|
portHints?: (string | number)[] | undefined;
|
|
26310
26366
|
solderMaskMargin?: string | number | undefined;
|
|
26367
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26311
26368
|
holeOffsetX?: string | number | undefined;
|
|
26312
26369
|
holeOffsetY?: string | number | undefined;
|
|
26313
26370
|
} | {
|
|
@@ -26346,6 +26403,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26346
26403
|
holeDiameter?: string | number | undefined;
|
|
26347
26404
|
portHints?: (string | number)[] | undefined;
|
|
26348
26405
|
solderMaskMargin?: string | number | undefined;
|
|
26406
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
26349
26407
|
holeWidth?: string | number | undefined;
|
|
26350
26408
|
holeHeight?: string | number | undefined;
|
|
26351
26409
|
}>;
|
|
@@ -34343,9 +34401,9 @@ declare const rectSmtPadProps: z.ZodObject<Omit<{
|
|
|
34343
34401
|
name?: string | undefined;
|
|
34344
34402
|
portHints?: (string | number)[] | undefined;
|
|
34345
34403
|
solderMaskMargin?: number | undefined;
|
|
34404
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
34346
34405
|
rectBorderRadius?: number | undefined;
|
|
34347
34406
|
cornerRadius?: number | undefined;
|
|
34348
|
-
coveredWithSolderMask?: boolean | undefined;
|
|
34349
34407
|
}, {
|
|
34350
34408
|
shape: "rect";
|
|
34351
34409
|
width: string | number;
|
|
@@ -34378,9 +34436,9 @@ declare const rectSmtPadProps: z.ZodObject<Omit<{
|
|
|
34378
34436
|
name?: string | undefined;
|
|
34379
34437
|
portHints?: (string | number)[] | undefined;
|
|
34380
34438
|
solderMaskMargin?: string | number | undefined;
|
|
34439
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
34381
34440
|
rectBorderRadius?: string | number | undefined;
|
|
34382
34441
|
cornerRadius?: string | number | undefined;
|
|
34383
|
-
coveredWithSolderMask?: boolean | undefined;
|
|
34384
34442
|
}>;
|
|
34385
34443
|
declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
34386
34444
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -34476,8 +34534,8 @@ declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
|
34476
34534
|
name?: string | undefined;
|
|
34477
34535
|
portHints?: (string | number)[] | undefined;
|
|
34478
34536
|
solderMaskMargin?: number | undefined;
|
|
34479
|
-
cornerRadius?: number | undefined;
|
|
34480
34537
|
coveredWithSolderMask?: boolean | undefined;
|
|
34538
|
+
cornerRadius?: number | undefined;
|
|
34481
34539
|
}, {
|
|
34482
34540
|
shape: "rotated_rect";
|
|
34483
34541
|
width: string | number;
|
|
@@ -34511,8 +34569,8 @@ declare const rotatedRectSmtPadProps: z.ZodObject<Omit<{
|
|
|
34511
34569
|
name?: string | undefined;
|
|
34512
34570
|
portHints?: (string | number)[] | undefined;
|
|
34513
34571
|
solderMaskMargin?: string | number | undefined;
|
|
34514
|
-
cornerRadius?: string | number | undefined;
|
|
34515
34572
|
coveredWithSolderMask?: boolean | undefined;
|
|
34573
|
+
cornerRadius?: string | number | undefined;
|
|
34516
34574
|
}>;
|
|
34517
34575
|
declare const circleSmtPadProps: z.ZodObject<Omit<{
|
|
34518
34576
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -35119,9 +35177,9 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
35119
35177
|
name?: string | undefined;
|
|
35120
35178
|
portHints?: (string | number)[] | undefined;
|
|
35121
35179
|
solderMaskMargin?: number | undefined;
|
|
35180
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
35122
35181
|
rectBorderRadius?: number | undefined;
|
|
35123
35182
|
cornerRadius?: number | undefined;
|
|
35124
|
-
coveredWithSolderMask?: boolean | undefined;
|
|
35125
35183
|
}, {
|
|
35126
35184
|
shape: "rect";
|
|
35127
35185
|
width: string | number;
|
|
@@ -35154,9 +35212,9 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
35154
35212
|
name?: string | undefined;
|
|
35155
35213
|
portHints?: (string | number)[] | undefined;
|
|
35156
35214
|
solderMaskMargin?: string | number | undefined;
|
|
35215
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
35157
35216
|
rectBorderRadius?: string | number | undefined;
|
|
35158
35217
|
cornerRadius?: string | number | undefined;
|
|
35159
|
-
coveredWithSolderMask?: boolean | undefined;
|
|
35160
35218
|
}>, z.ZodObject<Omit<{
|
|
35161
35219
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
35162
35220
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -35251,8 +35309,8 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
35251
35309
|
name?: string | undefined;
|
|
35252
35310
|
portHints?: (string | number)[] | undefined;
|
|
35253
35311
|
solderMaskMargin?: number | undefined;
|
|
35254
|
-
cornerRadius?: number | undefined;
|
|
35255
35312
|
coveredWithSolderMask?: boolean | undefined;
|
|
35313
|
+
cornerRadius?: number | undefined;
|
|
35256
35314
|
}, {
|
|
35257
35315
|
shape: "rotated_rect";
|
|
35258
35316
|
width: string | number;
|
|
@@ -35286,8 +35344,8 @@ declare const smtPadProps: z.ZodDiscriminatedUnion<"shape", [z.ZodObject<Omit<{
|
|
|
35286
35344
|
name?: string | undefined;
|
|
35287
35345
|
portHints?: (string | number)[] | undefined;
|
|
35288
35346
|
solderMaskMargin?: string | number | undefined;
|
|
35289
|
-
cornerRadius?: string | number | undefined;
|
|
35290
35347
|
coveredWithSolderMask?: boolean | undefined;
|
|
35348
|
+
cornerRadius?: string | number | undefined;
|
|
35291
35349
|
}>, z.ZodObject<Omit<{
|
|
35292
35350
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
35293
35351
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -36023,6 +36081,7 @@ interface CircleHoleProps extends PcbLayoutProps {
|
|
|
36023
36081
|
diameter?: Distance;
|
|
36024
36082
|
radius?: Distance;
|
|
36025
36083
|
solderMaskMargin?: Distance;
|
|
36084
|
+
coveredWithSolderMask?: boolean;
|
|
36026
36085
|
}
|
|
36027
36086
|
interface PillHoleProps extends PcbLayoutProps {
|
|
36028
36087
|
name?: string;
|
|
@@ -36030,6 +36089,7 @@ interface PillHoleProps extends PcbLayoutProps {
|
|
|
36030
36089
|
width: Distance;
|
|
36031
36090
|
height: Distance;
|
|
36032
36091
|
solderMaskMargin?: Distance;
|
|
36092
|
+
coveredWithSolderMask?: boolean;
|
|
36033
36093
|
}
|
|
36034
36094
|
interface RectHoleProps extends PcbLayoutProps {
|
|
36035
36095
|
name?: string;
|
|
@@ -36037,6 +36097,7 @@ interface RectHoleProps extends PcbLayoutProps {
|
|
|
36037
36097
|
width: Distance;
|
|
36038
36098
|
height: Distance;
|
|
36039
36099
|
solderMaskMargin?: Distance;
|
|
36100
|
+
coveredWithSolderMask?: boolean;
|
|
36040
36101
|
}
|
|
36041
36102
|
type HoleProps = CircleHoleProps | PillHoleProps | RectHoleProps;
|
|
36042
36103
|
declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
@@ -36098,6 +36159,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36098
36159
|
diameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
36099
36160
|
radius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
36100
36161
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
36162
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
36101
36163
|
}, "strip", z.ZodTypeAny, {
|
|
36102
36164
|
pcbX?: number | undefined;
|
|
36103
36165
|
pcbY?: number | undefined;
|
|
@@ -36126,6 +36188,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36126
36188
|
name?: string | undefined;
|
|
36127
36189
|
shape?: "circle" | undefined;
|
|
36128
36190
|
solderMaskMargin?: number | undefined;
|
|
36191
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
36129
36192
|
radius?: number | undefined;
|
|
36130
36193
|
diameter?: number | undefined;
|
|
36131
36194
|
}, {
|
|
@@ -36158,6 +36221,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36158
36221
|
name?: string | undefined;
|
|
36159
36222
|
shape?: "circle" | undefined;
|
|
36160
36223
|
solderMaskMargin?: string | number | undefined;
|
|
36224
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
36161
36225
|
radius?: string | number | undefined;
|
|
36162
36226
|
diameter?: string | number | undefined;
|
|
36163
36227
|
}>, {
|
|
@@ -36190,6 +36254,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36190
36254
|
name?: string | undefined;
|
|
36191
36255
|
shape?: "circle" | undefined;
|
|
36192
36256
|
solderMaskMargin?: number | undefined;
|
|
36257
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
36193
36258
|
}, {
|
|
36194
36259
|
pcbX?: string | number | undefined;
|
|
36195
36260
|
pcbY?: string | number | undefined;
|
|
@@ -36220,6 +36285,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36220
36285
|
name?: string | undefined;
|
|
36221
36286
|
shape?: "circle" | undefined;
|
|
36222
36287
|
solderMaskMargin?: string | number | undefined;
|
|
36288
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
36223
36289
|
radius?: string | number | undefined;
|
|
36224
36290
|
diameter?: string | number | undefined;
|
|
36225
36291
|
}>, z.ZodObject<{
|
|
@@ -36281,6 +36347,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36281
36347
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
36282
36348
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
36283
36349
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
36350
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
36284
36351
|
}, "strip", z.ZodTypeAny, {
|
|
36285
36352
|
shape: "pill";
|
|
36286
36353
|
width: number;
|
|
@@ -36311,6 +36378,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36311
36378
|
relative?: boolean | undefined;
|
|
36312
36379
|
name?: string | undefined;
|
|
36313
36380
|
solderMaskMargin?: number | undefined;
|
|
36381
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
36314
36382
|
}, {
|
|
36315
36383
|
shape: "pill";
|
|
36316
36384
|
width: string | number;
|
|
@@ -36343,6 +36411,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36343
36411
|
relative?: boolean | undefined;
|
|
36344
36412
|
name?: string | undefined;
|
|
36345
36413
|
solderMaskMargin?: string | number | undefined;
|
|
36414
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
36346
36415
|
}>, z.ZodObject<{
|
|
36347
36416
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
36348
36417
|
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -36402,6 +36471,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36402
36471
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
36403
36472
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
36404
36473
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
36474
|
+
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
36405
36475
|
}, "strip", z.ZodTypeAny, {
|
|
36406
36476
|
shape: "rect";
|
|
36407
36477
|
width: number;
|
|
@@ -36432,6 +36502,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36432
36502
|
relative?: boolean | undefined;
|
|
36433
36503
|
name?: string | undefined;
|
|
36434
36504
|
solderMaskMargin?: number | undefined;
|
|
36505
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
36435
36506
|
}, {
|
|
36436
36507
|
shape: "rect";
|
|
36437
36508
|
width: string | number;
|
|
@@ -36464,6 +36535,7 @@ declare const holeProps: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
|
36464
36535
|
relative?: boolean | undefined;
|
|
36465
36536
|
name?: string | undefined;
|
|
36466
36537
|
solderMaskMargin?: string | number | undefined;
|
|
36538
|
+
coveredWithSolderMask?: boolean | undefined;
|
|
36467
36539
|
}>]>;
|
|
36468
36540
|
type InferredHoleProps = z.input<typeof holeProps>;
|
|
36469
36541
|
|
package/dist/index.js
CHANGED
|
@@ -732,7 +732,12 @@ var panelProps = baseGroupProps.omit({
|
|
|
732
732
|
width: distance,
|
|
733
733
|
height: distance,
|
|
734
734
|
children: z30.any().optional(),
|
|
735
|
-
noSolderMask: z30.boolean().optional()
|
|
735
|
+
noSolderMask: z30.boolean().optional(),
|
|
736
|
+
panelizationMethod: z30.enum(["tab-routing", "none"]).optional(),
|
|
737
|
+
boardGap: distance.optional(),
|
|
738
|
+
tabWidth: distance.optional(),
|
|
739
|
+
tabLength: distance.optional(),
|
|
740
|
+
mouseBites: z30.boolean().optional()
|
|
736
741
|
});
|
|
737
742
|
expectTypesMatch(true);
|
|
738
743
|
|
|
@@ -870,7 +875,8 @@ var platedHoleProps = z37.discriminatedUnion("shape", [
|
|
|
870
875
|
holeDiameter: distance12,
|
|
871
876
|
outerDiameter: distance12,
|
|
872
877
|
portHints: portHints.optional(),
|
|
873
|
-
solderMaskMargin: distance12.optional()
|
|
878
|
+
solderMaskMargin: distance12.optional(),
|
|
879
|
+
coveredWithSolderMask: z37.boolean().optional()
|
|
874
880
|
}),
|
|
875
881
|
pcbLayoutProps.omit({ layer: true }).extend({
|
|
876
882
|
name: z37.string().optional(),
|
|
@@ -883,7 +889,8 @@ var platedHoleProps = z37.discriminatedUnion("shape", [
|
|
|
883
889
|
innerWidth: distance12.optional().describe("DEPRECATED use holeWidth"),
|
|
884
890
|
innerHeight: distance12.optional().describe("DEPRECATED use holeHeight"),
|
|
885
891
|
portHints: portHints.optional(),
|
|
886
|
-
solderMaskMargin: distance12.optional()
|
|
892
|
+
solderMaskMargin: distance12.optional(),
|
|
893
|
+
coveredWithSolderMask: z37.boolean().optional()
|
|
887
894
|
}),
|
|
888
895
|
pcbLayoutProps.omit({ layer: true }).extend({
|
|
889
896
|
name: z37.string().optional(),
|
|
@@ -899,7 +906,8 @@ var platedHoleProps = z37.discriminatedUnion("shape", [
|
|
|
899
906
|
portHints: portHints.optional(),
|
|
900
907
|
holeOffsetX: distance12.optional(),
|
|
901
908
|
holeOffsetY: distance12.optional(),
|
|
902
|
-
solderMaskMargin: distance12.optional()
|
|
909
|
+
solderMaskMargin: distance12.optional(),
|
|
910
|
+
coveredWithSolderMask: z37.boolean().optional()
|
|
903
911
|
}),
|
|
904
912
|
pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
|
|
905
913
|
name: z37.string().optional(),
|
|
@@ -914,7 +922,8 @@ var platedHoleProps = z37.discriminatedUnion("shape", [
|
|
|
914
922
|
portHints: portHints.optional(),
|
|
915
923
|
holeOffsetX: distance12.optional(),
|
|
916
924
|
holeOffsetY: distance12.optional(),
|
|
917
|
-
solderMaskMargin: distance12.optional()
|
|
925
|
+
solderMaskMargin: distance12.optional(),
|
|
926
|
+
coveredWithSolderMask: z37.boolean().optional()
|
|
918
927
|
}),
|
|
919
928
|
pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
|
|
920
929
|
name: z37.string().optional(),
|
|
@@ -929,7 +938,8 @@ var platedHoleProps = z37.discriminatedUnion("shape", [
|
|
|
929
938
|
portHints: portHints.optional(),
|
|
930
939
|
holeOffsetX: distance12.optional(),
|
|
931
940
|
holeOffsetY: distance12.optional(),
|
|
932
|
-
solderMaskMargin: distance12.optional()
|
|
941
|
+
solderMaskMargin: distance12.optional(),
|
|
942
|
+
coveredWithSolderMask: z37.boolean().optional()
|
|
933
943
|
}),
|
|
934
944
|
pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({
|
|
935
945
|
name: z37.string().optional(),
|
|
@@ -943,7 +953,8 @@ var platedHoleProps = z37.discriminatedUnion("shape", [
|
|
|
943
953
|
holeOffsetX: distance12,
|
|
944
954
|
holeOffsetY: distance12,
|
|
945
955
|
portHints: portHints.optional(),
|
|
946
|
-
solderMaskMargin: distance12.optional()
|
|
956
|
+
solderMaskMargin: distance12.optional(),
|
|
957
|
+
coveredWithSolderMask: z37.boolean().optional()
|
|
947
958
|
})
|
|
948
959
|
]).refine((a) => {
|
|
949
960
|
if ("innerWidth" in a && a.innerWidth !== void 0) {
|
|
@@ -1244,7 +1255,8 @@ var circleHoleProps = pcbLayoutProps.extend({
|
|
|
1244
1255
|
shape: z50.literal("circle").optional(),
|
|
1245
1256
|
diameter: distance.optional(),
|
|
1246
1257
|
radius: distance.optional(),
|
|
1247
|
-
solderMaskMargin: distance.optional()
|
|
1258
|
+
solderMaskMargin: distance.optional(),
|
|
1259
|
+
coveredWithSolderMask: z50.boolean().optional()
|
|
1248
1260
|
}).transform((d) => ({
|
|
1249
1261
|
...d,
|
|
1250
1262
|
diameter: d.diameter ?? 2 * d.radius,
|
|
@@ -1255,14 +1267,16 @@ var pillHoleProps = pcbLayoutProps.extend({
|
|
|
1255
1267
|
shape: z50.literal("pill"),
|
|
1256
1268
|
width: distance,
|
|
1257
1269
|
height: distance,
|
|
1258
|
-
solderMaskMargin: distance.optional()
|
|
1270
|
+
solderMaskMargin: distance.optional(),
|
|
1271
|
+
coveredWithSolderMask: z50.boolean().optional()
|
|
1259
1272
|
});
|
|
1260
1273
|
var rectHoleProps = pcbLayoutProps.extend({
|
|
1261
1274
|
name: z50.string().optional(),
|
|
1262
1275
|
shape: z50.literal("rect"),
|
|
1263
1276
|
width: distance,
|
|
1264
1277
|
height: distance,
|
|
1265
|
-
solderMaskMargin: distance.optional()
|
|
1278
|
+
solderMaskMargin: distance.optional(),
|
|
1279
|
+
coveredWithSolderMask: z50.boolean().optional()
|
|
1266
1280
|
});
|
|
1267
1281
|
var holeProps = z50.union([
|
|
1268
1282
|
circleHoleProps,
|