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

Added support for createPattern() #93

Merged
merged 3 commits into from
Feb 17, 2021

Conversation

mizrael
Copy link
Contributor

@mizrael mizrael commented Dec 3, 2020

Added support for the createPattern() method. Since the original canvas method is returning an opaque object, I also had to update the TS code to cache the results and return a key to the caller instead.
Then, each time there's a call to set the fillStyle property, I'm first doing a lookup in the Map and replace the value if there is a match.

@mizrael mizrael changed the title Add create pattern Added support for createPattern() Dec 3, 2020
@attilah attilah linked an issue Feb 15, 2021 that may be closed by this pull request
Copy link
Member

@attilah attilah left a comment

Choose a reason for hiding this comment

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

Thanks for the contrib, I'm merging this for the preview release as we discussed.

@mizrael
Copy link
Contributor Author

mizrael commented Feb 17, 2021

Thanks for the contrib, I'm merging this for the preview release as we discussed.

thanks!

@attilah attilah merged commit c5d3815 into BlazorExtensions:master Feb 17, 2021
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.

Is there no support for getImageData (pulling pixels off the canvas)?
2 participants