public bindEvents()

in src/behavior.ts [60:77]


    public bindEvents(options: AsterPlotBehaviorOptions, selectionHandler: ISelectionHandler) {
        this.selection = options.selection;
        this.clearCatcher = options.clearCatcher;
        this.interactivityService = options.interactivityService;
        this.hasHighlights = options.hasHighlights;

        this.selection.on("click", (d, i: number) => {
            selectionHandler.handleSelection(d.data, (<MouseEvent>getEvent()).ctrlKey);
        });

        this.clearCatcher.on("click", () => {
            selectionHandler.handleClearSelection();
        });

        this.renderSelection(this.interactivityService.hasSelection());
        this.bindContextMenuToClearCatcher(options, selectionHandler);
        this.bindContextMenu(options, selectionHandler);
    }