UNPKG

kepler.gl

Version:

kepler.gl is a webgl based application to visualize large scale location data in the browser

14 lines (13 loc) 862 B
import { DomainStops, Field as KeplerField, ZoomStopsConfig } from '@kepler.gl/types'; import { DomainQuantiles } from '@kepler.gl/utils'; export declare function isDomainStops(domain: unknown): domain is DomainStops; export declare function isDomainQuantiles(domain: unknown): domain is DomainQuantiles; export declare function isIndexedField(field?: KeplerField | null): boolean; export declare function getPropertyByZoom(config: ZoomStopsConfig | undefined, defaultValue: number): (zoom: number) => number; /** * Remove null/0 values from the bottom of the quantiles. If the column has many nulls * or 0s at the bottom of the quantiles, it will wash out color scales and produce * meaningless "no value" legend entries. We want to keep the first 0 and no others. * Operates in place. */ export declare function pruneQuantiles(quantiles: number[]): void;