ReactiveX / rxjs

A reactive programming library for JavaScript
https://rxjs.dev
Apache License 2.0
30.62k stars 3k forks source link

[docs]: Marble Diagrams improvements #5104

Open BioPhoton opened 4 years ago

BioPhoton commented 4 years ago

Documentation Related To Component:

Marble Diagrams

Please check those that apply

Description Of The Issue

Some of the diagrams are hard to understand. The list above contains little changes would serve a lot more value imho.

timdp commented 4 years ago

This heavily relates to #5019. As explained under that PR, part of why I built my own diagram generator is because I wanted the ability to annotate diagrams. In fact, my code already contains some features that are currently unused by the PR. I went for feature parity first.

BioPhoton commented 4 years ago

@timdp Nice! :) :) 👍 Do you think you can align it with my suggestions here?

I collected all the problems in a design system over the last 1.5 years. It is able to express all operations or building blocks.

timdp commented 4 years ago

I came across your design system when I was looking for an existing diagram generator. It looked/looks very professional, and I think it's an improvement over the current style. However, I don't think it's being used for any official resources yet? Or did I miss something?

My side of things is that I originally needed a reliable way to generate relatively simple marble diagrams for a talk. That's why I built Swirly. Later on, I decided to support the ASCII marble diagram syntax used in the tests. That got me thinking about using Swirly to render the diagrams in the docs as well, so I made some tweaks to simplify that scenario. And then I did a bunch of refactoring, because that's how these things escalate.

Now, Swirly could be extended with all the changes you're proposing. However, especially given that it's just a side project at this point, I'm more inclined to focus my efforts on providing value to the community by making sure it's compatible with the existing resources first. That said, I think most of the design system, if not all of it, could be treated as incremental improvements to Swirly later on.