@tscircuit/capacity-autorouter 0.0.56 → 0.0.57

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
@@ -1500,7 +1500,13 @@ declare class CapacityPathingMultiSectionSolver extends BaseSolver {
1500
1500
  MAX_ATTEMPTS_PER_NODE: number;
1501
1501
  MINIMUM_PROBABILITY_OF_FAILURE_TO_OPTIMIZE: number;
1502
1502
  MAX_EXPANSION_DEGREES: number;
1503
- constructor(params: ConstructorParameters<typeof CapacityPathingSolver>[0]);
1503
+ stats: {
1504
+ successfulOptimizations: number;
1505
+ failedOptimizations: number;
1506
+ };
1507
+ constructor(params: ConstructorParameters<typeof CapacityPathingSolver>[0] & {
1508
+ initialPathingSolver?: CapacityPathingGreedySolver;
1509
+ });
1504
1510
  _stepInitialization(): void;
1505
1511
  _getNextNodeToOptimize(): CapacityMeshNodeId | null;
1506
1512
  _stepSectionOptimization(): void;
@@ -1760,7 +1766,8 @@ declare class AutoroutingPipelineSolver extends BaseSolver {
1760
1766
  nodeSolver?: CapacityMeshNodeSolver;
1761
1767
  nodeTargetMerger?: CapacityNodeTargetMerger;
1762
1768
  edgeSolver?: CapacityMeshEdgeSolver;
1763
- pathingSolver?: CapacityPathingMultiSectionSolver;
1769
+ initialPathingSolver?: CapacityPathingGreedySolver;
1770
+ pathingOptimizer?: CapacityPathingMultiSectionSolver;
1764
1771
  edgeToPortSegmentSolver?: CapacityEdgeToPortSegmentSolver;
1765
1772
  colorMap: Record<string, string>;
1766
1773
  segmentToPointSolver?: CapacitySegmentToPointSolver;
@@ -1781,7 +1788,7 @@ declare class AutoroutingPipelineSolver extends BaseSolver {
1781
1788
  connMap: ConnectivityMap;
1782
1789
  srjWithPointPairs?: SimpleRouteJson;
1783
1790
  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>)[];
1791
+ 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
1792
  constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions);
1786
1793
  currentPipelineStepIndex: number;
1787
1794
  _step(): void;