Merge pull request #1831 from OHIF/feat/ohif-203

OHIF-203: Add new viewport overlay
This commit is contained in:
Danny Brown authored and GitHub committed 2020-06-30 08:41:20 -04:00
commit d5d219c271
5 files changed
+117 -3

No files matched your search

@@ -27,6 +27,15 @@ export default class ToolBarService {
return this.buttons;
}
getActiveTools() {
return Object.keys(this.buttons).filter(key => {
const button = this.buttons[key];
if (button && button.props && button.props.isActive) {
return button;
}
});
}
setButtons(buttons) {
this.buttons = buttons;
this._broadcastChange(this.EVENTS.TOOL_BAR_MODIFIED, {});