API REFERENCE
DensityMapStreamSource
The DensityMapStreamSource type declaration and related types. Optional fields are marked with ?.
Type declaration
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;
}