react-slider.js
function (value) {
      var range = this.props.max - this.props.min;
      if (range === 0) {
        return 0;
      }
      var ratio = (value - this.props.min) / range;
      return ratio * this.state.upperBound;
    }
function (value) {
      var range = this.props.max - this.props.min;
      if (range === 0) {
        return 0;
      }
      var ratio = (value - this.props.min) / range;
      return ratio * this.state.upperBound;
    }
function ( value ) { var range = this . props . max - this . props . min ; if ( range === 0 ) { return 0 ; } var ratio = ( value - this . props . min ) / range ; return ratio * this . state . upperBound ; }
calculates the offset of a handle in pixels based on its value.
calculates the offset of a handle in pixels based on its value .