Step descriptions (work in progress) (#135)

* additional changes, not sure of yet

* working, but probably redundant code

* remove comment line

* rebuild
This commit is contained in:
Jeffrey Warren
2017-10-13 13:16:07 -04:00
committed by GitHub
parent 1c7f7c15af
commit bef53ef1a2
7 changed files with 4592 additions and 4988 deletions

9568
dist/image-sequencer.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -31,6 +31,8 @@ window.onload = function() {
onSetup: function(step) { onSetup: function(step) {
if (step.options && step.options.description) step.description = step.options.description
step.ui = '\ step.ui = '\
<div class="row step">\ <div class="row step">\
<div class="col-md-4 details">\ <div class="col-md-4 details">\

View File

@@ -12,6 +12,8 @@ function InsertStep(ref, image, index, name, o) {
o.step = { o.step = {
name: o.name, name: o.name,
description: o.description,
url: o.url,
ID: o.number, ID: o.number,
imageName: o.image, imageName: o.image,
inBrowser: ref.options.inBrowser, inBrowser: ref.options.inBrowser,

View File

@@ -46,6 +46,7 @@ function LoadImage(ref, name, src, main_callback) {
function loadImage(name, src) { function loadImage(name, src) {
var step = { var step = {
name: "load-image", name: "load-image",
description: "This initial step loads and displays the original image without any modifications.",
ID: ref.options.sequencerCounter++, ID: ref.options.sequencerCounter++,
imageName: name, imageName: name,
inBrowser: ref.options.inBrowser, inBrowser: ref.options.inBrowser,

View File

@@ -1,7 +1,7 @@
/* /*
* Display only the green channel * Invert the image
*/ */
module.exports = function GreenChannel(options,UI) { module.exports = function Invert(options,UI) {
options = options || {}; options = options || {};
options.title = "Invert Colors"; options.title = "Invert Colors";

View File

@@ -1,5 +1,6 @@
{ {
"name": "Invert", "name": "Invert",
"description": "Inverts the image.",
"inputs": { "inputs": {
} }
} }