@tscircuit/props 0.0.547 → 0.0.549

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,14 @@ 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
13
21
  }
14
22
 
15
23
  export const voltageProbeProps = commonComponentProps
@@ -19,6 +27,14 @@ export const voltageProbeProps = commonComponentProps
19
27
  connectsTo: z.string(),
20
28
  referenceTo: z.string().optional(),
21
29
  color: z.string().optional(),
30
+ display: z
31
+ .object({
32
+ label: z.string().optional(),
33
+ center: z.number().optional(),
34
+ offsetDivs: z.number().optional(),
35
+ unitsPerDiv: z.number().optional(),
36
+ })
37
+ .optional(),
22
38
  })
23
39
 
24
40
  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.549",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",