@tscircuit/capacity-autorouter 0.0.40 → 0.0.42

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 CHANGED
@@ -259,6 +259,7 @@ declare class CapacityPathingSolver extends BaseSolver {
259
259
  connection: SimpleRouteConnection;
260
260
  nodes: CapacityMeshNode[];
261
261
  path?: CapacityMeshNode[];
262
+ straightLineDistance: number;
262
263
  }>;
263
264
  usedNodeCapacityMap: Map<CapacityMeshNodeId, number>;
264
265
  simpleRouteJson: SimpleRouteJson;
@@ -291,6 +292,7 @@ declare class CapacityPathingSolver extends BaseSolver {
291
292
  connection: SimpleRouteConnection;
292
293
  nodes: CapacityMeshNode[];
293
294
  pathFound: boolean;
295
+ straightLineDistance: number;
294
296
  }[];
295
297
  connectionNameToGoalNodeIds: Map<string, string[]>;
296
298
  };
@@ -791,9 +793,13 @@ declare class HyperSingleIntraNodeSolver extends HyperParameterSupervisorSolver<
791
793
  }[];
792
794
  } | {
793
795
  name: string;
794
- possibleValues: {
796
+ possibleValues: ({
795
797
  CLOSED_FORM_TWO_TRACE_SAME_LAYER: boolean;
796
- }[];
798
+ CLOSED_FORM_TWO_TRACE_TRANSITION_CROSSING?: undefined;
799
+ } | {
800
+ CLOSED_FORM_TWO_TRACE_TRANSITION_CROSSING: boolean;
801
+ CLOSED_FORM_TWO_TRACE_SAME_LAYER?: undefined;
802
+ })[];
797
803
  })[];
798
804
  computeG(solver: IntraNodeRouteSolver): number;
799
805
  computeH(solver: IntraNodeRouteSolver): number;
@@ -1420,10 +1426,10 @@ interface CapacityMeshSolverOptions {
1420
1426
  type PipelineStep<T extends new (...args: any[]) => BaseSolver> = {
1421
1427
  solverName: string;
1422
1428
  solverClass: T;
1423
- getConstructorParams: (instance: CapacityMeshSolver) => ConstructorParameters<T>;
1424
- onSolved?: (instance: CapacityMeshSolver) => void;
1429
+ getConstructorParams: (instance: AutoroutingPipelineSolver) => ConstructorParameters<T>;
1430
+ onSolved?: (instance: AutoroutingPipelineSolver) => void;
1425
1431
  };
1426
- declare class CapacityMeshSolver extends BaseSolver {
1432
+ declare class AutoroutingPipelineSolver extends BaseSolver {
1427
1433
  srj: SimpleRouteJson;
1428
1434
  opts: CapacityMeshSolverOptions;
1429
1435
  netToPointPairsSolver?: NetToPointPairsSolver;
@@ -1452,6 +1458,7 @@ declare class CapacityMeshSolver extends BaseSolver {
1452
1458
  constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions);
1453
1459
  currentPipelineStepIndex: number;
1454
1460
  _step(): void;
1461
+ solveUntilPhase(phase: string): void;
1455
1462
  getCurrentPhase(): string;
1456
1463
  visualize(): GraphicsObject;
1457
1464
  /**
@@ -1477,6 +1484,9 @@ declare class CapacityMeshSolver extends BaseSolver {
1477
1484
  getOutputSimplifiedPcbTraces(): SimplifiedPcbTraces;
1478
1485
  getOutputSimpleRouteJson(): SimpleRouteJson;
1479
1486
  }
1487
+ /** @deprecated Use AutoroutingPipelineSolver instead */
1488
+ declare const CapacityMeshSolver: typeof AutoroutingPipelineSolver;
1489
+ type CapacityMeshSolver = AutoroutingPipelineSolver;
1480
1490
 
1481
1491
  /**
1482
1492
  * Calculate the capacity of a node based on its width