kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
31 lines (30 loc) • 1.31 kB
TypeScript
import { DataContainerInterface } from './data-container-interface';
import { ProtoDatasetField } from '@kepler.gl/types';
export declare type DataContainerOptions = {
inputDataFormat?: string;
fields?: ProtoDatasetField[];
};
export declare const DataForm: {
ROWS_ARRAY: string;
COLS_ARRAY: string;
};
/**
* Creates a data container wrapper for the data.
* @param data Data.
* @param options Options.
* @returns A data container object which is based on data and options.
*/
export declare function createDataContainer(data: any[], options?: DataContainerOptions): DataContainerInterface;
/**
* Creates a data container wrapper around another data container.
* @param dataContainer Parent data container.
* @param indices An array of row indices in the parent data container.
*/
export declare function createIndexedDataContainer(dataContainer: DataContainerInterface, indices: number[]): DataContainerInterface;
/**
* Get a sample of rows from a data container.
* @param dataContainer Data container to get samples from.
* @param sampleSize Max number of samples.
* @returns A data container which contains samples from the original data container.
*/
export declare function getSampleData(dataContainer: DataContainerInterface, sampleSize?: number): DataContainerInterface;