fix(viewport): Initial blank image on SR/SEG initial display (#3304)

* fix: Blank display area on initial DICOM SR load

* Docs

* Fix a NPE
This commit is contained in:
Bill Wallace authored and GitHub committed 2023-04-05 17:26:51 -04:00
1 parent 45a34ae0fe
commit d3da969d23
4 files changed
+97 -17

No files matched your search

+13 -13
View File
@@ -1,8 +1,11 @@
import React from 'react';
import getSopClassHandlerModule from './getSopClassHandlerModule';
import getHangingProtocolModule, {
srProtocol,
} from './getHangingProtocolModule';
import onModeEnter from './onModeEnter';
import commandsModule from './commandsModule';
import init from './init';
import getCommandsModule from './commandsModule';
import preRegistration from './init';
import { id } from './id.js';
import toolNames from './tools/toolNames';
import hydrateStructuredReport from './utils/hydrateStructuredReport';
@@ -31,9 +34,7 @@ const dicomSRExtension = {
id,
onModeEnter,
preRegistration({ servicesManager, configuration = {} }) {
init({ servicesManager, configuration });
},
preRegistration,
/**
*
@@ -54,14 +55,11 @@ const dicomSRExtension = {
return [{ name: 'dicom-sr', component: ExtendedOHIFCornerstoneSRViewport }];
},
getCommandsModule({ servicesManager, commandsManager, extensionManager }) {
return commandsModule({
servicesManager,
commandsManager,
extensionManager,
});
},
getCommandsModule,
getSopClassHandlerModule,
getHangingProtocolModule,
// Include dynmically computed values such as toolNames not known till instantiation
getUtilityModule({ servicesManager }) {
return [
{
@@ -75,4 +73,6 @@ const dicomSRExtension = {
};
export default dicomSRExtension;
export { hydrateStructuredReport };
// Put static exports here so they can be type checked
export { hydrateStructuredReport, srProtocol };