rxjs-diagrams

The input values are converted to an observables and then transformed to an output using the transform prop.

Having multiple input streams is as simple as passing multiple value arrays and accepting them in your transform function.

The common three values that describe your input are: emissions, end, and completion.

(Example: )

Completion is the time value when your observable completes.

More information on Schedulers here : Here you can pass an array of emissions (described above) or an array of an array of emissions, in case you want multiple input observables.

React components for visualising RxJS observables and operators @mattpodwysocki: Kinda cool that someone wrapped up RxJS marble diagrams in a way it can be just another @reactjs component

React Components for visualising RxJS observables and operators

RxJS Diagrams provides React Components for interactively visualising RxJS observables and operators. It is a rewrite (and redesign) of the amazing RxMarbles. The goal is to provide simple and reusable components for quickly explaining how RxJS works.

and

This renders an SVG showing the input values and the result. The input values are converted to an observables and then transformed to an output using the transform prop.

Having multiple input streams is as simple as passing multiple value arrays and accepting them in your transform function.

Exports:

The common three values that describe your input are: emissions, end, and completion. This is enough for this library to generate an input observable.

x

d

x

{ x: 5, d: ‘A’ }

Completion is the time value when your observable completes. It is a number and usually you’ll want it to be larger than all

x

values of your emissions.

is

x

is

, then the emission will be drawn right in the center.

label?: string

transform: (…input, scheduler)

: A function that transforms the input observables and produces an output. It receives the input observables as the first arguments and the scheduler last. You will need the scheduler to transform the virtual observable’s time. For example for

: Here you can pass an array of emissions (described above) or an array of an array of emissions, in case you want multiple input observables.

end: number

width: number

: The width of the resulting SVG.

height: number

: The height of the resulting SVG component.

It’s never been easier to manage developer teams with varying permissions and multiple projects. Learn more about Private Packages and Organizations…