@tscircuit/props 0.0.388 → 0.0.390
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 +3 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/lib/components/net.ts +4 -0
- package/lib/components/via.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -847,6 +847,8 @@ export interface NetProps {
|
|
|
847
847
|
name: string;
|
|
848
848
|
connectsTo?: string | string[];
|
|
849
849
|
highlightColor?: string;
|
|
850
|
+
isPowerNet?: boolean;
|
|
851
|
+
isGroundNet?: boolean;
|
|
850
852
|
}
|
|
851
853
|
```
|
|
852
854
|
|
|
@@ -1519,6 +1521,7 @@ export interface ViaProps extends CommonLayoutProps {
|
|
|
1519
1521
|
holeDiameter: number | string;
|
|
1520
1522
|
outerDiameter: number | string;
|
|
1521
1523
|
connectsTo?: string | string[];
|
|
1524
|
+
netIsAssignable?: boolean;
|
|
1522
1525
|
}
|
|
1523
1526
|
```
|
|
1524
1527
|
|
package/dist/index.d.ts
CHANGED
|
@@ -32852,19 +32852,27 @@ interface NetProps {
|
|
|
32852
32852
|
name: string;
|
|
32853
32853
|
connectsTo?: string | string[];
|
|
32854
32854
|
highlightColor?: string;
|
|
32855
|
+
isPowerNet?: boolean;
|
|
32856
|
+
isGroundNet?: boolean;
|
|
32855
32857
|
}
|
|
32856
32858
|
declare const netProps: z.ZodObject<{
|
|
32857
32859
|
name: z.ZodString;
|
|
32858
32860
|
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
32859
32861
|
highlightColor: z.ZodOptional<z.ZodString>;
|
|
32862
|
+
isPowerNet: z.ZodOptional<z.ZodBoolean>;
|
|
32863
|
+
isGroundNet: z.ZodOptional<z.ZodBoolean>;
|
|
32860
32864
|
}, "strip", z.ZodTypeAny, {
|
|
32861
32865
|
name: string;
|
|
32862
32866
|
highlightColor?: string | undefined;
|
|
32863
32867
|
connectsTo?: string | string[] | undefined;
|
|
32868
|
+
isPowerNet?: boolean | undefined;
|
|
32869
|
+
isGroundNet?: boolean | undefined;
|
|
32864
32870
|
}, {
|
|
32865
32871
|
name: string;
|
|
32866
32872
|
highlightColor?: string | undefined;
|
|
32867
32873
|
connectsTo?: string | string[] | undefined;
|
|
32874
|
+
isPowerNet?: boolean | undefined;
|
|
32875
|
+
isGroundNet?: boolean | undefined;
|
|
32868
32876
|
}>;
|
|
32869
32877
|
|
|
32870
32878
|
interface ConstrainedLayoutProps {
|
|
@@ -49771,6 +49779,7 @@ interface ViaProps extends CommonLayoutProps {
|
|
|
49771
49779
|
holeDiameter: number | string;
|
|
49772
49780
|
outerDiameter: number | string;
|
|
49773
49781
|
connectsTo?: string | string[];
|
|
49782
|
+
netIsAssignable?: boolean;
|
|
49774
49783
|
}
|
|
49775
49784
|
declare const viaProps: z.ZodObject<{
|
|
49776
49785
|
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -49860,6 +49869,7 @@ declare const viaProps: z.ZodObject<{
|
|
|
49860
49869
|
holeDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
49861
49870
|
outerDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
49862
49871
|
connectsTo: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
49872
|
+
netIsAssignable: z.ZodOptional<z.ZodBoolean>;
|
|
49863
49873
|
}, "strip", z.ZodTypeAny, {
|
|
49864
49874
|
holeDiameter: number;
|
|
49865
49875
|
outerDiameter: number;
|
|
@@ -49903,6 +49913,7 @@ declare const viaProps: z.ZodObject<{
|
|
|
49903
49913
|
schRelative?: boolean | undefined;
|
|
49904
49914
|
name?: string | undefined;
|
|
49905
49915
|
connectsTo?: string | string[] | undefined;
|
|
49916
|
+
netIsAssignable?: boolean | undefined;
|
|
49906
49917
|
}, {
|
|
49907
49918
|
holeDiameter: string | number;
|
|
49908
49919
|
outerDiameter: string | number;
|
|
@@ -49952,6 +49963,7 @@ declare const viaProps: z.ZodObject<{
|
|
|
49952
49963
|
schRelative?: boolean | undefined;
|
|
49953
49964
|
name?: string | undefined;
|
|
49954
49965
|
connectsTo?: string | string[] | undefined;
|
|
49966
|
+
netIsAssignable?: boolean | undefined;
|
|
49955
49967
|
}>;
|
|
49956
49968
|
type InferredViaProps = z.input<typeof viaProps>;
|
|
49957
49969
|
|
package/dist/index.js
CHANGED
|
@@ -1007,7 +1007,9 @@ import { z as z44 } from "zod";
|
|
|
1007
1007
|
var netProps = z44.object({
|
|
1008
1008
|
name: z44.string(),
|
|
1009
1009
|
connectsTo: z44.string().or(z44.array(z44.string())).optional(),
|
|
1010
|
-
highlightColor: z44.string().optional()
|
|
1010
|
+
highlightColor: z44.string().optional(),
|
|
1011
|
+
isPowerNet: z44.boolean().optional(),
|
|
1012
|
+
isGroundNet: z44.boolean().optional()
|
|
1011
1013
|
});
|
|
1012
1014
|
expectTypesMatch(true);
|
|
1013
1015
|
|
|
@@ -1648,7 +1650,8 @@ var viaProps = commonLayoutProps.extend({
|
|
|
1648
1650
|
toLayer: layer_ref5,
|
|
1649
1651
|
holeDiameter: distance19,
|
|
1650
1652
|
outerDiameter: distance19,
|
|
1651
|
-
connectsTo: z72.string().or(z72.array(z72.string())).optional()
|
|
1653
|
+
connectsTo: z72.string().or(z72.array(z72.string())).optional(),
|
|
1654
|
+
netIsAssignable: z72.boolean().optional()
|
|
1652
1655
|
});
|
|
1653
1656
|
expectTypesMatch(true);
|
|
1654
1657
|
|