@alpernative/tree
Version:
[`@alpernative/tree`](https://www.npmjs.com/package/@alpernative/tree) is a high-performance, customizable tree component for React. It provides a wide range of features, including virtualization, drag-and-drop, and nested drag-and-drop support.
7 lines (6 loc) • 607 B
TypeScript
import { Path, FlattenedTree, ItemId, FlattenedItem } from '../types';
export declare const getFlatItemPath: (flattenedTree: FlattenedTree, sourceIndex: number) => Path;
export declare const getSourcePath: (flattenedTree: FlattenedTree, sourceIndex: number) => Path;
export declare const getDestinationPath: (flattenedTree: FlattenedTree, sourceIndex: number, destinationIndex: number, level?: number) => Path;
export declare const getItemById: (flattenedTree: FlattenedTree, id: ItemId) => FlattenedItem | undefined;
export declare const getIndexById: (flattenedTree: FlattenedTree, id: ItemId) => number;