Each box is defined by top-left corner coordinates and witdh and height.
Each connection is a path defined by start coordinates and end coordinates.
I want to connect the boxes by path which seems like if it was going from the center of one box to the center of the other box, however I want the path to begin and end at the appropriate box borders (plus some spacing).
You can see example here:
[url removed, login to view]
The function arrow_path() works only if the boxes are squares, as you can see the black boxes and connections. As soon as a box is rectangle, it doesn't work well, as you can see in red color.
I wish you to rewrite the arrow_path function so it works even with rectangles.
After you finish the function, it will be tested in the same example, and must connect the red boxes from the example by a nice connection line. Furthermore if the position of rectangles is different and width/height is different, your function must always return correct path coordinates for proper connection line.
You may rewrite the function entirely, or you may just fix my function there.
Được trao cho:
13 freelancer đang chào giá trung bình $124 cho công việc này