API REFERENCE

DensityMapStreamSource

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

타입 선언

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;
}