diff --git a/LesionTracker/client/components/toolbarSection/toolbarSection.js b/LesionTracker/client/components/toolbarSection/toolbarSection.js index 7f30dc892..10ea1d329 100644 --- a/LesionTracker/client/components/toolbarSection/toolbarSection.js +++ b/LesionTracker/client/components/toolbarSection/toolbarSection.js @@ -129,10 +129,17 @@ Template.toolbarSection.helpers({ }); buttonData.push({ - id: 'rotate', - title: 'Rotate', - classes: 'imageViewerTool toolbarSectionButton', - svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-rotate' + id: 'rotateL', + title: 'Rotate Left', + classes: 'imageViewerCommand toolbarSectionButton', + svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-rotate-left' + }); + + buttonData.push({ + id: 'rotateR', + title: 'Rotate Right', + classes: 'imageViewerCommand toolbarSectionButton', + svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-rotate-right' }); buttonData.push({ diff --git a/LesionTracker/client/components/viewer/viewer.js b/LesionTracker/client/components/viewer/viewer.js index 418b34450..84a5f529e 100644 --- a/LesionTracker/client/components/viewer/viewer.js +++ b/LesionTracker/client/components/viewer/viewer.js @@ -34,7 +34,9 @@ Template.viewer.onCreated(() => { resetViewport, invert, flipV, - flipH + flipH, + rotateL, + rotateR }); if (ViewerData[contentId].loadedSeriesData) { diff --git a/Packages/ohif-viewerbase/assets/icons.svg b/Packages/ohif-viewerbase/assets/icons.svg index 373a62ade..d84fe643f 100644 --- a/Packages/ohif-viewerbase/assets/icons.svg +++ b/Packages/ohif-viewerbase/assets/icons.svg @@ -155,6 +155,14 @@ Rotate + + Rotate Right + + + + Rotate left + + Cineplay Toggle diff --git a/Packages/ohif-viewerbase/package.js b/Packages/ohif-viewerbase/package.js index 080dbdc07..62efbaa81 100644 --- a/Packages/ohif-viewerbase/package.js +++ b/Packages/ohif-viewerbase/package.js @@ -234,4 +234,6 @@ Package.onUse(function(api) { api.export('invert', 'client'); api.export('flipV', 'client'); api.export('flipH', 'client'); + api.export('rotateR', 'client'); + api.export('rotateL', 'client'); });