File: init.coffee

Defined in: lib/psd

Variables Summary

module.exports =
{
  extended: function(PSD) {
    this.fromFile = function(file) {
      return new PSD(fs.readFileSync(file));
    };
    return this.open = function(file) {
      return new RSVP.Promise(function(resolve, reject) {
        return fs.readFile(file, (function(_this) {
          return function(err, data) {
            var psd;
            if (err) {
              return reject(err);
            }
            psd = new PSD(data);
            psd.parse();
            return resolve(psd);
          };
        })(this));
      });
    };
  }
}

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: