reactflow-edge-routing 0.1.5 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reactflow-edge-routing",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Orthogonal edge routing for React Flow using obstacle-router. Edges route around nodes while pins stay fixed at their anchor points.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -298,8 +298,8 @@ function isEdgeDirectPathBlocked(
298
298
  buffer: number
299
299
  ): boolean {
300
300
  for (const node of nodes) {
301
- if (node.id === srcNodeId || node.id === tgtNodeId) continue;
302
301
  const bounds = Geometry.getNodeBoundsAbsolute(node, nodeById);
302
+ if (node.id === srcNodeId || node.id === tgtNodeId) continue;
303
303
  if (segmentIntersectsRect(srcPt, tgtPt, bounds, buffer)) return true;
304
304
  }
305
305
  return false;