index.js
function(dimensions, usedDimensions, usedValues) {
        var activeDimensions = new Array(dimensions.length);
        var valueCounter = 1;
        for(var i=0; i<dimensions.length; i++) {
            var dimensionName;
            for(dimensionName in dimensions[i]){break}
            if(usedDimensions[dimensionName] === undefined) {
                activeDimensions[i] = 0;
                continue;
            }
            activeDimensions[i] = 1;
            this.dimensionsList.push(dimensionName);
            var labelCollector = {};
            valueCounter = this._dimensionWalk(dimensions[i][dimensionName], usedValues[dimensionName],
                valueCounter, [0], this.precedenceMap, labelCollector, this.numberToValue);
            this.valueToNumber[dimensionName] = labelCollector;
        }
        return activeDimensions;
    }
function(dimensions, usedDimensions, usedValues) {
        var activeDimensions = new Array(dimensions.length);
        var valueCounter = 1;
        for(var i=0; i<dimensions.length; i++) {
            var dimensionName;
            for(dimensionName in dimensions[i]){break}
            if(usedDimensions[dimensionName] === undefined) {
                activeDimensions[i] = 0;
                continue;
            }
            activeDimensions[i] = 1;
            this.dimensionsList.push(dimensionName);
            var labelCollector = {};
            valueCounter = this._dimensionWalk(dimensions[i][dimensionName], usedValues[dimensionName],
                valueCounter, [0], this.precedenceMap, labelCollector, this.numberToValue);
            this.valueToNumber[dimensionName] = labelCollector;
        }
        return activeDimensions;
    }
function ( dimensions , usedDimensions , usedValues ) { var activeDimensions = new Array ( dimensions . length ) ; var valueCounter = 1 ; for ( var i = 0 ; i < dimensions . length ; i ++ ) { var dimensionName ; for ( dimensionName in dimensions [ i ] ) { break } if ( usedDimensions [ dimensionName ] === undefined ) { activeDimensions [ i ] = 0 ; continue ; } activeDimensions [ i ] = 1 ; this . dimensionsList . push ( dimensionName ) ; var labelCollector = { } ; valueCounter = this . _dimensionWalk ( dimensions [ i ] [ dimensionName ] , usedValues [ dimensionName ] , valueCounter , [ 0 ] , this . precedenceMap , labelCollector , this . numberToValue ) ; this . valueToNumber [ dimensionName ] = labelCollector ; } return activeDimensions ; }
Evaluate dimensions and omit unused dimensions.
@param dimensions {array}
@param usedDimensions {object}
@param usedValues {object}
@returns {array}
@private
Evaluate dimensions and omit unused dimensions .