@tscircuit/props 0.0.547 → 0.0.548

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.
@@ -10,6 +10,15 @@ export interface VoltageProbeProps extends Omit<CommonComponentProps, "name"> {
10
10
  connectsTo: string
11
11
  referenceTo?: string
12
12
  color?: string
13
+ display?: VoltageProbeDisplayOptions
14
+ }
15
+
16
+ export interface VoltageProbeDisplayOptions {
17
+ label?: string
18
+ center?: number
19
+ offsetDivs?: number
20
+ unitsPerDiv?: number
21
+ color?: string
13
22
  }
14
23
 
15
24
  export const voltageProbeProps = commonComponentProps
@@ -19,6 +28,15 @@ export const voltageProbeProps = commonComponentProps
19
28
  connectsTo: z.string(),
20
29
  referenceTo: z.string().optional(),
21
30
  color: z.string().optional(),
31
+ display: z
32
+ .object({
33
+ label: z.string().optional(),
34
+ center: z.number().optional(),
35
+ offsetDivs: z.number().optional(),
36
+ unitsPerDiv: z.number().optional(),
37
+ color: z.string().optional(),
38
+ })
39
+ .optional(),
22
40
  })
23
41
 
24
42
  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.547",
3
+ "version": "0.0.548",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",