Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document callback options offer in runOnImageLoad #61

Closed
kakposoe opened this issue Sep 12, 2019 · 2 comments
Closed

Document callback options offer in runOnImageLoad #61

kakposoe opened this issue Sep 12, 2019 · 2 comments

Comments

@kakposoe
Copy link

Within the documentation, I did not see it mentioned that there is the ability to retrieve data about the loaded image:

macyInstance.runOnImageLoad(function (image) {
  console.log(image.data.img);
  macyInstance.recalculate(true);
}, true);

It would be good to let people know this option is possible.

@kakposoe kakposoe changed the title Document call back options offer in runOnImageLoad Document callback options offer in runOnImageLoad Sep 12, 2019
@jrmd
Copy link
Member

jrmd commented Jan 9, 2020

Hey @kakposoe

Thanks for pointing this out. In previous versions, runOnImageLoad never passed the image to callback, I'll update the README

@kakposoe
Copy link
Author

@jrmd Thanks for clearing up and thank you for your work on this.

@jrmd jrmd closed this as completed in b81520c Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants