diff --git a/src/browser/index.ts b/src/browser/index.ts index 21ae3a1a7..e890135bb 100644 --- a/src/browser/index.ts +++ b/src/browser/index.ts @@ -2,6 +2,9 @@ export * from '../core/index.js' +export * from '../core/pipeline-worker-url.js' +export * from '../core/pipelines-base-url.js' + export { default as ReadImageResult } from '../io/ReadImageResult.js' export { default as ReadMeshResult } from '../io/ReadMeshResult.js' diff --git a/src/core/pipeline-worker-url.ts b/src/core/pipeline-worker-url.ts new file mode 100644 index 000000000..dd8ff4f21 --- /dev/null +++ b/src/core/pipeline-worker-url.ts @@ -0,0 +1,9 @@ +let pipelineWorkerUrl: string | URL | null | undefined + +export function setPipelineWorkerUrl (workerUrl: string | URL | null): void { + pipelineWorkerUrl = workerUrl +} + +export function getPipelineWorkerUrl (): string | URL | null | undefined { + return pipelineWorkerUrl +} diff --git a/src/core/pipelines-base-url.ts b/src/core/pipelines-base-url.ts new file mode 100644 index 000000000..eb7a221a1 --- /dev/null +++ b/src/core/pipelines-base-url.ts @@ -0,0 +1,9 @@ +let pipelinesBaseUrl: string | URL | undefined + +export function setPipelinesBaseUrl (baseUrl: string | URL): void { + pipelinesBaseUrl = baseUrl +} + +export function getPipelinesBaseUrl (): string | URL | undefined { + return pipelinesBaseUrl +}