Since the last update on RxJS Ninja there have been a few new operators added, below are some details and links to StackBlitz demos showing them in action.
@rxjs-ninja/rxjs-number the missing toFixed operator has been added, alongside a new custom toHex operator and the corresponding parseHex one allowing hex numbers to be worked with (such as converting colours).
Demo - Using
fromReadableStreamto show partial images
- Demo - A basic infinite number stream that ticks per second
Demo - Streams an Observable interval value into a
WritableStreamwith optional ability to stop the writer without ending the Observable subscription.
This operator uses
fetch to do an HTTP request, instead of the body response it emits either a
number which is the current progress, or a
Uint8Array containing the final
response from the body.
- Demo Fetches an image and shows a progress bar with the current percentage and once complete shows the image.