Giter Site home page Giter Site logo

Comments (9)

headinthebox avatar headinthebox commented on May 21, 2024

That's a good question. I would say (not sure how hard that is), one with each operator, and then have a "playground" where you can do your own operator.

from reactivex.github.io.

staltz avatar staltz commented on May 21, 2024

That sounds doable.

When you say "do your own operator", what exactly do you refer to? Combining operators (e.g., filter + map + scan), or 'lifting' your own custom operator? I imagine the second option requires a code editor where you can input JS code to define the operator.

from reactivex.github.io.

staltz avatar staltz commented on May 21, 2024

Version 0.2.0 of RxMarbles is ready: http://staltz.github.io/rxmarbles
This is a beta version, so soon it'll reach a stable enough state. Let me know, @benjchristensen or Erik whether the core feature of interacting with the diagrams should improve somehow.

There are some things on the roadmap, like (1) rendering metastreams (observables of observables) and the corresponding examples such as window, groupBy, etc; (2) rendering the output of a buffer operation; (3) allow adding or removing items from an input stream.

I'm trying to keep it as a sandbox for each operator, rather than a full-blown Observable WYSIWYG editor. For instance, one thing that people might want to experiment with is chaining operators. For some examples it's simple, for instance for a map().filter().scan(), however it gets very complicated if we want to allow arbitrary combinations, since there might be a tree of Observables involved, for instance source.map().filter().sample(sampleObservable). You can't render that setting as a top-to-bottom diagram, it's tree shaped.

Another thing is that we could allow the user to edit the code for the operator, in the operator box in the diagram. I'm imagining it could work for some cases, but I'm not yet sure how to solve the potential problems with regard to all the operator coding possibilities.

from reactivex.github.io.

staltz avatar staltz commented on May 21, 2024

I'm this > < close to making a web component <x-rxmarbles key="debounce"> for RxMarbles, enabling a very easy way to embed it in this website's docs.

More news very soon.

from reactivex.github.io.

DavidMGross avatar DavidMGross commented on May 21, 2024

[Like]

On Sat, Feb 7, 2015 at 9:10 AM, André Staltz [email protected]
wrote:

I'm this > < close to making a web component
for RxMarbles, enabling a very easy way to embed it in this website's docs.

More news very soon.


Reply to this email directly or view it on GitHub
#13 (comment)
.

David M. Gross
PLP Consulting

from reactivex.github.io.

benjchristensen avatar benjchristensen commented on May 21, 2024

Sounds great!

from reactivex.github.io.

staltz avatar staltz commented on May 21, 2024

Done in PR #87

Just like RxMarbles.com, it doesn't have all the operators since some are more complicated (observable of observables, or contains an error, etc). But works like a charm as a Web Component.

Related staltz/rxmarbles#1

Looks like this:
screen shot 2015-02-08 at 16 40 15

from reactivex.github.io.

benjchristensen avatar benjchristensen commented on May 21, 2024

Very nice.

from reactivex.github.io.

staltz avatar staltz commented on May 21, 2024

It's merged into develop, so I think I'll close this one. We can do continuous improvements through other issues. Such as #88

from reactivex.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.