this.ratio = function(value, min, max, scope, reverse, logScale) {
        var fraction, scaleLogBase, x;
        scaleLogBase = logScale ? 2.3 : 1;
        if (min === max || (value === min && !reverse) || (value === max && reverse)) {
            return 0;