@tscircuit/capacity-autorouter 0.0.172 → 0.0.174
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 +24 -10
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1242,6 +1242,17 @@ declare class UnravelSectionSolver extends BaseSolver {
|
|
|
1242
1242
|
z: number;
|
|
1243
1243
|
segmentId: string;
|
|
1244
1244
|
};
|
|
1245
|
+
/**
|
|
1246
|
+
* Get all segment points in the section that belong to a given connection.
|
|
1247
|
+
* This is used to propose layer changes for the entire connection path
|
|
1248
|
+
* when all endpoints are MLCPs (multi-layer connection points).
|
|
1249
|
+
*/
|
|
1250
|
+
getConnectionSegmentPointIds(connectionName: string): SegmentPointId[];
|
|
1251
|
+
/**
|
|
1252
|
+
* Check if all segment points for a connection can use a given z layer.
|
|
1253
|
+
* Returns true if all segments have the target z in their availableZ.
|
|
1254
|
+
*/
|
|
1255
|
+
canConnectionUseLayer(connectionSegmentPointIds: SegmentPointId[], targetZ: number): boolean;
|
|
1245
1256
|
getOperationsForIssue(candidate: UnravelCandidate, issue: UnravelIssue): UnravelOperation[];
|
|
1246
1257
|
computeG(params: {
|
|
1247
1258
|
issues: UnravelIssue[];
|
|
@@ -1715,6 +1726,7 @@ declare class NetToPointPairsSolver2_OffBoardConnection extends NetToPointPairsS
|
|
|
1715
1726
|
_step(): void;
|
|
1716
1727
|
}
|
|
1717
1728
|
|
|
1729
|
+
type Phase = "via_removal" | "via_merging" | "path_simplification";
|
|
1718
1730
|
/**
|
|
1719
1731
|
* TraceSimplificationSolver consolidates trace optimization by iteratively applying
|
|
1720
1732
|
* via removal, via merging, and path simplification phases. It reduces redundant vias
|
|
@@ -1729,16 +1741,13 @@ declare class NetToPointPairsSolver2_OffBoardConnection extends NetToPointPairsS
|
|
|
1729
1741
|
*/
|
|
1730
1742
|
declare class TraceSimplificationSolver extends BaseSolver {
|
|
1731
1743
|
private simplificationConfig;
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
private totalIterations;
|
|
1738
|
-
/** Current phase of simplification being executed */
|
|
1739
|
-
private currentPhase;
|
|
1744
|
+
hdRoutes: HighDensityRoute$1[];
|
|
1745
|
+
simplificationPipelineLoops: number;
|
|
1746
|
+
MAX_SIMPLIFICATION_PIPELINE_LOOPS: number;
|
|
1747
|
+
PHASE_ORDER: Phase[];
|
|
1748
|
+
currentPhase: Phase;
|
|
1740
1749
|
/** Callback to extract results from the active sub-solver */
|
|
1741
|
-
|
|
1750
|
+
extractResult: ((solver: BaseSolver) => HighDensityRoute$1[]) | null;
|
|
1742
1751
|
/** Returns the simplified routes. This is the primary output of the solver. */
|
|
1743
1752
|
get simplifiedHdRoutes(): HighDensityRoute$1[];
|
|
1744
1753
|
/**
|
|
@@ -1764,7 +1773,6 @@ declare class TraceSimplificationSolver extends BaseSolver {
|
|
|
1764
1773
|
}>;
|
|
1765
1774
|
defaultViaDiameter: number;
|
|
1766
1775
|
layerCount: number;
|
|
1767
|
-
iterations?: number;
|
|
1768
1776
|
});
|
|
1769
1777
|
_step(): void;
|
|
1770
1778
|
visualize(): GraphicsObject;
|
|
@@ -2363,6 +2371,12 @@ declare class SingleRouteUselessViaRemovalSolver extends BaseSolver {
|
|
|
2363
2371
|
});
|
|
2364
2372
|
breakRouteIntoSections(route: HighDensityRoute): never[] | this["routeSections"];
|
|
2365
2373
|
_step(): void;
|
|
2374
|
+
/**
|
|
2375
|
+
* Check if an endpoint (first or last point of the route) can connect
|
|
2376
|
+
* to a different layer. This is only allowed if the obstacles the endpoint
|
|
2377
|
+
* connects to support that layer.
|
|
2378
|
+
*/
|
|
2379
|
+
canEndpointConnectOnLayer(endpointX: number, endpointY: number, targetZ: number): boolean;
|
|
2366
2380
|
canSectionMoveToLayer({ currentSection, targetZ, }: {
|
|
2367
2381
|
currentSection: RouteSection;
|
|
2368
2382
|
targetZ: number;
|