in src/baseBehavior.ts [79:101]
protected bindContextMenuToClearCatcher() {
const { clearCatcherSelection } = this.options;
const emptySelection = {
"measures": [],
"dataMap": {
}
};
let internalSelection: Selection<any, SelectableDataPoint, any, any> = selectAll(clearCatcherSelection.nodes());
internalSelection.on("contextmenu", (event: MouseEvent) => {
this.selectionHandler.handleContextMenu(
<BaseDataPoint>{
identity: emptySelection,
selected: false
},
{
x: event.clientX,
y: event.clientY
}
);
event.preventDefault();
event.stopPropagation();
});
}