@tscircuit/capacity-autorouter 0.0.849 → 0.0.850
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 +16 -4
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2540,6 +2540,9 @@ declare class TraceSimplificationSolver extends BaseSolver {
|
|
|
2540
2540
|
* - enableCrossingViaReduction: Enables coordinated crossing layer swaps
|
|
2541
2541
|
* - preserveRouteEndpoints: Prevents simplification from moving endpoint
|
|
2542
2542
|
* coordinates or layers when routes represent spliceable local sections
|
|
2543
|
+
* - terminalLayerIndicesByPcbPortId: Physical copper-layer indices on
|
|
2544
|
+
* which each PCB-port terminal can directly accept a route endpoint
|
|
2545
|
+
* without a via
|
|
2543
2546
|
* - iterations: Number of complete simplification iterations (default: 2)
|
|
2544
2547
|
*/
|
|
2545
2548
|
constructor(simplificationConfig: {
|
|
@@ -2559,6 +2562,7 @@ declare class TraceSimplificationSolver extends BaseSolver {
|
|
|
2559
2562
|
readonly netByConnectionName?: ReadonlyMap<string, string>;
|
|
2560
2563
|
readonly enableCrossingViaReduction?: boolean;
|
|
2561
2564
|
readonly preserveRouteEndpoints?: boolean;
|
|
2565
|
+
readonly terminalLayerIndicesByPcbPortId?: ReadonlyMap<string, ReadonlySet<number>>;
|
|
2562
2566
|
});
|
|
2563
2567
|
private validatePreservedRouteEndpoints;
|
|
2564
2568
|
private isSameNetObstacle;
|
|
@@ -6845,12 +6849,13 @@ declare class SingleRouteUselessViaRemovalSolver extends BaseSolver {
|
|
|
6845
6849
|
getSolverName(): string;
|
|
6846
6850
|
obstacleSHI: ObstacleSpatialHashIndex;
|
|
6847
6851
|
hdRouteSHI: HighDensityRouteSpatialIndex;
|
|
6848
|
-
unsimplifiedRoute: HighDensityRoute;
|
|
6852
|
+
unsimplifiedRoute: HighDensityRoute$1;
|
|
6849
6853
|
connMap: ConnectivityMap;
|
|
6850
6854
|
outline?: Array<{
|
|
6851
6855
|
x: number;
|
|
6852
6856
|
y: number;
|
|
6853
6857
|
}>;
|
|
6858
|
+
terminalLayerIndicesByPcbPortId?: ReadonlyMap<string, ReadonlySet<number>>;
|
|
6854
6859
|
routeSections: Array<RouteSection>;
|
|
6855
6860
|
currentSectionIndex: number;
|
|
6856
6861
|
TRACE_THICKNESS: number;
|
|
@@ -6867,7 +6872,7 @@ declare class SingleRouteUselessViaRemovalSolver extends BaseSolver {
|
|
|
6867
6872
|
constructor(params: {
|
|
6868
6873
|
obstacleSHI: ObstacleSpatialHashIndex;
|
|
6869
6874
|
hdRouteSHI: HighDensityRouteSpatialIndex;
|
|
6870
|
-
unsimplifiedRoute: HighDensityRoute;
|
|
6875
|
+
unsimplifiedRoute: HighDensityRoute$1;
|
|
6871
6876
|
connMap: ConnectivityMap;
|
|
6872
6877
|
outline?: Array<{
|
|
6873
6878
|
x: number;
|
|
@@ -6878,6 +6883,7 @@ declare class SingleRouteUselessViaRemovalSolver extends BaseSolver {
|
|
|
6878
6883
|
enableGeometryShortcuts?: boolean;
|
|
6879
6884
|
enableObstacleDetourShortcuts?: boolean;
|
|
6880
6885
|
preserveRouteEndpoints?: boolean;
|
|
6886
|
+
terminalLayerIndicesByPcbPortId?: ReadonlyMap<string, ReadonlySet<number>>;
|
|
6881
6887
|
});
|
|
6882
6888
|
private getPathLength;
|
|
6883
6889
|
private normalizeShortcutPath;
|
|
@@ -6893,7 +6899,7 @@ declare class SingleRouteUselessViaRemovalSolver extends BaseSolver {
|
|
|
6893
6899
|
getConstructorParams(): {
|
|
6894
6900
|
obstacleSHI: ObstacleSpatialHashIndex;
|
|
6895
6901
|
hdRouteSHI: HighDensityRouteSpatialIndex;
|
|
6896
|
-
unsimplifiedRoute: HighDensityIntraNodeRoute;
|
|
6902
|
+
unsimplifiedRoute: HighDensityIntraNodeRoute$1;
|
|
6897
6903
|
connMap: ConnectivityMap;
|
|
6898
6904
|
outline: {
|
|
6899
6905
|
x: number;
|
|
@@ -6904,8 +6910,9 @@ declare class SingleRouteUselessViaRemovalSolver extends BaseSolver {
|
|
|
6904
6910
|
enableGeometryShortcuts: boolean;
|
|
6905
6911
|
enableObstacleDetourShortcuts: boolean;
|
|
6906
6912
|
preserveRouteEndpoints: boolean;
|
|
6913
|
+
terminalLayerIndicesByPcbPortId: ReadonlyMap<string, ReadonlySet<number>> | undefined;
|
|
6907
6914
|
};
|
|
6908
|
-
getOptimizedHdRoute(): HighDensityRoute;
|
|
6915
|
+
getOptimizedHdRoute(): HighDensityRoute$1;
|
|
6909
6916
|
visualize(): GraphicsObject;
|
|
6910
6917
|
}
|
|
6911
6918
|
|
|
@@ -6927,6 +6934,11 @@ interface UselessViaRemovalSolverInput {
|
|
|
6927
6934
|
enableObstacleDetourShortcuts?: boolean;
|
|
6928
6935
|
/** Keep the first and last route points on their original layers. */
|
|
6929
6936
|
preserveRouteEndpoints?: boolean;
|
|
6937
|
+
/**
|
|
6938
|
+
* Physical copper-layer indices on which each PCB-port terminal can directly
|
|
6939
|
+
* accept a route endpoint without a via, keyed by PCB port id.
|
|
6940
|
+
*/
|
|
6941
|
+
terminalLayerIndicesByPcbPortId?: ReadonlyMap<string, ReadonlySet<number>>;
|
|
6930
6942
|
}
|
|
6931
6943
|
declare class UselessViaRemovalSolver extends BaseSolver {
|
|
6932
6944
|
private input;
|