UNPKG

itk-wasm

Version:

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

24 lines (19 loc) 770 B
// Generated file. To retain edits, remove this comment. import { getPipelinesBaseUrl as itkWasmGetPipelinesBaseUrl } from 'itk-wasm' import version from './version.js' let pipelinesBaseUrl: string | URL | undefined let defaultPipelinesBaseUrl: string | URL = `https://cdn.jsdelivr.net/npm/<bindgenPackageName>@${version}/dist/pipelines` export function setPipelinesBaseUrl(baseUrl: string | URL): void { pipelinesBaseUrl = baseUrl } export function getPipelinesBaseUrl(): string | URL { if (typeof pipelinesBaseUrl !== 'undefined') { return pipelinesBaseUrl } const itkWasmPipelinesBaseUrl = itkWasmGetPipelinesBaseUrl() if (typeof itkWasmPipelinesBaseUrl !== 'undefined') { return itkWasmPipelinesBaseUrl } return defaultPipelinesBaseUrl }