@tscircuit/capacity-autorouter 0.0.281 → 0.0.282
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 +23 -20
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1208,7 +1208,7 @@ type Phase$1 = "via_removal" | "via_merging" | "path_simplification";
|
|
|
1208
1208
|
* Each iteration consists of all phases executed sequentially.
|
|
1209
1209
|
*/
|
|
1210
1210
|
declare class TraceSimplificationSolver extends BaseSolver {
|
|
1211
|
-
private simplificationConfig;
|
|
1211
|
+
private readonly simplificationConfig;
|
|
1212
1212
|
getSolverName(): string;
|
|
1213
1213
|
hdRoutes: HighDensityRoute$1[];
|
|
1214
1214
|
simplificationPipelineLoops: number;
|
|
@@ -1232,16 +1232,16 @@ declare class TraceSimplificationSolver extends BaseSolver {
|
|
|
1232
1232
|
* - iterations: Number of complete simplification iterations (default: 2)
|
|
1233
1233
|
*/
|
|
1234
1234
|
constructor(simplificationConfig: {
|
|
1235
|
-
hdRoutes: HighDensityRoute$1
|
|
1236
|
-
obstacles: Obstacle
|
|
1237
|
-
connMap: ConnectivityMap;
|
|
1238
|
-
colorMap: Record<string, string
|
|
1239
|
-
outline?:
|
|
1235
|
+
readonly hdRoutes: ReadonlyArray<HighDensityRoute$1>;
|
|
1236
|
+
readonly obstacles: ReadonlyArray<Obstacle>;
|
|
1237
|
+
readonly connMap: ConnectivityMap;
|
|
1238
|
+
readonly colorMap: Readonly<Record<string, string>>;
|
|
1239
|
+
readonly outline?: ReadonlyArray<{
|
|
1240
1240
|
x: number;
|
|
1241
1241
|
y: number;
|
|
1242
1242
|
}>;
|
|
1243
|
-
defaultViaDiameter: number;
|
|
1244
|
-
layerCount: number;
|
|
1243
|
+
readonly defaultViaDiameter: number;
|
|
1244
|
+
readonly layerCount: number;
|
|
1245
1245
|
});
|
|
1246
1246
|
_step(): void;
|
|
1247
1247
|
visualize(): GraphicsObject;
|
|
@@ -2243,6 +2243,7 @@ interface TraceWidthSolverInput {
|
|
|
2243
2243
|
colorMap?: Record<string, string>;
|
|
2244
2244
|
minTraceWidth: number;
|
|
2245
2245
|
obstacleMargin?: number;
|
|
2246
|
+
layerCount: number;
|
|
2246
2247
|
}
|
|
2247
2248
|
/**
|
|
2248
2249
|
* TraceWidthSolver determines the optimal trace width for each route.
|
|
@@ -2328,8 +2329,8 @@ type PipelineStep$5<T extends new (...args: any[]) => BaseSolver> = {
|
|
|
2328
2329
|
onSolved?: (instance: AutoroutingPipelineSolver2_PortPointPathing) => void;
|
|
2329
2330
|
};
|
|
2330
2331
|
declare class AutoroutingPipelineSolver2_PortPointPathing extends BaseSolver {
|
|
2331
|
-
srj: SimpleRouteJson;
|
|
2332
|
-
opts: CapacityMeshSolverOptions$5;
|
|
2332
|
+
readonly srj: SimpleRouteJson;
|
|
2333
|
+
readonly opts: CapacityMeshSolverOptions$5;
|
|
2333
2334
|
getSolverName(): string;
|
|
2334
2335
|
netToPointPairsSolver?: NetToPointPairsSolver;
|
|
2335
2336
|
nodeSolver?: RectDiffPipeline;
|
|
@@ -2439,6 +2440,7 @@ declare class CapacityMeshNodeSolver extends BaseSolver {
|
|
|
2439
2440
|
targets: Target[];
|
|
2440
2441
|
targetTree: TargetTree;
|
|
2441
2442
|
obstacleTree: ObstacleSpatialHashIndex;
|
|
2443
|
+
readonly obstacleZLayersByObstacle: WeakMap<Obstacle, number[]>;
|
|
2442
2444
|
constructor(srj: SimpleRouteJson, opts?: CapacityMeshNodeSolverOptions$2);
|
|
2443
2445
|
computeTargets(): Target[];
|
|
2444
2446
|
protected getNodeBounds(node: CapacityMeshNode): {
|
|
@@ -2484,6 +2486,7 @@ declare class CapacityMeshNodeSolver extends BaseSolver {
|
|
|
2484
2486
|
* - Points for each connection’s pointsToConnect are drawn in a unique color.
|
|
2485
2487
|
*/
|
|
2486
2488
|
visualize(): GraphicsObject;
|
|
2489
|
+
private getObstacleZLayers;
|
|
2487
2490
|
}
|
|
2488
2491
|
|
|
2489
2492
|
interface CapacityMeshNodeSolverOptions$1 {
|
|
@@ -3361,8 +3364,8 @@ type PipelineStep$4<T extends new (...args: any[]) => BaseSolver> = {
|
|
|
3361
3364
|
onSolved?: (instance: AutoroutingPipeline1_OriginalUnravel) => void;
|
|
3362
3365
|
};
|
|
3363
3366
|
declare class AutoroutingPipeline1_OriginalUnravel extends BaseSolver {
|
|
3364
|
-
srj: SimpleRouteJson;
|
|
3365
|
-
opts: CapacityMeshSolverOptions$4;
|
|
3367
|
+
readonly srj: SimpleRouteJson;
|
|
3368
|
+
readonly opts: CapacityMeshSolverOptions$4;
|
|
3366
3369
|
getSolverName(): string;
|
|
3367
3370
|
netToPointPairsSolver?: NetToPointPairsSolver;
|
|
3368
3371
|
nodeSolver?: CapacityMeshNodeSolver;
|
|
@@ -4096,8 +4099,8 @@ type PipelineStep$3<T extends new (...args: any[]) => BaseSolver> = {
|
|
|
4096
4099
|
onSolved?: (instance: AssignableAutoroutingPipeline2) => void;
|
|
4097
4100
|
};
|
|
4098
4101
|
declare class AssignableAutoroutingPipeline2 extends BaseSolver {
|
|
4099
|
-
srj: SimpleRouteJson;
|
|
4100
|
-
opts: CapacityMeshSolverOptions$3;
|
|
4102
|
+
readonly srj: SimpleRouteJson;
|
|
4103
|
+
readonly opts: CapacityMeshSolverOptions$3;
|
|
4101
4104
|
getSolverName(): string;
|
|
4102
4105
|
netToPointPairsSolver?: NetToPointPairsSolver;
|
|
4103
4106
|
nodeSolver?: RectDiffPipeline;
|
|
@@ -4240,8 +4243,8 @@ type PipelineStep$2<T extends new (...args: any[]) => BaseSolver> = {
|
|
|
4240
4243
|
onSolved?: (instance: AssignableAutoroutingPipeline3) => void;
|
|
4241
4244
|
};
|
|
4242
4245
|
declare class AssignableAutoroutingPipeline3 extends BaseSolver {
|
|
4243
|
-
srj: SimpleRouteJson;
|
|
4244
|
-
opts: CapacityMeshSolverOptions$2;
|
|
4246
|
+
readonly srj: SimpleRouteJson;
|
|
4247
|
+
readonly opts: CapacityMeshSolverOptions$2;
|
|
4245
4248
|
getSolverName(): string;
|
|
4246
4249
|
netToPointPairsSolver?: NetToPointPairsSolver;
|
|
4247
4250
|
traceKeepoutSolver?: TraceKeepoutSolver;
|
|
@@ -4419,8 +4422,8 @@ type PipelineStep$1<T extends new (...args: any[]) => BaseSolver> = {
|
|
|
4419
4422
|
onSolved?: (instance: AutoroutingPipelineSolver3_HgPortPointPathing) => void;
|
|
4420
4423
|
};
|
|
4421
4424
|
declare class AutoroutingPipelineSolver3_HgPortPointPathing extends BaseSolver {
|
|
4422
|
-
srj: SimpleRouteJson;
|
|
4423
|
-
opts: CapacityMeshSolverOptions$1;
|
|
4425
|
+
readonly srj: SimpleRouteJson;
|
|
4426
|
+
readonly opts: CapacityMeshSolverOptions$1;
|
|
4424
4427
|
netToPointPairsSolver?: NetToPointPairsSolver;
|
|
4425
4428
|
nodeSolver?: RectDiffPipeline;
|
|
4426
4429
|
nodeTargetMerger?: CapacityNodeTargetMerger;
|
|
@@ -5029,8 +5032,8 @@ type PipelineStep<T extends new (...args: any[]) => BaseSolver> = {
|
|
|
5029
5032
|
onSolved?: (instance: AssignableAutoroutingPipeline1Solver) => void;
|
|
5030
5033
|
};
|
|
5031
5034
|
declare class AssignableAutoroutingPipeline1Solver extends BaseSolver {
|
|
5032
|
-
srj: SimpleRouteJson;
|
|
5033
|
-
opts: CapacityMeshSolverOptions;
|
|
5035
|
+
readonly srj: SimpleRouteJson;
|
|
5036
|
+
readonly opts: CapacityMeshSolverOptions;
|
|
5034
5037
|
getSolverName(): string;
|
|
5035
5038
|
netToPointPairsSolver?: NetToPointPairsSolver;
|
|
5036
5039
|
nodeSolver?: CapacityMeshNodeSolver;
|