FranklinWaller / ImageCutter.js

A JavaScript image cutter for the browser
MIT License
7 stars 0 forks source link

Additional factory method #1

Open Thomasvdam opened 7 years ago

Thomasvdam commented 7 years ago

Rather than having to wait on the init() call after constructing a new instance, it would be nice to have the option to use an async factory method.

Example:

const cutter = await createNewCutter('image_url');

cutter.cut(10, 10);
FranklinWaller commented 7 years ago

Will look into it, ofcourse pull requests are welcome ;)