@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/dist/index.d.ts
CHANGED
|
@@ -33638,11 +33638,18 @@ interface AutorouterConfig {
|
|
|
33638
33638
|
algorithmFn?: (simpleRouteJson: any) => Promise<any>;
|
|
33639
33639
|
/** Override the solver used to place implicit breakout points. */
|
|
33640
33640
|
implicitBreakoutPointSolverFn?: ImplicitBreakoutPointSolverFn;
|
|
33641
|
-
|
|
33641
|
+
/**
|
|
33642
|
+
* single_layer_routing is an alias that parses as bus_lanes.
|
|
33643
|
+
* Replaces single_layer_bus and single_layer_buses. Omitted leaves the preset
|
|
33644
|
+
* unset; other presets remain unchanged and no conflicting fields are introduced.
|
|
33645
|
+
*/
|
|
33646
|
+
preset?: /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential_trace" | "subcircuit" | "default" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "single_layer_routing" | /** @deprecated Use "auto_jumper" */ "auto-jumper" | /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace" | /** @deprecated Use "auto_local" */ "auto-local" | /** @deprecated Use "auto_cloud" */ "auto-cloud";
|
|
33642
33647
|
}
|
|
33643
33648
|
type AutorouterPreset = /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential_trace" | "subcircuit" | "default" | "auto" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout"
|
|
33644
33649
|
/** Local pad-to-via fanout without routing to a breakout boundary. */
|
|
33645
|
-
| "dogbone" | "bus_lanes"
|
|
33650
|
+
| "dogbone" | "bus_lanes"
|
|
33651
|
+
/** Alias for bus_lanes; parsing normalizes to bus_lanes. */
|
|
33652
|
+
| "single_layer_routing" | "auto-jumper" | /** @deprecated Disabled by default in core. Use the default autorouter with <autoroutingphase /> or <fanout /> as needed. Legacy support requires platformConfig.allowLegacyAutorouters: true. */ "sequential-trace" | "auto-local" | "auto-cloud";
|
|
33646
33653
|
type AutorouterProp = AutorouterConfig | AutocompleteString<AutorouterPreset>;
|
|
33647
33654
|
declare const routingTolerances: z.ZodObject<{
|
|
33648
33655
|
minTraceWidth: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, number, string | number>>;
|
|
@@ -33690,7 +33697,7 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
33690
33697
|
groupMode: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "sequential-trace"]>>;
|
|
33691
33698
|
algorithmFn: z.ZodOptional<z.ZodType<(simpleRouteJson: any) => Promise<any>, z.ZodTypeDef, (simpleRouteJson: any) => Promise<any>>>;
|
|
33692
33699
|
implicitBreakoutPointSolverFn: z.ZodOptional<z.ZodType<ImplicitBreakoutPointSolverFn, z.ZodTypeDef, ImplicitBreakoutPointSolverFn>>;
|
|
33693
|
-
preset: z.ZodOptional<z.ZodEnum<["sequential_trace", "subcircuit", "default", "auto", "auto_local", "auto_cloud", "auto_jumper", "tscircuit_beta", "krt", "freerouting", "simplify", "laser_prefab", "single_layer_fanout", "fanout", "dogbone", "bus_lanes", "auto-jumper", "sequential-trace", "auto-local", "auto-cloud"]>>;
|
|
33700
|
+
preset: z.ZodOptional<z.ZodEffects<z.ZodEnum<["sequential_trace", "subcircuit", "default", "auto", "auto_local", "auto_cloud", "auto_jumper", "tscircuit_beta", "krt", "freerouting", "simplify", "laser_prefab", "single_layer_fanout", "fanout", "dogbone", "bus_lanes", "single_layer_routing", "auto-jumper", "sequential-trace", "auto-local", "auto-cloud"]>, "default" | "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "auto-jumper" | "auto-local" | "auto-cloud", "default" | "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "single_layer_routing" | "auto-jumper" | "auto-local" | "auto-cloud">>;
|
|
33694
33701
|
local: z.ZodOptional<z.ZodBoolean>;
|
|
33695
33702
|
}, "strip", z.ZodTypeAny, {
|
|
33696
33703
|
serverUrl?: string | undefined;
|
|
@@ -33718,10 +33725,10 @@ declare const autorouterConfig: z.ZodObject<{
|
|
|
33718
33725
|
groupMode?: "sequential_trace" | "subcircuit" | "sequential-trace" | undefined;
|
|
33719
33726
|
algorithmFn?: ((simpleRouteJson: any) => Promise<any>) | undefined;
|
|
33720
33727
|
implicitBreakoutPointSolverFn?: ImplicitBreakoutPointSolverFn | undefined;
|
|
33721
|
-
preset?: "default" | "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
|
|
33728
|
+
preset?: "default" | "auto" | "sequential_trace" | "subcircuit" | "sequential-trace" | "auto_local" | "auto_cloud" | "auto_jumper" | "tscircuit_beta" | "krt" | "freerouting" | "simplify" | "laser_prefab" | "single_layer_fanout" | "fanout" | "dogbone" | "bus_lanes" | "single_layer_routing" | "auto-jumper" | "auto-local" | "auto-cloud" | undefined;
|
|
33722
33729
|
local?: boolean | undefined;
|
|
33723
33730
|
}>;
|
|
33724
|
-
declare const autorouterPreset: z.ZodUnion<[z.ZodLiteral<"sequential_trace">, z.ZodLiteral<"subcircuit">, z.ZodLiteral<"default">, z.ZodLiteral<"auto">, z.ZodLiteral<"auto_local">, z.ZodLiteral<"auto_cloud">, z.ZodLiteral<"auto_jumper">, z.ZodLiteral<"tscircuit_beta">, z.ZodLiteral<"krt">, z.ZodLiteral<"freerouting">, z.ZodLiteral<"simplify">, z.ZodLiteral<"laser_prefab">, z.ZodLiteral<"single_layer_fanout">, z.ZodLiteral<"fanout">, z.ZodLiteral<"dogbone">, z.ZodLiteral<"bus_lanes">, z.ZodLiteral<"auto-jumper">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
|
|
33731
|
+
declare const autorouterPreset: z.ZodUnion<[z.ZodLiteral<"sequential_trace">, z.ZodLiteral<"subcircuit">, z.ZodLiteral<"default">, z.ZodLiteral<"auto">, z.ZodLiteral<"auto_local">, z.ZodLiteral<"auto_cloud">, z.ZodLiteral<"auto_jumper">, z.ZodLiteral<"tscircuit_beta">, z.ZodLiteral<"krt">, z.ZodLiteral<"freerouting">, z.ZodLiteral<"simplify">, z.ZodLiteral<"laser_prefab">, z.ZodLiteral<"single_layer_fanout">, z.ZodLiteral<"fanout">, z.ZodLiteral<"dogbone">, z.ZodLiteral<"bus_lanes">, z.ZodEffects<z.ZodLiteral<"single_layer_routing">, "bus_lanes", "single_layer_routing">, z.ZodLiteral<"auto-jumper">, z.ZodLiteral<"sequential-trace">, z.ZodLiteral<"auto-local">, z.ZodLiteral<"auto-cloud">]>;
|
|
33725
33732
|
declare const autorouterProp: z.ZodType<AutorouterProp>;
|
|
33726
33733
|
declare const autorouterEffortLevel: z.ZodEnum<["1x", "1.5x", "2x", "5x", "10x", "100x"]>;
|
|
33727
33734
|
declare const preflightRoutingCheckPolicy: z.ZodEnum<["none", "basic", "conservative"]>;
|
package/dist/index.js
CHANGED
|
@@ -16533,11 +16533,14 @@ var autorouterConfig = z44.object({
|
|
|
16533
16533
|
"fanout",
|
|
16534
16534
|
"dogbone",
|
|
16535
16535
|
"bus_lanes",
|
|
16536
|
+
"single_layer_routing",
|
|
16536
16537
|
"auto-jumper",
|
|
16537
16538
|
"sequential-trace",
|
|
16538
16539
|
"auto-local",
|
|
16539
16540
|
"auto-cloud"
|
|
16540
|
-
]).
|
|
16541
|
+
]).transform(
|
|
16542
|
+
(preset) => preset === "single_layer_routing" ? "bus_lanes" : preset
|
|
16543
|
+
).optional(),
|
|
16541
16544
|
local: z44.boolean().optional()
|
|
16542
16545
|
});
|
|
16543
16546
|
var autorouterPreset = z44.union([
|
|
@@ -16558,6 +16561,7 @@ var autorouterPreset = z44.union([
|
|
|
16558
16561
|
z44.literal("fanout"),
|
|
16559
16562
|
z44.literal("dogbone"),
|
|
16560
16563
|
z44.literal("bus_lanes"),
|
|
16564
|
+
z44.literal("single_layer_routing").transform(() => "bus_lanes"),
|
|
16561
16565
|
z44.literal("auto-jumper"),
|
|
16562
16566
|
z44.literal("sequential-trace"),
|
|
16563
16567
|
z44.literal("auto-local"),
|