function processFile() {
				var _this = this;
				var file = this.get("file");

				return readFile(file).then(function (uri) {
					return _this.addColor(uri);
				}).then(function (uri) {
					var svgDataUri = SVG_URI_PREFIX + escape(uri);
					_this.set({ svgDataUri: svgDataUri });
					return svgDataUri;
				}).then(createImage).then(function (img) {
					return _this.drawSvgOnCanvas(img);
				}).then(function (canvas) {
					var pngDataUri = canvas.toDataURL();
					_this.set({ pngDataUri: pngDataUri });
				}).then(function () {
					return _this.calcSelectors();
				});
			}
/**
    * read the file and create data uris
    * @return {Promise} a Promise that will resolve once the read is done
    */
read the file and create data uris
@return {Promise} a Promise that will resolve once the read is done
read the file and create data uris @return { Promise } a Promise that will resolve once the read is done
function processFile() {
				var _this = this;
				var file = this.get("file");
				return readFile(file).then(function (uri) {
					return _this.addColor(uri);
				}).then(function (uri) {
					var svgDataUri = SVG_URI_PREFIX + escape(uri);
					_this.set({ svgDataUri: svgDataUri });
					return svgDataUri;
				}).then(createImage).then(function (img) {
					return _this.drawSvgOnCanvas(img);
				}).then(function (canvas) {
					var pngDataUri = canvas.toDataURL();
					_this.set({ pngDataUri: pngDataUri });
				}).then(function () {
					return _this.calcSelectors();
				});
			}
function processFile ( ) { var _this = this ; var file = this . get ( "file" ) ; return readFile ( file ) . then ( function ( uri ) { return _this . addColor ( uri ) ; } ) . then ( function ( uri ) { var svgDataUri = SVG_URI_PREFIX + escape ( uri ) ; _this . set ( { svgDataUri : svgDataUri } ) ; return svgDataUri ; } ) . then ( createImage ) . then ( function ( img ) { return _this . drawSvgOnCanvas ( img ) ; } ) . then ( function ( canvas ) { var pngDataUri = canvas . toDataURL ( ) ; _this . set ( { pngDataUri : pngDataUri } ) ; } ) . then ( function ( ) { return _this . calcSelectors ( ) ; } ) ; }
read the file and create data uris
 @return {Promise} a Promise that will resolve once the read is done
read the file and create data uris @return { Promise } a Promise that will resolve once the read is done