@cornerstonejs/dicom-image-loader
Version:
Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file
21 lines (20 loc) • 324 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,
};