@tscircuit/props 0.0.564 → 0.0.565
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 +6 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/lib/components/ammeter.ts +6 -0
- package/lib/components/voltageprobe.ts +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -218,6 +218,9 @@ export interface AmmeterProps<
|
|
|
218
218
|
connections: Connections<AmmeterPinLabels>;
|
|
219
219
|
color?: string;
|
|
220
220
|
graphDisplayName?: string;
|
|
221
|
+
graphCenter?: number;
|
|
222
|
+
graphVerticalOffset?: number | string;
|
|
223
|
+
graphCurrentPerDiv?: number | string;
|
|
221
224
|
}
|
|
222
225
|
```
|
|
223
226
|
|
|
@@ -1978,6 +1981,9 @@ export interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
|
|
|
1978
1981
|
referenceTo?: string;
|
|
1979
1982
|
color?: string;
|
|
1980
1983
|
graphDisplayName?: string;
|
|
1984
|
+
graphCenter?: number;
|
|
1985
|
+
graphVerticalOffset?: number | string;
|
|
1986
|
+
graphVoltagePerDiv?: number | string;
|
|
1981
1987
|
}
|
|
1982
1988
|
```
|
|
1983
1989
|
|
package/dist/index.d.ts
CHANGED
|
@@ -178641,6 +178641,9 @@ interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
|
|
|
178641
178641
|
referenceTo?: string;
|
|
178642
178642
|
color?: string;
|
|
178643
178643
|
graphDisplayName?: string;
|
|
178644
|
+
graphCenter?: number;
|
|
178645
|
+
graphVerticalOffset?: number | string;
|
|
178646
|
+
graphVoltagePerDiv?: number | string;
|
|
178644
178647
|
}
|
|
178645
178648
|
declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
178646
178649
|
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
@@ -182007,6 +182010,9 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
182007
182010
|
referenceTo: z.ZodOptional<z.ZodString>;
|
|
182008
182011
|
color: z.ZodOptional<z.ZodString>;
|
|
182009
182012
|
graphDisplayName: z.ZodOptional<z.ZodString>;
|
|
182013
|
+
graphCenter: z.ZodOptional<z.ZodNumber>;
|
|
182014
|
+
graphVerticalOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
182015
|
+
graphVoltagePerDiv: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
182010
182016
|
}, "strip", z.ZodTypeAny, {
|
|
182011
182017
|
connectsTo: string;
|
|
182012
182018
|
symbol?: SymbolProp | undefined;
|
|
@@ -182589,6 +182595,9 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
182589
182595
|
color?: string | undefined;
|
|
182590
182596
|
referenceTo?: string | undefined;
|
|
182591
182597
|
graphDisplayName?: string | undefined;
|
|
182598
|
+
graphCenter?: number | undefined;
|
|
182599
|
+
graphVerticalOffset?: string | number | undefined;
|
|
182600
|
+
graphVoltagePerDiv?: string | number | undefined;
|
|
182592
182601
|
}, {
|
|
182593
182602
|
connectsTo: string;
|
|
182594
182603
|
symbol?: SymbolProp | undefined;
|
|
@@ -183173,6 +183182,9 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
183173
183182
|
color?: string | undefined;
|
|
183174
183183
|
referenceTo?: string | undefined;
|
|
183175
183184
|
graphDisplayName?: string | undefined;
|
|
183185
|
+
graphCenter?: number | undefined;
|
|
183186
|
+
graphVerticalOffset?: string | number | undefined;
|
|
183187
|
+
graphVoltagePerDiv?: string | number | undefined;
|
|
183176
183188
|
}>;
|
|
183177
183189
|
|
|
183178
183190
|
declare const ammeterPinLabels: readonly ["pin1", "pin2", "pos", "neg"];
|
|
@@ -183181,6 +183193,9 @@ interface AmmeterProps<PinLabel extends string = string> extends CommonComponent
|
|
|
183181
183193
|
connections: Connections<AmmeterPinLabels>;
|
|
183182
183194
|
color?: string;
|
|
183183
183195
|
graphDisplayName?: string;
|
|
183196
|
+
graphCenter?: number;
|
|
183197
|
+
graphVerticalOffset?: number | string;
|
|
183198
|
+
graphCurrentPerDiv?: number | string;
|
|
183184
183199
|
}
|
|
183185
183200
|
declare const ammeterProps: z.ZodObject<{
|
|
183186
183201
|
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
@@ -186545,6 +186560,9 @@ declare const ammeterProps: z.ZodObject<{
|
|
|
186545
186560
|
connections: z.ZodEffects<z.ZodRecord<z.ZodEnum<["pin1", "pin2", "pos", "neg"]>, z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodString, "many">>]>, z.ZodArray<z.ZodString, "many">]>>, Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>>, Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>>>;
|
|
186546
186561
|
color: z.ZodOptional<z.ZodString>;
|
|
186547
186562
|
graphDisplayName: z.ZodOptional<z.ZodString>;
|
|
186563
|
+
graphCenter: z.ZodOptional<z.ZodNumber>;
|
|
186564
|
+
graphVerticalOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
186565
|
+
graphCurrentPerDiv: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
186548
186566
|
}, "strip", z.ZodTypeAny, {
|
|
186549
186567
|
name: string;
|
|
186550
186568
|
connections: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>>;
|
|
@@ -187126,6 +187144,9 @@ declare const ammeterProps: z.ZodObject<{
|
|
|
187126
187144
|
schSheetName?: string | undefined;
|
|
187127
187145
|
color?: string | undefined;
|
|
187128
187146
|
graphDisplayName?: string | undefined;
|
|
187147
|
+
graphCenter?: number | undefined;
|
|
187148
|
+
graphVerticalOffset?: string | number | undefined;
|
|
187149
|
+
graphCurrentPerDiv?: string | number | undefined;
|
|
187129
187150
|
}, {
|
|
187130
187151
|
name: string;
|
|
187131
187152
|
connections: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>>;
|
|
@@ -187709,6 +187730,9 @@ declare const ammeterProps: z.ZodObject<{
|
|
|
187709
187730
|
schSheetName?: string | undefined;
|
|
187710
187731
|
color?: string | undefined;
|
|
187711
187732
|
graphDisplayName?: string | undefined;
|
|
187733
|
+
graphCenter?: number | undefined;
|
|
187734
|
+
graphVerticalOffset?: string | number | undefined;
|
|
187735
|
+
graphCurrentPerDiv?: string | number | undefined;
|
|
187712
187736
|
}>;
|
|
187713
187737
|
declare const ammeterPins: readonly ["pin1", "pin2", "pos", "neg"];
|
|
187714
187738
|
|
package/dist/index.js
CHANGED
|
@@ -17990,7 +17990,10 @@ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
|
|
|
17990
17990
|
connectsTo: z102.string(),
|
|
17991
17991
|
referenceTo: z102.string().optional(),
|
|
17992
17992
|
color: z102.string().optional(),
|
|
17993
|
-
graphDisplayName: z102.string().optional()
|
|
17993
|
+
graphDisplayName: z102.string().optional(),
|
|
17994
|
+
graphCenter: z102.number().optional(),
|
|
17995
|
+
graphVerticalOffset: z102.number().or(z102.string()).optional(),
|
|
17996
|
+
graphVoltagePerDiv: z102.number().or(z102.string()).optional()
|
|
17994
17997
|
});
|
|
17995
17998
|
expectTypesMatch(true);
|
|
17996
17999
|
|
|
@@ -18006,7 +18009,10 @@ var ammeterProps = commonComponentProps.extend({
|
|
|
18006
18009
|
"Ammeter connections must include either pos/neg or pin1/pin2"
|
|
18007
18010
|
),
|
|
18008
18011
|
color: z103.string().optional(),
|
|
18009
|
-
graphDisplayName: z103.string().optional()
|
|
18012
|
+
graphDisplayName: z103.string().optional(),
|
|
18013
|
+
graphCenter: z103.number().optional(),
|
|
18014
|
+
graphVerticalOffset: z103.number().or(z103.string()).optional(),
|
|
18015
|
+
graphCurrentPerDiv: z103.number().or(z103.string()).optional()
|
|
18010
18016
|
});
|
|
18011
18017
|
var ammeterPins = ammeterPinLabels;
|
|
18012
18018
|
expectTypesMatch(true);
|