code: function percentToValue(percent) {
        var adjustedPercent = invert ? (1 - percent) : percent;
        return (min + adjustedPercent * (max - min));
      }
docs: Convert percentage offset on slide to equivalent model value
  @param percent
  @returns {*}