@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.
- package/dist/index.d.ts +84 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +17 -0
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -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
|
|