Skip to content

Expose emptyClick event on GraferController #57

@DSheffield

Description

@DSheffield

Presently you cannot subscribe to the 'emptyClick' event directly from the GraferController, as with other events (hover, hoverOff, click). Rather you have to dig deep in the controller internals, e.g.:

controller.viewport.graph.picking.on(UX.picking.PickingManager.events.emptyClick, someCallback))

This is not very clear / obvious. Would be simpler and more congruent with other events to do so directly from the controller:

controller.on(UX.picking.PickingManager.events.emptyClick, this.onBackgroundClick.bind(this));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions