mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 04:10:04 +01:00
Phase 1 Completion
This commit is contained in:
11
src/modules/_Step.js
Normal file
11
src/modules/_Step.js
Normal 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];
|
||||
}
|
||||
Reference in New Issue
Block a user