Cleans up all resources associated with this emulated canvas.
Returns an emulated canvas2d context if type == '2d', null otherwise.
Returns an new emulated Path2D object.
Optionalstr: stringan SVG string representing a path.
Returns the current canvas as a base64 encoded image string.
Optionalcodec: stringimage/png by default; image/jpeg also supported.
Optionalquality: number
Decodes an image with the given bytes.