How to create a line/path between two objects. Start and end point of path/line should not begin/end at the center of the respective object. Below i'm attaching the screenshot of sample. I need to calculate the logic to find the red line at any position. Black line is wrong one.
And it is purely based on SVG not html elements.
Thanks in advance