# BubbleStreamSource

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

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

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

## Type declaration

```typescript
export interface BubbleStreamSource {
  readonly length: number;
  readonly capacity: number;
  readonly dropped: number;
  push(datum: BubbleDatumInput): void;
  pushBatch(data: ReadonlyArray<BubbleDatumInput>): void;
  shift(count: number): void;
  replace(data: ReadonlyArray<BubbleDatumInput>): void;
  snapshot(): BubbleDatumInput[];
  subscribe(listener: (event: BubbleStreamEvent) => void): () => void;
}
```

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

## Related types

- [BubbleDatumInput](https://chart.syidax.com/docs/types/BubbleDatumInput.md)
- [BubbleStreamEvent](https://chart.syidax.com/docs/types/BubbleStreamEvent.md)
