Add the pattern class to the fabric js typeings.