# DensityMapStreamSource

DensityMapStreamSource 타입 선언과 관련 타입입니다. 선택 필드는 ?로 표시됩니다.

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

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

## 타입 선언

```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>

## 관련 타입

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