@tscircuit/props 0.0.433 → 0.0.434
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 +12 -12
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/lib/components/platedhole.ts +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -28214,8 +28214,8 @@ interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotati
|
|
|
28214
28214
|
name?: string;
|
|
28215
28215
|
connectsTo?: string | string[];
|
|
28216
28216
|
shape: "pill_hole_with_rect_pad";
|
|
28217
|
-
holeShape
|
|
28218
|
-
padShape
|
|
28217
|
+
holeShape?: "pill";
|
|
28218
|
+
padShape?: "rect";
|
|
28219
28219
|
holeWidth: number | string;
|
|
28220
28220
|
holeHeight: number | string;
|
|
28221
28221
|
rectPadWidth: number | string;
|
|
@@ -28951,8 +28951,8 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
28951
28951
|
name: z.ZodOptional<z.ZodString>;
|
|
28952
28952
|
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
28953
28953
|
shape: z.ZodLiteral<"pill_hole_with_rect_pad">;
|
|
28954
|
-
holeShape: z.ZodLiteral<"pill"
|
|
28955
|
-
padShape: z.ZodLiteral<"rect"
|
|
28954
|
+
holeShape: z.ZodOptional<z.ZodLiteral<"pill">>;
|
|
28955
|
+
padShape: z.ZodOptional<z.ZodLiteral<"rect">>;
|
|
28956
28956
|
holeWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28957
28957
|
holeHeight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
28958
28958
|
rectPadWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -28968,8 +28968,6 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
28968
28968
|
holeHeight: number;
|
|
28969
28969
|
rectPadWidth: number;
|
|
28970
28970
|
rectPadHeight: number;
|
|
28971
|
-
holeShape: "pill";
|
|
28972
|
-
padShape: "rect";
|
|
28973
28971
|
pcbX?: string | number | undefined;
|
|
28974
28972
|
pcbY?: string | number | undefined;
|
|
28975
28973
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -29005,14 +29003,14 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29005
29003
|
coveredWithSolderMask?: boolean | undefined;
|
|
29006
29004
|
holeOffsetX?: number | undefined;
|
|
29007
29005
|
holeOffsetY?: number | undefined;
|
|
29006
|
+
holeShape?: "pill" | undefined;
|
|
29007
|
+
padShape?: "rect" | undefined;
|
|
29008
29008
|
}, {
|
|
29009
29009
|
shape: "pill_hole_with_rect_pad";
|
|
29010
29010
|
holeWidth: string | number;
|
|
29011
29011
|
holeHeight: string | number;
|
|
29012
29012
|
rectPadWidth: string | number;
|
|
29013
29013
|
rectPadHeight: string | number;
|
|
29014
|
-
holeShape: "pill";
|
|
29015
|
-
padShape: "rect";
|
|
29016
29014
|
pcbX?: string | number | undefined;
|
|
29017
29015
|
pcbY?: string | number | undefined;
|
|
29018
29016
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -29048,6 +29046,8 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29048
29046
|
coveredWithSolderMask?: boolean | undefined;
|
|
29049
29047
|
holeOffsetX?: string | number | undefined;
|
|
29050
29048
|
holeOffsetY?: string | number | undefined;
|
|
29049
|
+
holeShape?: "pill" | undefined;
|
|
29050
|
+
padShape?: "rect" | undefined;
|
|
29051
29051
|
}>, z.ZodObject<Omit<{
|
|
29052
29052
|
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
29053
29053
|
pcbY: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
@@ -29398,8 +29398,6 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29398
29398
|
holeHeight: number;
|
|
29399
29399
|
rectPadWidth: number;
|
|
29400
29400
|
rectPadHeight: number;
|
|
29401
|
-
holeShape: "pill";
|
|
29402
|
-
padShape: "rect";
|
|
29403
29401
|
pcbX?: string | number | undefined;
|
|
29404
29402
|
pcbY?: string | number | undefined;
|
|
29405
29403
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -29435,6 +29433,8 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29435
29433
|
coveredWithSolderMask?: boolean | undefined;
|
|
29436
29434
|
holeOffsetX?: number | undefined;
|
|
29437
29435
|
holeOffsetY?: number | undefined;
|
|
29436
|
+
holeShape?: "pill" | undefined;
|
|
29437
|
+
padShape?: "rect" | undefined;
|
|
29438
29438
|
} | {
|
|
29439
29439
|
shape: "hole_with_polygon_pad";
|
|
29440
29440
|
holeOffsetX: number;
|
|
@@ -29654,8 +29654,6 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29654
29654
|
holeHeight: string | number;
|
|
29655
29655
|
rectPadWidth: string | number;
|
|
29656
29656
|
rectPadHeight: string | number;
|
|
29657
|
-
holeShape: "pill";
|
|
29658
|
-
padShape: "rect";
|
|
29659
29657
|
pcbX?: string | number | undefined;
|
|
29660
29658
|
pcbY?: string | number | undefined;
|
|
29661
29659
|
pcbLeftEdgeX?: string | number | undefined;
|
|
@@ -29691,6 +29689,8 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
29691
29689
|
coveredWithSolderMask?: boolean | undefined;
|
|
29692
29690
|
holeOffsetX?: string | number | undefined;
|
|
29693
29691
|
holeOffsetY?: string | number | undefined;
|
|
29692
|
+
holeShape?: "pill" | undefined;
|
|
29693
|
+
padShape?: "rect" | undefined;
|
|
29694
29694
|
} | {
|
|
29695
29695
|
shape: "hole_with_polygon_pad";
|
|
29696
29696
|
holeOffsetX: string | number;
|
package/dist/index.js
CHANGED
|
@@ -999,8 +999,8 @@ var platedHoleProps = z41.discriminatedUnion("shape", [
|
|
|
999
999
|
name: z41.string().optional(),
|
|
1000
1000
|
connectsTo: z41.string().or(z41.array(z41.string())).optional(),
|
|
1001
1001
|
shape: z41.literal("pill_hole_with_rect_pad"),
|
|
1002
|
-
holeShape: z41.literal("pill"),
|
|
1003
|
-
padShape: z41.literal("rect"),
|
|
1002
|
+
holeShape: z41.literal("pill").optional(),
|
|
1003
|
+
padShape: z41.literal("rect").optional(),
|
|
1004
1004
|
holeWidth: distance14,
|
|
1005
1005
|
holeHeight: distance14,
|
|
1006
1006
|
rectPadWidth: distance14,
|