SDK JS
    Preparing search index...

    Interface WorkerSpzGltfSplatDecoderOptions

    Construction options for WorkerSpzGltfSplatDecoder.

    interface WorkerSpzGltfSplatDecoderOptions {
        onDegraded?: (error: BitruviusError) => void;
        poolSize?: number;
        wasmInit?: WasmHostInit;
    }
    Index

    Properties

    onDegraded?: (error: BitruviusError) => void

    Called once if the worker pool cannot be spawned and decoding degrades to the main thread (blocked cross-origin worker, or a CSP without worker-src blob:). The splat layer wires this to its onError.

    poolSize?: number

    Worker pool size (default: ~hardwareConcurrency−1, capped at 4).

    wasmInit?: WasmHostInit

    Where the workers load the decoder .wasm from; see WasmHostInit. The URL/bytes are resolved on the MAIN thread (a worker can't find the package sibling) and forwarded to each worker — e.g. one main-thread fetch via wasmBytes instead of every worker fetching the .wasm. The wasmBytes/wasmUrl precedence is documented once on @bitruvius/geo-core's BitruviusConfig.