Fixes Grid-Overlay with node Compatibility (#1024)

* Fixes Grid-Overlay

* Tests

* Correct bounds

Co-Authored-By: aashna27 <aashna.mittal27@gmail.com>

* Correct bounds

Co-Authored-By: aashna27 <aashna.mittal27@gmail.com>

* Correct bounds

Co-Authored-By: aashna27 <aashna.mittal27@gmail.com>

* Correct bounds

Co-Authored-By: aashna27 <aashna.mittal27@gmail.com>
This commit is contained in:
aashna27
2019-04-27 01:10:22 +05:30
committed by Jeffrey Warren
parent 9eed50153c
commit ff8c27eac2
4 changed files with 70 additions and 53 deletions

View File

@@ -9,16 +9,9 @@ module.exports = function GridOverlay(options,UI) {
progressObj.overrideFlag = true;
var step = this;
if (!options.step.inBrowser) { // This module is only for browser
this.output = input;
callback();
}
else{
var priorStep = this.getStep(-1); // get the previous step to add text onto it.
function extraManipulation(pixels) {
//if (options.step.inBrowser)
pixels = require('./GridOverlay')(pixels, options,priorStep);
pixels = require('./GridOverlay')(pixels, options);
return pixels
}
@@ -38,7 +31,7 @@ module.exports = function GridOverlay(options,UI) {
callback: callback
});
}
}
return {