@tscircuit/capacity-autorouter 0.0.684 → 0.0.685
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 +34 -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
|
@@ -6208,22 +6208,49 @@ declare class SingleRouteUselessViaRemovalSolver extends BaseSolver {
|
|
|
6208
6208
|
hdRouteSHI: HighDensityRouteSpatialIndex;
|
|
6209
6209
|
unsimplifiedRoute: HighDensityRoute;
|
|
6210
6210
|
connMap: ConnectivityMap;
|
|
6211
|
+
outline?: Array<{
|
|
6212
|
+
x: number;
|
|
6213
|
+
y: number;
|
|
6214
|
+
}>;
|
|
6211
6215
|
routeSections: Array<RouteSection>;
|
|
6212
6216
|
currentSectionIndex: number;
|
|
6213
6217
|
TRACE_THICKNESS: number;
|
|
6214
6218
|
OBSTACLE_MARGIN: number;
|
|
6219
|
+
GEOMETRY_SHORTCUT_TRACE_MARGIN: number;
|
|
6220
|
+
GEOMETRY_SHORTCUT_OBSTACLE_MARGIN: number;
|
|
6221
|
+
ENABLE_GEOMETRY_SHORTCUTS: boolean;
|
|
6222
|
+
geometryShortcutsApplied: number;
|
|
6215
6223
|
constructor(params: {
|
|
6216
6224
|
obstacleSHI: ObstacleSpatialHashIndex;
|
|
6217
6225
|
hdRouteSHI: HighDensityRouteSpatialIndex;
|
|
6218
6226
|
unsimplifiedRoute: HighDensityRoute;
|
|
6219
6227
|
connMap: ConnectivityMap;
|
|
6228
|
+
outline?: Array<{
|
|
6229
|
+
x: number;
|
|
6230
|
+
y: number;
|
|
6231
|
+
}>;
|
|
6232
|
+
geometryShortcutTraceMargin?: number;
|
|
6233
|
+
geometryShortcutObstacleMargin?: number;
|
|
6234
|
+
enableGeometryShortcuts?: boolean;
|
|
6220
6235
|
});
|
|
6236
|
+
private getPathLength;
|
|
6237
|
+
private normalizeShortcutPath;
|
|
6238
|
+
private shortcutCrossesOutline;
|
|
6239
|
+
private findGeometryShortcut;
|
|
6240
|
+
private applyGeometryShortcut;
|
|
6221
6241
|
_step(): void;
|
|
6222
6242
|
getConstructorParams(): {
|
|
6223
6243
|
obstacleSHI: ObstacleSpatialHashIndex;
|
|
6224
6244
|
hdRouteSHI: HighDensityRouteSpatialIndex;
|
|
6225
6245
|
unsimplifiedRoute: HighDensityIntraNodeRoute;
|
|
6226
6246
|
connMap: ConnectivityMap;
|
|
6247
|
+
outline: {
|
|
6248
|
+
x: number;
|
|
6249
|
+
y: number;
|
|
6250
|
+
}[] | undefined;
|
|
6251
|
+
geometryShortcutTraceMargin: number;
|
|
6252
|
+
geometryShortcutObstacleMargin: number;
|
|
6253
|
+
enableGeometryShortcuts: boolean;
|
|
6227
6254
|
};
|
|
6228
6255
|
getOptimizedHdRoute(): HighDensityRoute;
|
|
6229
6256
|
visualize(): GraphicsObject;
|
|
@@ -6235,6 +6262,13 @@ interface UselessViaRemovalSolverInput {
|
|
|
6235
6262
|
colorMap: Record<string, string>;
|
|
6236
6263
|
layerCount: number;
|
|
6237
6264
|
connMap: ConnectivityMap;
|
|
6265
|
+
outline?: Array<{
|
|
6266
|
+
x: number;
|
|
6267
|
+
y: number;
|
|
6268
|
+
}>;
|
|
6269
|
+
geometryShortcutTraceMargin?: number;
|
|
6270
|
+
geometryShortcutObstacleMargin?: number;
|
|
6271
|
+
enableGeometryShortcuts?: boolean;
|
|
6238
6272
|
}
|
|
6239
6273
|
declare class UselessViaRemovalSolver extends BaseSolver {
|
|
6240
6274
|
private input;
|