Function: getMediaByUrl()
function getMediaByUrl(
url: string,
mediaUrlMap: Map<NVMesh | NVImage, string>,
): NVMesh | NVImage;
Defined in: niivue/data/FileLoader.ts:157
Get media (volume or mesh) by URL from a media URL map
Parameters
| Parameter | Type | Description |
|---|---|---|
url | string | URL to search for |
mediaUrlMap | Map< | NVMesh | NVImage, string> | Map of media objects to URLs |
Returns
The media object if found, undefined otherwise