code: function tryRepairConnectionEnd(moved, other, newDocking, points) {
    var waypoints = points.slice().reverse();
  
    waypoints = _tryRepairConnectionSide(moved, other, newDocking, waypoints);
  
    return waypoints ? waypoints.reverse() : null;
  }
docs: 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