UNPKG

kepler.gl

Version:

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

31 lines (30 loc) 994 B
import { ComponentType } from 'react'; import { DraggableAttributes } from '@dnd-kit/core'; import { Transform } from '@dnd-kit/utilities'; import { TooltipFields } from '@kepler.gl/types'; interface TooltipChickletProps { disabled: boolean; item: { name: string; }; displayOption: Function; remove: any; attributes: DraggableAttributes; listeners: any; setNodeRef: (node: HTMLElement | null) => void; transform: Transform | null; transition?: string; isDragging: boolean; } declare type TooltipConfig = { fieldsToShow: { [key: string]: { name: string; format: string | null; }[]; }; compareMode: boolean; compareType: string | null; }; declare function TooltipChickletFactory(dataId: string, config: TooltipConfig, onChange: (cfg: TooltipConfig) => void, fields: TooltipFields[], onDisplayFormatChange: any): ComponentType<TooltipChickletProps>; export default TooltipChickletFactory;