timdp / swirly

A marble diagram generator.
https://swirly.dev
MIT License
118 stars 3 forks source link

Redefine frame value inside operator #35

Closed demensky closed 2 years ago

demensky commented 2 years ago
---1-----------3----5--------------|

> mergeMap((x) => `y---y---y-|`)
y := x*2

   a---a---a-|
   a := 10

               b---b---b-|
               b := 30

                     c---c---c-|
                     c := 50

---a---a---a---b---b-c-b-c---c-----|
a := 10
b := 30
c := 50

Actual behavior

Expected behavior

timdp commented 2 years ago

Good idea! Thanks for the clear example as well.

I've added this as of v0.20.0. Feel free to reopen if it's not working as intended.

demensky commented 2 years ago

Thank you very much! I am trying to move rxjs marble to SVG.