kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
10 lines (9 loc) • 388 B
TypeScript
import { DragEndEvent, DragStartEvent } from '@dnd-kit/core';
import { Layer } from '@kepler.gl/layers';
declare type DndEffectsHook = {
activeLayer: Layer | undefined;
onDragStart: (event: DragStartEvent) => void;
onDragEnd: (event: DragEndEvent) => void;
};
declare const useDndLayers: (layers: Layer[], layerOrder: string[]) => DndEffectsHook;
export default useDndLayers;