Phase 1 Completion

This commit is contained in:
Chinmay Pandhare
2017-06-14 08:20:01 +05:30
parent 95e066fdc7
commit ec2790652c
13 changed files with 344 additions and 352 deletions

11
src/modules/_Step.js Normal file
View File

@@ -0,0 +1,11 @@
module.exports = function(ref,options) {
images = ref.images;
thisimage = images[options.image];
for (i in thisimage.steps){
if (thisimage.steps[i].options.id == options.id) pos = i;
}
olddata = thisimage.steps[pos-1].output;
if (typeof(olddata) == 'undefined') return false;
var newdata = JSON.parse(JSON.stringify(olddata));
return [newdata,pos];
}