export default class ColorCorrectAdjustController {
    constructor() {
        'ngInject';
    }

    $onInit() {
        let baseGammaOptions = {
            floor: 0,
            ceil: 2,
            step: 0.1,
            precision: 1,
            showTicks: 0.25,
            onEnd: (id, val) => this.onFilterChange(id, val)
        };

        let baseFilterOptions = {
            floor: -60,
            ceil: 60,
            step: 1,
            showTicks: 10,
            onEnd: (id, val) => this.onFilterChange(id, val)
        };

        let alphaOptions = {
            floor: 0,
            disabled: true,
            ceil: 1,
            step: 0.1,
            precision: 2,
            showTicks: 0.2,
            onEnd: (id, val) => this.onFilterChange(id, val)
        };

        let betaOptions = {
            floor: 0,
            disabled: true,
            ceil: 50,
            step: 1,
            showTicks: 10,
            onEnd: (id, val) => this.onFilterChange(id, val)
        };

        let minMaxOptions = {
            floor: 0,
            ceil: 20000,
            step: 10,
            onEnd: (id, val) => this.onFilterChange(id, val)
        };

        this.redGammaOptions = Object.assign({}, baseGammaOptions, {id: 'red'});
        this.greenGammaOptions = Object.assign({}, baseGammaOptions, {id: 'green'});
        this.blueGammaOptions = Object.assign({}, baseGammaOptions, {id: 'blue'});

        this.brightnessOptions = Object.assign({}, baseFilterOptions, {id: 'brightness'});
        this.contrastOptions = Object.assign({}, baseFilterOptions, {id: 'contrast'});

        this.alphaOptions = Object.assign({}, alphaOptions, {id: 'alpha'});
        this.betaOptions = Object.assign({}, betaOptions, {id: 'beta'});
        this.minMaxOptions = Object.assign({}, minMaxOptions, {id: 'minmax'});
    }

    $onChanges(changesObj) {
        if ('correction' in changesObj && 'currentValue' in changesObj.correction) {
            this.myCorrection = Object.assign({}, changesObj.correction.currentValue);
        }
    }

    /**
     * Makes color correction changes available as a component output
     *
     * @param {string} id used to identify correction that has been modified
     * @param {number} val new value for a color correction
     * @returns {null} null
     */
    onFilterChange(id, val) {
        this.myCorrection[id] = val;
        this.onCorrectionChange({newCorrection: Object.assign({}, this.myCorrection)});
    }
}

@@ -1134,44 +1134,136 @@
 id, 
-val) =%3E this.onFilterChange(id, val)
+low, high) =%3E %7B%0A                this.onFilterChange('min', low);%0A                this.onFilterChange('max', high);%0A            %7D
 %0A   

Fix min/max slider in project/edit