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
@@ -35,8 +35,8 @@ function TrackedCornerstoneViewport(props) {
|
||||
const { t } = useTranslation('TrackedViewport');
|
||||
|
||||
const {
|
||||
MeasurementService,
|
||||
CornerstoneViewportService,
|
||||
measurementService,
|
||||
cornerstoneViewportService,
|
||||
} = servicesManager.services;
|
||||
|
||||
// Todo: handling more than one displaySet on the same viewport
|
||||
@@ -99,9 +99,9 @@ function TrackedCornerstoneViewport(props) {
|
||||
},
|
||||
});
|
||||
|
||||
CornerstoneViewportService.getRenderingEngine().renderViewport(
|
||||
viewportId
|
||||
);
|
||||
cornerstoneViewportService
|
||||
.getRenderingEngine()
|
||||
.renderViewport(viewportId);
|
||||
|
||||
return;
|
||||
}
|
||||
@@ -112,7 +112,7 @@ function TrackedCornerstoneViewport(props) {
|
||||
},
|
||||
});
|
||||
|
||||
CornerstoneViewportService.getRenderingEngine().renderViewport(viewportId);
|
||||
cornerstoneViewportService.getRenderingEngine().renderViewport(viewportId);
|
||||
|
||||
return () => {
|
||||
annotation.config.style.setViewportToolStyles(viewportId, {});
|
||||
@@ -177,7 +177,7 @@ function TrackedCornerstoneViewport(props) {
|
||||
|
||||
setTrackedMeasurementUID(newTrackedMeasurementUID);
|
||||
|
||||
MeasurementService.jumpToMeasurement(
|
||||
measurementService.jumpToMeasurement(
|
||||
viewportIndex,
|
||||
newTrackedMeasurementUID
|
||||
);
|
||||
@@ -281,8 +281,8 @@ function _getNextMeasurementUID(
|
||||
trackedMeasurementId,
|
||||
trackedMeasurements
|
||||
) {
|
||||
const { MeasurementService } = servicesManager.services;
|
||||
const measurements = MeasurementService.getMeasurements();
|
||||
const { measurementService } = servicesManager.services;
|
||||
const measurements = measurementService.getMeasurements();
|
||||
|
||||
const { trackedSeries } = trackedMeasurements.context;
|
||||
|
||||
|
||||
Reference in new issue
Block a user