mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-13 03:40:03 +01:00
Change options.initial_image to options.initialImage
This commit is contained in:
12
dist/image-sequencer.js
vendored
12
dist/image-sequencer.js
vendored
@@ -184151,7 +184151,7 @@ ImageSequencer = function ImageSequencer(options) {
|
||||
options = options || {};
|
||||
options.inBrowser = options.inBrowser || typeof window !== 'undefined';
|
||||
if (options.inBrowser) options.ui = options.ui || require('./UserInterface');
|
||||
options.initial_image = "";
|
||||
options.initialImage = "";
|
||||
|
||||
var image,
|
||||
steps = [],
|
||||
@@ -184198,8 +184198,8 @@ ImageSequencer = function ImageSequencer(options) {
|
||||
if (previousStep) {
|
||||
// connect output of last step to input of this step
|
||||
previousStep.options.output = function output(image) {
|
||||
if (sequencer.steps[0].options.initial_image) {
|
||||
options.initial_image = sequencer.steps[0].options.initial_image;
|
||||
if (sequencer.steps[0].options.initialImage) {
|
||||
options.initialImage = sequencer.steps[0].options.initialImage;
|
||||
}
|
||||
log('running module "' + name + '"');
|
||||
// display the image in any available ui
|
||||
@@ -184239,7 +184239,7 @@ ImageSequencer = function ImageSequencer(options) {
|
||||
image.onload = function() {
|
||||
run(image);
|
||||
if (callback) callback(image);
|
||||
options.initial_image = image;
|
||||
options.initialImage = image;
|
||||
}
|
||||
image.src = src;
|
||||
}
|
||||
@@ -184386,7 +184386,7 @@ module.exports = function ImageSelect(options) {
|
||||
|
||||
image = new Image();
|
||||
image.src = e.target.result;
|
||||
options.initial_image = image;
|
||||
options.initialImage = image;
|
||||
el.html(image); // may be redundant
|
||||
|
||||
// this is done once per image:
|
||||
@@ -184412,7 +184412,7 @@ module.exports = function ImageSelect(options) {
|
||||
// this module is unique because it creates the image
|
||||
function draw(image) {
|
||||
el.html(image);
|
||||
options.initial_image = image;
|
||||
options.initialImage = image;
|
||||
if (options.output) options.output(image);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user