BlazorExtensions / Canvas

HTML5 Canvas API implementation for Microsoft Blazor
MIT License
602 stars 145 forks source link

Added support for createPattern() #93

Closed mizrael closed 3 years ago

mizrael commented 3 years ago

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 commented 3 years ago

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

thanks!