@tscircuit/props 0.0.570 → 0.0.572
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 +2 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +133 -130
- package/dist/index.js.map +1 -1
- package/lib/components/crystal.ts +7 -4
- package/lib/components/group.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -562,6 +562,8 @@ export interface CrystalProps<
|
|
|
562
562
|
> extends CommonComponentProps<PinLabel> {
|
|
563
563
|
frequency: number | string;
|
|
564
564
|
loadCapacitance: number | string;
|
|
565
|
+
/** Maximum allowed PCB trace length between the crystal and its connected component */
|
|
566
|
+
maxTraceLength?: number | string;
|
|
565
567
|
manufacturerPartNumber?: string;
|
|
566
568
|
mpn?: string;
|
|
567
569
|
pinVariant?: PinVariant;
|
package/dist/index.d.ts
CHANGED
|
@@ -17859,6 +17859,8 @@ interface RoutingTolerances {
|
|
|
17859
17859
|
}
|
|
17860
17860
|
interface AutorouterConfig {
|
|
17861
17861
|
serverUrl?: string;
|
|
17862
|
+
cacheServerUrl?: string;
|
|
17863
|
+
shouldUploadToCache?: boolean;
|
|
17862
17864
|
inputFormat?: "simplified" | "circuit-json";
|
|
17863
17865
|
serverMode?: "job" | "solve-endpoint";
|
|
17864
17866
|
serverCacheEnabled?: boolean;
|
|
@@ -17905,6 +17907,8 @@ declare const routingTolerances: z.ZodObject<{
|
|
|
17905
17907
|
}>;
|
|
17906
17908
|
declare const autorouterConfig: z.ZodObject<{
|
|
17907
17909
|
serverUrl: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
|
|
17910
|
+
cacheServerUrl: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
|
|
17911
|
+
shouldUploadToCache: z.ZodOptional<z.ZodBoolean>;
|
|
17908
17912
|
inputFormat: z.ZodOptional<z.ZodEnum<["simplified", "circuit-json"]>>;
|
|
17909
17913
|
serverMode: z.ZodOptional<z.ZodEnum<["job", "solve-endpoint"]>>;
|
|
17910
17914
|
serverCacheEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -17917,6 +17921,8 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
17917
17921
|
local: z.ZodOptional<z.ZodBoolean>;
|
|
17918
17922
|
}, "strip", z.ZodTypeAny, {
|
|
17919
17923
|
serverUrl?: string | undefined;
|
|
17924
|
+
cacheServerUrl?: string | undefined;
|
|
17925
|
+
shouldUploadToCache?: boolean | undefined;
|
|
17920
17926
|
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
17921
17927
|
serverMode?: "job" | "solve-endpoint" | undefined;
|
|
17922
17928
|
serverCacheEnabled?: boolean | undefined;
|
|
@@ -17929,6 +17935,8 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
17929
17935
|
local?: boolean | undefined;
|
|
17930
17936
|
}, {
|
|
17931
17937
|
serverUrl?: string | undefined;
|
|
17938
|
+
cacheServerUrl?: string | undefined;
|
|
17939
|
+
shouldUploadToCache?: boolean | undefined;
|
|
17932
17940
|
inputFormat?: "simplified" | "circuit-json" | undefined;
|
|
17933
17941
|
serverMode?: "job" | "solve-endpoint" | undefined;
|
|
17934
17942
|
serverCacheEnabled?: boolean | undefined;
|
|
@@ -79680,6 +79688,8 @@ type CrystalPinLabels = (typeof crystalPins)[number];
|
|
|
79680
79688
|
interface CrystalProps<PinLabel extends string = string> extends CommonComponentProps<PinLabel> {
|
|
79681
79689
|
frequency: number | string;
|
|
79682
79690
|
loadCapacitance: number | string;
|
|
79691
|
+
/** Maximum allowed PCB trace length between the crystal and its connected component */
|
|
79692
|
+
maxTraceLength?: number | string;
|
|
79683
79693
|
manufacturerPartNumber?: string;
|
|
79684
79694
|
mpn?: string;
|
|
79685
79695
|
pinVariant?: PinVariant;
|
|
@@ -83045,6 +83055,7 @@ declare const crystalProps: z.ZodObject<{
|
|
|
83045
83055
|
} & {
|
|
83046
83056
|
frequency: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
83047
83057
|
loadCapacitance: z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>, number, string | number>;
|
|
83058
|
+
maxTraceLength: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
83048
83059
|
manufacturerPartNumber: z.ZodOptional<z.ZodString>;
|
|
83049
83060
|
mpn: z.ZodOptional<z.ZodString>;
|
|
83050
83061
|
pinVariant: z.ZodOptional<z.ZodEnum<["two_pin", "four_pin"]>>;
|
|
@@ -83633,6 +83644,7 @@ declare const crystalProps: z.ZodObject<{
|
|
|
83633
83644
|
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
|
|
83634
83645
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
83635
83646
|
pinVariant?: "two_pin" | "four_pin" | undefined;
|
|
83647
|
+
maxTraceLength?: number | undefined;
|
|
83636
83648
|
mpn?: string | undefined;
|
|
83637
83649
|
}, {
|
|
83638
83650
|
name: string;
|
|
@@ -84219,6 +84231,7 @@ declare const crystalProps: z.ZodObject<{
|
|
|
84219
84231
|
connections?: Partial<Record<"left" | "right" | "pin1" | "pin2", string | readonly string[] | string[]>> | undefined;
|
|
84220
84232
|
schOrientation?: "vertical" | "horizontal" | "pos_top" | "pos_bottom" | "pos_left" | "pos_right" | "neg_top" | "neg_bottom" | "neg_left" | "neg_right" | undefined;
|
|
84221
84233
|
pinVariant?: "two_pin" | "four_pin" | undefined;
|
|
84234
|
+
maxTraceLength?: string | number | undefined;
|
|
84222
84235
|
mpn?: string | undefined;
|
|
84223
84236
|
}>;
|
|
84224
84237
|
|