feat(studyPrefetcher): Study Prefetcher (#4206)

This commit is contained in:
Leonardo Campos authored and GitHub committed 2024-06-28 08:58:39 -04:00
1 parent 257cc477cd
commit 2048b19484
24 files changed
+992 -98

No files matched your search

@@ -12,7 +12,14 @@ window.config = {
showWarningMessageForCrossOrigin: true,
showCPUFallbackMessage: true,
showLoadingIndicator: true,
experimentalStudyBrowserSort: false,
strictZSpacingForVolumeViewport: true,
studyPrefetcher: {
enabled: true,
displaySetsCount: 2,
maxNumPrefetchRequests: 10,
order: 'closest',
},
defaultDataSourceName: 'dicomweb',
dataSources: [
{
@@ -47,4 +54,7 @@ window.config = {
},
},
],
httpErrorHandler: error => {
console.warn(`HTTP Error Handler (status: ${error.status})`, error);
},
};
+2
View File
@@ -20,6 +20,7 @@ import {
CustomizationService,
PanelService,
WorkflowStepsService,
StudyPrefetcherService,
// utils,
} from '@ohif/core';
@@ -71,6 +72,7 @@ async function appInit(appConfigOrFunc, defaultExtensions, defaultModes) {
PanelService.REGISTRATION,
WorkflowStepsService.REGISTRATION,
StateSyncService.REGISTRATION,
[StudyPrefetcherService.REGISTRATION, appConfig.studyPrefetcher],
]);
errorHandler.getHTTPErrorHandler = () => {