You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
None of the methods check if you picked a point inside of the grid, they all expect you to make sure you only pick start position and end position that is inside of the grid.
Your solutions only avoids the exception, but since the algorithm will never be able to find a path that leads outside of the grid you would be better off just canceling the pathfinding operation right away.
Anyway I don't think this lib needs to handle that for you.
Issue path: src/finders/JumpPointFinderBase.js
Issue detailed
Line where is issue
My solution:
startNode = this.startNode = grid.getNodeAt(startX, startY) || {}
The text was updated successfully, but these errors were encountered: