refactor how we slowly build our studies array

This commit is contained in:
dannyrb committed 2020-05-18 16:20:39 -04:00
1 parent 351e0f76d6
commit c55d069e32
5 files changed
+214 -164

No files matched your search

-14
View File
@@ -8,20 +8,6 @@ import MeasurementTable from './MeasurementTable.js';
// - cancel promises when component is destroyed
// - show errors in UI for thumbnails if promise fails
function getImageSrc(imageId, { cornerstone }) {
return new Promise((resolve, reject) => {
cornerstone
.loadAndCacheImage(imageId)
.then(image => {
const canvas = document.createElement('canvas');
cornerstone.renderToCanvas(canvas, image);
resolve(canvas.toDataURL());
})
.catch(reject);
});
}
function getPanelModule({
commandsManager,
extensionManager,