@cornerstonejs/nifti-image-loader
Version:
Cornerstone ImageLoader for NIfTI
27 lines (19 loc) • 304 B
JavaScript
let imageIds = [];
function add (imageId, metadata) {
imageIds[imageId] = metadata;
}
function get (imageId) {
return imageIds[imageId];
}
function remove (imageId) {
imageIds[imageId] = undefined;
}
function purge () {
imageIds = [];
}
export default {
add,
get,
remove,
purge
};