Suppose something is being done on a sort of family tree. Those. connected blocks. Links are depicted in simple lines.
1) How to implement automatic line drawing. (Blocks are set on the page, and links are rendered depending on the blocks.)
2) How to redraw connections if blocks can be dragged?
Honestly, I do not even know where to start. For the simplest example, let's take that there are 2 square divs. It is necessary that their centers are connected by a line. And she was under div'ami.