kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
80 lines (79 loc) • 1.74 kB
TypeScript
import { ProtoDataset, RGBColor } from '@kepler.gl/types';
import { KeplerTable } from '@kepler.gl/table';
import Schema from './schema';
export declare type SavedField = {
name: string;
type: string;
format?: string;
analyzerType?: string;
};
export declare type ParsedField = {
name: string;
type: string;
format: string;
analyzerType: string;
};
export declare type SavedDatasetV1 = {
version: 'v1';
data: {
id: string;
label: string;
color: RGBColor;
allData: any[][];
fields: SavedField[];
};
};
export declare type ParsedDataset = {
data: {
fields: ParsedField[];
rows: any[][];
};
info: {
id?: string;
label?: string;
color?: RGBColor;
};
};
export declare const fieldPropertiesV0: {
name: null;
type: null;
};
export declare const fieldPropertiesV1: {
name: null;
type: null;
format: null;
analyzerType: null;
metadata: null;
};
export declare class FieldSchema extends Schema {
save(fields: any): {
[x: string]: any;
};
load(fields: any): {
[x: string]: any;
};
}
export declare const propertiesV0: {
id: null;
label: null;
color: null;
allData: null;
fields: FieldSchema;
};
export declare const propertiesV1: {
fields: FieldSchema;
id: null;
label: null;
color: null;
allData: null;
};
export declare class DatasetSchema extends Schema {
key: string;
save(dataset: KeplerTable): SavedDatasetV1['data'];
load(dataset: SavedDatasetV1['data']): ProtoDataset;
}
export declare const datasetSchema: {
v0: DatasetSchema;
v1: DatasetSchema;
};
export default datasetSchema;