@tscircuit/props 0.0.563 → 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 +7 -16
- package/dist/index.d.ts +20 -16
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/lib/components/ammeter.ts +4 -4
- package/lib/components/analogsimulation.ts +2 -0
- package/lib/components/voltageprobe.ts +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -219,8 +219,8 @@ export interface AmmeterProps<
|
|
|
219
219
|
color?: string;
|
|
220
220
|
graphDisplayName?: string;
|
|
221
221
|
graphCenter?: number;
|
|
222
|
-
|
|
223
|
-
|
|
222
|
+
graphVerticalOffset?: number | string;
|
|
223
|
+
graphCurrentPerDiv?: number | string;
|
|
224
224
|
}
|
|
225
225
|
```
|
|
226
226
|
|
|
@@ -237,6 +237,7 @@ export interface AnalogSimulationProps {
|
|
|
237
237
|
timePerStep?: number | string;
|
|
238
238
|
spiceEngine?: AutocompleteString<"spicey" | "ngspice">;
|
|
239
239
|
spiceOptions?: SpiceOptions;
|
|
240
|
+
graphIndependentAxes?: boolean;
|
|
240
241
|
}
|
|
241
242
|
```
|
|
242
243
|
|
|
@@ -696,11 +697,7 @@ export type FabricationNoteRectProps = z.input<typeof fabricationNoteRectProps>;
|
|
|
696
697
|
export interface FabricationNoteTextProps extends PcbLayoutProps {
|
|
697
698
|
text: string;
|
|
698
699
|
anchorAlignment?:
|
|
699
|
-
| "
|
|
700
|
-
| "top_left"
|
|
701
|
-
| "top_right"
|
|
702
|
-
| "bottom_left"
|
|
703
|
-
| "bottom_right";
|
|
700
|
+
"center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
704
701
|
font?: "tscircuit2024";
|
|
705
702
|
fontSize?: string | number;
|
|
706
703
|
color?: string;
|
|
@@ -1259,11 +1256,7 @@ export interface PcbNoteRectProps extends Omit<PcbLayoutProps, "pcbRotation"> {
|
|
|
1259
1256
|
export interface PcbNoteTextProps extends PcbLayoutProps {
|
|
1260
1257
|
text: string;
|
|
1261
1258
|
anchorAlignment?:
|
|
1262
|
-
| "
|
|
1263
|
-
| "top_left"
|
|
1264
|
-
| "top_right"
|
|
1265
|
-
| "bottom_left"
|
|
1266
|
-
| "bottom_right";
|
|
1259
|
+
"center" | "top_left" | "top_right" | "bottom_left" | "bottom_right";
|
|
1267
1260
|
font?: "tscircuit2024";
|
|
1268
1261
|
fontSize?: string | number;
|
|
1269
1262
|
color?: string;
|
|
@@ -1989,8 +1982,8 @@ export interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
|
|
|
1989
1982
|
color?: string;
|
|
1990
1983
|
graphDisplayName?: string;
|
|
1991
1984
|
graphCenter?: number;
|
|
1992
|
-
|
|
1993
|
-
|
|
1985
|
+
graphVerticalOffset?: number | string;
|
|
1986
|
+
graphVoltagePerDiv?: number | string;
|
|
1994
1987
|
}
|
|
1995
1988
|
```
|
|
1996
1989
|
|
|
@@ -2096,7 +2089,6 @@ export interface PlatformConfig {
|
|
|
2096
2089
|
```
|
|
2097
2090
|
|
|
2098
2091
|
[Source](https://github.com/tscircuit/props/blob/main/lib/platformConfig.ts)
|
|
2099
|
-
|
|
2100
2092
|
<!-- PLATFORM_CONFIG_END -->
|
|
2101
2093
|
|
|
2102
2094
|
<!-- PROJECT_CONFIG_START -->
|
|
@@ -2120,5 +2112,4 @@ export interface ProjectConfig extends Pick<
|
|
|
2120
2112
|
```
|
|
2121
2113
|
|
|
2122
2114
|
[Source](https://github.com/tscircuit/props/blob/main/lib/projectConfig.ts)
|
|
2123
|
-
|
|
2124
2115
|
<!-- PROJECT_CONFIG_END -->
|
package/dist/index.d.ts
CHANGED
|
@@ -121936,6 +121936,7 @@ interface AnalogSimulationProps {
|
|
|
121936
121936
|
timePerStep?: number | string;
|
|
121937
121937
|
spiceEngine?: AutocompleteString<"spicey" | "ngspice">;
|
|
121938
121938
|
spiceOptions?: SpiceOptions;
|
|
121939
|
+
graphIndependentAxes?: boolean;
|
|
121939
121940
|
}
|
|
121940
121941
|
interface SpiceOptions {
|
|
121941
121942
|
method?: "trap" | "gear";
|
|
@@ -121966,6 +121967,7 @@ declare const analogSimulationProps: z.ZodObject<{
|
|
|
121966
121967
|
abstol?: string | number | undefined;
|
|
121967
121968
|
vntol?: string | number | undefined;
|
|
121968
121969
|
}>>;
|
|
121970
|
+
graphIndependentAxes: z.ZodOptional<z.ZodBoolean>;
|
|
121969
121971
|
}, "strip", z.ZodTypeAny, {
|
|
121970
121972
|
simulationType: "spice_transient_analysis";
|
|
121971
121973
|
name?: string | undefined;
|
|
@@ -121979,6 +121981,7 @@ declare const analogSimulationProps: z.ZodObject<{
|
|
|
121979
121981
|
abstol?: string | number | undefined;
|
|
121980
121982
|
vntol?: string | number | undefined;
|
|
121981
121983
|
} | undefined;
|
|
121984
|
+
graphIndependentAxes?: boolean | undefined;
|
|
121982
121985
|
}, {
|
|
121983
121986
|
name?: string | undefined;
|
|
121984
121987
|
duration?: string | number | undefined;
|
|
@@ -121992,6 +121995,7 @@ declare const analogSimulationProps: z.ZodObject<{
|
|
|
121992
121995
|
abstol?: string | number | undefined;
|
|
121993
121996
|
vntol?: string | number | undefined;
|
|
121994
121997
|
} | undefined;
|
|
121998
|
+
graphIndependentAxes?: boolean | undefined;
|
|
121995
121999
|
}>;
|
|
121996
122000
|
|
|
121997
122001
|
interface AutoroutingPhaseProps extends RoutingTolerances {
|
|
@@ -178638,8 +178642,8 @@ interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
|
|
|
178638
178642
|
color?: string;
|
|
178639
178643
|
graphDisplayName?: string;
|
|
178640
178644
|
graphCenter?: number;
|
|
178641
|
-
|
|
178642
|
-
|
|
178645
|
+
graphVerticalOffset?: number | string;
|
|
178646
|
+
graphVoltagePerDiv?: number | string;
|
|
178643
178647
|
}
|
|
178644
178648
|
declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
178645
178649
|
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
@@ -182007,8 +182011,8 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
182007
182011
|
color: z.ZodOptional<z.ZodString>;
|
|
182008
182012
|
graphDisplayName: z.ZodOptional<z.ZodString>;
|
|
182009
182013
|
graphCenter: z.ZodOptional<z.ZodNumber>;
|
|
182010
|
-
|
|
182011
|
-
|
|
182014
|
+
graphVerticalOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
182015
|
+
graphVoltagePerDiv: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
182012
182016
|
}, "strip", z.ZodTypeAny, {
|
|
182013
182017
|
connectsTo: string;
|
|
182014
182018
|
symbol?: SymbolProp | undefined;
|
|
@@ -182592,8 +182596,8 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
182592
182596
|
referenceTo?: string | undefined;
|
|
182593
182597
|
graphDisplayName?: string | undefined;
|
|
182594
182598
|
graphCenter?: number | undefined;
|
|
182595
|
-
|
|
182596
|
-
|
|
182599
|
+
graphVerticalOffset?: string | number | undefined;
|
|
182600
|
+
graphVoltagePerDiv?: string | number | undefined;
|
|
182597
182601
|
}, {
|
|
182598
182602
|
connectsTo: string;
|
|
182599
182603
|
symbol?: SymbolProp | undefined;
|
|
@@ -183179,8 +183183,8 @@ declare const voltageProbeProps: z.ZodObject<Omit<{
|
|
|
183179
183183
|
referenceTo?: string | undefined;
|
|
183180
183184
|
graphDisplayName?: string | undefined;
|
|
183181
183185
|
graphCenter?: number | undefined;
|
|
183182
|
-
|
|
183183
|
-
|
|
183186
|
+
graphVerticalOffset?: string | number | undefined;
|
|
183187
|
+
graphVoltagePerDiv?: string | number | undefined;
|
|
183184
183188
|
}>;
|
|
183185
183189
|
|
|
183186
183190
|
declare const ammeterPinLabels: readonly ["pin1", "pin2", "pos", "neg"];
|
|
@@ -183190,8 +183194,8 @@ interface AmmeterProps<PinLabel extends string = string> extends CommonComponent
|
|
|
183190
183194
|
color?: string;
|
|
183191
183195
|
graphDisplayName?: string;
|
|
183192
183196
|
graphCenter?: number;
|
|
183193
|
-
|
|
183194
|
-
|
|
183197
|
+
graphVerticalOffset?: number | string;
|
|
183198
|
+
graphCurrentPerDiv?: number | string;
|
|
183195
183199
|
}
|
|
183196
183200
|
declare const ammeterProps: z.ZodObject<{
|
|
183197
183201
|
pcbX: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>]>>;
|
|
@@ -186557,8 +186561,8 @@ declare const ammeterProps: z.ZodObject<{
|
|
|
186557
186561
|
color: z.ZodOptional<z.ZodString>;
|
|
186558
186562
|
graphDisplayName: z.ZodOptional<z.ZodString>;
|
|
186559
186563
|
graphCenter: z.ZodOptional<z.ZodNumber>;
|
|
186560
|
-
|
|
186561
|
-
|
|
186564
|
+
graphVerticalOffset: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
186565
|
+
graphCurrentPerDiv: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
186562
186566
|
}, "strip", z.ZodTypeAny, {
|
|
186563
186567
|
name: string;
|
|
186564
186568
|
connections: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>>;
|
|
@@ -187141,8 +187145,8 @@ declare const ammeterProps: z.ZodObject<{
|
|
|
187141
187145
|
color?: string | undefined;
|
|
187142
187146
|
graphDisplayName?: string | undefined;
|
|
187143
187147
|
graphCenter?: number | undefined;
|
|
187144
|
-
|
|
187145
|
-
|
|
187148
|
+
graphVerticalOffset?: string | number | undefined;
|
|
187149
|
+
graphCurrentPerDiv?: string | number | undefined;
|
|
187146
187150
|
}, {
|
|
187147
187151
|
name: string;
|
|
187148
187152
|
connections: Partial<Record<"pin1" | "pin2" | "pos" | "neg", string | readonly string[] | string[]>>;
|
|
@@ -187727,8 +187731,8 @@ declare const ammeterProps: z.ZodObject<{
|
|
|
187727
187731
|
color?: string | undefined;
|
|
187728
187732
|
graphDisplayName?: string | undefined;
|
|
187729
187733
|
graphCenter?: number | undefined;
|
|
187730
|
-
|
|
187731
|
-
|
|
187734
|
+
graphVerticalOffset?: string | number | undefined;
|
|
187735
|
+
graphCurrentPerDiv?: string | number | undefined;
|
|
187732
187736
|
}>;
|
|
187733
187737
|
declare const ammeterPins: readonly ["pin1", "pin2", "pos", "neg"];
|
|
187734
187738
|
|
package/dist/index.js
CHANGED
|
@@ -17415,7 +17415,8 @@ var analogSimulationProps = z74.object({
|
|
|
17415
17415
|
startTime: ms.optional(),
|
|
17416
17416
|
timePerStep: ms.optional(),
|
|
17417
17417
|
spiceEngine: spiceEngine.optional(),
|
|
17418
|
-
spiceOptions: spiceOptions.optional()
|
|
17418
|
+
spiceOptions: spiceOptions.optional(),
|
|
17419
|
+
graphIndependentAxes: z74.boolean().optional()
|
|
17419
17420
|
});
|
|
17420
17421
|
expectTypesMatch(
|
|
17421
17422
|
true
|
|
@@ -17991,8 +17992,8 @@ var voltageProbeProps = commonComponentProps.omit({ name: true }).extend({
|
|
|
17991
17992
|
color: z102.string().optional(),
|
|
17992
17993
|
graphDisplayName: z102.string().optional(),
|
|
17993
17994
|
graphCenter: z102.number().optional(),
|
|
17994
|
-
|
|
17995
|
-
|
|
17995
|
+
graphVerticalOffset: z102.number().or(z102.string()).optional(),
|
|
17996
|
+
graphVoltagePerDiv: z102.number().or(z102.string()).optional()
|
|
17996
17997
|
});
|
|
17997
17998
|
expectTypesMatch(true);
|
|
17998
17999
|
|
|
@@ -18010,8 +18011,8 @@ var ammeterProps = commonComponentProps.extend({
|
|
|
18010
18011
|
color: z103.string().optional(),
|
|
18011
18012
|
graphDisplayName: z103.string().optional(),
|
|
18012
18013
|
graphCenter: z103.number().optional(),
|
|
18013
|
-
|
|
18014
|
-
|
|
18014
|
+
graphVerticalOffset: z103.number().or(z103.string()).optional(),
|
|
18015
|
+
graphCurrentPerDiv: z103.number().or(z103.string()).optional()
|
|
18015
18016
|
});
|
|
18016
18017
|
var ammeterPins = ammeterPinLabels;
|
|
18017
18018
|
expectTypesMatch(true);
|