Comments (11)
I think it would be better to have a syntax like
sequencer.run(function(out){
//do something with "out"
});
Where out
is the output of final module.
There won't be any issue of order in this way.
Giving run a return value may not work, as run is more of an asynchronous function.
Also, it will render run
unchainable thereafter (run is usually the last method, but still)
from image-sequencer.
from image-sequencer.
from image-sequencer.
run()
already accepts a callback function. I think an onComplete
type syntax could actually work wonders.
sequencer.run().onComplete(funnction(out){
//do something with "out"
});
from image-sequencer.
from image-sequencer.
Thanks a lot for pointing that out!
I don't know how I missed that there.
Looks like I need to make quite a few changes to the Readme
. Will open a PR for that tomorrow.
As for the return issue, I will look into the applications, benefits and shortcomings of each of the methods discussed here and will come up with a solution by tomorrow.
from image-sequencer.
from image-sequencer.
yes re: unchainable, but that's OK!
from image-sequencer.
No, I'd like to clear myself here.
This will work and allow chaining, and this is what we should do:
sequencer.run(function(out){
// do something
});
This will neither work nor allow chaining:
function run() {
...
return this; // this refers to the sequencer here
}
So I will start working on the first one right away.
from image-sequencer.
oh huh, great!
from image-sequencer.
Fixed in #47
from image-sequencer.
Related Issues (20)
- Adding an image sharpening module
- Removing scroll-to-top on mobile devices HOT 5
- Focus stacking module implementation HOT 1
- Halftone angle (in radians) needs to be a decimal instead of an integer HOT 3
- Dependencies Requiring Manual Upgrades HOT 1
- Remove Unused Dependencies HOT 1
- Supported NodeJS Versions HOT 3
- New module idea: ocr text recognition
- Use Modern JS HOT 2
- Can add units to the dimension of the image HOT 10
- How do I specify "executablePath" when calling Puppeteer HOT 5
- yarn.lock vs. package-lock.json HOT 1
- Checklist and coordination for v3.7.2 patch release and v3.7.3 follow-up patch release HOT 8
- Ideas for next release HOT 2
- Yarn complains about [email protected] expecting node 0.8.x HOT 13
- New module idea: descreen/dehalftone/inverse halftone
- Checklist and coordination for v3.8.0 minor release
- Incorrect local path for manipulation.wasm when using as an embedded library in MapKnitter.org
- eslint-error : Expected linebreaks to be 'LF' but found 'CLRF' HOT 1
- all thumbnails are not visible in the add step box HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from image-sequencer.