add new overlay

This commit is contained in:
igoroctaviano committed 2020-06-29 18:05:52 -03:00
1 parent 4c7e3f95fe
commit 9e2ed50e79
5 files changed
+118 -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, {});