Decoder options; see SpzDecoderOptions. The default {}
lets the browser bundler resolve the sibling wasm.
Decode one SPZ file to a flat gaussian cloud.
The raw .spz file bytes (any SPZ version; gzip framing is handled).
The decoded SpzGaussianCloud (parallel Float32Arrays in the
file's local meters).
If the wasm fails to initialize (see WasmHostInit), or if bytes
are not a valid/recognized SPZ stream — the wasm decode rejects.
Decodes a standalone Niantic SPZ file to a flat SpzGaussianCloud.
Remarks
Handles every SPZ version — v1, v2, v3, and v4 (legacy gzip-framed v1–v3 are auto-detected by magic). Decode-only; the encoder is not shipped in the wasm. The wasm is a lazily-initialized singleton — the first
decodeon the page pays the init cost; reuse one instance for many files.Example