Sets where the Draco decoder is fetched from, to self-host it
Call it before loading the first Draco-compressed file, as the decoder loads once, on the first decode. A relative URL resolves against the page's origin, not the page's path.
Decoder JS and WASM URLs; a field left out keeps its current value
setDracoDecoderPath({ jsUrl: '/draco/draco_wasm_wrapper.js', wasmUrl: '/draco/draco_decoder.wasm',}); Copy
setDracoDecoderPath({ jsUrl: '/draco/draco_wasm_wrapper.js', wasmUrl: '/draco/draco_decoder.wasm',});
Sets where the Draco decoder is fetched from, to self-host it
Call it before loading the first Draco-compressed file, as the decoder loads once, on the first decode. A relative URL resolves against the page's origin, not the page's path.