UNPKG

itk-wasm

Version:

High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.

23 lines (18 loc) 738 B
// Generated file. To retain edits, remove this comment. import { getPipelineWorkerUrl as itkWasmGetPipelineWorkerUrl } from 'itk-wasm' let pipelineWorkerUrl: string | URL | null | undefined // Use the version shipped with an app's bundler const defaultPipelineWorkerUrl = null export function setPipelineWorkerUrl (workerUrl: string | URL | null): void { pipelineWorkerUrl = workerUrl } export function getPipelineWorkerUrl (): string | URL | null { if (typeof pipelineWorkerUrl !== 'undefined') { return pipelineWorkerUrl } const itkWasmPipelineWorkerUrl = itkWasmGetPipelineWorkerUrl() if (typeof itkWasmPipelineWorkerUrl !== 'undefined') { return itkWasmPipelineWorkerUrl } return defaultPipelineWorkerUrl }