skia
    Preparing search index...

    Interface CanvasKitInitOptions

    interface CanvasKitInitOptions {
        instantiateWasm?(
            imports: Record<string, any>,
            successCallback: (instance: Instance) => void,
        ): false | {} | Exports;
        locateFile?(file: string): string;
    }
    Index

    Methods

    • 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.

      Parameters

      • file: string

        the name of the file that is about to be loaded.

      Returns string