LT-115: FIxing 'More' tools drawer for Viewer
This commit is contained in:
parent
d63aace48f
commit
2b745010de
@ -42,7 +42,66 @@ Template.toolbarSection.helpers({
|
|||||||
},
|
},
|
||||||
|
|
||||||
toolbarButtons() {
|
toolbarButtons() {
|
||||||
|
const extraTools = [];
|
||||||
|
|
||||||
|
extraTools.push({
|
||||||
|
id: 'stackScroll',
|
||||||
|
title: 'Stack Scroll',
|
||||||
|
classes: 'imageViewerTool',
|
||||||
|
iconClasses: 'fa fa-bars'
|
||||||
|
});
|
||||||
|
|
||||||
|
extraTools.push({
|
||||||
|
id: 'magnify',
|
||||||
|
title: 'Magnify',
|
||||||
|
classes: 'imageViewerTool toolbarSectionButton',
|
||||||
|
iconClasses: 'fa fa-circle'
|
||||||
|
});
|
||||||
|
|
||||||
|
extraTools.push({
|
||||||
|
id: 'wwwcRegion',
|
||||||
|
title: 'ROI Window',
|
||||||
|
classes: 'imageViewerTool',
|
||||||
|
iconClasses: 'fa fa-square'
|
||||||
|
});
|
||||||
|
|
||||||
|
extraTools.push({
|
||||||
|
id: 'dragProbe',
|
||||||
|
title: 'Probe',
|
||||||
|
classes: 'imageViewerTool',
|
||||||
|
iconClasses: 'fa fa-dot-circle-o'
|
||||||
|
});
|
||||||
|
|
||||||
|
extraTools.push({
|
||||||
|
id: 'ellipticalRoi',
|
||||||
|
title: 'Ellipse',
|
||||||
|
classes: 'imageViewerTool',
|
||||||
|
iconClasses: 'fa fa-circle-o'
|
||||||
|
});
|
||||||
|
|
||||||
|
extraTools.push({
|
||||||
|
id: 'rectangleRoi',
|
||||||
|
title: 'Rectangle',
|
||||||
|
classes: 'imageViewerTool',
|
||||||
|
iconClasses: 'fa fa-square-o'
|
||||||
|
});
|
||||||
|
|
||||||
|
extraTools.push({
|
||||||
|
id: 'invert',
|
||||||
|
title: 'Invert',
|
||||||
|
classes: 'imageViewerCommand',
|
||||||
|
iconClasses: 'fa fa-adjust'
|
||||||
|
});
|
||||||
|
|
||||||
|
extraTools.push({
|
||||||
|
id: 'clearTools',
|
||||||
|
title: 'Clear',
|
||||||
|
classes: 'imageViewerCommand',
|
||||||
|
iconClasses: 'fa fa-trash'
|
||||||
|
});
|
||||||
|
|
||||||
var buttonData = [];
|
var buttonData = [];
|
||||||
|
|
||||||
buttonData.push({
|
buttonData.push({
|
||||||
id: 'zoom',
|
id: 'zoom',
|
||||||
title: 'Zoom',
|
title: 'Zoom',
|
||||||
@ -133,66 +192,12 @@ Template.toolbarSection.helpers({
|
|||||||
buttonTemplateName: 'layoutButton'
|
buttonTemplateName: 'layoutButton'
|
||||||
});
|
});
|
||||||
|
|
||||||
return buttonData;
|
|
||||||
},
|
|
||||||
|
|
||||||
extraToolbarButtons() {
|
|
||||||
let buttonData = [];
|
|
||||||
|
|
||||||
buttonData.push({
|
buttonData.push({
|
||||||
id: 'stackScroll',
|
id: 'toggleMore',
|
||||||
title: 'Stack Scroll',
|
title: 'More',
|
||||||
classes: 'imageViewerTool',
|
classes: 'rp-x-1 rm-l-3',
|
||||||
iconClasses: 'fa fa-bars'
|
svgLink: '/packages/ohif_viewerbase/assets/icons.svg#icon-tools-more',
|
||||||
});
|
subTools: extraTools
|
||||||
|
|
||||||
buttonData.push({
|
|
||||||
id: 'magnify',
|
|
||||||
title: 'Magnify',
|
|
||||||
classes: 'imageViewerTool toolbarSectionButton',
|
|
||||||
iconClasses: 'fa fa-circle'
|
|
||||||
});
|
|
||||||
|
|
||||||
buttonData.push({
|
|
||||||
id: 'wwwcRegion',
|
|
||||||
title: 'ROI Window',
|
|
||||||
classes: 'imageViewerTool',
|
|
||||||
iconClasses: 'fa fa-square'
|
|
||||||
});
|
|
||||||
|
|
||||||
buttonData.push({
|
|
||||||
id: 'dragProbe',
|
|
||||||
title: 'Probe',
|
|
||||||
classes: 'imageViewerTool',
|
|
||||||
iconClasses: 'fa fa-dot-circle-o'
|
|
||||||
});
|
|
||||||
|
|
||||||
buttonData.push({
|
|
||||||
id: 'ellipticalRoi',
|
|
||||||
title: 'Ellipse',
|
|
||||||
classes: 'imageViewerTool',
|
|
||||||
iconClasses: 'fa fa-circle-o'
|
|
||||||
});
|
|
||||||
|
|
||||||
buttonData.push({
|
|
||||||
id: 'rectangleRoi',
|
|
||||||
title: 'Rectangle',
|
|
||||||
classes: 'imageViewerTool',
|
|
||||||
iconClasses: 'fa fa-square-o'
|
|
||||||
});
|
|
||||||
|
|
||||||
buttonData.push({
|
|
||||||
id: 'invert',
|
|
||||||
title: 'Invert',
|
|
||||||
classes: 'imageViewerCommand',
|
|
||||||
iconClasses: 'fa fa-adjust'
|
|
||||||
});
|
|
||||||
|
|
||||||
buttonData.push({
|
|
||||||
id: 'clearTools',
|
|
||||||
title: 'Clear',
|
|
||||||
classes: 'imageViewerCommand',
|
|
||||||
iconClasses: 'fa fa-trash'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return buttonData;
|
return buttonData;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user