mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 11:50:02 +01:00
add API to get steps (#259)
* add API to get steps Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * update dist and refactor Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * rename to getStepOutput Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * api complete Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * add test Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * change indentation to 2 spaces Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * minor fixes Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * new API Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * remove commented code Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * modifiication to invert Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
committed by
Jeffrey Warren
parent
bd490d2515
commit
09c4f250a2
@@ -23,7 +23,10 @@ function AddStep(_sequencer, image, name, o) {
|
||||
options: o
|
||||
};
|
||||
var UI = _sequencer.events;
|
||||
var module = _sequencer.modules[name][0](o,UI);
|
||||
this.getStep = function getStep(offset) {
|
||||
return _sequencer.images[image].steps.slice(offset - 1)[0];
|
||||
}
|
||||
var module = _sequencer.modules[name][0].bind(this)(o, UI);
|
||||
_sequencer.images[image].steps.push(module);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user