-
Notifications
You must be signed in to change notification settings - Fork 879
Description
Current versus expected behaviour
Note
This is a follow up from #2738 (reply in thread)
Hi @kumilingus !
I've been playing around with the code you gave me in the manhattan-router discussion the other day and I saw something that I thought is worth mentioning. Certain situations lead to the manhattan router creating extra vertices:
I'm aware that this might be (¿?) caused by the step option and because of the way collisions are detected (¿?), which is fine, but if I set the step value to 1 (actually any value below 7), manhattan just stops avoiding any obstacles at all.
I tried debugging the code and re-reading all the docs, and I believe there is a correlation between step and gridSize, but setting the later to the same value doesn't fix the problem.
Why isn't manhattan avoiding obstacles when step < 7 ?
Steps to reproduce
- Go to https://codesandbox.io/p/sandbox/runtime-dream-8ffcy9
- Change
stepto any value below7 - Move the cells and check if the link is avoiding the cells
Version
4.0.4
What browsers are you seeing the problem on?
Chrome, Safari
What operating system are you seeing the problem on?
Mac

