How to obtain mouse coordinates in dash cytoscape?

I am using dash cytoscape to visualize a network. I would like to be able to create new nodes, whenever I click somewhere on white space (aka. neither an edge nor a node is clicked on). But in order to do that, I need to obtain mouse coordinates. Is it possible to obtain these?

When looking at the reference, I can only find information for nodes and edges tapNode and tapEdge.

Just discovered that this question already exists on stackorflow but only for cytoscape.js