Module

x/canvas/mod.ts

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface CanvasKitInitOptions
import { type CanvasKitInitOptions } from "https://deno.land/x/canvas@v1.0.0/mod.ts";

Methods

locateFile(file: string): string

This callback will be invoked when the CanvasKit loader needs to fetch a file (e.g. the blob of WASM code). The correct url prefix should be applied.