@tscircuit/props 0.0.594 → 0.0.595

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.
@@ -2,10 +2,20 @@ import { distance } from "circuit-json"
2
2
  import type { Distance } from "lib/common/distance"
3
3
  import { expectTypesMatch } from "lib/typecheck"
4
4
  import { z } from "zod"
5
- import { subcircuitGroupProps, type SubcircuitGroupProps } from "./group"
5
+ import {
6
+ autorouterProp,
7
+ subcircuitGroupProps,
8
+ type AutorouterProp,
9
+ type SubcircuitGroupProps,
10
+ } from "./group"
6
11
 
7
12
  export interface BreakoutProps
8
13
  extends Omit<SubcircuitGroupProps, "subcircuit"> {
14
+ /**
15
+ * Autorouter used to escape the components inside the breakout boundary.
16
+ * Defaults to the multilayer fanout autorouter.
17
+ */
18
+ autorouter?: AutorouterProp
9
19
  padding?: Distance
10
20
  paddingLeft?: Distance
11
21
  paddingRight?: Distance
@@ -14,6 +24,7 @@ export interface BreakoutProps
14
24
  }
15
25
 
16
26
  export const breakoutProps = subcircuitGroupProps.extend({
27
+ autorouter: autorouterProp.default("fanout"),
17
28
  padding: distance.optional(),
18
29
  paddingLeft: distance.optional(),
19
30
  paddingRight: distance.optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.594",
3
+ "version": "0.0.595",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",