lib/parsermanager.js
function ParserManager(config) {
        this._config = config || {};

        this._supportedUnits = {
            "in": true,
            "cm": true,
            "px": true,
            "mm": true
        };

        this._supportedExtensions = {
            "jpg": true,
            "png": true,
            "gif": true,
            "svg": this._config.hasOwnProperty("svg-enabled") ? !!this._config["svg-enabled"] : true,
            "webp": !!this._config["webp-enabled"]
        };
    }
function ParserManager(config) {
        this._config = config || {};

        this._supportedUnits = {
            "in": true,
            "cm": true,
            "px": true,
            "mm": true
        };

        this._supportedExtensions = {
            "jpg": true,
            "png": true,
            "gif": true,
            "svg": this._config.hasOwnProperty("svg-enabled") ? !!this._config["svg-enabled"] : true,
            "webp": !!this._config["webp-enabled"]
        };
    }
function ParserManager ( config ) { this . _config = config || { } ; this . _supportedUnits = { "in" : true , "cm" : true , "px" : true , "mm" : true } ; this . _supportedExtensions = { "jpg" : true , "png" : true , "gif" : true , "svg" : this . _config . hasOwnProperty ( "svg-enabled" ) ? ! ! this . _config [ "svg-enabled" ] : true , "webp" : ! ! this . _config [ "webp-enabled" ] } ; }
The ParserManager manages parsing, normalization and analysis of layer
names into asset specifications. The config parameter can be used to enable
svg and webp parsing if the "svg-enabled" and "webp-enabled" parameters are
set, resp.

@constructor
@param {object} config
The ParserManager manages parsing normalization and analysis of layer names into asset specifications . The config parameter can be used to enable svg and webp parsing if the svg - enabled and webp - enabled parameters are set resp .