mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-12 03:10:03 +01:00
Restructure API (#824)
* Change addsteps(), loadImages(), run() and default UI * Restructure API completely * Add updated dist files * Removed extra comments * Indentation improved * Update README.md
This commit is contained in:
committed by
Jeffrey Warren
parent
3d1bbe5940
commit
2f21bec80a
@@ -17,7 +17,7 @@ test('benchmark all modules', function(t) {
|
||||
var sequencer = ImageSequencer({ ui: false, inBrowser: false });
|
||||
var mods = Object.keys(sequencer.modules);
|
||||
|
||||
sequencer.loadImages(imageName, image);
|
||||
sequencer.loadImages(image);
|
||||
sequencer.addSteps(mods[0]);
|
||||
global.start = Date.now()
|
||||
global.idx = 0
|
||||
@@ -27,7 +27,6 @@ test('benchmark all modules', function(t) {
|
||||
var end = Date.now();
|
||||
console.log("Module " + mods[0] + " ran in: " + (end - global.start) + " milliseconds");
|
||||
mods.splice(0, 1);
|
||||
// sequencer.removeSteps(sequencer.images.image1.steps.length - 1);
|
||||
if (mods.length > 1) { //Last one is test module, we need not benchmark it
|
||||
sequencer.steps[global.idx].output.src = image;
|
||||
global.idx++;
|
||||
|
||||
Reference in New Issue
Block a user