# HeatmapStreamSource

The HeatmapStreamSource type declaration and related types. Optional fields are marked with ?.

Canonical: https://chart.syidax.com/docs/types/HeatmapStreamSource/

<a id="declaration"></a>

## Type declaration

```typescript
export interface HeatmapStreamSource {
  push(cell: HeatmapDatum | HeatmapTuple): void;
  pushBatch(cells: ReadonlyArray<HeatmapDatum | HeatmapTuple>): void;
  shift(count: number): void;
  replace(cells: ReadonlyArray<HeatmapDatum | HeatmapTuple>): void;
  snapshot(): HeatmapDatum[];
  latest(): HeatmapDatum | undefined;
  subscribe(listener: (event: HeatmapStreamEvent) => void): () => void;
  readonly length: number;
  readonly capacity: number;
}
```

<a id="related"></a>

## Related types

- [HeatmapDatum](https://chart.syidax.com/docs/types/HeatmapDatum.md)
- [HeatmapTuple](https://chart.syidax.com/docs/types/HeatmapTuple.md)
- [HeatmapStreamEvent](https://chart.syidax.com/docs/types/HeatmapStreamEvent.md)
