UNPKG

kepler.gl

Version:

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

38 lines (37 loc) 1.39 kB
import React from 'react'; import { AggregatedBin, Layer, VisualChannelDomain } from '@kepler.gl/layers'; import { KeplerTable } from '@kepler.gl/table'; import { ColorRange, ColorUI, Field } from '@kepler.gl/types'; import ColorBreaksPanelFactory, { ColorBreaksPanelProps } from './color-breaks-panel'; import { SetColorUIFunc } from './custom-palette'; export declare type ScaleOption = { label: string; value: string; }; export declare type OnSelectFunc = (v: string, visConfg?: Record<string, any>) => void; export declare type ContextProps = ColorBreaksPanelProps; export declare type ColorScaleSelectorProps = { layer: Layer; field: Field; dataset: KeplerTable; scaleType: string; domain: VisualChannelDomain; range: ColorRange; onSelect: OnSelectFunc; setColorUI: SetColorUIFunc; colorUIConfig: ColorUI; options: ScaleOption[]; disabled?: boolean; selectedItems: ScaleOption[]; multiSelect: boolean; searchable: boolean; displayOption: string; getOptionValue: string; aggregatedBins?: AggregatedBin[]; channelKey: string; }; declare function ColorScaleSelectorFactory(ColorBreaksPanel: ReturnType<typeof ColorBreaksPanelFactory>): React.FC<ColorScaleSelectorProps>; declare namespace ColorScaleSelectorFactory { var deps: (typeof ColorBreaksPanelFactory)[]; } export default ColorScaleSelectorFactory;