@tscircuit/capacity-autorouter 0.0.26 → 0.0.28
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 +51 -1
- package/dist/index.js +729 -11
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -171,6 +171,7 @@ interface CapacityMeshNodeSolverOptions {
|
|
|
171
171
|
declare class CapacityMeshNodeSolver2_NodeUnderObstacle extends CapacityMeshNodeSolver {
|
|
172
172
|
srj: SimpleRouteJson;
|
|
173
173
|
opts: CapacityMeshNodeSolverOptions;
|
|
174
|
+
VIA_DIAMETER: number;
|
|
174
175
|
constructor(srj: SimpleRouteJson, opts?: CapacityMeshNodeSolverOptions);
|
|
175
176
|
isNodeCompletelyOutsideBounds(node: CapacityMeshNode): boolean;
|
|
176
177
|
isNodePartiallyOutsideBounds(node: CapacityMeshNode): boolean;
|
|
@@ -345,6 +346,7 @@ type HighDensityIntraNodeRoute = {
|
|
|
345
346
|
y: number;
|
|
346
347
|
}>;
|
|
347
348
|
};
|
|
349
|
+
type HighDensityRoute = HighDensityIntraNodeRoute;
|
|
348
350
|
|
|
349
351
|
interface SegmentWithAssignedPoints extends NodePortSegment {
|
|
350
352
|
assignedPoints?: {
|
|
@@ -1190,6 +1192,52 @@ declare class SingleLayerNodeMergerSolver extends BaseSolver {
|
|
|
1190
1192
|
visualize(): GraphicsObject;
|
|
1191
1193
|
}
|
|
1192
1194
|
|
|
1195
|
+
interface Point {
|
|
1196
|
+
x: number;
|
|
1197
|
+
y: number;
|
|
1198
|
+
z: number;
|
|
1199
|
+
}
|
|
1200
|
+
declare class SingleSimplifiedPathSolver extends BaseSolver {
|
|
1201
|
+
newRoute: HighDensityIntraNodeRoute["route"];
|
|
1202
|
+
newVias: HighDensityIntraNodeRoute["vias"];
|
|
1203
|
+
headIndex: number;
|
|
1204
|
+
tailIndex: number;
|
|
1205
|
+
inputRoute: HighDensityIntraNodeRoute;
|
|
1206
|
+
otherHdRoutes: HighDensityIntraNodeRoute[];
|
|
1207
|
+
obstacles: Obstacle[];
|
|
1208
|
+
connMap: ConnectivityMap;
|
|
1209
|
+
colorMap: Record<string, string>;
|
|
1210
|
+
constructor(params: {
|
|
1211
|
+
inputRoute: HighDensityIntraNodeRoute;
|
|
1212
|
+
otherHdRoutes: HighDensityIntraNodeRoute[];
|
|
1213
|
+
obstacles: Obstacle[];
|
|
1214
|
+
connMap: ConnectivityMap;
|
|
1215
|
+
colorMap: Record<string, string>;
|
|
1216
|
+
});
|
|
1217
|
+
get simplifiedRoute(): HighDensityIntraNodeRoute;
|
|
1218
|
+
isValidPath(pointsInRoute: Point[]): boolean;
|
|
1219
|
+
_step(): void;
|
|
1220
|
+
getVisualsForNewRouteAndObstacles(): Required<GraphicsObject>;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
declare class MultiSimplifiedPathSolver extends BaseSolver {
|
|
1224
|
+
simplifiedHdRoutes: HighDensityIntraNodeRoute[];
|
|
1225
|
+
currentUnsimplifiedHdRouteIndex: number;
|
|
1226
|
+
activeSubSolver: SingleSimplifiedPathSolver | null;
|
|
1227
|
+
unsimplifiedHdRoutes: HighDensityIntraNodeRoute[];
|
|
1228
|
+
obstacles: Obstacle[];
|
|
1229
|
+
connMap: ConnectivityMap;
|
|
1230
|
+
colorMap: Record<string, string>;
|
|
1231
|
+
constructor(params: {
|
|
1232
|
+
unsimplifiedHdRoutes: HighDensityIntraNodeRoute[];
|
|
1233
|
+
obstacles: Obstacle[];
|
|
1234
|
+
connMap?: ConnectivityMap;
|
|
1235
|
+
colorMap?: Record<string, string>;
|
|
1236
|
+
});
|
|
1237
|
+
_step(): void;
|
|
1238
|
+
visualize(): GraphicsObject;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1193
1241
|
interface CapacityMeshSolverOptions {
|
|
1194
1242
|
capacityDepth?: number;
|
|
1195
1243
|
targetMinCapacity?: number;
|
|
@@ -1217,6 +1265,7 @@ declare class CapacityMeshSolver extends BaseSolver {
|
|
|
1217
1265
|
highDensityStitchSolver?: MultipleHighDensityRouteStitchSolver;
|
|
1218
1266
|
singleLayerNodeMerger?: SingleLayerNodeMergerSolver;
|
|
1219
1267
|
strawSolver?: StrawSolver;
|
|
1268
|
+
multiSimplifiedPathSolver?: MultiSimplifiedPathSolver;
|
|
1220
1269
|
startTimeOfPhase: Record<string, number>;
|
|
1221
1270
|
endTimeOfPhase: Record<string, number>;
|
|
1222
1271
|
timeSpentOnPhase: Record<string, number>;
|
|
@@ -1224,7 +1273,7 @@ declare class CapacityMeshSolver extends BaseSolver {
|
|
|
1224
1273
|
connMap: ConnectivityMap;
|
|
1225
1274
|
srjWithPointPairs?: SimpleRouteJson;
|
|
1226
1275
|
capacityNodes: CapacityMeshNode[] | null;
|
|
1227
|
-
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>)[];
|
|
1276
|
+
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>)[];
|
|
1228
1277
|
constructor(srj: SimpleRouteJson, opts?: CapacityMeshSolverOptions);
|
|
1229
1278
|
currentPipelineStepIndex: number;
|
|
1230
1279
|
_step(): void;
|
|
@@ -1236,6 +1285,7 @@ declare class CapacityMeshSolver extends BaseSolver {
|
|
|
1236
1285
|
* @returns The original connection name (e.g. "connection1")
|
|
1237
1286
|
*/
|
|
1238
1287
|
private getOriginalConnectionName;
|
|
1288
|
+
_getOutputHdRoutes(): HighDensityRoute[];
|
|
1239
1289
|
/**
|
|
1240
1290
|
* Returns the SimpleRouteJson with routes converted to SimplifiedPcbTraces
|
|
1241
1291
|
*/
|