OptionallocateOptionalrendererRenderer type: 'sw' (Software), 'gl' (WebGL), or 'wg' (WebGPU). Default: 'gl'. WebGPU provides best performance but requires Chrome 113+ or Edge 113+.
OptionalonGlobal error handler for all ThorVG operations. If provided, errors will be passed to this handler instead of being thrown.
OptionalthreadsNumber of worker threads count. Ignored in default preset. Default: 0.
Optional function to locate WASM files. If not provided, assumes WASM files are in the same directory as the JavaScript bundle.