@tscircuit/props 0.0.378 → 0.0.380
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 +8 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.js +12 -3
- package/dist/index.js.map +1 -1
- package/lib/components/fabrication-note-dimension.ts +6 -0
- package/lib/components/pcb-note-dimension.ts +6 -0
- package/lib/platformConfig.ts +10 -0
- package/package.json +1 -1
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
|
|
|
@@ -1583,6 +1589,8 @@ export interface PlatformConfig {
|
|
|
1583
1589
|
>;
|
|
1584
1590
|
|
|
1585
1591
|
footprintFileParserMap?: Record<string, FootprintFileParserEntry>;
|
|
1592
|
+
|
|
1593
|
+
resolveProjectStaticFileImportUrl?: (path: string) => string;
|
|
1586
1594
|
}
|
|
1587
1595
|
```
|
|
1588
1596
|
|
package/dist/index.d.ts
CHANGED
|
@@ -46527,6 +46527,9 @@ interface FabricationNoteDimensionProps extends Omit<PcbLayoutProps, "pcbX" | "p
|
|
|
46527
46527
|
color?: string;
|
|
46528
46528
|
arrowSize?: string | number;
|
|
46529
46529
|
units?: "in" | "mm";
|
|
46530
|
+
outerEdgeToEdge?: true;
|
|
46531
|
+
centerToCenter?: true;
|
|
46532
|
+
innerEdgeToEdge?: true;
|
|
46530
46533
|
}
|
|
46531
46534
|
declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
46532
46535
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -46581,6 +46584,9 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46581
46584
|
color: z.ZodOptional<z.ZodString>;
|
|
46582
46585
|
arrowSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
46583
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>>;
|
|
46584
46590
|
}, "strip", z.ZodTypeAny, {
|
|
46585
46591
|
from: string | {
|
|
46586
46592
|
x: number;
|
|
@@ -46601,6 +46607,7 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46601
46607
|
pcbMarginY?: number | undefined;
|
|
46602
46608
|
pcbRelative?: boolean | undefined;
|
|
46603
46609
|
relative?: boolean | undefined;
|
|
46610
|
+
centerToCenter?: true | undefined;
|
|
46604
46611
|
color?: string | undefined;
|
|
46605
46612
|
text?: string | undefined;
|
|
46606
46613
|
font?: "tscircuit2024" | undefined;
|
|
@@ -46608,6 +46615,8 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46608
46615
|
offset?: number | undefined;
|
|
46609
46616
|
arrowSize?: number | undefined;
|
|
46610
46617
|
units?: "in" | "mm" | undefined;
|
|
46618
|
+
outerEdgeToEdge?: true | undefined;
|
|
46619
|
+
innerEdgeToEdge?: true | undefined;
|
|
46611
46620
|
}, {
|
|
46612
46621
|
from: string | {
|
|
46613
46622
|
x: string | number;
|
|
@@ -46630,6 +46639,7 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46630
46639
|
pcbMarginY?: string | number | undefined;
|
|
46631
46640
|
pcbRelative?: boolean | undefined;
|
|
46632
46641
|
relative?: boolean | undefined;
|
|
46642
|
+
centerToCenter?: true | undefined;
|
|
46633
46643
|
color?: string | undefined;
|
|
46634
46644
|
text?: string | undefined;
|
|
46635
46645
|
font?: "tscircuit2024" | undefined;
|
|
@@ -46637,6 +46647,8 @@ declare const fabricationNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
46637
46647
|
offset?: string | number | undefined;
|
|
46638
46648
|
arrowSize?: string | number | undefined;
|
|
46639
46649
|
units?: "in" | "mm" | undefined;
|
|
46650
|
+
outerEdgeToEdge?: true | undefined;
|
|
46651
|
+
innerEdgeToEdge?: true | undefined;
|
|
46640
46652
|
}>;
|
|
46641
46653
|
type FabricationNoteDimensionPropsInput = z.input<typeof fabricationNoteDimensionProps>;
|
|
46642
46654
|
|
|
@@ -53561,6 +53573,9 @@ interface PcbNoteDimensionProps extends Omit<PcbLayoutProps, "pcbX" | "pcbY" | "
|
|
|
53561
53573
|
color?: string;
|
|
53562
53574
|
arrowSize?: string | number;
|
|
53563
53575
|
units?: "in" | "mm";
|
|
53576
|
+
outerEdgeToEdge?: true;
|
|
53577
|
+
centerToCenter?: true;
|
|
53578
|
+
innerEdgeToEdge?: true;
|
|
53564
53579
|
}
|
|
53565
53580
|
declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
53566
53581
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -53615,6 +53630,9 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53615
53630
|
color: z.ZodOptional<z.ZodString>;
|
|
53616
53631
|
arrowSize: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
53617
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>>;
|
|
53618
53636
|
}, "strip", z.ZodTypeAny, {
|
|
53619
53637
|
from: string | {
|
|
53620
53638
|
x: number;
|
|
@@ -53635,6 +53653,7 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53635
53653
|
pcbMarginY?: number | undefined;
|
|
53636
53654
|
pcbRelative?: boolean | undefined;
|
|
53637
53655
|
relative?: boolean | undefined;
|
|
53656
|
+
centerToCenter?: true | undefined;
|
|
53638
53657
|
color?: string | undefined;
|
|
53639
53658
|
text?: string | undefined;
|
|
53640
53659
|
font?: "tscircuit2024" | undefined;
|
|
@@ -53642,6 +53661,8 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53642
53661
|
offset?: number | undefined;
|
|
53643
53662
|
arrowSize?: number | undefined;
|
|
53644
53663
|
units?: "in" | "mm" | undefined;
|
|
53664
|
+
outerEdgeToEdge?: true | undefined;
|
|
53665
|
+
innerEdgeToEdge?: true | undefined;
|
|
53645
53666
|
}, {
|
|
53646
53667
|
from: string | {
|
|
53647
53668
|
x: string | number;
|
|
@@ -53664,6 +53685,7 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53664
53685
|
pcbMarginY?: string | number | undefined;
|
|
53665
53686
|
pcbRelative?: boolean | undefined;
|
|
53666
53687
|
relative?: boolean | undefined;
|
|
53688
|
+
centerToCenter?: true | undefined;
|
|
53667
53689
|
color?: string | undefined;
|
|
53668
53690
|
text?: string | undefined;
|
|
53669
53691
|
font?: "tscircuit2024" | undefined;
|
|
@@ -53671,6 +53693,8 @@ declare const pcbNoteDimensionProps: z.ZodObject<Omit<{
|
|
|
53671
53693
|
offset?: string | number | undefined;
|
|
53672
53694
|
arrowSize?: string | number | undefined;
|
|
53673
53695
|
units?: "in" | "mm" | undefined;
|
|
53696
|
+
outerEdgeToEdge?: true | undefined;
|
|
53697
|
+
innerEdgeToEdge?: true | undefined;
|
|
53674
53698
|
}>;
|
|
53675
53699
|
type PcbNoteDimensionPropsInput = z.input<typeof pcbNoteDimensionProps>;
|
|
53676
53700
|
|
|
@@ -53718,6 +53742,7 @@ interface PlatformConfig {
|
|
|
53718
53742
|
spiceEngineMap?: Record<string, SpiceEngine>;
|
|
53719
53743
|
footprintLibraryMap?: Record<string, ((path: string) => Promise<FootprintLibraryResult>) | Record<string, any[] | ((path: string) => Promise<FootprintLibraryResult>)>>;
|
|
53720
53744
|
footprintFileParserMap?: Record<string, FootprintFileParserEntry>;
|
|
53745
|
+
resolveProjectStaticFileImportUrl?: (path: string) => string;
|
|
53721
53746
|
}
|
|
53722
53747
|
declare const platformConfig: z.ZodType<PlatformConfig>;
|
|
53723
53748
|
|
package/dist/index.js
CHANGED
|
@@ -1601,7 +1601,10 @@ var fabricationNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
1601
1601
|
fontSize: length5.optional(),
|
|
1602
1602
|
color: z69.string().optional(),
|
|
1603
1603
|
arrowSize: distance16.optional(),
|
|
1604
|
-
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()
|
|
1605
1608
|
});
|
|
1606
1609
|
expectTypesMatch(true);
|
|
1607
1610
|
|
|
@@ -2123,7 +2126,10 @@ var pcbNoteDimensionProps = pcbLayoutProps.omit({
|
|
|
2123
2126
|
fontSize: length11.optional(),
|
|
2124
2127
|
color: z103.string().optional(),
|
|
2125
2128
|
arrowSize: distance37.optional(),
|
|
2126
|
-
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()
|
|
2127
2133
|
});
|
|
2128
2134
|
expectTypesMatch(
|
|
2129
2135
|
true
|
|
@@ -2194,7 +2200,10 @@ var platformConfig = z104.object({
|
|
|
2194
2200
|
)
|
|
2195
2201
|
])
|
|
2196
2202
|
).optional(),
|
|
2197
|
-
footprintFileParserMap: z104.record(z104.string(), footprintFileParserEntry).optional()
|
|
2203
|
+
footprintFileParserMap: z104.record(z104.string(), footprintFileParserEntry).optional(),
|
|
2204
|
+
resolveProjectStaticFileImportUrl: z104.function().args(z104.string()).returns(z104.string()).describe(
|
|
2205
|
+
"A function that returns a string URL for static files for the project"
|
|
2206
|
+
).optional()
|
|
2198
2207
|
});
|
|
2199
2208
|
expectTypesMatch(true);
|
|
2200
2209
|
|