feat: Update to WADO Image Loader 4.0.3 to add dynamically imported WebAssembly codec support 🚀 (#2537)

* feat: bump to prerelease of WADO Image Loader for testing

* switch to released versions

* update react-vtkjs-viewport and fix requestpool usage in StudyPrefetcher

* attempt to fix e2e tests for script-tag usage

* fix e2e test error

* switch to using webpack alias in PWA to use dynamic import version of OHIF

* fix copy plugin usage

* try to fix publicpath issue

* bump to 4.0.3

Co-authored-by: Alireza <ar.sedghi@gmail.com>
This commit is contained in:
Erik ZieglerandAlireza authored and GitHub committed 2021-09-23 18:37:29 +02:00
1 parent 36019156da
commit 489d4b0584
14 files changed
+175 -88

No files matched your search

+14 -10
View File
@@ -104,7 +104,7 @@ export class StudyPrefetcher {
* Stop prefetching images.
*/
stopPrefetching() {
cornerstoneTools.requestPoolManager.clearRequestStack('prefetch');
cornerstone.imageLoadPoolManager.clearRequestStack('prefetch');
}
/**
@@ -143,20 +143,24 @@ export class StudyPrefetcher {
*/
prefetchImageIds(imageIds) {
const nonCachedImageIds = this.filterCachedImageIds(imageIds);
const requestPoolManager = cornerstoneTools.requestPoolManager;
const imageLoadPoolManager = cornerstone.imageLoadPoolManager;
let requestFn;
if (this.options.preventCache) {
requestFn = id => cornerstone.loadImage(id);
} else {
requestFn = id => cornerstone.loadAndCacheImage(id);
}
nonCachedImageIds.forEach(imageId => {
requestPoolManager.addRequest(
{},
imageId,
imageLoadPoolManager.addRequest(
requestFn.bind(this, imageId),
this.options.requestType,
this.options.preventCache,
() => {},
noop
{
imageId,
}
);
});
requestPoolManager.startGrabbing();
}
/**