@tscircuit/props 0.0.28 → 0.0.30
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 +434 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2748,6 +2748,404 @@ declare const ledProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extend
|
|
|
2748
2748
|
}>;
|
|
2749
2749
|
declare const ledPins: readonly ["pin1", "left", "anode", "pos", "pin2", "right", "cathode", "neg"];
|
|
2750
2750
|
type LedProps = z.input<typeof ledProps>;
|
|
2751
|
+
declare const switchProps: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
2752
|
+
pcbX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
2753
|
+
pcbY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
2754
|
+
pcbRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
2755
|
+
schX: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
2756
|
+
schY: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
2757
|
+
schRotation: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
2758
|
+
layer: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>, z.ZodObject<{
|
|
2759
|
+
name: z.ZodEnum<["top", "bottom", "inner1", "inner2", "inner3", "inner4", "inner5", "inner6"]>;
|
|
2760
|
+
}, "strip", z.ZodTypeAny, {
|
|
2761
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2762
|
+
}, {
|
|
2763
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2764
|
+
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
2765
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
2766
|
+
}>>;
|
|
2767
|
+
footprint: z.ZodOptional<z.ZodType<Footprint, z.ZodTypeDef, Footprint>>;
|
|
2768
|
+
}, {
|
|
2769
|
+
supplierPartNumbers: z.ZodOptional<z.ZodRecord<z.ZodEnum<["jlcpcb", "macrofab", "pcbway", "digikey", "mouser", "lcsc"]>, z.ZodArray<z.ZodString, "many">>>;
|
|
2770
|
+
}>, {
|
|
2771
|
+
name: z.ZodString;
|
|
2772
|
+
cadModel: z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
2773
|
+
rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
2774
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2775
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2776
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2777
|
+
}, "strip", z.ZodTypeAny, {
|
|
2778
|
+
x: string | number;
|
|
2779
|
+
y: string | number;
|
|
2780
|
+
z: string | number;
|
|
2781
|
+
}, {
|
|
2782
|
+
x: string | number;
|
|
2783
|
+
y: string | number;
|
|
2784
|
+
z: string | number;
|
|
2785
|
+
}>]>>;
|
|
2786
|
+
positionOffset: z.ZodOptional<z.ZodObject<{
|
|
2787
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2788
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2789
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2790
|
+
}, "strip", z.ZodTypeAny, {
|
|
2791
|
+
x: string | number;
|
|
2792
|
+
y: string | number;
|
|
2793
|
+
z: string | number;
|
|
2794
|
+
}, {
|
|
2795
|
+
x: string | number;
|
|
2796
|
+
y: string | number;
|
|
2797
|
+
z: string | number;
|
|
2798
|
+
}>>;
|
|
2799
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
2800
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2801
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2802
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2803
|
+
}, "strip", z.ZodTypeAny, {
|
|
2804
|
+
x: string | number;
|
|
2805
|
+
y: string | number;
|
|
2806
|
+
z: string | number;
|
|
2807
|
+
}, {
|
|
2808
|
+
x: string | number;
|
|
2809
|
+
y: string | number;
|
|
2810
|
+
z: string | number;
|
|
2811
|
+
}>>;
|
|
2812
|
+
}, {
|
|
2813
|
+
stlUrl: z.ZodString;
|
|
2814
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2815
|
+
stlUrl: string;
|
|
2816
|
+
rotationOffset?: number | {
|
|
2817
|
+
x: string | number;
|
|
2818
|
+
y: string | number;
|
|
2819
|
+
z: string | number;
|
|
2820
|
+
} | undefined;
|
|
2821
|
+
positionOffset?: {
|
|
2822
|
+
x: string | number;
|
|
2823
|
+
y: string | number;
|
|
2824
|
+
z: string | number;
|
|
2825
|
+
} | undefined;
|
|
2826
|
+
size?: {
|
|
2827
|
+
x: string | number;
|
|
2828
|
+
y: string | number;
|
|
2829
|
+
z: string | number;
|
|
2830
|
+
} | undefined;
|
|
2831
|
+
}, {
|
|
2832
|
+
stlUrl: string;
|
|
2833
|
+
rotationOffset?: number | {
|
|
2834
|
+
x: string | number;
|
|
2835
|
+
y: string | number;
|
|
2836
|
+
z: string | number;
|
|
2837
|
+
} | undefined;
|
|
2838
|
+
positionOffset?: {
|
|
2839
|
+
x: string | number;
|
|
2840
|
+
y: string | number;
|
|
2841
|
+
z: string | number;
|
|
2842
|
+
} | undefined;
|
|
2843
|
+
size?: {
|
|
2844
|
+
x: string | number;
|
|
2845
|
+
y: string | number;
|
|
2846
|
+
z: string | number;
|
|
2847
|
+
} | undefined;
|
|
2848
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2849
|
+
rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
2850
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2851
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2852
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2853
|
+
}, "strip", z.ZodTypeAny, {
|
|
2854
|
+
x: string | number;
|
|
2855
|
+
y: string | number;
|
|
2856
|
+
z: string | number;
|
|
2857
|
+
}, {
|
|
2858
|
+
x: string | number;
|
|
2859
|
+
y: string | number;
|
|
2860
|
+
z: string | number;
|
|
2861
|
+
}>]>>;
|
|
2862
|
+
positionOffset: z.ZodOptional<z.ZodObject<{
|
|
2863
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2864
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2865
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2866
|
+
}, "strip", z.ZodTypeAny, {
|
|
2867
|
+
x: string | number;
|
|
2868
|
+
y: string | number;
|
|
2869
|
+
z: string | number;
|
|
2870
|
+
}, {
|
|
2871
|
+
x: string | number;
|
|
2872
|
+
y: string | number;
|
|
2873
|
+
z: string | number;
|
|
2874
|
+
}>>;
|
|
2875
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
2876
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2877
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2878
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2879
|
+
}, "strip", z.ZodTypeAny, {
|
|
2880
|
+
x: string | number;
|
|
2881
|
+
y: string | number;
|
|
2882
|
+
z: string | number;
|
|
2883
|
+
}, {
|
|
2884
|
+
x: string | number;
|
|
2885
|
+
y: string | number;
|
|
2886
|
+
z: string | number;
|
|
2887
|
+
}>>;
|
|
2888
|
+
}, {
|
|
2889
|
+
objUrl: z.ZodString;
|
|
2890
|
+
mtlUrl: z.ZodOptional<z.ZodString>;
|
|
2891
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2892
|
+
objUrl: string;
|
|
2893
|
+
rotationOffset?: number | {
|
|
2894
|
+
x: string | number;
|
|
2895
|
+
y: string | number;
|
|
2896
|
+
z: string | number;
|
|
2897
|
+
} | undefined;
|
|
2898
|
+
positionOffset?: {
|
|
2899
|
+
x: string | number;
|
|
2900
|
+
y: string | number;
|
|
2901
|
+
z: string | number;
|
|
2902
|
+
} | undefined;
|
|
2903
|
+
size?: {
|
|
2904
|
+
x: string | number;
|
|
2905
|
+
y: string | number;
|
|
2906
|
+
z: string | number;
|
|
2907
|
+
} | undefined;
|
|
2908
|
+
mtlUrl?: string | undefined;
|
|
2909
|
+
}, {
|
|
2910
|
+
objUrl: string;
|
|
2911
|
+
rotationOffset?: number | {
|
|
2912
|
+
x: string | number;
|
|
2913
|
+
y: string | number;
|
|
2914
|
+
z: string | number;
|
|
2915
|
+
} | undefined;
|
|
2916
|
+
positionOffset?: {
|
|
2917
|
+
x: string | number;
|
|
2918
|
+
y: string | number;
|
|
2919
|
+
z: string | number;
|
|
2920
|
+
} | undefined;
|
|
2921
|
+
size?: {
|
|
2922
|
+
x: string | number;
|
|
2923
|
+
y: string | number;
|
|
2924
|
+
z: string | number;
|
|
2925
|
+
} | undefined;
|
|
2926
|
+
mtlUrl?: string | undefined;
|
|
2927
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
2928
|
+
rotationOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
2929
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2930
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2931
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2932
|
+
}, "strip", z.ZodTypeAny, {
|
|
2933
|
+
x: string | number;
|
|
2934
|
+
y: string | number;
|
|
2935
|
+
z: string | number;
|
|
2936
|
+
}, {
|
|
2937
|
+
x: string | number;
|
|
2938
|
+
y: string | number;
|
|
2939
|
+
z: string | number;
|
|
2940
|
+
}>]>>;
|
|
2941
|
+
positionOffset: z.ZodOptional<z.ZodObject<{
|
|
2942
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2943
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2944
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2945
|
+
}, "strip", z.ZodTypeAny, {
|
|
2946
|
+
x: string | number;
|
|
2947
|
+
y: string | number;
|
|
2948
|
+
z: string | number;
|
|
2949
|
+
}, {
|
|
2950
|
+
x: string | number;
|
|
2951
|
+
y: string | number;
|
|
2952
|
+
z: string | number;
|
|
2953
|
+
}>>;
|
|
2954
|
+
size: z.ZodOptional<z.ZodObject<{
|
|
2955
|
+
x: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2956
|
+
y: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2957
|
+
z: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2958
|
+
}, "strip", z.ZodTypeAny, {
|
|
2959
|
+
x: string | number;
|
|
2960
|
+
y: string | number;
|
|
2961
|
+
z: string | number;
|
|
2962
|
+
}, {
|
|
2963
|
+
x: string | number;
|
|
2964
|
+
y: string | number;
|
|
2965
|
+
z: string | number;
|
|
2966
|
+
}>>;
|
|
2967
|
+
}, {
|
|
2968
|
+
jscad: z.ZodAny;
|
|
2969
|
+
}>, "strip", z.ZodTypeAny, {
|
|
2970
|
+
rotationOffset?: number | {
|
|
2971
|
+
x: string | number;
|
|
2972
|
+
y: string | number;
|
|
2973
|
+
z: string | number;
|
|
2974
|
+
} | undefined;
|
|
2975
|
+
positionOffset?: {
|
|
2976
|
+
x: string | number;
|
|
2977
|
+
y: string | number;
|
|
2978
|
+
z: string | number;
|
|
2979
|
+
} | undefined;
|
|
2980
|
+
size?: {
|
|
2981
|
+
x: string | number;
|
|
2982
|
+
y: string | number;
|
|
2983
|
+
z: string | number;
|
|
2984
|
+
} | undefined;
|
|
2985
|
+
jscad?: any;
|
|
2986
|
+
}, {
|
|
2987
|
+
rotationOffset?: number | {
|
|
2988
|
+
x: string | number;
|
|
2989
|
+
y: string | number;
|
|
2990
|
+
z: string | number;
|
|
2991
|
+
} | undefined;
|
|
2992
|
+
positionOffset?: {
|
|
2993
|
+
x: string | number;
|
|
2994
|
+
y: string | number;
|
|
2995
|
+
z: string | number;
|
|
2996
|
+
} | undefined;
|
|
2997
|
+
size?: {
|
|
2998
|
+
x: string | number;
|
|
2999
|
+
y: string | number;
|
|
3000
|
+
z: string | number;
|
|
3001
|
+
} | undefined;
|
|
3002
|
+
jscad?: any;
|
|
3003
|
+
}>]>>;
|
|
3004
|
+
children: z.ZodOptional<z.ZodAny>;
|
|
3005
|
+
}>, {
|
|
3006
|
+
ftype: z.ZodLiteral<"switch">;
|
|
3007
|
+
switchType: z.ZodDefault<z.ZodEnum<["spst"]>>;
|
|
3008
|
+
isNormallyClosed: z.ZodDefault<z.ZodBoolean>;
|
|
3009
|
+
}>, "strip", z.ZodTypeAny, {
|
|
3010
|
+
ftype: "switch";
|
|
3011
|
+
name: string;
|
|
3012
|
+
switchType: "spst";
|
|
3013
|
+
isNormallyClosed: boolean;
|
|
3014
|
+
pcbX?: number | undefined;
|
|
3015
|
+
pcbY?: number | undefined;
|
|
3016
|
+
pcbRotation?: number | undefined;
|
|
3017
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
3018
|
+
schX?: number | undefined;
|
|
3019
|
+
schY?: number | undefined;
|
|
3020
|
+
schRotation?: number | undefined;
|
|
3021
|
+
footprint?: Footprint | undefined;
|
|
3022
|
+
supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
3023
|
+
cadModel?: {
|
|
3024
|
+
stlUrl: string;
|
|
3025
|
+
rotationOffset?: number | {
|
|
3026
|
+
x: string | number;
|
|
3027
|
+
y: string | number;
|
|
3028
|
+
z: string | number;
|
|
3029
|
+
} | undefined;
|
|
3030
|
+
positionOffset?: {
|
|
3031
|
+
x: string | number;
|
|
3032
|
+
y: string | number;
|
|
3033
|
+
z: string | number;
|
|
3034
|
+
} | undefined;
|
|
3035
|
+
size?: {
|
|
3036
|
+
x: string | number;
|
|
3037
|
+
y: string | number;
|
|
3038
|
+
z: string | number;
|
|
3039
|
+
} | undefined;
|
|
3040
|
+
} | {
|
|
3041
|
+
objUrl: string;
|
|
3042
|
+
rotationOffset?: number | {
|
|
3043
|
+
x: string | number;
|
|
3044
|
+
y: string | number;
|
|
3045
|
+
z: string | number;
|
|
3046
|
+
} | undefined;
|
|
3047
|
+
positionOffset?: {
|
|
3048
|
+
x: string | number;
|
|
3049
|
+
y: string | number;
|
|
3050
|
+
z: string | number;
|
|
3051
|
+
} | undefined;
|
|
3052
|
+
size?: {
|
|
3053
|
+
x: string | number;
|
|
3054
|
+
y: string | number;
|
|
3055
|
+
z: string | number;
|
|
3056
|
+
} | undefined;
|
|
3057
|
+
mtlUrl?: string | undefined;
|
|
3058
|
+
} | {
|
|
3059
|
+
rotationOffset?: number | {
|
|
3060
|
+
x: string | number;
|
|
3061
|
+
y: string | number;
|
|
3062
|
+
z: string | number;
|
|
3063
|
+
} | undefined;
|
|
3064
|
+
positionOffset?: {
|
|
3065
|
+
x: string | number;
|
|
3066
|
+
y: string | number;
|
|
3067
|
+
z: string | number;
|
|
3068
|
+
} | undefined;
|
|
3069
|
+
size?: {
|
|
3070
|
+
x: string | number;
|
|
3071
|
+
y: string | number;
|
|
3072
|
+
z: string | number;
|
|
3073
|
+
} | undefined;
|
|
3074
|
+
jscad?: any;
|
|
3075
|
+
} | undefined;
|
|
3076
|
+
children?: any;
|
|
3077
|
+
}, {
|
|
3078
|
+
ftype: "switch";
|
|
3079
|
+
name: string;
|
|
3080
|
+
pcbX?: string | number | undefined;
|
|
3081
|
+
pcbY?: string | number | undefined;
|
|
3082
|
+
pcbRotation?: string | number | undefined;
|
|
3083
|
+
layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
3084
|
+
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
3085
|
+
} | undefined;
|
|
3086
|
+
schX?: string | number | undefined;
|
|
3087
|
+
schY?: string | number | undefined;
|
|
3088
|
+
schRotation?: string | number | undefined;
|
|
3089
|
+
footprint?: Footprint | undefined;
|
|
3090
|
+
supplierPartNumbers?: Partial<Record<"jlcpcb" | "macrofab" | "pcbway" | "digikey" | "mouser" | "lcsc", string[]>> | undefined;
|
|
3091
|
+
cadModel?: {
|
|
3092
|
+
stlUrl: string;
|
|
3093
|
+
rotationOffset?: number | {
|
|
3094
|
+
x: string | number;
|
|
3095
|
+
y: string | number;
|
|
3096
|
+
z: string | number;
|
|
3097
|
+
} | undefined;
|
|
3098
|
+
positionOffset?: {
|
|
3099
|
+
x: string | number;
|
|
3100
|
+
y: string | number;
|
|
3101
|
+
z: string | number;
|
|
3102
|
+
} | undefined;
|
|
3103
|
+
size?: {
|
|
3104
|
+
x: string | number;
|
|
3105
|
+
y: string | number;
|
|
3106
|
+
z: string | number;
|
|
3107
|
+
} | undefined;
|
|
3108
|
+
} | {
|
|
3109
|
+
objUrl: string;
|
|
3110
|
+
rotationOffset?: number | {
|
|
3111
|
+
x: string | number;
|
|
3112
|
+
y: string | number;
|
|
3113
|
+
z: string | number;
|
|
3114
|
+
} | undefined;
|
|
3115
|
+
positionOffset?: {
|
|
3116
|
+
x: string | number;
|
|
3117
|
+
y: string | number;
|
|
3118
|
+
z: string | number;
|
|
3119
|
+
} | undefined;
|
|
3120
|
+
size?: {
|
|
3121
|
+
x: string | number;
|
|
3122
|
+
y: string | number;
|
|
3123
|
+
z: string | number;
|
|
3124
|
+
} | undefined;
|
|
3125
|
+
mtlUrl?: string | undefined;
|
|
3126
|
+
} | {
|
|
3127
|
+
rotationOffset?: number | {
|
|
3128
|
+
x: string | number;
|
|
3129
|
+
y: string | number;
|
|
3130
|
+
z: string | number;
|
|
3131
|
+
} | undefined;
|
|
3132
|
+
positionOffset?: {
|
|
3133
|
+
x: string | number;
|
|
3134
|
+
y: string | number;
|
|
3135
|
+
z: string | number;
|
|
3136
|
+
} | undefined;
|
|
3137
|
+
size?: {
|
|
3138
|
+
x: string | number;
|
|
3139
|
+
y: string | number;
|
|
3140
|
+
z: string | number;
|
|
3141
|
+
} | undefined;
|
|
3142
|
+
jscad?: any;
|
|
3143
|
+
} | undefined;
|
|
3144
|
+
children?: any;
|
|
3145
|
+
switchType?: "spst" | undefined;
|
|
3146
|
+
isNormallyClosed?: boolean | undefined;
|
|
3147
|
+
}>;
|
|
3148
|
+
type SwitchProps = z.input<typeof switchProps>;
|
|
2751
3149
|
declare const boardProps: z.ZodObject<{
|
|
2752
3150
|
width: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
2753
3151
|
height: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
@@ -4085,14 +4483,17 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
4085
4483
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
4086
4484
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4087
4485
|
}>>;
|
|
4486
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4088
4487
|
}, "strip", z.ZodTypeAny, {
|
|
4089
4488
|
x: number;
|
|
4090
4489
|
y: number;
|
|
4490
|
+
trace_width?: number | undefined;
|
|
4091
4491
|
via?: boolean | undefined;
|
|
4092
4492
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
4093
4493
|
}, {
|
|
4094
4494
|
x: string | number;
|
|
4095
4495
|
y: string | number;
|
|
4496
|
+
trace_width?: string | number | undefined;
|
|
4096
4497
|
via?: boolean | undefined;
|
|
4097
4498
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
4098
4499
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -4108,6 +4509,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
4108
4509
|
pcbRouteHints?: {
|
|
4109
4510
|
x: number;
|
|
4110
4511
|
y: number;
|
|
4512
|
+
trace_width?: number | undefined;
|
|
4111
4513
|
via?: boolean | undefined;
|
|
4112
4514
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
4113
4515
|
}[] | undefined;
|
|
@@ -4121,6 +4523,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
4121
4523
|
pcbRouteHints?: {
|
|
4122
4524
|
x: string | number;
|
|
4123
4525
|
y: string | number;
|
|
4526
|
+
trace_width?: string | number | undefined;
|
|
4124
4527
|
via?: boolean | undefined;
|
|
4125
4528
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
4126
4529
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -4153,14 +4556,17 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
4153
4556
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
4154
4557
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
4155
4558
|
}>>;
|
|
4559
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
4156
4560
|
}, "strip", z.ZodTypeAny, {
|
|
4157
4561
|
x: number;
|
|
4158
4562
|
y: number;
|
|
4563
|
+
trace_width?: number | undefined;
|
|
4159
4564
|
via?: boolean | undefined;
|
|
4160
4565
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
4161
4566
|
}, {
|
|
4162
4567
|
x: string | number;
|
|
4163
4568
|
y: string | number;
|
|
4569
|
+
trace_width?: string | number | undefined;
|
|
4164
4570
|
via?: boolean | undefined;
|
|
4165
4571
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
4166
4572
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -4177,6 +4583,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
4177
4583
|
pcbRouteHints?: {
|
|
4178
4584
|
x: number;
|
|
4179
4585
|
y: number;
|
|
4586
|
+
trace_width?: number | undefined;
|
|
4180
4587
|
via?: boolean | undefined;
|
|
4181
4588
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
4182
4589
|
}[] | undefined;
|
|
@@ -4191,6 +4598,7 @@ declare const traceProps: z.ZodUnion<[z.ZodObject<{
|
|
|
4191
4598
|
pcbRouteHints?: {
|
|
4192
4599
|
x: string | number;
|
|
4193
4600
|
y: string | number;
|
|
4601
|
+
trace_width?: string | number | undefined;
|
|
4194
4602
|
via?: boolean | undefined;
|
|
4195
4603
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
4196
4604
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5434,14 +5842,17 @@ declare const silkscreenPathProps: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
5434
5842
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5435
5843
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5436
5844
|
}>>;
|
|
5845
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5437
5846
|
}, "strip", z.ZodTypeAny, {
|
|
5438
5847
|
x: number;
|
|
5439
5848
|
y: number;
|
|
5849
|
+
trace_width?: number | undefined;
|
|
5440
5850
|
via?: boolean | undefined;
|
|
5441
5851
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5442
5852
|
}, {
|
|
5443
5853
|
x: string | number;
|
|
5444
5854
|
y: string | number;
|
|
5855
|
+
trace_width?: string | number | undefined;
|
|
5445
5856
|
via?: boolean | undefined;
|
|
5446
5857
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5447
5858
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5452,6 +5863,7 @@ declare const silkscreenPathProps: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
5452
5863
|
route: {
|
|
5453
5864
|
x: number;
|
|
5454
5865
|
y: number;
|
|
5866
|
+
trace_width?: number | undefined;
|
|
5455
5867
|
via?: boolean | undefined;
|
|
5456
5868
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5457
5869
|
}[];
|
|
@@ -5461,6 +5873,7 @@ declare const silkscreenPathProps: z.ZodObject<z.objectUtil.extendShape<Omit<{
|
|
|
5461
5873
|
route: {
|
|
5462
5874
|
x: string | number;
|
|
5463
5875
|
y: string | number;
|
|
5876
|
+
trace_width?: string | number | undefined;
|
|
5464
5877
|
via?: boolean | undefined;
|
|
5465
5878
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5466
5879
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5604,14 +6017,17 @@ declare const traceHintProps: z.ZodObject<{
|
|
|
5604
6017
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5605
6018
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5606
6019
|
}>>;
|
|
6020
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5607
6021
|
}, "strip", z.ZodTypeAny, {
|
|
5608
6022
|
x: number;
|
|
5609
6023
|
y: number;
|
|
6024
|
+
trace_width?: number | undefined;
|
|
5610
6025
|
via?: boolean | undefined;
|
|
5611
6026
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5612
6027
|
}, {
|
|
5613
6028
|
x: string | number;
|
|
5614
6029
|
y: string | number;
|
|
6030
|
+
trace_width?: string | number | undefined;
|
|
5615
6031
|
via?: boolean | undefined;
|
|
5616
6032
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5617
6033
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5630,14 +6046,17 @@ declare const traceHintProps: z.ZodObject<{
|
|
|
5630
6046
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5631
6047
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5632
6048
|
}>>;
|
|
6049
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5633
6050
|
}, "strip", z.ZodTypeAny, {
|
|
5634
6051
|
x: number;
|
|
5635
6052
|
y: number;
|
|
6053
|
+
trace_width?: number | undefined;
|
|
5636
6054
|
via?: boolean | undefined;
|
|
5637
6055
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5638
6056
|
}, {
|
|
5639
6057
|
x: string | number;
|
|
5640
6058
|
y: string | number;
|
|
6059
|
+
trace_width?: string | number | undefined;
|
|
5641
6060
|
via?: boolean | undefined;
|
|
5642
6061
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5643
6062
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5650,12 +6069,14 @@ declare const traceHintProps: z.ZodObject<{
|
|
|
5650
6069
|
offset?: {
|
|
5651
6070
|
x: number;
|
|
5652
6071
|
y: number;
|
|
6072
|
+
trace_width?: number | undefined;
|
|
5653
6073
|
via?: boolean | undefined;
|
|
5654
6074
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5655
6075
|
} | undefined;
|
|
5656
6076
|
offsets?: {
|
|
5657
6077
|
x: number;
|
|
5658
6078
|
y: number;
|
|
6079
|
+
trace_width?: number | undefined;
|
|
5659
6080
|
via?: boolean | undefined;
|
|
5660
6081
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5661
6082
|
}[] | undefined;
|
|
@@ -5666,6 +6087,7 @@ declare const traceHintProps: z.ZodObject<{
|
|
|
5666
6087
|
offset?: {
|
|
5667
6088
|
x: string | number;
|
|
5668
6089
|
y: string | number;
|
|
6090
|
+
trace_width?: string | number | undefined;
|
|
5669
6091
|
via?: boolean | undefined;
|
|
5670
6092
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5671
6093
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5674,6 +6096,7 @@ declare const traceHintProps: z.ZodObject<{
|
|
|
5674
6096
|
offsets?: {
|
|
5675
6097
|
x: string | number;
|
|
5676
6098
|
y: string | number;
|
|
6099
|
+
trace_width?: string | number | undefined;
|
|
5677
6100
|
via?: boolean | undefined;
|
|
5678
6101
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5679
6102
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5698,14 +6121,17 @@ declare const pcbTraceProps: z.ZodObject<{
|
|
|
5698
6121
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5699
6122
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5700
6123
|
}>>;
|
|
6124
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5701
6125
|
}, "strip", z.ZodTypeAny, {
|
|
5702
6126
|
x: number;
|
|
5703
6127
|
y: number;
|
|
6128
|
+
trace_width?: number | undefined;
|
|
5704
6129
|
via?: boolean | undefined;
|
|
5705
6130
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5706
6131
|
}, {
|
|
5707
6132
|
x: string | number;
|
|
5708
6133
|
y: string | number;
|
|
6134
|
+
trace_width?: string | number | undefined;
|
|
5709
6135
|
via?: boolean | undefined;
|
|
5710
6136
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5711
6137
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5715,6 +6141,7 @@ declare const pcbTraceProps: z.ZodObject<{
|
|
|
5715
6141
|
route: {
|
|
5716
6142
|
x: number;
|
|
5717
6143
|
y: number;
|
|
6144
|
+
trace_width?: number | undefined;
|
|
5718
6145
|
via?: boolean | undefined;
|
|
5719
6146
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5720
6147
|
}[];
|
|
@@ -5724,6 +6151,7 @@ declare const pcbTraceProps: z.ZodObject<{
|
|
|
5724
6151
|
route: {
|
|
5725
6152
|
x: string | number;
|
|
5726
6153
|
y: string | number;
|
|
6154
|
+
trace_width?: string | number | undefined;
|
|
5727
6155
|
via?: boolean | undefined;
|
|
5728
6156
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5729
6157
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5800,14 +6228,17 @@ declare const fabricationNotePathProps: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
5800
6228
|
}>]>, "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6", "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5801
6229
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
5802
6230
|
}>>;
|
|
6231
|
+
trace_width: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
5803
6232
|
}, "strip", z.ZodTypeAny, {
|
|
5804
6233
|
x: number;
|
|
5805
6234
|
y: number;
|
|
6235
|
+
trace_width?: number | undefined;
|
|
5806
6236
|
via?: boolean | undefined;
|
|
5807
6237
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5808
6238
|
}, {
|
|
5809
6239
|
x: string | number;
|
|
5810
6240
|
y: string | number;
|
|
6241
|
+
trace_width?: string | number | undefined;
|
|
5811
6242
|
via?: boolean | undefined;
|
|
5812
6243
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5813
6244
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5818,6 +6249,7 @@ declare const fabricationNotePathProps: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
5818
6249
|
route: {
|
|
5819
6250
|
x: number;
|
|
5820
6251
|
y: number;
|
|
6252
|
+
trace_width?: number | undefined;
|
|
5821
6253
|
via?: boolean | undefined;
|
|
5822
6254
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | undefined;
|
|
5823
6255
|
}[];
|
|
@@ -5827,6 +6259,7 @@ declare const fabricationNotePathProps: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
5827
6259
|
route: {
|
|
5828
6260
|
x: string | number;
|
|
5829
6261
|
y: string | number;
|
|
6262
|
+
trace_width?: string | number | undefined;
|
|
5830
6263
|
via?: boolean | undefined;
|
|
5831
6264
|
to_layer?: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6" | {
|
|
5832
6265
|
name: "top" | "bottom" | "inner1" | "inner2" | "inner3" | "inner4" | "inner5" | "inner6";
|
|
@@ -5839,4 +6272,4 @@ declare const fabricationNotePathProps: z.ZodObject<z.objectUtil.extendShape<Omi
|
|
|
5839
6272
|
}>;
|
|
5840
6273
|
type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>;
|
|
5841
6274
|
|
|
5842
|
-
export { type BoardProps, type CapacitorProps, type ChipProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConstrainedLayoutProps, type ConstraintProps, type DiodeProps, type FabricationNotePathProps, type FabricationNoteTextProps, type Footprint, type FootprintProps, type GroupProps, type HoleProps, type InductorProps, type LedProps, type NetAliasProps, type PcbTraceProps, type PlatedHoleProps, type PortProps, type PowerSourceProps, type ResistorProps, type SchematicBoxProps, type SchematicLineProps, type SchematicPathProps, type SchematicTextProps, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SupplierProps, type TraceHintProps, type TraceProps, type ViaProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelStl, capacitorPins, capacitorProps, chipProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, diodePins, diodeProps, direction, distanceOrMultiplier, explicitPinSideDefinition, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, groupProps, holeProps, inductorPins, inductorProps, ledPins, ledProps, lrPins, lrPolarPins, netAliasProps, pcbLayoutProps, pcbTraceProps, platedHoleProps, portHints, portProps, powerSourceProps, relativeDirection, resistorPins, resistorProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, supplierProps, traceHintProps, traceProps, viaProps };
|
|
6275
|
+
export { type BoardProps, type CapacitorProps, type ChipProps, type CommonComponentProps, type CommonLayoutProps, type ComponentProps, type ConstrainedLayoutProps, type ConstraintProps, type DiodeProps, type FabricationNotePathProps, type FabricationNoteTextProps, type Footprint, type FootprintProps, type GroupProps, type HoleProps, type InductorProps, type LedProps, type NetAliasProps, type PcbTraceProps, type PlatedHoleProps, type PortProps, type PowerSourceProps, type ResistorProps, type SchematicBoxProps, type SchematicLineProps, type SchematicPathProps, type SchematicTextProps, type SilkscreenCircleProps, type SilkscreenLineProps, type SilkscreenPathProps, type SilkscreenRectProps, type SilkscreenTextProps, type SmtPadProps, type SupplierProps, type SwitchProps, type TraceHintProps, type TraceProps, type ViaProps, boardProps, bugProps, cadModelBase, cadModelJscad, cadModelObj, cadModelStl, capacitorPins, capacitorProps, chipProps, commonComponentProps, commonLayoutProps, componentProps, constrainedLayoutProps, constraintProps, diodePins, diodeProps, direction, distanceOrMultiplier, explicitPinSideDefinition, fabricationNotePathProps, fabricationNoteTextProps, footprintProps, groupProps, holeProps, inductorPins, inductorProps, ledPins, ledProps, lrPins, lrPolarPins, netAliasProps, pcbLayoutProps, pcbTraceProps, platedHoleProps, portHints, portProps, powerSourceProps, relativeDirection, resistorPins, resistorProps, schematicBoxProps, schematicLineProps, schematicPathProps, schematicPortArrangement, schematicTextProps, silkscreenCircleProps, silkscreenLineProps, silkscreenPathProps, silkscreenRectProps, silkscreenTextProps, smtPadProps, supplierProps, switchProps, traceHintProps, traceProps, viaProps };
|
package/dist/index.js
CHANGED
|
@@ -72,6 +72,7 @@ __export(lib_exports, {
|
|
|
72
72
|
silkscreenTextProps: () => silkscreenTextProps,
|
|
73
73
|
smtPadProps: () => smtPadProps,
|
|
74
74
|
supplierProps: () => supplierProps,
|
|
75
|
+
switchProps: () => switchProps,
|
|
75
76
|
traceHintProps: () => traceHintProps,
|
|
76
77
|
traceProps: () => traceProps,
|
|
77
78
|
viaProps: () => viaProps
|
|
@@ -171,6 +172,11 @@ var ledProps = commonComponentProps.extend({
|
|
|
171
172
|
color: import_zod.z.string().optional()
|
|
172
173
|
});
|
|
173
174
|
var ledPins = lrPolarPins;
|
|
175
|
+
var switchProps = commonComponentProps.extend({
|
|
176
|
+
ftype: import_zod.z.literal("switch"),
|
|
177
|
+
switchType: import_zod.z.enum(["spst"]).default("spst"),
|
|
178
|
+
isNormallyClosed: import_zod.z.boolean().default(false)
|
|
179
|
+
});
|
|
174
180
|
var boardProps = import_zod.z.object({
|
|
175
181
|
width: import_soup.distance,
|
|
176
182
|
height: import_soup.distance,
|
|
@@ -417,6 +423,7 @@ var fabricationNotePathProps = pcbLayoutProps.omit({ pcbX: true, pcbY: true, pcb
|
|
|
417
423
|
silkscreenTextProps,
|
|
418
424
|
smtPadProps,
|
|
419
425
|
supplierProps,
|
|
426
|
+
switchProps,
|
|
420
427
|
traceHintProps,
|
|
421
428
|
traceProps,
|
|
422
429
|
viaProps
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../lib/index.ts"],"sourcesContent":["import type { LayoutBuilder } from \"@tscircuit/layout\"\nimport {\n type AnySoupElementInput,\n capacitance,\n distance,\n inductance,\n layer_ref,\n length,\n point,\n resistance,\n rotation,\n route_hint_point,\n supplier_name,\n voltage,\n} from \"@tscircuit/soup\"\nimport type { ReactElement } from \"react\"\nimport { z } from \"zod\"\n\nexport const portHints = z.array(z.string().or(z.number()))\n\nexport const direction = z.enum([\"up\", \"down\", \"left\", \"right\"])\n\nexport const relativeDirection = z.enum([\n \"top-to-bottom\",\n \"left-to-right\",\n \"bottom-to-top\",\n \"right-to-left\",\n])\n\nexport const explicitPinSideDefinition = z.object({\n pins: z.array(z.number()),\n direction: z.union([\n z.literal(\"top-to-bottom\"),\n z.literal(\"left-to-right\"),\n z.literal(\"bottom-to-top\"),\n z.literal(\"right-to-left\"),\n ]),\n})\n\nexport type Footprint = string | ReactElement | AnySoupElementInput[]\nexport const pcbLayoutProps = z.object({\n pcbX: distance,\n pcbY: distance,\n pcbRotation: rotation.optional(),\n layer: layer_ref.optional(),\n})\nexport const commonLayoutProps = z.object({\n pcbX: distance.optional(),\n pcbY: distance.optional(),\n pcbRotation: rotation.optional(),\n schX: distance.optional(),\n schY: distance.optional(),\n schRotation: rotation.optional(),\n layer: layer_ref.optional(),\n\n // TODO pull in literals from @tscircuit/footprint\n // TODO footprint can be a string or react child\n footprint: z.custom<Footprint>((v) => true).optional(),\n})\nexport type CommonLayoutProps = z.input<typeof commonLayoutProps>\n\nexport const supplierProps = z.object({\n supplierPartNumbers: z.record(supplier_name, z.array(z.string())).optional(),\n})\nexport type SupplierProps = z.input<typeof supplierProps>\n\nconst point3 = z.object({\n x: z.union([z.number(), z.string()]),\n y: z.union([z.number(), z.string()]),\n z: z.union([z.number(), z.string()]),\n})\n\nexport const cadModelBase = z.object({\n rotationOffset: z.number().or(point3).optional(),\n positionOffset: point3.optional(),\n size: point3.optional(),\n})\n\nexport const cadModelStl = cadModelBase.extend({\n stlUrl: z.string(),\n})\n\nexport const cadModelObj = cadModelBase.extend({\n objUrl: z.string(),\n mtlUrl: z.string().optional(),\n})\n\nexport const cadModelJscad = cadModelBase.extend({\n jscad: z.any(),\n})\n\nexport const commonComponentProps = commonLayoutProps\n .merge(supplierProps)\n .extend({\n name: z.string(),\n cadModel: z.union([cadModelStl, cadModelObj, cadModelJscad]).optional(),\n children: z.any().optional(),\n })\nexport type CommonComponentProps = z.input<typeof commonComponentProps>\n\nexport const lrPins = [\"pin1\", \"left\", \"pin2\", \"right\"] as const\nexport const lrPolarPins = [\n \"pin1\",\n \"left\",\n \"anode\",\n \"pos\",\n \"pin2\",\n \"right\",\n \"cathode\",\n \"neg\",\n] as const\n\nexport const resistorProps = commonComponentProps.extend({\n resistance,\n})\nexport const resistorPins = lrPins\nexport type ResistorProps = z.input<typeof resistorProps>\n\nexport const capacitorProps = commonComponentProps.extend({\n capacitance,\n})\nexport const capacitorPins = lrPolarPins\nexport type CapacitorProps = z.input<typeof capacitorProps>\n\nexport const inductorProps = commonComponentProps.extend({\n inductance,\n})\nexport const inductorPins = lrPins\nexport type InductorProps = z.input<typeof inductorProps>\n\nexport const diodeProps = commonComponentProps.extend({})\nexport const diodePins = lrPolarPins\nexport type DiodeProps = z.input<typeof diodeProps>\n\nexport const ledProps = commonComponentProps.extend({\n color: z.string().optional(),\n})\nexport const ledPins = lrPolarPins\nexport type LedProps = z.input<typeof ledProps>\n\nexport const boardProps = z.object({\n width: distance,\n height: distance,\n pcbX: distance.optional().default(0),\n pcbY: distance.optional().default(0),\n layout: z.any().optional(),\n routingDisabled: z.boolean().optional(),\n children: z.any(),\n})\nexport type BoardProps = z.input<typeof boardProps>\n\nexport const distanceOrMultiplier = distance.or(z.enum([\"2x\", \"3x\", \"4x\"]))\n\nexport const schematicPortArrangement = z\n .object({\n leftSize: z.number().optional(),\n topSize: z.number().optional(),\n rightSize: z.number().optional(),\n bottomSize: z.number().optional(),\n })\n .or(\n z.object({\n leftSide: explicitPinSideDefinition.optional(),\n rightSide: explicitPinSideDefinition.optional(),\n topSide: explicitPinSideDefinition.optional(),\n bottomSide: explicitPinSideDefinition.optional(),\n }),\n )\n\nexport const chipProps = commonComponentProps.extend({\n manufacturerPartNumber: z.string().optional(),\n pinLabels: z.record(z.number(), z.string()).optional(),\n schPortArrangement: schematicPortArrangement.optional(),\n schPinSpacing: distanceOrMultiplier\n .or(z.literal(\"auto\"))\n .optional()\n .default(\"auto\"),\n schWidth: distanceOrMultiplier\n .or(z.literal(\"auto\"))\n .optional()\n .default(\"auto\"),\n})\n/**\n * @deprecated Use ChipProps instead. \n */\nexport const bugProps = chipProps\nexport type ChipProps = z.input<typeof chipProps>\n\nexport const viaProps = commonLayoutProps.extend({\n fromLayer: layer_ref,\n toLayer: layer_ref,\n holeDiameter: distance,\n outerDiameter: distance,\n})\nexport type ViaProps = z.input<typeof viaProps>\n\nexport const netAliasProps = commonLayoutProps.extend({\n net: z.string().optional(),\n})\nexport type NetAliasProps = z.input<typeof netAliasProps>\n\nexport const traceProps = z\n .object({\n path: z.array(z.string()),\n thickness: distance.optional(),\n schematicRouteHints: z.array(point).optional(),\n pcbRouteHints: z.array(route_hint_point).optional(),\n })\n .or(\n z.object({\n from: z.string(),\n to: z.string(),\n thickness: distance.optional(),\n schematicRouteHints: z.array(point).optional(),\n pcbRouteHints: z.array(route_hint_point).optional(),\n }),\n )\nexport type TraceProps = z.input<typeof traceProps>\n\nexport const smtPadProps = z.union([\n pcbLayoutProps.omit({ pcbRotation: true }).extend({\n shape: z.literal(\"circle\"),\n radius: distance.optional(),\n portHints: portHints.optional(),\n }),\n pcbLayoutProps.omit({ pcbRotation: true }).extend({\n shape: z.literal(\"rect\"),\n width: distance.optional(),\n height: distance.optional(),\n portHints: portHints.optional(),\n }),\n])\nexport type SmtPadProps = z.input<typeof smtPadProps>\n\nexport const platedHoleProps = z.union([\n pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({\n shape: z.literal(\"circle\"),\n holeDiameter: distance,\n outerDiameter: distance,\n portHints: portHints.optional(),\n }),\n pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({\n shape: z.literal(\"oval\"),\n outerWidth: distance,\n outerHeight: distance,\n innerWidth: distance,\n innerHeight: distance,\n portHints: portHints.optional(),\n }),\n])\nexport type PlatedHoleProps = z.input<typeof platedHoleProps>\n\nexport const holeProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({\n holeDiameter: distance,\n})\nexport type HoleProps = z.input<typeof holeProps>\n\nexport const schematicBoxProps = z.object({\n schX: distance,\n schY: distance,\n width: distance,\n height: distance,\n})\nexport type SchematicBoxProps = z.input<typeof schematicBoxProps>\n\nexport const schematicTextProps = z.object({\n schX: distance,\n schY: distance,\n text: z.string(),\n})\nexport type SchematicTextProps = z.input<typeof schematicTextProps>\n\nexport const schematicLineProps = z.object({\n x1: distance,\n y1: distance,\n x2: distance,\n y2: distance,\n})\nexport type SchematicLineProps = z.input<typeof schematicLineProps>\n\nexport const schematicPathProps = z.object({\n points: z.array(point),\n isFilled: z.boolean().optional().default(false),\n fillColor: z.enum([\"red\", \"blue\"]).optional(),\n})\nexport type SchematicPathProps = z.input<typeof schematicPathProps>\n\nexport const constraintProps = z.union([\n z.object({\n type: z.literal(\"xdist\"),\n dist: distance,\n left: z.string(),\n right: z.string(),\n }),\n z.object({\n type: z.literal(\"ydist\"),\n dist: distance,\n top: z.string(),\n bottom: z.string(),\n }),\n])\nexport type ConstraintProps = z.input<typeof constraintProps>\n\nexport const constrainedLayoutProps = z.object({})\nexport type ConstrainedLayoutProps = z.input<typeof constrainedLayoutProps>\n\nexport const footprintProps = z.object({})\nexport type FootprintProps = z.input<typeof footprintProps>\n\nexport const componentProps = commonComponentProps\nexport type ComponentProps = z.input<typeof componentProps>\n\nexport const groupProps = commonLayoutProps.extend({\n name: z.string().optional(),\n layout: z.custom<LayoutBuilder>((v) => true).optional(),\n children: z.any().optional(),\n routingDisabled: z.boolean().optional(),\n})\nexport type GroupProps = z.input<typeof groupProps>\n\nexport const powerSourceProps = commonComponentProps.extend({\n voltage,\n})\nexport type PowerSourceProps = z.input<typeof powerSourceProps>\n\nexport const portProps = commonLayoutProps.extend({\n name: z.string(),\n pinNumber: z.number().optional(),\n aliases: z.array(z.string()).optional(),\n direction: direction,\n})\nexport type PortProps = z.input<typeof portProps>\n\nexport const silkscreenTextProps = pcbLayoutProps.extend({\n text: z.string(),\n anchorAlignment: z\n .enum([\"center\", \"top_left\", \"top_right\", \"bottom_left\", \"bottom_right\"])\n .default(\"center\"),\n font: z.enum([\"tscircuit2024\"]).optional(),\n fontSize: length.optional(),\n})\nexport type SilkscreenTextProps = z.input<typeof silkscreenTextProps>\n\nexport const silkscreenPathProps = pcbLayoutProps\n .omit({ pcbX: true, pcbY: true, pcbRotation: true })\n .extend({\n route: z.array(route_hint_point),\n strokeWidth: length.optional(),\n })\nexport type SilkscreenPathProps = z.input<typeof silkscreenPathProps>\n\nexport const silkscreenLineProps = pcbLayoutProps\n .omit({ pcbX: true, pcbY: true, pcbRotation: true })\n .extend({\n strokeWidth: distance,\n x1: distance,\n y1: distance,\n x2: distance,\n y2: distance,\n })\nexport type SilkscreenLineProps = z.input<typeof silkscreenLineProps>\n\nexport const silkscreenRectProps = pcbLayoutProps\n .omit({ pcbRotation: true })\n .extend({\n isFilled: z.boolean().optional(),\n isOutline: z.boolean().optional(),\n strokeWidth: distance.optional(),\n width: distance,\n height: distance,\n })\nexport type SilkscreenRectProps = z.input<typeof silkscreenRectProps>\n\nexport const silkscreenCircleProps = pcbLayoutProps\n .omit({ pcbRotation: true })\n .extend({\n isFilled: z.boolean().optional(),\n isOutline: z.boolean().optional(),\n strokeWidth: distance.optional(),\n radius: distance,\n })\nexport type SilkscreenCircleProps = z.input<typeof silkscreenCircleProps>\n\nexport const traceHintProps = z.object({\n for: z.string(),\n order: z.number().optional(),\n offset: route_hint_point.optional(),\n offsets: z.array(route_hint_point).optional(),\n traceWidth: z.number().optional(),\n})\n\nexport type TraceHintProps = z.input<typeof traceHintProps>\n\nexport const pcbTraceProps = z.object({\n layer: z.string().optional(),\n thickness: distance.optional(),\n route: z.array(route_hint_point),\n})\nexport type PcbTraceProps = z.input<typeof pcbTraceProps>\n\nexport const fabricationNoteTextProps = pcbLayoutProps.extend({\n text: z.string(),\n anchorAlignment: z\n .enum([\"center\", \"top_left\", \"top_right\", \"bottom_left\", \"bottom_right\"])\n .default(\"center\"),\n font: z.enum([\"tscircuit2024\"]).optional(),\n fontSize: length.optional(),\n})\nexport type FabricationNoteTextProps = z.input<typeof fabricationNoteTextProps>\n\nexport const fabricationNotePathProps = pcbLayoutProps\n .omit({ pcbX: true, pcbY: true, pcbRotation: true })\n .extend({\n route: z.array(route_hint_point),\n strokeWidth: length.optional(),\n })\nexport type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAaO;AAEP,iBAAkB;AAEX,IAAM,YAAY,aAAE,MAAM,aAAE,OAAO,EAAE,GAAG,aAAE,OAAO,CAAC,CAAC;AAEnD,IAAM,YAAY,aAAE,KAAK,CAAC,MAAM,QAAQ,QAAQ,OAAO,CAAC;AAExD,IAAM,oBAAoB,aAAE,KAAK;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,4BAA4B,aAAE,OAAO;AAAA,EAChD,MAAM,aAAE,MAAM,aAAE,OAAO,CAAC;AAAA,EACxB,WAAW,aAAE,MAAM;AAAA,IACjB,aAAE,QAAQ,eAAe;AAAA,IACzB,aAAE,QAAQ,eAAe;AAAA,IACzB,aAAE,QAAQ,eAAe;AAAA,IACzB,aAAE,QAAQ,eAAe;AAAA,EAC3B,CAAC;AACH,CAAC;AAGM,IAAM,iBAAiB,aAAE,OAAO;AAAA,EACrC,MAAM;AAAA,EACN,MAAM;AAAA,EACN,aAAa,qBAAS,SAAS;AAAA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EAC/B,QAAQ;AACV,CAAC;AAGI,IAAM,iBAAiB,aAAE,OAAO;AAAA,EACrC,KAAK,aAAE,OAAO;AAAA,EACd,OAAO,aAAE,OAAO,EAAE,SAAS;AAAA,EAC3B,QAAQ,6BAAiB,SAAS;AAAA,EAClC,SAAS,aAAE,MAAM,4BAAgB,EAAE,SAAS;AAAA,EAC5C,YAAY,aAAE,OAAO,EAAE,SAAS;AAClC,CAAC;AAIM,IAAM,gBAAgB,aAAE,OAAO;AAAA,EACpC,OAAO,aAAE,OAAO,EAAE,SAAS;AAAA,EAC3B,WAAW,qBAAS,SAAS;AAAA,EAC7B,OAAO,aAAE,MAAM,4BAAgB;AACjC,CAAC;AAGM,IAAM,2BAA2B,eAAe,OAAO;AAAA,EAC5D,MAAM,aAAE,OAAO;AAAA,EACf,iBAAiB,aACd,KAAK,CAAC,UAAU,YAAY,aAAa,eAAe,cAAc,CAAC,EACvE,QAAQ,QAAQ;AAAA,EACnB,MAAM,aAAE,KAAK,CAAC,eAAe,CAAC,EAAE,SAAS;AAAA,EACzC,UAAU,mBAAO,SAAS;AAC5B,CAAC;AAGM,IAAM,2BAA2B,eACrC,KAAK,EAAE,MAAM,MAAM,MAAM,MAAM,aAAa,KAAK,CAAC,EAClD,OAAO;AAAA,EACN,OAAO,aAAE,MAAM,4BAAgB;AAAA,EAC/B,aAAa,mBAAO,SAAS;AAC/B,CAAC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../lib/index.ts"],"sourcesContent":["import type { LayoutBuilder } from \"@tscircuit/layout\"\nimport {\n type AnySoupElementInput,\n capacitance,\n distance,\n inductance,\n layer_ref,\n length,\n point,\n resistance,\n rotation,\n route_hint_point,\n supplier_name,\n voltage,\n} from \"@tscircuit/soup\"\nimport type { ReactElement } from \"react\"\nimport { z } from \"zod\"\n\nexport const portHints = z.array(z.string().or(z.number()))\n\nexport const direction = z.enum([\"up\", \"down\", \"left\", \"right\"])\n\nexport const relativeDirection = z.enum([\n \"top-to-bottom\",\n \"left-to-right\",\n \"bottom-to-top\",\n \"right-to-left\",\n])\n\nexport const explicitPinSideDefinition = z.object({\n pins: z.array(z.number()),\n direction: z.union([\n z.literal(\"top-to-bottom\"),\n z.literal(\"left-to-right\"),\n z.literal(\"bottom-to-top\"),\n z.literal(\"right-to-left\"),\n ]),\n})\n\nexport type Footprint = string | ReactElement | AnySoupElementInput[]\nexport const pcbLayoutProps = z.object({\n pcbX: distance,\n pcbY: distance,\n pcbRotation: rotation.optional(),\n layer: layer_ref.optional(),\n})\nexport const commonLayoutProps = z.object({\n pcbX: distance.optional(),\n pcbY: distance.optional(),\n pcbRotation: rotation.optional(),\n schX: distance.optional(),\n schY: distance.optional(),\n schRotation: rotation.optional(),\n layer: layer_ref.optional(),\n\n // TODO pull in literals from @tscircuit/footprint\n // TODO footprint can be a string or react child\n footprint: z.custom<Footprint>((v) => true).optional(),\n})\nexport type CommonLayoutProps = z.input<typeof commonLayoutProps>\n\nexport const supplierProps = z.object({\n supplierPartNumbers: z.record(supplier_name, z.array(z.string())).optional(),\n})\nexport type SupplierProps = z.input<typeof supplierProps>\n\nconst point3 = z.object({\n x: z.union([z.number(), z.string()]),\n y: z.union([z.number(), z.string()]),\n z: z.union([z.number(), z.string()]),\n})\n\nexport const cadModelBase = z.object({\n rotationOffset: z.number().or(point3).optional(),\n positionOffset: point3.optional(),\n size: point3.optional(),\n})\n\nexport const cadModelStl = cadModelBase.extend({\n stlUrl: z.string(),\n})\n\nexport const cadModelObj = cadModelBase.extend({\n objUrl: z.string(),\n mtlUrl: z.string().optional(),\n})\n\nexport const cadModelJscad = cadModelBase.extend({\n jscad: z.any(),\n})\n\nexport const commonComponentProps = commonLayoutProps\n .merge(supplierProps)\n .extend({\n name: z.string(),\n cadModel: z.union([cadModelStl, cadModelObj, cadModelJscad]).optional(),\n children: z.any().optional(),\n })\nexport type CommonComponentProps = z.input<typeof commonComponentProps>\n\nexport const lrPins = [\"pin1\", \"left\", \"pin2\", \"right\"] as const\nexport const lrPolarPins = [\n \"pin1\",\n \"left\",\n \"anode\",\n \"pos\",\n \"pin2\",\n \"right\",\n \"cathode\",\n \"neg\",\n] as const\n\nexport const resistorProps = commonComponentProps.extend({\n resistance,\n})\nexport const resistorPins = lrPins\nexport type ResistorProps = z.input<typeof resistorProps>\n\nexport const capacitorProps = commonComponentProps.extend({\n capacitance,\n})\nexport const capacitorPins = lrPolarPins\nexport type CapacitorProps = z.input<typeof capacitorProps>\n\nexport const inductorProps = commonComponentProps.extend({\n inductance,\n})\nexport const inductorPins = lrPins\nexport type InductorProps = z.input<typeof inductorProps>\n\nexport const diodeProps = commonComponentProps.extend({})\nexport const diodePins = lrPolarPins\nexport type DiodeProps = z.input<typeof diodeProps>\n\nexport const ledProps = commonComponentProps.extend({\n color: z.string().optional(),\n})\nexport const ledPins = lrPolarPins\nexport type LedProps = z.input<typeof ledProps>\n\nexport const switchProps = commonComponentProps.extend({\n ftype: z.literal(\"switch\"),\n switchType: z.enum([\"spst\"]).default(\"spst\"),\n isNormallyClosed: z.boolean().default(false),\n})\nexport type SwitchProps = z.input<typeof switchProps>\n\nexport const boardProps = z.object({\n width: distance,\n height: distance,\n pcbX: distance.optional().default(0),\n pcbY: distance.optional().default(0),\n layout: z.any().optional(),\n routingDisabled: z.boolean().optional(),\n children: z.any(),\n})\nexport type BoardProps = z.input<typeof boardProps>\n\nexport const distanceOrMultiplier = distance.or(z.enum([\"2x\", \"3x\", \"4x\"]))\n\nexport const schematicPortArrangement = z\n .object({\n leftSize: z.number().optional(),\n topSize: z.number().optional(),\n rightSize: z.number().optional(),\n bottomSize: z.number().optional(),\n })\n .or(\n z.object({\n leftSide: explicitPinSideDefinition.optional(),\n rightSide: explicitPinSideDefinition.optional(),\n topSide: explicitPinSideDefinition.optional(),\n bottomSide: explicitPinSideDefinition.optional(),\n }),\n )\n\nexport const chipProps = commonComponentProps.extend({\n manufacturerPartNumber: z.string().optional(),\n pinLabels: z.record(z.number(), z.string()).optional(),\n schPortArrangement: schematicPortArrangement.optional(),\n schPinSpacing: distanceOrMultiplier\n .or(z.literal(\"auto\"))\n .optional()\n .default(\"auto\"),\n schWidth: distanceOrMultiplier\n .or(z.literal(\"auto\"))\n .optional()\n .default(\"auto\"),\n})\n/**\n * @deprecated Use ChipProps instead.\n */\nexport const bugProps = chipProps\nexport type ChipProps = z.input<typeof chipProps>\n\nexport const viaProps = commonLayoutProps.extend({\n fromLayer: layer_ref,\n toLayer: layer_ref,\n holeDiameter: distance,\n outerDiameter: distance,\n})\nexport type ViaProps = z.input<typeof viaProps>\n\nexport const netAliasProps = commonLayoutProps.extend({\n net: z.string().optional(),\n})\nexport type NetAliasProps = z.input<typeof netAliasProps>\n\nexport const traceProps = z\n .object({\n path: z.array(z.string()),\n thickness: distance.optional(),\n schematicRouteHints: z.array(point).optional(),\n pcbRouteHints: z.array(route_hint_point).optional(),\n })\n .or(\n z.object({\n from: z.string(),\n to: z.string(),\n thickness: distance.optional(),\n schematicRouteHints: z.array(point).optional(),\n pcbRouteHints: z.array(route_hint_point).optional(),\n }),\n )\nexport type TraceProps = z.input<typeof traceProps>\n\nexport const smtPadProps = z.union([\n pcbLayoutProps.omit({ pcbRotation: true }).extend({\n shape: z.literal(\"circle\"),\n radius: distance.optional(),\n portHints: portHints.optional(),\n }),\n pcbLayoutProps.omit({ pcbRotation: true }).extend({\n shape: z.literal(\"rect\"),\n width: distance.optional(),\n height: distance.optional(),\n portHints: portHints.optional(),\n }),\n])\nexport type SmtPadProps = z.input<typeof smtPadProps>\n\nexport const platedHoleProps = z.union([\n pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({\n shape: z.literal(\"circle\"),\n holeDiameter: distance,\n outerDiameter: distance,\n portHints: portHints.optional(),\n }),\n pcbLayoutProps.omit({ pcbRotation: true, layer: true }).extend({\n shape: z.literal(\"oval\"),\n outerWidth: distance,\n outerHeight: distance,\n innerWidth: distance,\n innerHeight: distance,\n portHints: portHints.optional(),\n }),\n])\nexport type PlatedHoleProps = z.input<typeof platedHoleProps>\n\nexport const holeProps = pcbLayoutProps.omit({ pcbRotation: true }).extend({\n holeDiameter: distance,\n})\nexport type HoleProps = z.input<typeof holeProps>\n\nexport const schematicBoxProps = z.object({\n schX: distance,\n schY: distance,\n width: distance,\n height: distance,\n})\nexport type SchematicBoxProps = z.input<typeof schematicBoxProps>\n\nexport const schematicTextProps = z.object({\n schX: distance,\n schY: distance,\n text: z.string(),\n})\nexport type SchematicTextProps = z.input<typeof schematicTextProps>\n\nexport const schematicLineProps = z.object({\n x1: distance,\n y1: distance,\n x2: distance,\n y2: distance,\n})\nexport type SchematicLineProps = z.input<typeof schematicLineProps>\n\nexport const schematicPathProps = z.object({\n points: z.array(point),\n isFilled: z.boolean().optional().default(false),\n fillColor: z.enum([\"red\", \"blue\"]).optional(),\n})\nexport type SchematicPathProps = z.input<typeof schematicPathProps>\n\nexport const constraintProps = z.union([\n z.object({\n type: z.literal(\"xdist\"),\n dist: distance,\n left: z.string(),\n right: z.string(),\n }),\n z.object({\n type: z.literal(\"ydist\"),\n dist: distance,\n top: z.string(),\n bottom: z.string(),\n }),\n])\nexport type ConstraintProps = z.input<typeof constraintProps>\n\nexport const constrainedLayoutProps = z.object({})\nexport type ConstrainedLayoutProps = z.input<typeof constrainedLayoutProps>\n\nexport const footprintProps = z.object({})\nexport type FootprintProps = z.input<typeof footprintProps>\n\nexport const componentProps = commonComponentProps\nexport type ComponentProps = z.input<typeof componentProps>\n\nexport const groupProps = commonLayoutProps.extend({\n name: z.string().optional(),\n layout: z.custom<LayoutBuilder>((v) => true).optional(),\n children: z.any().optional(),\n routingDisabled: z.boolean().optional(),\n})\nexport type GroupProps = z.input<typeof groupProps>\n\nexport const powerSourceProps = commonComponentProps.extend({\n voltage,\n})\nexport type PowerSourceProps = z.input<typeof powerSourceProps>\n\nexport const portProps = commonLayoutProps.extend({\n name: z.string(),\n pinNumber: z.number().optional(),\n aliases: z.array(z.string()).optional(),\n direction: direction,\n})\nexport type PortProps = z.input<typeof portProps>\n\nexport const silkscreenTextProps = pcbLayoutProps.extend({\n text: z.string(),\n anchorAlignment: z\n .enum([\"center\", \"top_left\", \"top_right\", \"bottom_left\", \"bottom_right\"])\n .default(\"center\"),\n font: z.enum([\"tscircuit2024\"]).optional(),\n fontSize: length.optional(),\n})\nexport type SilkscreenTextProps = z.input<typeof silkscreenTextProps>\n\nexport const silkscreenPathProps = pcbLayoutProps\n .omit({ pcbX: true, pcbY: true, pcbRotation: true })\n .extend({\n route: z.array(route_hint_point),\n strokeWidth: length.optional(),\n })\nexport type SilkscreenPathProps = z.input<typeof silkscreenPathProps>\n\nexport const silkscreenLineProps = pcbLayoutProps\n .omit({ pcbX: true, pcbY: true, pcbRotation: true })\n .extend({\n strokeWidth: distance,\n x1: distance,\n y1: distance,\n x2: distance,\n y2: distance,\n })\nexport type SilkscreenLineProps = z.input<typeof silkscreenLineProps>\n\nexport const silkscreenRectProps = pcbLayoutProps\n .omit({ pcbRotation: true })\n .extend({\n isFilled: z.boolean().optional(),\n isOutline: z.boolean().optional(),\n strokeWidth: distance.optional(),\n width: distance,\n height: distance,\n })\nexport type SilkscreenRectProps = z.input<typeof silkscreenRectProps>\n\nexport const silkscreenCircleProps = pcbLayoutProps\n .omit({ pcbRotation: true })\n .extend({\n isFilled: z.boolean().optional(),\n isOutline: z.boolean().optional(),\n strokeWidth: distance.optional(),\n radius: distance,\n })\nexport type SilkscreenCircleProps = z.input<typeof silkscreenCircleProps>\n\nexport const traceHintProps = z.object({\n for: z.string(),\n order: z.number().optional(),\n offset: route_hint_point.optional(),\n offsets: z.array(route_hint_point).optional(),\n traceWidth: z.number().optional(),\n})\n\nexport type TraceHintProps = z.input<typeof traceHintProps>\n\nexport const pcbTraceProps = z.object({\n layer: z.string().optional(),\n thickness: distance.optional(),\n route: z.array(route_hint_point),\n})\nexport type PcbTraceProps = z.input<typeof pcbTraceProps>\n\nexport const fabricationNoteTextProps = pcbLayoutProps.extend({\n text: z.string(),\n anchorAlignment: z\n .enum([\"center\", \"top_left\", \"top_right\", \"bottom_left\", \"bottom_right\"])\n .default(\"center\"),\n font: z.enum([\"tscircuit2024\"]).optional(),\n fontSize: length.optional(),\n})\nexport type FabricationNoteTextProps = z.input<typeof fabricationNoteTextProps>\n\nexport const fabricationNotePathProps = pcbLayoutProps\n .omit({ pcbX: true, pcbY: true, pcbRotation: true })\n .extend({\n route: z.array(route_hint_point),\n strokeWidth: length.optional(),\n })\nexport type FabricationNotePathProps = z.input<typeof fabricationNotePathProps>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,kBAaO;AAEP,iBAAkB;AAEX,IAAM,YAAY,aAAE,MAAM,aAAE,OAAO,EAAE,GAAG,aAAE,OAAO,CAAC,CAAC;AAEnD,IAAM,YAAY,aAAE,KAAK,CAAC,MAAM,QAAQ,QAAQ,OAAO,CAAC;AAExD,IAAM,oBAAoB,aAAE,KAAK;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,CAAC;AAEM,IAAM,4BAA4B,aAAE,OAAO;AAAA,EAChD,MAAM,aAAE,MAAM,aAAE,OAAO,CAAC;AAAA,EACxB,WAAW,aAAE,MAAM;AAAA,IACjB,aAAE,QAAQ,eAAe;AAAA,IACzB,aAAE,QAAQ,eAAe;AAAA,IACzB,aAAE,QAAQ,eAAe;AAAA,IACzB,aAAE,QAAQ,eAAe;AAAA,EAC3B,CAAC;AACH,CAAC;AAGM,IAAM,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2
|
"name": "@tscircuit/props",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.30",
|
|
4
4
|
"description": "Props for tscircuit builtin component types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@biomejs/biome": "^1.8.3",
|
|
19
19
|
"@tscircuit/layout": "^0.0.11",
|
|
20
|
-
"@tscircuit/soup": "^0.0.
|
|
20
|
+
"@tscircuit/soup": "^0.0.50",
|
|
21
21
|
"@types/node": "^20.12.11",
|
|
22
22
|
"@types/react": "^18.3.2",
|
|
23
23
|
"ava": "^6.1.3",
|