mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-14 04:10:04 +01:00
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:
9568
dist/image-sequencer.js
vendored
9568
dist/image-sequencer.js
vendored
File diff suppressed because one or more lines are too long
2
dist/image-sequencer.min.js
vendored
2
dist/image-sequencer.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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">\
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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";
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Invert",
|
"name": "Invert",
|
||||||
|
"description": "Inverts the image.",
|
||||||
"inputs": {
|
"inputs": {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user