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

Add widget-level events and relax validation rules to allow custom/user-defined names #239

Closed abought closed 3 years ago

abought commented 3 years ago

Ticket: Closes #236

Purpose

In order to support feature analytics, allow LZ.js to fire additional events, such as when a tooltip button is clicked, or a widget is used.

This introduces the new concept of "custom events", which just means that on and emit are no longer limited to predefined names.

Many widgets now emit new events, and have fine-grained control over what name to use for this event. This can be used to collect analytics on which features are most useful.

Summary of changes