getFitsOnRight = (rect, viewport, viewportOffset) => {
  return rect.right < viewport.width - viewportOffset
}
Function that returns if a rect fits on right.
@param {Rect} rect
@param {Object} viewport
@param {Number} viewportOffset
@return {Boolean}