@tscircuit/capacity-autorouter 0.0.189 → 0.0.190

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
@@ -1,7 +1,7 @@
1
1
  import * as graphics_debug from 'graphics-debug';
2
2
  import { GraphicsObject, Rect, Circle, Line, Point as Point$3 } from 'graphics-debug';
3
3
  import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
4
- import { RectDiffSolver } from '@tscircuit/rectdiff';
4
+ import { RectDiffPipeline } from '@tscircuit/rectdiff';
5
5
  import { Polygon } from '@tscircuit/math-utils';
6
6
 
7
7
  type TraceId = string;
@@ -1096,7 +1096,6 @@ interface PortPointPathingHyperParameters {
1096
1096
  RANDOM_COST_MAGNITUDE?: number;
1097
1097
  MEMORY_PF_FACTOR?: number;
1098
1098
  BASE_CANDIDATE_COST?: number;
1099
- REWARD_LOW_TRAVEL_PF_MAGNITUDE?: number;
1100
1099
  MAX_ITERATIONS_PER_PATH?: number;
1101
1100
  }
1102
1101
  /**
@@ -1204,8 +1203,6 @@ declare class PortPointPathingSolver extends BaseSolver {
1204
1203
  get CENTER_OFFSET_FOCUS_SHIFT(): number;
1205
1204
  /** Used as a *tie-breaker* in f (not part of g) */
1206
1205
  get RANDOM_COST_MAGNITUDE(): number;
1207
- /** Optional heuristic reward for stepping into low-memoryPf nodes */
1208
- get REWARD_LOW_TRAVEL_PF_MAGNITUDE(): number;
1209
1206
  /** Cost of adding a candidate to the path */
1210
1207
  get BASE_CANDIDATE_COST(): number;
1211
1208
  /** Cost penalty for changing layers (used in heuristic) */
@@ -1300,6 +1297,7 @@ declare class PortPointPathingSolver extends BaseSolver {
1300
1297
  x: number;
1301
1298
  y: number;
1302
1299
  }, currentNodeId: CapacityMeshNodeId, endGoalNodeId: CapacityMeshNodeId, currentZ: number): number;
1300
+ getAvailableExitPortPoints(nodeId: CapacityMeshNodeId): InputPortPoint[];
1303
1301
  /**
1304
1302
  * Get available port points to exit from a node, but *do not* return all.
1305
1303
  *
@@ -1542,7 +1540,7 @@ declare class AutoroutingPipelineSolver2_PortPointPathing extends BaseSolver {
1542
1540
  srj: SimpleRouteJson;
1543
1541
  opts: CapacityMeshSolverOptions$2;
1544
1542
  netToPointPairsSolver?: NetToPointPairsSolver;
1545
- nodeSolver?: RectDiffSolver;
1543
+ nodeSolver?: RectDiffPipeline;
1546
1544
  nodeTargetMerger?: CapacityNodeTargetMerger;
1547
1545
  edgeSolver?: CapacityMeshEdgeSolver;
1548
1546
  colorMap: Record<string, string>;
@@ -1566,7 +1564,7 @@ declare class AutoroutingPipelineSolver2_PortPointPathing extends BaseSolver {
1566
1564
  capacityNodes: CapacityMeshNode[] | null;
1567
1565
  capacityEdges: CapacityMeshEdge[] | null;
1568
1566
  cacheProvider: CacheProvider | null;
1569
- pipelineDef: (PipelineStep$2<typeof NetToPointPairsSolver2_OffBoardConnection> | PipelineStep$2<typeof RectDiffSolver> | PipelineStep$2<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep$2<typeof AvailableSegmentPointSolver> | PipelineStep$2<typeof PortPointPathingSolver> | PipelineStep$2<typeof MultiSectionPortPointOptimizer> | PipelineStep$2<typeof HighDensitySolver> | PipelineStep$2<typeof MultipleHighDensityRouteStitchSolver> | PipelineStep$2<typeof TraceSimplificationSolver>)[];
1567
+ pipelineDef: (PipelineStep$2<typeof NetToPointPairsSolver2_OffBoardConnection> | PipelineStep$2<typeof RectDiffPipeline> | PipelineStep$2<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep$2<typeof AvailableSegmentPointSolver> | PipelineStep$2<typeof PortPointPathingSolver> | PipelineStep$2<typeof MultiSectionPortPointOptimizer> | PipelineStep$2<typeof HighDensitySolver> | PipelineStep$2<typeof MultipleHighDensityRouteStitchSolver> | PipelineStep$2<typeof TraceSimplificationSolver>)[];
1570
1568
  constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions$2);
1571
1569
  currentPipelineStepIndex: number;
1572
1570
  _step(): void;
@@ -2398,7 +2396,7 @@ declare class AutoroutingPipeline1_OriginalUnravel extends BaseSolver {
2398
2396
  srj: SimpleRouteJson;
2399
2397
  opts: CapacityMeshSolverOptions$1;
2400
2398
  netToPointPairsSolver?: NetToPointPairsSolver;
2401
- nodeSolver?: RectDiffSolver;
2399
+ nodeSolver?: RectDiffPipeline;
2402
2400
  nodeTargetMerger?: CapacityNodeTargetMerger;
2403
2401
  edgeSolver?: CapacityMeshEdgeSolver;
2404
2402
  initialPathingSolver?: CapacityPathingGreedySolver;
@@ -2425,7 +2423,7 @@ declare class AutoroutingPipeline1_OriginalUnravel extends BaseSolver {
2425
2423
  capacityNodes: CapacityMeshNode[] | null;
2426
2424
  capacityEdges: CapacityMeshEdge[] | null;
2427
2425
  cacheProvider: CacheProvider | null;
2428
- pipelineDef: (PipelineStep$1<typeof NetToPointPairsSolver2_OffBoardConnection> | PipelineStep$1<typeof RectDiffSolver> | PipelineStep$1<typeof StrawSolver> | PipelineStep$1<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep$1<typeof DeadEndSolver> | PipelineStep$1<typeof CapacityPathingGreedySolver> | PipelineStep$1<typeof CapacityPathingMultiSectionSolver> | PipelineStep$1<typeof CapacityEdgeToPortSegmentSolver> | PipelineStep$1<typeof CapacitySegmentToPointSolver> | PipelineStep$1<typeof UnravelMultiSectionSolver> | PipelineStep$1<typeof HighDensitySolver> | PipelineStep$1<typeof MultipleHighDensityRouteStitchSolver> | PipelineStep$1<typeof TraceSimplificationSolver>)[];
2426
+ pipelineDef: (PipelineStep$1<typeof NetToPointPairsSolver2_OffBoardConnection> | PipelineStep$1<typeof RectDiffPipeline> | PipelineStep$1<typeof StrawSolver> | PipelineStep$1<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep$1<typeof DeadEndSolver> | PipelineStep$1<typeof CapacityPathingGreedySolver> | PipelineStep$1<typeof CapacityPathingMultiSectionSolver> | PipelineStep$1<typeof CapacityEdgeToPortSegmentSolver> | PipelineStep$1<typeof CapacitySegmentToPointSolver> | PipelineStep$1<typeof UnravelMultiSectionSolver> | PipelineStep$1<typeof HighDensitySolver> | PipelineStep$1<typeof MultipleHighDensityRouteStitchSolver> | PipelineStep$1<typeof TraceSimplificationSolver>)[];
2429
2427
  constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions$1);
2430
2428
  currentPipelineStepIndex: number;
2431
2429
  _step(): void;