in src/behavior.ts [91:118]
protected bindContextMenuToClearCatcher(options: AsterPlotBehaviorOptions, selectionHandler: ISelectionHandler) {
const {
clearCatcher
} = options;
const emptySelection = {
"measures": [],
"dataMap": {
}
};
clearCatcher.on("contextmenu", () => {
const event: MouseEvent = <MouseEvent>getEvent() || <MouseEvent>window.event;
if (event) {
selectionHandler.handleContextMenu(
<BaseDataPoint>{
identity: emptySelection,
selected: false
},
{
x: event.clientX,
y: event.clientY
});
event.preventDefault();
event.stopPropagation();
}
});
}