mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 04:10:04 +01:00
Fix : add a step in the demo
This commit is contained in:
170443
dist/image-sequencer.js
vendored
170443
dist/image-sequencer.js
vendored
File diff suppressed because one or more lines are too long
@@ -72,10 +72,9 @@
|
||||
//sequencer.addStep('plot');
|
||||
|
||||
$('.add-step').click(function(e) {
|
||||
|
||||
e.preventDefault();
|
||||
sequencer.addStep($('.select-module').val());
|
||||
sequencer.run(); // later we might only run this step, if we can fetch the image output from the previous
|
||||
sequencer.run(document.image); // later we might only run this step, if we can fetch the image output from the previous
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -89,6 +89,7 @@ ImageSequencer = function ImageSequencer(options) {
|
||||
image.onload = function() {
|
||||
run(image);
|
||||
if (callback) callback(image);
|
||||
document.image = image;
|
||||
}
|
||||
image.src = src;
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ module.exports = function ImageSelect(options) {
|
||||
|
||||
image = new Image();
|
||||
image.src = event.target.result;
|
||||
|
||||
document.image = image;
|
||||
el.html(image); // may be redundant
|
||||
|
||||
// this is done once per image:
|
||||
|
||||
Reference in New Issue
Block a user