@tscircuit/props 0.0.411 → 0.0.413
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 -1
- package/dist/index.d.ts +18 -8
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/lib/components/platedhole.ts +2 -0
- package/lib/components/voltageprobe.ts +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1148,6 +1148,7 @@ export interface CirclePlatedHoleProps
|
|
|
1148
1148
|
shape: "circle";
|
|
1149
1149
|
holeDiameter: number | string;
|
|
1150
1150
|
outerDiameter: number | string;
|
|
1151
|
+
padDiameter?: number | string;
|
|
1151
1152
|
portHints?: PortHints;
|
|
1152
1153
|
solderMaskMargin?: Distance;
|
|
1153
1154
|
coveredWithSolderMask?: boolean;
|
|
@@ -1556,7 +1557,8 @@ export interface ViaProps extends CommonLayoutProps {
|
|
|
1556
1557
|
```ts
|
|
1557
1558
|
export interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
|
|
1558
1559
|
name?: string;
|
|
1559
|
-
connectsTo: string
|
|
1560
|
+
connectsTo: string;
|
|
1561
|
+
referenceTo?: string;
|
|
1560
1562
|
color?: string;
|
|
1561
1563
|
}
|
|
1562
1564
|
```
|
package/dist/index.d.ts
CHANGED
|
@@ -25034,6 +25034,7 @@ interface CirclePlatedHoleProps extends Omit<PcbLayoutProps, "pcbRotation" | "la
|
|
|
25034
25034
|
shape: "circle";
|
|
25035
25035
|
holeDiameter: number | string;
|
|
25036
25036
|
outerDiameter: number | string;
|
|
25037
|
+
padDiameter?: number | string;
|
|
25037
25038
|
portHints?: PortHints;
|
|
25038
25039
|
solderMaskMargin?: Distance;
|
|
25039
25040
|
coveredWithSolderMask?: boolean;
|
|
@@ -25180,6 +25181,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25180
25181
|
shape: z.ZodLiteral<"circle">;
|
|
25181
25182
|
holeDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
25182
25183
|
outerDiameter: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>;
|
|
25184
|
+
padDiameter: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25183
25185
|
portHints: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">>;
|
|
25184
25186
|
solderMaskMargin: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
25185
25187
|
coveredWithSolderMask: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -25211,6 +25213,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25211
25213
|
relative?: boolean | undefined;
|
|
25212
25214
|
name?: string | undefined;
|
|
25213
25215
|
connectsTo?: string | string[] | undefined;
|
|
25216
|
+
padDiameter?: number | undefined;
|
|
25214
25217
|
portHints?: (string | number)[] | undefined;
|
|
25215
25218
|
solderMaskMargin?: number | undefined;
|
|
25216
25219
|
coveredWithSolderMask?: boolean | undefined;
|
|
@@ -25242,6 +25245,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25242
25245
|
relative?: boolean | undefined;
|
|
25243
25246
|
name?: string | undefined;
|
|
25244
25247
|
connectsTo?: string | string[] | undefined;
|
|
25248
|
+
padDiameter?: string | number | undefined;
|
|
25245
25249
|
portHints?: (string | number)[] | undefined;
|
|
25246
25250
|
solderMaskMargin?: string | number | undefined;
|
|
25247
25251
|
coveredWithSolderMask?: boolean | undefined;
|
|
@@ -25996,6 +26000,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
25996
26000
|
relative?: boolean | undefined;
|
|
25997
26001
|
name?: string | undefined;
|
|
25998
26002
|
connectsTo?: string | string[] | undefined;
|
|
26003
|
+
padDiameter?: number | undefined;
|
|
25999
26004
|
portHints?: (string | number)[] | undefined;
|
|
26000
26005
|
solderMaskMargin?: number | undefined;
|
|
26001
26006
|
coveredWithSolderMask?: boolean | undefined;
|
|
@@ -26215,6 +26220,7 @@ declare const platedHoleProps: z.ZodEffects<z.ZodDiscriminatedUnion<"shape", [z.
|
|
|
26215
26220
|
relative?: boolean | undefined;
|
|
26216
26221
|
name?: string | undefined;
|
|
26217
26222
|
connectsTo?: string | string[] | undefined;
|
|
26223
|
+
padDiameter?: string | number | undefined;
|
|
26218
26224
|
portHints?: (string | number)[] | undefined;
|
|
26219
26225
|
solderMaskMargin?: string | number | undefined;
|
|
26220
26226
|
coveredWithSolderMask?: boolean | undefined;
|
|
@@ -51610,8 +51616,8 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
|
51610
51616
|
pin1: string | readonly string[] | string[];
|
|
51611
51617
|
} | undefined;
|
|
51612
51618
|
holeDiameter?: number | undefined;
|
|
51613
|
-
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
51614
51619
|
padDiameter?: number | undefined;
|
|
51620
|
+
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
51615
51621
|
}, {
|
|
51616
51622
|
name: string;
|
|
51617
51623
|
symbol?: SymbolProp | undefined;
|
|
@@ -51811,9 +51817,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
|
51811
51817
|
pin1: string | readonly string[] | string[];
|
|
51812
51818
|
} | undefined;
|
|
51813
51819
|
holeDiameter?: string | number | undefined;
|
|
51820
|
+
padDiameter?: string | number | undefined;
|
|
51814
51821
|
padShape?: "circle" | "rect" | undefined;
|
|
51815
51822
|
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
51816
|
-
padDiameter?: string | number | undefined;
|
|
51817
51823
|
}>, {
|
|
51818
51824
|
name: string;
|
|
51819
51825
|
padShape: "circle" | "rect";
|
|
@@ -52012,8 +52018,8 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
|
52012
52018
|
pin1: string | readonly string[] | string[];
|
|
52013
52019
|
} | undefined;
|
|
52014
52020
|
holeDiameter?: number | undefined;
|
|
52015
|
-
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
52016
52021
|
padDiameter?: number | undefined;
|
|
52022
|
+
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
52017
52023
|
}, {
|
|
52018
52024
|
name: string;
|
|
52019
52025
|
symbol?: SymbolProp | undefined;
|
|
@@ -52213,9 +52219,9 @@ declare const testpointProps: z.ZodEffects<z.ZodObject<{
|
|
|
52213
52219
|
pin1: string | readonly string[] | string[];
|
|
52214
52220
|
} | undefined;
|
|
52215
52221
|
holeDiameter?: string | number | undefined;
|
|
52222
|
+
padDiameter?: string | number | undefined;
|
|
52216
52223
|
padShape?: "circle" | "rect" | undefined;
|
|
52217
52224
|
footprintVariant?: "pad" | "through_hole" | undefined;
|
|
52218
|
-
padDiameter?: string | number | undefined;
|
|
52219
52225
|
}>;
|
|
52220
52226
|
type InferredTestpointProps = z.input<typeof testpointProps>;
|
|
52221
52227
|
|
|
@@ -55201,7 +55207,8 @@ declare const voltageSourcePins: readonly ["pin1", "left", "anode", "pos", "pin2
|
|
|
55201
55207
|
|
|
55202
55208
|
interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
|
|
55203
55209
|
name?: string;
|
|
55204
|
-
connectsTo: string
|
|
55210
|
+
connectsTo: string;
|
|
55211
|
+
referenceTo?: string;
|
|
55205
55212
|
color?: string;
|
|
55206
55213
|
}
|
|
55207
55214
|
declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
@@ -55892,10 +55899,11 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
55892
55899
|
}>>>;
|
|
55893
55900
|
}, "name"> & {
|
|
55894
55901
|
name: z.ZodOptional<z.ZodString>;
|
|
55895
|
-
connectsTo: z.
|
|
55902
|
+
connectsTo: z.ZodString;
|
|
55903
|
+
referenceTo: z.ZodOptional<z.ZodString>;
|
|
55896
55904
|
color: z.ZodOptional<z.ZodString>;
|
|
55897
55905
|
}, "strip", z.ZodTypeAny, {
|
|
55898
|
-
connectsTo: string
|
|
55906
|
+
connectsTo: string;
|
|
55899
55907
|
symbol?: SymbolProp | undefined;
|
|
55900
55908
|
key?: any;
|
|
55901
55909
|
pcbX?: number | undefined;
|
|
@@ -56087,8 +56095,9 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
56087
56095
|
doNotPlace?: boolean | undefined;
|
|
56088
56096
|
obstructsWithinBounds?: boolean | undefined;
|
|
56089
56097
|
color?: string | undefined;
|
|
56098
|
+
referenceTo?: string | undefined;
|
|
56090
56099
|
}, {
|
|
56091
|
-
connectsTo: string
|
|
56100
|
+
connectsTo: string;
|
|
56092
56101
|
symbol?: SymbolProp | undefined;
|
|
56093
56102
|
key?: any;
|
|
56094
56103
|
pcbX?: string | number | undefined;
|
|
@@ -56282,6 +56291,7 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
56282
56291
|
doNotPlace?: boolean | undefined;
|
|
56283
56292
|
obstructsWithinBounds?: boolean | undefined;
|
|
56284
56293
|
color?: string | undefined;
|
|
56294
|
+
referenceTo?: string | undefined;
|
|
56285
56295
|
}>;
|
|
56286
56296
|
|
|
56287
56297
|
declare const schematicArcProps: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -874,6 +874,7 @@ var platedHoleProps = z37.discriminatedUnion("shape", [
|
|
|
874
874
|
shape: z37.literal("circle"),
|
|
875
875
|
holeDiameter: distance12,
|
|
876
876
|
outerDiameter: distance12,
|
|
877
|
+
padDiameter: distance12.optional().describe("Diameter of the copper pad"),
|
|
877
878
|
portHints: portHints.optional(),
|
|
878
879
|
solderMaskMargin: distance12.optional(),
|
|
879
880
|
coveredWithSolderMask: z37.boolean().optional()
|
|
@@ -1890,7 +1891,8 @@ expectTypesMatch(true);
|
|
|
1890
1891
|
import { z as z82 } from "zod";
|
|
1891
1892
|
var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
|
|
1892
1893
|
name: z82.string().optional(),
|
|
1893
|
-
connectsTo: z82.string()
|
|
1894
|
+
connectsTo: z82.string(),
|
|
1895
|
+
referenceTo: z82.string().optional(),
|
|
1894
1896
|
color: z82.string().optional()
|
|
1895
1897
|
});
|
|
1896
1898
|
expectTypesMatch(true);
|