# DendrogramStreamSource

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

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

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

## Type declaration

```typescript
export interface DendrogramStreamSource {
  readonly length: number;
  readonly capacity: number;
  readonly dropped: number;
  push(node: DendrogramNodeInput): void;
  pushBatch(nodes: ReadonlyArray<DendrogramNodeInput>): void;
  shift(count: number): void;
  replace(nodes: ReadonlyArray<DendrogramNodeInput>): void;
  snapshot(): DendrogramNodeInput[];
  subscribe(listener: (event: DendrogramStreamEvent) => void): () => void;
}
```

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

## Related types

- [DendrogramNodeInput](https://chart.syidax.com/docs/types/DendrogramNodeInput.md)
- [DendrogramStreamEvent](https://chart.syidax.com/docs/types/DendrogramStreamEvent.md)
