Skip to content

Conversation

@jingsam
Copy link

@jingsam jingsam commented Jul 19, 2016

No description provided.

@bsudekum
Copy link

Thanks for checking this out @jingsam. I'd like like to keep tileSize as an optional parameter. Can we check for tileSize and if it's not present, use 256?

@jingsam
Copy link
Author

jingsam commented Jul 19, 2016

OK, already done

@jingsam
Copy link
Author

jingsam commented Jul 20, 2016

Fixed more bugs. @bsudekum

@jingsam
Copy link
Author

jingsam commented Jul 20, 2016

Pokémon GO! I caught six bugs today in abaculus 🎱

@jingsam
Copy link
Author

jingsam commented Jul 22, 2016

@bsudekum would you mind to merge these PRs and publish a new version to npm?

@bsudekum
Copy link

Also cc @tmcw @camilleanne. There are a decent amount of changes here.

center.w = Math.round(center.w * s);
center.h = Math.round(center.h * s);

if (center.w >= limit || center.h >= limit) throw new Error('Desired image is too large.');

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is limit and this check being removed?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Throw errors in functions is not a good practice, put it in callback may be better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants