ToolBarService

This commit is contained in:
James A. Petts committed 2020-05-19 11:01:44 +02:00
1 parent aec30e0db1
commit 6a3e0db53e
11 files changed
+73 -136

No files matched your search

+5 -3
View File
@@ -12,8 +12,10 @@ export default function mode({ modeConfiguration }) {
routes: [
{
path: 'viewer',
init: ({ toolBarManager }) => {
toolBarManager.addButtons([
init: ({ servicesManager, extensionManager }) => {
const { ToolBarService } = servicesManager.services;
ToolBarService.init(extensionManager);
ToolBarService.addButtons([
{
id: 'Zoom',
namespace: 'org.ohif.cornerstone.toolbarModule.Zoom',
@@ -53,7 +55,7 @@ export default function mode({ modeConfiguration }) {
]);
// Could import layout selector here from org.ohif.default (when it exists!)
toolBarManager.setToolBarLayout([
ToolBarService.setToolBarLayout([
// Primary
{
tools: ['Zoom', 'Levels', 'Pan', 'Capture', 'Layout'],