mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 11:50:02 +01:00
Minimize mod req (#289)
* remove trailing spaces from Run.js Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * minimize module requirements demonstrated with invert fixes #122 Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * refactored modules Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * update docs Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * remove all trailing spaces from all files Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * fixing crop module Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * fix Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * update contributing.md Signed-off-by: tech4GT <varun.gupta1798@gmail.com>
This commit is contained in:
committed by
Jeffrey Warren
parent
5132612dc2
commit
8d6b82d988
@@ -1,4 +1,4 @@
|
||||
// add steps to the sequencer
|
||||
// add steps to the sequencer
|
||||
// TODO: reduce redundancy with InsertStep; this should be a specific usage of InsertStep at the final position
|
||||
function AddStep(_sequencer, image, name, o) {
|
||||
|
||||
@@ -25,7 +25,12 @@ function AddStep(_sequencer, image, name, o) {
|
||||
options: o
|
||||
};
|
||||
var UI = _sequencer.events;
|
||||
|
||||
// Tell UI that a step has been set up.
|
||||
o = o || {};
|
||||
UI.onSetup(o.step);
|
||||
var module = _sequencer.modules[name][0](o, UI);
|
||||
|
||||
_sequencer.images[image].steps.push(module);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user