fluid-dnd
Version:
An agnostic drag and drop library to sort all kind of lists. With current support for vue, react and svelte
7 lines (6 loc) • 342 B
TypeScript
import { Direction } from '../..';
import { DragAndDropEvent } from '../../utils';
export default function getTranslationByDraggingAndEvent(current: HTMLElement, event: DragAndDropEvent, direction: Direction, droppable: HTMLElement, previousElement?: Element | null, nextElement?: Element | null): {
height: number;
width: number;
};