import { type EmulatedCanvas2D } from "https://deno.land/x/canvas@v1.0.0/mod.ts";
Methods
decodeImage(bytes: ArrayBuffer | Uint8Array): SkImage
Decodes an image with the given bytes.
getContext(type: string): EmulatedCanvas2DContext | null
Returns an emulated canvas2d context if type == '2d', null otherwise.
Loads the given font with the given descriptors. Emulates new FontFace().
makePath2D(str?: string): EmulatedPath2D
Returns an new emulated Path2D object.