SDK JS
    Preparing search index...

    Interface WasmHostInit

    Per-decoder override for where the SPZ decoder .wasm is loaded from. Both fields are optional; when neither is set the loader falls back to the SDK-configured wasmBaseUrl then the bundler-resolved sibling file. The full precedence is documented once on @bitruvius/geo-core's BitruviusConfig.

    Typically only needed in Node/Bun (no bundler asset resolution) or for a cross-origin CDN bundle. The cross-origin pattern is to fetch the bytes on the main thread and pass wasmBytes.

    interface WasmHostInit {
        wasmBytes?: BufferSource;
        wasmUrl?: string | URL;
    }
    Index

    Properties

    Properties

    wasmBytes?: BufferSource

    Pre-fetched .wasm bytes; instantiated directly (no fetch). Highest precedence.

    wasmUrl?: string | URL

    Explicit URL to fetch the .wasm from. Highest precedence after wasmBytes.