public bindEvents()

in src/behavior.ts [53:72]


    public bindEvents(
        options: BehaviorOptions,
        selectionHandler: ISelectionHandler): void {

        this.selection = options.selection;
        this.clearCatcher = options.clearCatcher;
        this.interactivityService = options.interactivityService;

        this.series = options.series;

        this.selection.on("click", (series: StreamGraphSeries) => {
            selectionHandler.handleSelection(
                this.series[(<any>series).index],
                (getEvent() as MouseEvent).ctrlKey);
        });

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