@cleerlycode/cornerstone-wado-image-loader
Version:
Cornerstone ImageLoader for DICOM WADO-URI
27 lines (20 loc) • 315 B
JavaScript
let files = [];
function add (file) {
const fileIndex = files.push(file);
return `dicomfile:${fileIndex - 1}`;
}
function get (index) {
return files[index];
}
function remove (index) {
files[index] = undefined;
}
function purge () {
files = [];
}
export default {
add,
get,
remove,
purge
};