@tscircuit/capacity-autorouter 0.0.29 → 0.0.30

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
@@ -75,6 +75,7 @@ interface CapacityMeshNode {
75
75
  _targetConnectionName?: string;
76
76
  _strawNode?: boolean;
77
77
  _strawParentCapacityMeshNodeId?: CapacityMeshNodeId;
78
+ _adjacentNodeIds?: CapacityMeshNodeId[];
78
79
  _parent?: CapacityMeshNode;
79
80
  }
80
81
  interface CapacityMeshEdge {
@@ -112,7 +113,8 @@ declare class CapacityMeshEdgeSolver extends BaseSolver {
112
113
  constructor(nodes: CapacityMeshNode[]);
113
114
  getNextCapacityMeshEdgeId(): string;
114
115
  step(): void;
115
- private doNodesHaveSharedLayer;
116
+ handleTargetNodes(): void;
117
+ doNodesHaveSharedLayer(node1: CapacityMeshNode, node2: CapacityMeshNode): boolean;
116
118
  visualize(): GraphicsObject;
117
119
  }
118
120
 
@@ -1186,9 +1188,12 @@ declare class SingleLayerNodeMergerSolver extends BaseSolver {
1186
1188
  absorbedNodeIds: Set<CapacityMeshNodeId>;
1187
1189
  nextBatchNodeIds: CapacityMeshNodeId[];
1188
1190
  batchHadModifications: boolean;
1191
+ hasComputedAdjacentNodeIds: boolean;
1189
1192
  newNodes: CapacityMeshNode[];
1190
1193
  constructor(nodes: CapacityMeshNode[]);
1194
+ computeAdjacentNodeIdsForFirstBatch(nodes: CapacityMeshNode[]): void;
1191
1195
  getAdjacentSameLayerUnprocessedNodes(rootNode: CapacityMeshNode): CapacityMeshNode[];
1196
+ getAdjacentSameLayerUnprocessedNodes2(rootNode: CapacityMeshNode): CapacityMeshNode[];
1192
1197
  _step(): void;
1193
1198
  visualize(): GraphicsObject;
1194
1199
  }
@@ -1239,6 +1244,10 @@ declare class MultiSimplifiedPathSolver extends BaseSolver {
1239
1244
  visualize(): GraphicsObject;
1240
1245
  }
1241
1246
 
1247
+ declare class CapacityMeshEdgeSolver2_NodeTreeOptimization extends CapacityMeshEdgeSolver {
1248
+ step(): void;
1249
+ }
1250
+
1242
1251
  interface CapacityMeshSolverOptions {
1243
1252
  capacityDepth?: number;
1244
1253
  targetMinCapacity?: number;
@@ -1274,7 +1283,7 @@ declare class CapacityMeshSolver extends BaseSolver {
1274
1283
  connMap: ConnectivityMap;
1275
1284
  srjWithPointPairs?: SimpleRouteJson;
1276
1285
  capacityNodes: CapacityMeshNode[] | null;
1277
- pipelineDef: (PipelineStep<typeof NetToPointPairsSolver> | PipelineStep<typeof CapacityMeshNodeSolver2_NodeUnderObstacle> | PipelineStep<typeof SingleLayerNodeMergerSolver> | PipelineStep<typeof StrawSolver> | PipelineStep<typeof CapacityMeshEdgeSolver> | PipelineStep<typeof CapacityPathingSolver5> | PipelineStep<typeof CapacityEdgeToPortSegmentSolver> | PipelineStep<typeof CapacitySegmentToPointSolver> | PipelineStep<typeof UnravelMultiSectionSolver> | PipelineStep<typeof HighDensitySolver> | PipelineStep<typeof MultipleHighDensityRouteStitchSolver> | PipelineStep<typeof MultiSimplifiedPathSolver>)[];
1286
+ pipelineDef: (PipelineStep<typeof NetToPointPairsSolver> | PipelineStep<typeof CapacityMeshNodeSolver2_NodeUnderObstacle> | PipelineStep<typeof SingleLayerNodeMergerSolver> | PipelineStep<typeof StrawSolver> | PipelineStep<typeof CapacityMeshEdgeSolver2_NodeTreeOptimization> | PipelineStep<typeof CapacityPathingSolver5> | PipelineStep<typeof CapacityEdgeToPortSegmentSolver> | PipelineStep<typeof CapacitySegmentToPointSolver> | PipelineStep<typeof UnravelMultiSectionSolver> | PipelineStep<typeof HighDensitySolver> | PipelineStep<typeof MultipleHighDensityRouteStitchSolver> | PipelineStep<typeof MultiSimplifiedPathSolver>)[];
1278
1287
  constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions);
1279
1288
  currentPipelineStepIndex: number;
1280
1289
  _step(): void;