3.0.1 • Published 1 year ago

vega-event-selector v3.0.1

Weekly downloads
87,512
License
BSD-3-Clause
Repository
github
Last release
1 year ago

vega-event-selector

A CSS-inspired language to select, sequence, and compose DOM events into event streams.

Exports the following method:

# vega.parseSelector(selector, source, marks) <>

Takes an event selector string as input and returns a parsed event stream object definition. The optional source argument takes a string indicating the source value to use by default (normally "view"). The optional marks argument takes an object whose keys will be treated as the legal mark types, so long as the corresponding values are truthy. For more, see the Vega Event Stream documentation.