UNPKG

@cleerlycode/cornerstone-wado-image-loader

Version:
27 lines (20 loc) 315 B
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 };