# TreemapStreamSource

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

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

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

## Type declaration

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

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

## Related types

- [TreemapNodeInput](https://chart.syidax.com/docs/types/TreemapNodeInput.md)
- [TreemapStreamEvent](https://chart.syidax.com/docs/types/TreemapStreamEvent.md)
