@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.
@@ -16,8 +16,8 @@ export interface AmmeterProps<PinLabel extends string = string>
16
16
  color?: string
17
17
  graphDisplayName?: string
18
18
  graphCenter?: number
19
- graphOffsetDivs?: number
20
- graphUnitsPerDiv?: number
19
+ graphVerticalOffset?: number | string
20
+ graphCurrentPerDiv?: number | string
21
21
  }
22
22
 
23
23
  const hasAmmeterConnectionPair = (
@@ -37,8 +37,8 @@ export const ammeterProps = commonComponentProps.extend({
37
37
  color: z.string().optional(),
38
38
  graphDisplayName: z.string().optional(),
39
39
  graphCenter: z.number().optional(),
40
- graphOffsetDivs: z.number().optional(),
41
- graphUnitsPerDiv: z.number().optional(),
40
+ graphVerticalOffset: z.number().or(z.string()).optional(),
41
+ graphCurrentPerDiv: z.number().or(z.string()).optional(),
42
42
  })
43
43
 
44
44
  export const ammeterPins = ammeterPinLabels
@@ -11,6 +11,7 @@ export interface AnalogSimulationProps {
11
11
  timePerStep?: number | string
12
12
  spiceEngine?: AutocompleteString<"spicey" | "ngspice">
13
13
  spiceOptions?: SpiceOptions
14
+ graphIndependentAxes?: boolean
14
15
  }
15
16
 
16
17
  const spiceEngine = z.custom<AutocompleteString<"spicey" | "ngspice">>(
@@ -41,6 +42,7 @@ export const analogSimulationProps = z.object({
41
42
  timePerStep: ms.optional(),
42
43
  spiceEngine: spiceEngine.optional(),
43
44
  spiceOptions: spiceOptions.optional(),
45
+ graphIndependentAxes: z.boolean().optional(),
44
46
  })
45
47
 
46
48
  expectTypesMatch<AnalogSimulationProps, z.input<typeof analogSimulationProps>>(
@@ -12,8 +12,8 @@ export interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
12
12
  color?: string
13
13
  graphDisplayName?: string
14
14
  graphCenter?: number
15
- graphOffsetDivs?: number
16
- graphUnitsPerDiv?: number
15
+ graphVerticalOffset?: number | string
16
+ graphVoltagePerDiv?: number | string
17
17
  }
18
18
 
19
19
  export const voltageProbeProps = commonComponentProps
@@ -25,8 +25,8 @@ export const voltageProbeProps = commonComponentProps
25
25
  color: z.string().optional(),
26
26
  graphDisplayName: z.string().optional(),
27
27
  graphCenter: z.number().optional(),
28
- graphOffsetDivs: z.number().optional(),
29
- graphUnitsPerDiv: z.number().optional(),
28
+ graphVerticalOffset: z.number().or(z.string()).optional(),
29
+ graphVoltagePerDiv: z.number().or(z.string()).optional(),
30
30
  })
31
31
 
32
32
  expectTypesMatch<VoltageProbeProps, z.input<typeof voltageProbeProps>>(true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.563",
3
+ "version": "0.0.565",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",