@tscircuit/props 0.0.531 → 0.0.533

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.
@@ -1,4 +1,6 @@
1
+ import { distance } from "circuit-json"
1
2
  import { z } from "zod"
3
+ import type { Distance } from "lib/common/distance"
2
4
  import { expectTypesMatch } from "lib/typecheck"
3
5
 
4
6
  export interface NetProps {
@@ -8,6 +10,7 @@ export interface NetProps {
8
10
  highlightColor?: string
9
11
  isPowerNet?: boolean
10
12
  isGroundNet?: boolean
13
+ nominalTraceWidth?: Distance
11
14
  }
12
15
 
13
16
  export const netProps = z.object({
@@ -17,6 +20,7 @@ export const netProps = z.object({
17
20
  highlightColor: z.string().optional(),
18
21
  isPowerNet: z.boolean().optional(),
19
22
  isGroundNet: z.boolean().optional(),
23
+ nominalTraceWidth: distance.optional(),
20
24
  })
21
25
 
22
26
  type InferredNetProps = z.input<typeof netProps>
@@ -5,8 +5,9 @@ import { z } from "zod"
5
5
 
6
6
  export interface ViaProps extends CommonLayoutProps {
7
7
  name?: string
8
- fromLayer: LayerRefInput
9
- toLayer: LayerRefInput
8
+ fromLayer?: LayerRefInput
9
+ toLayer?: LayerRefInput
10
+ layers?: LayerRefInput[]
10
11
  holeDiameter?: number | string
11
12
  outerDiameter?: number | string
12
13
  connectsTo?: string | string[]
@@ -15,10 +16,11 @@ export interface ViaProps extends CommonLayoutProps {
15
16
 
16
17
  export const viaProps = commonLayoutProps.extend({
17
18
  name: z.string().optional(),
18
- fromLayer: layer_ref,
19
- toLayer: layer_ref,
19
+ fromLayer: layer_ref.optional(),
20
+ toLayer: layer_ref.optional(),
20
21
  holeDiameter: distance.optional(),
21
22
  outerDiameter: distance.optional(),
23
+ layers: z.array(layer_ref).optional(),
22
24
  connectsTo: z.string().or(z.array(z.string())).optional(),
23
25
  netIsAssignable: z.boolean().optional(),
24
26
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.531",
3
+ "version": "0.0.533",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",