|
@ -46,7 +46,6 @@ class BezierBaseEdge extends BaseEdge { |
|
|
distanceToBorder = node.distanceToBorder(ctx, angle); |
|
|
distanceToBorder = node.distanceToBorder(ctx, angle); |
|
|
distanceToPoint = Math.sqrt(Math.pow(pos.x - node.x, 2) + Math.pow(pos.y - node.y, 2)); |
|
|
distanceToPoint = Math.sqrt(Math.pow(pos.x - node.x, 2) + Math.pow(pos.y - node.y, 2)); |
|
|
difference = distanceToBorder - distanceToPoint; |
|
|
difference = distanceToBorder - distanceToPoint; |
|
|
console.log(pos, difference, middle) |
|
|
|
|
|
if (Math.abs(difference) < threshold) { |
|
|
if (Math.abs(difference) < threshold) { |
|
|
break; // found
|
|
|
break; // found
|
|
|
} |
|
|
} |
|
|