@tscircuit/capacity-autorouter 0.0.56 → 0.0.58

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
@@ -1390,6 +1390,7 @@ interface CapacityPathingSingleSectionPathingSolverParams {
1390
1390
  }>;
1391
1391
  colorMap?: Record<string, string>;
1392
1392
  centerNodeId: string;
1393
+ nodeEdgeMap?: Map<CapacityMeshNodeId, CapacityMeshEdge[]>;
1393
1394
  hyperParameters?: CpssPathingSolverHyperParameters;
1394
1395
  }
1395
1396
  declare class CapacityPathingSingleSectionSolver extends BaseSolver {
@@ -1500,7 +1501,13 @@ declare class CapacityPathingMultiSectionSolver extends BaseSolver {
1500
1501
  MAX_ATTEMPTS_PER_NODE: number;
1501
1502
  MINIMUM_PROBABILITY_OF_FAILURE_TO_OPTIMIZE: number;
1502
1503
  MAX_EXPANSION_DEGREES: number;
1503
- constructor(params: ConstructorParameters<typeof CapacityPathingSolver>[0]);
1504
+ stats: {
1505
+ successfulOptimizations: number;
1506
+ failedOptimizations: number;
1507
+ };
1508
+ constructor(params: ConstructorParameters<typeof CapacityPathingSolver>[0] & {
1509
+ initialPathingSolver?: CapacityPathingGreedySolver;
1510
+ });
1504
1511
  _stepInitialization(): void;
1505
1512
  _getNextNodeToOptimize(): CapacityMeshNodeId | null;
1506
1513
  _stepSectionOptimization(): void;
@@ -1760,7 +1767,8 @@ declare class AutoroutingPipelineSolver extends BaseSolver {
1760
1767
  nodeSolver?: CapacityMeshNodeSolver;
1761
1768
  nodeTargetMerger?: CapacityNodeTargetMerger;
1762
1769
  edgeSolver?: CapacityMeshEdgeSolver;
1763
- pathingSolver?: CapacityPathingMultiSectionSolver;
1770
+ initialPathingSolver?: CapacityPathingGreedySolver;
1771
+ pathingOptimizer?: CapacityPathingMultiSectionSolver;
1764
1772
  edgeToPortSegmentSolver?: CapacityEdgeToPortSegmentSolver;
1765
1773
  colorMap: Record<string, string>;
1766
1774
  segmentToPointSolver?: CapacitySegmentToPointSolver;
@@ -1781,7 +1789,7 @@ declare class AutoroutingPipelineSolver extends BaseSolver {
1781
1789
  connMap: ConnectivityMap;
1782
1790
  srjWithPointPairs?: SimpleRouteJson;
1783
1791
  capacityNodes: CapacityMeshNode[] | null;
1784
- pipelineDef: (PipelineStep<typeof NetToPointPairsSolver> | PipelineStep<typeof CapacityMeshNodeSolver2_NodeUnderObstacle> | PipelineStep<typeof SingleLayerNodeMergerSolver> | PipelineStep<typeof StrawSolver> | PipelineStep<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep<typeof CapacityPathingMultiSectionSolver> | PipelineStep<typeof CapacityEdgeToPortSegmentSolver> | PipelineStep<typeof CapacitySegmentToPointSolver> | PipelineStep<typeof UnravelMultiSectionSolver> | PipelineStep<typeof HighDensitySolver> | PipelineStep<typeof MultipleHighDensityRouteStitchSolver> | PipelineStep<typeof UselessViaRemovalSolver> | PipelineStep<typeof MultiSimplifiedPathSolver>)[];
1792
+ pipelineDef: (PipelineStep<typeof NetToPointPairsSolver> | PipelineStep<typeof CapacityMeshNodeSolver2_NodeUnderObstacle> | PipelineStep<typeof SingleLayerNodeMergerSolver> | PipelineStep<typeof StrawSolver> | PipelineStep<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep<typeof CapacityPathingGreedySolver> | PipelineStep<typeof CapacityPathingMultiSectionSolver> | PipelineStep<typeof CapacityEdgeToPortSegmentSolver> | PipelineStep<typeof CapacitySegmentToPointSolver> | PipelineStep<typeof UnravelMultiSectionSolver> | PipelineStep<typeof HighDensitySolver> | PipelineStep<typeof MultipleHighDensityRouteStitchSolver> | PipelineStep<typeof UselessViaRemovalSolver> | PipelineStep<typeof MultiSimplifiedPathSolver>)[];
1785
1793
  constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions);
1786
1794
  currentPipelineStepIndex: number;
1787
1795
  _step(): void;