ker/mod/tfw.view.slider.js
function valueToX(value) {
    const
        rect = this.$.getBoundingClientRect(),
        percent = (value - this.min) / (this.max - this.min);
    return rect.width * percent;
}
function valueToX(value) {
    const
        rect = this.$.getBoundingClientRect(),
        percent = (value - this.min) / (this.max - this.min);
    return rect.width * percent;
}
function valueToX ( value ) { const rect = this . $ . getBoundingClientRect ( ) , percent = ( value - this . min ) / ( this . max - this . min ) ; return rect . width * percent ; }
Convert a value into X position relative to View.

@this ViewXJS
@param   {integer} value - Current value.
@returns {float} X position.
Convert a value into X position relative to View .