kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
100 lines (99 loc) • 2.5 kB
TypeScript
import { ValueOf } from '@kepler.gl/types';
export interface IntervalOption {
label: string;
id: string;
}
export interface TimeAggregation {
label: string;
id: string;
}
export interface TimeIntervals {
year: any;
month: any;
week: any;
day: any;
hour: any;
minute: any;
second: any;
millisecond: any;
}
export interface Durations {
years: number;
months: number;
weeks: number;
days: number;
hours: number;
minutes: number;
seconds: number;
milliseconds: number;
}
export interface AnimatinWindow {
free: string;
interval: string;
}
export declare type TimeInterval = string;
export interface TickInterval {
interval: TimeInterval;
step: number;
duration: number;
}
export interface TickIntervals {
[key: ValueOf<Interval>]: TickInterval;
}
export interface Interval {
'1-second': string;
'5-second': string;
'15-second': string;
'30-second': string;
'1-minute': string;
'5-minute': string;
'15-minute': string;
'30-minute': string;
'1-hour': string;
'3-hour': string;
'6-hour': string;
'12-hour': string;
'1-day': string;
'2-day': string;
'1-week': string;
'1-month': string;
'3-month': string;
'1-year': string;
}
export interface AnimationType {
continuous: string;
interval: string;
}
export declare type AnimationWindow = any;
export declare const durationMillisecond = 1;
export declare const durationSecond = 1000;
export declare const durationMinute: number;
export declare const durationHour: number;
export declare const durationDay: number;
export declare const durationWeek: number;
export declare const durationMonth: number;
export declare const durationYear: number;
export declare const DURATIONS: Durations;
export declare const TIME_INTERVALS: TimeIntervals;
export declare const INTERVAL: Interval;
export declare const WOW: {
[key: ValueOf<Interval>]: number;
};
export declare const INTERVAL_OPTIONS: IntervalOption[];
export declare const TICK_INTERVALS: TickIntervals;
export declare const PLOT_TYPE_OPTIONS: {
lineChart: {
id: "lineChart";
label: string;
icon: string;
};
histogram: {
id: "histogram";
label: string;
icon: string;
};
};
export declare const BINS_LARGE = 100;
export declare const BINS = 30;
export declare const TIME_AGGREGATION: TimeAggregation[];
export declare const ANIMATION_TYPE: AnimationType;