MCPcopy Create free account
hub / github.com/devforth/painterro / handleToolEvent

Method handleToolEvent

js/main.js:908–920  ·  view source on GitHub ↗
(eventHandler, event)

Source from the content-addressed store, hash-verified

906 }
907
908 handleToolEvent(eventHandler, event) {
909 if (this.select.imagePlaced || this.select.area.activated) {
910 return this.select[eventHandler](event);
911 }
912 if (this.activeTool && this.activeTool.eventListner) {
913 const listner = this.activeTool.eventListner();
914 if (listner[eventHandler]) {
915 return listner[eventHandler](event);
916 }
917 }
918
919 return false;
920 }
921
922 handleClipCopyEvent(evt) {
923 let handled = false;

Callers 1

initEventHandlersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected