@tscircuit/capacity-autorouter 0.0.269 → 0.0.271
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 +17 -10
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -4285,15 +4285,7 @@ declare class AssignableAutoroutingPipeline3 extends BaseSolver {
|
|
|
4285
4285
|
}
|
|
4286
4286
|
|
|
4287
4287
|
type HgRegion = Region & {
|
|
4288
|
-
d:
|
|
4289
|
-
center: {
|
|
4290
|
-
x: number;
|
|
4291
|
-
y: number;
|
|
4292
|
-
};
|
|
4293
|
-
width: number;
|
|
4294
|
-
height: number;
|
|
4295
|
-
availableZ?: number[];
|
|
4296
|
-
};
|
|
4288
|
+
d: InputNodeWithPortPoints;
|
|
4297
4289
|
};
|
|
4298
4290
|
type HgPort = RegionPort & {
|
|
4299
4291
|
d: InputPortPoint;
|
|
@@ -4310,10 +4302,13 @@ interface HgPortPointPathingSolverParams {
|
|
|
4310
4302
|
rippingEnabled?: boolean;
|
|
4311
4303
|
portUsagePenalty?: number;
|
|
4312
4304
|
regionTransitionPenalty?: number;
|
|
4305
|
+
ripNodePfThresholdStart?: number;
|
|
4306
|
+
maxNodeRips?: number;
|
|
4313
4307
|
}
|
|
4314
4308
|
declare class HgPortPointPathingSolver extends HyperGraphSolver<HgRegion, HgPort> {
|
|
4315
4309
|
inputNodes: InputNodeWithPortPoints[];
|
|
4316
4310
|
nodeMap: Map<CapacityMeshNodeId, InputNodeWithPortPoints>;
|
|
4311
|
+
regionMap: Map<CapacityMeshNodeId, HgRegion>;
|
|
4317
4312
|
portPointMap: Map<string, InputPortPoint>;
|
|
4318
4313
|
connectionsWithResults: ConnectionPathResult[];
|
|
4319
4314
|
assignedPortPoints: Map<string, {
|
|
@@ -4324,7 +4319,10 @@ declare class HgPortPointPathingSolver extends HyperGraphSolver<HgRegion, HgPort
|
|
|
4324
4319
|
assignmentsBuilt: boolean;
|
|
4325
4320
|
portUsagePenalty: number;
|
|
4326
4321
|
regionTransitionPenalty: number;
|
|
4327
|
-
|
|
4322
|
+
ripNodePfThresholdStart: number;
|
|
4323
|
+
maxNodeRips: number;
|
|
4324
|
+
nodeRipCountMap: Map<CapacityMeshNodeId, number>;
|
|
4325
|
+
constructor({ inputGraph, inputConnections, connectionsWithResults, inputNodes, portPointMap, greedyMultiplier, ripCost, rippingEnabled, portUsagePenalty, regionTransitionPenalty, ripNodePfThresholdStart, maxNodeRips, }: HgPortPointPathingSolverParams);
|
|
4328
4326
|
estimateCostToEnd(port: HgPort): number;
|
|
4329
4327
|
computeH(candidate: Candidate$3<HgRegion, HgPort>): number;
|
|
4330
4328
|
computeIncreasedRegionCostIfPortsAreUsed(region: HgRegion, port1: HgPort, port2: HgPort): number;
|
|
@@ -4334,7 +4332,16 @@ declare class HgPortPointPathingSolver extends HyperGraphSolver<HgRegion, HgPort
|
|
|
4334
4332
|
routeSolvedHook(solvedRoute: SolvedRoute): void;
|
|
4335
4333
|
_step(): void;
|
|
4336
4334
|
private buildAssignmentsIfSolved;
|
|
4335
|
+
private getNodeRippingPfThreshold;
|
|
4336
|
+
private getPortPointsFromRegionAssignments;
|
|
4337
|
+
private getPortPointsFromNewlySolvedRouteInRegion;
|
|
4338
|
+
private computeNodePfForRegion;
|
|
4339
|
+
private getDerivedCapacityMeshNode;
|
|
4340
|
+
private getCrossingRoutesByNodeForPath;
|
|
4341
|
+
private selectNodeForRipping;
|
|
4342
|
+
computeRoutesToRip(newlySolvedRoute: SolvedRoute): Set<SolvedRoute>;
|
|
4337
4343
|
getNodesWithPortPoints(): NodeWithPortPoints[];
|
|
4344
|
+
computeNodePf(node: InputNodeWithPortPoints): number;
|
|
4338
4345
|
visualize(): GraphicsObject;
|
|
4339
4346
|
}
|
|
4340
4347
|
|