@tscircuit/capacity-autorouter 0.0.57 → 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 +1 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 {
|
package/dist/index.js
CHANGED
|
@@ -12074,7 +12074,7 @@ var CapacityPathingSingleSectionSolver = class extends BaseSolver {
|
|
|
12074
12074
|
this.nodeMap = new Map(
|
|
12075
12075
|
this.sectionNodes.map((n) => [n.capacityMeshNodeId, n])
|
|
12076
12076
|
);
|
|
12077
|
-
this.nodeEdgeMap = getNodeEdgeMap(this.sectionEdges);
|
|
12077
|
+
this.nodeEdgeMap = params.nodeEdgeMap ?? getNodeEdgeMap(this.sectionEdges);
|
|
12078
12078
|
this.colorMap = params.colorMap ?? {};
|
|
12079
12079
|
this.usedNodeCapacityMap = new Map(
|
|
12080
12080
|
this.sectionNodes.map((node) => [node.capacityMeshNodeId, 0])
|
|
@@ -12551,6 +12551,7 @@ var CapacityPathingMultiSectionSolver = class extends BaseSolver {
|
|
|
12551
12551
|
this.simpleRouteJson = params.simpleRouteJson;
|
|
12552
12552
|
this.nodes = params.nodes;
|
|
12553
12553
|
this.edges = params.edges;
|
|
12554
|
+
this.nodeEdgeMap = getNodeEdgeMap(this.edges);
|
|
12554
12555
|
this.colorMap = params.colorMap ?? {};
|
|
12555
12556
|
this.nodeMap = new Map(
|
|
12556
12557
|
this.nodes.map((node) => [node.capacityMeshNodeId, node])
|
|
@@ -12635,7 +12636,8 @@ var CapacityPathingMultiSectionSolver = class extends BaseSolver {
|
|
|
12635
12636
|
sectionEdges: section.sectionEdges,
|
|
12636
12637
|
sectionNodes: section.sectionNodes,
|
|
12637
12638
|
colorMap: this.colorMap,
|
|
12638
|
-
centerNodeId: section.centerNodeId
|
|
12639
|
+
centerNodeId: section.centerNodeId,
|
|
12640
|
+
nodeEdgeMap: this.nodeEdgeMap
|
|
12639
12641
|
});
|
|
12640
12642
|
this.activeSubSolver = this.sectionSolver;
|
|
12641
12643
|
this.nodeOptimizationAttemptCountMap.set(
|