Streams.ResizeStream Class
Extends Streams.Stream
Defined in:
src/streams/ResizeStream.js:17
ResizeStream is a stream that listens to and emits resize
events.
Constructor
Methods
filter
(
-
filterFn
Filter converts the current stream into a new stream
that only emits if the filter condition is satisfied.
The function should return a Boolean.
Parameters:
-
filterFn
FunctionFunction to filter event payload
lift
()
static
Extends SimpleStream.lift
map
(
-
mapperFn
Map converts the current stream into a new stream
with a modified (mapped) data payload.
Parameters:
-
mapperFn
FunctionFunction to map event payload
merge
(
private
static
-
streams
Batches resize events for provided object of streams in
{key : stream} pairs. Emits one resize
event per Engine cycle.
Parameters:
-
streams
ObjectDictionary of
resize
streams
pluck
(
-
key
Pluck is an opinionated mapper. It projects a Stream
onto one of its return values.
Useful if a Stream returns an array or an object.
split
(
-
splitterFn
Split maps one of several streams based on custom logic.
The function should return an EventEmitter.
Parameters:
-
splitterFn
FunctionSplitter function