lib/layout/ManhattanLayout.js
function tryRepairConnectionEnd(moved, other, newDocking, points) {
  var waypoints = points.slice().reverse();

  waypoints = _tryRepairConnectionSide(moved, other, newDocking, waypoints);

  return waypoints ? waypoints.reverse() : null;
}
function tryRepairConnectionEnd(moved, other, newDocking, points) {
  var waypoints = points.slice().reverse();

  waypoints = _tryRepairConnectionSide(moved, other, newDocking, waypoints);

  return waypoints ? waypoints.reverse() : null;
}
function tryRepairConnectionEnd ( moved , other , newDocking , points ) { var waypoints = points . slice ( ) . reverse ( ) ; waypoints = _tryRepairConnectionSide ( moved , other , newDocking , waypoints ) ; return waypoints ? waypoints . reverse ( ) : null ; }
Repair a connection from end.

@param {Bounds} moved
@param {Bounds} other
@param {Point} newDocking
@param {Array<Point>} points originalPoints from moved to other

@return {Array<Point>|null} the repaired points between the two rectangles
Repair a connection from end .