static clampToRangeLimits(value, settings) {
        //XXX This function always assume `settings.minimumValue` is lower than `settings.maximumValue`
        return Math.max(settings.minimumValue, Math.min(settings.maximumValue, value));
    }
Return the value clamped to the nearest minimum/maximum value, as defined in the settings.

@param {string|number} value
@param {object} settings
@returns {number}