Skip to content

Interface: WaterfallOptions ​

Defined in: stats/waterfall.ts:158

Properties ​

colormap? ​

ts
optional colormap?: ColormapSpec;

Defined in: stats/waterfall.ts:176


cols ​

ts
cols: number;

Defined in: stats/waterfall.ts:162

Cells across a row. A longer pushed column is block-maxed down to this.


domain? ​

ts
optional domain?: Range;

Defined in: stats/waterfall.ts:175

Value range mapped to the colormap. Strongly recommended: without it the heatmap re-reads its own min/max on every push and the colours breathe.


extent ​

ts
extent: Range;

Defined in: stats/waterfall.ts:160

Data-space extent one row spans — the frequency band, for a spectrogram.


fill? ​

ts
optional fill?: number;

Defined in: stats/waterfall.ts:178

Value filling rows that have not streamed in yet. Default domain[0], else 0.


fitView? ​

ts
optional fitView?: boolean;

Defined in: stats/waterfall.ts:200

Pin the view to the image (default true) — autoscale would pad around it.


history? ​

ts
optional history?: ArrayLike<number>;

Defined in: stats/waterfall.ts:184

A history to open with, cols * rows row-major with row 0 at the bottom (the oldest). The clock then reads the top row as the newest, so a pre-computed spectrogram gets the same time axis a streaming one does.


historyTimes? ​

ts
optional historyTimes?: ArrayLike<number>;

Defined in: stats/waterfall.ts:192

Clocks for history's rows, row 0 first. Ignored without history.


name? ​

ts
optional name?: string;

Defined in: stats/waterfall.ts:188

Series name — used as the colorbar caption.


renderType? ​

ts
optional renderType?: RenderType;

Defined in: stats/waterfall.ts:203

Buffer-usage hint. Default "dynamic": a waterfall exists to stream.


rows ​

ts
rows: number;

Defined in: stats/waterfall.ts:164

Rows of history kept on screen.


rowSeconds? ​

ts
optional rowSeconds?: number;

Defined in: stats/waterfall.ts:170

Seconds of signal one row covers; with rows this sets the time span. Omit when rows arrive irregularly and carry their own clock — see WaterfallHandle.push — and the axis counts rows instead.


smooth? ​

ts
optional smooth?: boolean;

Defined in: stats/waterfall.ts:186

Bilinear filtering (default true) vs. hard cells.


startTime? ​

ts
optional startTime?: number;

Defined in: stats/waterfall.ts:190

Clock of the first pushed row, in seconds. Default 0.


timeFormat? ​

ts
optional timeFormat?: TimeFormat | ((seconds) => string);

Defined in: stats/waterfall.ts:194

Time tick labels: a preset or your own formatter. Default "hh:mm:ss".


timeTicks? ​

ts
optional timeTicks?: number;

Defined in: stats/waterfall.ts:196

Roughly how many time ticks to place. Default 8.


timeTitle? ​

ts
optional timeTitle?: string;

Defined in: stats/waterfall.ts:198

Axis title for the time axis. Left alone when omitted.


yAxis? ​

ts
optional yAxis?: string;

Defined in: stats/waterfall.ts:201

MIT licensed. WebGL2 required.