@tscircuit/props 0.0.510 → 0.0.512
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 -5
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/lib/components/footprint.ts +0 -8
- package/lib/components/platedhole.ts +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -68432,6 +68432,7 @@ interface PillWithRectPadPlatedHoleProps extends Omit<PcbLayoutProps, "layer"> {
|
|
|
68432
68432
|
portHints?: PortHints;
|
|
68433
68433
|
holeOffsetX?: number | string;
|
|
68434
68434
|
holeOffsetY?: number | string;
|
|
68435
|
+
rectBorderRadius?: number | string;
|
|
68435
68436
|
solderMaskMargin?: Distance;
|
|
68436
68437
|
coveredWithSolderMask?: boolean;
|
|
68437
68438
|
}
|
|
@@ -69194,6 +69195,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
69194
69195
|
holeHeight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
69195
69196
|
rectPadWidth: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
69196
69197
|
rectPadHeight: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
69198
|
+
rectBorderRadius: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
69197
69199
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
69198
69200
|
holeOffsetX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
69199
69201
|
holeOffsetY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -69243,6 +69245,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
69243
69245
|
coveredWithSolderMask?: boolean | undefined;
|
|
69244
69246
|
holeOffsetX?: number | undefined;
|
|
69245
69247
|
holeOffsetY?: number | undefined;
|
|
69248
|
+
rectBorderRadius?: number | undefined;
|
|
69246
69249
|
holeShape?: "pill" | undefined;
|
|
69247
69250
|
padShape?: "rect" | undefined;
|
|
69248
69251
|
}, {
|
|
@@ -69289,6 +69292,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
69289
69292
|
coveredWithSolderMask?: boolean | undefined;
|
|
69290
69293
|
holeOffsetX?: string | number | undefined;
|
|
69291
69294
|
holeOffsetY?: string | number | undefined;
|
|
69295
|
+
rectBorderRadius?: string | number | undefined;
|
|
69292
69296
|
holeShape?: "pill" | undefined;
|
|
69293
69297
|
padShape?: "rect" | undefined;
|
|
69294
69298
|
}>, z.ZodObject<Omit<{
|
|
@@ -69694,6 +69698,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
69694
69698
|
coveredWithSolderMask?: boolean | undefined;
|
|
69695
69699
|
holeOffsetX?: number | undefined;
|
|
69696
69700
|
holeOffsetY?: number | undefined;
|
|
69701
|
+
rectBorderRadius?: number | undefined;
|
|
69697
69702
|
holeShape?: "pill" | undefined;
|
|
69698
69703
|
padShape?: "rect" | undefined;
|
|
69699
69704
|
} | {
|
|
@@ -69964,6 +69969,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
69964
69969
|
coveredWithSolderMask?: boolean | undefined;
|
|
69965
69970
|
holeOffsetX?: string | number | undefined;
|
|
69966
69971
|
holeOffsetY?: string | number | undefined;
|
|
69972
|
+
rectBorderRadius?: string | number | undefined;
|
|
69967
69973
|
holeShape?: "pill" | undefined;
|
|
69968
69974
|
padShape?: "rect" | undefined;
|
|
69969
69975
|
} | {
|
|
@@ -70234,6 +70240,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodEffects<z.ZodDiscriminatedUnion
|
|
|
70234
70240
|
coveredWithSolderMask?: boolean | undefined;
|
|
70235
70241
|
holeOffsetX?: number | undefined;
|
|
70236
70242
|
holeOffsetY?: number | undefined;
|
|
70243
|
+
rectBorderRadius?: number | undefined;
|
|
70237
70244
|
holeShape?: "pill" | undefined;
|
|
70238
70245
|
padShape?: "rect" | undefined;
|
|
70239
70246
|
} | {
|
|
@@ -103794,8 +103801,8 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
103794
103801
|
}>]>;
|
|
103795
103802
|
type TraceProps = z.input<typeof traceProps>;
|
|
103796
103803
|
|
|
103797
|
-
type FootprintInsertionDirection = "from_above" | "from_left" | "from_right" | "from_front" | "from_back"
|
|
103798
|
-
declare const footprintInsertionDirection: z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"
|
|
103804
|
+
type FootprintInsertionDirection = "from_above" | "from_left" | "from_right" | "from_front" | "from_back";
|
|
103805
|
+
declare const footprintInsertionDirection: z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"]>;
|
|
103799
103806
|
interface FootprintProps {
|
|
103800
103807
|
children?: any;
|
|
103801
103808
|
/**
|
|
@@ -103836,13 +103843,13 @@ declare const footprintProps: z.ZodObject<{
|
|
|
103836
103843
|
}>>>;
|
|
103837
103844
|
circuitJson: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
103838
103845
|
src: z.ZodOptional<z.ZodType<FootprintProp, z.ZodTypeDef, FootprintProp>>;
|
|
103839
|
-
insertionDirection: z.ZodOptional<z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"
|
|
103846
|
+
insertionDirection: z.ZodOptional<z.ZodEnum<["from_above", "from_left", "from_right", "from_front", "from_back"]>>;
|
|
103840
103847
|
}, "strip", z.ZodTypeAny, {
|
|
103841
103848
|
children?: any;
|
|
103842
103849
|
circuitJson?: any[] | undefined;
|
|
103843
103850
|
originalLayer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
103844
103851
|
src?: FootprintProp | undefined;
|
|
103845
|
-
insertionDirection?: "
|
|
103852
|
+
insertionDirection?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
103846
103853
|
}, {
|
|
103847
103854
|
children?: any;
|
|
103848
103855
|
circuitJson?: any[] | undefined;
|
|
@@ -103850,7 +103857,7 @@ declare const footprintProps: z.ZodObject<{
|
|
|
103850
103857
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
103851
103858
|
} | undefined;
|
|
103852
103859
|
src?: FootprintProp | undefined;
|
|
103853
|
-
insertionDirection?: "
|
|
103860
|
+
insertionDirection?: "from_above" | "from_left" | "from_right" | "from_front" | "from_back" | undefined;
|
|
103854
103861
|
}>;
|
|
103855
103862
|
type FootprintPropsInput = z.input<typeof footprintProps>;
|
|
103856
103863
|
|
package/dist/index.js
CHANGED
|
@@ -16733,6 +16733,7 @@ var platedHolePropsByShape = z47.discriminatedUnion("shape", [
|
|
|
16733
16733
|
holeHeight: distance15,
|
|
16734
16734
|
rectPadWidth: distance15,
|
|
16735
16735
|
rectPadHeight: distance15,
|
|
16736
|
+
rectBorderRadius: distance15.optional(),
|
|
16736
16737
|
portHints: portHints.optional(),
|
|
16737
16738
|
holeOffsetX: distance15.optional(),
|
|
16738
16739
|
holeOffsetY: distance15.optional(),
|
|
@@ -17189,11 +17190,7 @@ var footprintInsertionDirection = z63.enum([
|
|
|
17189
17190
|
"from_left",
|
|
17190
17191
|
"from_right",
|
|
17191
17192
|
"from_front",
|
|
17192
|
-
"from_back"
|
|
17193
|
-
"x+",
|
|
17194
|
-
"x-",
|
|
17195
|
-
"y+",
|
|
17196
|
-
"y-"
|
|
17193
|
+
"from_back"
|
|
17197
17194
|
]);
|
|
17198
17195
|
expectTypesMatch(true);
|
|
17199
17196
|
var footprintProps = z63.object({
|