@tscircuit/capacity-autorouter 0.0.312 → 0.0.314
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 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { ConnectivityMap } from 'circuit-json-to-connectivity-map';
|
|
|
3
3
|
import * as graphics_debug from 'graphics-debug';
|
|
4
4
|
import { GraphicsObject, Rect, Circle, Line, Point as Point$5 } from 'graphics-debug';
|
|
5
5
|
import { BaseSolver as BaseSolver$1 } from '@tscircuit/solver-utils';
|
|
6
|
+
import Flatbush from 'flatbush';
|
|
6
7
|
import { ViaTile, ViaGraphSolver, ViaByNet, JumperGraphSolver, JRegion, JPort, Region, RegionPortAssignment, RegionPort, Connection, SolvedRoute, Candidate as Candidate$3, HyperGraph, HyperGraphSolver } from '@tscircuit/hypergraph';
|
|
7
8
|
import { Point3, Polygon } from '@tscircuit/math-utils';
|
|
8
9
|
import { CurvyTraceSolver } from '@tscircuit/curvy-trace-solver';
|
|
@@ -1081,6 +1082,10 @@ declare class SingleHighDensityRouteSolver extends BaseSolver {
|
|
|
1081
1082
|
futureConnections: FutureConnection$1[];
|
|
1082
1083
|
hyperParameters: Partial<HighDensityHyperParameters>;
|
|
1083
1084
|
connMap?: ConnectivityMap;
|
|
1085
|
+
obstacleSegments: IndexedObstacleSegment[];
|
|
1086
|
+
obstacleSegmentIndex: Flatbush | null;
|
|
1087
|
+
obstacleVias: IndexedObstacleVia[];
|
|
1088
|
+
obstacleViaIndex: Flatbush | null;
|
|
1084
1089
|
/** For debugging/animating the exploration */
|
|
1085
1090
|
debug_exploredNodesOrdered: string[];
|
|
1086
1091
|
debug_nodesTooCloseToObstacle: Set<string>;
|
|
@@ -1123,6 +1128,7 @@ declare class SingleHighDensityRouteSolver extends BaseSolver {
|
|
|
1123
1128
|
isNodeTooCloseToObstacle(node: Node, margin?: number, isVia?: boolean): boolean;
|
|
1124
1129
|
isNodeTooCloseToEdge(node: Node, isVia?: boolean): boolean;
|
|
1125
1130
|
doesPathToParentIntersectObstacle(node: Node): boolean;
|
|
1131
|
+
buildObstacleIndexes(): void;
|
|
1126
1132
|
computeH(node: Node): number;
|
|
1127
1133
|
computeG(node: Node): number;
|
|
1128
1134
|
computeF(g: number, h: number): number;
|
|
@@ -1138,6 +1144,24 @@ declare class SingleHighDensityRouteSolver extends BaseSolver {
|
|
|
1138
1144
|
_step(): void;
|
|
1139
1145
|
visualize(): GraphicsObject;
|
|
1140
1146
|
}
|
|
1147
|
+
type IndexedObstacleSegment = {
|
|
1148
|
+
z: number;
|
|
1149
|
+
A: {
|
|
1150
|
+
x: number;
|
|
1151
|
+
y: number;
|
|
1152
|
+
z: number;
|
|
1153
|
+
};
|
|
1154
|
+
B: {
|
|
1155
|
+
x: number;
|
|
1156
|
+
y: number;
|
|
1157
|
+
z: number;
|
|
1158
|
+
};
|
|
1159
|
+
connectedToCurrentConnection: boolean;
|
|
1160
|
+
};
|
|
1161
|
+
type IndexedObstacleVia = {
|
|
1162
|
+
x: number;
|
|
1163
|
+
y: number;
|
|
1164
|
+
};
|
|
1141
1165
|
|
|
1142
1166
|
declare class IntraNodeRouteSolver extends BaseSolver {
|
|
1143
1167
|
getSolverName(): string;
|