@tscircuit/props 0.0.674 → 0.0.676
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 +12 -5
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/lib/components/group.ts +13 -0
- package/package.json +1 -1
package/lib/components/group.ts
CHANGED
|
@@ -351,6 +351,11 @@ export interface AutorouterConfig {
|
|
|
351
351
|
algorithmFn?: (simpleRouteJson: any) => Promise<any>
|
|
352
352
|
/** Override the solver used to place implicit breakout points. */
|
|
353
353
|
implicitBreakoutPointSolverFn?: ImplicitBreakoutPointSolverFn
|
|
354
|
+
/**
|
|
355
|
+
* single_layer_routing is an alias that parses as bus_lanes.
|
|
356
|
+
* Replaces single_layer_bus and single_layer_buses. Omitted leaves the preset
|
|
357
|
+
* unset; other presets remain unchanged and no conflicting fields are introduced.
|
|
358
|
+
*/
|
|
354
359
|
preset?:
|
|
355
360
|
| /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential_trace"
|
|
356
361
|
| "subcircuit"
|
|
@@ -368,6 +373,7 @@ export interface AutorouterConfig {
|
|
|
368
373
|
| "fanout"
|
|
369
374
|
| "dogbone"
|
|
370
375
|
| "bus_lanes"
|
|
376
|
+
| "single_layer_routing"
|
|
371
377
|
| /** @deprecated Use "auto_jumper" */ "auto-jumper"
|
|
372
378
|
| /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace"
|
|
373
379
|
| /** @deprecated Use "auto_local" */ "auto-local"
|
|
@@ -392,6 +398,8 @@ export type AutorouterPreset =
|
|
|
392
398
|
/** Local pad-to-via fanout without routing to a breakout boundary. */
|
|
393
399
|
| "dogbone"
|
|
394
400
|
| "bus_lanes"
|
|
401
|
+
/** Alias for bus_lanes; parsing normalizes to bus_lanes. */
|
|
402
|
+
| "single_layer_routing"
|
|
395
403
|
| "auto-jumper"
|
|
396
404
|
| /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace"
|
|
397
405
|
| "auto-local"
|
|
@@ -467,11 +475,15 @@ export const autorouterConfig = z.object({
|
|
|
467
475
|
"fanout",
|
|
468
476
|
"dogbone",
|
|
469
477
|
"bus_lanes",
|
|
478
|
+
"single_layer_routing",
|
|
470
479
|
"auto-jumper",
|
|
471
480
|
"sequential-trace",
|
|
472
481
|
"auto-local",
|
|
473
482
|
"auto-cloud",
|
|
474
483
|
])
|
|
484
|
+
.transform((preset) =>
|
|
485
|
+
preset === "single_layer_routing" ? "bus_lanes" : preset,
|
|
486
|
+
)
|
|
475
487
|
.optional(),
|
|
476
488
|
local: z.boolean().optional(),
|
|
477
489
|
})
|
|
@@ -493,6 +505,7 @@ export const autorouterPreset = z.union([
|
|
|
493
505
|
z.literal("fanout"),
|
|
494
506
|
z.literal("dogbone"),
|
|
495
507
|
z.literal("bus_lanes"),
|
|
508
|
+
z.literal("single_layer_routing").transform(() => "bus_lanes" as const),
|
|
496
509
|
z.literal("auto-jumper"),
|
|
497
510
|
z.literal("sequential-trace"),
|
|
498
511
|
z.literal("auto-local"),
|