Events
As you have learned in Tools and Events
, a event
will be fired at a certain situation with an associate custom function to handle that situation. Since the handle function is the key for event handling, it would be useful to have a basic idea of the argument passed to the function. So before you custom your tool, we recommend you to log and have a quick view of the argument of each event you are going to use.
api.player.addTool({
click: function(ev) {
console.log(ev)
},
});