statgen / locuszoom

A Javascript/d3 embeddable plugin for interactively visualizing statistical genetic data from customizable sources.
https://statgen.github.io/locuszoom/
MIT License
154 stars 29 forks source link

Improve events system #195

Closed abought closed 4 years ago

abought commented 4 years ago

The plot and panel objects are able to emit events when certain situations occur. We should make these event signatures more consistent, and make the state_changed event more useful (add region_changed explicitly).

Possible other candidates: panel_added

abought commented 4 years ago

Closed in #193 . We'll hold off on panel_added for now, because there is no UI functionality inside the plot that can trigger the event. (eg, it is only ever fired in response to external code, so notifying the outside world via an event is redundant)