code: function getDirectionPositionForRange (value, min, max, orientation) {
    return isVertical(orientation) ? (
      // as upper value is used to calculate `top`;
      Math.round(((max - value[1]) / max - min) * 100)
    ) : (
      Math.round((value[0] / max - min) * 100)
    );
  }
docs: Returns rail's position value of `left` for horizontal slider and `top`
  for vertical slider
  @param value
  @param min
  @param max
  @param orientation
  @returns {number} Value in Percentage