@cleerlycode/cornerstone-wado-image-loader
Version:
Cornerstone ImageLoader for DICOM WADO-URI
18 lines (15 loc) • 394 B
JavaScript
let options = {
// callback allowing customization of the xhr (e.g. adding custom auth headers, cors, etc)
beforeSend (/* xhr, imageId */) {
},
// callback allowing modification of newly created image objects
imageCreated (/* image */) {
},
strict: false
};
export function setOptions (newOptions) {
options = newOptions;
}
export function getOptions () {
return options;
}