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

Chaining #18

Open
Mottie opened this issue Nov 23, 2012 · 4 comments
Open

Chaining #18

Mottie opened this issue Nov 23, 2012 · 4 comments

Comments

@Mottie
Copy link

Mottie commented Nov 23, 2012

I just wanted to add an enhancement request. If you could allow the chaining of canvas functions, that would be awesome :)

Check out LeaVerou's chainvas for inspiration.

@soulwire
Copy link
Owner

I'm rewriting sketch soon to add some nice sugar and reduce code. I like this idea - it shouldn't add much to the codebase to wrap up prototype methods in a callback that returns the context. I'll probably add it in v1.1 :)

@nitriques
Copy link
Contributor

+1

soulwire pushed a commit that referenced this issue May 28, 2013
…ds that would otherwise return `void`. This can be switched on by passing `true` as the `chain` flag in options (`false` by default). #18
@soulwire
Copy link
Owner

Just pushed feature this to it's own branch. Check it out - I'll merge into master once thoroughly tested.

soulwire pushed a commit that referenced this issue May 28, 2013
… key, value pairs or a hash of properties to set. Updated drawing example to illustrate this. #18
soulwire pushed a commit that referenced this issue May 28, 2013
@Mottie
Copy link
Author

Mottie commented May 28, 2013

Awesome! Thanks!

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

3 participants