public bindEvents()

in src/behavior.ts [37:52]


    public bindEvents(options: BulletBehaviorOptions, selectionHandler: ISelectionHandler) {
        this.options = options;
        let clearCatcher = options.clearCatcher;

        options.valueRects.on("click", (event: MouseEvent, d: BarValueRect) => {
            selectionHandler.handleSelection(d, event.ctrlKey || event.metaKey);
        });

        options.rects.on("click", (event: MouseEvent, d: BarRect) => {
            selectionHandler.handleSelection(d, event.ctrlKey || event.metaKey);
        });

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