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