@tscircuit/props 0.0.377 → 0.0.379
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
CHANGED
|
@@ -519,6 +519,9 @@ export interface FabricationNoteDimensionProps
|
|
|
519
519
|
color?: string;
|
|
520
520
|
arrowSize?: string | number;
|
|
521
521
|
units?: "in" | "mm";
|
|
522
|
+
outerEdgeToEdge?: true;
|
|
523
|
+
centerToCenter?: true;
|
|
524
|
+
innerEdgeToEdge?: true;
|
|
522
525
|
}
|
|
523
526
|
```
|
|
524
527
|
|
|
@@ -910,6 +913,9 @@ export interface PcbNoteDimensionProps
|
|
|
910
913
|
color?: string;
|
|
911
914
|
arrowSize?: string | number;
|
|
912
915
|
units?: "in" | "mm";
|
|
916
|
+
outerEdgeToEdge?: true;
|
|
917
|
+
centerToCenter?: true;
|
|
918
|
+
innerEdgeToEdge?: true;
|
|
913
919
|
}
|
|
914
920
|
```
|
|
915
921
|
|
package/dist/index.d.ts
CHANGED
|
@@ -33502,6 +33502,7 @@ declare const portRef: z.ZodUnion<[z.ZodString, z.ZodType<{
|
|
|
33502
33502
|
declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
33503
33503
|
key: z.ZodOptional<z.ZodString>;
|
|
33504
33504
|
thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
33505
|
+
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
33505
33506
|
schematicRouteHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33506
33507
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
33507
33508
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -33568,6 +33569,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33568
33569
|
})[];
|
|
33569
33570
|
key?: string | undefined;
|
|
33570
33571
|
highlightColor?: string | undefined;
|
|
33572
|
+
width?: number | undefined;
|
|
33571
33573
|
thickness?: number | undefined;
|
|
33572
33574
|
maxLength?: number | undefined;
|
|
33573
33575
|
schematicRouteHints?: {
|
|
@@ -33594,6 +33596,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33594
33596
|
})[];
|
|
33595
33597
|
key?: string | undefined;
|
|
33596
33598
|
highlightColor?: string | undefined;
|
|
33599
|
+
width?: string | number | undefined;
|
|
33597
33600
|
thickness?: string | number | undefined;
|
|
33598
33601
|
maxLength?: string | number | undefined;
|
|
33599
33602
|
schematicRouteHints?: {
|
|
@@ -33619,6 +33622,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33619
33622
|
}>, z.ZodObject<{
|
|
33620
33623
|
key: z.ZodOptional<z.ZodString>;
|
|
33621
33624
|
thickness: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
33625
|
+
width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
33622
33626
|
schematicRouteHints: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33623
33627
|
x: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
33624
33628
|
y: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -33693,6 +33697,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33693
33697
|
};
|
|
33694
33698
|
key?: string | undefined;
|
|
33695
33699
|
highlightColor?: string | undefined;
|
|
33700
|
+
width?: number | undefined;
|
|
33696
33701
|
thickness?: number | undefined;
|
|
33697
33702
|
maxLength?: number | undefined;
|
|
33698
33703
|
schematicRouteHints?: {
|
|
@@ -33722,6 +33727,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
33722
33727
|
};
|
|
33723
33728
|
key?: string | undefined;
|
|
33724
33729
|
highlightColor?: string | undefined;
|
|
33730
|
+
width?: string | number | undefined;
|
|
33725
33731
|
thickness?: string | number | undefined;
|
|
33726
33732
|
maxLength?: string | number | undefined;
|
|
33727
33733
|
schematicRouteHints?: {
|
|
@@ -46521,6 +46527,9 @@ interface FabricationNoteDimensionProps extends Omit<PcbLayoutProps, "pcbX" | "p
|
|
|
46521
46527
|
color?: string;
|
|
46522
46528
|
arrowSize?: string | number;
|
|
46523
46529
|
units?: "in" | "mm";
|
|
46530
|
+
outerEdgeToEdge?: true;
|
|
46531
|
+
centerToCenter?: true;
|
|
46532
|
+
innerEdgeToEdge?: true;
|
|
46524
46533
|
}
|
|
46525
46534
|
declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
46526
46535
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -46575,6 +46584,9 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46575
46584
|
color: z.ZodOptional<z.ZodString>;
|
|
46576
46585
|
arrowSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
46577
46586
|
units: z.ZodOptional<z.ZodEnum<["in", "mm"]>>;
|
|
46587
|
+
outerEdgeToEdge: z.ZodOptional<z.ZodLiteral<true>>;
|
|
46588
|
+
centerToCenter: z.ZodOptional<z.ZodLiteral<true>>;
|
|
46589
|
+
innerEdgeToEdge: z.ZodOptional<z.ZodLiteral<true>>;
|
|
46578
46590
|
}, "strip", z.ZodTypeAny, {
|
|
46579
46591
|
from: string | {
|
|
46580
46592
|
x: number;
|
|
@@ -46595,6 +46607,7 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46595
46607
|
pcbMarginY?: number | undefined;
|
|
46596
46608
|
pcbRelative?: boolean | undefined;
|
|
46597
46609
|
relative?: boolean | undefined;
|
|
46610
|
+
centerToCenter?: true | undefined;
|
|
46598
46611
|
color?: string | undefined;
|
|
46599
46612
|
text?: string | undefined;
|
|
46600
46613
|
font?: "tscircuit2024" | undefined;
|
|
@@ -46602,6 +46615,8 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46602
46615
|
offset?: number | undefined;
|
|
46603
46616
|
arrowSize?: number | undefined;
|
|
46604
46617
|
units?: "in" | "mm" | undefined;
|
|
46618
|
+
outerEdgeToEdge?: true | undefined;
|
|
46619
|
+
innerEdgeToEdge?: true | undefined;
|
|
46605
46620
|
}, {
|
|
46606
46621
|
from: string | {
|
|
46607
46622
|
x: string | number;
|
|
@@ -46624,6 +46639,7 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46624
46639
|
pcbMarginY?: string | number | undefined;
|
|
46625
46640
|
pcbRelative?: boolean | undefined;
|
|
46626
46641
|
relative?: boolean | undefined;
|
|
46642
|
+
centerToCenter?: true | undefined;
|
|
46627
46643
|
color?: string | undefined;
|
|
46628
46644
|
text?: string | undefined;
|
|
46629
46645
|
font?: "tscircuit2024" | undefined;
|
|
@@ -46631,6 +46647,8 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46631
46647
|
offset?: string | number | undefined;
|
|
46632
46648
|
arrowSize?: string | number | undefined;
|
|
46633
46649
|
units?: "in" | "mm" | undefined;
|
|
46650
|
+
outerEdgeToEdge?: true | undefined;
|
|
46651
|
+
innerEdgeToEdge?: true | undefined;
|
|
46634
46652
|
}>;
|
|
46635
46653
|
type FabricationNoteDimensionPropsInput = z.input<typeof fabricationNoteDimensionProps>;
|
|
46636
46654
|
|
|
@@ -53555,6 +53573,9 @@ interface PcbNoteDimensionProps extends Omit<PcbLayoutProps, "pcbX" | "pcbY" | "
|
|
|
53555
53573
|
color?: string;
|
|
53556
53574
|
arrowSize?: string | number;
|
|
53557
53575
|
units?: "in" | "mm";
|
|
53576
|
+
outerEdgeToEdge?: true;
|
|
53577
|
+
centerToCenter?: true;
|
|
53578
|
+
innerEdgeToEdge?: true;
|
|
53558
53579
|
}
|
|
53559
53580
|
declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
53560
53581
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -53609,6 +53630,9 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53609
53630
|
color: z.ZodOptional<z.ZodString>;
|
|
53610
53631
|
arrowSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
53611
53632
|
units: z.ZodOptional<z.ZodEnum<["in", "mm"]>>;
|
|
53633
|
+
outerEdgeToEdge: z.ZodOptional<z.ZodLiteral<true>>;
|
|
53634
|
+
centerToCenter: z.ZodOptional<z.ZodLiteral<true>>;
|
|
53635
|
+
innerEdgeToEdge: z.ZodOptional<z.ZodLiteral<true>>;
|
|
53612
53636
|
}, "strip", z.ZodTypeAny, {
|
|
53613
53637
|
from: string | {
|
|
53614
53638
|
x: number;
|
|
@@ -53629,6 +53653,7 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53629
53653
|
pcbMarginY?: number | undefined;
|
|
53630
53654
|
pcbRelative?: boolean | undefined;
|
|
53631
53655
|
relative?: boolean | undefined;
|
|
53656
|
+
centerToCenter?: true | undefined;
|
|
53632
53657
|
color?: string | undefined;
|
|
53633
53658
|
text?: string | undefined;
|
|
53634
53659
|
font?: "tscircuit2024" | undefined;
|
|
@@ -53636,6 +53661,8 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53636
53661
|
offset?: number | undefined;
|
|
53637
53662
|
arrowSize?: number | undefined;
|
|
53638
53663
|
units?: "in" | "mm" | undefined;
|
|
53664
|
+
outerEdgeToEdge?: true | undefined;
|
|
53665
|
+
innerEdgeToEdge?: true | undefined;
|
|
53639
53666
|
}, {
|
|
53640
53667
|
from: string | {
|
|
53641
53668
|
x: string | number;
|
|
@@ -53658,6 +53685,7 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53658
53685
|
pcbMarginY?: string | number | undefined;
|
|
53659
53686
|
pcbRelative?: boolean | undefined;
|
|
53660
53687
|
relative?: boolean | undefined;
|
|
53688
|
+
centerToCenter?: true | undefined;
|
|
53661
53689
|
color?: string | undefined;
|
|
53662
53690
|
text?: string | undefined;
|
|
53663
53691
|
font?: "tscircuit2024" | undefined;
|
|
@@ -53665,6 +53693,8 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53665
53693
|
offset?: string | number | undefined;
|
|
53666
53694
|
arrowSize?: string | number | undefined;
|
|
53667
53695
|
units?: "in" | "mm" | undefined;
|
|
53696
|
+
outerEdgeToEdge?: true | undefined;
|
|
53697
|
+
innerEdgeToEdge?: true | undefined;
|
|
53668
53698
|
}>;
|
|
53669
53699
|
type PcbNoteDimensionPropsInput = z.input<typeof pcbNoteDimensionProps>;
|
|
53670
53700
|
|
package/dist/index.js
CHANGED
|
@@ -1194,6 +1194,7 @@ var portRef = z50.union([
|
|
|
1194
1194
|
var baseTraceProps = z50.object({
|
|
1195
1195
|
key: z50.string().optional(),
|
|
1196
1196
|
thickness: distance13.optional(),
|
|
1197
|
+
width: distance13.optional().describe("Alias for trace thickness"),
|
|
1197
1198
|
schematicRouteHints: z50.array(point).optional(),
|
|
1198
1199
|
pcbRouteHints: z50.array(route_hint_point2).optional(),
|
|
1199
1200
|
pcbPathRelativeTo: z50.string().optional(),
|
|
@@ -1600,7 +1601,10 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
1600
1601
|
fontSize: length5.optional(),
|
|
1601
1602
|
color: z69.string().optional(),
|
|
1602
1603
|
arrowSize: distance16.optional(),
|
|
1603
|
-
units: z69.enum(["in", "mm"]).optional()
|
|
1604
|
+
units: z69.enum(["in", "mm"]).optional(),
|
|
1605
|
+
outerEdgeToEdge: z69.literal(true).optional(),
|
|
1606
|
+
centerToCenter: z69.literal(true).optional(),
|
|
1607
|
+
innerEdgeToEdge: z69.literal(true).optional()
|
|
1604
1608
|
});
|
|
1605
1609
|
expectTypesMatch(true);
|
|
1606
1610
|
|
|
@@ -2122,7 +2126,10 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
2122
2126
|
fontSize: length11.optional(),
|
|
2123
2127
|
color: z103.string().optional(),
|
|
2124
2128
|
arrowSize: distance37.optional(),
|
|
2125
|
-
units: z103.enum(["in", "mm"]).optional()
|
|
2129
|
+
units: z103.enum(["in", "mm"]).optional(),
|
|
2130
|
+
outerEdgeToEdge: z103.literal(true).optional(),
|
|
2131
|
+
centerToCenter: z103.literal(true).optional(),
|
|
2132
|
+
innerEdgeToEdge: z103.literal(true).optional()
|
|
2126
2133
|
});
|
|
2127
2134
|
expectTypesMatch(
|
|
2128
2135
|
true
|