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.
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 thefillStyle
property, I'm first doing a lookup in the Map and replace the value if there is a match.