fix(typescript): rename services to fix typescript (#3165)
* fix: Rename services to lower camel case, hp, measure * fix: Rename DisplaySetService instances to displaySetService * fix: Rename CornerstoneViewportService to lower camel case * fix: Added lower case segmentationService rename * rename other services (#3166) * rename uiDialogService * rename toolGroupService * rename uiNotificationService * rename viewportGridService * rename syncGroupService * rename CornerstoneCacheService * Fix a syntax error in hotkeys * Fix a couple of rename issues that were missed --------- Co-authored-by: Alireza <ar.sedghi@gmail.com>
This commit is contained in:
1 parent
a97fb2fc9a
commit
8af0362d12
97 files changed
+934
-908
No files matched your search
@@ -58,7 +58,7 @@ function ViewerLayout({
|
||||
appConfig.showLoadingIndicator
|
||||
);
|
||||
|
||||
const { HangingProtocolService } = servicesManager.services;
|
||||
const { hangingProtocolService } = servicesManager.services;
|
||||
|
||||
const { hotkeyDefinitions, hotkeyDefaults } = hotkeysManager;
|
||||
const versionNumber = process.env.VERSION_NUMBER;
|
||||
@@ -167,11 +167,11 @@ function ViewerLayout({
|
||||
};
|
||||
|
||||
useEffect(() => {
|
||||
const { unsubscribe } = HangingProtocolService.subscribe(
|
||||
HangingProtocolService.EVENTS.HANGING_PROTOCOL_APPLIED_FOR_VIEWPORT,
|
||||
const { unsubscribe } = hangingProtocolService.subscribe(
|
||||
hangingProtocolService.EVENTS.HANGING_PROTOCOL_APPLIED_FOR_VIEWPORT,
|
||||
|
||||
// Todo: right now to set the loading indicator to false, we need to wait for the
|
||||
// HangingProtocolService to finish applying the viewport matching to each viewport,
|
||||
// hangingProtocolService to finish applying the viewport matching to each viewport,
|
||||
// however, this might not be the only approach to set the loading indicator to false. we need to explore this further.
|
||||
({ progress }) => {
|
||||
if (progress === 100) {
|
||||
@@ -183,7 +183,7 @@ function ViewerLayout({
|
||||
return () => {
|
||||
unsubscribe();
|
||||
};
|
||||
}, [HangingProtocolService]);
|
||||
}, [hangingProtocolService]);
|
||||
|
||||
const getViewportComponentData = viewportComponent => {
|
||||
const { entry } = getComponent(viewportComponent.namespace);
|
||||
|
||||
Reference in new issue
Block a user