@tscircuit/capacity-autorouter 0.0.127 → 0.0.128
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 +19 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -6
package/dist/index.d.ts
CHANGED
|
@@ -271,9 +271,28 @@ declare class CapacityMeshNodeSolver2_NodeUnderObstacle extends CapacityMeshNode
|
|
|
271
271
|
opts: CapacityMeshNodeSolverOptions;
|
|
272
272
|
VIA_DIAMETER: number;
|
|
273
273
|
OBSTACLE_MARGIN: number;
|
|
274
|
+
/**
|
|
275
|
+
* The threshold for the percentage of a single-layer node that must be
|
|
276
|
+
* covered by obstacles to be considered "under an obstacle"
|
|
277
|
+
*/
|
|
278
|
+
OVERLAP_THRESHOLD_FOR_SINGLE_LAYER_NODES: number;
|
|
274
279
|
constructor(srj: SimpleRouteJson, opts?: CapacityMeshNodeSolverOptions);
|
|
275
280
|
isNodeCompletelyOutsideBounds(node: CapacityMeshNode): boolean;
|
|
276
281
|
isNodePartiallyOutsideBounds(node: CapacityMeshNode): boolean;
|
|
282
|
+
/**
|
|
283
|
+
* Calculate the percentage of node area covered by obstacles
|
|
284
|
+
*/
|
|
285
|
+
getObstacleCoveragePercentage(node: CapacityMeshNode): number;
|
|
286
|
+
/**
|
|
287
|
+
* Check if a single-layer node should be filtered due to obstacle coverage
|
|
288
|
+
*/
|
|
289
|
+
shouldFilterSingleLayerNodeForObstacle(node: CapacityMeshNode): boolean;
|
|
290
|
+
/**
|
|
291
|
+
* Check if a node should be filtered due to obstacles.
|
|
292
|
+
* Single-layer nodes: filtered only if >20% covered
|
|
293
|
+
* Multi-layer nodes: filtered if any overlap
|
|
294
|
+
*/
|
|
295
|
+
shouldFilterNodeForObstacle(node: CapacityMeshNode): boolean;
|
|
277
296
|
createChildNodeAtPosition(parent: CapacityMeshNode, opts: {
|
|
278
297
|
center: {
|
|
279
298
|
x: number;
|