How to limit the moving range of the connection line of the fishbone diagram?

Although setting the maximum and minimum positions can be limited, it is a rectangular area. I hope it can be the effect of Figure 1 instead of Figure 2.


1604557604(1)