@tscircuit/props 0.0.247 → 0.0.249

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.
@@ -143,9 +143,16 @@ export interface AutorouterConfig {
143
143
  serverMode?: "job" | "solve-endpoint"
144
144
  serverCacheEnabled?: boolean
145
145
  cache?: PcbRouteCache
146
+ traceClearance?: Distance
146
147
  groupMode?: "sequential-trace" | "subcircuit"
147
148
  local?: boolean
148
149
  algorithmFn?: (simpleRouteJson: any) => Promise<any>
150
+ preset?:
151
+ | "sequential-trace"
152
+ | "subcircuit"
153
+ | "auto"
154
+ | "auto-local"
155
+ | "auto-cloud"
149
156
  }
150
157
 
151
158
  export type AutorouterProp =
@@ -162,12 +169,22 @@ export const autorouterConfig = z.object({
162
169
  serverMode: z.enum(["job", "solve-endpoint"]).optional(),
163
170
  serverCacheEnabled: z.boolean().optional(),
164
171
  cache: z.custom<PcbRouteCache>((v) => true).optional(),
172
+ traceClearance: length.optional(),
165
173
  groupMode: z.enum(["sequential-trace", "subcircuit"]).optional(),
166
174
  algorithmFn: z
167
175
  .custom<(simpleRouteJson: any) => Promise<any>>(
168
176
  (v) => typeof v === "function" || v === undefined,
169
177
  )
170
178
  .optional(),
179
+ preset: z
180
+ .enum([
181
+ "sequential-trace",
182
+ "subcircuit",
183
+ "auto",
184
+ "auto-local",
185
+ "auto-cloud",
186
+ ])
187
+ .optional(),
171
188
  local: z.boolean().optional(),
172
189
  })
173
190
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tscircuit/props",
3
- "version": "0.0.247",
3
+ "version": "0.0.249",
4
4
  "description": "Props for tscircuit builtin component types",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",