Skip to content

Function: bindSelectionComponents()

bindSelectionComponents(opts): object

Defined in: mosaic-facet.ts:230

Install the bindings and start watching the producer registry. Call once from the durable store, after the dims are declared:

ts
bindSelectionComponents({ bindings: [
  { dim: mag, producer: "seismos/mag-hist" },
  { dim: year, producer: "seismos/time-hist", to: yearsToDates, from: datesToYears },
  { dims: [lon, lat], producer: "seismos/map", to: degreesToEqBox, from: eqBoxToDegrees },
]});

Returns { dispose }; a durable store never needs to call it.

Parameters

opts

bindings

readonly FacetBinding[]

Returns

object

dispose

dispose: () => void

Returns

void