# DensityMapStreamSource

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

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

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

## Type declaration

```typescript
export interface DensityMapStreamSource {
  push(point: DensityMapPoint | DensityMapTuple): void;
  pushBatch(points: ReadonlyArray<DensityMapPoint | DensityMapTuple>): void;
  shift(count: number): void;
  replace(points: ReadonlyArray<DensityMapPoint | DensityMapTuple>): void;
  snapshot(): DensityMapPoint[];
  latest(): DensityMapPoint | undefined;
  subscribe(listener: (event: DensityMapStreamEvent) => void): () => void;
  readonly length: number;
  readonly capacity: number;
}
```

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

## Related types

- [DensityMapPoint](https://chart.syidax.com/docs/types/DensityMapPoint.md)
- [DensityMapTuple](https://chart.syidax.com/docs/types/DensityMapTuple.md)
- [DensityMapStreamEvent](https://chart.syidax.com/docs/types/DensityMapStreamEvent.md)
