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
@@ -7,7 +7,7 @@ export const toolGroupIds = {
|
||||
// MPR: 'mpr',
|
||||
};
|
||||
|
||||
function _initToolGroups(toolNames, Enums, ToolGroupService, commandsManager) {
|
||||
function _initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
|
||||
const tools = {
|
||||
active: [
|
||||
{
|
||||
@@ -65,12 +65,12 @@ function _initToolGroups(toolNames, Enums, ToolGroupService, commandsManager) {
|
||||
},
|
||||
};
|
||||
|
||||
ToolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupIds.CT,
|
||||
tools,
|
||||
toolsConfig
|
||||
);
|
||||
ToolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupIds.PT,
|
||||
{
|
||||
active: tools.active,
|
||||
@@ -83,12 +83,12 @@ function _initToolGroups(toolNames, Enums, ToolGroupService, commandsManager) {
|
||||
},
|
||||
toolsConfig
|
||||
);
|
||||
ToolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupIds.Fusion,
|
||||
tools,
|
||||
toolsConfig
|
||||
);
|
||||
ToolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupIds.default,
|
||||
tools,
|
||||
toolsConfig
|
||||
@@ -116,14 +116,14 @@ function _initToolGroups(toolNames, Enums, ToolGroupService, commandsManager) {
|
||||
},
|
||||
};
|
||||
|
||||
ToolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupService.createToolGroupAndAddTools(
|
||||
toolGroupIds.MIP,
|
||||
mipTools,
|
||||
mipToolsConfig
|
||||
);
|
||||
}
|
||||
|
||||
function initMPRToolGroup(toolNames, Enums, ToolGroupService, commandsManager) {
|
||||
function initMPRToolGroup(toolNames, Enums, toolGroupService, commandsManager) {
|
||||
const tools = {
|
||||
active: [
|
||||
{
|
||||
@@ -181,12 +181,12 @@ function initMPRToolGroup(toolNames, Enums, ToolGroupService, commandsManager) {
|
||||
},
|
||||
};
|
||||
|
||||
ToolGroupService.createToolGroupAndAddTools('mpr', tools, toolsConfig);
|
||||
toolGroupService.createToolGroupAndAddTools('mpr', tools, toolsConfig);
|
||||
}
|
||||
|
||||
function initToolGroups(toolNames, Enums, ToolGroupService, commandsManager) {
|
||||
_initToolGroups(toolNames, Enums, ToolGroupService, commandsManager);
|
||||
// initMPRToolGroup(toolNames, Enums, ToolGroupService, commandsManager);
|
||||
function initToolGroups(toolNames, Enums, toolGroupService, commandsManager) {
|
||||
_initToolGroups(toolNames, Enums, toolGroupService, commandsManager);
|
||||
// initMPRToolGroup(toolNames, Enums, toolGroupService, commandsManager);
|
||||
}
|
||||
|
||||
export default initToolGroups;
|
||||
Reference in new issue
Block a user