mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 11:50:02 +01:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user