konvajs / konva

Konva.js is an HTML5 Canvas JavaScript framework that extends the 2d context by enabling canvas interactivity for desktop and mobile applications.
http://konvajs.org/
Other
11.72k stars 933 forks source link

Find orthogonal path between points #899

Closed YaswanthAkula closed 4 years ago

YaswanthAkula commented 4 years ago

Hi, I have few groups with an image and two rect shapes which can be transformed. . I want to find orthogonal path from one rect shape of a group to another rect shape of another group. How to find the path? And path should not get overlapped with the group.

Thanks

lavrton commented 4 years ago

That is not part of Konva library. You have to find your own implementation for "pathfinding algorithms". Probably this https://qiao.github.io/PathFinding.js/visual/