@tscircuit/capacity-autorouter 0.0.382 → 0.0.384
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 +53 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { GraphicsObject, Rect, Circle, Line, Point as Point$5 } from 'graphics-d
|
|
|
5
5
|
import { BaseSolver as BaseSolver$1 } from '@tscircuit/solver-utils';
|
|
6
6
|
import Flatbush from 'flatbush';
|
|
7
7
|
import { HighDensitySolverA03, NodeWithPortPoints as NodeWithPortPoints$1 } from '@tscircuit/high-density-a01';
|
|
8
|
-
import { FixedViaHypergraphSolver
|
|
8
|
+
import { FixedViaHypergraphSolver } from '@tscircuit/fixed-via-hypergraph-solver/lib/index';
|
|
9
9
|
import { Point3, Polygon } from '@tscircuit/math-utils';
|
|
10
10
|
import { CurvyTraceSolver } from '@tscircuit/curvy-trace-solver';
|
|
11
11
|
import { JumperGraphSolver, JRegion, JPort, HyperGraph, RegionPort, Region, RegionPortAssignment, Connection, SolvedRoute, Candidate as Candidate$3, HyperGraphSolver, HyperGraphSectionOptimizer } from '@tscircuit/hypergraph';
|
|
@@ -299,6 +299,10 @@ type HighDensityIntraNodeRouteWithJumpers = {
|
|
|
299
299
|
jumpers: Jumper[];
|
|
300
300
|
};
|
|
301
301
|
|
|
302
|
+
type PendingEffect = {
|
|
303
|
+
name: string;
|
|
304
|
+
promise: Promise<unknown>;
|
|
305
|
+
};
|
|
302
306
|
declare class BaseSolver {
|
|
303
307
|
MAX_ITERATIONS: number;
|
|
304
308
|
solved: boolean;
|
|
@@ -310,6 +314,7 @@ declare class BaseSolver {
|
|
|
310
314
|
failedSubSolvers?: BaseSolver[];
|
|
311
315
|
timeToSolve?: number;
|
|
312
316
|
stats: Record<string, any>;
|
|
317
|
+
pendingEffects?: PendingEffect[];
|
|
313
318
|
/**
|
|
314
319
|
* For cached solvers
|
|
315
320
|
**/
|
|
@@ -1072,6 +1077,7 @@ declare class SingleHighDensityRouteSolver extends BaseSolver {
|
|
|
1072
1077
|
traceThickness: number;
|
|
1073
1078
|
obstacleMargin: number;
|
|
1074
1079
|
layerCount: number;
|
|
1080
|
+
availableZ: number[];
|
|
1075
1081
|
minCellSize: number;
|
|
1076
1082
|
cellStep: number;
|
|
1077
1083
|
GREEDY_MULTIPLER: number;
|
|
@@ -1122,6 +1128,7 @@ declare class SingleHighDensityRouteSolver extends BaseSolver {
|
|
|
1122
1128
|
traceThickness?: number;
|
|
1123
1129
|
obstacleMargin?: number;
|
|
1124
1130
|
layerCount?: number;
|
|
1131
|
+
availableZ?: number[];
|
|
1125
1132
|
futureConnections?: FutureConnection$1[];
|
|
1126
1133
|
hyperParameters?: Partial<HighDensityHyperParameters>;
|
|
1127
1134
|
connMap?: ConnectivityMap;
|
|
@@ -1185,6 +1192,7 @@ declare class IntraNodeRouteSolver extends BaseSolver {
|
|
|
1185
1192
|
minDistBetweenEnteringPoints: number;
|
|
1186
1193
|
viaDiameter: number;
|
|
1187
1194
|
traceWidth: number;
|
|
1195
|
+
obstacleMargin: number;
|
|
1188
1196
|
activeSubSolver: SingleHighDensityRouteSolver | null;
|
|
1189
1197
|
connMap?: ConnectivityMap;
|
|
1190
1198
|
get failedSolvers(): SingleHighDensityRouteSolver[];
|
|
@@ -1196,6 +1204,7 @@ declare class IntraNodeRouteSolver extends BaseSolver {
|
|
|
1196
1204
|
connMap?: ConnectivityMap;
|
|
1197
1205
|
viaDiameter?: number;
|
|
1198
1206
|
traceWidth?: number;
|
|
1207
|
+
obstacleMargin?: number;
|
|
1199
1208
|
});
|
|
1200
1209
|
computeProgress(): number;
|
|
1201
1210
|
private getSingleRouteSolverOpts;
|
|
@@ -1510,7 +1519,6 @@ declare class FixedTopologyHighDensityIntraNodeSolver extends BaseSolver {
|
|
|
1510
1519
|
lastActiveSubSolver: FixedViaHypergraphSolver | null;
|
|
1511
1520
|
solvedRoutes: HighDensityIntraNodeRouteWithVias[];
|
|
1512
1521
|
vias: ViaRegion[];
|
|
1513
|
-
tiledViasByNet: ViaByNet;
|
|
1514
1522
|
constructor(params: FixedTopologyHighDensityIntraNodeSolverParams);
|
|
1515
1523
|
getConstructorParams(): FixedTopologyHighDensityIntraNodeSolverParams;
|
|
1516
1524
|
private _getViaTileDiameter;
|
|
@@ -1531,7 +1539,25 @@ declare class FixedTopologyHighDensityIntraNodeSolver extends BaseSolver {
|
|
|
1531
1539
|
visualize(): GraphicsObject;
|
|
1532
1540
|
}
|
|
1533
1541
|
|
|
1534
|
-
declare class
|
|
1542
|
+
declare class SingleLayerNoDifferentRootIntersectionsIntraNodeSolver extends BaseSolver {
|
|
1543
|
+
getSolverName(): string;
|
|
1544
|
+
nodeWithPortPoints: NodeWithPortPoints;
|
|
1545
|
+
traceWidth: number;
|
|
1546
|
+
viaDiameter: number;
|
|
1547
|
+
solvedRoutes: HighDensityIntraNodeRoute$1[];
|
|
1548
|
+
constructor(params: {
|
|
1549
|
+
nodeWithPortPoints: NodeWithPortPoints;
|
|
1550
|
+
traceWidth?: number;
|
|
1551
|
+
viaDiameter?: number;
|
|
1552
|
+
});
|
|
1553
|
+
static isApplicable(node: NodeWithPortPoints): boolean;
|
|
1554
|
+
private buildTaskGroups;
|
|
1555
|
+
private trySolveNode;
|
|
1556
|
+
_step(): void;
|
|
1557
|
+
visualize(): GraphicsObject;
|
|
1558
|
+
}
|
|
1559
|
+
|
|
1560
|
+
declare class HyperSingleIntraNodeSolver extends HyperParameterSupervisorSolver<IntraNodeRouteSolver | TwoCrossingRoutesHighDensitySolver | SingleTransitionCrossingRouteSolver | SingleTransitionIntraNodeSolver | FixedTopologyHighDensityIntraNodeSolver | SingleLayerNoDifferentRootIntersectionsIntraNodeSolver | HighDensitySolverA03> {
|
|
1535
1561
|
getSolverName(): string;
|
|
1536
1562
|
constructorParams: ConstructorParameters<typeof CachedIntraNodeRouteSolver>[0];
|
|
1537
1563
|
solvedRoutes: HighDensityIntraNodeRoute$1[];
|
|
@@ -1543,6 +1569,11 @@ declare class HyperSingleIntraNodeSolver extends HyperParameterSupervisorSolver<
|
|
|
1543
1569
|
});
|
|
1544
1570
|
getCombinationDefs(): string[][];
|
|
1545
1571
|
getHyperParameterDefs(): ({
|
|
1572
|
+
name: string;
|
|
1573
|
+
possibleValues: {
|
|
1574
|
+
SINGLE_LAYER_NO_DIFFERENT_ROOT_INTERSECTIONS: boolean;
|
|
1575
|
+
}[];
|
|
1576
|
+
} | {
|
|
1546
1577
|
name: string;
|
|
1547
1578
|
possibleValues: ({
|
|
1548
1579
|
FUTURE_CONNECTION_PROX_TRACE_PENALTY_FACTOR: number;
|
|
@@ -1629,6 +1660,7 @@ declare class HighDensitySolver extends BaseSolver {
|
|
|
1629
1660
|
readonly defaultTraceThickness = 0.15;
|
|
1630
1661
|
viaDiameter: number;
|
|
1631
1662
|
traceWidth: number;
|
|
1663
|
+
obstacleMargin: number;
|
|
1632
1664
|
effort: number;
|
|
1633
1665
|
failedSolvers: (IntraNodeRouteSolver | HyperSingleIntraNodeSolver)[];
|
|
1634
1666
|
activeSubSolver: IntraNodeRouteSolver | HyperSingleIntraNodeSolver | null;
|
|
@@ -1643,12 +1675,13 @@ declare class HighDensitySolver extends BaseSolver {
|
|
|
1643
1675
|
nodePf: number | null;
|
|
1644
1676
|
error?: string;
|
|
1645
1677
|
}>;
|
|
1646
|
-
constructor({ nodePortPoints, colorMap, connMap, viaDiameter, traceWidth, effort, nodePfById, }: {
|
|
1678
|
+
constructor({ nodePortPoints, colorMap, connMap, viaDiameter, traceWidth, obstacleMargin, effort, nodePfById, }: {
|
|
1647
1679
|
nodePortPoints: NodeWithPortPoints[];
|
|
1648
1680
|
colorMap?: Record<string, string>;
|
|
1649
1681
|
connMap?: ConnectivityMap;
|
|
1650
1682
|
viaDiameter?: number;
|
|
1651
1683
|
traceWidth?: number;
|
|
1684
|
+
obstacleMargin?: number;
|
|
1652
1685
|
effort?: number;
|
|
1653
1686
|
nodePfById?: Map<CapacityMeshNodeId, number | null> | Record<string, number | null>;
|
|
1654
1687
|
});
|
|
@@ -4792,6 +4825,7 @@ interface CapacityMeshSolverOptions$1 {
|
|
|
4792
4825
|
effort?: number;
|
|
4793
4826
|
maxNodeDimension?: number;
|
|
4794
4827
|
}
|
|
4828
|
+
type AutoroutingPipelineSolverOptions$1 = CapacityMeshSolverOptions$1;
|
|
4795
4829
|
type PipelineStep$1<T extends new (...args: any[]) => BaseSolver> = {
|
|
4796
4830
|
solverName: string;
|
|
4797
4831
|
solverClass: T;
|
|
@@ -4848,6 +4882,20 @@ declare class AutoroutingPipelineSolver4_TinyHypergraph extends BaseSolver {
|
|
|
4848
4882
|
getOutputSimpleRouteJson(): SimpleRouteJson;
|
|
4849
4883
|
}
|
|
4850
4884
|
|
|
4885
|
+
type AutoroutingPipelineSolver5Options = AutoroutingPipelineSolverOptions$1 & {
|
|
4886
|
+
hdCacheBaseUrl?: string;
|
|
4887
|
+
hdCacheFetch?: typeof fetch;
|
|
4888
|
+
};
|
|
4889
|
+
declare class AutoroutingPipelineSolver5_HdCache extends AutoroutingPipelineSolver4_TinyHypergraph {
|
|
4890
|
+
readonly hdCacheBaseUrl: string;
|
|
4891
|
+
readonly hdCacheFetch?: typeof fetch;
|
|
4892
|
+
constructor(srj: ConstructorParameters<typeof AutoroutingPipelineSolver4_TinyHypergraph>[0], opts?: AutoroutingPipelineSolver5Options);
|
|
4893
|
+
private replaceHighDensityPipelineStep;
|
|
4894
|
+
stepAsync(): Promise<void>;
|
|
4895
|
+
solveAsync(): Promise<void>;
|
|
4896
|
+
solve(): void;
|
|
4897
|
+
}
|
|
4898
|
+
|
|
4851
4899
|
/**
|
|
4852
4900
|
* Calculate the capacity of a node based on its width
|
|
4853
4901
|
*
|
|
@@ -5889,4 +5937,4 @@ declare class IntraNodeSolverWithJumpers extends BaseSolver {
|
|
|
5889
5937
|
visualize(): GraphicsObject;
|
|
5890
5938
|
}
|
|
5891
5939
|
|
|
5892
|
-
export { AssignableAutoroutingPipeline1Solver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver4_TinyHypergraph as AutoroutingPipelineSolver, AutoroutingPipelineSolver2_PortPointPathing, AutoroutingPipelineSolver3_HgPortPointPathing, AutoroutingPipelineSolver4_TinyHypergraph as AutoroutingPipelineSolver4, AutoroutingPipelineSolver4_TinyHypergraph, type AutoroutingPipelineSolverOptions, type CachableSolver, type CacheProvider, CapacityMeshSolver, CurvyIntraNodeSolver, type HighDensityIntraNodeRouteWithJumpers, JumperHighDensitySolver as HighDensitySolver, HyperSingleIntraNodeSolver, InMemoryCache, IntraNodeSolverWithJumpers, type Jumper, LocalStorageCache, SingleHighDensityRouteWithJumpersSolver, calculateOptimalCapacityDepth, convertSrjToGraphicsObject, getGlobalInMemoryCache, getGlobalLocalStorageCache, getTunedTotalCapacity1, setupGlobalCaches };
|
|
5940
|
+
export { AssignableAutoroutingPipeline1Solver, AssignableAutoroutingPipeline2, AssignableAutoroutingPipeline3, AutoroutingPipeline1_OriginalUnravel, AutoroutingPipelineSolver4_TinyHypergraph as AutoroutingPipelineSolver, AutoroutingPipelineSolver2_PortPointPathing, AutoroutingPipelineSolver3_HgPortPointPathing, AutoroutingPipelineSolver4_TinyHypergraph as AutoroutingPipelineSolver4, AutoroutingPipelineSolver4_TinyHypergraph, AutoroutingPipelineSolver5_HdCache as AutoroutingPipelineSolver5, AutoroutingPipelineSolver5_HdCache, type AutoroutingPipelineSolverOptions, type CachableSolver, type CacheProvider, CapacityMeshSolver, CurvyIntraNodeSolver, type HighDensityIntraNodeRouteWithJumpers, JumperHighDensitySolver as HighDensitySolver, HyperSingleIntraNodeSolver, InMemoryCache, IntraNodeSolverWithJumpers, type Jumper, LocalStorageCache, SingleHighDensityRouteWithJumpersSolver, calculateOptimalCapacityDepth, convertSrjToGraphicsObject, getGlobalInMemoryCache, getGlobalLocalStorageCache, getTunedTotalCapacity1, setupGlobalCaches };
|