Position connection endpoints in the middle of the component edges.